123 Commits

Author SHA1 Message Date
Tom Tromey
b73212ab30 add thread enforcement decorators
This adds a couple of decorators that can be used to
mark functions as needing to be run in the gdb thread
or in the gtk thread.

This found at least one bug.
2013-11-03 19:48:27 -07:00
Tom Tromey
ca645d2e80 add frame support
if you have a gdb that can wrap commands (not yet upstream)
then up/down/frame commands will update the source window
when a selected-frame event is available, we can change
the code to use that instead
2013-06-17 20:30:36 -06:00
Tom Tromey
3e79929585 add gui.startup.create_builder
this pulls some repeated code out into a separate function
2013-06-14 15:01:02 -06:00
Tom Tromey
3acd551297 add another link to bugzilla 2013-06-14 13:28:00 -06:00
Tom Tromey
7020755290 allow clicking to set a breakpoint
Clicking in the left gutter of the source window will set a
breakpoint.  Currently the effect of this is somewhat invisible,
because there is no way for the GUI to notice when breakpoints
are created.
2013-06-14 12:04:16 -06:00
Tom Tromey
295c006fa0 filed some bugs for missing bits 2013-06-13 14:55:00 -06:00
Tom Tromey
ef78748b6b note missing events 2013-06-13 07:37:01 -06:00
Tom Tromey
3de33a4fc6 update README 2013-06-12 12:59:20 -06:00
Tom Tromey
3b39f0068b add "gui log" and friends
This adds the "gui log" command, which pops up a window you can use
for logging.

There are also new "gui" subcommands for sending output to a log
window: gui print, gui output, gui printf, and gui dprintf.  These
all work pretty much like their non-gui counterparts, except that the
output goes to the log window.

If you have more than one log window you can specify which one to use
with an "@", like  gui print @1 value
2013-06-12 12:51:43 -06:00
Tom Tromey
b9bd74b346 remove "currying" comment
There's no need for send_to_gtk to be fancier, since we have
functools.partial.
2013-06-12 11:25:16 -06:00
Tom Tromey
1214f22d6b add help to "gui source" 2013-06-12 11:16:27 -06:00
Tom Tromey
33347637ac Change source window title 2013-06-12 11:14:33 -06:00
Tom Tromey
4b5a9b16ed add "info windows" and "delete window"
This adds the "info windows" and "delete window" commands.

"info windows" unfortunately overlaps with the TUI's "info win".
So maybe we should rename this one.

This also adds a new "toplevel" component that knows how to track
windows.
2013-06-12 10:30:12 -06:00
Tom Tromey
199f50ff72 add hack-gdbinit Makefile target
This target adds the needed "source" line to your ~/.gdbinit so that
this extension will always be available.
2013-06-12 09:17:33 -06:00
Tom Tromey
2667cb0617 add an accelerator for "finish" 2013-06-07 14:50:30 -06:00
Tom Tromey
c31ec25531 add "finish" command
This adds the "finish" command to the GUI.
It also wires up the "stop" button, but that still doesn't
seem to work.
2013-06-07 14:47:50 -06:00
Tom Tromey
5fceb3421e move to pygobject and glade
This ports the code to PyGObject, and also changes it to use Glade to
edit the user interface elements.
2013-06-07 11:13:31 -06:00
Tom Tromey
48cf179e8c request an initial size for the source window 2013-06-07 07:18:30 -06:00
Tom Tromey
e26e44eee0 copyright tweak 2013-06-06 20:28:09 -06:00
Tom Tromey
0ec2ec40d0 add README 2013-06-06 20:21:41 -06:00
Tom Tromey
89e1b604c8 fix Makefile
Fix buglet in the new Makefile, and remove gui/Makefile.
2013-06-06 20:15:09 -06:00
Tom Tromey
b17c070954 add a Makefile
This adds a top-level Makefile and fixes up SourceMe.py to
be built by it.
2013-06-06 20:11:09 -06:00
Tom Tromey
0509c2273d initial commit 2013-06-05 08:58:13 -06:00