]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/target.h
change delegation for to_read_description
authorTom Tromey <tromey@redhat.com>
Mon, 13 Jan 2014 16:30:30 +0000 (09:30 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:48:41 +0000 (07:48 -0700)
commit2117c711ae07700adb57ea5b5ca61e4c32d7e3d2
tree11d83657fb461542a058900c25dd225088c0dc25
parente88ef65ce5f5ec33931c71c2c7a1f490b90ddd44
change delegation for to_read_description

This switches to_read_description to the "new normal" delegation
scheme.  This one was a bit trickier than the other changes due to the
way that target_read_description handled delegation.  I examined all
the target implementations of to_read_description and changed the ones
returning NULL to instead delegate.

2014-02-19  Tom Tromey  <tromey@redhat.com>

* arm-linux-nat.c (arm_linux_read_description): Delegate when
needed.
* corelow.c (core_read_description): Delegate when needed.
* remote.c (remote_read_description): Delegate when needed.
* target-delegates.c: Rebuild.
* target.c (target_read_description): Rewrite.
* target.h (struct target_ops) <to_read_description>: Update
comment.  Use TARGET_DEFAULT_RETURN.
gdb/ChangeLog
gdb/arm-linux-nat.c
gdb/corelow.c
gdb/remote.c
gdb/target-delegates.c
gdb/target.c
gdb/target.h