blob: 98c1d360531864a456f07b362a178a5186128a89 [file] [log] [blame]
2001-12-30 Michael Snyder <msnyder@redhat.com>
* sparc-tdep.c (sparc-store-return-value): Whitespace fix-up.
2001-12-29 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (rs6000-tdep.o): Add dependency on parser-defs.h.
* rs6000-tdep.c: Include parser-defs.h.
(rs6000_register_virtual_type): Rewrite, including handling of
AltiVec regs type.
(altivec_register_p): New function.
(rs6000_do_altivec_registers): New function.
(rs6000_altivec_registers_info): New function.
(rs6000_do_registers_info): New function.
(R16): Define.
(PPC_ALTIVEC_REGS): Define.
(registers_powerpc): Add AltiVec registers.
(registers_7400): Define.
(variants): Add 7400 machine.
(rs6000_gdbarch_init): Set the numbers of AltiVec registers.
Initialize gdbarch_do)_registers_info.
(rs6000_info_power_command): New function.
(info_power_cmdlist): New static variable.
(_initialize_rs6000_tdep): Add new 'info powerpc altivec' command.
* ppc-tdep.h (struct gdbarch_tdep): Add altivec regnum fields.
(altivec_register_p): Export.
2001-12-29 Mark Kettenis <kettenis@gnu.org>
* i386bsd-nat.c (reg_offset): Fix typo.
* i386-tdep.c (i386_push_dummy_frame): Don't write back the
modified frame pointer until the old frame pointer has been saved.
2001-12-30 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c (initialize_current_architecture): Test byte_order
against BFD_ENDIAN_UNKNOWN.
(gdbarch_info_init): Initialize byte_order to BFD_ENDIAN_UNKNOWN.
* gdbarch.sh: Update comments on default value of byte_order.
(verify_gdbarch, gdbarch_update_p): Test byte_order against
BFD_ENDIAN_UNKNOWN.
* gdbarch.h, gdbarch.c: Re-generate.
2001-12-27 Michael Snyder <msnyder@redhat.com>
* i386-linux-nat.c: Include i386-tdep.h.
* maint.c (match_substring): GNU coding standards fixes.
(print_bfd_section_info): Ditto.
(print_objfile_section_info): Ditto.
2001-12-27 Mark Kettenis <kettenis@gnu.org>
* maint.c (match_substring): Make parameters `string' and `substr'
const. Make local variable `tok' const.
2001-12-27 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386.h (FP7_REGNUM, FIRST_FPU_CTRL_REGNUM,
FCTRL_REGNUM, FPC_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
LAST_FPU_CTRL_REGNUM, XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM,
IS_FP_REGNUM, IS_SSE_REGNUM): Removed.
(FP0_REGNUM): Define conditionally depending on HAVE_I387_REGS.
(SIZEOF_FPU_CTRL_REGS): Hardcode value.
* i386-tdep.h (struct gdbarch_tdep): Change such that it contains
a single member `num_xmm_regs'.
(FPC_REGNUM): New macro.
(FIRST_FPU_REGNUM, LAST_FPU_REGNUM, FISRT_XMM_REGNUM,
LAST_XMM_REGNUM, MXCSR_REGNUM, FIRST_FPU_CTRL_REGNUM,
LAST_FPU_CTRL_REGNUM): Removed.
(FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FOP_REGNUM, XMM0_REGNUM,
MXCSR_REGNUM): Define unconditionally. Change macros to match the
comment describing the register layout.
(FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM): New macros.
(FP_REGNUM_P, FPC_REGNUM_P, SSE_REGNUM_P): New macros.
(IS_FP_REGNUM, IS_FPU_CTRL_REGNUM, IS_SSE_REGNUM): Make obsolete,
unconditionally define in terms of FP_REGNUM_P, FPC_REGNUM_P and
SSE_REGNUM_P).
(FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM): Make
obsolete, unconditionally define in terms of FISEG_REGNUM,
FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM.
* i386-tdep.c (i386_gdbarch_init): Initialize `num_xmm_regs'
member of `struct gdbarch_tdep'.
* x86-64-tdep.c (i386_gdbarch_init): Change initialization of
`struct gdbarch_tdep'.
* i387-nat.c (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM):
Replace with FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM and
FOOFF_REGNUM. Use FPC_REGNUM instead of FIRST_FPU_CTRL_REGNUM.
Use XMM0_REGNUM instead of LAST_FPU_CTRL_REGNUM.
2001-12-25 Andrew Cagney <ac131313@redhat.com>
* cli/cli-script.c (execute_control_command): Replace value_ptr
with a struct value pointer.
* ch-lang.c (evaluate_subexp_chill): Ditto.
* printcmd.c (printf_command): Ditto.
* tracepoint.c (set_traceframe_context): Ditto.
(encode_actions): Ditto.
* eval.c (evaluate_subexp_standard): Ditto.
2001-12-25 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh: When an int variable, print value using %d instead
of %ld.
* gdbarch.c: Re-generate.
2001-12-24 Tom Rix <trix@redhat.com>
* config/powerpc/aix.mt (TDEPFILES): Add xcoffread.o to fix a build
failure.
2001-12-21 Michael Snyder <msnyder@redhat.com>
* procfs.c (info_proc_cmd): Add the 'mappings' sub-command that
was dropped a few years ago, when procfs.c was rewritten.
(info_proc_mappings): New function, implement 'info proc mappings'.
(mappingflags): New function.
(_initialize_procfs): Document new option to 'info proc' command.
2001-12-21 Tom Tromey <tromey@redhat.com>
* configure, config.in: Rebuilt.
* configure.in: Check for realpath.
* defs.h (gdb_realpath): Declare.
* symtab.h (partial_symtab): Added fullname field.
* source.c (openp): Use gdb_realpath.
(forget_cached_source_info): Clear full name of each partial
symtab.
* utils.c (gdb_realpath): New function.
* symtab.c (lookup_symtab): Removed.
(lookup_symtab_1): Renamed to lookup_symtab.
(lookup_symtab): Look for real path.
(lookup_partial_symtab): Likewise.
2001-12-21 Michael Snyder <msnyder@redhat.com>
* maint.c (match_substring): New function. Tokenizer for
maint info sections command arguments.
(match_bfd_flag): Use match_substring.
(print_bfd_section_info): Use match_substring.
(print_objfile_section_info): Use match_substring.
(maintenance_info_sections): Use match_substring.
2001-12-21 Orjan Friberg <orjanf@axis.com>
* configure.tgt: Delete CRIS from multi-arch targets.
* config/cris/tm-cris.h: New file.
* config/cris/cris.mt (TDEPFILES): Add corelow.o solib.o solib-svr4.o.
(TM_FILE): New macro.
* cris-tdep.c (cris_examine): Correct check for srp register.
(supply_gregset, fetch_core_registers,
cris_linux_svr4_fetch_link_map_offsets, cris_fpless_backtrace):
New functions.
(_initialize_cris_tdep): Add core functions and new command.
(cris_gdbarch_init): Define link map offsets.
Thu Dec 20 16:42:30 2001 Jeffrey A Law (law@cygnus.com)
* somsolib.c (som_solib_add): Ignore the solib limit threshhold
if AUTO_SOLIB_LIMIT is not greater than zero.
* somsolib.c (som_solib_create_inferior_hook): No longer warn
about missing __d_pid symbol.
2001-12-20 Elena Zannoni <ezannoni@redhat.com>
* ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register):
New function.
(fetch_register): New function.
(fetch_ppc_registers): New function.
(fetch_inferior_registers): New function.
(store_register): New function.
(store_ppc_registers): New function.
(store_inferior_registers): New function.
(ppc_register_u_addr): Eliminate ustart parameter and its
uses. Make static.
(PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE): Define if needed.
Include sys/ptrace.h.
* config/powerpc/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
(U_REGS_OFFSET, REGISTER_U_ADDR): Delete.
* config/powerpc/linux.mh (NATDEPFILES): Delete core-aout.o.
2001-12-20 Elena Zannoni <ezannoni@redhat.com>
* rs6000-nat.c (fetch_register): Don't error out unless the
register number is really bogus.
2001-12-20 Michael Snyder <msnyder@redhat.com>
* maint.c (maintenance_info_sections): Accept new argument
'ALLOBJ', iterate over all object files.
(print_section_table): Delete. Replaced by:
(print_section_info): New function.
(print_bfd_section_info): New function.
(print_objfile_section_info): New function.
(_initialize_maint_commands): Add help for new features.
2001-12-20 Kevin Buettner <kevinb@redhat.com>
* arm-tdep.c (arm_init_extra_frame_info): Add special case for
call dummies.
(arm_frame_saved_pc): Likewise.
(arm_push_dummy_frame): Make sure all of the GPRs are saved.
(arm_pop_frame): Eliminate special case for call dummies. It
is no longer needed now that the frame info is being properly
initialized.
* arm-tdep.c (arm_scan_prologue): Don't require "mov ip, sp"
to be the first instruction in the prologue. Also, revise
the way the frame offset is computed for frameless functions.
2001-12-20 Michael Snyder <msnyder@redhat.com>
* maint.c (maintenance_info_sections): Pass string argument to
print_section_table, so that it can be used to select sections.
(print_section_table): Change PTR to void *. Look at string arg
to select sections by name and by flag attributes.
(match_bfd_flags): New function.
(print_bfd_flags): New function.
Thu Dec 20 11:37:50 2001 Jeffrey A Law (law@redhat.com)
* cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
the new command.
2001-12-20 Andrew Cagney <ac131313@redhat.com>
* remote.c (struct packet_reg): Add field in_g_packet.
(struct remote_state): Rename field g_packet to regs;
(free_remote_state): Update.
(init_remote_state): Add pseudo-registers to table. Initialize
in_g_packet. Drop sentinal from table.
(packet_reg_from_regnum, packet_reg_from_pnum): Update.
(remote_fetch_registers): Handle registers not in the g-packet.
(remote_store_registers): Ditto.
2001-12-20 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (TARGET_CHAR_SIGNED): Do not specify the print
format.
2001-12-19 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_pop_frame_regular): Make sure the saved_regs
array is actually set before we try to use it.
* s390-tdep.c (s390_frame_saved_pc_nofix): If we get the saved PC
out of the return address register, cache that in the frame's
extra info, just as if we'd gotten it from the saved regs array;
that way, it's not a lie to set the saved_pc_valid flag.
* s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable
value, even when fextra_info->stack_bought can't be trusted,
* s390-tdep.c (s390_readinstruction): Don't call
info->read_memory_func to read zero bytes. Some targets'
xfer_memory functions can't cope with that.
* gdbarch.sh (TARGET_CHAR_SIGNED): New macro.
* gdbarch.c, gdbarch.h: Regenerated.
* gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero,
set the TYPE_FLAG_UNSIGNED bit on the type.
* s390-tdep.c (s390_gdbarch_init): On the S/390, characters
are unsigned by default.
* rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and
RS6000.
2001-12-19 Elena Zannoni <ezannoni@redhat.com>
* corefile.c (do_captured_read_memory_integer,
safe_read_memory_integer): New functions.
* gdbcore.h (safe_read_memory_integer): Export.
* arm-tdep.c (arm_scan_prologue): Use safe_read_memory_integer,
to read the frame value, to capture calls to error().
2001-12-19 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_register_name): S390_LAST_REGNUM is, in fact,
the last register number, not one greater than the last register
number.
* s390-tdep.c (s390_register_virtual_type): Replace clever but
incorrect range comparison with correct, legible equivalent.
* s390-tdep.c (s390_register_raw_size): Replace unnecessarily
obscure range comparison with legible equivalent.
Wed Dec 19 12:18:57 2001 Jeffrey A Law (law@redhat.com)
* config/pa/tm-hppa.h (STORE_RETURN_VALUE): Use hppa_store_return_value.
(EXTRACT_RETURN_VALUE): Similarly.
* hppa-tdep.c (hppa_store_return_value): New function.
(hppa_extract_return_value): New function.
* infttrace.c (child_acknowledge_created_inferior): Pass
correct argument to add_thread.
(update_thread_state_after_attach): Likewise.
2001-12-19 Fernando Nasser <fnasser@redhat.com>
* config/arm/tm-arm.h: Properly define SOFTWARE_SINGLE_STEP_P.
Always define SOFTWARE_SINGLE_STEP.
* config/arm/tm-embed.h: Properly define SOFTWARE_SINGLE_STEP_P.
* arm-tdep.c (arm_get_next_pc, thumb_get_next_pc, bitcount,
shifted_reg_val): Always compile these functions.
(arm_software_single_step): Fix second argument in function calls.
2001-12-19 Andrew Cagney <ac131313@redhat.com>
* arch-utils.h (gdbarch_info_init): Declare.
* arch-utils.c: Include "arch-utils.h".
(gdbarch_info_init): Define.
(set_endian, set_architecture, set_gdbarch_from_file)
(initialize_current_architecture): Use gdbarch_info_init.
* rs6000-nat.c (set_host_arch): Ditto.
* cris-tdep.c (cris_version_update, cris_mode_update)
(cris_abi_update): Ditto.
2001-12-19 Jim Blandy <jimb@redhat.com>
* c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
ISO C, and our parser. Print ASCII 0 as '\0', since that's what
people are used to seeing.
2001-12-18 Jim Blandy <jimb@redhat.com>
* c-lang.c (c_printstr, c_builtin_types, cplus_builtin_types):
Fix indentation.
* Makefile.in (c-exp.tab.o): Delete duplicate build rule. Fix
dependency list on remaining build rule.
2001-12-18 Martin M. Hunt <hunt@redhat.com>
* ser-tcp.c (tcp_open): Disable Nagle algorithm which
improves performance in some cases.
2001-12-17 Ben Harris <bjh21@netbsd.org>
* armbsd-nat.c: Remove file, renamed to armnbsd-nat.c.
* armnbsd-nat.c: New file, renamed from armbsd-nat.c.
* Makefile.in: Rename armbsd-nat.c to armnbsd-nat.c.
* config/arm/nbsd.mh: Likewise.
2001-12-17 Corinna Vinschen <vinschen@redhat.com>
* NEWS: Note new target XStormy16.
* MAINTAINERS: Add -Werror to XStormy16.
2001-12-17 Fernando Nasser <fnasser@redhat.com>
From Richard Earnshaw <rearnsha@arm.com>:
* arm-tdep.c (arm_software_single_step): New function. Implements
software single-stepping for ARM targets.
(arm_get_next_pc, thumb_get_next_pc, bitcount, shifted_reg_val): Only
needed for software single-stepping.
* config/arm/tm-arm.h: Activate SOFTWARE_SINGLE_STEP_P.
2001-12-17 Fernando Nasser <fnasser@redhat.com>
From Richard Earnshaw <rearnsha@arm.com>:
* config/arm/nbsd.mh, config/arm/nbsd.mt, config/arm/tm-nbsd.h,
config/arm/nm-nbsd.h, config/arm/xm-nbsd.h: New files.
* armbsd-nat.c: New file.
* Makefile.in: Build it.
* configure.host, configure.tgt: Support NetBSD/arm.
2001-12-17 Corinna Vinschen <vinschen@redhat.com>
* MAINTAINERS: Add myself as XStormy16 maintainer.
2001-12-15 Kevin Buettner <kevinb@redhat.com>
* config/rs6000/tm-rs6000.h (solib.h): Conditionally include.
2001-12-15 Andrew Cagney <ac131313@redhat.com>
* gdbarch.c: Re-generate.
2001-12-15 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Remove powerpcle-eabi and rs6000-ibm-aix3.2 from
target list.
2001-12-15 Andrew Cagney <ac131313@redhat.com>
* defs.h (LITTLE_ENDIAN): Delete definition.
* arch-utils.c, cris-tdep.c, d10v-tdep.c, defs.h, gdbarch.c,
gdbarch.sh, remote-rdp.c, remote-sim.c, sh-tdep.c, sparc-tdep.c,
config/alpha/tm-alpha.h, config/arm/tm-arm.h,
config/i386/tm-i386.h, config/i960/tm-i960.h,
config/ia64/tm-ia64.h, config/mcore/tm-mcore.h,
config/mips/tm-wince.h, config/mn10200/tm-mn10200.h,
config/ns32k/tm-umax.h, config/powerpc/tm-ppcle-eabi.h,
config/sh/tm-wince.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
doc/gdbint.texinfo: Replace LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
2001-12-15 Andrew Cagney <ac131313@redhat.com>
* ui-out.c (struct ui_out_table): Add field entry_level.
(verify_field): New function.
(verify_field_proper_position): Delete function.
(verify_field_alignment): Delete function.
(ui_out_field_int): Update to use verify_field.
(ui_out_field_skip): Ditto.
(ui_out_field_string): Ditto.
(ui_out_field_fmt): Ditto.
(ui_out_table_begin): Initialize table.entry_level.
(ui_out_table_end): Clear table.entry_level.
(ui_out_begin): Call verify_field before pushing the new tuple or
list onto the stack. Use table.entry_level.
2001-12-14 Corinna Vinschen <vinschen@redhat.com>
* config/djgpp/fnchange.lst: Add entries for opcodes/xstormy16-* files.
2001-12-13 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c (generic_register_virtual_size): Return TYPE_LENGTH
of register's type.
2001-12-13 Jackie Smith Cashion <jsmith@redhat.com>
* cli/cli-script.c (print_command_lines): Remove extra
"if", "else", "while", and "end" from show user output.
2001-12-13 Kevin Buettner <kevinb@redhat.com>
* i387-nat.c (i387_fill_fxsave): Change type of ``val'' from char
to short so that we don't memcpy() beyond the end of this buffer.
Also, change shift value used in computing val to account for the
fact that only eight bits are used.
2001-12-13 Corinna Vinschen <vinschen@redhat.com>
* Makefile.in: Add support for xstormy16.
* configure.tgt: Ditto.
* xstormy16-tdep.c: New file.
* config/xstormy16/xstormy16.mt: New file.
2001-12-13 Andreas Schwab <schwab@suse.de>
* MAINTAINERS (write-after-approval): Add myself.
2001-12-12 Jim Blandy <jimb@redhat.com>
* Makefile.in (c-exp.tab.o): Add missing dependencies.
* Makefile.in (c_lang_h): New variable. Use it in dependency
lists, instead of `c-lang.h' itself.
2001-12-11 Fred Fish <fnf@redhat.com>
* c-typeprint.c (c_type_print_base): Use type flags access macros
to test bits.
* ch-typeprint.c (chill_type_print_base): Ditto.
* ch-valprint.c (chill_val_print): Ditto.
* d10v-tdep.c (d10v_pointer_to_address): Ditto.
* dwarf2read.c (dwarf2_add_member_fn): Ditto.
* dwarfread.c (read_structure_scope): Ditto.
* gdbtypes.c (create_range_type): Dittol
(create_set_type): Ditto.
(check_typedef): Ditto.
* jv-typeprint.c (java_type_print_base): Ditto.
* p-typeprint.c (pascal_type_print_base): Ditto
* p-valprint.c (pascal_val_print): Ditto.
* stabsread.c (read_cfront_member_functions): Ditto.
(read_member_functions): Ditto.
(cleanup_undefined_types): Ditto.
* valprint.c (val_print): Ditto.
* valops.c (hand_function_call): Remove is_prototyped
variable and just use type flag test macro directly.
2001-12-11 Fred Fish <fnf@redhat.com>
* gdbtypes.c (print_bound_type): New function.
(recursive_dump_type): Print type struct code values
TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE,
and TYPE_CODE_TEMPLATE_ARG.
(recursive_dump_type): Print type struct members
upper_bound_type, lower_bound_type, cv_type, and as_type.
Also always print the tagname member, even when it is NULL.
2001-12-11 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c (d10v_register_virtual_size): Delete.
(d10v_gdbarch_init): Use generic_register_virtual_size.
* rs6000-tdep.c (rs6000_register_virtual_size): Delete.
(rs6000_gdbarch_init): Use generic_register_virtual_size.
* x86-64-tdep.c (x86_64_register_virtual_size): Delete.
(i386_gdbarch_init): Use generic_register_virtual_size.
2001-12-11 Andrew Cagney <ac131313@redhat.com>
* values.c: Include "gdb_assert.h".
(value_fn_field): Rearange to avoid -Wuninitialized warning.
2001-12-10 Fred Fish <fnf@redhat.com>
* values.c (value_fn_field): Add physname variable. Use a minimal
symbol if we don't find a full symbol. Remove setting of the new
value's type since that was already done by allocate_value().
Remove obsolete commented out error call since callees need to
handle a NULL return, which is possible result not an error.
* eval.c (evaluate_subexp_standard): Move check for inlined
functions to precede attempt to dereference a NULL argvec[0].
2001-12-10 Fred Fish <fnf@redhat.com>
* arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than
zero in args to lookup_minimal_symbol.
* linespec.c (decode_line_1): Ditto.
* i386-linux-tdep.c (skip_hurd_resolver): Ditto.
* minsyms.c (find_stab_function_addr): Ditto.
* symfile.c (simple_read_overlay_table): Ditto.
(simple_read_overlay_region_table): Ditto.
2001-12-10 Michael Snyder <msnyder@redhat.com>
* arch-utils.c (generic_register_virtual_size): New function.
* arch-utils.h: Export generic version of register_virtual_size.
* gdbarch.sh (REGISTER_VIRTUAL_SIZE): Use new function as default.
* gdbarch.c: Regenerate.
2001-12-09 Fred Fish <fnf@redhat.com>
* gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use
TYPE_UNSIGNED and TYPE_NOSIGN to determine when to print these
rather than testing the bits directly.
(TYPE_FLAG_NOSIGN, TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC,
TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_PROTOTYPED,
TYPE_FLAG_INCOMPLETE, TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE,
TYPE_FLAG_VARARGS): Test for and print these bits as well.
2001-12-09 Fred Fish <fnf@redhat.com>
* gdbtypes.c (build_gdbtypes): For builtin_type_char, pass
TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
type is created.
2001-12-09 Fred Fish <fnf@redhat.com>
* gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST,
TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the
bits to location in file where the bits are defined.
(TYPE_STUB, TYPE_TARGET_STUB, TYPE_STATIC, TYPE_PROTOTYPED,
TYPE_CODE_SPACE, TYPE_DATA_SPACE): New test macros.
2001-12-09 Fred Fish <fnf@redhat.com>
* gdbtypes.c (allocate_stub_method): Replace hand crafted type
initialization with call to the init_type() function.
2001-12-09 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c (generic_register_raw_size): New function.
* gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
the static default.
* gdbarch.c: Regenerate.
* arch-utils.h (generic_register_raw_size): Declare.
* config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro.
* mips-tdep.c (mips_register_raw_size): Make function static.
(mips_gdbarch_init): Initialize register_raw_size.
2001-12-08 Fred Fish <fnf@redhat.com>
* dwarf2read.c (read_typedef): Replace hand crafted type
initialization with a call to the init_type() function, which
is how the rest of gdb creates types.
2001-12-09 Fred Fish <fnf@redhat.com>
* mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
rather than setting it after the type is created.
2001-12-09 Elena Zannoni <ezannoni@redhat.com>
* config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove
definition, it is now multiarched.
* ppc-tdep.h (struct gdbarch_tdep): Move from rs6000-tdep.c. Add
fields for special register numbers.
* rs6000-tdep.c (rs6000_gdbarch_init): Initialize new tdep special
regnum fields.
(rs6000_saved_pc_after_call): Use gdbarch_tdep registers fields
instead of hardcoded macros.
(branch_dest, rs6000_pop_frame, rs6000_fix_call_dummy,
ppc_push_return_address, rs6000_frame_saved_pc,
frame_get_saved_regs, rs6000_frame_chain,
rs6000_store_return_value): Ditto.
(rs6000_stab_reg_to_regnum): New function.
* ppcnbsd-nat.c (fetch_inferior_registers,
store_inferior_registers, fetch_core_registers): Ditto.
* ppc-linux-tdep.c (ppc_linux_in_sigtramp,
ppc_linux_frame_init_saved_regs): Ditto.
* ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
fill_gregset): Ditto.
* ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
Ditto.
2001-12-08 Fred Fish <fnf@redhat.com>
* c-lang.c (c_create_fundamental_type): For FT_CHAR, pass
TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
type is created.
2001-12-08 Fred Fish <fnf@redhat.com>
* dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
* gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to
not collide with other flag bits.
2001-12-08 Fred Fish <fnf@redhat.com>
* dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
init_type().
2001-12-08 Daniel Jacobowitz <drow@mvista.com>
* Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h).
2001-12-08 Jim Blandy <jimb@redhat.com>
* config/s390/s390.mh: Don't use the linux-thread.o module;
thread-db.o, lin-lwp.o, and proc-service.o should work just fine.
2001-12-07 Andrew Cagney <ac131313@redhat.com>
* PROBLEMS: New file.
* README: Move known problems to PROBLEMS file.
2001-12-07 Daniel Jacobowitz <drow@mvista.com>
* stabsread.c (read_member_functions): Skip member functions which
are duplicates of the callable constructor/destructor.
2001-12-07 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_store_return_value): Don't convert float
values to double format when returning them; just return them in
the first half of the FP register, as the ABI specifies.
2001-12-07 Daniel Jacobowitz <drow@mvista.com>
* valops.c (hand_function_call): Check for method arguments in
TYPE_ARG_TYPES(), not in TYPE_FIELD ().
2001-12-07 Daniel Jacobowitz <drow@mvista.com>
* cp-valprint.c (cp_print_value): Preserve offset if
the virtual base is outside of this object.
2001-12-07 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.c (finish_cv_type): New function.
(check_typedef): Remove ``register'' keyword from argument.
Preserve const and volatile attributes across filling in
opaque types.
* gdbtypes.h (finish_cv_type): Add prototype.
* hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
* stabsread.c (read_struct_type): Likewise.
* dwarf2read.c (read_structure_scope): Likewise. Remove redundant
assignment to die->type.
2001-12-07 Jim Blandy <jimb@redhat.com>
* printcmd.c (print_scalar_formatted): Compare the length of the
value against the lengths of the target's floating-point types,
not the host's. Add support for `long double'.
2001-12-07 Martin M. Hunt <hunt@redhat.com>
* configure.in: Check for sys/filio.h
* configure: Rebuild.
* config.in: Add HAVE_SYS_FILIO_H
* ser-tcp.c: Conditionally include sys/filio.h.
2001-12-07 Andrew Cagney <ac131313@redhat.com>
* ui-out.c (ui_out_table_begin): Initialize body_flag.
(struct ui_out_table): New structure. Move table fields to here.
Rename headercurr to headernext.
(struct ui_out): Remove table specific fields. Add field table.
(ui_out_table_begin, ui_out_table_body, ui_out_table_end): Update.
(ui_out_table_header, ui_out_begin): Update.
(verify_field_proper_position, verify_field_alignment): Update.
(ui_out_new, clear_header_list, append_header_to_list): Update.
(get_next_header): Rename get_curr_header. Update comments and
code.
2001-12-06 Andrew Cagney <ac131313@redhat.com>
* regcache.c (XCALLOC): Delete macro that should not have been
added.
2001-12-07 Jiri Smid <smid@suse.cz>
* dwarf2cfi.c: New file.
* dwarf2cfi.h: New file.
* dwarf2read.c (dwarf_frame_offset, dwarf_frame_size): New variables.
(dwarf_eh_frame_offset, dwarf_eh_frame_size): New variables.
(dwarf2_read_section): Change to non static.
(dwarf2_locate_sections): Add .debug_frame and .eh_frame section
recognition.
(FRAME_SECTION, EH_FRAME_SECTION): New define.
* elfread.c (elf_symfile_read): Add call of frame informations build.
* frame.h (frame_info): Add pointer to unwind_context.
* symfile.h (dwarf2_build_frame_info): Add declaration.
* gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Add.
* gdbarch.h, gdbarch.c: Regenerate.
* Makefile.in: Add dwarf2cfi_h, dwarf2cfi.o
* x86-64-tdep.c (i386_gdbarch_init): Initialize target vector to
use debug frame info.
2001-12-06 Andrew Cagney <ac131313@redhat.com>
* defs.h: Do not include "mmalloc.h".
(mcalloc, mmalloc, mrealloc, mfree): Delete declaration.
* objfiles.c: Include "mmalloc.h".
* utils.c: Include "mmalloc.h".
(mmalloc, mfree, mrealloc, mmalloc): Make static, change PTR to
void pointer.
2001-12-06 Andrew Cagney <ac131313@redhat.com>
* regcache.c (store_register, fetch_register): Only use
fetch/store pseudo-register when function is present. Assume
target can handle all registers.
(registers_changed): Simplify invalidate loop.
(registers_fetched): Add comments.
(register_buffer): Add regnum range assertion. Remove code
handling -ve regnum.
(build_regcache): Make space for pseudo-registers when computing
sizeof_registers. Initialize register_offset.
* gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
predicate.
(STORE_PSEUDO_REGISTER): Ditto.
* gdbarch.h, gdbarch.c: Re-generate.
2001-12-06 Jim Blandy <jimb@redhat.com>
* config/s390/nm-linux.h: Watchpoints are either continuable or
steppable, not both. The S/390 has continuable watchpoints, so
delete the #definition of HAVE_STEPPABLE_WATCHPOINT.
2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
* go32-nat.c (go32_fetch_registers): Remove call to register_buffer
(which is now a static function in regcache.c)
and use regcache_collect instead.
2001-12-05 Andrew Cagney <cagney@redhat.com>
* target.c (cleanup_target): Do not initialize to_query to
return_zero.
2001-12-05 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_get_frame_info): Recognize argument register
spills that use the `stm' instruction.
(is_arg_reg): New function.
2001-12-03 Keith Walker <keith.walker@arm.com>
* gdbserver/low-linux.c (arm_register_u_addr): Added.
(initialize_arch): Added for ARM target.
* config/arm/nm-linux.h (U_REGS_OFFSET): Defined.
(REGISTER_U_ADDR): Defined.
* config/arm/tm-linux.h (ARM_GNULINUX_TARGET): Defined.
2001-12-04 Corinna Vinschen <vinschen@redhat.com>
* arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
the prologue if source is assembler.
2001-12-04 Jackie Smith Cashion <jsmith@redhat.com>
* MAINTAINERS (write-after-approval): Add self.
* d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
From Andrew Cagney <cagney@redhat.com>:
* d10v-tdep.c (d10v_frame_chain_valid): Check if the caller's PC
is in the entry function.
(d10v_use_struct_convention): Store multi-field struct and union
return values on the stack.
2001-12-04 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_get_frame_info): Recognize spills of reg
arguments into their stack slots.
* s390-tdep.c (s390_get_frame_info): More doc fixes.
* s390-tdep.c (s390_get_frame_info): Doc fixes.
2001-12-04 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (cris_regnums): Add DCCR_REGNUM for completeness.
(cris_examine): Add comment about solib prologue parsing.
(bdap_prefix): Read offset with correct signedness and size.
(move_to_preg_op): Don't rely on register numbering for register size.
(none_reg_mode_move_from_preg_op): Ditto.
2001-12-04 Orjan Friberg <orjanf@axis.com>
* solib.c (solib_open): Make path relative if search for absolute path
failed. If search for relative path in solib_search_path failed, fall
back to search for basename only.
2001-12-03 Martin M. Hunt <hunt@redhat.com>
* serial.h: Add a note to serial_open.
* ser-tcp.c (tcp_open): Rewrite to use a non-blocking connect.
Allow UI and CLI to abort connect. Instead of trying 15 times
with very long timeouts, just try one connect with a maximum timeout
of 15 seconds.
2001-12-03 Kevin Buettner <kevinb@redhat.com>
* config/powerpc/tm-macos.h (solib.h): Include.
* config/powerpc/tm-ppc-eabi.h (solib.h): Include.
2001-12-03 Michael Snyder <msnyder@redhat.com>
* symtab.c (search_symbols): Make sure alloca size is big enough.
2001-12-03 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Prune m68k targets down to just m68k-elf.
2001-12-03 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
orig_sp if it's not initialized.
2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
* findvar.c (locate_var_value): Specify in which register a register
variable is stored.
2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (mappings): Correct position of XMM registers,
based on FXSAVE instruction structure.
2001-12-02 Andrew Cagney <ac131313@redhat.com>
* jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
mmalloc.
* coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
symmisc.c, xcoffread.c: Use xmfree instead of mfree.
* jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
mrealloc.
2001-12-02 Andrew Cagney <ac131313@redhat.com>
* i386-tdep.c (i386go32_frame_saved_pc): New function.
* config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
(FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
2001-12-01 Andrew Cagney <ac131313@redhat.com>
* defs.h: Update comment on HOST_BYTE_ORDER.
* config/xm-aix4.h: Delete definition of HOST_BYTE_ORDER.
* config/xm-nbsd.h, config/alpha/xm-alphalinux.h: Ditto.
* config/alpha/xm-alphaosf.h, config/alpha/xm-fbsd.h: Ditto.
* config/arm/xm-linux.h, config/i386/xm-cygwin.h: Ditto.
* config/i386/xm-i386bsd.h, config/i386/xm-i386gnu.h: Ditto.
* config/i386/xm-i386lynx.h, config/i386/xm-i386m3.h: Ditto.
* config/i386/xm-i386mach.h, config/i386/xm-i386v.h: Ditto.
* config/i386/xm-ptx.h, config/i386/xm-symmetry.h: Ditto.
* config/ia64/xm-aix.h, config/ia64/xm-linux.h: Ditto.
* config/m68k/xm-3b1.h, config/m68k/xm-apollo68b.h: Ditto.
* config/m68k/xm-apollo68v.h, config/m68k/xm-delta68.h: Ditto.
* config/m68k/xm-dpx2.h, config/m68k/xm-hp300bsd.h: Ditto.
* config/m68k/xm-hp300hpux.h, config/m68k/xm-m68k.h: Ditto.
* config/m68k/xm-m68klynx.h, config/m68k/xm-sun2.h: Ditto.
* config/m68k/xm-sun3.h, config/m88k/xm-dgux.h: Ditto.
* config/m88k/xm-m88k.h, config/mips/xm-irix3.h: Ditto.
* config/mips/xm-irix5.h, config/mips/xm-linux.h: Ditto.
* config/mips/xm-mips.h, config/mips/xm-mipsm3.h: Ditto.
* config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h: Ditto.
* config/mips/xm-riscos.h, config/pa/xm-hppab.h: Ditto.
* config/pa/xm-hppah.h, config/powerpc/xm-linux.h: Ditto.
* config/romp/xm-rtbsd.h, config/rs6000/xm-rs6000.h: Ditto.
* config/rs6000/xm-rs6000ly.h, config/s390/xm-linux.h: Ditto.
* config/sparc/xm-sparc.h, config/sparc/xm-sparclynx.h: Ditto.
* config/vax/xm-vax.h: Ditto.
* config/a29k/tm-vx29k.h: Add #error as file depends on
HOST_BYTE_ORDER.
* config/a29k/tm-a29k.h: Ditto.
* MAINTAINERS (a29k-amd-udi): Document as broken.
2001-12-01 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete.
(ALLDEPFILES): Delete news-xdep.c.
(news-xdep.o): Delete.
(isi-xdep.o): Delete.
* configure.tgt: Delete m68*-isi-*, m68*-sony-*, m68*-rom68k-*,
m68*-*bug-*, m68*-monitor-* and m68*-est-* targets.
* configure.host: Delete m68030-sony-*, m68*-isi-* and m68*-sony-*
Hosts.
* m68k-tdep.c (isi_skip_prologue): Delete function.
* news-xdep.c: Delete file.
* isi-xdep.c: Delete file.
* config/m68k/isi.mh: Delete file.
* config/m68k/isi.mt: Delete file.
* config/m68k/news.mh: Delete file.
* config/m68k/news.mt: Delete file.
* config/m68k/news1000.mh: Delete file.
* config/m68k/nm-news.h: Delete file.
* config/m68k/tm-isi.h: Delete file.
* config/m68k/tm-news.h: Delete file.
* config/m68k/xm-isi.h: Delete file.
* config/m68k/xm-news.h: Delete file.
* config/m68k/xm-news1000.h: Delete file.
* kdb-start.c: Delete file.
* stuff.c: Delete file.
* NEWS: Note that a29k-nyu-sym1 and a29k-*-kern* were deleted.
* configure.host: Delete a29k-*-* host.
* configure.tgt: Delete a29k-*-kern* and a29k-*-sym1* targets.
* config/a29k/a29k-kern.mt: Delete file.
* config/a29k/nm-ultra3.h: Delete file.
* config/a29k/tm-ultra3.h: Delete file.
* config/a29k/ultra3.mh: Delete file.
* config/a29k/ultra3.mt: Delete file.
* config/a29k/xm-ultra3.h: Delete file.
* NEWS: Note that i[3456]86-*-sunos* was deleted.
* Makefile.in (sun386-nat.o): Delete.
* configure.tgt: Delete i[3456]86-*-sunos* target.
* configure.host: Delete i[3456]86-*-sunos* host.
* sun386-nat.c: Delete.file.
* config/i386/nm-sun386.h: Delete file.
* config/i386/sun386.mh: Delete file.
* config/i386/sun386.mt: Delete file.
* config/i386/tm-sun386.h: Delete file.
* config/i386/xm-sun386.h: Delete file.
* NEWS: Note that ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*
and ns32k-utek-* were deleted.
* Makefile.in (ultra3-nat.o, ultra3-xdep.o): Delete.
(umax-xdep.o, ns32km3-nat.o): Delete.
* configure.tgt: Delete ns32k-*-mach3*, ns32k-utek-sysv* and
ns32k-utek-* targets.
* configure.host: Delete ns32k-*-mach3*, ns32k-umax-* and
ns32k-utek-sysv* hosts.
* ultra3-nat.c: Delete file.
* ultra3-xdep.c: Delete file.
* umax-xdep.o: Delete file.
* ns32km3-nat: Delete file.
* config/ns32k/merlin.mh: Delete file.
* config/ns32k/merlin.mt: Delete file.
* config/ns32k/nm-umax.h: Delete file.
* config/ns32k/ns32km3.mh: Delete file.
* config/ns32k/ns32km3.mt: Delete file.
* config/ns32k/tm-merlin.h: Delete file.
* config/ns32k/tm-ns32km3.h: Delete file.
* config/ns32k/umax.mh: Delete file.
* config/ns32k/umax.mt: Delete file.
* config/ns32k/xm-merlin.h: Delete file.
* config/ns32k/xm-ns32km3.h: Delete file.
* config/ns32k/xm-umax.h: Delete file.
* NEWS: Note that m88*-harris-cxux* was deleted.
* configure.host: Delete m88*-harris-cxux* host.
* configure.tgt: Delete m88*-harris-cxux* target.
* config/m88k/cxux.mh: Delete file.
* config/m88k/cxux.mt: Delete file.
* config/m88k/nm-cxux.h: Delete file.
* config/m88k/tm-cxux.h: Delete file.
* config/m88k/xm-cxux.h: Delete file.
* NEWS: Note that powerpc-*-netware*, powerpcle-*-cygwin* and
powerpcle-*-solaris* were deleted.
* configure.host: Delete powerpcle-*-cygwin* and
powerpcle-*-solaris* hosts.
* configure.tgt: Delete powerpc-*-netware*, powerpcle-*-cygwin*
and powerpcle-*-solaris* targets.
* config/powerpc/cygwin.mh: Delete file.
* config/powerpc/cygwin.mt: Delete file.
* config/powerpc/nm-solaris.h: Delete.file.
* config/powerpc/ppc-nw.mt: Delete file.
* config/powerpc/solaris.mh: Delete file.
* config/powerpc/solaris.mt: Delete file.
* config/powerpc/tm-cygwin.h: Delete file.
* config/powerpc/tm-ppc-nw.h: Delete file.
* config/powerpc/tm-solaris.h: Delete file.
* config/powerpc/xm-cygwin.h: Delete file.
* config/powerpc/xm-mpw.h: Delete file.
* config/powerpc/xm-solaris.h: Delete file.
* NEWS, MAINTAINERS: Note that w65-*-* was deleted.
* configure.tgt: Delete w65-*-*.
* Makefile.in (w65-tdep.o): Delete.
* config/w65/tm-w65.h: Delete file.
* config/w65/w65.mt: Delete file.
* w65-tdep.c: Delete file.
* NEWS: Mention deleted tic80-*-*.
* configure.tgt: Delete tic80-*-*.
* Makefile.in (tic80-tdep.o): Delete.
* config/tic80/tic80.mt: Delete.
* config/tic80/tm-tic80.h: Delete.
* tic80-tdep.c: Delete.
* MAINTAINERS: Note that tic80 was deleted.
2001-11-30 Kevin Buettner <kevinb@redhat.com>
* ppc-linux-tdep.c (solib-svr4.h): Include.
(ppc_linux_svr4_fetch_link_map_offsets): New function.
* ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
* rs6000-tdep.c (solib-svr4.h): Include.
(rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
as the link map offsets fetcher.
* config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
* config/powerpc/macos.mt (TDEPFILES): Likewise.
* config/powerpc/nbsd.mt (TDEPFILES): Likewise.
* config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
* config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
* config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
* config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
* config/powerpc/vxworks.mt (TDEPFILES): Likewise.
* config/rs6000/aix4.mt (TDEPFILES): Likewise.
* config/rs6000/rs6000.mt (TDEPFILES): Likewise.
* config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2001-11-30 Kevin Buettner <kevinb@redhat.com>
From Louis Hamilton <hamilton@redhat.com>:
* arm-tdep.c (solib-svr4.h): Include.
(arm_linux_svr4_fetch_link_map_offsets): New function.
* config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
(arm_linux_svr4_fetch_link_map_offsets): Declare.
2001-11-30 Daniel Jacobowitz <drow@mvista.com>
* values.c (value_primitive_field): Add embedded_offset to the
address of structure members.
* gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
attempting to access vtable pointer. Set using_enc_p if we cast.
(gnuv3_virtual_fn_field): Call value_cast with structure rather than
structure pointer. Cast to base type before attempting to access
vtable pointer.
2001-11-29 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
* ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
* ppc-linux-nat.c: Include ppc-tdep.h.
(ppc_register_u_addr): Don't use the static array regmap[],
dynamically define the mapping instead.
(supply_gregset): Ditto.
(fill_gregset): Ditto.
(COPY_REG): Delete macro defintion.
(regmap): Delete array.
2001-11-29 Jim Blandy <jimb@redhat.com>
Tighten up GDB's support for returning structs by value.
* s390-tdep.c (s390_use_struct_convention): New function.
(s390_gdbarch_init): Register it as the S/390's
USE_STRUCT_CONVENTION method. Register
generic_cannot_extract_struct_value_address as our
EXTRACT_STRUCT_VALUE_ADDRESS method.
* arch-utils.c (generic_cannot_extract_struct_value_address): New
function.
* arch-utils.h: Add corresponding prototype.
* values.c (value_being_returned): Make error message a proper
sentence.
2001-11-27 Keith Walker <keith.walker@arm.com>
* dwarf2read.c (read_attribute_value): New function to handle
DW_FORM_indirect
(read_attribute): uses read_attribute_value
2001-11-29 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
save the return address register, assume that the return address
is still in there.
2001-11-27 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
Zaretskii).
2001-11-25 Jim Blandy <jimb@redhat.com>
* mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
2001-11-27 Jim Blandy <jimb@redhat.com>
* s390-tdep.c: Get frame chains and saved pc values properly from
dummy frames.
(s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
saved PC from the dummy frame's registers.
(s390_frame_chain): Same for the saved SP.
(s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
set correctly.
* s390-tdep.c (s390_frame_chain): Remember that the SP's element
of the frame's saved_regs array is special.
* s390-tdep.c (register_names): Call the general-purpose registers
`r0' -- `r15', and the floating-point registers `f0' -- `f15', to
match the assembly language.
2001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
* config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
* win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
extended registers if HAVE_SSE_REGS is defined.
(mappings array): Add offset of extended registers.
(thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
2001-11-26 Tom Tromey <tromey@redhat.com>
* NEWS: Updated.
* event-loop.c (start_event_loop): Call
after_char_processing_hook.
* event-top.h (after_char_processing_hook): Declare.
* event-top.c (rl_callback_read_char_wrapper): Call
after_char_processing_hook.
(after_char_processing_hook): New global.
* top.c (operate_saved_history): New global.
(gdb_rl_operate_and_get_next): New function.
(init_main): Add the operate-and-get-next defun.
(gdb_rl_operate_and_get_next_completion): New function.
2001-11-26 Tom Tromey <tromey@redhat.com>
* NEWS: Update for --args.
* infcmd.c (construct_inferior_arguments): Moved from ...
* fork-child.c: ... here.
2001-11-26 Jim Blandy <jimb@redhat.com>
* symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
comment explaining that hand-written assembly code can have line
number info but no debug info for an enclosing function.
2001-11-26 Jakub Jelinek <jakub@redhat.com>
* sparc-nat.c (fetch_inferior_registers): Don't rely
on CORE_ADDR being 32-bit.
(store_inferior_registers): Likewise.
2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
* config/djgpp/config.sed: Fix an error in etc/ at "make install"
time on non-LFN systems where standards*.inf* expands to nothing.
* go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
Christopher Faylor <cgf@redhat.com>
* win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
be able to remove the DLL when unloaded. Remove unused last field.
(handle_unload_dll): New function to handle unloading of DLL.
(solib_symbols_add): Change return type to struct objfile *.
(get_child_debug_event): Call handle_unload_dll function.
2001-11-24 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (_initialize_check_for_gdb_ini): New function.
* config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
(GDBINIT_FILENAME): Remove.
2001-11-23 Mark Kettenis <kettenis@gnu.org>
Add x86 OpenBSD native configuration.
* config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
config/i386/nm-obsd.h: New files.
* configure.host (i[3456]86-*-openbsd*): New host.
* configure.tgt (i[3456]86-*-openbsd*): New target.
* NEWS: Update.
2001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
* GDB 5.1 was released.
2001-11-21 Tom Tromey <tromey@redhat.com>
Fix for PR gdb/209, PR gdb/156:
* gdbarch.c, gdbarch.h: Rebuilt.
* gdbarch.sh: Added `construct_inferior_arguments'.
* cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
Typo fix.
* cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
* infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
(inferior_argc, inferior_argv): New globals.
(notice_args_set): New function.
(set_inferior_args): Clear inferior_argc and inferior_argv.
(set_inferior_args_vector): New function.
(get_inferior_args): Handle inferior argument vector.
(run_command): Use get_inferior_args().
(notice_args_read): New function.
(_initialize_infcmd): Don't call set_inferior_args.
* command.h: Typo fix.
(cmd_list_element): Added pre_show_hook.
* main.c (captured_main): Added --args option.
(print_gdb_help): Document --args.
* inferior.h (construct_inferior_arguments): Declare.
(set_inferior_args_vector): Likewise.
* fork-child.c (construct_inferior_arguments): New function.
2001-11-21 Kevin Buettner <kevinb@redhat.com>
* lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
blocked signals.
* lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
2001-11-20 Jim Blandy <jimb@redhat.com>
* target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
default definition; this is never used.
2001-11-20 Keith Seitz <keiths@redhat.com>
* varobj.c (c_value_of_child): Release memory for "name" when
finshed using it.
(c_type_of_child): Likewise.
(cplus_value_of_child): Isolate the use of name_of_child to
one case that needs it.
Release memory for "name" when finished using it.
2001-11-20 Keith Seitz <keiths@redhat.com>
* top.c (gdb_init): Call init_ui_hook before initializing
the default UI.
2001-11-19 Elena Zannoni <ezannoni@redhat.com>
* config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
declaration.
2001-11-19 Elena Zannoni <ezannoni@redhat.com>
* ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
accessing registers[].
(fill_fpregset): Ditto.
2001-11-19 Elena Zannoni <ezannoni@redhat.com>
* infptrace.c (fetch_register): Dynamically allocate buffer for
register.
(store_register): Use regcache_collect, instead of accessing the
register buffer directly.
2001-11-19 Daniel Jacobowitz <drow@mvista.com>
* mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
cur_frame to heuristic_proc_desc.
(heuristic_proc_desc): Add cur_frame argument. Do not read SP
if cur_frame == 0.
(after_prologue): Pass cur_frame == 0 to find_proc_desc.
(mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
(mips_init_extra_frame_info): Likewise.
2001-11-19 Andrew Cagney <ac131313@redhat.com>
* defs.h (return_to_top_level): Comment.
Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
* remote.c (remote_open_1, remote_async_open_1): Use ISO C string
concatenation for error parameter.
(remote_cisco_open): Ditto.
2001-11-19 Keith Seitz <keiths@redhat.com>
* varobj.c (c_value_of_child): Use the wrapper function,
gdb_value_struct_elt.
(cplus_value_of_child): Likewise.
2001-11-18 Andrew Cagney <ac131313@redhat.com>
* i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
* config/i386/tm-i386.h (NUM_REGS): Delete.
2001-11-18 Kevin Buettner <kevinb@redhat.com>
* i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
conversion for I386_LINUX_ORIG_EAX_REGNUM.
2001-11-18 Andrew Cagney <ac131313@redhat.com>
* config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
* config/i386/tm-embed.h: Delete.
2001-11-17 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (distclean): Explicitly delete Makefile et.al. in
gdbserver sub directory.
2001-11-17 Andrew Cagney <ac131313@redhat.com>
* README: Mention need for alloca(). Mention problems with
alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
2001-11-17 Kevin Buettner <kevinb@redhat.com>
* i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
of accessing registers[] directly.
2001-11-17 Kevin Buettner <kevinb@redhat.com>
* i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
when fetching ORIG_EAX.
2001-11-17 Daniel Jacobowitz <drow@mvista.com>
* arm-linux-nat.c: Don't include <asm/ptrace.h>.
(fetch_register): Use elf_gregset_t instead of struct pt_regs.
(fetch_regs): Likewise.
(store_register): Likewise.
(store_regs): Likewise.
2001-11-17 Daniel Jacobowitz <drow@mvista.com>
* sparc-linux-nat.c (fill_gregset): Replace read_register_gen
with regcache_collect.
(fill_fpregset): Likewise.
2001-11-17 Daniel Jacobowitz <drow@mvista.com>
* Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
* config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
* sparc-linux-nat.c: New file, from Mark Kettenis.
2001-11-16 Jakub Jelinek <jakub@redhat.com>
* dwarf2read.c (dwarf_str_buffer): New.
(struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
(DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
(dwarf2_has_info): Clear dwarf_str_offset.
(dwarf2_build_psymtabs): Read .debug_str section if present.
(dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
DWARF_STR_SIZE.
(psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
(read_attribute): Handle DW_FORM_strp.
(read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
handling code.
(read_indirect_string): New.
(dump_die): Handle DW_FORM_strp.
2001-11-16 Jim Blandy <jimb@redhat.com>
* s390-tdep.c: Tweak argument-passing to match GCC bugs.
(is_float_singleton, is_struct_like, is_float_like): New
functions, that isolate the weirdness.
(is_double_or_float, is_simple_arg, pass_by_copy_ref,
is_double_arg): Use is_struct_like and is_float_like, rather than
testing the type codes ourselves.
(s390_push_arguments): When passing args on the stack, align each
on to a four-byte boundary, regardless of what the type itself
needs.
2001-11-16 Ben Harris <bjh21@netbsd.org>
* Makefile.in (os9kread.o): Replace $< with autoconf-approved
$(srcdir)/....
(procfs.o): Ditto.
(z8k-tdep.o): Ditto.
2001-11-16 Ben Harris <bjh21@netbsd.org>
* MAINTAINERS (write-after-approval): Add self.
2001-11-15 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (is_simple_arg): Structs and unions exactly eight
bytes long should be handled as DOUBLE_ARGs; don't recognize them
as SIMPLE_ARGs.
2001-11-12 Andrew Cagney <ac131313@redhat.com>
* remote.c (struct packet_reg): Declare.
(struct remote_state): Add fields sizeof_g_packet and g_packet.
(init_remote_state): Initialize sizeof_g_packet and g_packet.
(free_remote_state): Free g_packet.
(packet_reg_from_pnum, packet_reg_by_regnum): New functions.
(remote_wait): Use above instead of gdbarch methods
REGISTER_RAW_SIZE and REGISTER_BYTES.
(remote_async_wait): Ditto.
(remote_fetch_registers, remote_store_registers): Ditto.
(store_register_using_P): Ditto.
2001-11-15 Andrew Cagney <ac131313@redhat.com>
* remote.c (_initialize_remote): Don't multi-arch swap tty_input.
Second attempt.
2001-11-15 Andrew Cagney <ac131313@redhat.com>
* utils.c (phex_nz): For default case, set str to phex_nz return
value.
(phex): Ditto.
2001-11-15 Andrew Cagney <ac131313@redhat.com>
* TODO (register_buffer): Delete.
* regcache.c (register_buffer): Make static.
(regcache_collect): New function.
* regcache.h (register_buffer): Delete declaration.
(regcache_collect): Declare.
* remote.c (store_register_using_P): Rewrite using
regcache_collect.
(remote_store_registers): Ditto.
* go32-nat.c (store_register): Ditto.
2001-11-14 Andrew Cagney <ac131313@redhat.com>
* remote.c (struct remote_state): Declare.
(get_remote_state): New function.
(init_remote_state): New function.
(remote_gdbarch_data_handle): New global.
(build_remote_packet_sizes): Delete function, moved to
init_remote_state.
(register_remote_packet_sizes): Delete function.
(actual_register_packet_size, remote_packet_size): Moved to
``struct remote_state''.
(PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
(free_remote_state): New function.
(get_memory_packet_size, get_memory_read_packet_size)
(set_thread, remote_unpack_thread_info_response)
(remote_get_threadinfo, parse_threadlist_response)
(remote_get_threadlist, remote_current_thread)
(remote_threads_info, remote_threads_extra_info)
(extended_remote_restart, get_offsets)
(get_offsets, remote_check_symbols, remote_open_1)
(remote_async_open_1, remote_detach, remote_async_detach)
(remote_resume, remote_async_resume, remote_wait)
(remote_async_wait, remote_fetch_registers)
(store_register_using_P, remote_store_registers)
(check_binary_download, putpkt_binary)
(remote_insert_breakpoint, remote_remove_breakpoint)
(remote_insert_watchpoint, remote_remove_watchpoint)
(remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
(compare_sections_command, remote_query)
(remote_rcmd, remote_rcmd, packet_command)
(remote_info_process): Update.
2001-11-14 Andrew Cagney <ac131313@redhat.com>
* remote.c: Include "gdb_assert.h".
(tty_input): Wire buffer to 400 bytes.
(readsocket): Check tty_input doesn't overflow.
(build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
tty_input.
2001-11-14 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c (d10v_pointer_to_address): Use new type flag
TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
into the instruction address space.
* Makefile.in (doublest.o): Add dependency on gdbtypes.h.
2001-11-14 Michael Snyder <msnyder@redhat.com>
Add address space identifiers to expression language for types.
* c-exp.y (space_identifier, cv_with_space_id,
const_or_volatile_or_space_identifier_noopt,
const_or_volatile_or_space_identifier): New terminals.
(ptype): Accept const_or_volatile_or_space_identifier.
(typebase): Accept const_or_volatile_or_space_identifier.
* c-typeprint.c (c_type_print_cv_qualifier): Rename to
c_type_print_modifier. Handle address space modified types.
* gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
New type flags.
(struct type): Add new field as_type for addr-space qualified types.
(TYPE_AS_TYPE): New macro, retrieves the chain of types that are
identical to this one except for address-space qualification.
* gdbtypes.c (alloc_type): Initialize new field 'as_type'.
(address_space_name_to_int): New function.
(address_space_int_to_name): New function.
(make_type_with_address_space): New function.
(make_cv_type): Handle as_type field of new struct type object.
* parse.c (check_type_stack_depth): New function.
(push_type_address_space): New function.
(follow_types): Handle types with address-space qualifier.
* parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
2001-11-14 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
pointer and the SP are often the same, so we can't pop the frame
by setting the SP to the FP; we need to get the old SP from
saved_regs.
* s390-tdep.c (s390_extract_return_value): Returned `float' values
can simply be copied bitwise from the registers into the value
object's buffer.
* s390-tdep.c (s390_get_frame_info): Initialize SP's element of
the frame's saved_regs array correctly.
* symfile.c (simple_read_overlay_table): Make sure we can find
both `_novlys' and `_ovly_table' before we try anything else;
print a helpful error message.
(simple_overlay_update): No need to print error message here.
2001-11-14 Michael Snyder <msnyder@redhat.com>
* Makefile.in (doublest.o): Add dependency on gdbtypes.h.
2001-11-10 Andrew Cagney <ac131313@redhat.com>
* arm-tdep.c (arm_register_type): New function.
(arm_register_convertible): Delete.
(arm_register_convert_to_virtual): Delete.
(arm_register_convert_to_raw): Delete.
* config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
(REGISTER_CONVERT_TO_VIRTUAL): Delete.
(REGISTER_CONVERT_TO_RAW): Delete.
(REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
(arm_register_type): Declare.
2001-11-13 Elena Zannoni <ezannoni@redhat.com>
From Andrew Cagney <cagney@redhat.com>:
* gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
* gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
new builtin types.
2001-11-13 Jim Blandy <jimb@redhat.com>
* s390-tdep.c: Rewrite inferior function call code. This may
break zSeries support; that should be fixed soon.
#include "gdb_assert.h".
(is_integer_like, is_pointer_like, is_simple_arg,
pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
round_down, alignment_of): New functions.
(s390_push_arguments): Rewritten to handle passing large arguments
by value, and to make more readable.
* s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
interact correctly with generic dummy frames.
(s390_pop_frame_regular): Move the guts of the frame-popping code
to here, to be called by generic_pop_current_frame. Use the
frame's saved_regs array; this works for `return' as well as
inferior function calls.
* s390-tdep.c (s390_gdbarch_init): Register the function
`standard_coerce_float_to_double', since GCC for the S/390 follows
the standard rules for passing floats.
* valops.c (default_coerce_float_to_double,
standard_coerce_float_to_double): Doc fixes.
Patch from Peter Schauer:
* symtab.c (find_pc_sect_line): If we can't find the function
containing PC, we certainly won't have line number information for
that location, so return zero immediately.
2001-11-10 Andrew Cagney <ac131313@redhat.com>
* config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
(REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
undef.
* i960-tdep.c (i960_register_type): New function.
* config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
(REGISTER_CONVERT_TO_VIRTUAL): Delete.
(REGISTER_CONVERT_TO_RAW): Delete.
(REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
2001-11-10 Andrew Cagney <ac131313@redhat.com>
* m88k-tdep.c (m88k_register_type): New function.
* config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
(REGISTER_CONVERT_TO_VIRTUAL): Delete.
(REGISTER_CONVERT_TO_RAW): Delete.
(m88k_register_type): Declare.
(REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
2001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
* i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
* i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
* config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
(SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
2001-11-12 Jim Blandy <jimb@redhat.com>
Patch from Andreas Schwab <schwab@suse.de>:
* eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
instead of xmalloc.
2001-11-12 Jim Blandy <jimb@redhat.com>
* corefile.c (write_memory_unsigned_integer,
write_memory_signed_integer): New functions.
(write_memory): Move to be with other write_memory_* functions.
* gdbcore.h (write_memory_unsigned_integer,
write_memory_signed_integer): New declarations.
2001-11-11 Geoffrey Keating <geoffk@redhat.com>
* dwarf2read.c (dwarf_decode_lines): Properly deal with
unknown standard opcodes.
2001-11-11 Andrew Cagney <ac131313@redhat.com>
* README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
(sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
(i586-sco-sysv5uw7.1.1): Mention problem with threads.
2001-11-11 Andrew Cagney <ac131313@redhat.com>
From Mark Kettenis <kettenis@gnu.org>:
* breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
breakpoints when they fail.
2001-11-10 Andrew Cagney <ac131313@redhat.com>
* printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
Replace value_ptr with struct value.
2001-11-10 Andrew Cagney <ac131313@redhat.com>
* c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
value_ptr with struct value.
2001-11-10 Andrew Cagney <ac131313@redhat.com>
* eval.c: Replace most occurances of value_ptr with struct value.
2001-11-09 Jim Blandy <jimb@redhat.com>
* s390-tdep.c: Don't use a call dummy.
(s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
(s390_push_return_address): Put the address of the inferior call
breakpoint in r14.
(s390_gdbarch_init):
- Provide trivial definition of s390_call_dummy_words; register it
with the gdbarch appropriately.
- Delete S390x_call_dummy_words.
- Gather inferior-call-related settings into a group.
- Use generic dummy frames.
- Put the inferior call breakpoint at the entry point.
- Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
generic_push_dummy_frame, generic_fix_call_dummy.
- There is a call dummy breakpoint offset; it's zero.
* s390-tdep.c: (s390_push_arguments): Write a back chain pointer
into the dummy frame, to help us get backtraces.
* values.c (value_as_address): If VAL is a function or method,
just return its address; don't let COERCE_ARRAY convert its
address to a pointer, and then have unpack_long convert it back to
an address.
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
* p-lang.c (is_pascal_string_type): New function to determine if a
type is a string type.
* p-lang.h: Add prototype for is_pascal_string_type.
* p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
to display strings nicely.
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y (yylex): Only change case of expression if symbol is found.
Also check for GPC standard name form.
2001-11-08 Andrew Cagney <ac131313@redhat.com>
* gdb_indent.sh: New file.
2001-11-08 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
got_load_len, to placate compiler.
2001-11-08 Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_gdbarch_init): Fix typo.
2001-11-08 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
file_frame_chain_valid.
* s390-tdep.c (s390_get_frame_info): If the prologue loads r12
from the constant pool, but doesn't add in the constant pool's
address to it, then this function probably isn't using r12 as a
GOT pointer, and that load probably wasn't part of the prologue.
* s390-tdep.c (s390_gdbarch_init): Use the default
prepare_to_proceed function established by config/nm-linux.h;
don't try to set it to linuxthreads_prepare_to_proceed.
Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
* i386-tdep.c: Include "i386-tdep.h".
(XMALLOC): Define.
(i386_gdbarch_init): New function.
(_initialize_i386_tdep): Register bfd_arch_i386.
* config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
GDB_MULTI_ARCH_PARTIAL.
* i386-tdep.h: When partially multi-arch, conditionally define
all macros.
Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
* i386-tdep.c (set_disassembly_flavor): Delete function.
(set_disassembly_flavor_sfunc): Delete function.
2001-11-07 Elena Zannoni <ezannoni@redhat.com>
* dbxread.c (set_namestring): New function, replacing the
SET_NAMESTRING macro.
(SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
definitions.
(read_dbx_symtab): Don't include partial-stab.h any more. Don't
reuse code in partial-stab.h, include the code directly, instead.
* Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
(HFILES_NO_SRCDIR): Remove partial-stab.h.
* partial-stab.h: Remove file.
2001-11-07 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh: For multi-arch functions, check there is a
predefault and use it as the static default.
* gdbarch.c: Re-generate.
2001-11-08 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
hardcoding the register number.
2001-11-07 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (USE_STRUCT_CONVENTION): Default to
generic_use_struct_convention.
* gdbarch.h, gdbarch.c: Regenerate.
* values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
gdbarch.h.
2001-11-06 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
* gdbarch.c: Regenerate.
2001-11-06 Fred Fish <fnf@redhat.com>
* complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
* dbxread.c: Ditto
* dwarf2read.c: Ditto.
* dwarfread.c: Ditto.
* exec.c: Ditto.
* hpread.c: Ditto.
* hpread.h: Ditto.
* mdebugread.c: Ditto.
* os9kread.c: Ditto.
* stack.c: Ditto.
* symfile.c: Ditto.
* tracepoint.c: Ditto.
2001-11-06 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
David Taylor and Nick Duffek in past maintainers.
2001-11-06 Elena Zannoni <ezannoni@redhat.com>
* mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
(parse_partial_symbols): Don't include partial-stab.h any
more. Don't reuse code in partial-stab.h, include the code
directly, instead. Simplify code from partial-stab.h eliminating
ifdef DBXREAD_ONLY code.
* Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
2001-11-06 Jim Blandy <jimb@redhat.com>
* s390-nat.c: #include "regcache.h", to get declaration for
`supply_register'. (The last change already added the dependency
of s390-nat.o on regcache.h. Oops.)
* Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
(s390-tdep.o, s390-nat.o): New rules.
* s390-nat.c (s390_register_u_addr): Pass proper arguments to
internal_error.
2001-11-06 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
* gdbarch.c: Regenerate.
2001-11-06 Andrew Cagney <ac131313@redhat.com>
* blockframe.c (get_prev_frame): Replace #ifdef
INIT_EXTRA_FRAME_INFO with run-time test.
2001-11-05 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (push_return_address): Change to a function with
predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* valops.c (hand_function_call): Replace #ifdef
PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
2001-11-06 Corinna Vinschen <vinschen@redhat.com>
* arch-utils.c (generic_in_function_epilogue_p): New function.
* arch-utils.h (generic_in_function_epilogue_p): Declare extern.
* breakpoint.c (watchpoint_check): Add test whether the pc is
currently in the epilogue of a function.
* gdbarch.c: Autogenerated from gdbarch.sh.
* gdbarch.h: Ditto.
* gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
2001-11-05 Jim Blandy <jimb@redhat.com>
* config/s390/s390.mh (NATDEPFILES): Don't split this across
several lines with backslashes; the `sed' command in
configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
assignment doesn't handle lines extended with backslashes.
* configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
using `+=' as well as `='.
* configure: Regenerated.
2001-11-05 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (init_extra_frame_info): Change to a function with
predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (create_new_frame): Replace #ifdef
INIT_EXTRA_FRAME_INFO with run-time test of
INIT_EXTRA_FRAME_INFO_P.
2001-11-05 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
error messages. Print in a single batch.
* gdbarch.c: Re-generate.
2001-11-04 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
fill_gregset): Add support for "orig_eax" register.
Add support for "orig_eax" pseudo register on Linux/x86.
* i386-linux-tdep.c: Include "inferior.h".
(i386_linux_register_name, i386_linux_register_byte,
i386_linux_register_raw_size): New functions.
(i386_linux_write_pc): New function.
* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
(NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
register.
(i386_linux_register_name, i386_linux_register_byte,
i386_linux_register_raw_size): New prototypes.
(TARGET_WRITE_PC): New define.
(i386_linux_write_pc): New prototype.
* i386-tdep.c (i386_register_offset): Renamed from
i386_register_byte. Made static.
(i386_register_size): Renamed from i386_register_raw_size. Made
static.
(i386_register_virtual_size): Removed.
(i386_register_byte, i386_register_raw_size,
i386_register_virtual_size): New functions.
(_initialize_i386_tdep): Initialize i386_register_offset instead
of i386_register_byte. Remove code to initialize
i386_register_virtual_size.
* config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
i386_register_byte function.
(REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
function.
(REGISTER_VIRTUAL_SIZE): Redefine to use
i386_register_virtual_size function.
(i386_register_byte, i386_register_raw_size,
i386_register_virtual_size): New functions.
* Makefile.in (ALLDEPFILES): Add i387-nat.c.
(i387-nat.o): Add dependencies.
2001-11-02 Andrew Cagney <ac131313@redhat.com>
* README: Mention problem with alpha-dec-osf5.1.
2001-11-02 Andrew Cagney <ac131313@redhat.com>
* utils.c (internal_verror): Restore calls to abort().
Fix PR gdb/219.
2001-11-02 Michael Chastain <mec@shout.net>
* MAINTAINERS: Update my entry.
2001-11-01 Michael Snyder <msnyder@redhat.com>
* symtab.c (operator_chars): Allow '*' and '[' to be quoted in
operator names, to avoid regexp expansion.
(search_symbols): Alloca buffer is too small, may get clobbered.
2001-11-01 Fred Fish <fnf@redhat.com>
* coff-solib.c (coff_solib_add): Add new readsyms arg.
* irix5-nat.c (solib_add): Ditto.
* osfsolib.c (solib_add): Ditto.
* pa64solib.c (pa64_solib_add): Ditto.
* pa64solib.c (add_to_solist): Ditto.
* pa64solib.c (read_dld_descriptor): Ditto.
* solib.c (solib_add): Ditto.
* somsolib.c (som_solib_add): Ditto.
* win32-nat.c (child_solib_add): Ditto.
* xcoffsolib.c (solib_add): Ditto.
* coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
* pa64solib.c (add_to_solist): Ditto.
* pa64solib.c (read_dld_descriptor): Ditto.
* pa64solib.h (pa64_solib_add): Ditto.
* solib.h (solib_add): Ditto.
* somsolib.h (som_solib_add): Ditto.
* config/i386/tm-cygwin.h (child_solib_add): Ditto.
* coff-solib.c (coff_solib_add): If readsyms is zero don't read
symbols but do any other needed work for shared libs.
* irix5-nat.c: Ditto.
* osfsolib.c (solib_add): Ditto.
* solib.c (solib_add): Ditto.
* win32-nat.c (child_solib_add): Ditto.
* xcoffsolib.c (solib_add): Ditto.
* irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
solib_add to force reading of shared library symbols.
* osfsolib.c (sharedlibrary_command;): Ditto.
* pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
* solib.c (sharedlibrary_command): Ditto.
* somsolib.c (som_solib_sharedlibrary_command): Ditto.
* xcoffsolib.c (sharedlibrary_command): Ditto.
* coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
unconditionally with auto_solib_add.
* irix5-nat.c (solib_create_inferior_hook): Ditto.
* osfsolib.c (solib_create_inferior_hook): Ditto.
* solib.c (solib_create_inferior_hook): Ditto.
* solib-osf.c (osf_solib_create_inferior_hook): Ditto.
* solib-svr4.c (enable_break): Ditto.
* solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
* corelow.c (solib_add_stub): Add auto_solib_add to args passed
via SOLIB_ADD.
* sol-thread.c (sol_thread_attach): Ditto.
* config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
* infcmd.c (attach_command): Remove auto_solib_add decl.
Call SOLIB_ADD directly with auto_solib_add.
* infrun.c (handle_inferior_event): Ditto.
* coff-solib.h (SOLIB_ADD): Add readsyms arg.
* pa64solib.h (SOLIB_ADD): Ditto.
* solib.h (SOLIB_ADD): Ditto.
* somsolib.h (SOLIB_ADD): Ditto.
* config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
* fork-child.c (clone_and_follow_inferior): Remove unused
auto_solib_add decl.
* pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
(read_dld_descriptor): Ditto.
(pa64_solib_add): Call read_dld_descriptor with readsyms.
(pa64_solib_in_dynamic_linker): Ditto.
* corelow.c (symfile.h): Need this for auto_solib_add declaration.
* sol-thread.c (symfile.h): Ditto.
2001-10-31 Andrew Cagney <ac131313@redhat.com>
* s390-nat.c (s390_remove_watchpoint): Use xfree.
(s390_insert_watchpoint): Use xmalloc.
2001-10-31 Andrew Cagney <ac131313@redhat.com>
* varobj.c: Replace value_ptr with ``struct value *''.
2001-10-31 Andrew Cagney <ac131313@redhat.com>
* varobj.c: Re-indent.
2001-10-31 Andrew Cagney <ac131313@redhat.com>
* x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
``value_ptr'' with ``struct value *''.
* s390-tdep.c (s390_push_arguments): Ditto.
2001-10-30 Andrew Cagney <ac131313@redhat.com>
* ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
``struct value *''.
(struct frame_info, struct value): Add opaque declarations.
2001-10-31 Corinna Vinschen <vinschen@redhat.com>
* arch-utils.c (generic_in_solib_call_trampoline): New function.
* arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
* gdbarch.c: Regenerated from gdbarch.sh.
* gdbarch.h: Ditto.
* gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
* infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
2001-10-31 Andrew Cagney <ac131313@redhat.com>
From DJ Barrow.
* s390-tdep.c: (s390_gdbarch_init): Don't initialize
find_solib_trampoline_target.
2001-10-31 Andrew Cagney <ac131313@redhat.com>
* remote-vx.c (net_wait): Fix typo from PIDGET change.
2001-10-31 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386.h (REGISTER_NAMES): Remove.
(REGISTER_NAME): New define.
(i386_register_name): New prototype.
* i386-tdep.c (i386_register_names): New variable.
(i386_register_name): New function.
* config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
REGISTER_NAMES.
2001-10-31 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
the loaded DLL matches the on-disk case since the debugging API does
not seem to ensure this. Calculate max name length here.
(handle_load_dll): Move max name length calculation to
register_loaded_dll.
2001-10-31 Daniel Jacobowitz <drow@mvista.com>
* arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
2001-10-30 Keith Seitz <keiths@redhat.com>
* wrapper.h (gdb_value_struct_elt): New function.
* wrapper.c (gdb_value_struct_elt): Ditto.
(do_captured_value_struct_elt): Ditto.
2001-10-30 Andrew Cagney <ac131313@redhat.com>
* README, NEWS: Update for 5.1.
2001-10-30 Andrew Cagney <ac131313@redhat.com>
* configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
-W... flags.
* configure: Re-generate.
2001-10-30 Fred Fish <fnf@redhat.com>
* somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
* pa64solib.c (add_to_solist): Ditto.
* win32-nat.c (_initialize_inftarg): Remove unnecessary
initialization of auto_solib_add, it defaults to 1.
2001-10-27 Fred Fish <fnf@redhat.com>
* symfile.c (auto_solib_add): Update comment to note that
this variable is now just used as a boolean to control shlib
autoloading, and clarify when it is used.
* symfile.h (auto_solib_add): Ditto.
* symfile.c (auto_solib_limit): New variable that holds the
autoloading threshold instead of overloading auto_solib_add.
* symfile.h (auto_solib_limit): Ditto.
* irix5-nat.c (_initialize_solib): Change auto-solib-add
variable from var_zinteger to var_boolean and update help.
* osfsolib.c (_initialize_solib): Ditto.
* pa64solib.c (_initialize_pa64_solib): Ditto.
* solib.c (_initialize_solib): Ditto.
* somsolib.c (_initialize_som_solib): Ditto.
* xcoffsolib.c (_initialize_solib): Ditto.
* pa64solib.c (pa64_solib_total_st_size): Update comment to
note that the new auto_solib_limit variable is used instead
of overloading auto_solib_add variable.
(_initialize_pa64_solib): Ditto.
* somsolib.c (som_solib_total_st_size): Ditto.
(_initialize_som_solib): Ditto.
* pa64solib.c (_initialize_pa64_solib): Add new set/show
commands for auto-solib-limit variable.
* somsolib.c (_initialize_som_solib): Ditto
* pa64solib.c (add_to_solist): Check that auto_solib_add is
set and use auto_solib_limit as the threshold size instead
of auto_solib_add.
* somsolib.c (som_solib_add): Ditto, and also change warning
text about size threshold exceeded.
2001-10-21 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386v.h: Don't include "regcache.h".
(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
Remove macros. The versions from "tm-i386.h" should work fine
(and in most cases even better).
2001-10-30 Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_extract_return_value): Use
convert_typed_floating to extract floating-point value from
register buffer.
(i386_store_return_value): Use convert_typed_floating to store
floating-point return balue in register buffer
(i386_register_virtual_type): Change type of floating-point
registers to builtin_type_i387_ext.
(i386_register_convert_to_virtual): Use convert_typed_floating to
do the conversion.
(i386_register_convert_to_raw): Likewise.
2001-10-29 Mark Kettenis <kettenis@gnu.org>
* doublest.h (convert_typed_floating): New prototype.
* doublest.c (convert_typed_floating): New function.
2001-10-28 Mark Kettenis <kettenis@gnu.org>
* doublest.c: Improve comments a bit.
(floatformat_from_length): New function.
(NAN): Define to 0.0 if not already defined.
(extract_floating): Rewrite to use floatformat_from_length. Warn
instead of error if LEN doesn't match a known floating-point type,
and return NaN (or 0.0 if NaN isn't available) in that case.
(store_floating): Likewise, but zero out the target byte-stream if
LEN doesn't match a known floating-point type.
(extract_typed_floating): Reformat a bit.
(store_typed_floating): Reformat a bit. Add comment about zeroing
out padding in the target buffer.
* doublest.h (extract_floating, store_floating): Fix comment about
deprecation of these functions. Add parameter names to prototypes.
2001-10-28 Mark Kettenis <kettenis@gnu.org>
* i387-tdep.c (print_i387_value): Use extract_typed_floating to
convert RAW to a DOUBLEST instead of extract_floating.
* gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
builtin_type_i387_ext to floatformat_i387_ext.
2001-10-24 Daniel Jacobowitz <drow@mvista.com>
* arm-linux-nat.c (fill_gregset): Do not check register_valid[].
(fill_fpregset): Likewise.
2001-10-26 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (constraint): Loop through the whole cris_spec_regs
struct, not just the NUM_SPECREGS first entries.
(bdap_prefix): Read PC before autoincrement.
2001-10-24 Corinna Vinschen <vinschen@redhat.com>
* win32-nat.c (DebugSetProcessKillOnExit): New static function
pointer to Windows' DebugSetProcessKillOnExit() function.
(DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
(has_detach_ability): New function.
(child_attach): If system has detach ability, enable it.
(child_detach): If system has detach ability, actually
detach from process.
Change tty output to Linux format.
2001-10-23 Jim Blandy <jimb@redhat.com>
Isolate STABS readers' use of the `textlow' and `texthigh' fields
of `struct partial_symtab' to only a few locations. This change
is not supposed to affect the way the values are computed, only
where they live.
* dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
to the reader-specific structure.
* mdebugread.c (struct symloc): Same.
* dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
* mdebugread.c (TEXTLOW, TEXTHIGH): Same.
* dbxread.c (dbx_symfile_read): After we've built all our partial
symbol tables, set each partial symtab's `textlow' and `texthigh'
fields from our reader-specific structure.
* mdebugread.c (mdebug_build_psymtabs): Same.
* dbxread.c (start_psymtab): Initialize the reader-specific
structure's `textlow' and `texthigh' from the new psymtab's.
* mdebugread.c (parse_partial_symbols, new_psymtab): Same.
* dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
the reader-specific `textlow' and `texthigh', not the generic
psymtab fields.
* mdebugread.c (parse_lines, parse_partial_symbols,
psymtab_to_symtab_1): Same.
* partial-stab.h: Same.
Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
* hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
problems.
Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
* somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
(som_solib_desire_dynamic_linker_symbols): Compare integers with
zero not NULL.
* hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
2001-10-21 Andrew Cagney <ac131313@redhat.com>
* top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
interface is always enabled.
2001-10-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in: Replace top.h with $(top_h). Replace expression.h
with $(expression_h). Replace command.h with $(command_h).
(language_h): Define. Replace language.h with $(language_h).
Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
$(varobj_h).
(wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
(serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
(xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
(bcache_h, gdb_events_h, monitor_h): Ditto.
(ser_unix_h, source_h): Ditto.
(varobj_h): Update list.
* call-cmds.h: Add CALL_CMDS_H macro wrapper.
* solist.h: Add SOLIST_H macro wrapper.
* monitor.h: Add MONITOR_H macro wrapper.
* typeprint.h: Add TYPEPRINT_H macro wrapper.
* xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
* valprint.h: Add VALPRINT_H macro wrapper.
* top.h: Add TOP_H macro wrapper.
2001-10-21 Andrew Cagney <ac131313@redhat.com>
* config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
* arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
* ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
* rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
* Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
(infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
(x86-64-tdep.o): Update dependencies.
* gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
* gdbarch.h, gdbarch.c: Re-generate.
2001-10-21 Mark Kettenis <kettenis@gnu.org>
* infptrace.c (child_xfer_memory): Fix a few coding standards
violations.
2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
* config/djgpp/README: Fix a typo and tweak for GDB 5.1.
2001-10-20 Andrew Cagney <ac131313@redhat.com>
* jv-lang.h: Add #ifndef JV_LANG_H wrapper.
(struct value): Add opaque declaration. Replace value_ptr with
``struct value *''.
* jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
struct.
* wrapper.h (struct value): Add opaque declaration. Replace
value_ptr with ``struct value *''.
* wrapper.c: Replace value_ptr with ``struct value *''.
* breakpoint.h, breakpoint.c: Ditto.
* cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
2001-10-20 Andrew Cagney <ac131313@redhat.com>
* alpha-nat.c: Include <alpha/coreregs.h> instead of
<machine/reg.h>.
(fetch_osf_core_registers): Define core_reg_mapping in a way that
works on OSF5 as well as previous OSF versions.
2001-10-20 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
may not be able to read them in certain situations.
2001-10-18 Andrew Cagney <ac131313@redhat.com>
* config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
* config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
2001-10-18 Andrew Cagney <ac131313@redhat.com>
* README: Mention problems with HP/UX.
2001-10-16 Andrew Cagney <ac131313@redhat.com>
Based on code by John Moore <jmore@redhat.com>:
* utils.c (core_addr_to_string): New function for conversion of
CORE_ADDR to string.
(string_to_core_addr): New function to convert from string to
CORE_ADDR.
* defs.h: Added extern statements for the above.
2001-10-17 Jason Molenda (jason-cl@molenda.com)
* symtab.c (lookup_block_symbol): Break out of linear search
if we're past the range of possible matches.
2001-10-16 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
load of already loaded DLL.
(register_loaded_dll): Convert loaded DLL name to "posix" format or it
will confuse subsequent opening of the filename due to dos paths.
(dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
2001-10-15 Elena Zannoni <ezannoni@redhat.com>
* symtab.c (lookup_block_symbol): Update comment.
2001-10-15 Andrew Cagney <ac131313@redhat.com>
* value.h (value_as_address): Rename value_as_pointer.
* eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
values.c: Update.
202001-10-15 Jim Ingham <jingham@inghji.apple.com>
* valarith.c (value_sub): Don't pass a raw type to
value_from_pointer, it has to go through check_typedef first.
2001-10-15 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (fallbackdefault): Set to one when predefault is
empty.
* gdbarch.h: Regenerate.
2001-10-15 Andrew Cagney <ac131313@redhat.com>
* mips-tdep.c (mips_integer_to_address): New function.
(mips_gdbarch_init): Initialize pointer_to_address,
address_to_pointer and integer_to_address.
* config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
(ADDRESS_TO_POINTER): Delete.
* d10v-tdep.c (d10v_integer_to_address): New function.
(d10v_gdbarch_init): Initialize integer_to_address.
* values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
available.
* gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
* gdbarch.h, gdbarch.c: Regenerate.
2001-10-14 Mark Kettenis <kettenis@gnu.org>
* config/s390/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/nm-linux.h (struct objfile): Remove forward declaration.
(linuxthreads_new_objfile): Remove prototype.
(linuxthreads_pid_to_str): Remove prototype.
(PREPARE_TO_PROCEED): Redefine in terms of
lin_lwp_prepare_to_proceed.
(struct target_waitstatus): Forward declaration.
(child_wait): New prototype.
(CHILD_WAIT): Define.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Moved here from arch-specific files.
* config/alpha/nm-linux.h, config/arm/nm-linux.h,
config/ia64/nm-linux.h, config/mips/nm-linux.h,
config/powerpc/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/i386/nm-linux.h: Likewise.
(struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
* config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
Remove linux-thread.o. Add proc-service.o, thread-db.o and
lin-lwp.o.
(LOADLIBES): New variable.
* sparc-nat.c (fetch_core_registers): Remove redundant prototype.
* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
Fix attaching to cloned processes. This fixes PR gdb/61.
* lin-lwp.c (struct lwp_info): Add new member `cloned'.
(is_cloned) Removed.
(lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
waitpid explicitly. Mark the LWP as cloned if waitpid fails and
retry with __WCLONE flag.
(lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
(detach_callback): Replace use of is_cloned with explicit check on
LWP id and process id.
(stop_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
[CHILD_WAIT] (child_wait): New function.
(lin_lwp_wait): Replace use of is_cloned with check if LWP is
marked as cloned. Mark newly detected LWPs as cloned if detected
by waitpid with __WCLONE flag.
(kill_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
* config/i386/nm-linux.h (struct target_waitstatus): Add forward
declaration.
(child_wait): Add prototype.
(CHILD_WAIT): Define.
2001-10-13 Andrew Cagney <ac131313@redhat.com>
S/390 31 & 64 bit target and GNU/Linux native support.
Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
* s390-nat.c, s390-tdep.c: New file.
* config/s390/nm-linux.h, config/s390/s390.mh: New file.
* config/s390/s390.mt, config/s390/s390x.mt: New file.
* config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
* config/s390/xm-linux.h: New file.
* NEWS: Update.
* MAINTAINERS: Update.
2001-10-13 Andrew Cagney <ac131313@redhat.com>
From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
* gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
CALL_DUMMY_BREAKPOINT_OFFSET_P.
* gdbarch.c: Regenerate.
2001-10-13 Mark Kettenis <kettenis@gnu.org>
* thread-db.c: Fix a few formatting mistakes.
2001-10-12 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
list pointer to beginning rather than one beyond beginning.
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
* symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
(make_symbol_completion_list): Likewise.
(make_symbol_overload_list): Likewise.
* buildsym.c (finish_block): Likewise.
* breakpoint.c (get_catch_sals): Likewise.
* mdebugread.c (mylookup_symbol): Likewise.
* objfiles.c (objfile_relocate): Likewise.
* printcmd.c (print_frame_args): Likewise.
* stack.c (print_block_frame_locals): Likewise.
(print_block_frame_labels): Likewise.
(print_frame_arg_vars): Likewise.
* symmisc.c (dump_symtab): Likewise.
* tracepoint.c (add_local_symbols): Likewise.
(scope_info): Likewise.
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* minsyms.c (msymbol_hash): Use better hash function.
(msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
* objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
binaries.
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* printcmd.c (print_frame_args): Move symbol iteration explicitly
inside the func != NULL block.
2001-10-12 Fernando Nasser <fnasser@redhat.com>
* MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
maintainer.
2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
* config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
This fixes errors in "long long" handling for 'finish' and 'return'
commands.
2001-10-12 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
library if it has already been loaded.
(safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
any error messages.
(safe_symbol_file_add): Ditto.
(solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
it to safe_symbol_file_add.
(core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
(child_solib_add): Ditto.
* win32-nat.c (handle_exception): Don't print "first chance"
exceptions.
(get_child_debug_event): Continue from exceptions if !handle_exception.
2001-10-11 Tom Tromey <tromey@redhat.com>
* symtab.c (lookup_symtab): Removed.
(lookup_symtab_1): Renamed to lookup_symtab.
2001-10-10 Christopher Faylor <cgf@redhat.com>
* win32-nat.c (get_child_debug_event): Close file handles created after
process creation and DLL load.
(child_create_inferior): Close unneeded process/thread handle after
thread creation.
2001-10-10 Jim Blandy <jimb@redhat.com>
* mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
2001-10-10 Keith Seitz <keiths@redhat.com>
* varobj.c (cplus_value_of_child): Deal with a failure
to dereference a pointer object.
2001-10-08 J. Brobecker <brobecker@gnat.com>
* hpux-thread.c: rewrite find_active_thread() and find_tcb()
to use ptid_t, instead of overloading the thread and the pid
into the same 32-bit value. Make associated necessary adaptations.
Also remove unused variable cached_active_thread.
2001-10-08 Nicholas Duffek <nsd@redhat.com>
* MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
entries.
2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
2001-10-04 Tom Tromey <tromey@redhat.com>
* main.c (enable_external_editor): Don't declare.
(captured_main): Don't set enable_external_editor.
2001-10-02 Kevin Buettner <kevinb@redhat.com>
* Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
to this list.
(solib-sunos.o): Add dependencies.
(solib-svr4.o): Revise dependencies.
* solib-svr4.c: Remove SunOS shared library support.
* solib-sunos.c: New file, created from solib-svr4.c, which still
contains SunOS shared library support, but no SVR4 support.
* config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
solib-legacy.o from this list. Add solib-sunos.o.
* config/i386/sun386.mt (TDEPFILES): Likewise.
* config/m68k/nbsd.mh (NATDEPFILES): Likewise.
* config/m68k/sun2os4.mt (TDEPFILES): Likewise.
* config/m68k/sun3os4.mt (TDEPFILES): Likewise.
* config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
* config/sparc/nbsd.mh (NATDEPFILES): Likewise.
* config/sparc/sun4os4.mt (TDEPFILES): Likewise.
2001-10-01 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2001-10-01 Elena Zannoni <ezannoni@redhat.com>
* xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
SET_NAMESTRING): Delete definitions.
Don't include language.h any more.
Don't include partial-stab.h any more.
(scan_xcoff_symtab): Don't jump through hoops to reuse code in
partial-stab.h, include the code directly, instead.
* Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2001-10-01 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (do_registers_info): Delete code dumping large
registers. Handled by val_print.
2001-09-30 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (gdbarch_alloc): Name the new architecture
``current_gdbarch'' so that it, and not the identically named
global is refered to by macros.
* gdbarch.c: Regenerate.
2001-09-29 Andrew Cagney <ac131313@redhat.com>
* cli/cli-decode.c (add_set_boolean_cmd): Define.
* cli/cli-decode.h (add_set_boolean_cmd): Declare.
* command.h (add_set_boolean_cmd): Ditto.
* remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
remotebreak"
2001-09-29 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (gdbarch_dump): Sort output.
* gdbarch.c: Regenerate.
2001-09-29 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
architecture to infer the wordsize. Previous architecture may not
be a PowerPC.
2001-09-27 J. Brobecker <brobecker@gnat.com>
* infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
than a TT_PROC_STOP request to kill the inferior and its child
processes. Otherwise, the inferior is not killed on HPUX 11.0.
Removed the code that detaches the child processes since we just
killed them.
2001-09-26 Andrew Cagney <ac131313@redhat.com>
* serial.c (serial_set_cmdlist, serial_show_cmdlist): New
variables.
(serial_set_cmd, serial_show_cmd): New functions.
(_initialize_serial): Add "set/show serial" command.
2001-09-26 Andrew Cagney <ac131313@redhat.com>
* CONTRIBUTE: Update.
2001-09-26 Kevin Buettner <kevinb@redhat.com>
* solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
argument ``gdbarch''.
* solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
(default_svr4_fetch_link_map_offsets): Rename to
legacy_fetch_link_map_offsets().
(svr4_fetch_link_map_offsets): New function.
(fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
(fetch_link_map_offsets_gdbarch_data): New static global.
(set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
Revise to invoke set_gdbarch_data().
(init_fetch_link_map_offsets): Change return type and add an
argument so that it may be used as a gdbarch_data initializer.
(_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
Use gdbarch data mechanism instead.
2001-09-25 Jiri Smid <smid@suse.cz>
* x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
(x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
by LINUX_SIGINFO_SIZE.
2001-09-24 Andrew Cagney <ac131313@redhat.com>
* maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
variables.
(maintenance_set_profile_cmd): New function.
(maintenance_show_cmd, maintenance_set_cmd): New functions.
(_initialize_maint_cmds): Add "maintenance set" and "maintenance
show" and, commented out, "maintenance set/show profile" commands.
2001-09-24 Andrew Cagney <ac131313@redhat.com>
* findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
convert the pointer into a CORE_ADDRs.
2001-09-24 Andrew Cagney <ac131313@redhat.com>
* doublest.h (store_floating, extract_floating): Add comment
indicating these functions are deprecated.
(extract_typed_floating, store_typed_floating): Declare.
* doublest.c: Include "gdbtypes.h".
(extract_typed_floating, store_typed_floating): Define.
* stabsread.c (define_symbol): Use store_typed_floating.
* valarith.c (value_binop): Ditto.
* values.c (unpack_long): Use extract_typed_floating.
(unpack_double): Ditto.
2001-09-24 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
from correct register.
2001-09-22 Mark Kettenis <kettenis@gnu.org>
* x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
2001-09-21 Jiri Smid <smid@suse.cz>
* config/i386/x86-64linux.mh: New file.
* config/i386/x86-64linux.mt: New file.
* config/i386/nm-x86_64.h: New file.
* x86-64-linux-tdep.c: New file.
* x86-64-linux-nat.c: New file.
* x86-64-tdep.c: New file.
* x86-64-tdep.h: New file.
* i386-tdep.h: New file.
* i387-nat.c: Include i386-tdep.h when multiarch.
* i387-tdep.c: Ditto.
* config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
and x86_64-linux-nat.c
* Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2001-09-21 Jiri Smid <smid@suse.cz>
* MAINTAINERS: Add myself to the write-after-approval list.
* i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
(i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
i386_insert_watchpoint, i386_remove_watchpoint): Add support for
8-byte wide watchpoints.
(i386_show_dr): Debug message format string change.
2001-09-21 Michael Snyder <msnyder@redhat.com>
* c-exp.y (typebase): Accept (signed long long) as a type expr.
2001-09-20 Michael Snyder <msnyder@redhat.com>
Changes by Daniel Berlin <dan@cgsoftware.com>, to support
better parsing of const and volatile type expressions.
* c-exp.y (const_and_volatile, const_or_volatile_noopt,
const_or_volatile): New non-terminals.
(ptype): Use new rule for const_or_volatile.
(typebase): Use new rule for const_or_volatile_noopt.
* parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
* parse.c (follow_types): Handle tp_const and tp_volatile on the
type stack: call make_cv_type to create new const/volatile type.
2001-09-20 Kevin Buettner <kevinb@redhat.com>
* solib-svr4.c (fetch_link_map_offsets): Add comment.
(fetch_link_map_offsets_init): New static global.
(set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
Revise implementation to use ``fetch_link_map_offsets_init''
instead of ``fetch_link_map_offsets''.
2001-09-20 Alan Modra <amodra@bigpond.net.au>
* coffread.c: Replace all occurrences of bfd_read with bfd_bread.
* dbxread.c: Likewise.
* dwarf2read.c: Likewise.
* dwarfread.c: Likewise.
* somread.c: Likewise.
* ultra3-nat.c: Likewise.
* xcoffread.c: Likewise.
2001-09-19 Andrew Cagney <ac131313@redhat.com>
* cris-tdep.c (cris_get_signed_offset): Change return type to an
explicitly signed char.
* config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
function signature to match recent tracepoint.c:encode_actions
changes.
* mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
2001-09-18 Andrew Cagney <ac131313@redhat.com>
* thread.c (do_captured_thread_select): Add uiout parameter.
(do_captured_list_thread_ids): Ditto.
* breakpoint.c (do_captured_breakpoint_query): Ditto.
* breakpoint.c (gdb_breakpoint_query): Update. Use
catch_exceptions.
* thread.c (gdb_list_thread_ids): Ditto.
(gdb_thread_select): Ditto.
(thread_command): Pass uiout to gdb_thread_select.
* gdb.h (gdb_breakpoint_query): Add parameter ui_out.
(gdb_thread_select, gdb_list_thread_ids): Ditto.
2001-09-13 Kevin Buettner <kevinb@redhat.com>
From Ilya Golubev <gin@mo.msk.ru>:
* solib.c (clear_solib): Call `remove_target_sections' to fix
stale pointers in `struct target_ops'.
* irix5-nat.c (clear_solib): Likewise.
* osfsolib.c (clear_solib): Likewise.
2001-09-13 Jim Blandy <jimb@redhat.com>
* monitor.c (monitor_load): Don't delete symtab users, or reset
inferior_ptid.
* monitor.c (monitor_load): Fix indentation.
2001-09-11 Jim Blandy <jimb@redhat.com>
* printcmd.c (print_scalar_formatted): Compare the length of the
value against the lengths of the target's floating-point types,
not the host's. Add support for `long double'.
* printcmd.c (print_scalar_formatted): Fix indentation.
2001-09-10 Jim Blandy <jimb@redhat.com>
* rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
programs running on the board can produce output.
2001-09-10 Jason Molenda (jmolenda@apple.com)
* NEWS: "ANS/ISO C" -> "ISO C".
* MAINTAINERS (write-after-approval): Update my entry.
2001-09-08 Mark Kettenis <kettenis@gnu.org>
* config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
* config/arm/xm-linux.h, config/ia64/xm-linux.h,
config/m68k/xm-linux.h, config/mips/xm-linux.h,
config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
redundant inclusion of <unistd.h>.
* gdbtypes.h (struct block): Add forward declaration.
2001-09-07 Andrew Cagney <ac131313@redhat.com>
* defs.h (enum return_reason): Renumber so that all values are
negative.
(RETURN_MASK): Negate reason.
(catch_exception_ftype): Declare.
(catch_exceptions): Declare.
* top.c (catcher): New function, based on catch_errors. Add in
parameter func_uiout and out parameters func_val, func_caught and
func_cleanup. Change type of func to catch_exceptions_ftype.
Save/restore uiout.
(struct catch_errors_args): Define.
(do_catch_errors): New function.
(catch_errors): Rewrite, use do_catch_errors and catcher.
(catch_exceptions): New function, use catcher.
2001-09-07 Jim Blandy <jimb@redhat.com>
Correctly parse register values provided by the monitor.
* rom68k-rom.c: #include "value.h".
(is_hex_digit, hex_digit_value, is_whitespace,
rom68k_supply_one_register): New static functions.
(rom68k_supply_register): Call rom68k_supply_one_register, instead
of monitor_supply_register; the latter was incorrectly parsing
the values.
* Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
2001-09-07 Mark Kettenis <kettenis@gnu.org>
* config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
to using setpgid if available now.
2001-09-06 Keith Seitz <keiths@redhat.com>
From Ian Roxborough <irox@redhat.com>
* configure.in: Use ITCL_LIB_FULL_PATH and
ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
for gdb.
* configure: Regenerated.
2001-09-06 Kevin Buettner <kevinb@redhat.com>
* dbxread.c (process_one_symbol): Don't use error result from
find_stab_function_addr().
* partial-stab.h (case 'F'): Likewise.
* partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
code match that used for case 'F'. This fixes the divergence
that was introduced by my 1999-09-14 changes to partial-stab.h.
2001-09-05 Elena Zannoni <ezannoni@redhat.com>
* gdbarch.sh: Move include of dis-asm.h so it is generated earlier
in gdbarch.h.
(TARGET_PRINT_INSN): Multiarch.
* gdbarch.h: Regenerate.
* gdbarch.c: Regenerate.
* arch-utils.c (legacy_print_insn): New function.
* arch-utils.h (legacy_print_insn): Export.
* cris-tdep.c (cris_delayed_get_disassembler): Use
TARGET_PRINT_INSN, instead of tm_print_insn.
* d10v-tdep.c (print_insn): Ditto.
* d30v-tdep.c (print_insn): Ditto.
* m32r-tdep.c (dump_insn): Ditto.
* v850-tdep.c (v850_scan_prologue): Ditto.
* mcore-tdep.c (mcore_dump_insn): Ditto.
* sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
2001-09-05 Jim Blandy <jimb@redhat.com>
* gdbtypes.h (struct type): Doc fix.
2001-09-04 Elena Zannoni <ezannoni@redhat.com>
From Daniel Jacobowitz <drow@mvista.com>
* dbxread.c (free_header_files): Make global.
(init_header_files): Likewise.
* stabsread.h (free_header_files): Add prototype.
(init_header_files): Likewise.
* mdebugread.c (mdebug_build_psymtabs): Initialize
properly before using the stabs debug reader.
2001-09-04 Elena Zannoni <ezannoni@redhat.com>
From Daniel Jacobowitz <drow@mvista.com>
* dbxread.c (dbx_symfile_read): Only reinitialize
the psymbol list if mainline or if both static
and global lists are empty.
* dwarf2read.c (dwarf2_build_psymtabs): Likewise.
* dwarfread.c (dwarf_build_psymtabs): Likewise.
* xcoffread.c (xcoff_initial_scan): Likewise.
* os9kread.c (os9k_symfile_read): Likewise.
2001-09-04 Elena Zannoni <ezannoni@redhat.com>
From Daniel Jacobowitz <drow@mvista.com>
* mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
a name specially.
2001-09-01 Mark Kettenis <kettenis@gnu.org>
Make GDB use libiberty regex implementation.
* gdb_regex.h: Normalize protection against multiple inclusion.
Include "xregex.h" instead of "gnu-regex.h".
* cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
* cli/cli-decode.c: Likewise.
* Makefile.in (REGEX): Remove.
(GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
(ADD_FILES, ADD_DEPS): Remove $(REGEX).
(POSSLIBS): Remove.
(TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
(irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
gdb_regex.h in list of dependencies.
(gnu-regex.o): Remove rule.
* gnu-regex.c, gnu-regex.h: Remove files.
2001-08-31 Jason Molenda (jmolenda@apple.com)
* c-valprint.c (c_val_print): Second call to check_typedef ()
is no longer necessary.
2001-08-31 Kevin Buettner <kevinb@redhat.com>
* ia64-tdep.c (examine_prologue): Don't let a branch unit nop
terminate the prologue scan.
2001-08-30 Jim Blandy <jimb@redhat.com>
* symfile.c (sections_overlap): New function.
(map_overlay_command): Call sections_overlap, instead of using
incorrect logic to recognize overlapping sections.
* symfile.c (load_command): Invalidate the overlay cache.
2001-08-30 Mark Kettenis <kettenis@gnu.org>
* config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
2001-08-29 Kevin Buettner <kevinb@redhat.com>
From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
* solib-svr4.c (enable_break): Check the inferior link map
before assuming the inferior PC is at the start of the dynamic
loader.
2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
* frame.h (struct frame_info): Fix documentation on fields
saved_regs, next and prev.
2001-08-23 Mark Kettenis <kettenis@gnu.org>
* event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
gratuitious whitespace changes.
[!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
* top.c: Remove redundant logic to define HAVE_SIGSETMASK.
(sigsetmask) Don't define macro.
(stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
async_stop_sig from event-top.c.
[!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
defined.
* configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
order. Add sigsetmask.
(AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
alphabetical order.
* config/xm-aix4.h, config/alpha/xm-alphalinux.h,
config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
(HAVE_SIGSETMASK): Remove.
* aclocal.m4, config.in, configure: Regenerated.
2001-08-26 Andrew Cagney <ac131313@redhat.com>
From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
* config/powerpc/nbsd.mh (XM_FILE): Delete.
2001-08-21 Andrew Cagney <ac131313@redhat.com>
* doublest.h (HOST_FLOAT_FORMAT): Delete macro.
(HOST_DOUBLE_FORMAT): Delete macro.
2001-08-24 Mark Kettenis <kettenis@gnu.org>
* config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
inclusion of <limits.h>.
2001-08-24 Andrew Cagney <ac131313@redhat.com>
* regcache.c (read_register_bytes): When REGISTER_NAME indicates
that a register should be ignored, supply a value for the register
from the raw registers[] buffer.
2001-08-24 Andrew Cagney <ac131313@redhat.com>
* go32-nat.c (go32_create_inferior): Use xfree instead of free.
* config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
i386bsd-nat.c.
2001-08-21 Andrew Cagney <ac131313@redhat.com>
* gdbtypes.h (builtin_type_ieee_single_big)
(builtin_type_ieee_single_little, builtin_type_ieee_double_big)
(builtin_type_ieee_double_little)
(builtin_type_ieee_double_littlebyte_bigword)
(builtin_type_i387_ext, builtin_type_m68881_ext)
(builtin_type_i960_ext, builtin_type_m88110_ext)
(builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
(builtin_type_arm_ext_littlebyte_bigword)
(builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
(builtin_type_ia64_quad_big)
(builtin_type_ia64_quad_little): Declare.
* gdbtypes.c (builtin_type_ieee_single_big)
(builtin_type_ieee_single_little, builtin_type_ieee_double_big)
(builtin_type_ieee_double_little)
(builtin_type_ieee_double_littlebyte_bigword)
(builtin_type_i387_ext, builtin_type_m68881_ext)
(builtin_type_i960_ext, builtin_type_m88110_ext)
(builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
(builtin_type_arm_ext_littlebyte_bigword)
(builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
(builtin_type_ia64_quad_big)
(builtin_type_ia64_quad_little): Define.
(_initialize_gdbtypes): Initialize builtin floatformat types.
2001-08-23 Mark Kettenis <kettenis@gnu.org>
* tracepoint.c (read_actions): Add FIXME for code depending on
STOP_SIGNAL.
2001-08-23 Martin M. Hunt <hunt@redhat.com>
* remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
to download loop.
(mips_load_srec): Ditto.
2001-08-22 Andrew Cagney <ac131313@redhat.com>
* gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
of builtin_type_float, builtin_type_double and
builtin_type_long_double.
(recursive_dump_type): Print the floatformat name.
* gdbtypes.h (struct type): Add type_specific field floatformat.
(TYPE_FLOATFORMAT): Define
2001-08-21 Keith Seitz <keiths@redhat.com>
* printcmd.c (print_insn): Use the given stream for
output.
2001-07-24 Andrew Cagney <ac131313@redhat.com>
* arm-tdep.c (convert_from_extended, convert_to_extended): Delete
assembler version of function.
(convert_from_extended, convert_to_extended): Rewrite. Use
floatformat_to_doublest, floatformat_from_doublest,
floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
(arm_push_arguments): Use extract_floating and store_floating to
perform floating point conversions.
(SWAP_TARGET_AND_HOST): Delete macro.
* arm-linux-tdep.c (arm_linux_push_arguments): Use
extract_floating and store_floating to perform floating point
conversions.
2001-08-20 Andrew Cagney <ac131313@redhat.com>
* gdbtypes.h (struct type): Clarify meaning of field ``length''.
2001-08-17 Keith Seitz <keiths@redhat.com>
* varobj.c (varobj_update): Change first parameter to
pointer to struct varobj*. This function can delete
varobjs, so we need to give callers the new varobj
when this happens.
(value_of_root): Update "var", too, if "var_handle"
changes.
* varobj.h (varobj_update): Likewise.
2001-08-17 Keith Seitz <keiths@redhat.com>
* Makefile.in (varobj_h): Define.
(mi-cmd-var.o): Depends on varobj_h.
(gdbtk-varobj.o): Change varobj.h to $(varobj_h).
2001-08-16 Keith Seitz <keiths@redhat.com>
* configure.in (GDBTK_SRC_DIR): We must have autoconf
give us the absolute path to the source directory.
* configure: Regenerated.
* Makefile.in (GDBTK_SRC_DIR): Add variable so that
autoconf can substitue it in for us.
(gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
really do need an absolute pathname.
2001-08-15 Keith Seitz <keiths@redhat.com>
* Makefile.in (GDBTK_VERSION): Set a version number.
(GDBTK_LIBRARY): New variable to point to location where
gdbtk will install its tcl library. Changed all refereneces
to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
(SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
(SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
(all-gdbtk): Remove.
(install-gdbtk): Remove.
(gdbtk.o): Pass srcdir to file when compiling.
2001-08-15 Ian Roxborough <irox@redhat.com>
* Makefile.in: Changed all references to the install directory
"gdbtcl" to read "insight1.0".
2001-08-15 Corinna Vinschen <vinschen@redhat.com>
* arch-utils.c (generic_skip_trampoline_code): New function.
* arch-utils.h (generic_skip_trampoline_code): Declare external.
* gdbarch.c: Regeberated from gdbarch.sh.
* gdbarch.h: Ditto.
* gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
* infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
2001-08-14 Daniel Jacobowitz <drow@mvista.com>
H.J. Lu (hjl@gnu.org)
* partial-stab.h: valu should be a CORE_ADDR.
2001-08-14 H.J. Lu (hjl@gnu.org)
* dbxread.c (SWAP_SYMBOL): Removed.
(INTERNALIZE_SYMBOL): Check sign extended vma.
2001-08-13 Christopher Faylor <cgf@cygnus.com>
* top.c (SIGSETJMP): Protect env argument with parentheses.
(SIGLONGJMP): Protect env argument with parentheses.
2001-08-11 Andrew Cagney <ac131313@redhat.com>
* config/mn10300/mn10300.mt (TM_FILE): Delete.
* configure.tgt: Add mn10300 to list of mulit-arch targets.
* config/mn10300/tm-mn10300.h: Delete file. Move contents ...
* mn10300-tdep.c: To here.
2001-08-11 Andrew Cagney <ac131313@redhat.com>
* config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
val a DOUBLEST. Use floatformat_to_doublest.
(REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
* config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
(REGISTER_CONVERT_TO_RAW): Ditto.
2001-08-11 Andrew Cagney <ac131313@redhat.com>
* config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
sp_regnum.
2001-08-11 Andrew Cagney <ac131313@redhat.com>
* doublest.c (convert_doublest_to_floatformat): Rename
floatformat_from_doublest. Make static.
(convert_floatformat_to_doublest): Rename floatformat_to_doublest.
Make static.
(floatformat_to_doublest): New function.
(floatformat_from_doublest): New function.
(host_float_format, host_double_format, host_long_double_format):
New static variables.
(store_floating, extract_floating): Always use
floatformat_to_doublest and floatformat_from_doublest.
* doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2001-08-11 Andrew Cagney <ac131313@redhat.com>
* config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2001-08-07 Andrew Cagney <ac131313@redhat.com>
* target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
* gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.h (legacy_virtual_frame_pointer): Declare.
* arch-utils.c: Include "gdb_assert.h".
(legacy_virtual_frame_pointer): Define.
* Makefile.in (arch-utils.o): Depends on gdb_assert.h.
* tracepoint.c (encode_actions): Make frame_reg an int. Make
frame_offset a LONGEST.
* ax-gdb.c (gen_frame_args_address): Ditto.
(gen_frame_locals_address): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize
virtual_frame_pointer.
(mn10300_virtual_frame_pointer): Make static. Update parameter
list to match function signature.
* config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
2001-08-10 Keith Seitz <keiths@redhat.com>
* gdb-events.sh: Add architecture_changed event.
* gdbarch.sh: Include gdb-event.h.
(gdbarch_update_p): Notify UIs when architecture changes.
* gdb-events.h: Regenerated.
* gdb-events.c: Regenerated.
* gdbarch.c: Regenerated.
2001-08-10 Michael Snyder <msnyder@redhat.com>
* regcache.c (legacy_write_register_gen): Don't 'optimize out'
a write_register to a pseudo-reg. Target_store_pseudo_register
needs to get called, because these regs may be computed and may
have side-effects.
2001-08-10 Keith Seitz <keiths@redhat.com>
* gdb-events.sh: Deal with event notifications with no
arguments.
2001-08-10 Orjan Friberg <orjanf@axis.com>
* remote.c (read_frame): Correct off-by-one error in condition.
2001-08-08 Don Howard <dhoward@redhat.com>
* stabsread.c (read_type): Add support for const and volatile
modifiers.
2001-08-02 Daniel Jacobowitz <drow@mvista.com>
* core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
2001-08-02 Keith Seitz <keiths@redhat.com>
* defs.h (SLASH_STRING): If not defined, set
to "/", regardless of _WIN32, __CYGWIN__, or
whatnot.
2001-08-02 Mark Kettenis <kettenis@gnu.org>
* cli/cli-decode.h: Include "gdb_regex.h" instead of
"gnu-regex.h".
* NEWS: Update.
2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
* config/i386/xm-go32.h: Include xm-i386.h.
(HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
The following changes avoid polluting global namespace with the
`enable' and `disable' identifiers, because some platforms define
in their system headers symbols with global scope that go by those
names.
* breakpoint.h (enum enable_state): Rename from `enum enable'.
Also rename all the enum members to have the "bp_" prefix.
(struct breakpoint): Rename the `enable' member to `enable_state'.
(enum bpdisp): Rename all members to have the "disp_" prefix.
* breakpoint.c: All users of `enum enable' and `enum bpdisp'
changed.
(args_for_catchpoint_enable): Rename the `enable' member to
`enable_p'. All users changed.
* tracepoint.h (enum enable): Remove.
(struct tracepoint): The member `enabled' is now `int enabled_p'.
* tracepoint.c: All users of the `enabled' member changed.
* printcmd.c (struct display): The `status' member is now an int.
* memattr.h (struct mem_region): Rename the `status' member to
`enabled_p'.
(enum enable): Remove.
* memattr.c: Change all users of the `status' member of struct
mem_region to use `enabled_p' instead.
* infcmd.c (run_stack_dummy): Use disp_del instead of del.
* go32-nat.c: Remove the kludgey work-around for conflicts between
<dos.h> and "breakpoint.h".
2001-08-02 Corinna Vinschen <vinschen@redhat.com>
* MAINTAINERS: Add myself to the write-after-approval list.
* ser-tcp.c (tcp_open): Use `localhost' as default host if no
hostname is given.
2001-08-01 Andrew Cagney <ac131313@redhat.com>
* doublest.h (store_floating, floatformat_to_doublest): Make IN
paramter a const void pointer.
(floatformat_from_doublest): Make IN const, Make OUT a void
pointer.
* doublest.c (floatformat_to_doublest): Update.
(floatformat_from_doublest): Update.
(extract_floating): Update.
2001-07-31 Andrew Cagney <ac131313@redhat.com>
* defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
(HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
(HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
(floatformat_to_doublest, floatformat_from_doublest)
(floatformat_is_negative, floatformat_is_nan)
(floatformat_mantissa, store_floating)
(extract_floating): Move declaration from here.
* doublest.h: To here. New file.
* utils.c (get_field, floatformat_to_doublest, put_field)
(ldfrexp, floatformat_from_doublest, floatformat_is_negative)
(floatformat_is_nan, floatformat_mantissa)
(FLOATFORMAT_CHAR_BIT): Move from here.
* doublest.c: To here. New file.
* findvar.c (store_floating, extract_floating): Move from here.
* doublest.c: To here.
* Makefile.in (SFILES): Add doublest.c.
(COMMON_OBS): Add doublest.o.
(doublest.o): Specify dependencies.
(doublest_h): Define.
* config/m88k/tm-m88k.h: Include "doublest.h".
* config/i960/tm-i960.h: Ditto.
* config/i386/tm-symmetry.h: Ditto.
* rs6000-tdep.c, valarith.c: Ditto.
* valprint.c, stabsread.c, sh-tdep.c: Ditto.
* ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
* values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
* alpha-tdep.c, ax.h, expression.h: Ditto.
* sh-tdep.c, parse.c, top.c, value.h: Ditto.
* Makefile.in (arm-tdep.o): Add $(doublest_h).
(i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
(rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
(values.o, valprint.o, arm-linux-tdep.o): Ditto.
(alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
(parser_defs_h): Ditto.
(expression_h): Add $(doublest_h) and $(symtab_h).
2001-08-01 Andrew Cagney <ac131313@redhat.com>
* Makefile.in: Sort header definitions.
(parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
$(annotate_h). Replace target.h with $(target_h). Replace
gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
2001-07-31 Mark Kettenis <kettenis@gnu.org>
* config/i386/xm-i386.h: New file.
* config/i386/xm-fbsd.h: Removed.
* config/i386/xm-linux.h: Removed.
* config/i386/fbsd.mh: Reorganize a bit.
(XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
* config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
xm-linux.h.
2001-07-30 Jim Blandy <jimb@redhat.com>
* dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
2001-07-27 Daniel Jacobowitz <drow@mvista.com>
* configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
Check for SETPGRP_VOID separately if cross-compiling and ISO C
headers are available.
2001-07-30 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
i386_dwarf_reg_to_regnum.
* i386-tdep.c (i386_register_convert_to_virtual): Replace
assertion with a warning if we're asked to convert towards a
non-floating-point type. Zero out the the buffer where the data
is supposed to be stored in that case.
2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
* config/djgpp/djconfig.sh: Unset CDPATH.
* go32-nat.c (get_cr3): Temporary disable support for page tables
in UMBs, as it is incomplete.
Support for stepping through longjmp in DJGPP programs:
* config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
(GET_LONGJMP_TARGET): Define to call get_longjmp_target.
(get_longjmp_target): Add prototype.
2001-07-28 Andrew Cagney <ac131313@redhat.com>
Fix some PID/TPID fallout for HP/UX.
From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
* infttrace.c (ptrace_wait): Match external declaration,
and match target_post_wait declaration.
2001-07-28 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Add Orjan Friberg as cris target maintainer.
(cris): Set --enable-gdb-build-warnings flag to -w.
2001-07-28 Andrew Cagney <ac131313@redhat.com>
From 2001-07-23 Andreas Schwab <schwab@suse.de>:
* config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
(TARGET_LONG_DOUBLE_BIT): Define.
(REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
(MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
(REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
floating point registers.
(REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
(REGISTER_CONVERT_TO_RAW): Remove.
* config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
2001-07-26 Andrew Cagney <ac131313@redhat.com>
* thread.c, breakpoint.c: Include "gdb.h".
* Makefile.in (gdb_h): Define.
(HFILES_NO_SRCDIR): Add gdb.h.
(mi-cmd-break.o, mi-main.o, thread.o)
(breakpoint.o): Add dependency on $(gdb_h).
* defs.h (enum gdb_rc, gdb_breakpoint_query)
(gdb_breakpoint, gdb_thread_select)
(gdb_list_thread_ids): Move declaration from here ...
* gdb.h: To here. New file.
2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
(SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
(SFILES): Likewise.
(tui-out.o): Define dependencies.
(tui-hooks.o): Likewise.
2001-07-28 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Update e-mail address of active @cygnus.com
maintainers to @redhat.com.
2001-07-28 Andrew Cagney <ac131313@redhat.com>
* README (Known bugs): Delete section.
(Kernel debugging): Delete section.
(Languages other than C): Delete section.
(Host/target specific installation notes) New section.
2001-07-28 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
(i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
prototypes.
* config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
i386_dwarf_reg_to_regnum.
* i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
New functions.
* i386-tdep.c: Include "gdb_assert.h"
(i386_register_convert_to_virtual): Fix such that it can handle
conversion to any floating-point type. Assert that we are dealing
with a floating-point first.
(i386_register_convert_to_raw): Assert that TYPE is a
floating-point type with length 12.
2001-07-27 John R. Moore <jmoore@redhat.com>
* configure.in: Added dependency of gdb on tcl/tk libraries.
* Makefile.in: Likewise.
* configure: Regenerated with the above using autoconf.
2001-07-26 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
NUM_REGS.
(SH_DEFAULT_NUM_REGS): Define.
2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
* go32-nat.c (read_memory_region): Make sure the segment limit was
indeed set, to work around a Windows 2000 bug.
2001-07-25 Daniel Jacobowitz <drow@mvista.com>
* infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
* infttrace.c (child_xfer_memory): Likewise.
* symm-nat.c (child_xfer_memory): Likewise.
* gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
(write_inferior_memory): Likewise.
* gdbserver/low-linux.c (read_inferior_memory): Likewise.
(write_inferior_memory): Likewise.
* gdbserver/low-lynx.c (read_inferior_memory): Likewise.
(write_inferior_memory): Likewise.
* gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
(write_inferior_memory): Likewise.
* gdbserver/low-sparc.c (read_inferior_memory): Likewise.
(write_inferior_memory): Likewise.
* gdbserver/low-sun3.c (read_inferior_memory): Likewise.
(write_inferior_memory): Likewise.
2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
* README: Mention how to make gdb.pdf.
* NEWS: Update.
2001-07-24 Stephen P. Smith <ischis2@home.com>
* MAINTAINERS (Stephen P. Smith): Added to write after approval
list.
2001-07-23 Andrew Cagney <ac131313@redhat.com>
* mips-tdep.c (mips_push_arguments): Add comment explaining
problem with LE o32 GCC.
2001-07-23 Elena Zannoni <ezannoni@redhat.com>
* config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
doesn't understand them.
2001-07-23 Elena Zannoni <ezannoni@redhat.com>
* memattr.c (mem_info_command): Reformat output to look more like
'info break' output.
(_initialize_mem): Improve help.
2001-07-23 Mark Kettenis <kettenis@gnu.org>
* configure.in (AC_CHECK_FUNCS): Add setpggrp.
(AC_FUNC_SETPGRP): Add.
* aclocal.m4, configure, config.in: Regenerated.
* inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
SETPGRP_ARGS. Always use setpgid if it is available, fall back on
setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
distinguish between the two setpgrp flavours.
* config/xm-sysv4.h, config/arm/xm-linux.h,
config/i386/xm-i386aix.h, config/i386/xm-sco.h,
config/i386/xm-linux.h, config/i386/xm-ptx.h,
config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
* config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
* go32-nat.c (read_memory_region): Set the granularity bit of the
allocated segment according to its size, and adjust the limit to
be page-aligned if the segment is page-granular.
* (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
(display_page_table, go32_pte, go32_pte_for_address): New functions.
(_initialize_go32_nat): Initialize and document them.
2001-07-22 Mark Kettenis <kettenis@gnu.org>
* i386gnu-nat.c: Include "i387-nat.h".
(struct env387): Removed.
(reg_offset): Fix comment.
(fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
use i387_supply_fsave.
(gnu_fetch_registers): Remove spurious whitespace.
(convert_to_env387): Remove.
(store_fpregs): Add argument regno. Use i387_fill_fsave instead
of convert_to_env387.
(gnu_store_registers): Remove spurious whitespace. Pass REGNO to
store_fpregs.
* config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
* config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
(NATDEPFILES): Add i387-nat.o.
2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
(m68hc11-tdep.o): Define dependencies.
2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* utils.c (init_page_info): Use tui_get_command_dimension.
* printcmd.c (disassemble_command): Simplify tui specific code,
use tui_is_window_visible, tui_show_assembly.
2001-07-21 Mark Kettenis <kettenis@gnu.org>
* i386bsd-nat.c: Do not include <sys/sysctl.h>.
(_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
code to ...
* i386fbsd-nat.c: ... here. New file.
* config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
* config/i386/nm-fbsd.h (CHILD_RESUME): Define.
* Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
(i386fbsd-nat.o): Add dependencies.
2001-07-19 Daniel Jacobowitz <drow@mvista.com>
* signals.c: New file.
* Makefile.in: Add signals.o.
* target.c (struct signals, target_signal_to_name)
(target_signal_from_name, target_signal_from_host)
(do_target_signal_to_host, target_signal_to_host_p)
(target_signal_to_host, target_signal_from_command): Move to
signals.c.
(initialize_targets): Move check of struct signals to...
* signals.c (_initialize_signals): Here.
2001-07-19 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
2001-07-19 Andrew Cagney <ac131313@redhat.com>
From Stephen Smith:
* configure.tgt (i*86-*-pe*): New target.
2001-07-19 Andrew Cagney <ac131313@redhat.com>
From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
* infttrace.c (child_thread_alive): Fix gdb_tid typo.
* somsolib.c (no_shared_libraries): Provide stub.
* xcoffsolib.c (no_shared_libraries): Provide stub.
2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* Makefile.in (COMMON_OBS): Remove tui-file.o.
(SUBDIR_TUI_OBS): Add it here.
(SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
(main.o): Remove dependency with tui-file.h.
2001-07-17 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (tui-file.o): Update dependencies.
2001-07-17 Elena Zannoni <ezannoni@redhat.com>
* top.c (catch_errors): Convert PTR to void * in parameters list.
(quit_cover): Ditto.
2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* source.c (find_source_lines): Remove tui test, must be replaced
by appropriate warning hook.
(print_source_lines): Remove tui hacks, must be replaced by cli.
(forward_search_command): Remove tui hacks, can be replaced by
appropriate calls to identify_source_line when tui scrolls.
(reverse_search_command): Likewise.
2001-07-16 Nick Duffek <nsd@redhat.com>
* remote.c (init_remote_ops, init_remote_cisco_ops,
init_remote_async_ops): Set to_pid_to_str and
to_extra_thread_info correctly and in the same order as declared
in target.h.
2001-07-16 Andrew Cagney <ac131313@redhat.com>
* remote.c: Revert below. Included more than intended.
2001-07-16 Nick Duffek <nsd@redhat.com>
* remote.c (init_remote_ops, init_remote_cisco_ops,
init_remote_async_ops): Set to_pid_to_str and
to_extra_thread_info correctly and in the same order as declared
in target.h.
2001-07-16 Nick Duffek <nsd@redhat.com>
* findvar.c (read_var_value): Apply value_as_pointer() to
addresses retrieved from the target for LOC_BASEREG and
LOC_BASEREG_ARG variables.
2001-07-16 Orjan Friberg <orjanf@axis.com>
* NEWS: New target CRIS.
2001-07-16 Elena Zannoni <ezannoni@redhat.com>
* top.c (show_commands): Remove extern decl of history_get, it's
already in readline/history.h.
2001-07-16 Elena Zannoni <ezannoni@redhat.com>
* top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
execute_user_command, do_setshow_command, get_prompt, init_proc,
serial_log_command): Remove extern declarations. Include
cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
* gdbcmd.h (execute_user_command): Remove declaration, it's already
in cli/cli-script.h.
* command.h (do_setshow_command): Remove declaration, it's already
in cli/cli-setshow.h.
* infrun.c: Include "cli/cli-script.h" for execute_user_command.
* Makefile.in (infrun.o): Update dependencies.
(top.o): Ditto.
* cli/cli-setshow.h: Add comment for do_setshow_command.
2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
* cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
call to chdir on this symbol rather than on __DJGPP__.
(CANT_FORK) [__MSDOS__]: Move from here...
* defs.h (CANT_FORK) [__MSDOS__]: ...to here.
(GLOBAL_CURDIR) [__MSDOS__]: Define.
2001-07-16 Orjan Friberg <orjanf@axis.com>
* configure.tgt: Recognise the CRIS architecture.
* config/cris/cris.mt: New file for CRIS target.
* cris-tdep.c: New file for CRIS target.
2001-07-15 Elena Zannoni <ezannoni@redhat.com>
* top.c (quit_cover, float_handler): Move definition up before use.
(gdb_init): Move to end of file, to avoid calls to not yet defined
functions.
Delete prototypes.
2001-07-14 Andrew Cagney <ac131313@redhat.com>
* serial.h (SERIAL_ASYNC): Delete.
(DEPRECATED_SERIAL_FD): Delete.
(SERIAL_DEBUG): Delete.
(SERIAL_DEBUG_P): Delete.
(SERIAL_DRAIN_OUTPUT): Delete.
(SERIAL_FLUSH_OUTPUT): Delete.
(SERIAL_FLUSH_INPUT): Delete.
(SERIAL_SEND_BREAK): Delete.
(SERIAL_RAW): Delete.
(SERIAL_GET_TTY_STATE): Delete.
(SERIAL_SET_TTY_STATE): Delete.
(SERIAL_PRINT_TTY_STATE): Delete.
(SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
(SERIAL_SETBAUDRATE): Delete.
(SERIAL_SETSTOPBITS): Delete.
(SERIAL_CAN_ASYNC_P): Delete.
(SERIAL_IS_ASYNC_P): Delete.
(SERIAL_UN_FDOPEN): Delete.
(SERIAL_READCHAR): Delete.
(SERIAL_CLOSE): Delete.
(SERIAL_FDOPEN): Delete.
(SERIAL_OPEN): Delete.
* ser-unix.c: Update.
* sparclet-rom.c: Update.
* remote-bug.c: Update.
* dsrec.c: Update.
* xmodem.c: Update.
* nindy-share/ttyflush.c: Update.
* nindy-share/Onindy.c: Update.
* utils.c: Update.
* serial.c: Update.
* remote-nindy.c: Update.
* inflow.c: Update.
* sparcl-tdep.c: Update.
* sh3-rom.c: Update.
* remote.c: Update.
* remote-utils.c: Update.
* remote-st.c: Update.
* remote-sds.c: Update.
* remote-rdp.c: Update.
* remote-os9k.c: Update.
* remote-nrom.c: Update.
* remote-mips.c: Update.
* remote-es.c: Update.
* remote-e7000.c: Update.
* remote-array.c: Update.
* ocd.c: Update.
* nindy-share/nindy.c: Update.
* monitor.c: Update.
2001-07-14 Andrew Cagney <ac131313@redhat.com>
* mn10200-tdep.c: Replace value_ptr with ``struct value *''.
* mcore-tdep.c: Ditto.
* sparc-tdep.c: Ditto.
* sh-tdep.c: Ditto.
* rs6000-tdep.c: Ditto.
* ppc-linux-tdep.c: Ditto.
* m68hc11-tdep.c: Ditto.
* ia64-tdep.c: Ditto.
* i386-tdep.c: Ditto.
* arm-linux-tdep.c: Ditto.
* hppa-tdep.c: Ditto.
* h8500-tdep.c: Ditto.
* fr30-tdep.c: Ditto.
* arm-tdep.c: Ditto.
* alpha-tdep.c: Ditto.
* d30v-tdep.c: Ditto.
* d10v-tdep.c: Ditto.
* m32r-tdep.c: Ditto.
* mips-tdep.c: Ditto.
* v850-tdep.c: Ditto.
2001-07-15 Elena Zannoni <ezannoni@redhat.com>
* top.c (readline_line_completion_function, noop_completer): Move
from here...
* completer.c (readline_line_completion_function, noop_completer):
...to here.
* gdbcmd.h (readline_line_completion_function, noop_completer):
Move declarations from here...
* completer.h (readline_line_completion_function, noop_completer):
...to here.
* corefile.c: Include completer.h.
* source.c: Ditto.
* symfile.c: Ditto.
* Makefile.in: Update dependencies.
2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
* go32-nat.c (go32_create_inferior): Support command lines longer
than 126 characters.
2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* NEWS: New target 68HC11/68HC12.
2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* utils.c (query): Remove tui hacks; tui must use the query_hook.
* top.c (command_loop): Remove tui insert_mode hacks; don't call
tuiCleanUp because this must be made with atexit by tui.
* symfile.c (symbol_file_command): Remove call to TUIDO
* stack.c (show_and_print_stack_frame_stub): Remove tui check;
not necessary when using the selected frame hooks.
(print_stack_frame_stub): Likewise.
(print_frame_info_base): Likewise.
(print_frame_info): Likewise.
(up_silently_command): Likewise.
(down_silently_command): Likewise.
(show_stack_frame): Likewise for TUIDO.
(select_frame): Likewise.
(select_and_print_frame): Likewise.
(stack_publish_stopped_with_no_frame): Remove.
(select_and_maybe_print_frame): Remove.
* main.c (captured_main): Remove tui_fileopen and tuiInit; tui
must use the initialize ui hook.
* infrun.c (normal_stop): Remove call to TUIDO; tui must use the
selected frame hooks.
* event-top.c (command_handler): Remove tui insert_mode hack.
* defs.h: Remove TUIDO; Only include tui.h.
* breakpoint.c (mention): Remove calls to TUIDO.
(delete_breakpoint): Remove tui hacks; tui must install
the breakpoint hooks.
2001-07-14 Mark Kettenis <kettenis@gnu.org>
* config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
* config/i386/nm-linux.h: ...to here. Change comments about user
area/struct a bit.
* config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
* Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
(i386bsd-tdep.o, i386bsd-nat.o): New targets.
2001-07-13 Elena Zannoni <ezannoni@redhat.com>
* remote-e7000.c (fetch_regs_from_dump): If register set is null,
generate an internal error.
(e7000_fetch_registers): Initialize variable 'wanted'.
(e7000_wait): Initialize variable 'wanted_nopc'.
(e7000_store_register): Fix sprintf compiler warnings.
(sub2_from_pc): Ditto.
(e7000_open): Close the descriptor, not the name.
(e7000_load): Fix compiler warnings.
(sub2_from_pc): Ditto.
* Makefile.in (remote-e7000.o): Can now compile with -Werror.
2001-07-13 Mark Kettenis <kettenis@gnu.org>
* i386bsd-nat.c: Include <signal.h>, <stddef.h> and
<sys/sysctl.h>.
(store_inferior_registers): Wrap long line.
(i386bsd_dr_get_status): Fix typo in comment.
(_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
(i386bsd_in_sigtramp): New prototype.
(SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
(i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
(external) variables.
(SIGCONTEXT_PC_OFFSET): Removed.
(FRAME_SAVED_PC): New define.
(i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
(TDEPFILES): Add i386bsd-tdep.o.
2001-07-12 Daniel Jacobowitz <drow@mvista.com>
* mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
definition.
2001-07-13 Mark Kettenis <kettenis@gnu.org>
* lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
are no registered LWPs yet.
2001-07-12 Daniel Jacobowitz <drow@mvista.com>
* config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
function.
(CANNOT_STORE_REGISTER): Likewise.
2001-07-12 Keith Seitz <keiths@redhat.com>
* remote-rdp.c: Include "serial.h"
2001-07-12 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/remote-utils.c (remote_open): Set VMIN to 1
in HAVE_TERMIO/HAVE_TERMIOS cases.
2001-07-12 Mark Kettenis <kettenis@gnu.org>
* lin-lwp.c (stop_wait_callback): Add support for flushing
signals. Use that in favour of the old code to get rid of
superfluous SIGINTs.
(lin_lwp_wait): Use the new support in stop_wait_callback to
flush all but one SIGINT.
* i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
to comment.
(i386_store_return_value): Improve comments about storing
floating-point return values.
* config/arm/xm-linux.h, config/i386/xm-linux.h,
config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
Removed. Taken care of by autoconf and terminal.h.
2001-07-12 Daniel Jacobowitz <drow@mvista.com>
* mips-tdep.c (mips_type_needs_double_align): New function.
(mips_push_arguments): Align o32 structs to even argument
registers if necessary.
2001-07-11 Daniel Jacobowitz <drow@mvista.com>
* config/djgpp/fnchange.lst: Add entries for
mips-linux-nat.c and mips-linux-tdep.c.
2001-07-12 Mark Kettenis <kettenis@gnu.org>
* config/powerpc/xm-linux.h: Fix corrupted file.
* configure.in: Add check for sigsetjmp.
* config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
* config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
* configure, config.in: Regenerated.
2001-07-11 Elena Zannoni <ezannoni@redhat.com>
* config/sh/tm-sh.h (struct gdbarch_tdep): Add
FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
PR_REGNUM fields.
* sh-tdep.c (sh_skip_prologue_hard_way): Rename from
skip_prologue_hard_way().
(skip_prologue_hard_way): Make it a function pointer.
(sh_print_register): Use function pointer do_pseudo_register,
instead of sh_do_pseudo_register.
(sh_do_registers_info): Ditto.
(sh_gdbarch_init): Initialize do_pseudo_register.
(IS_MOV_TO_R14): Rename from IS_MOV_R14.
(skip_prologue_hard_way): Update.
(sh_gdbarch_init): Move setting of frame_chain,
get_saved_register, init_extra_frame_info, push_arguments,
extract_return_value, pop_frame, store_struct_return,
extract_struct_value_address, use_struct_convention,
init_extra_frame_info to before target specific settings.
(sh_gdbarch_init): Initialize new tdep fields
FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
PR_REGNUM.
(sh_push_arguments): Use new gdbarch_tdep fields
{ARG0,ARGLAST}_REGNUM.
(sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
sh_init_extra_frame_info, sh_push_return_address,
sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
gdbarch_tdep->PR_REGNUM.
(dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
2001-07-11 Daniel Jacobowitz <drow@mvista.com>
* config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
from it. Move definitions of REALTIME_LO and REALTIME_HI above
include.
2001-07-11 Daniel Jacobowitz <drow@mvista.com>
* MAINTAINERS: List myself for MIPS/Linux
port.
2001-07-11 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/remote-utils.c (remote_open): Only
check for F_SETOWN if we had F_SETFL and FASYNC.
2001-07-11 Daniel Jacobowitz <drow@mvista.com>
From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
* config/m68k/linux.mh: Remove core-regset.o.
* m68klinux-nat.c: Fix comment.
(supply_gregset): Change argument to elf_gregset_t *.
(supply_fpregset): Change argument to elf_fpregset_t *.
(fetch_core_registers): New function.
(linux_elf_core_fns): Define.
(_initialize_m68k_linux_nat): New function.
2001-07-11 Andrew Cagney <ac131313@redhat.com>
* configure.tgt: Mark d10v as pure multi-arch.
* config/d10v/tm-d10v.h: Delete file.
* config/d10v/d10v.mt (TM_FILE): Delete.
2001-07-10 Andrew Cagney <ac131313@redhat.com>
* serial.h (typedef serial_t): Delete. Replace all references to
serial_t with `struct serial *'.
* serial.c: Update.
* nindy-share/ttyflush.c: Update.
* nindy-share/ttyflush.c: Update.
* nindy-share/Onindy.c: Update.
* nindy-share/nindy.c: Update.
* remote-rdp.c: Update.
* remote-sds.c: Update.
* remote-st.c: Update.
* remote-nindy.c: Update.
* remote-mips.c: Update.
* remote-e7000.c: Update.
* remote-os9k.c: Update.
* remote-nrom.c: Update.
* remote-es.c: Update.
* remote-array.c: Update.
* ocd.c: Update.
* mon960-rom.c: Update.
* dsrec.c: Update.
* inflow.c: Update.
* ser-e7kpc.c: Update.
* sparclet-rom.c: Update.
* srec.h: Update.
* ser-tcp.c: Update.
* ser-go32.c: Update.
* sparcl-tdep.c: Update.
* w89k-rom.c: Update.
* utils.c: Update.
* sh3-rom.c: Update.
* remote.c: Update.
* ser-pipe.c: Update.
* ser-unix.c: Update.
* ser-unix.h: Update.
* xmodem.c: Update.
* xmodem.h: Update.
2001-07-11 J.T. Conklin <jtc@redback.com>
From Greg McGary <greg@mcgary.org>:
* gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
of SIGIO.
(input_interrupt): Don't block on read, in case we got redundant
SIGIO. Don't gripe about redundant SIGIO.
* gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
handler while waiting.
* gdbserver/low-linux.c (mywait): Likewise.
* gdbserver/low-nbsd.c (mywait): Likewise.
* gdbserver/low-sparc.c (mywait): Likewise.
2001-07-11 Keith Seitz <keiths@redhat.com>
* infrun.c (print_stop_reason): Add missing uiout field
"reason" for SIGNAL_RECEIVED case.
2001-07-11 Mark Kettenis <kettenis@gnu.org>
* config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
Remove unused macro's.
* config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
used.
2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
* go32-nat.c (info_dos_cmdlist): New variable.
(go32_info_dos_command): New function.
(_initialize_go32_nat): Convert all DOS-specific commands into
subcommands of "info dos". Suggested by Andrew Cagney
<ac131313@redhat.com>.
2001-07-11 Mark Kettenis <kettenis@gnu.org>
* config/nm-linux.h: Fix comments.
* thread-db.c (enable_thread_event_reporting): Correct warning
message about getting thread death breakpoint.
Reported by John S Kallal <jskallal@home.com>.
* i386-tdep.c (i386_extract_return_value): "Fix" comment.
(i386_store_return_value): Frob FPU status and tag word to make
sure the return value is the only value on the FPU stack.
* config/tm-linux.h: Do not include <signal.h>. Instead provide
reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
already defined.
* config/nm-linux.h: Include <signal.h>.
[__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
(__SIGRTMAX + 1) respectively.
2001-07-10 Andrew Cagney <ac131313@redhat.com>
* mcore-rom.c: Include "serial.h".
* Makefile.in (mcore-rom.o): Depends on "serial.h".
2001-07-10 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (remote-bug.o): Depends on serial.h.
* remote-bug.c: Include "serial.h".
* MAINTAINERS: Mark m88k target as buildable.
* TODO: Update.
2001-07-10 Jim Blandy <jimb@redhat.com>
Clean up the D10V port so that GDB and the target program no
longer disagree on how big pointers are.
* findvar.c (value_from_register): Remove special case code for D10V.
* printcmd.c (print_frame_args): Same.
* valops.c (value_at, value_fetch_lazy): Same.
* values.c (unpack_long): Same.
* gdbarch.sh: Changes to effect the following:
* gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
gdbarch_d10v_convert_daddr_to_raw_ftype,
gdbarch_d10v_convert_daddr_to_raw,
set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
gdbarch_d10v_convert_iaddr_to_raw_ftype,
gdbarch_d10v_convert_iaddr_to_raw,
set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
* gdbarch.c: Delete the corresponding definitions.
(struct gdbarch): Delete members d10v_make_daddr,
d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
(startup_gdbarch): Remove initializers for the above.
(verify_gdbarch, gdbarch_dump): Don't verify or dump them any
more.
* d10v-tdep.c (d10v_register_virtual_type): Rather that
claiming the stack pointer and PC are 32 bits long (which they
aren't), say that the stack pointer is an int16_t, and the
program counter is a function pointer. This allows the rest
of GDB to make the appropriate conversions between the code
pointer format and real addresses.
(d10v_register_convertible, d10v_register_convert_to_virtual,
d10v_register_convert_to_raw): Delete function; no registers
are convertible now, so we use
generic_register_convertible_not instead.
(d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
methods.
(d10v_push_arguments, d10v_extract_return_value): Remove special
cases for code and data pointers.
(d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
the target agree on how large pointers are. Say that addresses
are 32 bits long. Register the address_to_pointer and
pointer_to_address conversion functions. Since no registers are
convertible now, register generic_register_convertible_not as the
gdbarch_register_convertible method instead of
d10v_register_convertible. Remove registrations for
d10v_register_convert_to_virtual,
d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
gdbarch_d10v_convert_iaddr_to_raw.
* printcmd.c (print_scalar_formatted): If we are printing an
address, remember that TARGET_ADDR_BIT is not always equal to
TARGET_PTR_BIT.
* valops.c (value_cast): When casting a pointer to an integer,
don't convert it to an address.
2001-07-10 Andrew Cagney <ac131313@redhat.com>
* remote-utils.h (struct serial): Declare as opaque. Remove
include of "serial.h".
* Makefile.in (remote_utils_h): Update.
* monitor.h (struct serial): Declare as opaque. Remove include of
"serial.h".
(struct monitor_ops): Replace serial_t with `struct serial *'.
* monitor.c (monitor_desc): Ditto.
2001-07-10 Daniel Jacobowitz <drow@mvista.com>
* mips-linux-tdep.c: New file.
* mips-linux-nat.c: New file.
* config/mips/linux.mh: New file.
* config/mips/linux.mt: New file.
* config/mips/xm-linux.h: New file.
* config/mips/nm-linux.h: New file.
* config/mips/tm-linux.h: New file.
* configure.host: Recognize mips*-*-linux*.
* configure.tgt: Likewise.
* NEWS: Mention mips*-*-linux* port.
2001-07-09 Andrew Cagney <ac131313@redhat.com>
* serial.h (struct serial): Rename `struct _serial_t'.
* serial.c (XMALLOC): Define.
(serial_open): Update. Use XMALLOC.
(serial_fdopen): Ditto.
2001-07-07 Andrew Cagney <ac131313@redhat.com>
* gdbtypes.h (builtin_type_void_data_ptr): Rename
builtin_type_ptr.
* gdbtypes.c (builtin_type_void_data_ptr): Update.
(build_gdbtypes): Update.
(_initialize_gdbtypes): Update.
* values.c (value_as_pointer): Update.
* utils.c (host_pointer_to_address): Update.
(address_to_host_pointer): Update.
2001-07-08 Andrew Cagney <ac131313@redhat.com>
* remote-udi.c (udi_wait): Make type, instead of name, of first
parameter a ptid_t.
2001-07-07 Andrew Cagney <ac131313@redhat.com>
* ser-mac.c: Make obsolete.
* Makefile.in (ser-mac.o): Ditto.