]> sourceware.org Git - insight.git/log
insight.git
8 years agoUpgrade submodule.
Patrick Monnerat [Mon, 29 Aug 2016 09:07:25 +0000 (11:07 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule
Patrick Monnerat [Fri, 19 Aug 2016 10:03:22 +0000 (12:03 +0200)]
Upgrade submodule

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Wed, 10 Aug 2016 10:56:38 +0000 (12:56 +0200)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 5 Aug 2016 09:05:44 +0000 (11:05 +0200)]
Upgrade submodule.

8 years agoTcl 8.6 compatibility.
Patrick Monnerat [Sat, 30 Jul 2016 15:36:42 +0000 (16:36 +0100)]
Tcl 8.6 compatibility.
Version 8.6 of Tcl changes some procedure parameters to const. Hopefully,
a CONST86 macro is defined by Tcl for this purpose. Use it where necessary.

* gdbtk/generic/gdbtk.c: define CONST84 and CONST86 macros as empty by default.
  (gdbtk_notifier_set_timer): define parameter with CONST86.
  (gdbtk_notifier_wait_for_event): likewise.
  (gdbtk_notifier_procs): cast initializers.

8 years agoUpgrade submodule, update patch accordingly.
Patrick Monnerat [Fri, 29 Jul 2016 09:04:02 +0000 (11:04 +0200)]
Upgrade submodule, update patch accordingly.

8 years agoUpgrade submodule, update patch accordingly.
Patrick Monnerat [Fri, 22 Jul 2016 09:42:36 +0000 (11:42 +0200)]
Upgrade submodule, update patch accordingly.
Remove an unused variable.

* gdbtk/generic/gdbtk-cmds.c (gdb_loc): Remove an unused variable.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Fri, 15 Jul 2016 17:03:02 +0000 (19:03 +0200)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 8 Jul 2016 09:51:07 +0000 (11:51 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Fri, 1 Jul 2016 12:47:58 +0000 (14:47 +0200)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule, update patch accordingly.
Patrick Monnerat [Wed, 29 Jun 2016 15:34:12 +0000 (17:34 +0200)]
Upgrade submodule, update patch accordingly.

8 years agoUpgrade submodule. Modify patches and code accordingly.
Patrick Monnerat [Wed, 29 Jun 2016 15:08:50 +0000 (17:08 +0200)]
Upgrade submodule. Modify patches and code accordingly.
The upgrade introduces a new interpreter API. The main loop is now under
gdb control.
The input stream handling has also changed: everything goes through a
struct ui. To support it, a new gdb patch has been introduced.

* patches/binutils-gdb/007-Avoid-creating-a-file-handler-for-a-negative-fd.patch
  New patch.
* gdbtk/generic/gdbtk-hooks.c (gdbtk_warning): add new parameter to
  stderr_fileopen.
* gdbtk/generic/gdbtk-interp.c (gdbtk_command_loop): deleted.
  (gdbtk_supports_command_editing): new dummy procedure.
  (gdbtk_pre_command_loop): new procedure. Sets input fd to -1 to disable
  gdb commands from standard input.
  (gdbtk_interp_factory): new procedure.
  (_initialize_gdbtk_interp): use new interpreter API.

8 years agoInsert Tcl event loop into gdb event loop. Use gdb event loop.
Patrick Monnerat [Tue, 28 Jun 2016 15:48:59 +0000 (17:48 +0200)]
Insert Tcl event loop into gdb event loop. Use gdb event loop.
This is done via a new Tcl notifier and a gdb asynchronous event to call
Tcl_DoOneEvent when needed.
Gdb event handler needs some updates to support the Tcl notifier: they are
currently implemented by patches.

* patches/binutils-gdb/005-gdb_do_one_event-add-an-expiration-parameter.patch:
  New patch.
* patches/binutils-gdb/006-add_file_handler-implement-a-mask-parameter.patch
  New patch.
* gdbtk/generic/gdbtk.c (gdbtk_notifier_schedule_proc): New procedure.
  (gdbtk_notifier_reschedule_tcl): New procedure.
  (gdbtk_notifier_get_file_data): New procedure.
  (gdbtk_notifier_file_handler_event_proc): New procedure.
  (gdbtk_notifier_file_proc): New procedure.
  (gdbtk_notifier_timeout): New procedure.
  (gdbtk_notifier_set_timer): New procedure.
  (gdbtk_notifier_wait_for_event): New procedure.
  (gdbtk_notifier_delete_file_handler): New procedure.
  (gdbtk_notifier_create_file_handler): New procedure.
  (gdbtk_notifier_initialize): New procedure.
  (gdbtk_notifier_finalize): New procedure.
  (gdbtk_notifier_alert): New procedure.
  (gdbtk_notifier_service_mode_hook): New procedure.
  (gdbtk_install_notifier): New procedure.
  (gdbtk_uninstall_notifier): New procedure.
  (cleanup_init): Uninstall notifier.
  (gdbtk_init): Install notifier.
* gdbtk/generic/gdbtk-hooks.c (gdbtk_call_command): Add timeout parameter to
  gdb_do_one_event.
* gdbtk/generic/gdbtk-interp.c (gdbtk_command_loop): Use gdb start_event_loop
  instead of Tk_MainLoop.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Wed, 15 Jun 2016 09:04:48 +0000 (11:04 +0200)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule.
Patrick Monnerat [Mon, 13 Jun 2016 17:25:58 +0000 (19:25 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 20 May 2016 09:43:50 +0000 (11:43 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 13 May 2016 08:42:23 +0000 (10:42 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule. Adjust patch accordingly.
Patrick Monnerat [Tue, 3 May 2016 15:48:28 +0000 (17:48 +0200)]
Upgrade submodule. Adjust patch accordingly.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 29 Apr 2016 09:05:10 +0000 (11:05 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 22 Apr 2016 14:05:57 +0000 (16:05 +0200)]
Upgrade submodule.
Note this effectively turns insight into a C++ program.

8 years agoAdjust C code for C++ syntax compatibility.
Patrick Monnerat [Fri, 22 Apr 2016 13:13:13 +0000 (15:13 +0200)]
Adjust C code for C++ syntax compatibility.
Gdb will soon be compiled as C++ code, thus our source code must match
this requirement.

* gdbtk/generic/gdbtk-bp.c (Gdbtk_Breakpoint_Init): Explicit casts to
  ClientData in Tcl_CreateObjCommand() calls.
  (tracepoint_exists): Explicit cast xmalloc() result.
* gdbtk/generic/gdbtk-cmds.c (Gdbtk_Init): Explicit casts to ClientData in
  Tcl_CreateObjCommand() calls.
  (wrapped_call): Explicit cast to ClientData of first callback call argument.
  (do_listfiles): Explicit cast for initial info assignment.
  Explicit cast of xrealloc() result.
  (gdb_search): `space' is an enum search_domain, not a domain_enum.
  (gdb_loadfile): Explicit cast 2nd catch_errors() argument to void *.
  (perror_with_name_wrapper): Explicit cast of perror_with_name() argument.
* gdbtk/generic/gdbtk-hooks.c (gdbtk_two_elem_cmd): Explicit cast of
  malloc() result.
  (gdbtk_ignorable_warning): Rename formal argument 'class', as it is a
  C++ reserved word.
* gdbtk/generic/gdbtk-interp.c (gdbtk_interpreter_ui_out): Explicit cast
  initializer value of `data'.
* gdbtk/generic/gdbtk-register.c (Gdbtk_Register_Init): Explicit casts to
  ClientData in Tcl_CreateObjCommand() calls.
  (setup_architecture_data): Explicit cast of xcalloc() result.
* gdbtk/generic/gdbtk-stack.c (Gdbtk_Stack_Init): Explicit casts to ClientData
  in Tcl_CreateObjCommand() calls.
* gdbtk/generic/gdbtk-varobj.c (variable_create): Variable `how_specified' is
  an enum varobj_type, not an int.
* gdbtk/generic/gdbtk-wrapper.c (GDB_varobj_update): Rename argument
  `explicit', as this is a C++ reserved word.
  Properly cast `*changes' assignment value.
  (wrap_type_print): Explicit cast of varstring initializer.
  (wrap_varobj_update): Rename variable `explicit', as this is a C++ reserved
  word.
* gdbtk/generic/gdbtk-wrapper.h (GDB_varobj_update): Rename argument
  `explicit', as this is a C++ reserved word.
* gdbtk/generic/gdbtk.c: Unconditionally declare external Tktable_Init() as C
  procedure.
* gdbtk/generic/gdbtk.h: Do not (wrongly) redeclare ptid_t.
* libgui/src/tkTable.h: Allow inclusion from a C++ source.
* libgui/src/tkTableCmd.h: Likewise.
* libgui/src/tkTableInitScript.h: Likewise.

8 years agoUpgrade submodule. Get rid of immediate_quit.
Patrick Monnerat [Thu, 14 Apr 2016 10:07:07 +0000 (12:07 +0200)]
Upgrade submodule. Get rid of immediate_quit.
The gdb immediate_quit variable has been withdrawn. Adapt the gdbtk code.

* gdbtk/generic/gdbtk-hooks.c (x_event): use QUIT macro.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 8 Apr 2016 08:59:12 +0000 (10:59 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 1 Apr 2016 08:59:04 +0000 (10:59 +0200)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Thu, 24 Mar 2016 10:18:39 +0000 (11:18 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 18 Mar 2016 09:21:30 +0000 (10:21 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 11 Mar 2016 10:03:38 +0000 (11:03 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 4 Mar 2016 09:55:14 +0000 (10:55 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 26 Feb 2016 09:43:35 +0000 (10:43 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 19 Feb 2016 09:31:41 +0000 (10:31 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule, update code accordingly.
Patrick Monnerat [Mon, 8 Feb 2016 13:19:17 +0000 (14:19 +0100)]
Upgrade submodule, update code accordingly.
The gdb procedure varobj_delete() has dropped the "returned variable list"
feature, thus we can no longer use it to remove our tcl alias variables.
A new procedure variable_delete_tcl() is thus implemented to perform this
task before removing the gdb variable.

* gdbtk/generic/gdbtk_varobj.c: new procedure variable_delete_tcl().
  (variable_delete): remove tcl alias variable using variable_delete_tcl().

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 5 Feb 2016 09:40:18 +0000 (10:40 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule.
Patrick Monnerat [Mon, 1 Feb 2016 10:04:50 +0000 (11:04 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Mon, 25 Jan 2016 11:01:45 +0000 (12:01 +0100)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule. Adjust code and patch accordingly.
Patrick Monnerat [Wed, 20 Jan 2016 10:05:01 +0000 (11:05 +0100)]
Upgrade submodule. Adjust code and patch accordingly.

* gdbtk/generic/gdbtk-bp.c (tracepoint_exists): New parameter to decode_line_1()
* gdbtk/generic/gdbtk-cmds.c (gdb_get_line_command): Likewise
  (gdb_get_file_command): Likewise
  (gdb_get_function_command): Likewise
* gdbtk/generic/gdbtk-stack.c (gdb_get_vars_command): Likewise

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Fri, 15 Jan 2016 11:47:28 +0000 (12:47 +0100)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule. Update patches accordingly.
Patrick Monnerat [Tue, 12 Jan 2016 10:47:21 +0000 (11:47 +0100)]
Upgrade submodule. Update patches accordingly.

8 years agoUpgrade submodule.
Patrick Monnerat [Wed, 23 Dec 2015 09:32:45 +0000 (10:32 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Fri, 18 Dec 2015 10:08:59 +0000 (11:08 +0100)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 11 Dec 2015 09:48:27 +0000 (10:48 +0100)]
Upgrade submodule.

8 years agoUpgrade submodule
Patrick Monnerat [Fri, 4 Dec 2015 09:46:16 +0000 (10:46 +0100)]
Upgrade submodule

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Fri, 27 Nov 2015 11:00:16 +0000 (12:00 +0100)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Fri, 20 Nov 2015 11:09:40 +0000 (12:09 +0100)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule.
Patrick Monnerat [Fri, 13 Nov 2015 09:47:05 +0000 (10:47 +0100)]
Upgrade submodule.

9 years agoUpgrade submodule.
Patrick Monnerat [Fri, 6 Nov 2015 10:42:20 +0000 (11:42 +0100)]
Upgrade submodule.

9 years agoUpgrade submodule.
Patrick Monnerat [Fri, 30 Oct 2015 10:24:08 +0000 (11:24 +0100)]
Upgrade submodule.

9 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Wed, 21 Oct 2015 09:40:03 +0000 (11:40 +0200)]
Upgrade submodule. Update patch accordingly.

9 years agoUpgrade submodule.
Patrick Monnerat [Fri, 16 Oct 2015 14:06:47 +0000 (16:06 +0200)]
Upgrade submodule.

9 years agoUpgrade submodule.
Patrick Monnerat [Fri, 9 Oct 2015 09:38:06 +0000 (11:38 +0200)]
Upgrade submodule.

9 years agoUpgrade submodule.
Patrick Monnerat [Mon, 5 Oct 2015 15:05:20 +0000 (17:05 +0200)]
Upgrade submodule.

9 years agoSet running state in text window even if tracing features are enabled.
Patrick Monnerat [Mon, 5 Oct 2015 14:58:14 +0000 (16:58 +0200)]
Set running state in text window even if tracing features are enabled.
Failure to do so can segfault at rerun because the balloon variable may still
contain a dangling pointer to an item from the previous run.

* gdbtk/library/srcwin.itb (rcWin::_set_state): Call SrcTextWin::SetRunningState
  inconditionally.

9 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Sat, 3 Oct 2015 17:07:48 +0000 (19:07 +0200)]
Upgrade submodule. Update patch accordingly.

9 years agoAllow run commands to complete before target stops.
Patrick Monnerat [Sat, 3 Oct 2015 16:39:50 +0000 (18:39 +0200)]
Allow run commands to complete before target stops.
Latest gdb versions run command handlers return before the target stops,
even in synchronous mode. Insight must therefore monitor gdb events until
the target stops running.

* gdbtk/generic/gdbtk-hooks.c: include event-loop.h.
  (gdbtk_call_command): Monitor gdb events after run command execution until
  the inferior ptid has stopped or disappeared.

9 years agoRevert submodule to the last working commit.
Patrick Monnerat [Tue, 29 Sep 2015 15:06:16 +0000 (17:06 +0200)]
Revert submodule to the last working commit.

binutils-gdb commit 0b333c5e7d6c3fc65d37ffa11bd21ba52c4adb25 breaks the
synchronous mode used by insight. For now, use the last commit before it.
This will let insight working while investigating this sync issue.
See https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0b333c5e7d6c3fc65d37ffa11bd21ba52c4adb25.

9 years agoUpgrade submodule.
Patrick Monnerat [Mon, 28 Sep 2015 11:58:39 +0000 (13:58 +0200)]
Upgrade submodule.

9 years agoUpgrade submodule.
Patrick Monnerat [Fri, 4 Sep 2015 09:56:38 +0000 (11:56 +0200)]
Upgrade submodule.

9 years agoUpgrade submodule, update patch accordingly.
Patrick Monnerat [Mon, 31 Aug 2015 09:54:35 +0000 (11:54 +0200)]
Upgrade submodule, update patch accordingly.

9 years agoplugins: unbundle tcl and adjust to latest cygwin.
Patrick Monnerat [Wed, 26 Aug 2015 11:10:37 +0000 (13:10 +0200)]
plugins: unbundle tcl and adjust to latest cygwin.

* gdbtk/plugins/Make-rules: Use Tcl private include C flags from autotools
  for Windows.
* gdbtk/plugins/rhabout/rhabout.c: Use __declspec(dllexport) for all
  Windows builds.
  (DllMain): Define for all native Windows builds. Remember Cygwin is not
  a native Windows environment anymore.

9 years agoUpgrade submodule. Delete obsolete patch.
Patrick Monnerat [Wed, 26 Aug 2015 11:07:00 +0000 (13:07 +0200)]
Upgrade submodule. Delete obsolete patch.

9 years agoRemove maybe-uninitialized warning.
Patrick Monnerat [Tue, 25 Aug 2015 13:49:05 +0000 (15:49 +0200)]
Remove maybe-uninitialized warning.

* gdbtk/generic/gdbtk-register.c (gdb_register_info): Preset arg fields before
  switch on command. Remove redundant arg settings.

9 years agoAction dialog: set window title.
Patrick Monnerat [Mon, 24 Aug 2015 17:15:47 +0000 (19:15 +0200)]
Action dialog: set window title.

* gdbtk/library/actiondlg.tcl (ActionDlg::constructor): Set dialog title
  according to Editing option.

9 years agoUpgrade submodule.
Patrick Monnerat [Mon, 24 Aug 2015 17:03:01 +0000 (19:03 +0200)]
Upgrade submodule.

9 years agoAction dialog: accept while-stepping without data collect.
Patrick Monnerat [Mon, 24 Aug 2015 16:44:02 +0000 (18:44 +0200)]
Action dialog: accept while-stepping without data collect.
Upgrade submodule.

* gdbtk/library/tracedlg.tcl (TraceDlg::get_actions): Preset empty data in
  case scan does not set it.
  (TraceDlg::edit): Preset empty data in case scan does not set it.
  Set Editing option when creating an action dialog.
  (gdb_add_tracepoint): Accept empty action for while-stepping.
  (gdb_edit_tracepoint): Likewise.
* gdbtk/library/actiondlg.tcl: New option Editing.
  (ActionDlg::ok): Check validity of step count for while-stepping.
  Accept no data collection in while-stepping.
  Rely on Editing option rather than data presence to determine add or modify
  command to use.

9 years agoUpgrade submodule.
Patrick Monnerat [Sat, 22 Aug 2015 12:21:48 +0000 (13:21 +0100)]
Upgrade submodule.

9 years agoAction dialog: refine "change other".
Patrick Monnerat [Sat, 22 Aug 2015 11:58:01 +0000 (13:58 +0200)]
Action dialog: refine "change other".

* gdbtk/library/actiondlg.tcl (ActionDlg::change_other): Trim entry first.
  Use regular expressions to match special tag names with multiple spaces.
  Check if we are adding or deleting before any semantic check: this allows to
  locally link to lists rather than copying them in and out, and simplifies
  later processing.
  Trim $ on the left only to check for a register name.

9 years agoAction dialog: fix "Collect Stack" processing.
Patrick Monnerat [Sat, 22 Aug 2015 10:08:08 +0000 (12:08 +0200)]
Action dialog: fix "Collect Stack" processing.

* gdbtk/library/actiondlg.tcl (ActionDlg::change): Use lassign where possible.
  Link to Collect and Variables rather than copying them in an out locally.
  Use modified prototypes for procedures all_locals, all_regs and all_args.
  Process the "Collect Stack" action specifically.
  (ActionDlg::all_args): Arguments are listnamedel listnameadd.
  Work directly on named arguments rather than copying in and returning a value.
  (ActionDlg::all_locals): Likewise.
  (ActionDlg::all_regs): Likewise.
  (ActionDlg::change_other): Map expressions representing special tags to
  the tag itself.
  Compute add/del flag and copy in lists before checking the tag name.
  Use new prototypes for procedures all_locals, all_regs and all_args.
  Process "Collect Stack" properly.

9 years agoAction dialog: remove stack pointer field.
Patrick Monnerat [Sat, 22 Aug 2015 09:48:04 +0000 (11:48 +0200)]
Action dialog: remove stack pointer field.

* gdbtk/library/actiondlg.tcl: Remove class field StackPointer.
  (Actiondlg:constructor): Use a local variable to store the stack pointer name.

9 years agoConsider C function arguments as such, not as local variables.
Patrick Monnerat [Sat, 22 Aug 2015 09:27:20 +0000 (11:27 +0200)]
Consider C function arguments as such, not as local variables.
C function arguments do not have an argument class, but are regular local
variables flagged as being an argument. Check this flag in addition to
the symbol class.

* gdbtk/generic/gdbtk-stack.c (gdb_get_vars_command): Symbols with a
  LOC_LOCAL, LOC_STATIC, LOC_REGISTER or LOC_COMPUTED class are arguments
  if they are flagged as such.

9 years agoComplete head comment of gdb_register_info().
Patrick Monnerat [Sat, 22 Aug 2015 09:20:38 +0000 (11:20 +0200)]
Complete head comment of gdb_register_info().

9 years agoActions dialog: do not propose expressions that cannot be collected.
Patrick Monnerat [Thu, 20 Aug 2015 15:35:58 +0000 (17:35 +0200)]
Actions dialog: do not propose expressions that cannot be collected.
This filters out uncollectable pseudo-registers and builds the stack collection
expression at run time.

* gdbtk/generic/gdbtk-register.c (get_register_collectable): New procedure:
  lists whether a register is collectable or not.
  (gdb_regspecial): New procedure: lists the register number of special
  registers.
  (gdb_register_info): New options "collectable" and "special".
* gdbtk/library/actiondlg.tcl (class ActionDlg): Do not preset StackCollect.
  Define protected field StackPointer.
  (ActionDlg::constructor): Filter out non-collectable registers.
  Compute stack collection expression from current architecture's stack pointer.
  Do not propose "All registers" if none exists.
  Do not propose "Collect Stack" if the stack pointer is not collectable.
  (ActionDlg::change_other): Fix a cut+pasted comment.

9 years agoEmulate trace start/stop hook.
Patrick Monnerat [Wed, 19 Aug 2015 16:15:36 +0000 (18:15 +0200)]
Emulate trace start/stop hook.
This deprecated hook still exisits in gdb, but is not called anymore.
The optimal solution would be to have it replaced by an observer.
In the meantime, we check for a trace status change at each run/trace command
execution and eventually call the hook procedure explicitely.

* gdbtk/generic/gdbtk-hooks.c (gdbtk_add_hooks): Do not set the
  deprecated_trace_start_stop_hook anymore.
  (gdbtk_call_command): When a run/trace class command is executed, save the
  trace running status before command and, if changed after command terminates,
  call the hook procedure accordingly.

9 years agoImplement disabled tracepoint support.
Patrick Monnerat [Wed, 19 Aug 2015 13:35:21 +0000 (15:35 +0200)]
Implement disabled tracepoint support.

* gdbtk/library/srctextwin.ith (class SrcTextWin): Add new type disabled_tp.
  Fix a typo in comment.
* gdbtk/library/srctextwin.itb (SrcTextWin::constructor): Initialize
  break_image for disabled_tp.
  (SrcTextWin::build_popups): Initialize popups for disabled_tp.
  Add Enable/Disable Tracepoint menu entries.
  (SrcTextWin::enable_disable_src_tags): Bind <Enter>/<Motion>/<Leave> events of
  disabled_tp_tag.
  (SrcTextWin::config_win): Configure disabled_tp_tag.
  Bind <Button-1> and <Button-3> event of disable_bp_tag.
  (SrcTextWin::removeBreakTag): Match also disabled_tp tags.
  (SrcTextWin::hasTP): Likewise.
  (SrcTextWin::showTPBalloon): Determine tracepoint type.

9 years agoUpgrade submodule.
Patrick Monnerat [Wed, 19 Aug 2015 09:40:22 +0000 (11:40 +0200)]
Upgrade submodule.

9 years agoFix bp/tp window deletion (again).
Patrick Monnerat [Tue, 18 Aug 2015 17:57:32 +0000 (19:57 +0200)]
Fix bp/tp window deletion (again).

* gdbtk/library/bpwin.itb (BpWin::bp_delete): selection never needs
  decrementing.

9 years agoImplement tracepoint balloons.
Patrick Monnerat [Tue, 18 Aug 2015 17:43:49 +0000 (19:43 +0200)]
Implement tracepoint balloons.

* gdbtk/library/srctextwin.ith (SrcTextWin::showTPBalloon): New method.
* gdbtk/library/srctextwin.itb (SrcTextWin::showTPBalloon): New method.
  (SrcTextWin::enable_disable_src_tags): Preset motion for tracepoints.
  (SrcTextWin::motion): Check tracepoint type in addition to breakpoint and
  variables.

9 years agoCorrectly update current selection upon breakpoint/tracepoint deletion.
Patrick Monnerat [Tue, 18 Aug 2015 15:02:47 +0000 (17:02 +0200)]
Correctly update current selection upon breakpoint/tracepoint deletion.

* gdbtk/library/bpwin.itb (BpWin::bp_delete): Deselect if deleting the
  current selection. Update current selection if after the deleted line.

9 years agoEnable tracepoint creation events.
Patrick Monnerat [Tue, 18 Aug 2015 14:28:44 +0000 (16:28 +0200)]
Enable tracepoint creation events.

* gdbtk/generic/gdbtk-bp.c (BREAKPOINT_IS_INTERESTING): Tracepoints are
  interesting! This enables observer routing to Tcl events for tracepoints.
* gdbtk/library/bpwin.itb (BpWin::breakpoint): Ignore event if this is a
  tracepoint window.
  (BpWin::tracepoint): Ignore event if this is a breakpoint window.

9 years agogdbtk/library/ehandler.ith: Fix typo in comment.
Patrick Monnerat [Tue, 18 Aug 2015 13:06:04 +0000 (15:06 +0200)]
gdbtk/library/ehandler.ith: Fix typo in comment.

9 years agoTraceDlg: replace WhileStepping flag by a presence test method.
Patrick Monnerat [Tue, 18 Aug 2015 12:23:36 +0000 (14:23 +0200)]
TraceDlg: replace WhileStepping flag by a presence test method.
This effectively allows deleting the while-stepping action and recreate a
new one.

* gdbtk/library/tracedlg.tcl: Delete obsolete WhileStepping flag.
  (has_while_stepping): New method.
  (add_action): Test duplicate while-stepping using method instead of flag.
  (add_action_to_list): Do not set obsolete WhileStepping flag.

9 years agoTrace dialog: be more selective on action regular expressions.
Patrick Monnerat [Tue, 18 Aug 2015 12:00:44 +0000 (14:00 +0200)]
Trace dialog: be more selective on action regular expressions.
Only allow the command word to appear at the beginning of the command: this
will avoid positive patches on variable names, such as understanding
"collect endOfFile" as and "end" command.

* gdbtk/library/tracedlg.tcl (TraceDlg::add_all_actions): Refine all
  regular expressions.
  (TraceDlg::get_actions): Likewise.
  (TraceDlg::edit): Likewise.

9 years agoEdit one tracepoint action at a time.
Patrick Monnerat [Tue, 18 Aug 2015 10:42:28 +0000 (12:42 +0200)]
Edit one tracepoint action at a time.
Use active (i.e.: last clicked) action instead of selection to start edition.

* gdbtk/library/tracedlg.tcl (TraceDlg::edit): Begin by selecting the active
  action only.

9 years agoAdd a procedure interface comment.
Patrick Monnerat [Mon, 17 Aug 2015 23:50:36 +0000 (00:50 +0100)]
Add a procedure interface comment.

* gdbtk/generic/gdbtk-bp.c (gdb_get_tracepoint_info): Describe argument and
  result.

9 years agoGet tracepoint action subcommands too.
Patrick Monnerat [Mon, 17 Aug 2015 23:26:05 +0000 (00:26 +0100)]
Get tracepoint action subcommands too.
The while-stepping action may have collect subcommands: include them in
tracepoint info.

* gdbtk/generic/gdbtk-bp.c (gdb_get_action_list): New recursive procedure.
  (gdb_get_tracepoint_info): Use gdb_get_action_list to recursively list
  commands.
* gdbtk/library/tracedlg.tcl (add_all_actions): Process multiple while-stepping
  subcommands.
  (edit): Pass option -Data value as a list (to accept multiple expressions).

9 years agoTracepoint action command: do not ignore first command.
Patrick Monnerat [Mon, 17 Aug 2015 17:03:32 +0000 (19:03 +0200)]
Tracepoint action command: do not ignore first command.

* gdbtk/generic/gdbtk-bp.c (gdb_actions_command): Set initial line index to 0.

9 years agoFix setting no action to tracepoint.
Patrick Monnerat [Mon, 17 Aug 2015 12:10:36 +0000 (14:10 +0200)]
Fix setting no action to tracepoint.

* gdbtk/generic/gdbtk-bp.c (gdb_actions_command): Preset comman pointer to NULL.
  Do not call read_command_lines_1() when no action is defined.

9 years agoImplement a subclass for the tracepoint window.
Patrick Monnerat [Sun, 16 Aug 2015 16:47:06 +0000 (17:47 +0100)]
Implement a subclass for the tracepoint window.
This prevents the confusion between the breakpont and the tracepoint windows.
It allows to have both open at the same time.

* gdbtk/library/managedwin.itb (ManagedWin::_open): Do not match an object
  with a class if it's not the top class.
* gdbtk/library/srcbar.itcl (create_view_menu): Direct the tracepoints menu
  entry to open a Tpwin tracepoint window.
  Remove redundant "-tracepoints 0" on the breakpoints menu entry.
  (create_window_buttons): The Tracepoints button opens a TpWin, not a Bpwin.
* gdbtk/library/srctextwin.itb (SrcTextWin::do_key): Key "tracepoints" opens
  a TpWin, not a BpWin.
* gdbtk/library/tpwin.itcl: New file. Defines the TpWin subclass of BpWin.
* gdbtk/library/tclIndex: Defines the TpWin related indexes.

9 years agoAvoid accessing non-existing event "disposition" on a tracepoint.
Patrick Monnerat [Sun, 16 Aug 2015 13:08:20 +0000 (14:08 +0100)]
Avoid accessing non-existing event "disposition" on a tracepoint.

* gdbtk/library/bpwin.itb (BpWin::bp_add): Get disposition event only for
  breakpoints. Fix a typo.
  (BpWin::bp_modify): Get disposition event only for breakpoints.

9 years agoJanitorial: strip trailing spaces.
Patrick Monnerat [Sun, 16 Aug 2015 12:47:38 +0000 (13:47 +0100)]
Janitorial: strip trailing spaces.

9 years agoInitialize breakpoint window before building it.
Patrick Monnerat [Sun, 16 Aug 2015 10:37:56 +0000 (11:37 +0100)]
Initialize breakpoint window before building it.
This effectively enables building a true tracepoint window.

* gdbtk/library/bpwin.itb (BpWin::constructor): Move itk_initialize call before
  build_win.

9 years agoSet tracepoint action dialog as modal.
Patrick Monnerat [Sun, 16 Aug 2015 10:31:12 +0000 (11:31 +0100)]
Set tracepoint action dialog as modal.

* gdbtk/library/actiondlg.tcl (class ActionDlg): Inherits ModalDialog.

9 years agoChange copyright year of last modified file (gdbtk/library/tracedlg.tcl).
Patrick Monnerat [Sat, 15 Aug 2015 09:35:28 +0000 (10:35 +0100)]
Change copyright year of last modified file (gdbtk/library/tracedlg.tcl).

9 years agoSet trace dialog as modal.
Patrick Monnerat [Sat, 15 Aug 2015 09:31:56 +0000 (10:31 +0100)]
Set trace dialog as modal.

* gdbtk/library/tracedlg.tcl (class TraceDlg): Inherits ModalDialog.

9 years agoTolerate build of an empty tracepoint dialog.
Patrick Monnerat [Sat, 15 Aug 2015 09:14:51 +0000 (10:14 +0100)]
Tolerate build of an empty tracepoint dialog.

* gdbtk/library/tracedlg.tcl (build_win): Always define "multiline".
  Define default values when no tracepoint is selected.

9 years agoUpgrade submodule.
Patrick Monnerat [Fri, 14 Aug 2015 18:37:39 +0000 (20:37 +0200)]
Upgrade submodule.

9 years agoMake the "Set Tracepoint" dialog working.
Patrick Monnerat [Fri, 14 Aug 2015 18:30:25 +0000 (20:30 +0200)]
Make the "Set Tracepoint" dialog working.
This is achieved by accepting configure arguments in the Labelledframe
constructor and avoiding a null-pointer dereferencing when no action is
associated.

* gdbtk/generic/gdbtk-bp.c (gdb_actions_command): When no action is given,
  parse commands from a zero-length string.
* libgui/library/lframe.tcl (constructor): Accept arguments and configure.

9 years agoMake trace find feature working again.
Patrick Monnerat [Fri, 14 Aug 2015 15:52:28 +0000 (17:52 +0200)]
Make trace find feature working again.
The trace frame find GUI feature was connected to the deprecated_trace_find_hook
that gdb still defines, but does not call anymore.
The same function is now achieved via a traceframe_changed observer.

* gdbtk/generic/gdbtk-hooks.c:
  (gdbtk_trace_find): Change prototype to match the traceframe_changed observer.
  Pass the new arguments to tcl/tk.
  (gdbtk_add_hooks): Connect gdbtk_trace_find as an observer, not a hook.
* gdbtk/library/interface.tcl (gdbtk_tcl_trace_find_hook):
  Use observer parameters.
* gdbtk/library/srcbar.itcl (handle_trace_find_hook): Use observer parameters.
* gdbtk/library/srctextwin.it[bh] (trace_find_hook): Use observer parameters.

9 years agoconfigure: autoconf in gdb/testsuite/gdb.gdbtk
Patrick Monnerat [Thu, 13 Aug 2015 17:21:36 +0000 (19:21 +0200)]
configure: autoconf in gdb/testsuite/gdb.gdbtk
This is now needed by the src-release.sh script.

9 years agoUpdate copyright year of latest changed files.
Patrick Monnerat [Thu, 13 Aug 2015 16:38:27 +0000 (18:38 +0200)]
Update copyright year of latest changed files.

9 years agoComment patches.
Patrick Monnerat [Thu, 13 Aug 2015 13:54:55 +0000 (15:54 +0200)]
Comment patches.

9 years agogdbtk: adapt to the new explicit locations API
Patrick Monnerat [Thu, 13 Aug 2015 13:04:59 +0000 (15:04 +0200)]
gdbtk: adapt to the new explicit locations API

* gdb/generic/gdbtk-bp.c: Include location.h.
  (gdb_get_breakpoint_info): Use event_location_to_string instead of
  `addr_string'.
  (gdb_set_bp): Use string_to_event_location and pass this to
  create_breakpoint instead of an address string.
  (tracepoint_exists): Use string_to_event_location and pass this to
  decode_line_1 instead of an address string.
* gdb/generic/gdbtk-cmds.c: Include location.h.
  (gdb_get_line_command): Use string_to_event_location and pass this to
  decode_line_1 instead of an address string.
  (gdb_get_file_command): Likewise.
  (gdb_get_function_command): Likewise.
* gdb/generic/gdbtk-stack.c: Include location.h.
  (gdb_get_vars_command):Use string_to_event_location and pass this to
  decode_line_1 instead of an address string.

This page took 0.063052 seconds and 5 git commands to generate.