Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: gdb/s390-nat.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/rx-tdep.c ('k') | gdb/s390-tdep.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/s390-nat.c
diff --git a/gdb/s390-nat.c b/gdb/s390-nat.c
index 8fb693eaa563d1927c71496d3bea92e2d2be189f..bad1b437f88ba93306f42e91d47476a4cd902a27 100644
--- a/gdb/s390-nat.c
+++ b/gdb/s390-nat.c
@@ -26,6 +26,7 @@
#include "target.h"
#include "linux-nat.h"
#include "auxv.h"
+#include "gregset.h"
#include "s390-tdep.h"
#include "elf/common.h"
@@ -472,7 +473,7 @@ s390_stopped_by_watchpoint (void)
}
static void
-s390_fix_watch_points (ptid_t ptid)
+s390_fix_watch_points (struct lwp_info *lp)
{
int tid;
@@ -482,9 +483,9 @@ s390_fix_watch_points (ptid_t ptid)
CORE_ADDR watch_lo_addr = (CORE_ADDR)-1, watch_hi_addr = 0;
struct watch_area *area;
- tid = TIDGET (ptid);
+ tid = TIDGET (lp->ptid);
if (tid == 0)
- tid = PIDGET (ptid);
+ tid = PIDGET (lp->ptid);
for (area = watch_base; area; area = area->next)
{
@@ -532,7 +533,7 @@ s390_insert_watchpoint (CORE_ADDR addr, int len, int type,
watch_base = area;
ALL_LWPS (lp)
- s390_fix_watch_points (lp->ptid);
+ s390_fix_watch_points (lp);
return 0;
}
@@ -560,7 +561,7 @@ s390_remove_watchpoint (CORE_ADDR addr, int len, int type,
xfree (area);
ALL_LWPS (lp)
- s390_fix_watch_points (lp->ptid);
+ s390_fix_watch_points (lp);
return 0;
}
« no previous file with comments | « gdb/rx-tdep.c ('k') | gdb/s390-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698