This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

[RFA] Fix problems with unwinder on mips-irix (take 2)


This patch fixes the problem reported in:

        http://sources.redhat.com/ml/gdb-patches/2004-07/msg00319.html

Namely:

        % gdb store
        (gdb) b wack_doublest
        (gdb) run
        (gdb) bt
        #0  wack_doublest (u=Unhandled dwarf expression opcode 0x93
        ) at ./gdb.base/store.c:125
        #1  0x100108d8 in ?? ()
        warning: GDB can't find the start of the function at 0x100108d8.

            GDB is unable to find the start of the function at 0x100108d8
        and thus can't determine the size of that function's stack frame.
        This means that GDB may be unable to access that stack frame, or
        the frames below it.
            This problem is most likely caused by an invalid program counter or
        stack pointer.
            However, if you think GDB should simply search farther back
        from 0x100108d8 for code which looks like the beginning of a
        function, you can increase the range of the search using the `set
        heuristic-fence-post' command.
        Previous frame inner to this frame (corrupt stack?)

2004-09-01  Joel Brobecker  <brobecker@gnat.com>

        * mips-tdep.c (set_saved_reg_info): New function.
        (mips32_heuristic_proc_desc): Use set_saved_reg_info to compute
        PROG_REG_MASK and PROC_REG_OFFSET.

Tested on mips-irix. Fixes about 250 fails.
OK to apply?

-- 
Joel

Attachment: unwind.diff
Description: Text document


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