This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
add-symbol-file and section table?
- From: Ruppert <ru at swb dot siemens dot de>
- To: gdb at sources dot redhat dot com
- Cc: ru at swb dot siemens dot de
- Date: Wed, 15 May 2002 11:24:55 +0200 (MEST)
- Subject: add-symbol-file and section table?
- Reply-to: Ruppert <ru at swb dot siemens dot de>
Hi,
I have a question regarding the add-symbol-file command:
Although I can specify starting addresses for sections
with the -s - switch, these addresses are not added to the
section tables (at least not in insight-5.1). Is this intentional?
The problem I encounter with this is the following: when I
use insight-5.1 in a remote debugging situation, and I try
to disassemble a function from the file which I loaded,
I get the error message "Cannot access memory at address ...".
I have poked around a bit debugging this and have found that
insight accesses the file which I loaded for the code to
disassemble. This ultimately fails because the address of the
function is outside the address ranges of the sections in the section
table.
"maint info sections" confirms this, it does not show sections
from files added with add-symbol-file.
Is there another "recommended" way of notifying insight/gdb
of additional code/data which has been added to a executable?
Regards,
Dieter Ruppert
RTS GmbH
Schwieberdingen/Germany
ru@swb.siemens.de