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/260: variables not expanded on the add-symbol-file command line



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


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