PR c/8068

Andreas Jaeger aj@suse.de
Sat Feb 22 18:40:00 GMT 2003


Daniel Jacobowitz <drow@mvista.com> writes:

> On Sat, Feb 22, 2003 at 05:44:44PM +0100, Andreas Jaeger wrote:
>> Daniel Jacobowitz <drow@mvista.com> writes:
>> 
>> > On Sat, Feb 22, 2003 at 10:56:18AM -0500, Geert Bosch wrote:
>> >> 
>> >> On Thursday, Feb 20, 2003, at 13:05 America/New_York, Jan Hubicka wrote:
>> >> 
>> >> >Hmm, that is ineed the problem. GDB chokes up on ada binary...
>> >> >I can try to do something over weekend.
>> >> 
>> >> Hmmm, why is that? There should be nothing special about these.
>> 
>> Geert, do you have a gdb that can debug an Ada binary?  Where can I
>> find it?
>> 
>> > It recognizes that the binary is Ada, recognizes that it doesn't
>> > support Ada, and doesn't fallback gracefully.  Of course, in a month or
>> > two hopefully it will support Ada...
>> 
>> Is there any easy way to debug?  Perhaps telling gdb that this is C
>> instead of ada so that we get the backtraces?
>
> You could try set language c, but I don't know if it'll make any
> difference.

Unfortunatly It does not make a difference - but I'm willing to try
other suggestions:

$ gdb ../../gnatmake
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-suse-linux"...
(gdb) help set language 
Set the current source language.
(gdb)  set language c
(gdb) r -c -I../rts -I. -I/usr/src/aj/cvs/gcc-3_3-branch/gcc/ada gnatchop --GCC="../../xgcc -B../../ -g      -gnatpg -gnata"
Starting program: /usr/src/aj/build/gcc/3.3/gcc/gnatmake -c -I../rts -I. -I/usr/src/aj/cvs/gcc-3_3-branch/gcc/ada gnatchop --GCC="../../xgcc -B../../ -g      -gnatpg -gnata"
internal error - unimplemented function unk_lang_create_fundamental_type called.
(gdb) bt
internal error - unimplemented function unk_lang_create_fundamental_type called.
(gdb)  set language c
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) bt
No stack.
(gdb) 

Geert, any ideas how to debug this?

Cheers,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc-patches mailing list