aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2002-06-26 * command.h (add_setshow_cmd): Declare.Tom Tromey3-19/+77
(add_setshow_cmd_full): Declare. * cli/cli-decode.c (add_setshow_cmd): No longer static. Now returns void. Use add_setshow_cmd_full. (add_setshow_cmd_full): New function. (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full. (add_setshow_boolean_cmd): Likewise.
2002-06-26Remove files checked in by mistake.Jason Thorpe4-64/+0
2002-06-26* config/vax/tm-vax.h: Protect from multiple inclusion.Jason Thorpe8-16/+120
(TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR) (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to... * config/vax/tm-vaxbsd.h: ...here. New file. * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2002-06-26* config/vax/tm-vax.h (BREAKPOINT): Remove.Jason Thorpe4-14/+30
(BELIEVE_PCC_PROMOTION): Remove. (AP_REGNUM): Move to... * config/vax/nm-vax.h: ...here. * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM. (vax_breakpoint_from_pc): New function. (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc and gdbarch_believe_pcc_promotion.
2002-06-26* config/m68k/tm-m68k.h: Rearrange code so macros not in theGrace Sainsbury3-49/+99
gdbarch vector are at the top. (NUM_REGS): Remove. (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove. (FRAME_ARGS_ADDRESS): Remove. (FRAME_LOCALS_ADDRESS): Remove. (FRAME_NUM_ARGS): Remove. (FRAME_ARGS_SKIP): Remove. * m68k-tdep.c (enum): Add eumeration of special register numbers. (m68k_gdbarch_init): Add gdbarch initializations for macros undefined in tm-m68k.h
2002-06-26* Makefile.in (vax_tdep_h): Define.Jason Thorpe4-6/+57
(vax-tdep.o): Use $(vax_tdep_h). * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework. (vax_dump_tdep): New function. (_initialize_vax_tdep): Register vax_dump_tdep. * vax-tdep.h: Include osabi.h. (struct gdbarch_tdep): New.
2002-06-26* frame.h (deprecated_generic_find_dummy_frame): RenameAndrew Cagney6-11/+38
generic_find_dummy_frame. * blockframe.c (generic_find_dummy_frame): Make static. (deprecated_generic_find_dummy_frame): New function. * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace generic_find_dummy_frame with deprecated_find_dummy_frame. (sh64_nofp_frame_init_saved_regs): Ditto. (sh_fp_frame_init_saved_regs): Ditto. * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto. (s390_frame_chain): Ditto. * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2002-06-26made regname function const char *Grace Sainsbury1-1/+1
2002-06-26* monitor.h: Add the function regname to monitor_opsGrace Sainsbury8-33/+124
structure. This way NUM_REGS does not have to be a constant. * monitor.c (monitor_fetch_register): Added support for regname function. The function is called if the array regnames is NULL. (monitor_store_register): Same. * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces regnames array. (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL, cpu32bug_cmds.regname to point to new function. * abug-rom.c (abug_regname): Same as above. (init_abug_cmds): Same. * dbug-rom.c (dbug_regname): Same as above. (init_dbug_cmds): Same. * remote-est.c (est_regname): Same. (init_est_cmds): Same. * rom68k-rom.c (rom68k_regname): Same. (init_rom68k_cmds): Same.
2002-06-26 * breakpoint.c (delete_command): Don't repeat `delete' commands.Tom Tromey2-0/+6
2002-06-26*** empty log message ***gdbadmin1-1/+1
2002-06-25* infrun.c (stop_registers): Change variable's type to ``structAndrew Cagney5-39/+78
regcache'''. (xmalloc_inferior_status): Delete function. (free_inferior_status): Delete function. (normal_stop): Use regcache_cpy. (struct inferior_status): Change type of fields ``stop_registers'' and ``registers'' to ``struct regcache''. (write_inferior_status_register): Use regcache_write. (save_inferior_status): Instead of calling xmalloc_inferior_status, allocate the inf_status buffer directly. Use regcache_dup_no_passthrough and regcache_dup to save the buffers. (restore_inferior_status): Use regcache_xfree and regcache_cpy. Replace the stop_registers regcache instead of overriding it. Use regcache_xfree. Instead of calling free_inferior_status, xfree the buffer directly. (discard_inferior_status): Use regcache_xfree. Instead of calling free_inferior_status, xfree the buffer directly. (build_infrun): Use regcache_xmalloc. (_initialize_infrun): Delete redundant call to build_infrun. * Makefile.in (infcmd.o): Add $(regcache_h). * infcmd.c: Include "regcache.h". (run_stack_dummy): Use deprecated_grub_regcache_for_registers to obtain the address of `stop_registers' register buffer. (print_return_value): Ditto. * inferior.h (struct regcache): Add opaque declaration. (stop_registers): Change variable's declared type to ``struct regcache''.
2002-06-252002-06-25 Don Howard <dhoward@redhat.com>Don Howard2-3/+10
* gdb.texinfo (Memory Region Attributes): Document new behavior for 'mem' command.
2002-06-25 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.Tom Tromey3-2/+6
* target.c (initialize_targets): Fixed typo in trust-readonly-sections `show' documentation.
2002-06-25 * main.c: Marked all strings with _().Tom Tromey2-35/+39
2002-06-25*** empty log message ***gdbadmin1-1/+1
2002-06-242002-06-24 Don Howard <dhoward@redhat.com>Don Howard2-7/+17
* memattr.c (create_mem_region): Treat hi == 0 as a special case that means max CORE_ADDR+1. (lookup_mem_region): Ditto. (mem_info_command): Ditto.
2002-06-24 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.Grace Sainsbury3-4/+159
(REGISTER_BYTES_OK): Remove. (REGISTER_BYTES): Remove. (STORE_STRUCT_RETURN): Remove. (DEPRECATED_EXTRACT_RETURN_VALUE): Remove. (STORE_RETURN_VALUE): Remove. (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (FRAME_CHAIN): Remove. (FRAMELESS_FUNCTION_INVOCATION): Remove. (FRAME_SAVED_PC): Remove. * m68k-tdep.c (m68k_register_bytes_ok):Add. (m68k_store_struct_return): Add. (m68k_deprecated_extract_return_value): Add. (m68k_deprecated_extract_struct_value_address): Add. (m68k_store_return_value): Add. (m68k_frame_chain): Add. (m68k_frameless_function_invocation): Add. (m68k_frame_saved_pc): Add. (m68k_gdbarch_init): added set_gdbarch calls for new functions and deleted macros.
2002-06-24 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.Tom Tromey2-26/+17
(ALLDEPFILES): Likewise. (udiheaders): Removed. (udip2soc.o): Likewise. (udi2go32.o): Likewise. (udr.o): Likewise. (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2002-06-24*** empty log message ***gdbadmin1-1/+1
2002-06-23*** empty log message ***gdbadmin1-1/+1
2002-06-22* gdb.base/selftest.exp (do_stes_and_next): Skip calls toAndrew Cagney2-1/+22
setlocale, bindtextdomain and textdomain.
2002-06-22* infrun.c (_initialize_infrun): Delete unnecessary call toAndrew Cagney2-2/+3
build_infrun.
2002-06-22* regcache.h: Update comments describing the regcache_cpy familyAndrew Cagney3-43/+18
of functions. (regcache_save, regcache_restore): Delete declaration. (regcache_save_no_passthrough): Delete declaration. (regcache_restore_no_passthrough): Delete declaration. * regcache.c (regcache_save): Delete function. (regcache_save_no_passthrough): Delete function. (regcache_restore): Delete function. (regcache_restore_no_passthrough): Delete function.
2002-06-22* config/m68k/tm-m68k.h: Fix typo.Andrew Cagney2-1/+20
(FRAME_INIT_SAVED_REGS): Define when non-multi-arch. (m68k_frame_init_saved_regs): Declare.
2002-06-22Remove some vestiges of Harris 88k support.Jim Blandy3-17/+8
* dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k register numbering quirk. * elfread.c (elf_symtab_read): Remove `#if' block for skipping odd symbols occurring in Harris 88k ELF targets.
2002-06-22*** empty log message ***gdbadmin1-1/+1
2002-06-21 * gdb_locale.h: New file.Tom Tromey8-334/+446
* Makefile.in (GDB_CFLAGS): Define LOCALEDIR. (defs_h): Added gdb_locale.h. * configure, config.in: Rebuilt. * configure.in (PACKAGE): Define. * defs.h: Include gdb_locale.h. * main.c (captured_main): Call setlocale, bindtextdomain,
2002-06-212002-06-21 Dave Brolley <brolley@redhat.com>Dave Brolley7-0/+1257
From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner: * config/frv/frv.mt: New file. * config/frv/tm-frv.h: New file. * configure.tgt: Support frv-*-*. * Makefile.in (frv-tdep.o): New target. * frv-tdep.c: New file. * NEWS: Mention frv.
2002-06-212002-06-21 Dave Brolley <brolley@redhat.com>Dave Brolley2-0/+5
* MAINTAINERS: Add self to "Write After Approval" list.
2002-06-21* config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)Grace Sainsbury3-5/+145
(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE) (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT) (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL) (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros. * m68k-tdep.c: Include arch-utils.h (m68k_register_raw_size): Add. (m68k_register_virtual_size): Add. (m68k_register_virtual_type): Add. (m68k_register_name): Add. (m68k_stack_align): Add. (m68k_register_byte): Add. (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in tm-m68k.h.
2002-06-21Fixed changelog entry. Indented m68k-tdep.cGrace Sainsbury2-15/+25
2002-06-21Replaced frame_find_saved_regs with frame_init_saved_regs. ConvertedGrace Sainsbury3-39/+86
call dummy macros to multi-arch.
2002-06-212002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller9-6/+49
* parse.c (parse_fprintf): New function used to avoid calls to fprintf in bison parser generated debug code. * parser-defs.h: Declaration of new parse_fprintf function. * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y: Set YYDEBUG to 1 by default. Set YYFPRINTF as parse_fprintf.
2002-06-21 * dwarf2cfi.c: Reindented.Michal Ludvig2-41/+42
2002-06-212002-06-21 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-89/+261
* dwarf2cfi.c (read_encoded_pointer): Don't handle pointer encoding anymore. (pointer_encoding, enum ptr_encoding): New. (execute_cfa_program): Take care about pointer encoding. (dwarf2_build_frame_info): Only call parse_frame_info for .debug_frame and .eh_frame. (parse_frame_info): New, derived from former dwarf2_build_frame_info. fixed augmentation handling, added relative addressing, ignore duplicate FDEs. Added comments.
2002-06-212002-06-20 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-2/+10
* event-top.c (command_handler): Don't use space_at_cmd_start unless there is sbrk() on the host. Assign time and space data to union fields of the appropriate length.
2002-06-21*** empty log message ***gdbadmin1-1/+1
2002-06-202002-06-20 Michal Ludvig <mludvig@suse.cz>Michal Ludvig4-10/+21
* x86-64-tdep.c (x86_64_register_nr2name): Rename to x86_64_register_name. Return type changed to 'const char *'. (x86_64_register_name2nr): Rename to x86_64_register_number. (x86_64_gdbarch_init): Update to reflect the change. * x86-64-tdep.h: Ditto. * x86-64-linux-nat.c (x86_64_fxsave_offset) (supply_fpregset): Ditto.
2002-06-20* regcache.h: Update copyright.Andrew Cagney5-94/+620
(struct regcache, struct gdbarch): Add opaque declarations. (current_regcache): Declare global variable. (regcache_read, regcache_write): Add gdbarch parameter. (regcache_save, regcache_save_no_passthrough) (regcache_restore, regcache_restore_no_passthrough) (regcache_dup, regcache_dup_no_passthrough) (regcache_cpy, regcache_cpy_no_passthrough) (deprecated_grub_regcache_for_registers) (deprecated_grub_regcache_for_register_valid) (regcache_valid_p): Add function declarations. * regcache.c: Update copyright. (regcache_descr_handle): New global variable. (struct regcache_descr): Define. (init_legacy_regcache_descr, init_regcache_descr): New functions. (regcache_descr, xfree_regcache_descr): New functions. (struct regcache): Define. (regcache_xmalloc, regcache_xfree): New functions. (regcache_cpy, regcache_cpy_no_passthrough): New functions. (regcache_dup, regcache_dup_no_passthrough): New functions. (regcache_valid_p, regcache_read_as_address): New functions. (deprecated_grub_regcache_for_registers): New function. (deprecated_grub_regcache_for_register_valid): New function. (current_regcache): New global variable. (register_buffer): Add regcache parameter. Update calls. (regcache_read, regcache_write): Add regcache parameter. Rewrite. (read_register_gen, write_register_gen): Update register_buffer call. Test for legacy_p instead of gdbarch_register_read_p or gdbarch_register_write_p. (regcache_collect): Update register_buffer call. (build_regcache): Rewrite. Use deprecated grub functions. (regcache_save, regcache_save_no_passthrough): New functions. (regcache_restore, regcache_restore_no_passthrough): New functions. (_initialize_regcache): Create the regcache_data_handle. Swap current_regcache global variable. * sh-tdep.c (sh_pseudo_register_read): Add current_regcache parameter to regcache_read and regcache_write calls. (sh4_register_read): Ditto. (sh64_pseudo_register_read): Ditto. (sh64_register_read): Ditto. (sh_pseudo_register_write): Ditto. (sh4_register_write): Ditto. (sh64_pseudo_register_write): Ditto. (sh64_register_write): Ditto. * defs.h (XCALLOC): Define.
2002-06-20*** empty log message ***gdbadmin1-1/+1
2002-06-19Added functions for multi-arch.Grace Sainsbury3-0/+39
2002-06-192002-06-19 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-9/+5
* ada-lang.c (fill_in_ada_prototype): Update comment.
2002-06-192002-06-19 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-23/+100
* mips-tdep.c (enum mips_abi): Explicitly start at 0. Add MIPS_ABI_LAST. (mips_abi_string, mips_abi_strings): New. (struct gdbarch_tdep): Remove mips_abi_string, add found_abi. (mips_gdbarch_init): Set tdep->found_abi. Don't set tdep->mips_abi_string. Honor mips_abi_string. Default to O32 if no ABI is found. (mips_dump_tdep): Use mips_abi_strings. (mips_abi_update): New function. (_initialize_mips_tdep): Initialize mips_abi_string. Add ``set mips abi'' and ``show mips abi''. Check the size of mips_abi_strings.
2002-06-19* i386-linux-tdep.c (i386_linux_register_name): Make return typeAndrew Cagney2-1/+7
constant.
2002-06-19Add entry describing a change to alpha-tdep.c (heuristic_proc_desc).Joel Brobecker1-0/+9
2002-06-19 * alpha-tdep.c (heuristic_proc_desc): Compute the size of theJoel Brobecker1-4/+39
current frame using only the first stack size adjustment. All subsequent size adjustments are not considered to be part of the "static" part of the current frame. Compute the address of the saved registers relative to the Frame Pointer ($fp) instead of the Stack Pointer if $fp is in use in this frame.
2002-06-19*** empty log message ***gdbadmin1-1/+1
2002-06-182002-06-18 Don Howard <dhoward@redhat.com>Don Howard2-3/+9
* valops.c (value_ind): Use value_at_lazy() when dereferencing type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for suggesting this solution.
2002-06-18* config/romp/xm-rtbsd.h: Delete file.Andrew Cagney3-45/+5
* config/romp/rtbsd.mh: Delete file.