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/696: `info frame' on a dummy frame appears to be fatal!


>Number:         696
>Category:       gdb
>Synopsis:       `info frame' on a dummy frame appears to be fatal!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 10 18:58:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        2002-09-10
>Organization:
>Environment:
MIPS target IRIX host
>Description:
(Ignore the messed up backtrace :-)

(gdb) print add(2,3)

Breakpoint 2, add (a=2, b=3)
    at /es/scratch/cagney/2002-09-10-generic-dummy-frames/src/gdb/testsuite/gdb.base/callfuncs.c:58
58        return (a + b);
The program being debugged stopped while in a function called from GDB.
When the function (add) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).
(gdb) bt
#0  add (a=2, b=3)
    at /es/scratch/cagney/2002-09-10-generic-dummy-frames/src/gdb/testsuite/gdb.base/callfuncs.c:58
#1  <function called from gdb>
#2  0x00000000 in ?? ()
(gdb) up
#1  <function called from gdb>
Current language:  auto; currently asm
(gdb) info frame
Stack level 1, frame at 0x7fff2f10:
 pc = 0x100015c0 in __start; saved pc 0x0
 called by frame at 0x7fff2f10, caller of frame at 0x7fff2f10
 source language asm.
 Arglist at 0x7fff2f10, args: 

Breakpoint 1, internal_error (
    file=0x102f8cf8 "/es/scratch/cagney/2002-09-10-generic-dummy-frames/src/gdb/blockframe.c", 
    line=1416, string=0x102f8d40 "%s%sAssertion `%s' failed.")
    at /es/scratch/cagney/2002-09-10-generic-dummy-frames/src/gdb/utils.c:747
747       va_start (ap, string);
(top-gdb) up
During symbol reading, type qualifier 'const' ignored.
#1  0x100859e0 in generic_call_dummy_register_unwind (frame=0x103811d8, cache=0x10381200, 
    regnum=29, optimized=0x7fff1af4, lvalp=0x7fff1af8, addrp=0x7fff1b00, realnum=0x7fff1b08, 
    bufferp=0x103a0fd0)
    at /es/scratch/cagney/2002-09-10-generic-dummy-frames/src/gdb/blockframe.c:1416
1416          gdb_assert (registers != NULL);
(top-gdb) 
#2  0x100c8504 in frame_register_unwind (frame=0x103811d8, regnum=29, optimizedp=0x7fff1af4, 
    lvalp=0x7fff1af8, addrp=0x7fff1b00, realnump=0x7fff1b08, bufferp=0x103a0fd0)
    at /es/scratch/cagney/2002-09-10-generic-dummy-frames/src/gdb/frame.c:158
158       frame->register_unwind (frame, &frame->register_unwind_cache, regnum,
(top-gdb) 
>How-To-Repeat:

>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]