This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: remote gdb debug and disassemble


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]