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

add-symbol-file parsing


Unlike the documentation says the 'address' argument to 'add-symbol-file'
is not parsed as an expression but directly as an address.

The following commands ...

(gdb) set $text_addr = 0xdeadc0de
(gdb) add-symbol-file /dir/symbol.file $text_addr

.. will end up setting the address to 0 by strtoul down in the code path.

The above will therefor not work. Is there another way I can achieve this?

If this is not possible (in another way) will patches be accepted to make
this an expression?

Mark

-- 
Mark Santcroos                    RIPE Network Coordination Centre
http://www.ripe.net/home/mark/    New Projects Group/TTM


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