mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Break the thread of control that implies that a unix child
process will be the default target. * target.c (find_default_run_target, find_default_attach, find_default_create_inferior, return_zero): new functions. (cleanup_target): Make return_zero the default for to_can_run. * exec.c (exec_ops), core.c (core_ops): Replace child_attach and child_create_inferior references with find_default_XXX instead. * target.h (struct target_ops): new field, to_can_run. (find_default_attach, find_default_create_inferior): new prototypes. (target_can_run): new macro. * Also added a zero (default) to_can_run element to all static struct target_ops initializations throughout GDB, except: * inftarg.c (child_ops): Use new child_can_run() to enable child runs. * infrun.c (child_create_inferior): Clean up error handling when no exec file is specified. (child_attach): Don't require exec file.
This commit is contained in:
@@ -1339,6 +1339,7 @@ Specify the name of the machine to connect to.",
|
||||
vx_load_command,
|
||||
vx_lookup_symbol,
|
||||
vx_create_inferior, 0, /* mourn_inferior */
|
||||
0, /* can_run */
|
||||
core_stratum, 0, /* next */
|
||||
1, 1, 0, 0, 0, /* all mem, mem, stack, regs, exec */
|
||||
0, 0, /* Section pointers */
|
||||
@@ -1361,6 +1362,7 @@ struct target_ops vx_run_ops = {
|
||||
vx_load_command,
|
||||
vx_lookup_symbol,
|
||||
0, vx_mourn_inferior,
|
||||
0, /* can_run */
|
||||
process_stratum, 0, /* next */
|
||||
0, 1, 1, 1, 1, /* all mem, mem, stack, regs, exec */
|
||||
/* all_mem is off to avoid spurious msg in "i files" */
|
||||
|
||||
Reference in New Issue
Block a user