gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gdb] Remote Debugging with gdbserver: HELP NEEDED on arm-device


From: Chandra Shekhar Kumar
Subject: [Gdb] Remote Debugging with gdbserver: HELP NEEDED on arm-device
Date: Mon, 13 Jun 2005 15:00:35 +0530

1. We have built gdbserver with --host=arm-linux --target=arm-linux from the original source of gdbserver which comes with gdb 6.3 (source code)

2. Copied gdbserver to arm-device at /nand

3. Copied /usr/local/arm/3.4.1/arm-linux/lib/libthread_db-1.0.so (which comes with ToolChain) at /nand

Now gdbserver is ready on device.

4. We have built gdb with --host=i686-pc-linux-gnu --target=arm-linux from the original source of  gdb 6.3

Now gdb is ready on the linux x86(host).

5.
arm-device> ./bobsled &
pid = 155

arm-device> ./gdbserver /dev/tty --attach 155
Attached; pid = 155
Remote debugging using /dev/tty

6. linux-x86> gdb
GNU gdb 6.3
Copyright 2004 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=arm-linux".

(gdb) file bobsled
Reading symbols from /home/cskumar/deleteme/ws_mk/app/bin/ARM-onyx/debug/bobsled...done.

(gdb) file _data/MKResources/MortalKombat_DA.so
Load new symbol table from "/home/cskumar/deleteme/ws_mk/app/bin/ARM-onyx/debug/_data/MKResources/MortalKombat_DA.so"? (y or n) y
Reading symbols from /home/cskumar/deleteme/ws_mk/app/bin/ARM-onyx/debug/_data/MKResources/MortalKombat_DA.so...done.

(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Cannot access memory at address 0x75ab0
warning: shared library handler failed to enable breakpoint


(gdb) c
Continuing.
                                                                                                                            
Program received signal SIGSEGV, Segmentation fault.
0x40584f0c in ?? ()
(gdb) where
#0  0x40584f0c in ?? ()
(gdb) b MK<TAB>
Display all 291 possibilities? (y or n)
(gdb) b MKGame<TAB>
MKGame.cpp     MKGame.h       MKGameUtils.h
(gdb) list
1       //
2       // MKProfileDB.cpp - Definition of MKProfileDB functions.
3       //
4       // Copyright (C) 2004-2005 Wildseed Ltd., All Rights Reserved.
5       //
6
7       #include "gw_minicom.h"
8       #include "gw_bdb.h"
9       #include "gw_store_types.h"
10      #include "gw_store_interfaces.h"
(gdb)


Can someone help us in this regard because the gdb-stack is not shown.

-- 
Regards,

Chandra Shekhar
http://cskumar9.tripod.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]