This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: m68k bootstrapping broken


On Thu, Jan 15, 2004 at 02:58:35PM +0100, Andreas Schwab wrote:

Hi,

> --- m68k-tdep.c.~1.69.4.2.~	2003-07-10 10:50:02.000000000 +0200
> +++ m68k-tdep.c	2003-09-23 10:10:48.000000000 +0200

works perfectly on simple programs compiled with debugging
info. 

With a complex program I tried sometimes it works, sometimes 
within the same program) it appears gdb for some reason falls
back to the old guessing algorithm and I get garbage like this:

Program received signal SIGINT, Interrupt.
0xc0121986 in __sigsuspend (set=0xeffff744)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:71
71      ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
        in ../sysdeps/unix/sysv/linux/sigsuspend.c
(gdb) bt
#0  0xc0121986 in __sigsuspend (set=0xeffff744)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:71
#1  0x8002a1f0 in SchedulerCmd () at xqlmouse.c:507
#2  0x00000008 in ?? ()
#3  0x00000001 in ?? ()
#4  0x80084f28 in ?? ()
#5  0x80084f28 in ?? ()
#6  0x8001bfea in PutToEA_l_m7 (r=-4, d=0) at iexl_general.c:1260
#7  0xeffff934 in ?? ()
#8  0x80024af2 in ExecuteLoop () at instructions_pz.c:268
#9  0xeffff8d8 in ?? ()
#10 0xeffff910 in ?? ()
#11 0x80029a0e in main (ac=0, av=0x0) at xlmain.c:62

Seems like everything is ok as long as all functions are in the same
object file and goes wrong if it has to backtrace to some function in
another module. 

Sometimes gdb-6.0 segfaults like this:

#0  0x800fd560 in dwarf2_frame_find_fde ()
(gdb) bt
#0  0x800fd560 in dwarf2_frame_find_fde ()
#1  0x00000001 in ?? ()
#2  0x8020d7e8 in ?? ()
#3  0x80211b38 in ?? ()
#4  0x800fd7e6 in dwarf2_frame_sniffer ()
#5  0x800bda84 in frame_unwind_find_by_frame ()
#6  0x8100a100 in ?? ()
#7  0xffffffff in ?? ()
#8  0x8100a150 in ?? ()
#9  0x8100a150 in ?? ()
#10 0x00000001 in ?? ()
#11 0x800bb1a4 in get_frame_type ()

... I wish I had compiled it with debugging info enabled but
it will take another few hours to get better info :(

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]