This is the mail archive of the gdb-prs@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]

gdb/330: stack tracing doesn't work on mips-wrs-vxworks platform



>Number:         330
>Category:       gdb
>Synopsis:       stack tracing doesn't work on mips-wrs-vxworks platform
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 02 14:28:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     don@sandvine.com
>Release:        5.1.1
>Organization:
>Environment:
mips-wrs-vxworks
cross from cygwin
>Description:
Problem is the same regardless of whether -g is used or not in source files.
On a stack trace, the heuristic approach is used.
The mips_frame_chain() ends up with -1 as the saved_pc,
and the stack cannot be unwound.

The target is vxworks on mips. The code was compiled with gcc 3.0.3.

in mips-tdep.c, in find_proc_desc() , non_heuristic_proc_desc() always returns null. 
>How-To-Repeat:
In the following code, run 'Entry3', and then step into Entry2, then run 'bt'. You will get 'Entry2' correctly, then -1 for the pc for Entry3, and we stop.
                        Entry2:
0x80023c50  27bdffc8    addiu           sp,sp,-56
0x80023c54  ffbf0030    sd              ra,48(sp)
0x80023c58  ffbe0028    sd              s8,40(sp)
0x80023c5c  03a0f02d    dmove           s8,sp
0x80023c60  afc00020    sw              zero,32(s8)
0x80023c64  0c008f06    jal             Entry1
0x80023c68  00000000    nop
0x80023c6c  03c0e82d    dmove           sp,s8
0x80023c70  dfbf0030    ld              ra,48(sp)
0x80023c74  dfbe0028    ld              s8,40(sp)
0x80023c78  27bd0038    addiu           sp,sp,56
0x80023c7c  03e00008    jr              ra
0x80023c80  00000000    nop
0x80023c84  00000000    nop
                        Entry3:
0x80023c88  27bdffc8    addiu           sp,sp,-56
0x80023c8c  ffbf0030    sd              ra,48(sp)
0x80023c90  ffbe0028    sd              s8,40(sp)
0x80023c94  03a0f02d    dmove           s8,sp
0x80023c98  afc00020    sw              zero,32(s8)
0x80023c9c  0c008f14    jal             Entry2
0x80023ca0  00000000    nop
0x80023ca4  03c0e82d    dmove           sp,s8
0x80023ca8  dfbf0030    ld              ra,48(sp)
0x80023cac  dfbe0028    ld              s8,40(sp)
0x80023cb0  27bd0038    addiu           sp,sp,56
0x80023cb4  03e00008    jr              ra
0x80023cb8  00000000    nop
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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