[PATCH] Add interpreter support
Keith Seitz
keiths@redhat.com
Wed Feb 19 08:29:00 GMT 2003
Hi,
This patch should "fix" things. It isn't perfect, but at least insight
won't crash anymore. (The "-nw" option won't work anymore, either. You
now need to use "-i=console" instead.)
There's one or two hacks in it (init_ui_hook is still used), but those
will go away when there's a resolution on the gdb side of how to best
handle passing argv[0] around.
Please let me know if there are any more problems.
Keith
ChangeLog
2003-02-18 Keith Seitz <keiths@redhat.com>
* generic/gdbtk-main.c (main): Change name of intepreter to
"insight".
* generic/gdbtk.h: Add ifdef wrappers.
(gdbtk_init): Declare.
(gdbtk_source_start_file): Declare.
* generic/gdbtk.c (gdbtk_init): Export.
Reomve init_ui_hook stuff.
Do not add hooks here anymore (moved into interps).
Do not muck with gdbk_stdout et al (moved into interps).
(gdbtk_source_start_file): Code ripped out of gdbtk_init
which deals with sourcing the main startup file.
(gdbtk_init_1): Hack: New function.
(argv0): Hack: New static global.
(tk_init): Moved to gdbtk-interps.c.
(gdbtk_resume): Likewise.
(gdbtk_suspend): Likewise.
(gdbtk_prompt_p): Likewise.
(gdbtk_exec): Likewise.
(gdbtk_command_loop): Likewise.
(_initialize_gdbtk): Move interpreter stuff to gdbtk-interps.c.
Hack: Add new init_ui_hook.
* generic/gdbtk-interps.c: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insight-interp.patch
Type: text/x-patch
Size: 13703 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/insight/attachments/20030219/582a8f1d/attachment.bin>
More information about the Insight
mailing list