This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: Testing gdb/monitor.c


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




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