Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb supply a fake cs that has has not...
details: https://anonhg.NetBSD.org/src/rev/775b2355bdb5
branches: trunk
changeset: 328737:775b2355bdb5
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 16 00:32:33 2014 +0000
description:
supply a fake cs that has has not have SEL_UPL set, so that our trapframe
sniffer works.
diffstat:
external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r a2be68457ea4 -r 775b2355bdb5 external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c Tue Apr 15 22:09:27 2014 +0000
+++ b/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c Wed Apr 16 00:32:33 2014 +0000
@@ -78,6 +78,7 @@
{
struct switchframe sf;
int regnum;
+ long zero = 0;
/* The following is true for NetBSD/amd64:
@@ -119,6 +120,8 @@
regcache_raw_supply (regcache, AMD64_RBP_REGNUM, &pcb->pcb_rbp);
regcache_raw_supply (regcache, AMD64_FS_REGNUM, &pcb->pcb_fs);
regcache_raw_supply (regcache, AMD64_GS_REGNUM, &pcb->pcb_gs);
+ /* fake it to 0 so SEL_UPL is not set (our sniffer looks at CS) */
+ regcache_raw_supply (regcache, AMD64_CS_REGNUM, &zero);
return 1;
}
Home |
Main Index |
Thread Index |
Old Index