This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/Prec] Add signal support for process record
- From: Hui Zhu <teawater at gmail dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>, Anthony Green <green at moxielogic dot com>
- Date: Tue, 1 Sep 2009 12:34:53 +0800
- Subject: Re: [RFA/Prec] Add signal support for process record
- References: <daef60380908270835x6c3a6293s2c71f8c6195ea738@mail.gmail.com> <daef60380908292003n208cd9e2q8f9db45e918000f0@mail.gmail.com> <daef60380908310009r22a6fe91m5d00d9e9e4349e21@mail.gmail.com> <4A9C0B56.1030804@vmware.com>
On Tue, Sep 1, 2009 at 01:41, Michael Snyder<msnyder@vmware.com> wrote:
> Hui Zhu wrote:
>>
>> Hi guys,
>>
>> After discussion with Michael, ?we decide to deal with this issue step by
>> step.
>> This is the fix bug patch. ?It will fix the after get sig, inferior
>> get a lot of sig. ?Please help me with it.
>
> This takes care of the immediate problem, which is that the
> signals get delivered over and over during the record mode.
>
> Please check this in.
Thanks. Checked in.
Hui
>
>
>> 2009-08-31 ?Hui Zhu ?<teawater@gmail.com>
>>
>> ? ? ? ?* record.c (record_resume_siggnal): Deleted.
>> ? ? ? ?(record_resume): Ditto.
>> ? ? ? ?(record_wait): Change record_resume_siggnal to
>> ? ? ? ?TARGET_SIGNAL_0.
>>
>> ---
>> ?record.c | ? ?4 +---
>> ?1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> --- a/record.c
>> +++ b/record.c
>> @@ -514,7 +514,6 @@ record_close (int quitting)
>> ?}
>>
>> ?static int record_resume_step = 0;
>> -static enum target_signal record_resume_siggnal;
>> ?static int record_resume_error;
>>
>> ?static void
>> @@ -522,7 +521,6 @@ record_resume (struct target_ops *ops, p
>> ? ? ? ? ? ? ? ?enum target_signal siggnal)
>> ?{
>> ? record_resume_step = step;
>> - ?record_resume_siggnal = siggnal;
>>
>> ? if (!RECORD_IS_REPLAY)
>> ? ? {
>> @@ -638,7 +636,7 @@ record_wait (struct target_ops *ops,
>> ? ? ? ? ? ? ? ? ? ? ? ?}
>> ? ? ? ? ? ? ? ? ? ? ?record_beneath_to_resume
>> (record_beneath_to_resume_ops,
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?ptid, 1,
>> - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? record_resume_siggnal);
>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? TARGET_SIGNAL_0);
>> ? ? ? ? ? ? ? ? ? ? ?continue;
>> ? ? ? ? ? ? ? ? ? ?}
>> ? ? ? ? ? ? ? ?}
>
>