projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove ui_out_destroy
[deliverable/binutils-gdb.git]
/
gdb
/
core-regset.c
diff --git
a/gdb/core-regset.c
b/gdb/core-regset.c
index 6d7f546b5419624a4aadf1bc0e441d123d5ec6fd..59cadb6bad85a90df093173c0cb643ab7de650a4 100644
(file)
--- a/
gdb/core-regset.c
+++ b/
gdb/core-regset.c
@@
-1,7
+1,6
@@
/* Machine independent GDB support for core files on systems using "regsets".
/* Machine independent GDB support for core files on systems using "regsets".
- Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2003, 2007
- Free Software Foundation, Inc.
+ Copyright (C) 1993-2016 Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-35,8
+34,6
@@
#include "regcache.h"
#include <fcntl.h>
#include "regcache.h"
#include <fcntl.h>
-#include <errno.h>
-#include "gdb_string.h"
#include <time.h>
#ifdef HAVE_SYS_PROCFS_H
#include <sys/procfs.h>
#include <time.h>
#ifdef HAVE_SYS_PROCFS_H
#include <sys/procfs.h>
@@
-59,7
+56,9
@@
static void
fetch_core_registers (struct regcache *regcache,
static void
fetch_core_registers (struct regcache *regcache,
- char *core_reg_sect, unsigned core_reg_size, int which,
+ char *core_reg_sect,
+ unsigned core_reg_size,
+ int which,
CORE_ADDR reg_addr)
{
gdb_gregset_t gregset;
CORE_ADDR reg_addr)
{
gdb_gregset_t gregset;
@@
-85,8
+84,9
@@
fetch_core_registers (struct regcache *regcache,
else
{
memcpy (&fpregset, core_reg_sect, sizeof (fpregset));
else
{
memcpy (&fpregset, core_reg_sect, sizeof (fpregset));
- if (gdbarch_fp0_regnum (current_gdbarch) >= 0)
- supply_fpregset (regcache, (const gdb_fpregset_t *) fpregset_p);
+ if (gdbarch_fp0_regnum (get_regcache_arch (regcache)) >= 0)
+ supply_fpregset (regcache,
+ (const gdb_fpregset_t *) fpregset_p);
}
break;
}
break;
This page took
0.023829 seconds
and
4
git commands to generate.