summaryrefslogtreecommitdiff
path: root/gdb/mips-nat.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-03-28 19:28:26 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-03-28 19:28:26 +0000
commit0b0d6c3fa7fe45549ce89c70f896a11d5f4cff5a (patch)
tree5a14e1eb1739e4088d1d6eab86cf51ba05c797db /gdb/mips-nat.c
parent53f6119fc612d594c69e8bba420f571c65b74c17 (diff)
* breakpoint.c (breakpoint_re_set_one): Fix storage leak.
* breakpoint.c (enable_breakpoint): Don't enable watchpoint if it went out of scope. * exec.c (exec_close): Fix storage leak. * exec.c (exec_file_command): Make sure that bfd doesn't realign the output sections when patching an executable. * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR when writing all registers. * mips-tdep.c (mips_push_dummy_frame): Save floating point registers at the right offset in the dummy frame. * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc, stStaticProc and stEnd symbols as they are generated by gcc-2.x. * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
Diffstat (limited to 'gdb/mips-nat.c')
-rw-r--r--gdb/mips-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c
index d7c28b5487..b585850e91 100644
--- a/gdb/mips-nat.c
+++ b/gdb/mips-nat.c
@@ -125,7 +125,7 @@ store_inferior_registers (regno)
|| regno == FCRIR_REGNUM || regno == FP_REGNUM
|| (regno >= FIRST_EMBED_REGNUM && regno <= LAST_EMBED_REGNUM))
continue;
- regaddr = register_addr (regno, 1);
+ regaddr = REGISTER_PTRACE_ADDR (regno);
errno = 0;
ptrace (6, inferior_pid, (PTRACE_ARG3_TYPE) regaddr,
read_register (regno));