Changeset View
Changeset View
Standalone View
Standalone View
devel/gdb/files/patch-gdb-amd64bsd-nat.c
--- gdb/amd64bsd-nat.c.orig 2013-04-09 16:45:15.000000000 +0200 | diff --git gdb/amd64bsd-nat.c gdb/amd64bsd-nat.c | ||||
+++ gdb/amd64bsd-nat.c 2013-04-09 18:53:22.000000000 +0200 | index 66d4289..b1d4a0e 100644 | ||||
@@ -29,6 +29,7 @@ | --- gdb/amd64bsd-nat.c | ||||
+++ gdb/amd64bsd-nat.c | |||||
@@ -28,6 +28,7 @@ | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/ptrace.h> | #include <sys/ptrace.h> | ||||
#include <machine/reg.h> | #include <machine/reg.h> | ||||
+#include <machine/psl.h> | +#include <machine/psl.h> | ||||
#include "amd64-tdep.h" | #include "amd64-tdep.h" | ||||
#include "amd64-nat.h" | #include "amd64-nat.h" | ||||
@@ -81,14 +82,24 @@ | @@ -98,14 +99,24 @@ amd64bsd_store_inferior_registers (struct target_ops *ops, | ||||
if (regnum == -1 || amd64_native_gregset_supplies_p (gdbarch, regnum)) | if (regnum == -1 || amd64_native_gregset_supplies_p (gdbarch, regnum)) | ||||
{ | { | ||||
- struct reg regs; | - struct reg regs; | ||||
+ struct reg regs, oldregs; | + struct reg regs, oldregs; | ||||
+ memset( ®s, 0, sizeof(struct reg)); | + memset( ®s, 0, sizeof(struct reg)); | ||||
+ memset( &oldregs, 0, sizeof(struct reg)); | + memset( &oldregs, 0, sizeof(struct reg)); | ||||
Show All 17 Lines |