summaryrefslogtreecommitdiff
path: root/gdb/gdbtk/generic/gdbtk-register.c
Commit message (Collapse)AuthorAgeFilesLines
* Import readline 5.1 on the branch.readline_5_1-import-branchcvs/readline_5_1-import-branchDaniel Jacobowitz2006-04-241-567/+0
|
* * generic/gdbtk.h:Eli Zaretskii2005-12-231-3/+3
| | | | | | | | | | | | | | | | * generic/gdbtk.c: * generic/gdbtk-wrapper.h: * generic/gdbtk-wrapper.c: * generic/gdbtk-varobj.c: * generic/gdbtk-stack.c: * generic/gdbtk-register.c: * generic/gdbtk-main.c: * generic/gdbtk-interp.c: * generic/gdbtk-hooks.c: * generic/gdbtk-cmds.h: * generic/gdbtk-cmds.c: * generic/gdbtk-bp.c: Put (C) after Copyright. Update the FSF address.
* * generic/gdbtk-cmds.c (gdb_set_mem): target_write_memory now takesKeith Seitz2005-05-271-1/+1
| | | | | | | | | | | gdb_byte* instead of char*. * generic/gdbtk-register.c (get_register): frame_register and val_print take gdb_byte* instead of char*. * generic/gdbtk-wrapper.c: Ditto the val_print part. From Paul Schlie <schlie@comcast.net>: * generic/gdbtk-bp.c (gdb_set_bp): Use lbasename instead of basename. * generic/gdbtk-cmds.c (gdb_listfiles): Likewise.
* 2004-10-31 David Lecomber <dsl@sources.redhat.com>David Lecomber2004-10-311-1/+1
| | | | | * generic/gdbtk-register.c: Add message parameter to call of get_selected_frame.
* Fix build failure.Ben Elliston2004-08-091-6/+5
| | | | | | | * generic/gdbtk-register.c (get_register_size): Use register_size() instead of DEPRECATED_REGISTER_RAW_SIZE. (get_register): Likewise. (register_changed_p): Likewise.
* 2004-06-11 Martin Hunt <hunt@redhat.com>Martin Hunt2004-06-111-16/+5
| | | | | | | | | | | | * generic/gdbtk-cmds.c (gdb_find_file_command): Use symtab_to_fullname() instead of symtab_to_filename(). (gdb_loc): Ditto. (gdb_loadfile): Ditto. * generic/gdbtk-bp.c (gdb_get_breakpoint_info): Ditto. (gdb_get_tracepoint_info): Ditto. * generic/gdbtk-register.c (get_register): Simplify and remove references to DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL.
* 2004-03-29 Martin Hunt <hunt@redhat.com>Martin Hunt2004-03-301-5/+3
| | | | | | | * generic/gdbtk-register.c (map_arg_registers): If a specific register was requested, just return it without validating it has a name. (get_register): Check DEPRECATED_REGISTER_CONVERTIBLE_P ().
* 2004-02-17 Martin Hunt <hunt@redhat.com>Martin Hunt2004-02-171-4/+4
| | | | | | | | | * generic/gdbtk-register.c (Gdbtk_Register_Init): Replace calls to register_gdbarch_swap with deprecated_register_gdbarch_swap. * library/srcwin.itb: Remove an apparently redundant call to gdbtk_locate_main and location. This actually broken situations where no source files were found.
* 2003-10-06 David Carlton <carlton@kealia.com>David Carlton2003-10-061-5/+6
| | | | | | * generic/gdbtk-register.c (get_register_size): Replace REGISTER_RAW_SIZE by DEPRECATED_REGISTER_RAW_SIZE. (get_register, register_changed_p): Ditto.
* 2003-09-30 David Carlton <carlton@kealia.com>David Carlton2003-09-301-1/+2
| | | | | | * generic/gdbtk-register.c (get_register): Replace REGISTER_VIRTUAL_SIZE by DEPRECATED_REGISTER_VIRTUAL_SIZE.
* 2003-08-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-08-051-13/+15
| | | | | | * generic/gdbtk-register.c (gdb_reggrouplist): Update, use reggroup_next. (gdb_reggroup): Ditto.
* 2003-06-11 David Carlton <carlton@bactrian.org>David Carlton2003-06-111-2/+2
| | | | | * generic/gdbtk-register.c (get_register): REGISTER_CONVERTIBLE and REGISTER_CONVERT_TO_VIRTUAL are deprecated.
* 2003-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-05-081-6/+6
| | | | | | | * generic/gdbtk-register.c (get_register): Replace MAX_REGISTER_VIRTUAL_SIZE and MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE. (register_changed_p, setup_architecture_data): Ditto.
* 2003-03-24 Martin M. Hunt <hunt@redhat.com>Martin Hunt2003-03-251-3/+3
| | | | | | * generic/gdbtk-register.c (get_register_types): Use register_type instead of REGISTER_VIRTUAL_TYPE. (get_register): Ditto.
* * generic/gdbtk-register.c (get_register): Use frame_registerKeith Seitz2003-03-171-2/+6
| | | | instead of get_saved_register (which was deleted from gdb).
* * generic/gdbtk-register.c (register_changed_p): If the selectedKeith Seitz2003-02-121-1/+2
| | | | | frame is NULL, do not call frame_register_read, since that will now cause an internal error.
* 2003-02-10 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2003-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * generic/gdbtk-varobj.c (gdb_variable_command): Ditto for `commands'. (variable_type): Ditto for `first'. (variable_obj_command): Ditto. (variable_create): Ditto for create_options. (variable_type): Ditto for `last'. Use `string' and not `first' when modifying the buffer. (struct disassembly_client_data ): Ditto for `asm_argv' * generic/gdbtk-register.c (gdb_register_info): Ditto for `commands'. * generic/gdbtk-hooks.c (tk_command_loop): Ditto for `msg'. * generic/gdbtk-cmds.c (gdb_search): Ditto for `switches'. (gdbtk_load_source): Ditto for `text_argv'. (struct disassembly_client_data ): Ditto for `source_argv'. (gdbtk_load_asm): Ditto for `text_argv'. (struct disassembly_client_data ): Ditto for `asm_argv' (gdb_loadfile): Ditto for `text_argv'. * generic/gdbtk.c (TclDebug): Make `v' a constant pointer. (gdbtk_init): Ditto for `old_chain', `src_path', `msg', and `lib_path'.
* 2002-12-17 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-12-171-5/+87
| | | | | | | | | | | | | | | | | | | | | | | | * library/regwin.itb (_load_prefs): Get list of registers from the group name. (_build_win): Remove old menu system. Replace with an optionmenu that contains all the valid group names for this architecture. (_layout_table): No need to update old menu. (_but3): Add "Close" to popup menu. (_delete_from_display): No need to update old menu. (_display_all): Ditto. (_post_menu): Deleted. (_select_group): New method. Callback for group optionmenu. * library/regwin.ith: New private variable _group. New private method _select_group. Removed _post_menu. * generic/gdbtk-register.c: Include reggroups.h. (gdb_register_info): Add "group" and "grouplist". (gdb_regformat): Fix Tcl_WrongNumArgs call so it doesn't crash. (gdb_reggrouplist): New function. Returns the names of the register groups. (gdb_reggroup): New function. Returns the register numbers of the registers in a group.
* 2002-11-30 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2002-11-301-2/+2
| | | | | | | | * generic/gdbtk-stack.c: Replace selected_frame with deprecated_selected_frame. * generic/gdbtk-register.c: Ditto. * generic/gdbtk-cmds.c (gdb_loc): Replace selected_frame with deprecated_selected_frame. Use get_frame_pc and find_frame_sal.
* Index: ChangeLogAndrew Cagney2002-08-031-0/+1
| | | | | | | | | | | | | | | 2002-08-03 Andrew Cagney <ac131313@redhat.com> * Makefile.in (gdbtk-bp.o): Update dependencies. (gdbtk-register.o): Ditto. (gdbtk-varobj.o): Ditto. Index: gdbtk/ChangeLog 2002-08-03 Andrew Cagney <ac131313@redhat.com> * generic/gdbtk-bp.c: Include "gdb_string.h". * generic/gdbtk-register.c: Ditto. * generic/gdbtk-varobj.c: Ditto.
* 2002-05-15 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-05-161-74/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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".
* * generic/gdbtk-register.c (get_register, register_changed_p):Alexandre Oliva2002-05-051-3/+3
| | | | Don't depend on variable-sized automatic arrays.
* * defs.h (read_relative_register_raw_bytes): Delete declaration.Andrew Cagney2002-04-121-5/+1
| | | | | | | | | | | | | | | | | * 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-register.c (register_changed_p): Don't use REGISTER_BYTES.Keith Seitz2002-03-011-6/+7
| | | | | | There is no guarantee anymore that REGISTER_BYTES contains NUM_REGS+NUM_PSEUDO_REGS registers. (setup_architecture_data): Likewise.
* 2002-02-06 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-02-071-23/+11
| | | | | | | | | * 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.
* s/BIG_ENDIAN/BFD_ENDIAN_BIG/Andrew Cagney2002-01-051-1/+1
|
* * generic/gdbtk-register.c (gdb_register_info): New function.Keith Seitz2001-08-131-96/+112
| | | | | | | | | Consolidates all register handling. (get_register_size): New function. (gdb_changed_register_list, gdb_fetch_registers, gdb_regnames): Deprecate. (setup_architecture_data): Free old register cache when necessary.
* 2001-07-31 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-07-311-0/+1
| | | | | * generic/gdbtk-cmds.c: Don't include regcache.h. * generic/gdbtk-register.c: Include regcache.h.
* 2001-07-20 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-07-201-3/+5
| | | | | | * generic/gdbtk-register.c (gdb_regnames): Fix 'if' statement so count is decremented only if "-numbers" is the first arg.
* * generic/gdbtk-cmds.c: Put on diet. All breakpoint-,Keith Seitz2001-05-101-0/+373
tracepoint-, register-, and stack-related functions moved into separate files. (call_wrapper): Renamed to "gdbtk_call_wrapper" and export. Update all callers. * generic/gdbtk.h: Move all breakpoint-related stuff into gdbtk-bp.c. Remove declaration for "call_wrapper". Now in gdbtk-cmds.h (and called "gdbtk_call_wrapper"). * generic/gdbtk-varobj.c: Include "gdbtk-cmds.h". * generic/gdbtk-cmds.h: New file. * generic/gdbtk-bp.c: New file. * generic/gdbtk-register.c: New file. * generic/gdbtk-stack.c: New file.