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.
DJ Delorie [Mon, 1 Jul 2002 23:12:32 +0000 (23:12 +0000)]
merge from gcc:
2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in: Eliminate 'apache' targets.
* configure.in: Eliminate 'apache' targets.
* configure.in: Eliminate redundant tests. Reorganize.
* Makefile.in: Eliminate last reference to LIBGCC1_TEST.
* config-ml.in: Eliminate references to Cygnus configure.
* Makefile.in: Eliminate references to building emacs.
2002-07-01 Denis Chertykov <denisc@overta.ru>
* configure.in: Add support for ip2k.
Michal Ludvig [Mon, 1 Jul 2002 22:09:52 +0000 (22:09 +0000)]
2002-07-02 Michal Ludvig <mludvig@suse.cz>
* config/i386/tm-x86-64linux.h: New.
* config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
definitions.
* config/i386/nm-x86-64.h: Rename to ...
* config/i386/nm-x86-64linux.h: ... this one.
* config/i386/x86-64linux.mh: Reflect the above change.
Mark Kettenis [Mon, 1 Jul 2002 21:16:32 +0000 (21:16 +0000)]
* i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
with sigcontext_addr. Add sc_sp_offset.
(i386bsd_sigtramp_saved_pc): Remove prototype.
(i386bsd_sicontext_addr): Add prototype.
* i386-tdep.c (i386_sigtramp_saved_pc): New function.
(i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
(i386_svr4_sigtramp_saved_pc): Removed.
(i386_svr4_sigcontext_addr): New function.
(i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
Initialize tdep->sigcontext_addr instead. Initialize
tdep->sc_pc_offset and tdep->sc_sp_offset.
(i386_gdbarch_init): Likewise.
* i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
any more.
(i386bsd_sigtramp_saved_pc): Remove function.
(i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
Initialize tdep->sigcontext_addr instead. Initialize
tdep->sc_pc_offset.
* i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
of tdep->sigtramp_saved_pc.
* i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
instead.
DJ Delorie [Mon, 1 Jul 2002 18:02:30 +0000 (18:02 +0000)]
merge from gcc
Jason Thorpe [Mon, 1 Jul 2002 16:43:38 +0000 (16:43 +0000)]
include/elf:
2002-07-01 Matt Thomas <matt@3am-software.com>
* Rename EF_* to EF_VAX_*.
bfd:
2002-07-01 Matt Thomas <matt@3am-software.com>
* elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
to EF_VAX_*.
binutils:
2002-07-01 Matt Thomas <matt@3am-software.com>
* readelf.c: Include "elf/vax.h".
(guess_is_rela): Move EM_VAX from unknown to RELA case.
(dump_relocations): Handle VAX relocations.
(get_machine_flags): Handle VAX machine flags.
Mark Kettenis [Mon, 1 Jul 2002 10:20:40 +0000 (10:20 +0000)]
* i386-tdep.c (i386_frameless_function_invocation,
i386_frame_num_args, i386_frame_init_saved_regs,
i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
i386_pop_frame, i386_push_arguments, i386_store_struct_return,
i386_extract_return_value, i386_store_return_value,
i386_extract_struct_value_address, i386_register_virtual_type,
i386_register_convertible, i386_register_convert_to_virtual,
i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
static.
Thiemo Seufer [Mon, 1 Jul 2002 10:01:01 +0000 (10:01 +0000)]
* elfxx-mips.c (ABI_64_P): Fix comment.
(MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
new section names for N64 ABI.
(mips_elf_output_extsym): No special _gp_disp handling for NewABI.
(mips_elf_calculate_relocation): Code formatting.
(mips_elf_create_dynamic_relocation): Likewise.
(_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
(_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
(_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
in any NewABI.
(_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
for NewABI.
(_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
(_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
here, too.
Mark Kettenis [Mon, 1 Jul 2002 09:41:00 +0000 (09:41 +0000)]
* i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
Mark Kettenis [Mon, 1 Jul 2002 09:13:09 +0000 (09:13 +0000)]
* config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
* i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
this macro. Include "value.h".
Andreas Schwab [Mon, 1 Jul 2002 08:47:13 +0000 (08:47 +0000)]
* elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
R_X86_64_64 to R_X86_64_RELATIVE.
Alan Modra [Mon, 1 Jul 2002 08:32:30 +0000 (08:32 +0000)]
* emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
Alan Modra [Mon, 1 Jul 2002 08:31:53 +0000 (08:31 +0000)]
* vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
* Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
Run "make dep-am".
* config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
host_aout_vec.
* configure.in (vaxbsd_vec): Add.
* targets.c (vaxbsd_vec): Add.
* Makefile.in: Rebuild.
* configure: Rebuild.
* po/SRC-POTFILES.in: Rebuild.
Alan Modra [Mon, 1 Jul 2002 08:07:31 +0000 (08:07 +0000)]
* ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
* ldlang.c (entry_sym): Likewise.
(ldlang_undef_chain_list_type): Likewise.
(lang_finish): Adjust references to entry_symbol.
(lang_add_entry): Likewise.
(lang_gc_sections): Use link_info.gc_sym_list.
(lang_process): Set link_info.gc_sym_list.
* ldlex.l: Include bfdlink.h.
* ldmain.c (main): Init link_info.gc_sym_list.
* emultempl/aix.em: Adjust references to entry_symbol.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/ppc64elf.em (ppc_after_open): New function.
(LDEMUL_AFTER_OPEN): Define.
* emulparams/elf64ppc.sh: KEEP .opd sections.
Alan Modra [Mon, 1 Jul 2002 08:06:47 +0000 (08:06 +0000)]
* elflink.h (elf_gc_mark): Pass in the section whose relocs we are
examining to gc_mark_hook, rather than the bfd.
(elf_gc_sections): Adjust.
* elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
* elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
* elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
* elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
* elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
* elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
* elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
* elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
* elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
* elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
* elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
* elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
* elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
* elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
* elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
* elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
* elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
* elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
* elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
* elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
* elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
* elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
* elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
* elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
* elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
* elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
* elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
redundant local sym tests.
* elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
(link_hash_newfunc): Init is_entry.
(ppc64_elf_copy_indirect_symbol): Copy is_entry.
(ppc64_elf_link_hash_table_create): Init all_local_syms.
(create_linkage_sections): Use bfd_make_section_anyway rather than
bfd_make_section.
(ppc64_elf_mark_entry_syms): New function.
(ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
up opd entry to function section map.
(ppc64_elf_gc_mark_hook): Special case opd section relocs, and
relocs that reference the opd section.
(edit_opd): New function.
(ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
(ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
(get_local_syms): Do so here. Exit if we already have local syms.
Remove bogus comment imported from elf32-hppa.c. Don't attempt to
read local syms on non-ELF input.
(ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
than duplicating it's function here. Adjust free of internal
relocs to suit.
(ppc64_elf_relocate_section): Adjust local syms in opd section.
* elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
* elf32-hppa.c (elf32_hppa_size_stubs): Call
_bfd_elf32_link_read_relocs rather than duplicating it's function
here. Adjust free of internal relocs to suit.
Alan Modra [Mon, 1 Jul 2002 08:04:47 +0000 (08:04 +0000)]
* bfdlink.h (struct bfd_sym_chain): Declare.
(struct bfd_link_info): Add gc_sym_list. Formatting fixes.
Andreas Jaeger [Mon, 1 Jul 2002 06:42:27 +0000 (06:42 +0000)]
* elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
are not allowed in shared libs code, enforce -fPIC.
gdbadmin [Mon, 1 Jul 2002 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 1 Jul 2002 00:00:06 +0000 (00:00 +0000)]
daily update
Aidan Skinner [Sun, 30 Jun 2002 22:04:33 +0000 (22:04 +0000)]
Remove ada-lex.c and ada-exp.tab.c as they are generated files
Mark Kettenis [Sun, 30 Jun 2002 18:55:19 +0000 (18:55 +0000)]
* config/i386/tm-i386.h (struct frame_info, struct
frame_saved_regs, struct value, struct type): Remove forward
declarations.
Stephane Carrez [Sun, 30 Jun 2002 18:43:33 +0000 (18:43 +0000)]
* readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations.
Mark Kettenis [Sun, 30 Jun 2002 18:43:06 +0000 (18:43 +0000)]
* config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
(FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
* config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
(FILL_FPXREGSET): Define.
Mark Kettenis [Sun, 30 Jun 2002 17:22:57 +0000 (17:22 +0000)]
* config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
Mark Kettenis [Sun, 30 Jun 2002 17:19:54 +0000 (17:19 +0000)]
* configure.tgt (i[3456]86-*-openbsd*): Fold into
i[3456]86-*-netbsd* case.
* config/i386/tm-obsd.h: Removed.
* config/i386/obsd.mt: Removed.
* config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
core-aout.o.
(MH_CFLAGS): Add -DYYDEBUG=0.
Mark Kettenis [Sun, 30 Jun 2002 17:01:42 +0000 (17:01 +0000)]
* i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
i386nbsd_sc_pc_offset on OpenBSD too.
Mark Kettenis [Sun, 30 Jun 2002 14:43:24 +0000 (14:43 +0000)]
* config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
(IN_SOLIB_CALL_TRAMPOLINE): Remove define.
* config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
define.
* i386bsd-tdep.c: Include "arch-utils.h".
(i386bsd_aout_in_solib_call_trampoline): New function.
(i386bsd_init_abi): Set in_solib_call_trampoline to
i386bsd_aout_in_solib_call_trampoline.
(i386nbsdelf_init_abi, i386fbsd_init_abi): Set
in_solib_call_trampoline to generic_in_solib_call_trampoline.
gdbadmin [Sun, 30 Jun 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 30 Jun 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Hans-Peter Nilsson [Sat, 29 Jun 2002 21:45:09 +0000 (21:45 +0000)]
* mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
trailing zero-sequences when there's previous left-over data.
Hans-Peter Nilsson [Sat, 29 Jun 2002 21:33:28 +0000 (21:33 +0000)]
* ld-mmix/sec-8m.d, ld-mmix/sec-8m.s, ld-mmix/sec-8a.s,
ld-mmix/sec-8b.s, ld-mmix/sec-8d.s: New test.
Stephane Carrez [Sat, 29 Jun 2002 15:52:31 +0000 (15:52 +0000)]
* config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
Stephane Carrez [Sat, 29 Jun 2002 10:33:45 +0000 (10:33 +0000)]
* emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
* emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
* emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
(EEPROM_START_ADDR): Define.
(EEPROM_MEMORY): Define.
* emulparams/m68hc12elf.sh: Likewise.
* scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
section to put soft registers in .page0.
* scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
Stephane Carrez [Sat, 29 Jun 2002 10:32:34 +0000 (10:32 +0000)]
* config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
.softregs and .eeprom.
David O'Brien [Sat, 29 Jun 2002 04:54:59 +0000 (04:54 +0000)]
2002-06-28 David O'Brien <obrien@FreeBSD.org>
* NEWS: Note the next release is 2.13.
gdbadmin [Sat, 29 Jun 2002 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 29 Jun 2002 00:00:06 +0000 (00:00 +0000)]
daily update
Andrew Cagney [Fri, 28 Jun 2002 23:42:33 +0000 (23:42 +0000)]
* macrotab.h: Do not include "obstack.h" or "bcache.h".
(struct obstack, struct bcache): Add opaque declarations.
* Makefile.in (macrotab_h): Update
Andrew Cagney [Fri, 28 Jun 2002 22:38:29 +0000 (22:38 +0000)]
* blockframe.c (generic_find_dummy_frame): Change return type to
``struct regcache''.
(struct dummy_frame): Replace field ``registers'' with regcache, a
struct regcache object.
(generic_find_dummy_frame): Update.
(generic_push_dummy_frame): Update. Use regcache_xfree,
regcache_xmalloc and regcache_cpy.
(generic_pop_dummy_frame): Update. Use regcache_cpy and
regcache_xfree.
(deprecated_generic_find_dummy_frame): Update.
(generic_read_register_dummy): Update. Use
regcache_read_as_address.
(generic_call_dummy_register_unwind): Update. Use regcache_read.
(generic_get_saved_register): Update. Use regcache_read.
Andrew Cagney [Fri, 28 Jun 2002 22:09:11 +0000 (22:09 +0000)]
* Makefile.in (objfiles_h): Add $(bcache_h).
* objfiles.h: Include "bcache.h".
* Makefile.in (symtab_h): Remove $(bcache_h).
* symtab.h: Do not include "bcache.h".
Andrew Cagney [Fri, 28 Jun 2002 22:07:20 +0000 (22:07 +0000)]
* ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
generic_func_frame_chain_valid.
David O'Brien [Fri, 28 Jun 2002 18:44:49 +0000 (18:44 +0000)]
2002-06-28 David O'Brien <obrien@FreeBSD.org>
* config/i386/nm-fbsd.h: Include <sys/param.h>.
* config/i386/tm-fbsd.h: Likewise.
Andrew Cagney [Fri, 28 Jun 2002 16:15:07 +0000 (16:15 +0000)]
* rs6000-tdep.c (rs6000_gdbarch_init): Use
generic_unwind_get_saved_register.
Alan Modra [Fri, 28 Jun 2002 00:01:04 +0000 (00:01 +0000)]
daily update
gdbadmin [Fri, 28 Jun 2002 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Jeff Law [Thu, 27 Jun 2002 22:57:50 +0000 (22:57 +0000)]
* emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
section. Add ${RELOCATING-0}.
Jeff Law [Thu, 27 Jun 2002 22:57:02 +0000 (22:57 +0000)]
* elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
(elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
and opd_rel_sec in order for starting rela section. Check _raw_size.
(elf_backend_reloc_type_class): Define.
Andrew Cagney [Thu, 27 Jun 2002 18:28:23 +0000 (18:28 +0000)]
From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
* regcache.c (supply_register): Add missing argument to
register_buffer call.
Andrew Cagney [Thu, 27 Jun 2002 15:49:23 +0000 (15:49 +0000)]
* Makefile.in (init.c): Drop -e option to grep. Not necessary and
Solaris /bin/grep does not not like it. From Peter Schauer.
Andrew Cagney [Thu, 27 Jun 2002 15:30:32 +0000 (15:30 +0000)]
* gdbint.texinfo (User Interface): ISO C rather than ISO-C.
(Coding): Clarify ISO C version that GDB assumes.