This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: mi/2424: When stopped at temporary breakpoint, mi-message notcorrect
- From: Aleksandar Ristovski <aristovski at qnx dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 5 Mar 2008 16:18:01 -0000
- Subject: Re: mi/2424: When stopped at temporary breakpoint, mi-message notcorrect
- Reply-to: Aleksandar Ristovski <aristovski at qnx dot com>
The following reply was made to PR mi/2424; it has been noted by GNATS.
From: Aleksandar Ristovski <aristovski@qnx.com>
To: gdb-gnats@sources.redhat.com, nobody@sources.redhat.com
Cc:
Subject: Re: mi/2424: When stopped at temporary breakpoint, mi-message not
correct
Date: Wed, 05 Mar 2008 11:09:09 -0500
This is a multi-part message in MIME format.
--------------030001060903070709020804
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
gdb-gnats@sources.redhat.com wrote:
> Thank you very much for your problem report.
> It has the internal identification `mi/2424'.
> The individual assigned to look at your
> report is: unassigned.
>
>> Category: mi
>> Responsible: unassigned
>> Synopsis: When stopped at temporary breakpoint, mi-message not correct
>> Arrival-Date: Wed Mar 05 15:08:05 UTC 2008
>
Would this be a proper fix?
--------------030001060903070709020804
Content-Type: text/plain;
name="infrun.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="infrun.c.diff"
Index: gdb/infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.266
diff -u -p -r1.266 infrun.c
--- gdb/infrun.c 29 Jan 2008 22:47:19 -0000 1.266
+++ gdb/infrun.c 5 Mar 2008 16:08:02 -0000
@@ -3151,11 +3151,6 @@ Further execution is probably impossible
}
}
- /* Delete the breakpoint we stopped at, if it wants to be deleted.
- Delete any breakpoint that is to be deleted at the next stop. */
-
- breakpoint_auto_delete (stop_bpstat);
-
/* If an auto-display called a function and that got a signal,
delete that auto-display to avoid an infinite recursion. */
@@ -3292,6 +3287,9 @@ Further execution is probably impossible
}
done:
+ /* Delete the breakpoint we stopped at, if it wants to be deleted.
+ Delete any breakpoint that is to be deleted at the next stop. */
+ breakpoint_auto_delete (stop_bpstat);
annotate_stopped ();
observer_notify_normal_stop (stop_bpstat);
}
--------------030001060903070709020804--