bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What to send in the remote protocol for a breakpoint?


From: Andrew Cagney
Subject: Re: What to send in the remote protocol for a breakpoint?
Date: Thu, 12 Jul 2001 16:15:36 -0400
User-agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.2) Gecko/20010707

Found the answer: send an "S05" packet. This is also the correct
response to send for a single-step interrupt, so gdb will process the
single-step correctly.


Just FYI,

The exact numbers are defined by ``gdb/defs.h/enum target_signal''. TARGET_SIGNAL_INT (2) indicates that the program was interrupted. TARGET_SIGNAL_TRAP (5) indicates that a breakpoint was hit. A single-step is kind of like a magic breakpoint.

        Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]