aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2003-02-13 18:07:24 +0000
committerKeith Seitz <keiths@redhat.com>2003-02-13 18:07:24 +0000
commite46e5ccdd092ca2d34b2611fc66853498e9ebcfe (patch)
treecbc7726bb65b37d242881034f0dc05e7b2476384 /gdb/main.c
parent53954f5e85300a6ec1e14300df955e0cd8bd757f (diff)
downloadfsf-binutils-gdb-e46e5ccdd092ca2d34b2611fc66853498e9ebcfe.zip
fsf-binutils-gdb-e46e5ccdd092ca2d34b2611fc66853498e9ebcfe.tar.gz
fsf-binutils-gdb-e46e5ccdd092ca2d34b2611fc66853498e9ebcfe.tar.bz2
* 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.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/main.c b/gdb/main.c
index b10277b..656e7d5 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -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. */
{