Hi Scott, > In that case, I might change my RFE to request that 'as' emit a > warning when it encodes a stabs n_desc value that does not fit in > 16 bits; the warning might suggest -ggdb or -gdwarf-2.
Please could you try out the attached patch and let me know if it generates the warning message appropriately. Cheers Nick PS. I was not sure if it was appropriate for the warning message to suggest a different debug format, so I put the idea into a comment instead. Index: gas/stabs.c =================================================================== RCS file: /cvs/src/src/gas/stabs.c,v retrieving revision 1.16 diff -c -3 -p -w -r1.16 stabs.c *** gas/stabs.c 3 May 2002 02:25:33 -0000 1.16 --- gas/stabs.c 11 May 2002 09:51:25 -0000 *************** s_stab_generic (what, stab_secname, stab *** 240,245 **** --- 240,252 ---- other = longint; desc = get_absolute_expression (); + + if (desc > 0xffff || desc < 0xffff8000) + /* This could happen for example with a source file with a huge + number of lines. The only cure is to use a different debug + foramt, probably DWARF. */ + as_warn (_(".stab%c: description field does not fit into 16 bits"), what); + if (what == 's' || what == 'n') { if (*input_line_pointer != ',') _______________________________________________ Bug-gdb mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gdb