This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/15379] New: step corrupts stack
- From: "jan dot smets at alcatel-lucent dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 18 Apr 2013 19:06:48 +0000
- Subject: [Bug remote/15379] New: step corrupts stack
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15379
Bug #: 15379
Summary: step corrupts stack
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: remote
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.smets@alcatel-lucent.com
Classification: Unclassified
As reported here by someone else :
http://sourceware.org/ml/gdb/2011-05/msg00001.html
Applying the patch resolved the issue. It would be a petty if it got lost.
Thanks.
--- gdb-7.5.1/gdb/infrun.c 2012-09-17 03:14:55.000000000 -0400
+++ infrun.c 2013-04-18 13:47:43.006178821 -0400
@@ -2994,7 +2994,8 @@
if (singlestep_breakpoints_inserted_p
|| !ptid_equal (ecs->ptid, inferior_ptid)
|| !currently_stepping (ecs->event_thread)
- || ecs->event_thread->prev_pc == breakpoint_pc)
+ || ((software_breakpoint_inserted_here_p (aspace, breakpoint_pc)) &&
+ (ecs->event_thread->prev_pc == breakpoint_pc)))
regcache_write_pc (regcache, breakpoint_pc);
if (RECORD_IS_USED)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.