gdb/260: variables not expanded on the add-symbol-file command line

phil@off.net phil@off.net
Fri Oct 26 05:18:00 GMT 2001


>Number:         260
>Category:       gdb
>Synopsis:       variables not expanded on the add-symbol-file command line
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 14 15:08:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     phil@off.net
>Release:        gdb-5.0rh-5
>Organization:
>Environment:
stock Red Hat Linux 7.1 on i386
>Description:
I have some variables; history values or other variables, it doesn't matter:

(gdb) p module_list+1
$1 = (struct module *) 0x5480e060
(gdb) set $foo=$1
(gdb) p $foo
$2 = (struct module *) 0x5480e060

When I try to use those variables on the add-symbol-file command line, they resolve to 0x0:

(gdb) add-symbol-file /home/phil/projects/izo/fs24/intermezzo.o $foo
add symbol table from file "/home/phil/projects/izo/fs24/intermezzo.o" at
        .text_addr = 0x0

That makes me very sad.  :-(
>How-To-Repeat:

>Fix:

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



More information about the Gdb-prs mailing list