Limited success with 3.0 branch on AIX

Daniel Berlin dan@www.cgsoftware.com
Tue May 1 13:02:00 GMT 2001


On Tue, 1 May 2001, David Edelsohn wrote:

> 	I would like to refer the GDB experts to a question on the GCC
> mailinglist in regard to Zack Weinberg's gcc2_compiled changes.  His patch
> to implement DBX_OUTPUT_GCC_MARKER support on AIX was not completely
> correct.  He used stabs N_OPT type which is not valid on AIX and does not
> correspond to any AIX storage class stabx type.
>
> 	The closest AIX type seems to be C_GSYM (stabs N_GSYM).  Does GDB
> for AIX care about the gcc2_compiled symbol?  Is using the N_GSYM type
> (whose value is ignored, according to the documentation) okay?  The
> semantics of a global symbol seem the closest to a N_OPT comment.  I do
> not understand enough about the significance of the stab type to know if
> this proposal would be satisfactory.

Right now, gdb only happens to look for it in a few types of stabs.

N_GSYM is not one of them.

Though it's trivial to change gdb to allow gcc2_compiled to appear in
that symbol. It's a one liner, literally.

--Dan
>
> http://gcc.gnu.org/ml/gcc-patches/2001-04/msg01459.html
>
> Thanks, David
>



More information about the Gdb mailing list