projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more fixes for inavlid memory accesses triggered by corrupt files.
[deliverable/binutils-gdb.git]
/
gdb
/
amd64-nat.c
diff --git
a/gdb/amd64-nat.c
b/gdb/amd64-nat.c
index 818dd758376e09c0384c24db866ab650907fd4ba..17552a6b81b5e48c66f8df7fa1d2e3c97d196008 100644
(file)
--- a/
gdb/amd64-nat.c
+++ b/
gdb/amd64-nat.c
@@
-1,6
+1,6
@@
/* Native-dependent code for AMD64.
/* Native-dependent code for AMD64.
- Copyright (C) 2003
, 2004, 2007, 2008
Free Software Foundation, Inc.
+ Copyright (C) 2003
-2014
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-21,11
+21,9
@@
#include "gdbarch.h"
#include "regcache.h"
#include "gdbarch.h"
#include "regcache.h"
-#include "gdb_assert.h"
-#include "gdb_string.h"
-
#include "i386-tdep.h"
#include "amd64-tdep.h"
#include "i386-tdep.h"
#include "amd64-tdep.h"
+#include "amd64-nat.h"
/* The following bits of code help with implementing debugging 32-bit
code natively on AMD64. The idea is to define two mappings between
/* The following bits of code help with implementing debugging 32-bit
code natively on AMD64. The idea is to define two mappings between
@@
-58,7
+56,7
@@
amd64_native_gregset_reg_offset (struct gdbarch *gdbarch, int regnum)
gdb_assert (regnum >= 0);
gdb_assert (regnum >= 0);
- if (gdbarch_
ptr_bit (gdbarch)
== 32)
+ if (gdbarch_
bfd_arch_info (gdbarch)->bits_per_word
== 32)
{
reg_offset = amd64_native_gregset32_reg_offset;
num_regs = amd64_native_gregset32_num_regs;
{
reg_offset = amd64_native_gregset32_reg_offset;
num_regs = amd64_native_gregset32_num_regs;
@@
-95,7
+93,7
@@
amd64_supply_native_gregset (struct regcache *regcache,
int num_regs = amd64_native_gregset64_num_regs;
int i;
int num_regs = amd64_native_gregset64_num_regs;
int i;
- if (gdbarch_
ptr_bit (gdbarch)
== 32)
+ if (gdbarch_
bfd_arch_info (gdbarch)->bits_per_word
== 32)
num_regs = amd64_native_gregset32_num_regs;
if (num_regs > gdbarch_num_regs (gdbarch))
num_regs = amd64_native_gregset32_num_regs;
if (num_regs > gdbarch_num_regs (gdbarch))
@@
-126,7
+124,7
@@
amd64_collect_native_gregset (const struct regcache *regcache,
int num_regs = amd64_native_gregset64_num_regs;
int i;
int num_regs = amd64_native_gregset64_num_regs;
int i;
- if (gdbarch_
ptr_bit (gdbarch)
== 32)
+ if (gdbarch_
bfd_arch_info (gdbarch)->bits_per_word
== 32)
{
num_regs = amd64_native_gregset32_num_regs;
{
num_regs = amd64_native_gregset32_num_regs;
This page took
0.027016 seconds
and
4
git commands to generate.