* Testing gdb/monitor.c
@ 2008-07-03 14:00 Pedro Alves
2008-07-03 18:58 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2008-07-03 14:00 UTC (permalink / raw)
To: gdb-patches
Guys,
If I wanted to do some changes to the monitor target(s) (monitor.c),
what's the best and easiest way to test them? I never used this
target before. Do I need hardware for that, or is there
some (maintaned) --target that uses it with a simulator? Or?
--
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Testing gdb/monitor.c
2008-07-03 14:00 Testing gdb/monitor.c Pedro Alves
@ 2008-07-03 18:58 ` Michael Snyder
2008-07-04 10:58 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2008-07-03 18:58 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
On Thu, 2008-07-03 at 14:59 +0100, Pedro Alves wrote:
> Guys,
>
> If I wanted to do some changes to the monitor target(s) (monitor.c),
> what's the best and easiest way to test them? I never used this
> target before. Do I need hardware for that, or is there
> some (maintaned) --target that uses it with a simulator? Or?
Hmmm...
The "monitor" target is for debugging a "bare metal" development
board that has no operating system, and doesn't even have a gdb
"stub" that can communicate using the remote protocol.
It works by sending "rom monitor" type commands and interpreting
their output.
Such a system is unlikely to implement threads.
I understand your desire to canonicalize target thread behavior, though.
I don't know of any way to test the monitor target, except
by using real hardware that has a rom monitor for which gdb
has a syntax spec.
It would certainly be possible to construct a gdbreplay-like
software emulation that would mimic a monitor target, but you
would still need a real one from which to record some sessions.
The return on investment would probably be small, though...
;-/
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Testing gdb/monitor.c
2008-07-03 18:58 ` Michael Snyder
@ 2008-07-04 10:58 ` Pedro Alves
0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2008-07-04 10:58 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches
Thanks Michael,
On Thursday 03 July 2008 19:57:54, Michael Snyder wrote:
> On Thu, 2008-07-03 at 14:59 +0100, Pedro Alves wrote:
> > Guys,
> >
> > If I wanted to do some changes to the monitor target(s) (monitor.c),
> > what's the best and easiest way to test them? I never used this
> > target before. Do I need hardware for that, or is there
> > some (maintaned) --target that uses it with a simulator? Or?
>
> Hmmm...
>
> The "monitor" target is for debugging a "bare metal" development
> board that has no operating system, and doesn't even have a gdb
> "stub" that can communicate using the remote protocol.
>
> It works by sending "rom monitor" type commands and interpreting
> their output.
>
> Such a system is unlikely to implement threads.
> I understand your desire to canonicalize target thread behavior, though.
>
> I don't know of any way to test the monitor target, except
> by using real hardware that has a rom monitor for which gdb
> has a syntax spec.
>
> It would certainly be possible to construct a gdbreplay-like
> software emulation that would mimic a monitor target, but you
> would still need a real one from which to record some sessions.
>
> The return on investment would probably be small, though...
> ;-/
"probably"? :-)
--
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-04 10:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-03 14:00 Testing gdb/monitor.c Pedro Alves
2008-07-03 18:58 ` Michael Snyder
2008-07-04 10:58 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox