* main.h (struct captured_main_args): Add interpreter_p.
* main.c (captured_main): Initialize interpreter_p from context. * gdb.c (main): Set interpreter_p argument. * Makefile.in (gdb.o): Add dependency for interps.h.
This commit is contained in:
parent
53954f5e85
commit
e46e5ccdd0
5 changed files with 15 additions and 5 deletions
|
@ -229,10 +229,10 @@ captured_main (void *data)
|
|||
#endif
|
||||
|
||||
/* There will always be an interpreter. Either the one passed into
|
||||
this captured main (not yet implemented), or one specified by the
|
||||
user at start up, or the console. Make life easier by always
|
||||
initializing the interpreter to something. */
|
||||
interpreter_p = xstrdup (INTERP_CONSOLE);
|
||||
this captured main, or one specified by the user at start up, or
|
||||
the console. Initialize the interpreter to the one requested by
|
||||
the application. */
|
||||
interpreter_p = xstrdup (context->interpreter_p);
|
||||
|
||||
/* Parse arguments and options. */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue