Module Name: src
Committed By: christos
Date: Wed Apr 16 00:32:33 UTC 2014
Modified Files:
src/external/gpl3/gdb/dist/gdb: amd64nbsd-nat.c
Log Message:
supply a fake cs that has has not have SEL_UPL set, so that our trapframe
sniffer works.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c:1.4 src/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c:1.5
--- src/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c:1.4 Thu Oct 3 14:30:44 2013
+++ src/external/gpl3/gdb/dist/gdb/amd64nbsd-nat.c Tue Apr 15 20:32:33 2014
@@ -78,6 +78,7 @@ amd64nbsd_supply_pcb (struct regcache *r
{
struct switchframe sf;
int regnum;
+ long zero = 0;
/* The following is true for NetBSD/amd64:
@@ -119,6 +120,8 @@ amd64nbsd_supply_pcb (struct regcache *r
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;
}