mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* target.c (target_get_osdata): Check for equal or higher than
process_stratum, not dummy_stratum.
This commit is contained in:
@@ -2218,10 +2218,13 @@ target_get_osdata (const char *type)
|
||||
char *document;
|
||||
struct target_ops *t;
|
||||
|
||||
if (current_target.to_stratum == dummy_stratum)
|
||||
t = find_default_run_target ("get OS data");
|
||||
else
|
||||
/* If we're already connected to something that can get us OS
|
||||
related data, use it. Otherwise, try using the native
|
||||
target. */
|
||||
if (current_target.to_stratum >= process_stratum)
|
||||
t = current_target.beneath;
|
||||
else
|
||||
t = find_default_run_target ("get OS data");
|
||||
|
||||
if (!t)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user