public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [Help] About the two debug modes of ARM
@ 2010-07-06 14:25 xingxing pan
  2010-07-06 14:48 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: xingxing pan @ 2010-07-06 14:25 UTC (permalink / raw)
  To: gdb, matthew.gretton-dann, ks, will.deacon

From the ARM11 reference manual, I know ARM11 has two debug modes, the
Halting mode and the Monitor Mode.
When we use debuggers to debug a program, often there are also two
modes. The remote debugging, the debugger runs on the host, the
debuggee runs on the target, and the debugger communicates with the
core through something like JTAG. The native debugging, the debugger
and debuggee run on the same computer.

Here are my questions.
(1)Dose the Halting mode and the Monitor mode correspond to Remote
debugging and Native debugging respectively?
(2)Some cores like ARM920 don't have the Monitor mode. Dose it means
that when we are in native debugging on that cores, we can not use the
hardware breakpoints and watchpoints?

Thank you!

Forandom

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [Help] About the two debug modes of ARM
  2010-07-06 14:25 [Help] About the two debug modes of ARM xingxing pan
@ 2010-07-06 14:48 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2010-07-06 14:48 UTC (permalink / raw)
  To: 'xingxing pan', gdb, Matthew Gretton-Dann, ks

Hi,

> From the ARM11 reference manual, I know ARM11 has two debug modes, the
> Halting mode and the Monitor Mode.
> When we use debuggers to debug a program, often there are also two
> modes. The remote debugging, the debugger runs on the host, the
> debuggee runs on the target, and the debugger communicates with the
> core through something like JTAG. The native debugging, the debugger
> and debuggee run on the same computer.

Right, those are the usual two debugging scenarios.
 
> Here are my questions.
> (1)Dose the Halting mode and the Monitor mode correspond to Remote
> debugging and Native debugging respectively?

Halting Mode means that the core is being debugged by an external
JTAG debugger. Monitor mode means that the debugging is performed
natively via co-processor or memory-mapped debug registers and 
debug events are handled via exceptions.

> (2)Some cores like ARM920 don't have the Monitor mode. Dose it means
> that when we are in native debugging on that cores, we can not use the
> hardware breakpoints and watchpoints?

You will need an external debugger in order to use hardware watchpoints
or breakpoints on the ARM920. The 926 has monitor mode implemented using
the EmbeddedICE-RT logic, so you can use the hardware resources there [with
the relevant Kernel support].

Hope that helps,

Will


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-06 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-06 14:25 [Help] About the two debug modes of ARM xingxing pan
2010-07-06 14:48 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).