]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/remote-sim.c
remote-sim.c: Don't install a deprecated_xfer_memory method.
authorPedro Alves <palves@redhat.com>
Fri, 6 Sep 2013 18:10:39 +0000 (18:10 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 6 Sep 2013 18:10:39 +0000 (18:10 +0000)
commit146ec4dbcf11fdac62a9f7174f214e6abb5d36dc
treea3291ad67ee4695f13765f86ce9ee856d117950e
parentfcde0081d9ab56137d740a528d2c833998b18dba
remote-sim.c: Don't install a deprecated_xfer_memory method.

Manually tested with a --target=arm-eabi build, and doing things like:

$ arm-eabi-gcc ~/gdb/tests/main.c -o a.out -c -g
$ ./gdb a.out
...
(gdb) tar sim
(gdb) load
(gdb) disassemble 0
Dump of assembler code for function main:
   0x00000000 <+0>:     mov     r12, sp
   0x00000004 <+4>:     push    {r11, r12, lr, pc}
   0x00000008 <+8>:     sub     r11, r12, #4
   0x0000000c <+12>:    sub     sp, sp, #8
   0x00000010 <+16>:    str     r0, [r11, #-16]
   0x00000014 <+20>:    str     r1, [r11, #-20]
   0x00000018 <+24>:    mov     r3, #0
   0x0000001c <+28>:    mov     r0, r3
   0x00000020 <+32>:    sub     sp, r11, #12
   0x00000024 <+36>:    ldm     sp, {r11, sp, pc}
End of assembler dump.
(gdb) p *0 = 1
        0x00000001

gdb/
2013-09-06  Pedro Alves  <palves@redhat.com>

* remote-sim.c (dump_mem): Constify buf parameter.
gdbsim_xfer_inferior_memory): Rename to ...
(gdbsim_xfer_memory): ... this.  Adjust interface as
target_xfer_partial helper.
(gdbsim_xfer_partial): New function.
(init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
Install a to_xfer_partial hook.  Send output to gdb_stdlog.
gdb/ChangeLog
gdb/remote-sim.c