aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-02-06 01:23:00 +0000
committerPedro Alves <palves@redhat.com>2009-02-06 01:23:00 +0000
commit6d097e655a5687059556804d993e03ac4eaff7d8 (patch)
tree945899c5428032bf89252c207fc067bdc6e759da /gdb/target.c
parent947b8855e441f5b8616b7c1861e663a4056d2e49 (diff)
downloadgdb-6d097e655a5687059556804d993e03ac4eaff7d8.zip
gdb-6d097e655a5687059556804d993e03ac4eaff7d8.tar.gz
gdb-6d097e655a5687059556804d993e03ac4eaff7d8.tar.bz2
* remote.c (extended_remote_can_run): Delete.
(init_remote_ops): Don't register it. * target.c (target_get_osdata): Don't check for target_can_run. Instead any target that has already been pushed, otherwise fallback to the default run target..
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 875046f..de33d11 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2218,18 +2218,15 @@ target_get_osdata (const char *type)
char *document;
struct target_ops *t;
- if (target_can_run (&current_target))
- t = &current_target;
- else
+ if (current_target.to_stratum == dummy_stratum)
t = find_default_run_target ("get OS data");
+ else
+ t = current_target.beneath;
if (!t)
return NULL;
- document = target_read_stralloc (t,
- TARGET_OBJECT_OSDATA,
- type);
- return document;
+ return target_read_stralloc (t, TARGET_OBJECT_OSDATA, type);
}
static int