projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
[deliverable/binutils-gdb.git]
/
gdb
/
amd64-linux-nat.c
diff --git
a/gdb/amd64-linux-nat.c
b/gdb/amd64-linux-nat.c
index 4d94065c49c1054ba4feab21e56c614f4c9a6cf9..023d161a90a31d840533a0ee82a9dbd0d538eb37 100644
(file)
--- a/
gdb/amd64-linux-nat.c
+++ b/
gdb/amd64-linux-nat.c
@@
-48,7
+48,6
@@
#include "gregset.h"
#include "amd64-tdep.h"
#include "gregset.h"
#include "amd64-tdep.h"
-#include "amd64-linux-tdep.h"
#include "i386-linux-tdep.h"
#include "amd64-nat.h"
#include "i386-linux-tdep.h"
#include "amd64-nat.h"
@@
-163,19
+162,19
@@
fetch_inferior_registers (int regnum)
elf_gregset_t regs;
if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0)
elf_gregset_t regs;
if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0)
- perror_with_name (
"Couldn't get registers"
);
+ perror_with_name (
_("Couldn't get registers")
);
amd64_supply_native_gregset (current_regcache, ®s, -1);
if (regnum != -1)
return;
}
amd64_supply_native_gregset (current_regcache, ®s, -1);
if (regnum != -1)
return;
}
- if (regnum == -1 ||
regnum >= AMD64_ST0_REGNUM
)
+ if (regnum == -1 ||
!amd64_native_gregset_supplies_p (regnum)
)
{
elf_fpregset_t fpregs;
if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0)
{
elf_fpregset_t fpregs;
if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0)
- perror_with_name (
"Couldn't get floating point status"
);
+ perror_with_name (
_("Couldn't get floating point status")
);
amd64_supply_fxsave (current_regcache, -1, &fpregs);
}
amd64_supply_fxsave (current_regcache, -1, &fpregs);
}
@@
-200,28
+199,28
@@
store_inferior_registers (int regnum)
elf_gregset_t regs;
if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0)
elf_gregset_t regs;
if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0)
- perror_with_name (
"Couldn't get registers"
);
+ perror_with_name (
_("Couldn't get registers")
);
amd64_collect_native_gregset (current_regcache, ®s, regnum);
if (ptrace (PTRACE_SETREGS, tid, 0, (long) ®s) < 0)
amd64_collect_native_gregset (current_regcache, ®s, regnum);
if (ptrace (PTRACE_SETREGS, tid, 0, (long) ®s) < 0)
- perror_with_name (
"Couldn't write registers"
);
+ perror_with_name (
_("Couldn't write registers")
);
if (regnum != -1)
return;
}
if (regnum != -1)
return;
}
- if (regnum == -1 ||
regnum >= AMD64_ST0_REGNUM
)
+ if (regnum == -1 ||
!amd64_native_gregset_supplies_p (regnum)
)
{
elf_fpregset_t fpregs;
if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0)
{
elf_fpregset_t fpregs;
if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0)
- perror_with_name (
"Couldn't get floating point status"
);
+ perror_with_name (
_("Couldn't get floating point status")
);
amd64_collect_fxsave (current_regcache, regnum, &fpregs);
if (ptrace (PTRACE_SETFPREGS, tid, 0, (long) &fpregs) < 0)
amd64_collect_fxsave (current_regcache, regnum, &fpregs);
if (ptrace (PTRACE_SETFPREGS, tid, 0, (long) &fpregs) < 0)
- perror_with_name (
"Couldn't write floating point status"
);
+ perror_with_name (
_("Couldn't write floating point status")
);
return;
}
return;
}
@@
-249,7
+248,7
@@
amd64_linux_dr_get (int regnum)
offsetof (struct user, u_debugreg[regnum]), 0);
if (errno != 0)
#if 0
offsetof (struct user, u_debugreg[regnum]), 0);
if (errno != 0)
#if 0
- perror_with_name (
"Couldn't read debug register"
);
+ perror_with_name (
_("Couldn't read debug register")
);
#else
return 0;
#endif
#else
return 0;
#endif
@@
-270,7
+269,7
@@
amd64_linux_dr_set (int regnum, unsigned long value)
errno = 0;
ptrace (PT_WRITE_U, tid, offsetof (struct user, u_debugreg[regnum]), value);
if (errno != 0)
errno = 0;
ptrace (PT_WRITE_U, tid, offsetof (struct user, u_debugreg[regnum]), value);
if (errno != 0)
- perror_with_name (
"Couldn't write debug register"
);
+ perror_with_name (
_("Couldn't write debug register")
);
}
void
}
void
This page took
0.024373 seconds
and
4
git commands to generate.