RFC: implement "catch signal"

Tom Tromey tromey@redhat.com
Mon Dec 3 19:39:00 GMT 2012


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> That MI output is now:

Jan> body=[bkpt={number="1",type="catchpoint",disp="keep",enabled="y",what=[signal="SIGINT",signal="SIGTRAP"],times="0"}]

Jan> vs. for example existing:

Jan> body=[bkpt={number="3",type="catchpoint",disp="keep",enabled="y",what="<any
syscall> ",times="0"}]

Jan> but maybe it is OK this way, MI parsing has never been easy.

Yes, I think it is clearly better this way: we use MI constructs for
representing lists and such.

The "type" of the "what" field is now a bit variable.
That is, it can either be a list or a string, depending on the signal
catchpoint.

Tom



More information about the Gdb-patches mailing list