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]

symtab/1195: no local symbol information within nested or nesting procedures


>Number:         1195
>Category:       symtab
>Synopsis:       no local symbol information within nested or nesting procedures
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 13:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jorge Stolfi, CS Dept, UNiversity of Campinas
>Release:        gdb 5.3
>Organization:
>Environment:
intel GNU/Linux Red Hat 2.4.18-14
>Description:
Gdb seems unable to report any local symbol information
within any nested procedure, or any procedure that contains
nested procedures.

I did not see any similar report in the bug database, but 
there may be some relation to problems #1180 or #222.
The latter was dismissed as "pascal-specific", but it
may be in fact an instance of the C problem reported here.
>How-To-Repeat:
Compile the attached program and step through it.
Notice that function arguments are not listed when the 
debugger enters the functions "nested" or "subproc". 
Requests to print local variables of either function report
"No symbol ... in current context". 
>Fix:
None known.  The "info" documentation does not mention 
nested functions.  
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test-gdb.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test-gdb.c"

LyogTGFzdCBlZGl0ZWQgb24gMjAwMy0wNC0yNyAxMDoxMzoyMSBieSBzdG9sZmkgKi8KCmludCBt
YWluKGludCBhcmdjLCBjaGFyICoqYXJndikKewogIHNpbXBsZSgxMSwyMik7CiAgbmVzdGVkKDMz
LDQ0KTsKICByZXR1cm4gMDsKfQoKaW50IHNpbXBsZShpbnQgeCwgaW50IHkpCnsKICBpbnQgdyA9
IHggKyB5OyAKICByZXR1cm4gdyp3Owp9CgppbnQgbmVzdGVkKGludCB4LCBpbnQgeSkKewogIGlu
dCB3ID0geCArIHk7CiAgCiAgaW50IHN1YnByb2MoaW50IHopCiAgICB7CiAgICAgIGludCB0ID0g
eiArIDE7CiAgICAgIHJldHVybiB0KnQ7CiAgICB9CiAgCiAgcmV0dXJuIHN1YnByb2Modyp3KTsK
fQo=


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