This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: implement "catch signal"
On Mon, 17 Dec 2012 22:25:06 +0100, Tom Tromey wrote:
> I went through all the catchpoints and added a new "catch-type" field
> that lists the type of catchpoint.
Therefore it looks this way?
body=[bkpt={number="1",type="catchpoint",disp="keep",enabled="y",catch-type="signal",what=[signal="SIGINT",signal="SIGTRAP"],times="0"}]
I believe it still may break existing MI clients according to AndrÃ.
This one would be safer:
body=[bkpt={number="1",type="catchpoint",disp="keep",enabled="y",catch-type="signal",what="<signal>",signal=["SIGINT","SIGTRAP"],times="0"}]
Although it is becoming very "unusual".
> Let me know what you think of this.
I find more safe the latter choice but I would prefer to leave the choice on
Andrà with better MI real world experience.
Thanks,
Jan