2010-07-26 10:04:07     "Unable to load the executable's loadmap" in gdb

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-07-26 10:04:07     "Unable to load the executable's loadmap" in gdb

Norman Yee (UNITED STATES)

Message: 91729   

 

I am running gdbserver on my BF533 Stamp board.  When I execute the target remote command in gdb on my host, I get "Unable to load the executable's loadmap."  How do you fix this?

 

Here are the details:

 

I'm building a simple hello world app with gcc 4.3.5:

 

bfin-linux-uclibc-gcc -g -o test test.c

 

On my target:

 

root:/tmp> version

kernel:    Linux release 2.6.34.1-ADI-2010R1-pre, build #7 Mon Jul 26 05:38:49 E

DT 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/git-08d8861)

user-dist: release 2009R1, build #4 Mon Jul 26 05:37:52 EDT 2010

root:/tmp> chmod 777 test

root:/tmp> ./test

hello world

root:/tmp> gdbserver localhost:3456 test

Process test created; pid = 154

Listening on port 3456

Remote debugging from host 192.168.0.1

readchar: Got EOF

Remote side has terminated connection.  GDBserver will reopen the connection.

Listening on port 3456

 

On my host:

 

me@my-desktop:~/test$ bfin-linux-uclibc-gcc --version

bfin-linux-uclibc-gcc (ADI-trunk/git-08d8861) 4.3.5

Copyright (C) 2008 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

me@my-desktop:~/test$ bfin-linux-uclibc-gdb test

GNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "--host=i686-pc-linux-gnu --target=bfin-linux-uclibc"

...

(gdb) target remote 192.168.0.2:3456

Remote debugging using 192.168.0.2:3456

Unable to load the executable's loadmap.

QuoteReplyEditDelete

 

 

2010-07-26 15:42:27     Re: "Unable to load the executable's loadmap" in gdb

Mike Frysinger (UNITED STATES)

Message: 91740   

 

the only time i recall seeing that is when there was a mismatch between what was running on the target and what is running on the host.  the stuff running on your Blackfin board was compiled with your current host toolchain right ?

Attachments

    Outcomes