Stop reply packet behaviour

View: New views
2 Messages — Rating Filter:   Alert me  

Stop reply packet behaviour

by Guillaume MENANT :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

I'm wondering what should be the stop reply packet content when my software breaks on a software breakpoint.

Does the stop reply reason has to be "watch" followed by the current PC or something else ?

Thanks.

Re: Stop reply packet behaviour

by Daniel Jacobowitz-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, Jan 25, 2008 at 06:10:02AM -0800, Guillaume MENANT wrote:
>
> Hello,
>
> I'm wondering what should be the stop reply packet content when my software
> breaks on a software breakpoint.
>
> Does the stop reply reason has to be "watch" followed by the current PC or
> something else ?

A breakpoint isn't a watchpoint; just report SIGTRAP.

I suggest you run gdbserver on a Windows or Linux system to see a
valid log of the remote protocol conversation.

--
Daniel Jacobowitz
CodeSourcery