Andrew Cagney
2fa5c1e048
* gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
...
default_double_format.
* gdbarch.h, gdbarch.c: Re-generate.
* findvar.c (floatformat_unknown): Delete variable definition.
* doublest.h (floatformat_unknown): Delete variable declaration.
2002-02-10 02:47:12 +00:00
Jim Blandy
da966255a5
* stabsread.c (read_type): Add code to parse Sun's syntax for
...
prototyped function types.
2002-02-09 20:09:45 +00:00
Andrew Cagney
123a4891df
* Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
...
(SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2002-02-09 18:45:06 +00:00
Peter Schauer
fb39c8f3a9
* xcoffsolib.c (_initialize_xcoffsolib): Renamed from
...
_initialize_solib. Fixes name clash with solib.c:_initialize_solib,
now _initialize_xcoffsolib gets called again and overrides the
commands from solib.c in a native configuration.
2002-02-09 18:32:14 +00:00
Mark Kettenis
0b87a11db9
* doublest.c (store_typed_floating): Don't try to return a value.
...
Fixes PR gdb/290.
2002-02-09 17:25:57 +00:00
Jim Blandy
bdc2fc72b3
* c-typeprint.c (c_type_print_varspec_suffix): If a function type
...
is prototyped and has no arguments, print its argument list as
`(void)'.
2002-02-09 16:08:53 +00:00
Chris Demetriou
da69bbcfe1
2002-02-08 Chris Demetriou <cgd@broadcom.com>
...
* MAINTAINERS (write-after-approval): Add myself.
(paper-trail): I've escaped!
2002-02-09 02:20:18 +00:00
Christopher Faylor
b69571f510
* win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf changes.
...
(_initialize_check_for_gdb_ini): Ditto.
2002-02-08 23:12:16 +00:00
Martin Hunt
f687139811
2002-02-08 Martin M. Hunt <hunt@redhat.com>
...
* win32-nat.c (cygwin_pid_to_str): Fix typo.
xaprintf -> xasprintf.
2002-02-08 21:22:10 +00:00
Pierre Muller
4e52d31c52
2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
...
* win32-nat.c: Remove use of printf and sprintf functions.
2002-02-08 19:31:38 +00:00
Richard Earnshaw
39bbf76177
* arm-tdep.c (arm_frame_chain_valid): Make static.
...
(arm_push_arguments): Likewise.
(arm_gdbarch_init): New function.
(_initialize_arm_tdep): Call it.
* config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
(TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
(FRAME_CHAIN_VALID): Delete.
(arm_frame_chain_valid): Delete declaration.
(PUSH_ARGUMENTS): Delete.
(arm_push_arguments): Delete declaration.
(CALL_DUMMY_P): Delete.
2002-02-08 18:26:37 +00:00
Corinna Vinschen
9c9532c936
* gdbtypes.c (build_gdbtypes): Disable setting a specific float format
...
on builtin float types.
2002-02-08 17:34:33 +00:00
Daniel Jacobowitz
4e8f7a8b27
2002-02-08 Daniel Jacobowitz <drow@mvista.com>
...
* utils.c: Include <curses.h> before "bfd.h".
* tui/tui-hooks.c: Likewise.
* tui/tui.c: Likewise.
* tui/tuiCommand.c: Likewise.
* tui/tuiData.c: Likewise.
* tui/tuiDataWin.c: Likewise.
* tui/tuiDisassem.c: Likewise.
* tui/tuiGeneralWin.c: Likewise.
* tui/tuiIO.c: Likewise.
* tui/tuiLayout.c: Likewise.
* tui/tuiRegs.c: Likewise.
* tui/tuiSource.c: Likewise.
* tui/tuiSourceWin.c: Likewise.
* tui/tuiStack.c: Likewise.
* tui/tuiWin.c: Likewise.
2002-02-08 15:54:32 +00:00
Elena Zannoni
cd4bffcfe0
2002-02-07 Elena Zannoni <ezannoni@redhat.com>
...
* sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
to include space for pseudoregs as well. Update loops accordingly.
(sh_fp_frame_init_saved_regs): Ditto.
(sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2002-02-08 03:01:11 +00:00
Andrew Cagney
26806ce251
* MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
...
Add Richard Earnshaw to Arm maintainers.
2002-02-08 02:31:15 +00:00
Andrew Cagney
a6b982030f
Zap warning_begin() declaration. (Attempt two).
2002-02-08 00:53:17 +00:00
Andrew Cagney
97fdab622f
* config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
...
Delete macro.
(second attempt).
2002-02-08 00:46:39 +00:00
Michael Snyder
78b29b405f
2002-02-07 Michael Snyder <msnyder@redhat.com>
...
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
Logic bug, remove misplaced else.
2002-02-07 23:08:55 +00:00
Klee Dienes
d88499536e
2002-02-07 Klee Dienes <klee@apple.com>
...
* fork-inferior.c (fork_inferior): Add '!' to the list of
characters that need to be quoted when building a string for the
shell. Quote '!' specifically with a backslash, since CSH chokes
when trying to evaluate "str!str".
2002-02-07 06:11:55 +00:00
Nick Clifton
095778a05e
Only provide a typedef for bool if it is not defined.
2002-02-06 20:09:18 +00:00
Michael Snyder
1900040cf3
2002-02-04 Michael Snyder <msnyder@redhat.com>
...
* breakpoint.h (enum bptype): Add new overlay event bp type.
(enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
* breakpoint.c (create_internal_breakpoint): New function.
(internal_breakpoint_number): Moved into create_internal_breakpoint.
(create_longjmp_breakpoint): Use create_internal_breakpoint.
(create_thread_event_breakpoint): Ditto.
(create_solib_event_breakpoint): Ditto.
(create_overlay_event_breakpoint): New function.
(enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
(update_breakpoints_after_exec): Delete and re-initialize
overlay event breakpoints after an exec. Add FIXME comment
about longjmp breakpoint.
(print_it_typical): Ignore overlay event breakpoints.
(print_one_breakpoint): Ditto.
(mention): Ditto.
(bpstat_what): Do not stop for overlay event breakpoints.
(delete_breakpoint): Don't delete overlay event breakpoints.
(breakpoint_re_set_one): Delete the overlay event breakpoint.
(breakpoint_re_set): Re-create overlay event breakpoint.
* symfile.c (overlay_auto_command): Enable overlay breakpoints.
(overlay_manual_command): Disable overlay breakpoints.
(overlay_off_command): Disable overlay breakpoints.
2002-02-06 18:31:07 +00:00
Richard Earnshaw
082fc60dfc
* arm-tdep.c: Include elf-bfd.h and coff/internal.h.
...
(MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
to here from config/tm-arm.h.
(coff_sym_is_thumb): Make static.
(arm_elf_make_msymbol_special): New function.
(arm_coff_make_msymbol_special): New function.
* config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
(MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
(coff_sym_is_thumb): Delete declaration.
(arm_elf_make_msymbol_special): Declare.
(arm_coff_make_msymbol_special): Declare.
(ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
(COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2002-02-06 15:21:17 +00:00
Richard Earnshaw
039c576668
* arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2002-02-06 13:12:14 +00:00
Richard Earnshaw
a8ec217795
Remove some extraneous conflict markers.
2002-02-06 10:31:07 +00:00
Pierre Muller
58fa08f090
2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
...
* win32-nat.c (_initialize_check_for_gdb_ini):
Add typecast to sprintf argument to suppress a warning.
2002-02-06 09:27:29 +00:00
Pierre Muller
7393af7c90
2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
...
win32-nat.c (last_sig): Changed type of variable to target_signal,
to allow easier handling of pass state.
(DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
that gives exception name and address.
(handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
and set last_sig value to ourstatus->value.sig. Some missing
exceptions added.
(child_continue): Correctly report continue_status.
(get_child_debug_event,do_initial_child_stuff): Set last_sig to
TARGET_SIGNAL_0 (new default value).
(child_resume): consider sig argument passed to decide if
the exception should be passed to debuggee or not.
2002-02-06 09:14:50 +00:00
Michael Snyder
6af4589cb6
2002-02-05 Michael Snyder <msnyder@redhat.com>
...
* regcache.c (fetch_register): Call target_fetch_register
only if we don't call FETCH_PSEUDO_REGISTER.
(store_register): Call target_store_register only if we
don't call STORE_PSEUDO_REGISTER.
2002-02-06 03:16:38 +00:00
Elena Zannoni
a2cf933af4
2002-02-04 Elena Zannoni <ezannoni@redhat.com>
...
* gdbarch.sh: Add definitions for COFF_MAKE_MSYMBOL_SPECIAL and
ELF_MAKE_MSYMBOL_SPECIAL.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (default_elf_make_msymbol_special,
default_coff_make_msymbol_special): New functions.
* arch-utils.h (default_elf_make_msymbol_special,
default_coff_make_msymbol_special): Export.
* elfread.c (elf_symtab_read): Compile use of
ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
multiarched.
* coffread.c (coff_symtab_read): Ditto, for
COFF_MAKE_MSYMBOL_SPECIAL.
2002-02-06 01:20:23 +00:00
Jim Blandy
6bb7be4385
* solib-svr4.c (svr4_truncate_ptr): New function.
...
(svr4_relocate_section_addresses): Do the address arithmetic with
the appropriate truncation for target addresses, even when
CORE_ADDR is larger than a target address.
2002-02-05 23:28:13 +00:00
Daniel Jacobowitz
e18651ecb3
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c (mywait): Cast second argument of waitpid
to (int *).
2002-02-05 22:14:09 +00:00
Daniel Jacobowitz
6b2725be39
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c (kill_inferior): Remove commented out
code.
2002-02-05 22:01:49 +00:00
Daniel Jacobowitz
fca9e6033a
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
...
* c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2002-02-05 21:41:29 +00:00
Daniel Jacobowitz
6c537a5241
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c: Remove unused include files.
2002-02-05 19:09:34 +00:00
Daniel Jacobowitz
d844cde6ca
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
(read_inferior_memory): Use it.
(write_inferior_memory): Likewise.
2002-02-05 19:06:26 +00:00
Daniel Jacobowitz
d07c63e764
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c (create_inferior): Call strerror instead of
grubbing through sys_errlist.
2002-02-05 18:49:55 +00:00
Daniel Jacobowitz
da6d8c049c
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
...
* gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2002-02-05 18:44:18 +00:00
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