mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* 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..
This commit is contained in:
11
gdb/target.c
11
gdb/target.c
@@ -2218,18 +2218,15 @@ target_get_osdata (const char *type)
|
||||
char *document;
|
||||
struct target_ops *t;
|
||||
|
||||
if (target_can_run (¤t_target))
|
||||
t = ¤t_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
|
||||
|
||||
Reference in New Issue
Block a user