aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-01-13 09:30:30 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:41 -0700
commit2117c711ae07700adb57ea5b5ca61e4c32d7e3d2 (patch)
tree11d83657fb461542a058900c25dd225088c0dc25 /gdb/remote.c
parente88ef65ce5f5ec33931c71c2c7a1f490b90ddd44 (diff)
downloadgdb-2117c711ae07700adb57ea5b5ca61e4c32d7e3d2.zip
gdb-2117c711ae07700adb57ea5b5ca61e4c32d7e3d2.tar.gz
gdb-2117c711ae07700adb57ea5b5ca61e4c32d7e3d2.tar.bz2
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 2f079ca..537221a 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -9434,7 +9434,7 @@ remote_read_description (struct target_ops *target)
/* Do not try this during initial connection, when we do not know
whether there is a running but stopped thread. */
if (!target_has_execution || ptid_equal (inferior_ptid, null_ptid))
- return NULL;
+ return target->beneath->to_read_description (target->beneath);
if (!VEC_empty (remote_g_packet_guess_s, data->guesses))
{
@@ -9453,7 +9453,7 @@ remote_read_description (struct target_ops *target)
an architecture, but it's too tricky to do safely. */
}
- return NULL;
+ return target->beneath->to_read_description (target->beneath);
}
/* Remote file transfer support. This is host-initiated I/O, not