]> sourceware.org Git - insight.git/log
insight.git
6 years agoUpgrade submodule, sync patch.
Patrick Monnerat [Fri, 9 Feb 2018 14:07:50 +0000 (15:07 +0100)]
Upgrade submodule, sync patch.

6 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Fri, 2 Feb 2018 12:32:11 +0000 (13:32 +0100)]
Upgrade submodule, sync patches.

6 years agoUpgrade submodule, sync patch.
Patrick Monnerat [Fri, 26 Jan 2018 12:51:11 +0000 (13:51 +0100)]
Upgrade submodule, sync patch.

6 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Thu, 18 Jan 2018 18:55:19 +0000 (19:55 +0100)]
Upgrade submodule, sync patches.

6 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Fri, 12 Jan 2018 02:23:33 +0000 (03:23 +0100)]
Upgrade submodule, sync patches.

6 years agoUpgrade submodule.
Patrick Monnerat [Thu, 4 Jan 2018 16:43:28 +0000 (17:43 +0100)]
Upgrade submodule.

6 years agoUpgrade submodule.
Patrick Monnerat [Fri, 22 Dec 2017 11:31:33 +0000 (12:31 +0100)]
Upgrade submodule.

6 years agoUpgrade submodule, sync patch.
Patrick Monnerat [Fri, 15 Dec 2017 15:22:48 +0000 (16:22 +0100)]
Upgrade submodule, sync patch.

6 years agoUpgrade submodule, sync patch.
Patrick Monnerat [Sat, 9 Dec 2017 00:10:27 +0000 (01:10 +0100)]
Upgrade submodule, sync patch.

6 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Fri, 1 Dec 2017 02:46:47 +0000 (03:46 +0100)]
Upgrade submodule, sync patches.

6 years agoUpgrade submodule, sync patch and code, reorder functions, drop value_ptr.
Patrick Monnerat [Sat, 25 Nov 2017 00:25:53 +0000 (01:25 +0100)]
Upgrade submodule, sync patch and code, reorder functions, drop value_ptr.

* gdbtk/generic/gdbtk-cmds.c (gdb_eval): drop value_ptr type, remove unused
  variable dummy.
  (gdb_update_mem); remove unused variable dummy.
* gdbtk/generic/gdbtk-varobj.c (variable_delete_tcl): children field is
  now a std::vector.
  (variable_children): varobj_list_children() now returns a std::vector&.
  (variable_update): use a std::vector& as GDB_varobj_update() argument.
* gdbtk/generic/gdbtk-wrapper.[ch]: drop value_ptr_type, reorder functions
  alphabetically, remove redundant prototypes.
  (GDB_varobj_update): argument `changes' is now a std::vector& to accomodate
  varobj_update() new result type.

6 years agoUpgrade submodule. Sync patches.
Patrick Monnerat [Fri, 17 Nov 2017 19:50:18 +0000 (20:50 +0100)]
Upgrade submodule. Sync patches.

6 years agoUpgrade submodule, sync patches and code.
Patrick Monnerat [Sat, 11 Nov 2017 02:04:38 +0000 (03:04 +0100)]
Upgrade submodule, sync patches and code.

* gdbtk/generic/gdbtk-hooks.c (gdbtk_call_command): constify arg.
* gdbtk/generic/gdbtk-interp.c (hack_disable_interpreter_exec): constify args.
  (gdbtk_do_const_cfunc): new function.
  (gdbtk_interp::init): replace set_cmd_cfunc call (no longer public) by
  assignment statements.
* gdbtk/generic/gdbtk.c (tk_command): constify cmd.
  (view_command): constify args.

7 years agoUpgrade submodule.
Patrick Monnerat [Fri, 3 Nov 2017 17:57:41 +0000 (18:57 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule.
Patrick Monnerat [Sun, 29 Oct 2017 15:48:54 +0000 (16:48 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Sat, 21 Oct 2017 16:38:19 +0000 (17:38 +0100)]
Upgrade submodule, sync patches.

7 years agoUpgrade submodule, update patch and code accordingly.
Patrick Monnerat [Sat, 14 Oct 2017 17:25:45 +0000 (18:25 +0100)]
Upgrade submodule, update patch and code accordingly.

Function catch_errors() does not exist anymore in gdb. Replace uses by
TRY/CATCH blocks.

* gdbtk/generic/gdbtk-cmds.c (wrapped_call): remove.
  (gdbtk_call_wrapper): Use TRY/CATCH instead of catch_errors().
  (gdb_loadfile): Likewise.
* gdbtk/generic/gdbtk-cmds.h (struct wrapped_call_args): no longer used: remove.
* gdbtk/generic/gdbtk-wrapper.c (GDB_parse_exp_1): was commented out: remove.
  (call_wrapped_function): no longer used: remove.
  (GDB_find_relative_frame): likewise.
  (GDB_parse_exp_1): remove.
  (wrap_type_print): remove.
  (wrap_evaluate_expression): remove.
  (wrap_value_fetch_lazy): remove.
  (wrap_value_equal): remove.
  (wrap_parse_exp_1): remove.
  (wrap_evaluate_type): remove.
  (wrap_block_for_pc): remove.
  (wrap_block_innermost_frame): remove.
  (wrap_reinit_frame_cache): remove.
  (wrap_value_ind): remove.
  (wrap_value_slice): remove.
  (wrap_value_coerce_array): remove.
  (wrap_value_struct_elt): remove.
  (wrap_value_cast): remove.
  (wrap_get_frame_block): remove.
  (wrap_get_prev_frame): remove.
  (wrap_get_next_frame): remove.
  (wrap_find_relative_frame): remove.
  (wrap_get_current_frame): remove.
  (wrap_varobj_update): remove.
  (GDBTK_CATCH_ERRORS): new macro implementing wrappers.
  (GDB_type_print): wrap using GDBTK_CATCH_ERRORS() instead of catch_errors().
  (GDB_value_fetch_lazy): likewise.
  (GDB_evaluate_expression): likewise.
  (GDB_value_equal): likewise.
  (GDB_evaluate_type): likewise.
  (GDB_block_for_pc): likewise.
  (GDB_block_innermost_frame): likewise.
  (GDB_reinit_frame_cache): likewise.
  (GDB_value_ind): likewise.
  (GDB_value_slice): likewise.
  (GDB_value_coerce_array): likewise.
  (GDB_value_struct_elt): likewise.
  (GDB_value_cast): likewise.
  (GDB_get_frame_block): likewise.
  (GDB_get_prev_frame): likewise.
  (GDB_get_next_frame): likewise.
  (GDB_find_relative_frame): likewise.
  (GDB_get_current_frame): likewise.
  (GDB_varobj_update): likewise.
  (GDB_find_relative_frame): likewise.
* gdbtk/generic/gdbtk-wrapper.h (struct gdb_wrapper_arguments): no longer used,
  remove.
  (GDB_parse_exp_1): remove.

7 years agoUpgrade submodule, update code accordingly.
Patrick Monnerat [Tue, 10 Oct 2017 14:23:44 +0000 (15:23 +0100)]
Upgrade submodule, update code accordingly.

* gdbtk/generic/gdbtk-cmds.c (gdb_search): search_symbols now returns a
  std::vector. List cleanup not needed anymore.

7 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Sun, 8 Oct 2017 14:07:46 +0000 (15:07 +0100)]
Upgrade submodule, sync patches.

7 years agoUpgrade submodule, sync patches and code.
Patrick Monnerat [Sat, 30 Sep 2017 23:42:48 +0000 (00:42 +0100)]
Upgrade submodule, sync patches and code.

* gdbtk/generic/gdbtk-bp.c (tracepoint_exists): constify argument.
  (gdbtk_set_bp): constify address for string_to_event_location ().
  (gdb_tracepoint_exists_command): constify args.
* gdbtk/generic/gdbtk-cmds.c (gdb_get_line_command): constify args for
  string_to_event_location ().
  (gdb_get_file_command): likewise.
  (gdb_get_function_command): likewise.
* gdbtk/generic/gdbtk-hooks.c (gdbtk_file_changed): constify argument.
* gdbtk/generic/gdbtk-stack.c (gdb_get_vars_command): constify args for
  string_to_event_location ().
* gdbtk/generic/gdbtk-varobj.c (variable_create): retype obj_name to
  std::string. No explicit freeing needed anymore.

7 years agoUpgrade submodule, sync patch.
Patrick Monnerat [Mon, 25 Sep 2017 23:21:23 +0000 (00:21 +0100)]
Upgrade submodule, sync patch.

7 years agoUpgrade submodule.
Patrick Monnerat [Thu, 21 Sep 2017 12:37:09 +0000 (13:37 +0100)]
Upgrade submodule.

7 years agoDelete all gdb breakpoint with a private API
Patrick Monnerat [Thu, 21 Sep 2017 12:28:16 +0000 (13:28 +0100)]
Delete all gdb breakpoint with a private API

* gdbtk/generic/gdbtk-bp.c (gdbtk_delete_all_breakpoints): new function.
* gdbtk/generic/gdbtk-cmds.c (gdb_clear_file): Use
  gdbtk_delete_all_breakpoints() instead of delete_command().

7 years agoUpgrade submodule, sync patches, adjust code to changed ABI.
Patrick Monnerat [Tue, 19 Sep 2017 12:22:34 +0000 (13:22 +0100)]
Upgrade submodule, sync patches, adjust code to changed ABI.

struct symtabs_and_lines --> std::vector<symtab_and_line>

* gdbtk/generic/gdbtk-bp.c (tracepoint_exists): symtabs_and_lines.
* gdbtk/generic/gdbtk-cmds.c (gdb_get_line_command): symtabs_and_lines.
  (gdb_get_file_command): symtabs_and_lines.
  (gdb_get_function_command): symtabs_and_lines.
  (gdb_loc): adjust find_frame_sal() call to updated prototype.
  symtabs_and_lines.
* gdbtk/generic/gdbtk-stack.c (gdb_get_vars_command): symtabs_and_lines.
  (get_frame_name): adjust funname type to updated find_frame_funname()
  prototype.

7 years agoUpgrade submodule.
Patrick Monnerat [Mon, 4 Sep 2017 00:16:04 +0000 (01:16 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Tue, 29 Aug 2017 10:55:37 +0000 (11:55 +0100)]
Upgrade submodule. Sync patch.

7 years agoUpgrade submodule.
Patrick Monnerat [Fri, 11 Aug 2017 10:41:10 +0000 (11:41 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patches.
Patrick Monnerat [Fri, 4 Aug 2017 09:33:41 +0000 (10:33 +0100)]
Upgrade submodule. Sync patches.

7 years agoUpgrade submodule.
Patrick Monnerat [Sat, 29 Jul 2017 00:06:30 +0000 (01:06 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule.
Patrick Monnerat [Thu, 20 Jul 2017 23:41:38 +0000 (00:41 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule.
Patrick Monnerat [Tue, 11 Jul 2017 12:46:52 +0000 (13:46 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule.
Patrick Monnerat [Fri, 30 Jun 2017 11:27:25 +0000 (12:27 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Fri, 23 Jun 2017 10:07:58 +0000 (11:07 +0100)]
Upgrade submodule. Sync patch.

7 years agoUpgrade submodule, sync patches.
Patrick Monnerat [Sun, 11 Jun 2017 12:51:51 +0000 (13:51 +0100)]
Upgrade submodule, sync patches.

7 years agoUpgrade submodule, sync patch and code accordingly.
Patrick Monnerat [Sat, 3 Jun 2017 10:06:16 +0000 (11:06 +0100)]
Upgrade submodule, sync patch and code accordingly.

Subclasses of struct breakpoint have been C++ified: no base class pointer in
struct tracepoint anymore.

* gdbtk/generic/gdbtk-bp.c (breakpoint_notify): remove <base> use.

7 years agoUpgrade submodule.
Patrick Monnerat [Thu, 25 May 2017 01:05:22 +0000 (02:05 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule.
Patrick Monnerat [Sat, 13 May 2017 00:24:06 +0000 (01:24 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Wed, 3 May 2017 10:09:28 +0000 (11:09 +0100)]
Upgrade submodule. Sync patch.

7 years agoUpgrade submodule.
Patrick Monnerat [Sun, 30 Apr 2017 14:30:08 +0000 (15:30 +0100)]
Upgrade submodule.

7 years agoUpgrade submodule. Sync patch.
Patrick Monnerat [Sun, 23 Apr 2017 11:55:04 +0000 (12:55 +0100)]
Upgrade submodule. Sync patch.

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.

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