Commit Graph

39330 Commits

Author SHA1 Message Date
Stephane Carrez e2cebd4bde * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
* emulparams/m68hc11elfb.sh: Likewise.
	* emulparams/m68hc12elf.sh: Likewise.
	* emulparams/m68hc12elfb.sh: Likewise.
2003-04-21 13:29:05 +00:00
Stephane Carrez f5a6f91565 * Makefile.am (BFD32_BACKENDS): Add elf32-m68hc1x.lo.
(elf32-m68hc1x.lo): Update dependencies
	* configure.in: Add elf32-m68hc1x.lo.
	* configure: Rebuild.
	* Makefile.in: Rebuild.
2003-04-21 13:24:19 +00:00
Stephane Carrez 3a65329d1f * elf32-m68hc1x.c: New file (from elf32-m68hc11.c and elf32-m68hc12.c)
(m68hc11_elf_hash_table_create): New function.
	(elf32_m68hc11_link_hash_table_free): New function.
	(stub_hash_newfunc): New function.
	(m68hc11_add_stub): New function.
	(elf32_m68hc11_add_symbol_hook): New function.
	(elf32_m68hc11_setup_section_lists): New function.
	(elf32_m68hc11_next_input_section): New function.
	(elf32_m68hc11_size_stubs): New function.
	(elf32_m68hc11_build_stubs): New function.
	(m68hc11_get_relocation_value): New function.
	(elf32_m68hc11_relocate_section): Call the above to redirect
	some relocations to the trampoline code.
	(m68hc11_elf_export_one_stub): New function.
	(m68hc11_elf_set_symbol): New function.
	(elf32_m68hc11_build_stubs): Call it via bfd_hash_traverse.
	(m68hc11_elf_get_bank_parameters): Get parameters only when the info
	is not yet initialized.

	* elf32-m68hc1x.h: New file (from elf32-m68hc11.c and elf32-m68hc12.c)
	(elf32_m68hc11_stub_hash_entry): New struct.
	(m68hc11_page_info): Add trampoline handler address.
	(m68hc11_elf_link_hash_table): Add stubs generation members.
	(elf32_m68hc11_add_symbol_hook): Declare.
	(elf32_m68hc11_setup_section_lists): Declare.
	(elf32_m68hc11_size_stubs): Declare.
	(elf32_m68hc11_build_stubs): Declare.

	* elf32-m68hc11.c (m68hc11_elf_ignore_reloc): Move to elf32-m68hc1x.c.
	(elf32_m68hc11_gc_mark_hook, elf32_m68hc11_gc_sweep_hook): Likewise.
	(elf32_m68hc11_check_relocs, elf32_m68hc11_relocate_section): Ditto.
	(_bfd_m68hc11_elf_set_private_flags): Ditto.
	(_bfd_m68hc11_elf_merge_private_bfd_data): Ditto.
	(_bfd_m68hc11_elf_print_private_bfd_data): Ditto.
	(bfd_elf32_bfd_link_hash_table_create): Define.
	(elf_backend_add_symbol_hook): Define.
	(m68hc11_elf_bfd_link_hash_table_create): New function.
	(m68hc11_elf_build_one_stub): New function.
	(m68hc11_elf_size_one_stub): New function.
	(m68hc11_elf_bfd_link_hash_table_create): Install the above.
	(bfd_elf32_bfd_link_hash_table_create): Define.

	* elf32-m68hc12.c (m68hc11_elf_ignore_reloc): Remove.
	(m68hc12_addr_is_banked): Remove, use m68hc11_addr_is_banked.
	(m68hc12_phys_addr): Ditto.
	(m68hc12_phys_page): Ditto.
	(m68hc12_elf_special_reloc): Move to elf32-m68hc1x.c.
	(elf32_m68hc11_gc_mark_hook): Likewise.
	(elf32_m68hc11_gc_sweep_hook): Likewise.
	(elf32_m68hc11_check_relocs): Likewise.
	(elf32_m68hc11_relocate_section): Likewise.
	(_bfd_m68hc12_elf_set_private_flags): Likewise.
	(_bfd_m68hc12_elf_merge_private_bfd_data): Likewise.
	(_bfd_m68hc12_elf_print_private_bfd_data): Likewise.
	(m68hc12_elf_build_one_stub): New function.
	(m68hc12_elf_size_one_stub): New function.
	(m68hc12_elf_bfd_link_hash_table_create): New function, use the above.
	(elf_backend_add_symbol_hook): Define.
	(elf_m68hc11_howto_table): Use TRUE for pcrel relocs; fix masks.
2003-04-21 13:22:14 +00:00
Alan Modra 81eca1a78a daily update 2003-04-21 00:00:05 +00:00
gdbadmin 7d6c247d0e *** empty log message *** 2003-04-21 00:00:02 +00:00
gdbadmin 0abe530a33 *** empty log message *** 2003-04-20 00:00:31 +00:00
Alan Modra 042a96132e daily update 2003-04-20 00:00:07 +00:00
Mark Kettenis c40e1eabaf * i386-tdep.c (i386_num_register_names): New variable.
(i386_num_mmx_regs): Renamed from mmx_num_regs.
(MM0_REGNUM): Remove redundant parentheses in define.
(i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
(i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
i386_mxcsr_regnum_p): Remove redundant parentheses.
(i386_register_name): Use i386_num_register_names.
2003-04-19 14:43:50 +00:00
Mark Kettenis 94ea66b376 * i386-tdep.c (i386_extract_return_value,
i386_store_return_value): Correct check for availability of
floating-point registers.
2003-04-19 14:38:47 +00:00
Mark Kettenis 54299a1dfc * i386-tdep.c (i386_frame_num_args): Remove function.
(i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2003-04-19 14:34:31 +00:00
Mark Kettenis c86c27affb * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
mmx_regnum_to_fp_regnum.  Adjust all callers.
2003-04-19 14:30:33 +00:00
Mark Kettenis f9d3c2a8ad * i386-tdep.c (i386_get_longjmp_target): Use
TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
and TARGET_CHAR_BIT.  Use extract_typed_address instead of
extract_address.
2003-04-19 14:26:15 +00:00
Mark Kettenis 94ba74a9fa * core-regset.c: Update comments to reflect reality. Re-order
includes.
(fetch_core_registers): Use switch instead of if.  Remove
redundant prototype.
2003-04-19 12:00:48 +00:00
Stephane Carrez 67bb994066 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
68HC11 and 68HC12.
	(LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
	generate.
	(LDEMUL_FINISH): Override to generate the trampolines after gc and
	linker relaxation.
	(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
	stub file for trampolines.
	(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
	--no-trampoline and --bank-window to control the memory bank window.
2003-04-19 08:26:38 +00:00
DJ Delorie 62a3fc85ab * Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.
* Makefile.in: Regenerate.

* configure.in (powerpc64*-*-linux*): Remove.
* configure: Rebuilt.
2003-04-19 00:19:40 +00:00
Alan Modra e136427c23 daily update 2003-04-19 00:00:06 +00:00
gdbadmin d6ae4bd9d3 *** empty log message *** 2003-04-19 00:00:02 +00:00
Jim Blandy 4074e13c63 * s390-tdep.c (s390_frame_align): New function.
(s390_gdbarch_init): Register it with the gdbarch object.
2003-04-18 20:20:21 +00:00
H.J. Lu 97b51f20ac 2003-04-18 H.J. Lu <hjl@gnu.org>
* ldfile.c (ldfile_add_library_path): Remove the unused
	variable.
2003-04-18 15:33:49 +00:00
Jakub Jelinek e5f08f7e33 * ehopt.c (check_eh_frame): For aug_size == 0
in state_seeing_aug_size state skip the state_skipping_aug
	state.
2003-04-18 11:53:12 +00:00
Nick Clifton 517ed4859c Define __data and __rdata 2003-04-18 08:26:17 +00:00
Nick Clifton 4081944fd1 Only check associated vector if the matching_vector has been created. 2003-04-18 08:06:01 +00:00
Richard Henderson e3ab4aba1a * remote.c (minitelnet): Don't redeclare escape_count, echo_check. 2003-04-18 00:21:38 +00:00
Alan Modra ef574fb1a5 daily update 2003-04-18 00:00:06 +00:00
gdbadmin efc864b149 *** empty log message *** 2003-04-18 00:00:01 +00:00
DJ Delorie 5b474aa89a * Makefile.tpl (GCC_STRAP_TARGETS): New variable containing all the
previous bootstrap targets, plus bubblestrap, quickstrap, cleanstrap,
and restrap.
* Makefile.in:  Regenerate.

* configure.in (arm-*-netbsdelf*): Enable building java libraries.
* configure: Regenerated.
2003-04-17 21:30:52 +00:00
Elena Zannoni 627bf7c1c7 2003-04-17 Michael Snyder <msnyder@redhat.com>
Karen Bennet  <bennet@redhat.com>

	Committed by Elena Zannoni  <ezannoni@redhat.com>
	* gdb_gcore.sh: New script to create a core dump of a process.
2003-04-17 20:33:09 +00:00
Elena Zannoni 514621a981 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
* values.c (value_being_returned): Don't fetch the return
        value if the return type is void.
2003-04-17 20:31:43 +00:00
Jeff Johnston b4acd5590b 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
* thread-db.c: Reindented.
2003-04-17 17:30:02 +00:00
Jeff Johnston 530b167e9a 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
* gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
        td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
        as types.
2003-04-17 17:18:49 +00:00
gdbadmin f32ffeb535 *** empty log message *** 2003-04-17 00:00:32 +00:00
Alan Modra 4a2c63e9d1 daily update 2003-04-17 00:00:05 +00:00
DJ Delorie 2ed1e5cc55 merge from gcc 2003-04-16 23:09:21 +00:00
Kevin Buettner 610a37459e Fix typo. 2003-04-16 20:44:04 +00:00
Kevin Buettner ab9fe00ef0 * rs6000-tdep.c (rs6000_gdbarch_init): For the SVR4 ABI, set
the size of ``long double'' to 16, instead of 8.
2003-04-16 20:41:46 +00:00
Kevin Buettner c8c4d8dcfb * gdb.base/args.exp: Invoke gdb_load for simulator targets. 2003-04-16 20:29:42 +00:00
Elena Zannoni 3fe60e3c14 2003-04-16 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Make 'info func mark' complete on 'info
        func marke' instead. Update test name.
2003-04-16 20:07:08 +00:00
Mark Kettenis e64a344cc8 * i386-linux-nat.c: Add some whitespace to make things more
readable.
(fetch_register, store_register, fetch_inferior_registers,
store_inferior_registers): Get rid of assignment in if-statement.
(store_register): Fix typo in error message.
2003-04-16 15:22:02 +00:00
Andrew Cagney 25d4103164 2003-04-16 Andrew Cagney <cagney@redhat.com>
* utils.c (xmmalloc): Always allocate something, matches
	libiberty/xmalloc's semantics.
	(xmrealloc, xmcalloc): Ditto.
2003-04-16 14:43:03 +00:00
Andrew Cagney c50901fda0 2003-04-16 Andrew Cagney <cagney@redhat.com>
* frame.c (get_prev_frame): Do not initialize "unwind" or "type",
	update comments.
	(get_frame_type): Initialize unwind and type when needed.
	(get_frame_id, frame_register_unwind): Ditto.
2003-04-16 14:39:47 +00:00
Andrew Cagney f81824a9ed 2003-04-16 Andrew Cagney <cagney@redhat.com>
* NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
	obsolete.
	* sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
	* sparcl-stub.c: Obsolete file.
	* config/sparc/tm-sparclet.h: Obsolete file.
	* sparclet-stub.c: Obsolete file.
	* sparclet-rom.c: Obsolete file.
	* sparcl-tdep.c: Obsolete file.
	* config/sparc/tm-sparclite.h: Obsolete file.
	* config/sparc/sparclite.mt: Obsolete file.
	* config/sparc/sparclet.mt: Obsolete file.
	* configure.tgt: Make sparclet-*-*, sparclite-*-*, and
	sparc86x-*-* obsolete.
2003-04-16 14:32:21 +00:00
Nick Clifton 39f1ebed0b Add .jcr section mapping. 2003-04-16 11:53:46 +00:00
DJ Delorie b496f1528d merge from gcc 2003-04-16 04:55:31 +00:00
DJ Delorie 10b57b38b3 merge from gcc 2003-04-16 03:51:54 +00:00
Andrew Cagney 601da3163f Fix changelog. 2003-04-16 00:58:40 +00:00
Chris Demetriou bcd0068ecf 2003-04-15 Richard Sandiford <rsandifo@redhat.com>
* vr.igen (do_vr_mul_op): Zero-extend the low 32 bits of
        unsigned operands.
2003-04-16 00:52:08 +00:00
Alexandre Oliva 060dc71d21 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Fix typo in
2003-04-09's change.
2003-04-16 00:30:24 +00:00
gdbadmin 897dafdda2 *** empty log message *** 2003-04-16 00:00:31 +00:00
Alan Modra 9ba3f0f225 daily update 2003-04-16 00:00:05 +00:00
David Carlton 9219021cb5 2003-04-15 David Carlton <carlton@math.stanford.edu>
* Makefile.in (SFILES): Add cp-namespace.c.
	(COMMON_OBS): Add cp-namespace.o.
	(block.o): Depend on gdb_obstack_h and cp_support_h.
	(buildsym.o): Depend on cp_support_h.
	(cp-namespace.o): New.
	(cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
	gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
	(dwarf2read.o): Depend on cp_support_h.
	* jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
	* dwarf2read.c (process_die): Set processing_has_namespace_info,
	processing_current_namespace.
	(read_namespace): Update processing_current_namespace; check for
	anonymous namespaces.
	(dwarf2_name): New function.
	(dwarf2_extension): Ditto.
	* cp-support.h: Update copyright, contributors.
	Add inclusion guards.
	Add opaque declaration for structs obstack, block, symbol.
	(struct using_direct): New struct.
	Add declarations for cp_find_first_component,
	cp_entire_prefix_len, processing_has_namespace_info,
	processing_current_namespace, cp_is_anonymous,
	cp_add_using_directive, cp_initialize_namespace,
	cp_finalize_namespace, cp_set_block_scope,
	cp_scan_for_anonymous_namespaces.
	* cp-namespace.c: New file.
	* cp-support.c: Update copyright.
	Include ctype.h, gdb_assert.h, gdbcmd.h.
	New variable maint_cplus_cmd_list.
	(cp_find_first_component): New function.
	(cp_entire_prefix_len, maint_cplus_command)
	(first_component_command, _initialize_cp_support): Ditto.
	* buildsym.c: Include cp-support.h.
	New variable using_list.
	(add_symbol_to_list): Check for anonymous namespaces.
	(finish_block): Set block's scope.
	(start_symtab): Initialize C++ namespace support.
	(end_symtab): Finalize C++ namespace support.
	* block.h: Add opaque declarations for structs
	block_namespace_info, using_direct, and obstack.
	Add declarations for block_set_scope and block_set_using.
	(struct block): Add 'language_specific' member.
	(BLOCK_NAMESPACE): New macro.
	* block.c: Include gdb_obstack.h and cp-support.h.
	(struct block_namespace_info): New struct.
	(block_set_scope): New function.
	(block_set_using, block_initialize_namespace): Ditto.

2003-04-15  David Carlton  <carlton@math.stanford.edu>

	* gdb.c++/maint.exp: New file.
2003-04-15 23:07:11 +00:00