public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/15379] New: step corrupts stack
@ 2013-04-18 19:06 jan.smets@alcatel-lucent.com
  0 siblings, 0 replies; only message in thread
From: jan.smets@alcatel-lucent.com @ 2013-04-18 19:06 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-18 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-18 19:06 [Bug remote/15379] New: step corrupts stack jan.smets@alcatel-lucent.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).