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]

gdb and gdbserver on arm9 platform


i am trying to debug an arm9 (at91rm9200dk) board with gdb 6.1.1. i have
compiled gdb and gdbserver, copied gdbserver to the target, compiled my
target executable with the -g option and copied it to the target. the
program (a simple hello world) runs on the target. i started the gdbserver
on the target (linux 2.4.26vrs1) with "gdbserver myhost:2345 /usr/bin/hello"
and see 'process /usr/bin/hello created; pid = 27' i started gdb on the host
(x86 suse linux 9.1pro) with "gdb /project/hello/hello" with no errors. then
"target remote mytarget:2345" and see:
Remote debugging using mytarget:2345 0x40002aa0 in ?? ()

if i try to step through the program i get the following error:
Cannot access memory at address 0x0
Cannot find bounds of current function

what am i doing wrong. i cant seem to find any reference in the mailing
lists to this problem. i am following the 'building embedded linux systems'
book as closely as i can.

thanks in advance,
Brock Denson
WAIV
bdenson@wa-ventures.com
210 849-1988


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