Pierre Muller
5b421780f1
2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
...
win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2002-02-05 08:04:22 +00:00
Andrew Cagney
9f60d481c2
* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
...
(do_sfunc, set_cmd_sfunc): New functions.
* command.h (struct cmd_list_element): Add field func.
* cli/cli-decode.h (struct cmd_list_element): Ditto.
* command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
* cli/cli-decode.h: Ditto.
* cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
(help_all, help_cmd_list): Ditto.
(find_cmd, complete_on_cmdlist): Ditto.
* top.c (execute_command): Ditto.
* cli/cli-setshow.c (do_setshow_command): Call func instead of
function.sfunc.
* infcmd.c (notice_args_read): Fix function signature.
* cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
* cli/cli-decode.c (add_set_cmd): Ditto.
* utils.c (initialize_utils): Ditto.
* maint.c (_initialize_maint_cmds): Ditto.
* infrun.c (_initialize_infrun): Ditto.
* demangle.c (_initialize_demangler): Ditto.
* remote.c (add_packet_config_cmd): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* cris-tdep.c (_initialize_cris_tdep): Ditto.
* proc-api.c (_initialize_proc_api): Ditto.
* kod.c (_initialize_kod): Ditto.
* valprint.c (_initialize_valprint): Ditto.
* top.c (init_main): Ditto.
* infcmd.c (_initialize_infcmd): Ditto.
* corefile.c (_initialize_core): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* arch-utils.c (initialize_current_architecture): Ditto.
(_initialize_gdbarch_utils): Ditto.
* alpha-tdep.c (_initialize_alpha_tdep): Ditto.
* cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
* wince.c (_initialize_inftarg): Ditto.
* symfile.c (_initialize_symfile): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* language.c (_initialize_language): Ditto.
* arc-tdep.c (_initialize_arc_tdep): Ditto.
2002-02-05 04:37:23 +00:00
Michael Snyder
f9ba071784
2002-02-04 Michael Snyder <msnyder@redhat.com>
...
* memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2002-02-04 23:19:31 +00:00
Daniel Jacobowitz
0c74b2a77e
2002-02-04 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
Add rules for building the register data files.
2002-02-04 22:49:18 +00:00
Daniel Jacobowitz
c638789ff8
2002-02-04 Daniel Jacobowitz <drow@mvista.com>
...
* regformats/regdat.sh: Add braces to the definition of
expedite_regs_${arch}.
2002-02-04 22:45:49 +00:00
Daniel Jacobowitz
db2530270b
2002-02-04 Daniel Jacobowitz <drow@mvista.com>
...
* regformats/regdef.h (struct reg): Add comment describing the
requirements for offset and size fields.
2002-02-04 22:41:36 +00:00
Andreas Schwab
206be19c1b
* config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
...
* config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2002-02-04 19:11:17 +00:00
Richard Earnshaw
181c1381a5
* gdbarch.sh (copyright): Update years in generated header.
...
(SMASH_TEXT_ADDRESS): Add rule.
*gdbarch.h, gdbarch.c: Re-generate.
* coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
* dbxread.c: Likewise.
* dwarfread.c: Likewise.
* elfread.c: Likewise.
* somread.c: Likewise.
* arm-tdep.c (arm_smash_text_address): New function.
* config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2002-02-04 11:55:36 +00:00
Pierre Muller
fa4ba8da6c
2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
...
Add support for hardware watchpoints on win32 native.
* win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
CONTEXT_DEBUG_REGISTERS.
(dr variable): New variable. Static array containing a local copy
of debug registers.
(debug_registers_changed): New variable. Reflects when debug registers
are changed and need to be written to inferior.
(debug_registers_used): New variable. Reflects when any debug register
was set, used when new threads are created.
(cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
i386-nat code.
(thread_rec): Set dr array if id is the thread of current_event .
(child_continue, child_resume): Change the debug registers for all
threads if debug_registers_changed.
(child_add_thread): Change the debug registers if debug_registers_used.
* config/i386/cygwin.mh: Add use of i386-nat.o file.
Link nm.h to new nm-cygwin.h file.
+ config/i386/nm-cygwin.h: New file. Contains the macros used for use
of hardware registers.
2002-02-04 11:00:10 +00:00
Andrew Cagney
a73c86fb73
* valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
...
Restore behavour broken by 2002-01-20 Andrew Cagney
<ac131313@redhat.com> IEEE_FLOAT removal.
2002-02-04 02:22:41 +00:00
Daniel Jacobowitz
acf5ed49a0
2002-02-03 Daniel Jacobowitz <drow@mvista.com>
...
* c-valprint.c (c_val_print): Pass a proper valaddr to
cp_print_class_method.
* valops.c (search_struct_method): If there is only one method
and args is NULL, return that method.
2002-02-04 02:14:46 +00:00
Daniel Jacobowitz
493d28d51b
2002-02-03 Daniel Jacobowitz <drow@mvista.com>
...
* gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
accessing tag_name directly.
2002-02-03 23:18:11 +00:00
Daniel Jacobowitz
7495dfdb3a
2002-02-03 Daniel Jacobowitz <drow@mvista.com>
...
* ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
of accessing tag_name directly.
2002-02-03 23:11:33 +00:00
Daniel Jacobowitz
dd6bda650a
2002-02-01 Daniel Jacobowitz <drow@mvista.com>
...
PR gdb/280
* gdbtypes.c (replace_type): New function.
* gdbtypes.h (replace_type): Add prototype.
* stabsread.c (read_type): Use replace_type.
2002-02-03 22:57:56 +00:00
Richard Earnshaw
88fe217c0b
* Makefile.in (memattr.o): Add missing dependencies rule.
2002-02-03 16:20:22 +00:00
Peter Schauer
e5d6672073
* breakpoint.c (break_at_finish_command): Really export.
...
(break_at_finish_at_depth_command): Ditto.
(tbreak_at_finish_command): Ditto.
* hppa-tdep.c: Include completer.h.
* Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
(COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2002-02-03 11:43:19 +00:00
Andrew Cagney
fffee0be3f
* utils.c (do_write): New function.
...
(error_stream): Rewrite combining the code from error_begin and
verror.
(verror): Rewrite using error_stream.
(error_begin): Delete function.
2002-02-02 15:39:33 +00:00
Andrew Cagney
255e7dbf2e
* utils.c (error_begin): Make static.
...
* defs.h (error_begin): Delete declaration.
* linespec.c (cplusplus_error): Replace cplusplus_hint.
(decode_line_1): Use cplusplus_error instead of error_begin,
cplusplus_hint and return_to_top_level.
* coffread.c (coff_symfile_read): Use error instead of error_begin
and return_to_top_level.
* infrun.c (default_skip_permanent_breakpoint): Ditto.
2002-02-02 03:42:59 +00:00
Michael Snyder
261c4ca206
2002-02-01 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2002-02-02 02:49:07 +00:00
Andrew Cagney
ddfe3c1587
* language.h (type_error, range_error): Make string parameter
...
constant.
* language.c (warning_pre_print): Delete extern declaration.
* dwarfread.c (warning_pre_print): Ditto.
* language.c (type_error, range_error): Rewrite to use verror and
vwarning instead of warning_begin.
2002-02-02 02:28:40 +00:00
Michael Snyder
03ac34d585
2002-02-01 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.c (set_ignore_count): Move misplaced comment
back where it belongs.
2002-02-02 01:25:28 +00:00
Andrew Cagney
e00d1dc8a5
s/NO_FUNCTION/NULL/
2002-02-02 00:56:37 +00:00
Daniel Jacobowitz
76b79d6ec8
2002-02-01 Daniel Jacobowitz <drow@mvista.com>
...
* gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
Update ``this'' pointer when calling virtual functions.
2002-02-02 00:04:46 +00:00
Michael Snyder
c7bd442ca0
2002-02-01 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.c (create_temp_exception_breakpoint): Delete.
2002-02-01 23:44:39 +00:00
Michael Snyder
799f9e91f1
2002-02-01 Michael Snyder <msnyder@redhat.com>
...
* hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2002-02-01 22:45:32 +00:00
Daniel Jacobowitz
3cf384d4ea
2002-02-01 Daniel Jacobowitz <drow@mvista.com>
...
* regformats/reg-arm.dat: New file.
* regformats/reg-i386.dat: New file.
* regformats/reg-ia64.dat: New file.
* regformats/reg-m68k.dat: New file.
* regformats/reg-mips.dat: New file.
* regformats/reg-ppc.dat: New file.
* regformats/reg-sh.dat: New file.
* regformats/regdef.h: New file.
* regformats/regdat.sh: New file.
2002-02-01 22:05:28 +00:00
Richard Earnshaw
0defa245fc
* arm-tdep.c (arm_frameless_function_invocation): Add some comments.
...
(arm_frame_args_address, arm_frame_locals_address): New functions.
(arm_frame_num_args): New function.
* config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
(FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
(FRMA_NUM_ARGS): Call arm_frame_num_args.
2002-02-01 13:39:43 +00:00
Michael Snyder
502fd40859
2002-01-31 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.c (break_at_finish_command): Export.
(break_at_finish_at_depth_command): Export.
(tbreak_at_finish_command): Export.
(_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
* hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
"tbreak" commands, which are HPPA specific.
2002-02-01 02:05:13 +00:00
Michael Snyder
7d35e1357e
2002-01-31 Michael Snyder <msnyder@redhat.com>
...
* printcmd.c (disassemble_command): Remove an ancient
artifact of an old merge.
2002-02-01 01:49:54 +00:00
Michael Snyder
d874f1e225
2002-01-31 Michael Snyder <msnyder@redhat.com>
...
* symfile.h (enum overlay_debugging_state):
Define enum constant values for overlay mode.
* symfile.c (overlay_debugging): Use enums instead of literals.
(overlay_is_mapped, overlay_auto_command,
overlay_manual_command): Ditto.
2002-02-01 01:14:20 +00:00
Michael Snyder
9f04af04ce
2002-01-31 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.c (insert_breakpoints, remove_breakpoint,
breakpoint_here_p, breakpoint_inserted_here_p,
breakpoint_thread_match, bpstat_stop_status,
describe_other_breakpoints, check_duplicates, clear_command):
Coding standard fixes.
2002-02-01 01:08:05 +00:00
Michael Snyder
8add04415a
2002-01-31 Michael Snyder <msnyder@redhat.com>
...
* target.c (target_xfer_memory): Add spaces, coding standard.
2002-02-01 01:01:21 +00:00
Michael Snyder
405f26e62f
2002-01-31 Michael Snyder <msnyder@redhat.com>
...
* target.c (do_xfer_memory): Add missing line to trust-readonly
code: check bfd SEC_READONLY flag for section.
2002-02-01 00:49:53 +00:00
Andrew Cagney
e351066e7a
Fix tipo.
2002-01-31 20:45:17 +00:00
Daniel Jacobowitz
8a48e96728
2002-01-30 Daniel Jacobowitz <drow@mvista.com>
...
* symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
data symbols, since we search based on textlow and texthigh.
(find_pc_sect_symtab): Likewise.
2002-01-31 05:03:31 +00:00
Andrew Cagney
f5a96129d2
* defs.h (vwarning): Declare.
...
(warning_begin): Delete declaration.
* utils.c (vwarning): New function.
(warning): Call vwarning.
(warning_begin): Delete function.
* rs6000-nat.c (vmap_ldinfo): Use the function warning to print
the warning message.
* d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
warning_begin.
2002-01-31 04:10:51 +00:00
Michael Snyder
1a70374818
2002-01-30 Michael Snyder <msnyder@redhat.com>
...
* NEWS: Mention "set trust-readonly-sections" command.
2002-01-31 03:57:42 +00:00
Michael Snyder
cefd4ef53f
2002-01-30 Michael Snyder <msnyder@redhat.com>
...
* NEWS: Mention generate-core-file command.
2002-01-31 02:33:20 +00:00
Michael Snyder
3a11626da1
2002-01-15 Michael Snyder <msnyder@redhat.com>
...
* target.c: New command, "set trust-readonly-sections on".
(do_xfer_memory): Honor the suggestion to trust readonly sections
by reading them from the object file instead of from the target.
(initialize_targets): Register command "set trust-readonly-sections".
2002-01-31 02:31:06 +00:00
Andrew Cagney
d1c7e53bc5
* parse.c (target_map_name_to_register): Simplify, search regs and
...
pseudo-regs using a single loop.
2002-01-31 02:13:56 +00:00
Andrew Cagney
e2c9a72cc0
Mention i386 FP problem.
2002-01-31 01:31:54 +00:00
Mark Kettenis
69824b4e99
* config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
...
* config/i386/i386v42mp.mh: Add i387-nat.o .
* i386v4-nat.c: Include i387-nat.h.
(supply_fpregset): Use i387_supply_fsave.
(fill_fpregset): Use i387_fill_fsave.
2002-01-30 22:32:38 +00:00
Richard Earnshaw
6eb69eab29
* arm-tdep.c (arm_call_dummy_words): Define.
...
* arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
* config/arm/tm-arm.h (CALL_DUMMY_P): Define.
(CALL_DUMMY_WORDS): Define.
(arm_call_dummy_words): Declare.
* config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
(arm_linux_call_dummy_words): Declare.
2002-01-30 16:35:51 +00:00
Andreas Schwab
9852326a86
* m68klinux-nat.c: Fix last change to use regcache_collect
...
instead of referencing registers[] directly.
2002-01-30 13:57:33 +00:00
Andrew Cagney
977a303014
Delete REGISTER_NAME_ALIAS_HOOK.
2002-01-30 00:18:17 +00:00
Andrew Cagney
ba997f4882
Zap >>>>
2002-01-29 21:37:15 +00:00
Michael Snyder
2076c72b06
2002-01-28 Michael Snyder <msnyder@redhat.com>
...
* regcache.c (legacy_read_register_gen): Need to be able to
read pseudo-register as well as real register.
(legacy_write_register_gen): Ditto.
2002-01-29 20:24:27 +00:00
Andrew Cagney
8fcc723b1c
Eliminate TARGET_BYTE_ORDER.
2002-01-29 04:42:45 +00:00
Andrew Cagney
afe64c1a68
* arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
...
(target_byte_order): Initialize to BFD_ENDIAN_BIG.
(initialize_current_architecture): Update target_byte_order using
information from BFD.
* config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
* config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
* config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
Update doco.
2002-01-29 03:51:19 +00:00
Andrew Cagney
75bc7ddf1b
* config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
...
* vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
* rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
#ifdef INVALID_FLOAT.
* infcmd.c (do_registers_info): Ditto.
* values.c (unpack_double): Ditto. Add comment.
* config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
already commented out.
2002-01-29 03:08:28 +00:00