Re: A simple(?) #pragma question

From: Andi Kleen (
Date: Wed Feb 14 2001 - 09:20:57 GMT

On Tue, Feb 13, 2001 at 05:35:27PM -0800, Russell Browne wrote:
> that GCC puts out.  This is a stabs record such as the following:
>    .stabs "a:49=xsmyPragmaClass:",N_LSYM,0x0,0x5,0xffffffe8
> The 49=xsmyPragmaClass says that type 49 is a struct (or class) called
> myPragmaClass whose definition is (hopefully) given in some other
> compilation unit, and the debugger should go looking for it based on the name.
> Doing this, without making the time to load a symbol table quadatic or
> worse in the size of the table, is pretty tricky.  If anyone wants
> to tackle this, I'll give what help I can.

Why do you need to make it quadratic? Doesn't ups already maintain a hash
table or similar to map identifiers to symbol table entries? If yes looking
for the original symbol shouldn't be too costly.


This archive was generated by hypermail 2.1.4 : Wed Feb 13 2002 - 21:51:33 GMT