]> sourceware.org Git - insight.git/log
insight.git
7 years agoUpgrade submodule, sync patch and code.
Patrick Monnerat [Sat, 15 Apr 2017 00:24:51 +0000 (01:24 +0100)]
Upgrade submodule, sync patch and code.

Several gdb function arguments and structure members are now unique pointer
types event_location_up and command_line_up instead of struct event_location *
and struct command_line * respectively.
Code changes in this commit adapt the insight-specfic code to this situation.

* gdbtk/generic/gdbtk-bp.c (gdb_get_breakpoint_info): convert breakpoint
  location to a regular pointer.
  (gdb_set_bp): use an event_location_up local variable.
  No more cleanup needed.
  (gdb_actions_command): use a command_line_up local variable.
  (tracepoint_exists): use an event_location_up local variable.
  No more cleanup needed.
* 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.

7 years agoUpgrade submodule, sync patch and code.
Patrick Monnerat [Sun, 9 Apr 2017 00:24:49 +0000 (01:24 +0100)]
Upgrade submodule, sync patch and code.
gdb makefiles now enforces ISO C++ that forbids to assign a string constant to
a non-const char pointer. All changes in this commit fixes those kind of
assignments.

* gdbtk/generic/gdbtk-bp.c (bptypes, bpdisp): change type to const char *[].
* gdbtk/generic/gdbtk-cmds.c (struct disassembly_client_data): change map_arr
  type to const char *.
* gdbtk/generic/gdbtk-hooks.c (gdbtk_readline_begin): change format argument
  type to const char *.
  (gdbtk_two_elem_cmd): change cmd_name argument type to const char *.
  (gdbtk_pre_add_symbol): remove unneeded cast.
* gdbtk/generic/gdbtk-varobj.c (format_string): change type to const char *[].
* gdbtk/generic/gdbtk.c (TclDebug): change priority type to const char *.
  (gdbtk_init): for non-CygWin code, change srcdir type to const char *.
  (gdbtk_source_start_file): change s type to const char *.
* libgui/src/guitcl.h, libgui/src/paths.c (ide_initialize_paths): change
  ide_appname argument type to const char *.

7 years agoUpgrade submodule.
Patrick Monnerat [Sat, 1 Apr 2017 01:01:43 +0000 (02:01 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Sat, 25 Mar 2017 09:45:15 +0000 (10:45 +0100)]
Upgrade submodule. Sync patch.

7 years agoUpgrade submodule. Sync patches.
Patrick Monnerat [Sat, 18 Mar 2017 00:23:41 +0000 (01:23 +0100)]
Upgrade submodule. Sync patches.

7 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Sat, 4 Mar 2017 03:10:27 +0000 (04:10 +0100)]
Upgrade submodule, sync patches.

7 years agoUpgrade submodule, sync patch and code.
Patrick Monnerat [Sun, 5 Feb 2017 13:55:17 +0000 (14:55 +0100)]
Upgrade submodule, sync patch and code.

Code changes are motivated by:
- gdb struct interp is now a C++ class.
- ui_file is now a C++ class.
- memory ui_file is replaced by new class string_file.

* gdbtk/generic/gdbtk.h: gdbtk_interp renamed to gdbtk_ctl_interp.
  (gdbtk_fputs), (gdbtk_fileopenin): deleted.
  gdbtk_disable_fputs: renamed to gdbtk_disable_write, set to bool.
* gdbtk/generic/gdbtk-bp.c (breakpoint_notify): gdbtk_interp renamed.
* gdbtk/generic/gdbtk-cmds.c (gdbtk_restore_fputs):
  renamed to gdbtk_restore_write.
  (Gdbtk_init): gdbtk_restore_fputs and gdbtk_interp renamed.
  (gdb_eval), (gdb_update_mem):
  use stack-based string file. cleanup chain no longer needed.
* gdbtk/generic/gdbtk-hooks.c: gdbtk_in_fputs renamed.
  Subclass gdbtk_file of ui_file to support console I/O.
  (gdbtk_read): replaced by gdbtk_file::read.
  (gdbtk_fputs): replaced by gdbtk_file::write.
  (gdbtk_two_elem_cmd), (gdbtk_getpid), (report_error),
  (gdbtk_ignorable_warning), (gdbtk_memory_change), (gdbtk_readline_end),
  (gdbtk_call_command), (gdbtk_param_changed), (gdbtk_load_hash),
  (gdbtk_post_add_symbol), (gdbtk_query), (gdbtk_trace_find),
  (gdbtk_trace_start_stop), (gdbtk_annotate_signal), (gdbtk_attach),
  (gdbtk_detach), (gdbtk_architecture_changed): gdbtk_interp renamed.
  (gdbtk_fileopenin): deleted.
  (gdbtk_fileopen): use gdbtk_file subclass object.
  (gdbtk_warning): use ui_file class object for gdb_stderr.
  (x_event): in_fputs renamed. gdbtk_interp renamed.
  (gdbtk_readline): gdbtk_interp renamed. Use gdb_stdout puts method.
* gdbtk/generic/gdbtk-interp.c: New subclass gdbtk_interp of interp.
  Move struct gdbtk_interp_data fields to gdbtk_interp.
  (gdbtk_interpreter_init): replaced by gdbtk_interp::init.
  (gdbtk_interpreter_resume): replaced by gdbtk_interp::resume.
  (gdbtk_interpreter_suspend): replaced by gdbtk_interp::suspend.
  (gdbtk_interpreter_exec): replaced by gdbtk_interp::exec.
  (gdbtk_supports_command_editing): deleted.
  (gdbtk_pre_command_loop): replaced by gdbtk_interp::pre_command_loop.
  gdbtk_interp renamed to gdbtk_tcl_interp.
  (gdbtk_interpreter_ui_out): replaced by gdbtk_interp::interp_ui_out.
  (gdbtk_interp_factory): use new interp class.
* gdbtk/generic/gdbtk-register.c (get_register_size),
  (get_register_collectable), (get_register_types): gdbtk_interp renamed.
  (get_register): gdbtk_interp renamed. Use stack-based memory file.
  Drop obsolete cleanup chain.
* gdbtk/generic/gdbtk-varobj.c (variable_print): Use stack-based memory file.
* gdbtk/generic/gdbtk.c: gdbtk_interp renamed to gdbtk_tcl_interp.
  gdbtk_disable_fputs replaced by gdbtk_disable_write.
  (TclDebug), (cleanup_init), (gdbtk_cleanup), (tk_command), (view_command):
   gdbtk_interp renamed.
  )gdbtk_init): gdbtk_interp and gdbtk_disable_fputs renamed.
* gdbtk/library/interface.tcl (gdbtk_idle), (gdbtk_tcl_fputs):
  gdb_restore_fputs renamed to gdb_restore_write.

7 years agoUpgrade submodule, sync patch.
Patrick Monnerat [Mon, 30 Jan 2017 18:05:30 +0000 (19:05 +0100)]
Upgrade submodule, sync patch.

7 years agoUpgrade submodule, update patches and code accordingly.
Patrick Monnerat [Sat, 21 Jan 2017 01:41:43 +0000 (02:41 +0100)]
Upgrade submodule, update patches and code accordingly.

* gdbtk/generic/gdbtk-cmds.c (gdb_load_info): loadfile_ptr is now a
  gdb_bfd_ref_ptr. Thus old_cleanup is no longer needed: deleted.

7 years agoUpgrade submodule.
Patrick Monnerat [Tue, 3 Jan 2017 16:37:08 +0000 (17:37 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Sun, 25 Dec 2016 15:53:39 +0000 (16:53 +0100)]
Upgrade submodule. Sync patch.

7 years agoUpgrade submodule.
Patrick Monnerat [Sat, 3 Dec 2016 12:31:04 +0000 (13:31 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Fri, 25 Nov 2016 15:43:57 +0000 (16:43 +0100)]
Upgrade submodule. Sync patch.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Sat, 19 Nov 2016 02:51:00 +0000 (03:51 +0100)]
Upgrade submodule. Sync patch.

7 years agoUpgrade submodule. Update patches and code accordingly.
Patrick Monnerat [Fri, 11 Nov 2016 15:28:24 +0000 (16:28 +0100)]
Upgrade submodule. Update patches and code accordingly.

Latest gdb changes introduce C++-only function types. Thus the current
insight code updates make it not compilable with C.

* gdbtk/generic/gdbtk-cmds.c (gdb_eval): expr is now an expression_up class
  instance. New cleanup head is thus the memory file deletion.
* gdbtk/generic/gdbtk-register.c (get_register): Remove the obsolete second
  parameter.
* gdbtk/generic/gdbtk-varobj.c (install_variable, uninstall_variable):
  Set the variable name parameter as const.
  (variable_obj_command): called procedure varobj_get_expression () now returns
  a std::string.
  (variable_delete_tcl): varobj_p member obj_name is now a std::string.
  (variable_children): set childname as const.
  (variable_type): varobj_get_type () now returns a std::string. Replace
  tcl regexp processing by std::string methods call.
  (variable_value): varobj_get_value () now returns a std::string.
* gdbtk/generic/gdbtk-wrapper.[ch] (GDB_val_print, wrap_val_print): no
  longer used: deleted.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Sun, 6 Nov 2016 09:00:24 +0000 (10:00 +0100)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule. Update patch accordingly.
Patrick Monnerat [Mon, 31 Oct 2016 15:34:20 +0000 (16:34 +0100)]
Upgrade submodule. Update patch accordingly.

8 years agoUpgrade submodule. Update patches accordingly.
Patrick Monnerat [Fri, 28 Oct 2016 11:52:41 +0000 (12:52 +0100)]
Upgrade submodule. Update patches accordingly.

8 years agoUpgrade submodule
Patrick Monnerat [Sat, 8 Oct 2016 11:59:31 +0000 (12:59 +0100)]
Upgrade submodule

8 years agoSuppress non-assignment warning on watch addition.
Patrick Monnerat [Wed, 28 Sep 2016 15:13:10 +0000 (16:13 +0100)]
Suppress non-assignment warning on watch addition.

* gdbtk/library/watch.tcl (WatchWin::add): modify variable validity test to
  avoid non-assignment warning.

8 years agoUpgrade submodule. Update patches and code accordingly.
Patrick Monnerat [Wed, 28 Sep 2016 14:06:20 +0000 (15:06 +0100)]
Upgrade submodule. Update patches and code accordingly.

* gdbtk/generic/gdbtk-cmds.c (gdb_force_quit): adjust quit_force() parameter
  type.

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.

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