mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
* target.c (find_run_target): Remove.
* target.h (find_run_target): Remove.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-06-27 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target.c (find_run_target): Remove.
|
||||||
|
* target.h (find_run_target): Remove.
|
||||||
|
|
||||||
2013-06-27 Tom Tromey <tromey@redhat.com>
|
2013-06-27 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* corelow.c (core_gdbarch): Now static.
|
* corelow.c (core_gdbarch): Now static.
|
||||||
|
24
gdb/target.c
24
gdb/target.c
@ -3627,30 +3627,6 @@ return_minus_one (void)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Find a single runnable target in the stack and return it. If for
|
|
||||||
some reason there is more than one, return NULL. */
|
|
||||||
|
|
||||||
struct target_ops *
|
|
||||||
find_run_target (void)
|
|
||||||
{
|
|
||||||
struct target_ops **t;
|
|
||||||
struct target_ops *runable = NULL;
|
|
||||||
int count;
|
|
||||||
|
|
||||||
count = 0;
|
|
||||||
|
|
||||||
for (t = target_structs; t < target_structs + target_struct_size; ++t)
|
|
||||||
{
|
|
||||||
if ((*t)->to_can_run && target_can_run (*t))
|
|
||||||
{
|
|
||||||
runable = *t;
|
|
||||||
++count;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (count == 1 ? runable : NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find the next target down the stack from the specified target.
|
* Find the next target down the stack from the specified target.
|
||||||
*/
|
*/
|
||||||
|
@ -1948,8 +1948,6 @@ extern void find_default_attach (struct target_ops *, char *, int);
|
|||||||
extern void find_default_create_inferior (struct target_ops *,
|
extern void find_default_create_inferior (struct target_ops *,
|
||||||
char *, char *, char **, int);
|
char *, char *, char **, int);
|
||||||
|
|
||||||
extern struct target_ops *find_run_target (void);
|
|
||||||
|
|
||||||
extern struct target_ops *find_target_beneath (struct target_ops *);
|
extern struct target_ops *find_target_beneath (struct target_ops *);
|
||||||
|
|
||||||
/* Read OS data object of type TYPE from the target, and return it in
|
/* Read OS data object of type TYPE from the target, and return it in
|
||||||
|
Reference in New Issue
Block a user