Martin Hunt
e64d9b3dea
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.
2002-07-03 20:23:04 +00:00
Andrew Cagney
26e6c56a66
* 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.
2002-07-03 18:31:29 +00:00
Martin Hunt
f436dd25ca
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().
2002-07-03 17:35:21 +00:00
Grace Sainsbury
4cfe20842d
* 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.
2002-07-03 17:17:06 +00:00
Nick Clifton
a5d3c30901
Remove next release number until the release is actually upon us.
2002-07-03 17:16:29 +00:00
Nick Clifton
1dfa8174b2
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.
2002-07-03 11:20:13 +00:00
Mark Kettenis
4fd667e983
* i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
...
frameless_look_for_prologue, such that we actually call this
function.
2002-07-03 09:39:47 +00:00
DJ Delorie
b6f83f2a0c
* configure.in: Rearrange target Makefile fragment collection.
2002-07-03 03:23:47 +00:00
Alan Modra
a2f65c535c
daily update
2002-07-03 00:00:05 +00:00
gdbadmin
67ce813b0c
*** empty log message ***
2002-07-03 00:00:04 +00:00
Alan Modra
ce4f738593
* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
...
Run "make dep-am".
* Makefile.in: Regenerate.
2002-07-02 23:56:53 +00:00
Alan Modra
3e8cba195d
* 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.
2002-07-02 23:54:39 +00:00
Alan Modra
139e4a7044
* lib/gas-defs.exp (run_dump_test): Run objdump/nm/objcopy/readelf
...
with LC_ALL=C to ensure consistent sorting.
2002-07-02 23:50:14 +00:00
Alan Modra
97230b1503
* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
...
* Makefile.in: Regenerate.
2002-07-02 23:48:45 +00:00
Joel Brobecker
42f99ac23d
* 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.
2002-07-02 19:08:55 +00:00
DJ Delorie
07637366bc
* Makefile.in: Don't try to build gdbtest, tgas, ispell, inet, or
...
cvs[src].
* configure.in: Ditto.
2002-07-02 18:57:43 +00:00
Grace Sainsbury
83b4a0fe98
* MAINTAINERS: Add self under write after approval.
2002-07-02 18:25:41 +00:00
Grace Sainsbury
103a159751
* 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
2002-07-02 18:13:54 +00:00
Joel Brobecker
7a5a05349e
* 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...
2002-07-02 17:05:28 +00:00
Mark Kettenis
b7d15bf718
* 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.
2002-07-02 13:48:16 +00:00
Mark Kettenis
6bff26defb
* 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.
2002-07-02 09:12:37 +00:00
Martin Schwidefsky
99881371eb
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.
2002-07-02 09:05:51 +00:00
Martin Schwidefsky
148b4c7a2b
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.
2002-07-02 09:04:43 +00:00
Mark Kettenis
6f558d7454
* i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2002-07-02 08:39:54 +00:00
Alan Modra
47d9a59134
* elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
2002-07-02 04:31:22 +00:00
Alan Modra
71daf8b446
* ldfile.c (ldfile_try_open_bfd): Formatting.
2002-07-02 04:26:39 +00:00
Alan Modra
b7b482a3f5
* ldmisc.c (demangle): Move so that it doesn't intrude between
...
vfinfo comment and body. Add comment.
2002-07-02 04:21:57 +00:00
Alan Modra
a6637ec0ed
* 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.
2002-07-02 04:21:25 +00:00
DJ Delorie
793011ca4e
merge from gcc
2002-07-02 04:09:35 +00:00
gdbadmin
7151e72eee
*** empty log message ***
2002-07-02 00:00:36 +00:00
Alan Modra
319fb920c5
daily update
2002-07-02 00:00:05 +00:00
Alan Modra
e3817b46e4
typo fix
2002-07-01 23:47:10 +00:00
DJ Delorie
21c2ea5e7e
Remove redundant entry.
2002-07-01 23:18:33 +00:00
DJ Delorie
f48556b108
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.
2002-07-01 23:12:32 +00:00
Michal Ludvig
145564b756
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.
2002-07-01 22:09:52 +00:00
Mark Kettenis
21d0e8a401
* 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.
2002-07-01 21:16:32 +00:00
DJ Delorie
b39b76b8b5
merge from gcc
2002-07-01 18:02:30 +00:00
Jason Thorpe
179d3252e3
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.
2002-07-01 16:43:38 +00:00
Mark Kettenis
3a1e71e3b1
* 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.
2002-07-01 10:20:40 +00:00
Thiemo Seufer
4a14403c9f
* 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.
2002-07-01 10:01:01 +00:00
Mark Kettenis
77b13a25ae
* i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2002-07-01 09:41:00 +00:00
Mark Kettenis
52e9098c24
* 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".
2002-07-01 09:13:09 +00:00
Andreas Schwab
607c0e0944
* elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
...
R_X86_64_64 to R_X86_64_RELATIVE.
2002-07-01 08:47:13 +00:00
Alan Modra
29e2951eb7
* emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2002-07-01 08:32:30 +00:00
Alan Modra
ba26fd966c
* 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.
2002-07-01 08:31:53 +00:00
Alan Modra
e3e942e990
* 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.
2002-07-01 08:07:31 +00:00
Alan Modra
1e2f5b6e6b
* 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.
2002-07-01 08:06:47 +00:00
Alan Modra
7815cf4fc3
* bfdlink.h (struct bfd_sym_chain): Declare.
...
(struct bfd_link_info): Add gc_sym_list. Formatting fixes.
2002-07-01 08:04:47 +00:00
Andreas Jaeger
1b71fb54e3
* elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
...
are not allowed in shared libs code, enforce -fPIC.
2002-07-01 06:42:27 +00:00
gdbadmin
6fee999aa2
*** empty log message ***
2002-07-01 00:00:34 +00:00