]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog-gdbtk
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / ChangeLog-gdbtk
index f629f37acc490e47bd2f7648abbd6d82801d7d7c..514b2c7fbcb092f986df6f850bcb43e7c5ad86db 100644 (file)
@@ -1,3 +1,434 @@
+1999-02-11  Martin Hunt  <hunt@cygnus.com>
+
+       * gdbtk-variable.c (variable_format): Enable binary format.
+
+1999-02-11  Martin Hunt  <hunt@cygnus.com>
+       
+       * gdbtk-hooks.c: Change ALL Tcl_Eval calls in hooks to
+       call report_error() if there are errors.
+
+1999-02-11  Martin Hunt  <hunt@cygnus.com>
+       
+       * gdbtk.c, gdbtk-cmds.c, gdbtk-hooks.c: Removed old IDE stuff.
+
+1999-02-09  Martin Hunt  <hunt@cygnus.com>
+
+       * gdbtk-hooks.c: Remove gdbtk_ignorable_warning prototype.
+       It is in gdbtk.h.
+       (report_error): New function. Displays debugging information
+       if a hook function fails.  All hook functions should probably
+       call this.
+       (gdbtk_warning): Call report_error() if there is a problem.
+       (gdbtk_register_changed): Call report_error() if there is a problem.
+       (gdbtk_memory_changed): Call report_error() if there is a problem.
+       (gdbtk_ignorable_warning): Pass along class argument. If there
+       is a problem, call report_error().
+       
+       * gdbtk-cmds.c: Remove TclDebug prototype.  It is in gdbtk.h.
+       (gdb_loadfile): Add class name to gdbtk_ignorable_warning call.
+
+       * gdbtk.c (TclDebug): Add "priority" argument. Calls "dbug"
+       instead of "debug". Removed non-ANSI ifdefs.
+
+       * gdbtk.h: Fixed protos for gdbtk_ignorable_warning and TclDebug.
+       
+1999-02-05  James Ingham  <jingham@cygnus.com>
+
+       * Makefile.in: Add GDBTK_CFLAGS - this is now used to hold
+       -fwritable-strings when compiling with Tk8.1.
+       * configure.in: Add GDBTK_CFLAGS, set it to -fwritable-strings for 
+       Tcl/Tk8.1 & greater.
+       * acinclude.m4: Move the rest of the defines to find Itcl, Itk &
+       Tix from aclocal.m4 to here.
+       * aclocal.m4: regenerate.
+       * configure: regenerate.
+
+       * gdbtk-hooks.c (x_event): Tcl_ObjGetVar2 was removed from
+       Tcl8.1.  Use Tcl_GetVar2 instead.
+       * gdbtk-hooks.c (gdbtk_trace_find): Fix up call to
+       Tcl_GlobalEvalObj for Tcl/Tk 8.1.
+       * gdbtk-hooks.c (gdbtk_trace_start_stop): Call to Tcl_EvalObj was
+       inefficient, replace with call to Tcl_GlobalEval.
+       * gdbtk.c: Don't swap out the Tcl_Alloc calls in gdbtk.c.  We took 
+       care of that in Tcl itself for 8.1.
+       * gdbtk.c: Remove const from the script string since Tcl8.1 has
+       taken to scribbling sentinals into strings passed to it again...
+
+       * gdbtk-cmds.c (wrapped_call): Change declaration of 1st arg from
+       char * to PTR to eliminate warning.
+       * gdbtk-cmds.c (perror_with_name_wrapper): Ditto
+
+Thu Feb  4 10:35:28 1999  Keith Seitz  <keiths@cygnus.com>
+
+       * gdbtk-variable.c (variable_create): Allocate enough
+       space to hold the NULL, too!
+
+Wed Feb  3 13:37:07 1999  Keith Seitz  <keiths@cygnus.com>
+
+       * gdbtk-variable.c (variable_create): Add parentheses to the name
+       so that casts do not confuse the expression parser.
+
+1999-02-03  Keith Seitz  <keiths@cygnus.com>
+
+       * gdbtool.ico: Add missing desktop image.
+
+1999-02-02  Martin Hunt  <hunt@cygnus.com>
+
+       * gdbtk-cmds.c (get_register): For RAW display, concat all the
+       pieces together before calling fputs.
+
+1999-02-01  Martin Hunt  <hunt@cygnus.com>
+
+       * gdbtk-cmds.c: (gdb_set_bp): Change the "type" argument
+       to be ASCII instead of an integer. Currently accepts "temp"
+       or "normal".  Fixed error messages.
+       (gdb_set_bp_addr): Ditto.
+
+1999-01-29  James Ingham  <jingham@cygnus.com>
+
+       * gdbtk.c (gdbtk_init): Set the fputs_unfiltered_hook to
+       gdbtk_fputs BEFORE you eval script.  The old code was setting it
+       to null until after you did this, but that is wrong, because it
+       will cause the output of CAUGHT errors to go to gdb_stderr, which
+       is wrong.  You only want to write errors to the console if the
+       eval generates an error.
+
+1999-01-29  Martin Hunt  <hunt@cygnus.com>
+
+       * gdbtk-cmds.c (gdb_get_breakpoint_info): When printing addresses,
+        do not rely on the format string "%lx" -- it does not exist for all
+        hosts. Use paddr instead.
+       (gdb_loadfile): Increase maximum line size to pass testsuite cases.
+
+       * gdbtk-hooks.c (gdbtk_add_hooks): Remove pc_changed_hook and
+        add register_changed_hook and memory_changed_hook.
+        (gdbtk_register_changed): New function.
+        (gdbtk_memory_changed): New function.
+
+        * gdbtk.c (gdbtk_init): Create tcl warp_pointer command
+        for use with testing.
+
+        * gdbtk-cmds.c (gdb_loc): Fix for case where there are only
+        minimal symbols.  Also make gdb_loc return the shared library
+        the location is in, if it is in one.
+
+1999-01-27  James Ingham  <jingham@cygnus.com>
+
+       * gdbtk-wrapper.c: Missed a couple of places where FILE->GDB_FILE
+       in the fputs_unfiltered_hook needed to propagate.
+
+1999-01-27  James Ingham  <jingham@cygnus.com>
+
+       Merging in changes from gdbtk-980810 - the Itcl3
+       gdb branch.
+
+  1999-01-12  Martin Hunt  <hunt@cygnus.com>
+
+         * gdbtk-cmds.c (gdb_loadfile): Increase maximum line size so
+         files with very long lines get numbered correctly.
+
+  Thu Jan  7 06:50:32 1999  Keith Seitz  <keiths@cygnus.com>
+
+         * gdbtk-hooks.c (gdbtk_add_hooks): Add the error_begin_hook;
+         (gdbtk_error_begin): New function.
+         (gdbtk_fputs): If GDBTK_ERROR_ONLY is set, treat output to
+         any stream as if it had come from gdb_stderr.
+
+         * gdbtk.h: Define GDBTK_SYMBOL_SOURCE_NAME: does the same thing
+         as SYMBOL_SOURCE_NAME, except that it NEVER returns a mangled name.
+         Define GDBTK_ERROR_ONLY flag for result_ptr.
+
+         * gdbtk-cmds.c (gdb_listfuncs): Use SYMBOL_DEMANGLED_NAME to
+         get the symbol's fully demangled name (including class and
+         args for overloaded funcs), not cplus_demangle.
+         (get_frame_name): Use GDBTK_SYMBOL_SOURCE_NAME to get the name
+         of the frame level.
+
+         * gdbtk-wrapper.c, gdbtk-wrapper.h:
+         (GDB_val_print): Allow caller to specify all function args to val_print.
+         (wrap_val_print): Ditto.
+
+         * gdbtk-variable.c (variable_value): Clear addressprint when getting
+         value of C++ reference-type variables
+         If we errored because a parent (struct pointer) was junk, output
+         an error message indicating so.
+         (call_gdb_val_print): Tell val_print to dereference C++ reference
+         types.
+         (number_of_children): void * also has no children.
+         (get_call_output): Clear any error flags that may have been set
+         as a result of error_begin.
+
+         * utils.c (error_begin_hook): New hook.
+         (error_begin): Call error_begin_hook so that the GUI
+         gets notified.
+
+         * defs.h (error_begin_hook): Declare.
+
+  Wed Jan  6 08:43:31 1999  Keith Seitz  <keiths@cygnus.com>
+
+         * gdbtk-wrapper.c, gdbtk-wrapper.h: Add wrappers for parse_exp_1,
+         evaluate_type, block_for_pc, block_innermost_frame, reinit_frame_cache,
+         and find_frame_addr_in_frame_chain.
+
+         * gdbtk-variable.c (variable_create): Check for failure when
+         creating variables.
+         (create_variable): Use wrapped calls for block_for_pc, parse_exp_1,
+         and block_innermost_frame.
+         Return NULL if parse_exp_1 fails.
+         Attempt to prohibit creating a gdb_variable for type names.
+         (variable_value_changed): Use wrapped calls for reinit_frame_cache and
+         find_frame_addr_in_frame_chain.
+         (variable_type): Use wrapped call for evaluate_type.
+         (variable_value): Use wrapped call for parse_exp_1.
+         (variable_editable): Use wrapped call for evaluate_type.
+
+  Tue Jan  5 11:37:17 1999  Keith Seitz  <keiths@cygnus.com>
+
+         * gdbtk-variable.c: New variable object interface.
+         * gdbtk-wrapper.c, gdbtk-wrapper.h: New wrappers for safely calling
+         gdb functions without the fear of longjmp'ing.
+         * configure.in (CONFIG_OBS): Add gdbtk-wrapper.o and gdbtk-variable.o
+         when gdbtk is enabled.
+         * configure: Regenerate.
+         * Makefile.in: Add gdbtk-wrapper.o and gdbtk-variable.o
+         * gdbtk-cmds.c (call_wrapper): Export so that other files can use.
+         (Gdbtk_Init): Initialize new variable interface.
+         * gdbtk.h: Add declaration for call_wrapper.
+
+  Tue Jan  5 11:19:14 1999  Keith Seitz  <keiths@cygnus.com>
+
+         * gdbtk-cmds.c (gdb_loc): Call resolve_sal_pc to before using
+         the sal's pc.
+
+         * gdbtk.c (gdbtk_init): Add global array GDBStartup to interpreter
+         which contains any startup info. Add "inhibit_prefs" (follows -nx)
+         so that "-nx" turns preference reading/writing off.
+
+  Mon Dec 21 11:11:02 1998  Keith Seitz  <keiths@cygnus.com>
+
+         * gdbtk-cmds.c (get_register): Call get_saved_register instead of
+         read_relative_register_raw_bytes to fetch registers.
+
+  Thu Dec 17 09:00:56 1998  Keith Seitz  <keiths@cygnus.com>
+
+         * gdbtk-cmds.c (gdb_search): Don't mention C++ RTTI and
+         global constructor/destructor symbols.
+
+  Thu Nov 12 15:20:15 1998  Jim Ingham   <jingham@cygnus.com>
+         * More bug fixes merged in from devo.
+
+         * gdbtk-cmds.c (gdb_cmd): Added an optional second argument to the
+         gdb_cmd, which is from_tty.  This is passed to the gdb command
+         parser.  It is 0 by default, and the console window passes 1.
+
+         * gdbtk-cmds.c: moved disassemble_from_exec from gdbtk.c to gdbtk-cmds.c
+         with all the other link-var'ed variables
+
+         * gdbtk-hooks.c (gdbtk_trace_find): Only run the hook functions if 
+         we are called from_tty.
+
+         * gdbtk-hooks.c (gdbtk_trace_start_stop): Set the trace buttons
+         from a trace_start_command callback rather than doing it as a
+         special case in gdb_cmd.
+
+         * tracepoint.c (tstart_command, tstop_command): Add call to
+         trace_start_stop_hook here.
+
+  1998-11-04  Martin M. Hunt  <hunt@cygnus.com>
+
+         * gdbtk-cmds.c (gdb_set_bp_addr): For callback, send full 
+         pathname instead of just basename.
+
+  1998-11-03  Keith Seitz  <keiths@cygnus.com>
+         * v850ice.c (do_gdb): New function.
+         (ice_stepi): Use do_gdb to step properly.
+         (ice_nexti): Use do_gdb to step properly.
+         (view_source): Correct call to src window's location for new version.
+
+  Tue Aug 25 18:13:30 1998  Jim Ingham    <jingham@cygnus.com>
+
+         * gdbtk.c (gdbtk_init): I hadn't excised ALL the old startup code, 
+         so it was not working correctly.  Now it does.
+
+  Fri Aug 21 14:37:40 1998  Jim Ingham <jingham@cygnus.com>
+
+         * gdbtk.c (gdbtk_init): Changed the startup code to use
+         tcl_findLibrary
+
+
+
+       
+on Dec 28 17:44:36 1998  David Taylor  <taylor@texas.cygnus.com>
+
+
+       The following changes were made by Jim Blandy <jimb@cygnus.com>,
+       Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
+       <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
+       Taylor <taylor@cygnus.com>, as part of the project to merge in
+       changes originally made by HP; HP did not create ChangeLog
+       entries.
+
+       * gdbtk.c (gdbtk_init): change stderr to gdb_stderr.
+
+       * gdbtk-cmds.c
+       (get_pc_register): Use paddr_nz, not sprintf's %llx and
+       a cast to `long long'.  Those aren't portable.
+       (gdb_eval): add embedded_offset param to val_print call
+       (get_register): add embedded_offset param to val_print call
+
+       * gdbtk-hooks.c
+       (tk_command_loop): change instream to a FILE.
+       (gdbtk_flush): change both the declaration and definition to 
+       use GDB_FILE rather than FILE.
+
+Mon Dec 21 11:11:02 1998  Keith Seitz  <keiths@cygnus.com>
+
+       * gdbtk-cmds.c (get_register): Call get_saved_register instead of
+       read_relative_register_raw_bytes to fetch registers.
+
+Thu Dec 17 09:00:56 1998  Keith Seitz  <keiths@cygnus.com>
+
+        * gdbtk-cmds.c (gdb_search): Don't mention C++ RTTI and
+        global constructor/destructor symbols.
+
+Tue Dec 15 10:09:31 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * gdbtk-cmds.c (gdb_disassemble): Fix typo.
+
+Sun Dec 13 09:52:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * gdbtk-cmds.c: Update TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN.
+
+Fri Dec 11 09:52:04 1998  Andrew Cagney  <cagney@chook>
+
+       * gdbtk-cmds.c: Replace reg_name with REGISTER_NAME.
+       
+Mon Dec 14 13:20:50 1998 Jim Ingham  <jingham@cygnus.com>
+
+       * Makefile.in, configure.in configure - add support for LIBGUI
+       outside the IDE context.
+       
+Thu Nov 19 13:14:57 1998  Geoffrey Noer  <noer@cygnus.com>
+
+       * gdbtk-cmds.c: Can't start using new API names yet.  Switch back
+       to calling cygwin32_ funcs until some time has passed...
+       * gdbtk.c: Ditto.  Also, include sys/cygwin.h for Cygwin, instead
+       of providing own proto.
+
+Fri Nov 13 00:15:08 1998  Geoffrey Noer  <noer@cygnus.com>
+
+       Changes to account for name change from cygwin32 to cygwin and
+       clean up Win32-related ifdefs.
+       
+        * gdbtk.c: lose "32" from cygwin_ func calls.  ifndef for
+        checking DISPLAY should be for _WIN32, not WINNT.
+        * gdbtk.h: pick GDBTK_PATH_SEP based on _WIN32, not WINNT.
+        * gdbtk-cmds.c (gdb_path_conv): lose "32" from cygwin_ func call,
+        change ifdef to __CYGWIN32__ instead of WINNT.
+       * {gdbtk.c, gdbtk-hooks.c}: __CYGWIN32__ refs drop the "32".
+
+Thu Nov 12 15:20:15 1998  Jim Ingham   <jingham@cygnus.com>
+
+       * gdbtk-cmds.c (gdb_cmd): Added an optional second argument to the
+       gdb_cmd, which is from_tty.  This is passed to the gdb command
+       parser.  It is 0 by default, and the console window passes 1.
+
+       * gdbtk-cmds.c: moved disassemble_from_exec from gdbtk.c to gdbtk-cmds.c
+       with all the other link-var'ed variables
+
+       * gdbtk-hooks.c (gdbtk_trace_find): Only run the hook functions if 
+       we are called from_tty.
+
+       * gdbtk-hooks.c (gdbtk_trace_start_stop): Set the trace buttons
+       from a trace_start_command callback rather than doing it as a
+       special case in gdb_cmd.
+
+       * tracepoint.c (tstart_command, tstop_command): Add call to
+       trace_start_stop_hook here.
+       
+Wed Nov  4 12:41:42 1998  Jim Ingham  <jingham@cygnus.com>
+
+       * gdbtk-cmds.c (gdb_set_bp_addr): Pass the type, enable & thread
+       to gdbtk_tcl_breakpoint.
+       * gdbtk-hooks.c (gdbtk_trace_find): Added this function.  It is
+       the hook function for tfind commands.
+       * tracepoint.c (trace_find_command): Added the trace_find_hook,
+       run when you do trace_find_command.
+       * tracepoint.h: Define the trace_find_hook.
+
+1998-11-03  Keith Seitz  <keiths@cygnus.com>
+
+        * v850ice.c (do_gdb): New function.
+        (ice_stepi): Use do_gdb to step properly.
+        (ice_nexti): Use do_gdb to step properly.
+        (view_source): Correct call to src window's location for new version.
+
+Mon Nov  2 11:16:10 1998  Jim Ingham  <jingham@cygnus.com>
+
+       * gdbtk-cmds (gdb_get_tracepoint_info): Demangle C++ function names.    
+
+Fri Oct 30 11:22:23 1998  Jim Ingham  <jingham@cygnus.com>
+
+       * gdbtk-cmds (gdb_get_tracepoint_info): Fixed typo.
+       
+Wed Oct 28 16:19:02 1998  Martin M. Hunt  <hunt@cygnus.com>
+
+       * gdbtk-cmds.c (gdb_set_bp_addr): For callback, send full 
+       pathname instead of just basename.
+
+Wed Oct 28 10:14:33 1998  Jim Ingham   <jingham@cygnus.com>
+
+       * gdbtk-cmds.c: Made the bdtypes & bpdisp arrays shared so they
+       could be used in gdbtk-hooks.c (breakpoint_notify).
+       Also fixed a few error messages to actually print the bp number
+       rather that #%d...      
+       * gdbtk-hooks.c (breakpoint_notify): pass more of the information
+       about the breakpoint into the Tcl command, so it does not have to
+       try and guess about information we have on the C side.
+       * gdbtk.h: Export the bptypes & pbdisp arrays.
+       
+1998-10-13  Jason Molenda  (jsm@bugshack.cygnus.com)
+
+       * gdbtk.c, gdbtk-cmds.c: Cast parameters passed to make_cleanup to
+       use the new make_cleanup_func typedef.
+
+1998-10-08  Keith Seitz  <keiths@cygnus.com>
+
+       * gdbtk-hooks.c (gdbtk_add_hooks): Install a hook for
+       (new) file_changed_hook.
+       (gdbtk_exec_file_changed): Rename to gdbtk_exec_file_display
+       to mimic hook's name.
+       (gdbtk_file_changed): New hook function.
+       
+Tue Oct  6 22:57:13 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * configure.in (links): Link gdbtcl2 directory instead of gdbtcl.
+
+Mon Oct  5 00:34:00 1998  Martin M. Hunt  <hunt@cygnus.com>
+
+       * gdbtk-cmds.c (gdb_set_bp_addr): New command. Sets a
+       breakpoint at an address. Use this instead of gdb_cmd "break"
+       because the syntax of the break command is broken and doesn't
+       allow you to create a thread-specific BP at an address.  Also
+       this is faster.
+
+Sun Oct  4 22:35:47 1998  Martin M. Hunt  <hunt@cygnus.com>
+
+       * gdbtk-cmds.c (gdb_set_bp): Add an optional thread number.
+       (gdb_find_bp_at_line): New function. Returns a list of bpnums 
+       at the specified line number.
+       (gdb_find_bp_at_addr): New function. Returns a list of bpnums 
+       at an address..
+
+1998-10-02  Keith Seitz  <keiths@cygnus.com>
+
+       * gdbtk-hooks.c (gdbtk_exec_file_changed): New function which handles
+       exec_file changes.
+       (gdbtk_add_hooks): Define exec_file_display_hook (to gdbtk_exec_file_changed)
+
+       * gdbtk-cmds.c (gdb_stop): target_stop is ALWAYS defined, so
+       compare against something a little more meaningful (target_ignore).
+
 1998-09-24  Keith Seitz  <keiths@cygnus.com>
 
        * gdbtk.c (gdbtk_wait): Don't run the timer for ice targets.
@@ -188,6 +619,10 @@ Fri Jun 26 13:56:07 1998  Keith Seitz  <keiths@cygnus.com>
        by the testsuite to source a file into the interpreter when it
        goes idle.
 
+Sun Jun 21 09:31:12 1998  Ron Unrau  (runrau@cygnus.com)
+
+       * gdbtk.c (gdb_set_bp): Use new interface.
+
 Wed Jun 17 19:12:23 1998  Jeff Holcomb  <jeffh@cygnus.com>
 
        * Makefile.in (install-only): Install tracing help files.
@@ -272,6 +707,15 @@ Thu May 21 13:56:24 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
        allow `gdb -nw' to work when specified specified from a windows
        console-mode command line.
 
+1998-05-19  Jim Blandy  <jimb@zwingli.cygnus.com>
+
+       * gdbtk.c (struct wrapped_call_objs): Change the `func' member to
+       be a Tcl_ObjCmdProc, not an Tcl_CmdProc, since it accepts a vector
+       of objects as arguments.  Change the object vector to be const,
+       since that's what all the users of this structure seem to expect.
+       (call_obj_wrapper): Cast clientData properly before storing it in
+       the wrapped_args structure.
+
 Wed May 13 11:12:58 1998  James Ingham  <jingham@leda.cygnus.com>
 
        * gdbtk.c: Fixed a goof in the definition of the gdb_get_args &
@@ -300,6 +744,15 @@ Wed Apr 29 15:53:16 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
        * gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter,
        which was unused.
 
+Tue Apr 28 19:41:33 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in (GDBTKLIBS): New macro.
+       (INSTALLED_LIBS): Include GDBTKLIBS.
+       (CLIBS): Likewise.
+       * configure: Rebuilt.
+       * configure.in: Put Tcl/Tk libs into GDBTKLIBS, not LIBS.
+       (GDBTKLIBS): AC_SUBST.
+
 Thu Apr 23 19:01:05 1998  Keith Seitz  <keiths@onions.cygnus.com>
 
        * Makefile.in (install-only): Install help files.
@@ -532,6 +985,13 @@ Sat Mar 21 19:34:49 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
        __CYGIN32__.
        (gdb_clear_file): Clear stop_pc.
 
+Wed Mar  4 16:50:18 1998  Jason Molenda  (crash@bugshack.cygnus.com)
+
+       * gdbtk.c (gdb_listfiles): Fix thinko in last change.
+
+Wed Mar  4 15:34:49 1998  Jason Molenda  (crash@bugshack.cygnus.com)
+
+       * gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.
 
 Tue Feb 10 17:50:37 1998  Keith Seitz  <keiths@onions.cygnus.com>