projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix checks for VSX and Altivec availability on Power
[deliverable/binutils-gdb.git]
/
gdb
/
amd64-nat.c
diff --git
a/gdb/amd64-nat.c
b/gdb/amd64-nat.c
index f72842dbf623ac07cf7eb60c232dd11bb1dddc84..ad5df57a3112dd3461026462afaf6d96ddbddf75 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, 2009
Free Software Foundation, Inc.
+ Copyright (C) 2003
-2016
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-21,9
+21,6
@@
#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 "amd64-nat.h"
#include "i386-tdep.h"
#include "amd64-tdep.h"
#include "amd64-nat.h"
@@
-59,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;
@@
-91,12
+88,12
@@
void
amd64_supply_native_gregset (struct regcache *regcache,
const void *gregs, int regnum)
{
amd64_supply_native_gregset (struct regcache *regcache,
const void *gregs, int regnum)
{
- const char *regs = gregs;
+ const char *regs =
(const char *)
gregs;
struct gdbarch *gdbarch = get_regcache_arch (regcache);
int num_regs = amd64_native_gregset64_num_regs;
int i;
struct gdbarch *gdbarch = get_regcache_arch (regcache);
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))
@@
-122,12
+119,12
@@
void
amd64_collect_native_gregset (const struct regcache *regcache,
void *gregs, int regnum)
{
amd64_collect_native_gregset (const struct regcache *regcache,
void *gregs, int regnum)
{
- char *regs = gregs;
+ char *regs =
(char *)
gregs;
struct gdbarch *gdbarch = get_regcache_arch (regcache);
int num_regs = amd64_native_gregset64_num_regs;
int i;
struct gdbarch *gdbarch = get_regcache_arch (regcache);
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.030815 seconds
and
4
git commands to generate.