This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: remote gdb debug and disassemble
- From: Chris Zankel <zankel at tensilica dot com>
- To: Holger Schurig <h dot schurig at mn-logistik dot de>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 21 Aug 2002 17:25:44 -0700
- Subject: Re: [ECOS] remote gdb debug and disassemble
- References: <200208211838.28208.h.schurig@mn-logistik.de>
Holger Schurig wrote:
When I connect with gdb to my remote target, I do it like this:
$ arm-linux-gdb
(gdb) target remote ramses:2001
0xc0021ad4 in ?? ()
Is there any way to disassemble from here?
(gdb) disassemble 0xc0021ad4
No function contains specified address.
You could also use something like
x/10i 0xc0021ad4
(display 10 instructions starting from 0xc0021ad4)
or, in your case, where $pc is the current program counter:
x/10i $pc
-- Chris
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss