Joel Brobecker [Tue, 9 Jul 2002 22:59:36 +0000 (22:59 +0000)]
Define HAVE_SYS_PROC_H if sys/proc.h exists
* configure.in: Add check for sys/proc.h
* config.in: Regenerate.
* configure: Regenerate.
Grace Sainsbury [Tue, 9 Jul 2002 19:48:40 +0000 (19:48 +0000)]
2002-07-09 Grace Sainsbury <graces@redhat.com>
* config/m68k/tm-m68k.h: Remove macros wrapped in
#if !GDB_MULTI_ARCH.
David O'Brien [Tue, 9 Jul 2002 17:38:58 +0000 (17:38 +0000)]
2002-07-09 David O'Brien <obrien@FreeBSD.org>
* gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
(perror_with_name, remote_close, remote_open, expect, play): Static.
Don Howard [Tue, 9 Jul 2002 15:59:18 +0000 (15:59 +0000)]
2002-07-09 Don Howard <dhoward@redhat.com>
* gdb.texinfo (Command Files): Further describe the behavior of
sourced command files.
Thiemo Seufer [Tue, 9 Jul 2002 14:21:40 +0000 (14:21 +0000)]
* config/tc-mips.c (macro_build): Handle MIPS16 insns.
(mips_ip): Likewise.
* mips.h (INSN_MIPS16): New define.
* mips-dis.c (mips_isa_type): Add MIPS16 insn handling.
* mips-opc.c (I16): New define.
(mips_builtin_opcodes): Make jalx an I16 insn.
Andrew Cagney [Tue, 9 Jul 2002 14:17:39 +0000 (14:17 +0000)]
* config.in, configure: Regenerate.
Alan Modra [Tue, 9 Jul 2002 09:46:18 +0000 (09:46 +0000)]
* config/tc-i386.c (md_pseudo_table <file>): Warning fix.
(BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
(md_apply_fix3): Formatting. Remove redundant test.
(tc_gen_reloc): Remove redundant code.
(tc_i386_force_relocation): Delete. Movy body of function to..
* config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
Richard Sandiford [Tue, 9 Jul 2002 08:47:24 +0000 (08:47 +0000)]
* ld-scripts/dynamic-sections*: New test.
Alan Modra [Tue, 9 Jul 2002 08:13:06 +0000 (08:13 +0000)]
* emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
Alan Modra [Tue, 9 Jul 2002 07:49:49 +0000 (07:49 +0000)]
oops, forgot to commit.
Hans-Peter Nilsson [Tue, 9 Jul 2002 03:49:27 +0000 (03:49 +0000)]
* elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
NULL sym_hashes to just before use.
<case R_CRIS_32_GOTREL>: In test for local symbol, accept also
symbol with non-default visibility.
<case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
<case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
Ditto.
(cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
symbol with non-default visibility.
(cris_elf_check_relocs): At tests for local symbol before
increasing h->plt.refcount, also check for non-default
visibility. Ditto when checking for local symbol to eliminate
pc-relative runtime relocs.
Hans-Peter Nilsson [Tue, 9 Jul 2002 03:46:49 +0000 (03:46 +0000)]
* ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
ld-cris/noglob1.d: New tests.
Alan Modra [Tue, 9 Jul 2002 02:42:13 +0000 (02:42 +0000)]
* configure.tgt: Add hppaobsd.o.
* Makefile.am: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
powerpc-*-openbsd* and sparc64-*-openbsd*.
* Makefile.in: Regenerate.
* emulparams/hppaobsd.sh: New file.
Alan Modra [Tue, 9 Jul 2002 02:41:16 +0000 (02:41 +0000)]
* configure.in: Add hppa-*-openbsd* target, change
alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
with sparc64 cpu.
* configure: Regenerate.
Hans-Peter Nilsson [Tue, 9 Jul 2002 02:41:15 +0000 (02:41 +0000)]
Fix typo last change
DJ Delorie [Tue, 9 Jul 2002 01:01:18 +0000 (01:01 +0000)]
merge from gcc
Hans-Peter Nilsson [Tue, 9 Jul 2002 00:50:01 +0000 (00:50 +0000)]
* ld-cris/libdso-1.d: Tweak for change in size of dynamic sections.
Maciej W. Rozycki [Tue, 9 Jul 2002 00:42:57 +0000 (00:42 +0000)]
* config/tc-mips.c (macro): Shift the 32-bit address range
accessible with a lone "lui" down by 32768.
gdbadmin [Tue, 9 Jul 2002 00:00:08 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 9 Jul 2002 00:00:06 +0000 (00:00 +0000)]
daily update
Maciej W. Rozycki [Mon, 8 Jul 2002 22:42:09 +0000 (22:42 +0000)]
* config/tc-mips.c (load_address): Use non-trapping "daddu"
instead of "dadd" in address calculations.
(macro): Likewise.
DJ Delorie [Mon, 8 Jul 2002 22:18:40 +0000 (22:18 +0000)]
* configure.in: Don't build grez.
* Makefile.in: Ditto.
Mark Kettenis [Mon, 8 Jul 2002 20:53:45 +0000 (20:53 +0000)]
* dwarf2cfi.c: Include "gcore.h".
(execute_stack_op): Fix implementation of the
DW_OP_deref and DW_OP_deref_size operators by letting do their
lookup in the target.
DJ Delorie [Mon, 8 Jul 2002 20:43:20 +0000 (20:43 +0000)]
* Makefile.in: Remove references to bsp, cygmon, libstub.
* configure.in: Ditto.
* configure.in: Remove leftover reference to gdbtest.
DJ Delorie [Mon, 8 Jul 2002 17:14:04 +0000 (17:14 +0000)]
* configure.in (gxx_include_dir): Change to match versioned
C++ headers if --enable-version-specific-runtime-libs is used.
Alan Modra [Mon, 8 Jul 2002 10:40:37 +0000 (10:40 +0000)]
* gas/i386/intel16.s: New.
* gas/i386/intel16.d: New.
* gas/i386/i386.exp: Run it.
Alan Modra [Mon, 8 Jul 2002 10:03:11 +0000 (10:03 +0000)]
gas/ChangeLog
* config/tc-i386.c (process_suffix): Remove intel mode movsx and
movzx fudges.
(md_assemble): Instead, zap the suffix here.
include/opcode/ChangeLog
* i386.h: Remove IgnoreSize from movsx and movzx.
Alan Modra [Mon, 8 Jul 2002 08:13:37 +0000 (08:13 +0000)]
* elf.c: Formatting.
(IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
(INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
(copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
segments.
Mark Mitchell [Mon, 8 Jul 2002 05:34:08 +0000 (05:34 +0000)]
* cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
account the impact of relocation count overflow when computing
section offsets.
* coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
or not to apply the PE COFF reloc overflow handling. Fix a
fencepost error in deciding whether or not to use that technique.
Alan Modra [Mon, 8 Jul 2002 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 8 Jul 2002 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***
Mark Kettenis [Sun, 7 Jul 2002 21:31:06 +0000 (21:31 +0000)]
From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
* i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
tdep->sc_sp_offset.
Alan Modra [Sun, 7 Jul 2002 09:10:41 +0000 (09:10 +0000)]
* elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
change type of locsyms.
(bfd_elf_get_elf_syms): Declare.
* elf.c (bfd_elf_get_elf_syms): New function.
(group_signature): Use bfd_elf_get_elf_syms.
(bfd_section_from_r_symndx): Likewise.
* elfcode.h (elf_slurp_symbol_table): Likewise.
* elflink.h (elf_link_is_defined_archive_symbol): Likewise.
(elf_link_add_object_symbols): Likewise. Reorganise to increase
locality of various data structures. Properly free internal relocs.
(elf_bfd_final_link): Properly free internal relocs.
(elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
(elf_link_input_bfd): Likewise.
(elf_gc_mark): Likewise. Properly free internal relocs.
(elf_gc_sweep): Properly free internal relocs.
(elf_reloc_symbol_deleted_p): No need to swap syms in.
(elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
internal relocs.
* elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
Properly free possibly cached info.
(mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
(mn10200_elf_symbol_address_p): Pass in internal syms. Remove
symbol swapping code.
(mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
Properly free possibly cached info.
* elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
(mn10300_elf_relax_delete_bytes): Likewise.
(mn10300_elf_symbol_address_p): Likewise.
(mn10300_elf_get_relocated_section_contents): Likewise.
* elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
(elf32_h8_relax_delete_bytes): Likewise.
(elf32_h8_symbol_address_p): Likewise.
(elf32_h8_get_relocated_section_contents): Likewise.
* elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
(m32r_elf_relax_delete_bytes): Likewise.
(m32r_elf_get_relocated_section_contents): Likewise.
* elf32-sh.c (sh_elf_reloc_loop): Free section contents using
elf_section_data to determine whether cached.
(sh_elf_relax_section): As above for elf-m10200.c.
(sh_elf_relax_delete_bytes): Likewise.
(sh_elf_get_relocated_section_contents): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
* elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
reading of local syms.
* elf64-mmix.c (mmix_elf_relax_section): Likewise.
* elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
* elfxx-ia64.c (elfNN_ia64_relax_section): As above.
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
relocs.
* elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
free internal relocs and section contents. Don't read symbols.
* elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
(elf32_hppa_size_stubs): Don't free local syms.
* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
reading of local syms. Use bfd_elf_get_elf_syms. Properly free
possibly cached info.
* elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
* elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
* elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
all_local_syms.
(get_local_syms): Delete function.
(edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
on exit.
(ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
gdbadmin [Sun, 7 Jul 2002 00:00:07 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 7 Jul 2002 00:00:06 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 6 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 6 Jul 2002 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Jim Wilson [Fri, 5 Jul 2002 20:29:38 +0000 (20:29 +0000)]
This makes gprof work with non-standard text sections.
* syms.c (decode_section_type): New.
(bfd_decode_symclass): Call decode_section_type.
Daniel Jacobowitz [Fri, 5 Jul 2002 16:23:13 +0000 (16:23 +0000)]
2002-07-05 Daniel Jacobowitz <drow@mvista.com>
Fix PR gdb/595, gdb/602
* gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
Don't call value_cast, just read the vtable pointer; update comments
to match.
Grace Sainsbury [Fri, 5 Jul 2002 15:09:49 +0000 (15:09 +0000)]
* config/mcore/tm-mcore.h: Remove file.
* config/mcore/mcore.mt: Remove definition of TM_FILE
* configure.tgt: Set gdb_multi_arch to yes for the mcore target.
Nick Clifton [Fri, 5 Jul 2002 14:12:01 +0000 (14:12 +0000)]
Add checks to catch invaliud XScale MIA, MIAPH and MIAxy instructions.
Alan Modra [Fri, 5 Jul 2002 12:54:28 +0000 (12:54 +0000)]
* ldlang.c (print_wild_statement): Fix output formatting.
Alan Modra [Fri, 5 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 5 Jul 2002 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Mark Kettenis [Thu, 4 Jul 2002 22:59:01 +0000 (22:59 +0000)]
* i386bsd-tdep.c: Include "gdb_string.h".
Alexandre Oliva [Thu, 4 Jul 2002 22:51:16 +0000 (22:51 +0000)]
* ltcf-cxx.sh (hpux*): Modify to support ia64-*-hpux*.
Grace Sainsbury [Thu, 4 Jul 2002 16:45:53 +0000 (16:45 +0000)]
* config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
(PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
mcore-tdep.
(REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
(TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
* mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
(RETVAL_REGNUM): Move macros from tm-mcore.h
(mcore_reg_struct_has_addr): New function.
(mcore_gdbarch_init): Added initializations for the macros removed
from tm-mcore.h.
Jakub Jelinek [Thu, 4 Jul 2002 15:57:24 +0000 (15:57 +0000)]
* merge.c (_bfd_merged_section_offset): Avoid accessing byte before
section content start.
Reported by Michael Schumacher <mike@hightec-rt.com>.
Mark Kettenis [Thu, 4 Jul 2002 15:36:51 +0000 (15:36 +0000)]
* osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
traditonal string branding within the ELF header.
Daniel Jacobowitz [Thu, 4 Jul 2002 15:22:42 +0000 (15:22 +0000)]
2002-07-04 Daniel Jacobowitz <drow@mvista.com>
* symtab.c (remove_params): New function.
(make_symbol_overload_list): Use it instead of cplus_demangle.
(overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
Mark Kettenis [Thu, 4 Jul 2002 15:17:43 +0000 (15:17 +0000)]
* i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
Mark Kettenis [Thu, 4 Jul 2002 15:13:28 +0000 (15:13 +0000)]
* i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
New variables.
(i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
and tdep->sigtramp_end.
* i386obsd-nat.c: New file.
* config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
Mark Kettenis [Thu, 4 Jul 2002 14:43:51 +0000 (14:43 +0000)]
* dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
Don't call get_current_frame().
Alan Modra [Thu, 4 Jul 2002 14:41:01 +0000 (14:41 +0000)]
* ldlang.c: (strip_excluded_output_sections): New function.
(lang_process): Call it.
(lang_size_sections_1): Revert 2002-06-10 change.
Alan Modra [Thu, 4 Jul 2002 14:40:25 +0000 (14:40 +0000)]
* section.c (_bfd_strip_section_from_output): Remove unnecessary
link order code. Don't actually remove the output section here;
Just set a flag for the linker to do so.
* elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
sections when setting up output section dynsyms.
Alan Modra [Thu, 4 Jul 2002 13:26:30 +0000 (13:26 +0000)]
* elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
fudge.
* elf.c (bfd_section_from_shdr): Work around broken hpux shared
libs here instead.
Pierre Muller [Thu, 4 Jul 2002 12:32:29 +0000 (12:32 +0000)]
2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
* i386-nat.c (child_post_startup_inferior): New function
calling i386_cleanup_dregs if
I386_USE_GENERIC_WATCHPOINTS is defined.
* config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
conditional to acknowledge that i386-nat.c has its
own child_post_startup_inferior function.
Mark Kettenis [Thu, 4 Jul 2002 08:18:20 +0000 (08:18 +0000)]
* i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
* i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
instead of MAX_REGISTER_RAW_SIZE.
(i386_extract_return_value, i386_extract_struct_value_address):
Convert to use regcache.
(i386_gdbarch_init): Set max_register_raw_size and
max_register_virtual_size to I386_MAX_REGISTER_SIZE.
Set extract_return_value and extract_struct_value_address instead
of their deprecated variants.
Mark Kettenis [Thu, 4 Jul 2002 07:22:11 +0000 (07:22 +0000)]
Convert i386 target to generic dummy frames.
* i386-tdep.c: Include "symfile.h".
(i386_frameless_signal_p): Consider a function to be frameless if
the pc points at the first instruction of the function.
(i386_frame_chain): Handle (generic) call dummies.
(i386_frame_saved_pc): Likewise.
(i386_frame_init_saved_regs): Remove code dealing with call
dummies on the stack.
(i386_push_dummy_frame): Removed.
(i386_call_dummy_words): Removed.
(i386_fix_call_dummy): Removed.
(i386_push_return_address): New function.
(i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
parameter, and don't call get_current_frame.
(i386_pop_frame): New function.
(i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
entry_point_address, set call_dummy_breakpoint_offset to 0, set
call_dummy_length to 0, set call_dummy_words to NULL, set
sizeof_call_dummy_words to 0, set fix_call_dummy to
generic_fix_call_dummy, set pc_in_call_dummy to
pc_in_call_dummy_at_entry_point, set push_dummy_frame to
generic_push_dummy_frame, set push_return_address to
i386_push_return_address and set frame_chain_valid to
generic_file_frame_chain_valid.
Michal Ludvig [Thu, 4 Jul 2002 06:00:49 +0000 (06:00 +0000)]
2002-07-04 Michal Ludvig <mludvig@suse.cz>
* gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
byte offsets instead of an array of indexes.
(x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
gdbadmin [Thu, 4 Jul 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 4 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update
DJ Delorie [Wed, 3 Jul 2002 23:35:31 +0000 (23:35 +0000)]
* configure.in: Make --without-x work.
Andrew Cagney [Wed, 3 Jul 2002 21:27:55 +0000 (21:27 +0000)]
* gdbarch.sh (struct regcache): Add opaque declaration.
(EXTRACT_RETURN_VALUE): New architecture method.
(EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c (legacy_extract_return_value): New function.
* arch-utils.h (legacy_extract_return_value): Declare.
* values.c (value_being_returned): Re-enable code handling
EXTRACT_STRUCT_VALUE_ADDRESS. Move
deprecated_grub_regcache_for_registers call to block handling
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
(EXTRACT_RETURN_VALUE): Do not define.
Grace Sainsbury [Wed, 3 Jul 2002 21:23:02 +0000 (21:23 +0000)]
* config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
(SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
(BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
(INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
(FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
(STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
(STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
(SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
(FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
(PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
* mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
argument so the function fits the prototype in the architecture
vector.
(mcore_pop_frame): Remove argument so the function fits the
prototype. Use get_current_frame instead of the argument.
(mcore_push_arguments): Change type of struct_return so the
function can be used in the architecture vector.
(mcore_store_struct_return): Add.
(mcore_frame_init_saved_regs): Add.
(mcore_gdbarch_init): Add function calls to replace the macros
removed from tm-mcore.h
Andrew Cagney [Wed, 3 Jul 2002 20:36:54 +0000 (20:36 +0000)]
* infcmd.c (print_return_value): Remove compatibility code calling
deprecated_grub_regcache_for_registers.
* values.c: Include "regcache.h".
(value_being_returned): Update. Use
deprecated_grub_regcache_for_registers to extract the register
buffer address.
* value.h (value_being_returned): Change ``retbuf'' parameter to a
``struct regcache''.
* Makefile.in (values.o): Add dependency on $(regcache_h).
* inferior.h (run_stack_dummy): Change type of second parameter to
a ``struct regcache''.
* valops.c (hand_function_call): Change type of retbuf to ``struct
regcache''. Allocate using regcache_xmalloc, clean using
make_cleanup_regcache_xfree.
* infcmd.c (run_stack_dummy): Update. Use
regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
* regcache.c (do_regcache_xfree): New function.
(make_cleanup_regcache_xfree): New function.
* regcache.h (make_cleanup_regcache_xfree): Declare.
Martin Hunt [Wed, 3 Jul 2002 20:27:12 +0000 (20:27 +0000)]
2002-07-03 Martin M. Hunt <hunt@redhat.com>
* event-top.c (command_line_handler): Don't read past
beginning of buffer.
Martin Hunt [Wed, 3 Jul 2002 20:23:04 +0000 (20:23 +0000)]
2002-07-03 Martin M. Hunt <hunt@redhat.com>
* varobj.c (struct varobj_root): Change frame from CORE_ADDR to
struct frame_id.
(varobj_create): Store frame_id for root.
(varobj_gen_name): Use xasprintf.
(varobj_update): Save and restore frame using get_frame_id() and
frame_find_by_id().
(create_child): Use xasprintf.
(new_root_variable): Initialize frame_id.
(c_name_of_child): Use xasprintf. Call find_frame_by_id().
(c_value_of_variable): Use xasprintf. Move mem_fileopen call
to prevent memory leak.
Andrew Cagney [Wed, 3 Jul 2002 18:31:29 +0000 (18:31 +0000)]
* valops.c (hand_function_call): Move declaration of retbuf to
start of function, allocate using malloc, add a cleanup but before
the inf_status cleanup, cleanup the buffer. Rename local variable
old_chain to inf_status_cleanup.
Martin Hunt [Wed, 3 Jul 2002 17:35:21 +0000 (17:35 +0000)]
2002-07-03 Martin M. Hunt <hunt@redhat.com>
* top.c (execute_command): Use cmd_func() and cmd_func_p().
* cli/cli-decode.c (cmd_func_p): New function.
(cmd_func): New function.
* command.h: Add cmd_func() and cmd_func_p().
Grace Sainsbury [Wed, 3 Jul 2002 17:17:06 +0000 (17:17 +0000)]
* config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
(REGISTER_SIZE): Remove.
(MAX_REGISTER_RAW_SIZE): Remove.
(REGISTER_VIRTUAL_TYPE): Remove.
(MAX_REGISTER_VIRTUAL_SIZE): Remove.
(REGISTER_NAME): Remove.
(USE_GENERIC_DUMMY_FRAMES): Remove.
(CALL_DUMMY): Remove.
(CALL_DUMMY_START_OFFSET): Remove.
(CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
(CALL_DUMMY_LOCATION): Remove.
(FIX_CALL_DUMMY): Remove.
(CALL_DUMMY_ADDRESS): Remove.
(SIZEOF_CALL_DUMMY_WORDS): Remove.
(SAVE_DUMMY_FRAME_TOS): Remove.
* mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
(mcore_register_virtual_type): New function.
(mcore_register_byte): New function.
(mcore_register_size): New function.
(mcore_register_name): New function.
(mcore_gdbarch_init): New function. Add set_gdbarch calls for
macros removed from tm-mcore.h.
(mcore_dump_tdep): Add.
(_initialize_mcore_tdep): Add gdbarch_register call.
Nick Clifton [Wed, 3 Jul 2002 17:16:29 +0000 (17:16 +0000)]
Remove next release number until the release is actually upon us.
Nick Clifton [Wed, 3 Jul 2002 11:20:13 +0000 (11:20 +0000)]
New directory. Created to contain a copy of the texi2pod.pl script so that
it is in the same place as the version in the FSF GCC sources.
Mark Kettenis [Wed, 3 Jul 2002 09:39:47 +0000 (09:39 +0000)]
* i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
frameless_look_for_prologue, such that we actually call this
function.
DJ Delorie [Wed, 3 Jul 2002 03:23:47 +0000 (03:23 +0000)]
* configure.in: Rearrange target Makefile fragment collection.
Alan Modra [Wed, 3 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 3 Jul 2002 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 2 Jul 2002 23:56:53 +0000 (23:56 +0000)]
* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
Run "make dep-am".
* Makefile.in: Regenerate.
Alan Modra [Tue, 2 Jul 2002 23:54:39 +0000 (23:54 +0000)]
* lib/ld-lib.exp (default_ld_nm): Run nm with LC_ALL=C to ensure
consistent sorting.
(run_dump_test): Likewise for objdump/nm/objcopy/readelf.
* ld-sh/sh64/sh64.exp (run_ld_link_tests): Likewise.
Alan Modra [Tue, 2 Jul 2002 23:50:14 +0000 (23:50 +0000)]
* lib/gas-defs.exp (run_dump_test): Run objdump/nm/objcopy/readelf
with LC_ALL=C to ensure consistent sorting.
Alan Modra [Tue, 2 Jul 2002 23:48:45 +0000 (23:48 +0000)]
* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
* Makefile.in: Regenerate.
Joel Brobecker [Tue, 2 Jul 2002 19:08:55 +0000 (19:08 +0000)]
* frame.h (frame_address_in_block): New function.
* blockframe.c (frame_address_in_block): New function extracted
from get_frame_block().
(get_frame_block): Use frame_address_in_block().
(block_innermost_frame): Use frame_address_in_block() to match
the frame pc address against the block boundaries rather than
the frame pc directly. This prevents a failure when a frame pc
is actually a return-address pointing immediately after the end
of the given block.
DJ Delorie [Tue, 2 Jul 2002 18:57:43 +0000 (18:57 +0000)]
* Makefile.in: Don't try to build gdbtest, tgas, ispell, inet, or
cvs[src].
* configure.in: Ditto.
Grace Sainsbury [Tue, 2 Jul 2002 18:25:41 +0000 (18:25 +0000)]
* MAINTAINERS: Add self under write after approval.
Grace Sainsbury [Tue, 2 Jul 2002 18:13:54 +0000 (18:13 +0000)]
* m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
used in architecture vector. The default is
m68k_local_breakpoint_from_pc.
(m68k_local_breakpoint_from_pc): Add.
(enum): Add register numbers from tm-m68k.h.
(m68k_gdbarch_init): Add breakpoint_from_pc to architecture vector.
* config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
GDB_MULTI_ARCH_PARTIAL.
(BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
(NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
m68k-tdep.c.
(BREAKPOINT, REMOTE_BREAKPOINT): Remove.
(A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
to enum in m68k-tdep.c
Joel Brobecker [Tue, 2 Jul 2002 17:05:28 +0000 (17:05 +0000)]
* solib-osf.c (open_map): Compute the list of shared libraries
loaded by the inferior, rather than the list of libraries loaded
by GDB itself. Otherwise, GDB ends up reading the symbols from
the wrong shared libraries...
Mark Kettenis [Tue, 2 Jul 2002 13:48:16 +0000 (13:48 +0000)]
* i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
(LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
macros.
(i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
Remove functions.
(FRAMELESS_SIGNAL): Remove function.
(i386_linux_frame_chain, i386_linux_frame_saved_pc,
i386_linux_saved_pc_after_call): Removed.
(i386_linux_init_abi): Initialize tdep->sigcontext_addr,
tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
frame_chain, frame_saved_pc and saved_pc_after_call any longer.
Mark Kettenis [Tue, 2 Jul 2002 09:12:37 +0000 (09:12 +0000)]
* i386-tdep.c (i386_frameless_signal_p): New function.
(i386_frame_chain): Deal with frameless signals.
(i386_sigtramp_saved_sp): New function.
(i386_frame_saved_pc): Deal with frameless signals.
(i386_saved_pc_after_call): Make sure the correct value is
returned just after entry into a sigtramp.
* i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
i386fbsd4_sc_sp_offset): New variables.
(i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
(_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
similiar to what we already did for sc_pc_offset.
* i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
tdep->sc_sp_offset.
Martin Schwidefsky [Tue, 2 Jul 2002 09:05:51 +0000 (09:05 +0000)]
2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
* elf64-s390.c (create_got_section): Set .got section alignment to
8 bytes.
(elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
Martin Schwidefsky [Tue, 2 Jul 2002 09:04:43 +0000 (09:04 +0000)]
2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
* config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
to symbols in merge sections, even non pc-relative ones.
Mark Kettenis [Tue, 2 Jul 2002 08:39:54 +0000 (08:39 +0000)]
* i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
Alan Modra [Tue, 2 Jul 2002 04:31:22 +0000 (04:31 +0000)]
* elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
Alan Modra [Tue, 2 Jul 2002 04:26:39 +0000 (04:26 +0000)]
* ldfile.c (ldfile_try_open_bfd): Formatting.
Alan Modra [Tue, 2 Jul 2002 04:21:57 +0000 (04:21 +0000)]
* ldmisc.c (demangle): Move so that it doesn't intrude between
vfinfo comment and body. Add comment.
Alan Modra [Tue, 2 Jul 2002 04:21:25 +0000 (04:21 +0000)]
* budemang.c: New file, "demangle" function.
* budemang.h: New file.
* addr2line.c (translate_addresses): Use "demangle".
* nm.c (print_symname): Likewise.
* objdump.c (objdump_print_symname): Likewise.
(dump_symbols): Likewise. Also, don't use bfd_asymbol_name macro
here since that obfuscates.
* rdcoff.c: Don't #include demangle.h.
* Makefile.am (CFILES): Add budemang.c, emul_aix.c,
emul_vanilla.c. Remove emul_$(EMULATION).c. Sort.
(HFILES): Add budemang.h. Sort.
(nm_new_SOURCES, objdump_SOURCES, addr2line_SOURCES): Add budemang.c.
Run "make dep-am".
* Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.
DJ Delorie [Tue, 2 Jul 2002 04:09:35 +0000 (04:09 +0000)]
merge from gcc
gdbadmin [Tue, 2 Jul 2002 00:00:36 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 2 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Mon, 1 Jul 2002 23:47:10 +0000 (23:47 +0000)]
typo fix
DJ Delorie [Mon, 1 Jul 2002 23:18:33 +0000 (23:18 +0000)]
Remove redundant entry.