This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] mips-tdep.c: Fix inferior function call breakage
On Jan 27, 2:21pm, Andrew Cagney wrote:
> Subject: Re: [RFA] mips-tdep.c: Fix inferior function call breakage
> Thanks,
>
> > #3 0x080e0484 in gdbarch_init_extra_frame_info (gdbarch=0x8424428,
> > fromleaf=0, frame=0x83f8990)
> > at /ocotillo2/mips64linux-021009-branch/devo/gdb/gdbarch.c:4122
> > #4 0x0809f589 in create_new_frame (addr=1099511626816, pc=268437552)
> > at /ocotillo2/mips64linux-021009-branch/devo/gdb/blockframe.c:273
>
> Things went wrong here (with the below calling the above). However, ...
>
> > #5 0x080cd089 in run_stack_dummy (addr=268438080, buffer=0x8460058)
> > at /ocotillo2/mips64linux-021009-branch/devo/gdb/infcmd.c:1002
> > #6 0x080b6c90 in hand_function_call (function=0x8464a90, nargs=0,
> > args=0xbffff054)
> > at /ocotillo2/mips64linux-021009-branch/devo/gdb/valops.c:1762
>
> ... I've eliminated that call from "infcmd.c"!
>
> > Hmm, that's from a branch, but it happens with current sources too. If
> > you wish, I can generate another backtrace with current sources...
>
> Yes.
#0 heuristic_proc_start (pc=268437552)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/mips-tdep.c:1796
#1 0x080d1e3b in find_proc_desc (pc=268437552, next_frame=0x0, cur_frame=1)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/mips-tdep.c:2406
#2 0x080d1feb in mips_init_extra_frame_info (fromleaf=0, fci=0x82ceed8)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/mips-tdep.c:2478
#3 0x080c670c in gdbarch_init_extra_frame_info (gdbarch=0x82d91e0,
fromleaf=0, frame=0x82ceed8)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/gdbarch.c:4422
#4 0x08106e57 in create_new_frame (addr=1099511626816, pc=268437552)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/frame.c:890
#5 0x081066b5 in get_current_frame ()
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/frame.c:506
#6 0x08089261 in bpstat_stop_status (pc=0x82b2f20, not_a_sw_breakpoint=0)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/breakpoint.c:2724
#7 0x080b621f in handle_inferior_event (ecs=0xbfffee00)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/infrun.c:1805
#8 0x080b51fe in wait_for_inferior ()
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/infrun.c:1006
#9 0x080b5025 in proceed (addr=268438080, siggnal=TARGET_SIGNAL_0, step=0)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/infrun.c:804
#10 0x080b2e95 in run_stack_dummy (addr=268438080, buffer=0x837a228)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/infcmd.c:1039
#11 0x0809c735 in hand_function_call (function=0x8316e68, nargs=0,
args=0xbffff064)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/valops.c:1672
#12 0x0809844e in evaluate_subexp_standard (expect_type=0x0, exp=0x885fec0,
pos=0xbffff2f4, noside=EVAL_NORMAL)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/eval.c:940
#13 0x080969f0 in evaluate_subexp (expect_type=0x0, exp=0x885fec0,
pos=0xbffff2f4, noside=EVAL_NORMAL)
at /ocotillo2/sourceware-mips64/ocotillo-cross-mips64/../src/gdb/eval.c:70
...