* Remote logging over regular remote protocol
@ 2010-05-19 9:33 Bogdan Harjoc
2010-05-19 15:11 ` Pedro Alves
0 siblings, 1 reply; 2+ messages in thread
From: Bogdan Harjoc @ 2010-05-19 9:33 UTC (permalink / raw)
To: gdb
Hello,
Do remote stubs have the ability to send logging messages to the gdb console ?
I am trying to debug a Darwin target and seeing the dmesg (or similar)
output would
be useful. The stub Darwin uses for gdb works over ethernet and I
can't figure out
how to direct the dmesg output to the host I'm debugging from (there
is no serial
port either since it's a Mac, so no serial console as far as I can tell).
The "Remote serial protocol" manual section suggests notification packets would
be usable for this, but "Stop: reply" is the only such packet type listed.
Has someone already done this ? Or am looking at it the wrong way ? Syslog's
remote capabilities seem overkill here.
Thanks,
Bogdan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Remote logging over regular remote protocol
2010-05-19 9:33 Remote logging over regular remote protocol Bogdan Harjoc
@ 2010-05-19 15:11 ` Pedro Alves
0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2010-05-19 15:11 UTC (permalink / raw)
To: gdb; +Cc: Bogdan Harjoc
On Wednesday 19 May 2010 10:32:57, Bogdan Harjoc wrote:
> Do remote stubs have the ability to send logging messages to the gdb console ?
Perhaps you're looking for the `O' packet?
<http://sourceware.org/gdb/current/onlinedocs/gdb/Stop-Reply-Packets.html#Stop-Reply-Packets>
`O XX...'
`XX...' is hex encoding of ascii data, to be written as the program's console output. This can happen at any time while the program is running and the debugger should continue to wait for `W', `T', etc. This reply is not permitted in non-stop mode.
--
Pedro Alves
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-19 15:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-19 9:33 Remote logging over regular remote protocol Bogdan Harjoc
2010-05-19 15:11 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox