summaryrefslogtreecommitdiff
path: root/gdb/gdbtk
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***Martin Hunt2002-05-161-96/+24
|
* 2002-05-15 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-05-164-323/+523
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/help/register.html: Rewrite docs. * library/regwin.ith (_types): New private variable array to save the possible types for each register. (_type): New private variable array to save the selected type for each register. (_rows): New private variable. Number of rows in the table. (_cols): New private variable. Number of cols in the table. (_load_prefs): New private method. (_open_memory): New private method. (_edit_menu): Deleted: (_select): Deleted. (_change_format): Add optional type argument. * library/regwin.itb (RegWin::_load_prefs): New method. Collects all the prefs stuff here instead of in _layout_table. Prefs code was all rewritten to handle new types and formats. (RegWin::_build_win): Disable Double-1 binding. Bind button 1 to edit the cell. Don't make an Edit menu item. Remove Natural, Binary, Octal, and Raw formats. Add "Open Memory Window" menu item. (RegWin::_dimensions): This function was being abused so I removed it. Replaced with inline code in _layout_table which saves its computed values so it doesn't have to be recalculated unless something changes. (RegWin::_layout_table): Rewritten to be more efficient. Grabs all values in one call to gdb_reginfo instead of one for each register. Uses new types and formats. Calls _load_prefs. (RegWin::_accept_edit): Use type information when setting value. When done, call _unedit to remove tags. (RegWin::_open_memory): Open memory window with initial value set to the value of a register. (RegWin::_but3): Add types menu items. Limit format options to reasonable ones. Add "Open Memory Window". Add "Help" (RegWin::_edit): Just call _select_cell. (RegWin::_edit_menu): Deleted. (RegWin::_move): Don't recompute rows and cols; use _rows and _cols computed by _layout_table. (RegWin::_post_menu): Update types and formats. Disable "Open Memory Window" if register is not integer. Remove Edit. (RegWin::_select): Deleted. (RegWin::_select_cell): Tag cell as being edited. Then call focus, which is a workaround for a TkTable glitch where the insertion bar sometimes disappeared. (RegWin::_unedit): Clear selection. Call focus. Don't change any bindings. (RegWin::_get_value): Eliminate previous crap and just call "gdb_reginfo value". (RegWin::_change_format): Add optional type arg. Call "gdb_reginfo format". (RegWin::_update): Get a list of all the changed registers instead of checking one at a time. * generic/gdbtk-register.c (Gdbtk_Register_Init): Don't create gdb_pc_reg. It is not used. Call register_gdbarch_swap with regformat and regtype. (gdb_register_info): Add "type" and "format" options. (get_pc_register): Delete. (get_register_types): New function. Returns list of valid types for a list of registers. (get_register): Use saved format and type for each register. Check if there are any registers yet (target not running). Use mem_file to collect output. Append output to a list. (map_arg_registers): If passed a list, iterate though each element and build a list of values to return. (setup_architecture_data): Memory was not being initialized, so use xcalloc(). Allocate memory for regformat and regtype. (gdb_regformat): New function called by "gdb_reginfo format".
* 2002-05-15 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-05-161-1/+5
| | | | | * generic/gdbtk-cmds.c (gdb_eval): For mem_file stuff, delete the file when done and free memory.
* 2002-05-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-05-072-1/+6
| | | | | * library/session.tcl (notice_file_change): Catch the directory change, in case the directory no longer exists.
* * generic/gdbtk-register.c (get_register, register_changed_p):Alexandre Oliva2002-05-052-3/+8
| | | | Don't depend on variable-sized automatic arrays.
* * generic/gdbtk-wrapper.h (GDB_select_frame): Delete declaration.Andrew Cagney2002-05-043-27/+6
| | | | | * generic/gdbtk-wrapper.c (GDB_select_frame): Delete function. (wrap_select_frame): Delete function.
* 2002-04-26 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-04-262-1/+22
| | | | | | * library/interface.tcl (gdbtk_force_quit): New function. Closes source windows then calls gdb_force_quit. (gdbtk_quit): Call gdbtk_force_quit.
* * library/managedwin.ith (_ignore_on_save): New protected method.Keith Seitz2002-04-246-2/+29
| | | | | | | | | | | * library/managedwin.itb (shutdown): If _ignore_on_save, don't save this window to the active window list in the preferences file. * library/debugwin.ith (DebugWin::_ignore_on_save): Don't save this window to preferences active list. (DebugWinDOpts::_ignore_on_save): Likewise. * library/pluginwin.itcl (_ignore_on_save): Likewise. * library/download.ith (_ignore_on_save): Likewise.
* * generic/gdbtk-stack.c (Gdbtk_Stack_Init): Don't linkKeith Seitz2002-04-233-5/+16
| | | | | | selected_frame_level directly. * generic/gdbtk-hooks.c (gdbtk_selected_frame_changed): Set the global "gdb_selected_frame_level" directly.
* * generic/gdbtk-wrapper.c (GDB_find_frame_addr_in_frame_chain):Andrew Cagney2002-04-213-37/+9
| | | | | | | Delete function. (wrap_find_frame_addr_in_frame_chain): Delete function. * generic/gdbtk-wrapper.h (GDB_find_frame_addr_in_frame_chain): Delete declaration.
* * generic/gdbtk.c (gdbtk_init): Use error or throw_exception toAndrew Cagney2002-04-172-3/+12
| | | | report an error.
* * defs.h (read_relative_register_raw_bytes): Delete declaration.Andrew Cagney2002-04-122-5/+7
| | | | | | | | | | | | | | | | | * frame.c (frame_register_read): New function. Return non-zero on success. (read_relative_register_raw_bytes_for_frame): Delete. (read_relative_register_raw_bytes): Delete. * frame.h (frame_register_read): Declare. * d30v-tdep.c: Update Copyright. Use frame_register_read. * sh-tdep.c: Ditto. * infcmd.c (do_registers_info): Ditto. * hppa-tdep.c: Ditto. * rs6000-tdep.c: Ditto. * h8500-tdep.c: Ditto. * mips-tdep.c: Ditto. * h8300-tdep.c: Ditto. * z8k-tdep.c: Ditto.
* * generic/gdbtk-wrapper.c (wrap_get_frame_block): Add missing NULLAndrew Cagney2002-04-092-1/+6
| | | | parameter. Match recent get_frame_block changes.
* * generic/gdbtk-stack.c (gdb_block_vars): Update get_frame_block toKeith Seitz2002-04-052-4/+12
| | | | | | | match recent gdb changes. (gdb_get_blocks): Likewise. (gdb_get_vars_command): Likewise. (gdb_selected_block): Likewise.
* * library/download.itb (constructor): Set feedback meterKeith Seitz2002-04-053-15/+14
| | | | | | | | to "0.0". Remove "steps" array. (update_download): Use fractional completions for feedback. (done): Ditto. * library/download.ith (protected variable steps): Remove.
* 2002-04-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-04-042-18/+10
| | | | | * generic/gdbtk-cmds.c (gdb_disassemble_driver): Skip end-of-function markers in the line table.
* * generic/gdbtk-cmds.c (gdb_load_disassembly): Use string_to_core_addrKeith Seitz2002-04-012-3/+9
| | | | | instead of parse_and_eval_address. Use xfree instead of free.
* 2002-03-25 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-03-252-0/+6
| | | | | * generic/gdbtk-hooks.c: Include cli/cli-decode.h for cmd_list_element.
* * generic/gdbtk.c (HAS_STDARG): Define.Alexandre Oliva2002-03-254-0/+18
| | | | | * generic/gdbtk-cmds.c (HAS_STDARG): Likewise. * generic/gdbtk-hooks.c (HAS_STDARG): Likewise.
* * library/bpwin.itb (constructor): Set some sane initialKeith Seitz2002-03-142-0/+11
| | | | size.
* 2002-03-07 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-03-072-0/+9
| | | | | * library/srctextwin.itb (SrcTextWin::showBPBalloon): Put linefeeds between multiple breakpoints.
* 2002-03-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-03-073-19/+41
| | | | | | | | | | | * library/srctextwin.itb (SrcTextWin::showBPBalloon): Reformat output. Add conditions, ignore count, commands. * library/interface.tcl (gdbtk_tcl_readline): Remove call to "command::insert" and instead insert the command into the console window. (gdbtk_tcl_readline_end): Catch the unsets and do not call non-existent function command::end_multi_line_input.
* 2002-03-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-03-072-7/+12
| | | | | * library/bpwin.itb: Left-justify the labels in the table.
* * generic/gdbtk-cmds.c: Include "ctype.h" if available.Keith Seitz2002-03-064-141/+205
| | | | | | | | | | | | | | | | | | | | (gdb_get_mem): Renamed to gdb_update_mem. (gdb_update_mem): Take array as first tcl argument. This array will hold the data for the table, which is now stuffed in C instead of tcl. (gdb_eval): Use our own ui-file instead of gdb_stdout. * library/memwin.ith (_update_address): New method. (update_address): Address expression is no longer optional. * library/memwin.itb (build_win): Use _update_address instead of update_address. (toggle_enabled): Ditto. (newsize): Use _update_address instead of update_addr. (update_address_cb): Use _update_address instead of update_address. (do_popup): Likewise. (goto): Likewise. (incr_addr): Use _update_address instead of update_addr. (edit): Use gdb_update_mem instead of gdb_get_mem. (update_addr): use gdb_update_mem to do all the window updating.
* 2002-03-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-03-062-1/+5
| | | | | * library/srcwin.itb: Don't try to set balloon help for search widget; it moved to srcbar.
* 2002-03-05 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-03-0519-109/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/prefs.tcl (pref_read): If a preference specifies "src-font", substitute "global/fixed". (pref_set_defaults): Change defaults from "src-font" to "global/fixed". Do not create font object "src-font". Do not add hook to trace its changes. (pref_src-font_trace): Remove. * library/console.itb (Console::_update_option): Remove font update because this happens automatically. * library/globalpref.itb: No need to set changed flag for fonts; updates happen automatically when prefs are updated. * library/bpwin.itb: Replaced src-font with global/fixed. * library/browserwin.itb: Ditto. * library/mempref.itb: Ditto. * library/memwin.itb: Ditto. * library/process.itb: Ditto. * library/regwin.itb: Ditto. * library/srcbar.itcl: Ditto. * library/srcpref.itb: Ditto. * library/srctextwin.itb: Ditto. * library/srcwin.itb: Ditto. * library/stackwin.itb: Ditto. * library/tdump.tcl: Ditto. * library/tracedlg.tcl: Ditto. * library/variables.tcl: Ditto. * library/watch.tcl: Ditto.
* * generic/gdbtk-register.c (register_changed_p): Don't use REGISTER_BYTES.Keith Seitz2002-03-012-6/+14
| | | | | | There is no guarantee anymore that REGISTER_BYTES contains NUM_REGS+NUM_PSEUDO_REGS registers. (setup_architecture_data): Likewise.
* * library/srcbar.itcl (SrcBar::create_buttons): AddedIan Roxborough2002-02-264-17/+29
| | | | | | | | | | | "Search in source file" entry box and label to the top row toolbar. * library/srcwin.itb (SrcWin::_build_win): Removed "Search in source file" entry box. (SrcWin::_search): Renamed to "search", add string parameter and cleaned up. * library/srcwin.ith (SrcWin): Removed private method "_search" and added public method "search".
* * library/tclIndex: Updated.Tom Tromey2002-02-186-244/+257
| | | | | | | | | | * library/srcbar.itcl (SrcBar): Use new Session namespace. * library/main.tcl: Use new Session namespace. * library/interface.tcl (gdbtk_tcl_preloop): Use new Session namespace. (gdbtk_cleanup): Likewise. (_close_file): Likewise. * library/session.tcl: Use a namespace. Renamed all functions.
* 2002-02-13 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-02-142-2/+6
| | | | | | * generic/gdbtk-hooks.c (gdbtk_print_frame_info): Don't set GDB globals current_source_symtab and current_source_line. Let GDB do it.
* * library/managedwin.itb (_create): If given a transient window,Keith Seitz2002-02-142-1/+17
| | | | | make sure that the SrcWin that is to become its master exists; otherwise, use ".".
* From Don Bowman <don@sandvine.com>:Keith Seitz2002-02-122-2/+17
| | | | | | * library/targetselection.itb (init_target_db): Add target vxWorks. Update copyright.
* 2002-02-10 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-02-113-4/+8
| | | | | | | | | | | | | | * symtab.c (compare_search_syms): New function. (sort_search_symbols): New function. (search_symbols): Sort symbols after searching rather than before. 2002-02-10 Daniel Jacobowitz <drow@mvista.com> * generic/gdbtk-cmds.c (gdb_listfuncs): Don't call BLOCK_SHOULD_SORT. * library/browserwin.itb (BrowserWin::_fill_funcs_combo): Sort the output of gdb_listfuncs.
* 2002-02-07 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-02-076-46/+23
| | | | | * generic/gdbtk.c, generic/gdbtk-bp.c, generic/gdbtk-cmds.c, generic/gdbtk-hooks.c, generic/gdbtk-stack.c: Cleanup includes.
* 2002-02-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-02-079-842/+579
| | | | | | | | | * generic/gdbtk.c, generic/gdbtk-bp.c, generic/gdbtk-cmds.c, generic/gdbtk-hooks.c, generic/gdbtk-register.c, generic/gdbtk-stack.c, generic/gdbtk-varobj.c, generic/gdbtk-wrapper.c: Cleanup. Fix indentation. Fix function declarations. Remove unused variables. Add 2002 copyrights.
* * library/images/cygnus.gif: Remove.Keith Seitz2002-02-063-0/+5
| | | | * library/images2/cygnus.gif: Remove.
* 2002-02-05 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-02-062-2/+7
| | | | | * generic/gdbtk-cmds.c (gdbtk_load_asm, gdbtk_print_asm): Use TARGET_PRINT_INSN instead of tm_print_insn.
* Update copyright (dates verified with cvs)Keith Seitz2002-01-181-1/+1
|
* * library/console.ith (get_text): Delete.Keith Seitz2002-01-183-6/+27
| | | | | | (test): New public method. * library/console.itb (get_text): Delete. (test): New public method.
* update copyrights (dates verified with cvs)Keith Seitz2002-01-157-7/+7
|
* Update copyright (dates verified against cvs)Keith Seitz2002-01-151-1/+1
|
* * generic/gdbtk-varobj.c (variable_value): When varobj_get_valueKeith Seitz2002-01-152-1719/+13
| | | | | | fails, use error_last_message to return the error to tcl land. This allows us to display nice messages about why "0xdeadbeef" is not accessible!
* 2002-01-11 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-01-112-10/+15
| | | | | * library/memwin.itb (idle): Check for existence of window. Prevents race-condition error.
* 2002-01-11 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-01-112-8/+10
| | | | * library/srctextwin.itb: Check for existence of $twin.
* 2002-01-11 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-01-112-4/+9
| | | | | | * library/interface.tcl (gdbtk_tcl_exec_file_display): Set pathname in host-independent manner using "file" and gdb_current_directory.
* * library/Makefile (ITCL_SH): Renamed to "ITCLSH".Keith Seitz2002-01-112-2/+8
| | | | | (tclIndex): We no longer have an Itcl shell, so we must use "package require Itcl".
* * generic/gdbtk-cmds.c (gdb_find_file_command): If the symtabKeith Seitz2002-01-082-3/+14
| | | | | doesn't have the filename's fullname, look it up with symtab_to_filename.
* * library/srcwin.itb (location): Fix typo. It's "addr" notKeith Seitz2002-01-082-1/+6
| | | | "address".
* * library/interface.tcl (gdbtk_tcl_preloop): Use current directoryTom Tromey2002-01-082-2/+1727
| | | | when `--args' given.
* * library/srcbar.itcl (SrcBar::create_buttons): Line numberIan Roxborough2002-01-074-36/+55
| | | | | | | | | | | | and address fields have been removed and added to the status bar. * library/srcwin.itb (SrcWin::_build_win): Add address and line number fields to status bar. Moved download progress bar to status bar. (SrcWin::download_progress): Use canvas on status bar. Remember to adjust width of 64-bit address. (SrcWin::location): Set line number and address on status bar. * library/srcwin.ith (SrcWin): Added new private variable.