Newbie gdb / gdbserver question with x86-64 and -m32 g++ goodness

Michael Snyder msnyder@vmware.com
Fri Jun 18 18:47:00 GMT 2010


> ==============================
> 
> Assuming it is i386:x86-64, setting archi to i386, then connecting
> note: on the gdb side, the executable has been loaded with file
> 
> $ gdb 
> GNU gdb Fedora (6.8-37.el5)
> This GDB was configured as "x86_64-redhat-linux-gnu".
> (gdb) set archi i386:x86-64
> The target architecture is assumed to be i386:x86-64
> (gdb) file hello
> Reading symbols from /home/j/hello...done.
> (gdb) show archi
> The target architecture is assumed to be i386:x86-64
> (gdb) target extended-remote rdev6:2010
> Remote debugging using rdev6:2010
> [New Thread 32667]
> Cannot access memory at address 0x800000008
> (gdb) 

This is the closest to success.  So use this "set archi" setting.

At this point you are running into a second failure:

	Cannot access memory at address 0x800000008

I don't know what that one is about.



More information about the Gdb mailing list