projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce basic_safe_range
[deliverable/binutils-gdb.git]
/
gdb
/
linux-record.c
diff --git
a/gdb/linux-record.c
b/gdb/linux-record.c
index 51253ccf7785dd992f0052339f6715a2bfc93397..11bb990fcae897fa329534601d2138f4b6239b25 100644
(file)
--- a/
gdb/linux-record.c
+++ b/
gdb/linux-record.c
@@
-1,6
+1,6
@@
/* Process record and replay target code for GNU/Linux.
/* Process record and replay target code for GNU/Linux.
- Copyright (C) 2008-201
6
Free Software Foundation, Inc.
+ Copyright (C) 2008-201
9
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-24,6
+24,7
@@
#include "record.h"
#include "record-full.h"
#include "linux-record.h"
#include "record.h"
#include "record-full.h"
#include "linux-record.h"
+#include "gdbarch.h"
/* These macros are the values of the first argument of system call
"sys_ptrace". The values of these macros were obtained from Linux
/* These macros are the values of the first argument of system call
"sys_ptrace". The values of these macros were obtained from Linux
@@
-83,7
+84,7
@@
#define RECORD_Q_XGETQUOTA (('3' << 8) + 3)
#define OUTPUT_REG(val, num) phex_nz ((val), \
#define RECORD_Q_XGETQUOTA (('3' << 8) + 3)
#define OUTPUT_REG(val, num) phex_nz ((val), \
- TYPE_LENGTH (gdbarch_register_type (
get_regcache_arch (regcache
), (num))))
+ TYPE_LENGTH (gdbarch_register_type (
regcache->arch (
), (num))))
/* Record a memory area of length LEN pointed to by register
REGNUM. */
/* Record a memory area of length LEN pointed to by register
REGNUM. */
@@
-104,7
+105,7
@@
record_linux_sockaddr (struct regcache *regcache,
{
gdb_byte *a;
int addrlen;
{
gdb_byte *a;
int addrlen;
- struct gdbarch *gdbarch =
get_regcache_arch (regcache
);
+ struct gdbarch *gdbarch =
regcache->arch (
);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
if (!addr)
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
if (!addr)
@@
-141,7
+142,7
@@
record_linux_msghdr (struct regcache *regcache,
struct linux_record_tdep *tdep, ULONGEST addr)
{
gdb_byte *a;
struct linux_record_tdep *tdep, ULONGEST addr)
{
gdb_byte *a;
- struct gdbarch *gdbarch =
get_regcache_arch (regcache
);
+ struct gdbarch *gdbarch =
regcache->arch (
);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
CORE_ADDR tmpaddr;
int tmpint;
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
CORE_ADDR tmpaddr;
int tmpint;
@@
-242,7
+243,7
@@
record_linux_system_call (enum gdb_syscall syscall,
struct regcache *regcache,
struct linux_record_tdep *tdep)
{
struct regcache *regcache,
struct linux_record_tdep *tdep)
{
- struct gdbarch *gdbarch =
get_regcache_arch (regcache
);
+ struct gdbarch *gdbarch =
regcache->arch (
);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
ULONGEST tmpulongest;
CORE_ADDR tmpaddr;
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
ULONGEST tmpulongest;
CORE_ADDR tmpaddr;
@@
-881,6
+882,7
@@
Do you want to stop the program?"),
if (record_linux_sockaddr (regcache, tdep, tmpulongest, len))
return -1;
}
if (record_linux_sockaddr (regcache, tdep, tmpulongest, len))
return -1;
}
+ break;
case RECORD_SYS_RECV:
regcache_raw_read_unsigned (regcache, tdep->arg2,
&tmpulongest);
case RECORD_SYS_RECV:
regcache_raw_read_unsigned (regcache, tdep->arg2,
&tmpulongest);
This page took
0.028662 seconds
and
4
git commands to generate.