[PATCH] Add language hint in SO stab

Devang Patel dpatel@apple.com
Fri Aug 13 21:42:00 GMT 2004


This patch adds lang info in SO stab. Without this, gdb has to rely on 
file name extension to set language. Existing gdb does not require 
changes to accommodate this. Jason Molenda has already updated gdb to 
take advantage of lang info in SO stab. For more info,

	Recording a file's language in the SO stab? (anyone have Sun's 
compiler handy?)
	[ http://sources.redhat.com/ml/gdb/2004-08/msg00015.html ]

	RFA/patch stabs reader: Recognize language hint in SO stab
	[ http://sources.redhat.com/ml/gdb-patches/2004-08/msg00136.html ]

Bootstrapped and tested on powerpc-darwin. OK ?
Thanks,
-
Devang

2004-08-13  Devang Patel  <dpatel@apple.com>

         * dbxout.c (get_lang_number): New.
         (dbxout_init): Include lang number in N_SO  stab.
         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New 
#define.

         testsuite:
         gcc.dg/20040813-1.c: New test.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3729261.diff
Type: application/octet-stream
Size: 4489 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040813/d04a93c0/attachment.obj>
-------------- next part --------------



More information about the Gcc-patches mailing list