Chandra Shekhar Kumar | 13 Jun 2005 12:51
Favicon

Re: Remote Debugging with gdbserver: HELP NEEDED on arm-device

On Mon, 2005-06-13 at 15:00, Chandra Shekhar Kumar wrote:
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
-- -- Regards, Chandra Shekhar http://cskumar9.tripod.com


_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://lists.gnu.org/mailman/listinfo/gdb
Janine E. Galvin | 13 Jun 2005 06:06
Picon
Favicon

displaying variables

Hi,
I'm very new to using gdb/ddd and I'm not sure where to get help or if this is
the correct place.  If not, could somebody please redirect me.

I am using ddd to help debug modifications I'm making to an existing cfd
software package written in fortran.  I cannot seem to display some variables
at certain points in the program.  I get the error: no symbol ' ' in current
context.  Is there anyway to make the variable of interest accessible in the
current context?  The variables that won't display are variables that are
defined in module statements and are subsequently 'used' in the subroutines
from which I would like to access the variable. These variables do not show up
in the list generated by info locals

Any help would be greatly appreciated.

Thanks,
Janine
Chandra Shekhar Kumar | 13 Jun 2005 11:30
Favicon

Remote Debugging with gdbserver: HELP NEEDED on arm-device

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
_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://lists.gnu.org/mailman/listinfo/gdb

Gmane