Commit Graph

27687 Commits

Author SHA1 Message Date
Nick Clifton 1d713d9eaf Fix formatting 2000-07-20 00:31:39 +00:00
Andrew Cagney a28c02cd2b * m16.igen (break): Call SignalException not sim_engine_halt. 2000-07-20 00:02:22 +00:00
Nicholas Duffek 7c952b6dae * thread.c (free_thread): New function.
(init_thread_list): Always zero highest_thread_num.  Call
	free_thread() instead of free().
	(delete_thread): Move thread cleanup code to free_thread().
2000-07-19 21:03:06 +00:00
H.J. Lu f7db6139df 2000-07-19 H.J. Lu <hjl@gnu.org>
* readelf.c (process_dynamic_segment): Change DF_1_NODEPLIB
	to DF_1_NODEFLIB.
2000-07-19 18:45:46 +00:00
H.J. Lu 58ed230f72 2000-07-19 H.J. Lu <hjl@gnu.org>
* common.h (DF_1_NODEFLIB): Renamed from DF_1_NODEPLIB.
2000-07-19 18:43:35 +00:00
H.J. Lu d48188b96e 2000-07-19 H.J. Lu <hjl@gnu.org>
* elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2000-07-19 18:26:38 +00:00
H.J. Lu 05107a46ed 2000-07-19 H.J. Lu <hjl@gnu.org>
* readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
2000-07-19 18:24:32 +00:00
H.J. Lu df70244cd3 2000-07-19 H.J. Lu <hjl@gnu.org>
* common.h (DT_CHECKSUM): Set to 0x6ffffdf8.
	(DTF_1_CONFEXP): It is 0x00000002 as suspected.
2000-07-19 18:22:41 +00:00
H.J. Lu dcefbbbda0 2000-07-19 H.J. Lu <hjl@gnu.org>
* readelf.c (get_dynamic_type): Change DT_FEATURE_1 to
	DT_FEATURE.
	(process_dynamic_segment): Likewise.

	* readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT,
	DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM.
	(process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB,
	DF_1_NODUMP and DF_1_CONLFAT.
2000-07-19 18:03:18 +00:00
H.J. Lu 5b102b37d5 2000-07-19 H.J. Lu <hjl@gnu.org>
* common.h (DT_FEATURE): Renamed from DT_FEATURE_1.
	(DT_CONFIG): New. From Solaris 8.
	(DT_DEPAUDIT): Likewise.
	(DT_AUDIT): Likewise.
	(DT_PLTPAD): Likewise.
	(DT_MOVETAB): Likewise.
	(DF_1_NODEPLIB): Likewise.
	(DF_1_NODUMP): Likewise.
	(DF_1_CONLFAT): Likewise.
	(DT_CHECKSUM): Likewise. FIXME. Check the value on Solaris 8.
	(DTF_1_CONFEXP): Likewise.
2000-07-19 18:02:31 +00:00
H.J. Lu 9455883401 2000-07-19 H.J. Lu <hjl@gnu.org>
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
	DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
	DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
	DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
	DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
	DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
	DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2000-07-19 18:02:13 +00:00
H.J. Lu f980ada0e1 2000-07-19 H.J. Lu <hjl@gnu.org>
* sb.c: Include <stdlib.h> if exists for abort ().
2000-07-19 17:47:08 +00:00
Elena Zannoni cc17453a58 2000-07-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Multiarch the sh target.
	* sh-tdep.c:
	(sh_generic_reg_names, sh_reg_names,sh3_reg_names, sh3e_reg_names,
 	sh_dsp_reg_names, sh3_dsp_reg_names, sh_processor_type_table):
 	Remove.
	(XMALLOC): Define.
	(struct frame_extra_info): Define.
	(sh_register_raw_size, sh_register_virtual_size,
 	sh_register_virtual_type, sh_register_byte, sh_breakpoint_from_pc,
 	sh_frame_saved_pc, sh_skip_prologue,
 	sh_nofp_frame_init_saved_regs, sh_fp_frame_init_saved_regs,
 	sh_extract_struct_value_address, sh_use_struct_convention,
 	sh_store_struct_return, sh_push_arguments, sh_push_return_address,
 	sh_saved_pc_after_call, sh_generic_register_name,
 	sh_sh_register_name, sh_sh3_register_name, sh_sh3e_register_name,
 	sh_sh_dsp_register_name, sh_sh3_dsp_register_name,
 	sh_frame_args_address, sh_frame_locals_address,
 	sh_coerce_float_to_double, sh_default_store_return_value,
 	sh3e_sh4_store_return_value, sh_generic_show_regs,
 	sh3_show_regs,sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs,
 	sh_dsp_show_regs, sh_register_byte, sh_register_raw_size,
 	sh_register_virtual_size, sh_sh3e_register_virtual_type,
 	sh_default_register_virtual_type, sh_gdbarch_init): New functions.
	(sh_target_architecture_hook, sh_frame_find_saved_regs,
 	sh_show_regs): Delete functions.
	(sh_frame_chain, sh_find_callers_reg, sh_init_extra_frame_info,
 	sh_pop_frame, sh_extract_return_value): Update

	* config/sh/tm-sh.h (GDB_MULTI_ARCH): Define to 1.
	(struct gdbarch_tdep): Define.
	Remove all unnecessary defines.

	* remote-e7000.c ({PR,GBR,SR,MACL,VBR,MACH}_REGNUM): Define to -1,
 	for h8300 case.
	(want_sh,want_nopc_sh,want_nopc_sh3): Make nomenclature
 	consistent.
	(e7000_fetch_registers): Remove ifdef GDB_TARGET_IS_SH, use
 	runtime check instead.
	(e7000_wait): Ditto.

	* sh3-rom.c (sh3_supply_register): Use gdbarch_tdep to get the SSR
 	and SPC register numbers.
	(sh3_regnames, sh3e_regnames): Don't specify a size.

	* config/h8300/tm-h8300.h: Add comment.
2000-07-19 14:11:42 +00:00
Alan Modra 25a8b2508d #ifdef OBJ_SOM, not #ifdef SOM 2000-07-19 06:30:49 +00:00
Alan Modra 2ec0158338 Fix typos. 2000-07-19 05:16:11 +00:00
Alan Modra 81366cb8f6 Fix a couple of HPPA SOM test failures.
Re-enable some tests for hppa-linux.
2000-07-19 04:55:14 +00:00
Andrew Cagney 6ceadee453 * solib.c (elf_locate_base, info_sharedlibrary_command): Rename
bfd_elf_get_arch_size to bfd_get_arch_size.
2000-07-19 02:55:55 +00:00
Christopher Faylor 77d8f47a40 Fix typo. 2000-07-19 02:14:19 +00:00
H.J. Lu b2c5d9a323 2000-07-18 H.J. Lu <hjl@gnu.org>
* common.h (DT_FLAGS_1): Renamed from DT_1_FLAGS.
2000-07-19 00:33:45 +00:00
DJ Delorie 9d68bc829c * pe-dll.c (pe_dll_id_target): check object target name also 2000-07-19 00:04:04 +00:00
Nick Clifton 4b43d9f691 Fix expected results to match current assembler output. 2000-07-18 22:07:53 +00:00
Nick Clifton 125c4a69c4 Rename bfd_elf_get_arch_size to bfd_get_arch_size
Rename bfd_elf_get_sign_extend_vma  to  bfd_get_sign_extend_vma
2000-07-18 19:20:13 +00:00
Nick Clifton 6dbb55b600 Fix spelling typo. 2000-07-18 18:24:21 +00:00
Ulf Carlsson 31a9bdd961 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
	paranthesis in if statement.
2000-07-18 09:45:26 +00:00
Andrew Cagney 7f0e3f52b0 From Richard Henderson <rth@cygnus.com>:
* dwarf2read.c (dwarf2_empty_hash_tables): Renamed from
dwarf2_empty_die_ref_table; zero dwarf2_cached_types as well.
Update all callers.
2000-07-18 07:47:02 +00:00
Nick Clifton 7a9aaf929a Don't merge labels. Don't merge if the symbol isn't constant. Don't call
S_SET_EXTERNAL if the storage class is already set.
2000-07-17 23:27:31 +00:00
Hans-Peter Nilsson 53db15ed2a * scripttempl/elf.sc (.init): Only do ${INIT_START} and
${INIT_END} if relocating.
	(.fini): Likewise ${FINI_START} and ${FINI_END}.
2000-07-17 22:41:08 +00:00
Nick Clifton df09b66531 Additions due to recent changes 2000-07-17 21:41:40 +00:00
Nick Clifton fafb6d1700 Fix formatting. 2000-07-17 21:37:02 +00:00
Nick Clifton a2429eb555 Fix formatting. 2000-07-17 21:24:35 +00:00
Nick Clifton 87271fa61d Fix formatting. 2000-07-17 21:06:14 +00:00
Nick Clifton 8098403c53 Fix formatting 2000-07-17 20:59:47 +00:00
Daniel Berlin 7168a814a6 modify error message 2000-07-17 19:41:10 +00:00
Ulf Carlsson f7cb7d68c2 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
Enable the support for Traditional MIPS.
	* elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
	return ict_none appropriately for traditional mips targets.
	(STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
	(STUB_MOVE): Conditionalize for traditonal mips.
	(STUB_LI16): Likewise.
	(_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
	room for RTPROC header.
	(_bfd_mips_elf_modify_segment_map): For a normal mips executable set
	the permission for the PT_DYNAMIC as read, write and execute.
	(mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
	for traditonal mips.
	(_bfd_mips_elf_create_dynamic_sections): Add the symbol
	_DYNAMIC_LINKING for traditonal mips.
	(_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
	in case of traditonal mips.
	(_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
	entry is required. For a function if PLT is not required then set the
	corresponding hash table entry to 0.
	(_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
	traditonal mips.
	(_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
	shared object set the value to 0.
	(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
	_DYNAMIC_LINKING for traditonal mips.
	(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
	for traditonal mips.
2000-07-17 19:39:40 +00:00
DJ Delorie 0ad8cf4c25 * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
errors introduced by the old dynamic lib search order.
2000-07-17 18:59:58 +00:00
DJ Delorie 874c8c99db * pe-dll.c (process_def_file): auto-export data items also
(pe_process_import_defs): also see if _imp_ form needed
2000-07-17 18:40:47 +00:00
J.T. Conklin 67aa9423b0 2000-07-17 matthew green <mrg@redhat.com>
* config/sparc/nm-nbsd.h (GDB_GREGSET_T, GDB_FPREGSET_T): Define.
2000-07-17 18:11:56 +00:00
Frank Ch. Eigler 977e771a09 * new parsing option
2000-07-17  Frank Ch. Eigler  <fche@redhat.com>

	* expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
	is defined.
2000-07-17 17:51:18 +00:00
Hans-Peter Nilsson 2ed78d1b89 * testsuite/regress-demangle (failed test): Show result and
expected output.
(From GCC.)
2000-07-17 10:45:54 +00:00
Andrew Cagney 67b2adb2c3 Cast integers into pointers before converting them into canonical
addresses.
2000-07-17 03:39:34 +00:00
Andrew Cagney 4f823a66fa * gdb.base/exprs.exp: Test casts to a pointer including over and
underflow.
2000-07-17 02:56:12 +00:00
H.J. Lu 08c44e659e 2000-07-16 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/elfvsb.exp (support_protected): New variable. Check
	and set to "yes" if the protected visibility is expected to
	pass.
	(visibility_run): Set expected to fail for the "protected"
	and "protected_undef_def" tests only if $support_protected is
	"no".

	* ld-elfvsb/main.c (PROTECTED_CHECK): Check for the protected
	visibility support if defined.
2000-07-16 21:29:32 +00:00
H.J. Lu 1345a0c087 2000-07-15 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failure
	for "protected_undef_def".

	* ld-elfvsb/main.c: Don't define HIDDEN_UNDEF_TEST when
	PROTECTED_WEAK_TEST is defined.
	Don't define PROTECTED_UNDEF_TEST when PROTECTED_WEAK_TEST is
	defined.
	Define PROTECTED_TEST when PROTECTED_UNDEF_TEST is defined.

	* ld-elfvsb/sh1.c (visibility): Mark protected only if
	PROTECTED_TEST, PROTECTED_UNDEF_TEST or PROTECTED_WEAK_TEST
	is defined.
	(visibility_var): Likewise.
2000-07-15 23:57:20 +00:00
H.J. Lu 930d924dd4 2000-07-15 H.J. Lu <hjl@gnu.org>
* aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2000-07-15 18:42:01 +00:00
Daniel Berlin 802db21b61 Properly handle references 2000-07-15 17:40:30 +00:00
Ian Lance Taylor 63bf565122 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
@code.
2000-07-15 15:09:13 +00:00
Alan Modra 1cd1c99be6 (hppa_fix_adjustable): Don't reduce certain symbols to section syms. 2000-07-15 12:57:14 +00:00
Nick Clifton d547a75e6b *** empty log message *** 2000-07-14 22:28:24 +00:00
Nick Clifton 119d663aa4 Add new command line switch --no-construct-floats 2000-07-14 22:23:33 +00:00
Nicholas Duffek fe794dc69d * ppcbug-rom.c (ppcbug_regnames[]): Make array size implicit.
* rs6000-tdep.c (DEFAULT_LR_SAVE): Move to config/*/tm-*.h.
	(rs6000_gdbarch_init): Use generic_pc_in_call_dummy instead of
	rs6000_pc_in_call_dummy.
	* config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Move here from
	rs6000-tdep.c.
	* config/powerpc/tm-ppc-eabi.h: Remove various definitions
	handled by multi-arched rs6000-tdep.c.
2000-07-14 22:17:33 +00:00