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

Unified Diff: gdb/nacl-tdep.c

Issue 10823232: Truncate address in amd64_nacl_software_single_step. If breakpoint is set to untruncated address, i… (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: update description Created 8 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/nacl-tdep.c
diff --git a/gdb/nacl-tdep.c b/gdb/nacl-tdep.c
index 6ac49c75b7078453736102c85a2c855b0b71cf66..e7a1a8f40aedf565619f8cf2c1850ab36d357a85 100644
--- a/gdb/nacl-tdep.c
+++ b/gdb/nacl-tdep.c
@@ -132,6 +132,7 @@ amd64_nacl_software_single_step (struct frame_info *frame)
gdbarch = get_frame_arch (frame);
pc = get_frame_register_unsigned (frame, gdbarch_pc_regnum (gdbarch));
+ pc = amd64_nacl_addr_bits_remove (gdbarch, pc);
/* Check if next instruction is rsp sandboxing. If yes, assume current
instruction is rsp modification. */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698