Commit Graph

11947 Commits

Author SHA1 Message Date
Grace Sainsbury 5d3ed2e315 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
(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-21 20:23:29 +00:00
Grace Sainsbury a2c6a6d597 Fixed changelog entry. Indented m68k-tdep.c 2002-06-21 15:47:35 +00:00
Grace Sainsbury 7f8e742495 Replaced frame_find_saved_regs with frame_init_saved_regs. Converted
call dummy macros to multi-arch.
2002-06-21 14:56:18 +00:00
Pierre Muller f461f5cf79 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
* 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 14:32:10 +00:00
Michal Ludvig 19d833a2fa * dwarf2cfi.c: Reindented. 2002-06-21 13:53:24 +00:00
Michal Ludvig 7f0c12ed44 2002-06-21 Michal Ludvig <mludvig@suse.cz>
* 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-21 12:12:34 +00:00
Elena Zannoni 87c4a0399d 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
* 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 00:13:54 +00:00
gdbadmin a2a75bff9f *** empty log message *** 2002-06-21 00:00:38 +00:00
Michal Ludvig 1cf877ad9b 2002-06-20 Michal Ludvig <mludvig@suse.cz>
* 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 13:08:12 +00:00
Andrew Cagney 3fadccb31d * regcache.h: Update copyright.
(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 03:13:51 +00:00
gdbadmin e1820627dc *** empty log message *** 2002-06-20 00:02:36 +00:00
Grace Sainsbury 152d9db60b Added functions for multi-arch. 2002-06-19 20:44:22 +00:00
Daniel Jacobowitz 170911c766 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
* ada-lang.c (fill_in_ada_prototype): Update comment.
2002-06-19 16:55:28 +00:00
Daniel Jacobowitz 2e4ebe70e5 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
* 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 16:48:47 +00:00
Andrew Cagney 1677590816 * i386-linux-tdep.c (i386_linux_register_name): Make return type
constant.
2002-06-19 14:59:47 +00:00
Joel Brobecker 5051bfa49e Add entry describing a change to alpha-tdep.c (heuristic_proc_desc). 2002-06-19 01:13:01 +00:00
Joel Brobecker dc1b0db2f2 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
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 01:12:07 +00:00
gdbadmin 2736d49bb3 *** empty log message *** 2002-06-19 00:00:15 +00:00
Don Howard 56468235ec 2002-06-18 Don Howard <dhoward@redhat.com>
* 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 23:41:02 +00:00
Andrew Cagney 0b62415850 * config/romp/xm-rtbsd.h: Delete file.
* config/romp/rtbsd.mh: Delete file.
2002-06-18 22:30:38 +00:00
Keith Seitz 221ea38594 * breakpoint.c (condition_command): Post breakpoint_modify
when a condition is added to an existing breakpoint.
        (commands_command): Likewise for commands.
        (set_ignore_count): Likewise for ignore counts.
        If no tty, do not simply return, still need to send event
        notification.
        (ignore_command): Only print a newline if the command came
        from a tty.
        Don't call breakpoints_changed, since this is now properly
        handled by set_ignore_count.
2002-06-18 21:58:55 +00:00
Andrew Cagney 5402eed1c4 * MAINTAINERS: Note that cris-elf target can be compiled with
-Werror.
* cris-tdep.c (cris_register_name): Make return type constant.
(cris_breakpoint_from_pc): Ditto.
2002-06-18 16:01:12 +00:00
Michal Ludvig cc22880b3e 2002-06-18 Michal Ludvig <mludvig@suse.cz>
* frame.h (struct frame_info): Change type of context to
	'struct context'.
2002-06-18 09:04:24 +00:00
gdbadmin 6ed58df8f4 *** empty log message *** 2002-06-18 00:00:37 +00:00
Andrew Cagney fa88f6772d * gdbarch.sh (REGISTER_NAME): Change return type a constant string
pointer.
* gdbarch.h, gdbarch.c: Regenerate.
* config/mips/tm-mips.h (mips_register_name): Update.
* i386-tdep.h (i386_register_name): Update.
* mips-tdep.c (mips_register_name): Update
* alpha-tdep.c (alpha_register_name): Update.
* arch-utils.c (legacy_register_name): Update.
* arch-utils.h (legacy_register_name): Update.
* avr-tdep.c (avr_register_name): Update.
* ia64-tdep.c (ia64_register_name): Update.
* i386-tdep.c (i386_register_name): Update.
* sparc-tdep.c (sparc32_register_name): Update.
(sparc64_register_name): Update.
(sparclite_register_name): Update.
(sparclet_register_name):
* sh-tdep.c (sh_generic_register_name): Update.
(sh_sh_register_name): Update.
(sh_sh3_register_name): Update.
(sh_sh3e_register_name): Update.
(sh_sh_dsp_register_name): Update.
(sh_sh3_dsp_register_name): Update.
(sh_sh4_register_name): Update.
(sh_sh64_register_name): Update.
* s390-tdep.c (s390_register_name): Update.
* rs6000-tdep.c (rs6000_register_name): Update.
* ns32k-tdep.c (ns32k_register_name_32082): Update.
(ns32k_register_name_32382): Update.
* d10v-tdep.c (d10v_ts2_register_name): Update.
(d10v_ts3_register_name): Update.
* xstormy16-tdep.c (xstormy16_register_name): Update.
* vax-tdep.c (vax_register_name): Update.
* v850-tdep.c (v850_register_name): Update.
* m68hc11-tdep.c (m68hc11_register_name): Update.
* mn10300-tdep.c (mn10300_generic_register_name): Update.
(am33_register_name): Update.
2002-06-17 23:32:36 +00:00
Grace Sainsbury ea1e7ef6e5 Indented m68k-tdep.c using gdb_indent.sh 2002-06-17 21:49:03 +00:00
Grace Sainsbury b5d78d39b0 Indented file using gdb_indent.sh. 2002-06-17 21:39:01 +00:00
Andrew Cagney 9b02dd1b32 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
list of predefined types.
2002-06-17 19:56:15 +00:00
Keith Seitz 32c95e2031 * gdbmi.texinfo: Update command examples with real MI behavior. 2002-06-17 17:30:57 +00:00
gdbadmin 7d5ef90c12 *** empty log message *** 2002-06-17 00:00:34 +00:00
Mark Kettenis b6197528ed * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
REGISTER_CONVERT_TO_RAW): Remove defines.
(i386_register_virtual_type, i386_register_convertible,
i386_register_convert_to_virtual, i386_register_convert_to_raw):
Remove prototypes.
* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
macros mentioned above.
2002-06-16 15:32:09 +00:00
Mark Kettenis 82b47e62fc * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
(i386lynx_saved_pc_after_call): Remove prototype.
* i386ly-tdep.c: Include "i386-tdep.h".
(i386lynx_saved_pc_after_call): Make static.  Use
read_memory_nobpt instead of read_memory.  Use
read_memory_unsigned_integer instead of read_memory_integer.
(i386lynx_init_abi): New function.
(i386lynx_coff_osabi_sniffer): New function.
(_initialize_i386bsd_tdep): New function.
2002-06-16 02:19:22 +00:00
gdbadmin cc51c39866 *** empty log message *** 2002-06-16 00:00:05 +00:00
Mark Kettenis 8758dec1c5 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
(i386_fix_call_dummy): Remove prototype.
* i386-tdep.c (i386_call_dummy_words): New variable.
(i386_gdbarch_init): Adjust for removal of the
macros mentioned above.
2002-06-15 22:10:58 +00:00
Andrew Cagney e9e68a56bc * command.h (add_setshow_auto_boolean_cmd): Replace
add_set_auto_boolean_cmd.
* cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
add_set_auto_boolean_cmd.
* cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
* mips-tdep.c (_initialize_mips_tdep): Update ``set mips
mask-address'' command.
(show_mask_address): Add cmd parameter.
* remote.c (add_packet_config_cmd): Update.  Change type of
set_func and show_func to cmd_sfunc_ftype.
(_initialize_remote): Update `set remote Z-packet'
(show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
(show_remote_protocol_e_packet_cmd): Ditto.
(show_remote_protocol_E_packet_cmd): Ditto.
(show_remote_protocol_P_packet_cmd): Ditto.
(show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
(show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
(show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
(show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
(show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
(show_remote_protocol_Z_packet_cmd): Ditto.
(show_remote_protocol_binary_download_cmd): Ditto.
(show_remote_cmd): Pass NULL to all of above.
2002-06-15 22:05:33 +00:00
Mark Kettenis fc08ec527f * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
POP_FRAME): Remove defines.
(i386_push_arguments, i386_store_struct_return,
i386_extract_return_value, i386_store_return_value,
i386_extract_struct_value_address, i386_push_dummy_frame,
i386_pop_frame): Renove prototypes.
* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
macros mentioned above.
2002-06-15 21:15:43 +00:00
Andrew Cagney e707bbc264 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
add_set_boolean_cmd.
(add_setshow_cmd): New function.
* command.h (add_setshow_boolean_cmd): Replace
add_set_boolean_cmd.
* remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
and ``set rdiromatzero''.
* maint.c (_initialize_maint_cmds): Update commented out code.
* cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
* target.c (initialize_targets): Update `set
trust-readonly-sections'.
* remote.c (_initialize_remote): Update `set remotebreak'.
2002-06-15 21:07:59 +00:00
Mark Kettenis 93924b6b99 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
* i386-tdep.c (i386_skip_prologue): Adjust function signature to
fit into multi-arch framework.
(i386_breakpoint_from_pc): New function.
(i386_gdbarch_init): Adjust for removal of the macros mentioned
above.
2002-06-15 20:41:51 +00:00
Mark Kettenis 42fdc8df2f * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
(i386_frameless_function_invocation, i386_frame_num_args,
i386_frame_init_saved_regs): Remove prototypes.
* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
macros mentioned above.
2002-06-15 19:59:08 +00:00
Andrew Cagney 9773a94b7a * cli/cli-decode.c (set_cmd_cfunc): Update.
(set_cmd_sfunc): Update.
* command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
(set_cmd_sfunc, set_cmd_cfunc): Update.
* cli/cli-decode.h: Update.
2002-06-15 19:54:26 +00:00
Mark Kettenis 6e157172af * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
(_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2002-06-15 18:49:52 +00:00
Andrew Cagney 7f19b9a2d2 * defs.h (auto_boolean): Declare enum.
* command.h (cmd_auto_boolean): Delete enum.
* mips-tdep.c (mask_address_var): Update.
(mips_mask_address_p): Update.
(show_mask_address): Update.
* remote.c (struct packet_config): Update.
(update_packet_config): Update.
(show_packet_config_cmd): Update.
(packet_ok): Update.
(add_packet_config_cmd): Update.
(_initialize_remote):
* command.h: Update.
* cli/cli-setshow.c (parse_auto_binary_operation): Update.
(do_setshow_command): Update.
* cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
* cli/cli-decode.h: Update.
2002-06-15 18:45:32 +00:00
Mark Kettenis 22ba8cf20b * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
config/i386/tm-linux.h, config/i386/tm-nbsd.h,
config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
* config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2002-06-15 18:09:31 +00:00
Mark Kettenis 762c5349bd * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
list of DJGPP COFF targets.
2002-06-15 17:53:24 +00:00
Mark Kettenis 356a6b3e11 Clean up the mess I made from my last checkin. 2002-06-15 17:51:36 +00:00
Mark Kettenis 091198bb17 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
(NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
(FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
(FP0_REGNUM): Remove define.
(MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
MAX_REGISTER_VIRTUAL_SIZE): Remove define.
(i386_register_virtual_size): Remove protoype.
* i386-tdep.c (i386_register_virtual_size): Removed.
(i386_extract_return_value, i386_store_return_value): Use
FP0_REGNUM instead of NUM_FREGS to determine whether the
floating-point registers are available.
(i386_gdbarch_init): Tweak FIXME about FPU registers.
Adjust for removal of macros mentioned above.


* i386-tdep.c (i386_gdbarch_init): Tewak
2002-06-15 17:41:29 +00:00
Mark Kettenis fcc9bf0139 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
comments.
(fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
Remove prototypes.
(supply_gregset, fill_gregset): Remove use of register keyword and
remove declaration for regmap.  Use I386_NUM_GREGS instead of
NUM_REGS and NUM_FREGS.
(FPREGSET_FSAVE_OFFSET): Remove.
(supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
NUM_FREGS to determine whether the floating-point registers are
available.
2002-06-15 17:22:04 +00:00
Mark Kettenis 65e7823443 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
gnu_store_registers): Replace usage of NUM_GREGS with
I386_NUM_GREGS.
2002-06-15 17:04:04 +00:00
Mark Kettenis 98df638700 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
usage of NUM_GREGS with I386_NUM_GREGS.
2002-06-15 16:43:54 +00:00
Mark Kettenis 099a94140a * i386-linux-nat.c (fill_gregset): Remove redundant parentheses. 2002-06-15 14:03:10 +00:00