Commit Graph

51711 Commits

Author SHA1 Message Date
Alan Modra 00bb149b28 * emultempl/elf-generic.em (map_segments): Reorganise loop so that
layout happens before segment map.  Don't do segment map on
	relocatable link.
2006-07-26 12:27:12 +00:00
Alan Modra a7f651f7f2 * ld-scripts/overlay-size-map.d: Update. 2006-07-26 05:10:05 +00:00
Alan Modra 66e28d60cb * ldexp.c (fold_name <LOADADDR>): Use the lma.
* ldlang.h (lang_memory_region_type): Delete old_length.  Add
	last_os.
	* ldlang.c (lang_memory_region_lookup): Init new field.
	(lang_reset_memory_regions): Reset new field.
	(lang_insert_orphan): Don't set load_base.
	(lang_leave_overlay): Likewise.
	(lang_size_sections_1): Delete unnecessary code setting lma_region
	to region.  Correct lma region check.
	(lang_do_assignments_1): Rename output_section_statement parm
	to current_os.  Set lma from previous section in region.
2006-07-26 05:05:52 +00:00
Alan Modra 329c1c8685 * ldlang.c: Formatting. 2006-07-26 00:42:33 +00:00
Bob Wilson b2f2897591 * emultempl/xtensaelf.em (xtensa_strip_inconsistent_linkonce_sections):
Set discarded section's output_section to bfd_abs_section_ptr.
2006-07-26 00:10:26 +00:00
Alan Modra 8bfba64fd7 daily update 2006-07-26 00:00:05 +00:00
gdbadmin 5c998c53f5 *** empty log message *** 2006-07-26 00:00:02 +00:00
Thiemo Seufer 6085129af6 * ld-mips-elf/mips16-call-global-2.s,
ld-mips-elf/mips16-call-global-3.s, ld-mips-elf/mips16-call-global.d:
	Improve test robustness.
2006-07-25 16:45:55 +00:00
Alan Modra 7544697a28 * ldlang.c (analyze_walk_wild_section_handler): Init handler_data
earlier.
2006-07-25 14:45:17 +00:00
Thiemo Seufer 2907b86184 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow
linking of objects for compatible machine types.
2006-07-25 09:17:57 +00:00
Thiemo Seufer c000e2621b * elfxx-mips.c (mips_elf_next_relocation): Tighten check to test
also for same symbol.
2006-07-25 09:06:05 +00:00
Thiemo Seufer 37caec6ba8 * elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant. 2006-07-25 09:01:02 +00:00
Paolo Bonzini 1d89b61077 Sync from GCC
2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>

        PR bootstrap/18058
        * configure.in: Add -fkeep-inline-functions to CFLAGS for stage 1
        if the bootstrap compiler is a GCC version that supports it.
        * configure: Regenerate.

config:
2006-07-21  David Daney  <ddaney@avtrex.com>

        PR libgcj/28426
        * gxx-include-dir.m4: Use target_alias in path for cross build.
2006-07-25 08:39:57 +00:00
Paolo Bonzini 1dc60eebce 2006-07-25 Paolo Bonzini <bonzini@gnu.org>
PR build/26188
        * stdint.m4: Test for uintptr_t even on systems with uint64_t or uint32_t.

	Sync from GCC
	2006-07-21  Steve Ellcey  <sje@cup.hp.com>

        PR target/26792
        * unwind_ipinfo.m4: New.
2006-07-25 08:32:44 +00:00
Daniel Jacobowitz ab5c9f60b7 gdb/
* eval.c (evaluate_subexp_for_address): Don't incorrectly discard
	calls to C++ operator*.
gdb/testsuite/
	* gdb.cp/userdef.cc, gdb.cp/userdef.exp: New tests for unary
	operator*.
2006-07-25 04:24:50 +00:00
Bob Wilson 644143c8e1 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Add space
in dep_sec_name for null terminator.  Make sure dep_sec_name has a
	".t" linkonce tag.
2006-07-25 00:20:09 +00:00
Alan Modra acf9f53ac1 daily update 2006-07-25 00:00:04 +00:00
gdbadmin 57d4f53f8b *** empty log message *** 2006-07-25 00:00:02 +00:00
Daniel Jacobowitz 725a826fe2 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
(gdb_int64_bytes): Likewise.
	(fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
	as first argument to extract_unsigned_integer to silence compiler
	warnings.
2006-07-24 22:04:13 +00:00
Frederic Riss 72dca2f5ad 2006-07-24 Frederic Riss <frederic.riss@st.com>
* dwarf2read.c (struct dwarf2_per_objfile): Add
has_section_at_zero
	field.
	(dwarf2_locate_sections): Initialize
	dwarf2_per_objfile->has_section_at_zero.
	(dwarf2_get_pc_bounds): Use
dwarf2_per_objfile->has_section_at_zero
	instead of HAS_RELOC test.
	(read_partial_die): Ditto.
2006-07-24 21:37:04 +00:00
Daniel Jacobowitz 4c42eaff63 gdb/
* corefile.c (reopen_exec_file): Only check for an open exec file.
	Use exec_file_attach.
	* exec.c (exec_open): Make static.
	(exec_file_command): Don't use target_preopen.  Query directly about
	changing the file.
	* gdbcore.h (exec_open): Remove prototype.
gdb/testsuite/
	* gdb.base/completion.exp: Update for change in "file" behavior.
	* gdb.stabs/weird.exp: Likewise.
	* lib/mi-support.exp (mi_gdb_file_cmd): Likewise.
	* lib/gdb.exp (gdb_file_cmd): Likewise.  Kill the program explicitly.
2006-07-24 20:38:08 +00:00
Frederic Riss b05e64e5fe 2006-07-21 Frederic Riss <frederic.riss@st.com>
* regcache.c (struct regcache): Make register_valid_p a signed
char
	array.
2006-07-24 20:10:48 +00:00
Daniel Jacobowitz 3f64f7b1c7 * linux-thread-db.c (thread_db_wait): Remove libthread_db
after exec events.
2006-07-24 18:57:32 +00:00
Daniel Jacobowitz 6aec2e11e5 * NEWS: Mention Windows cross debugging support. 2006-07-24 18:20:58 +00:00
Nick Clifton ff15b24025 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX, ELF_INTERPRETER_NAME): Set for *-*-solaris2*.
* elf.c (bfd_section_from_shdr): Reject unrecognised OS-specific sections
  only if the SHF_OS_NONCONFORMING flag is present.
2006-07-24 18:18:19 +00:00
Nick Clifton 4e22f78d85 PR ld/2729
* peXXigen.c (_bfd_XXi_final_link_postscript): Check for the existance of
  output sections before putting their entries into the DataDictionary.
2006-07-24 16:51:26 +00:00
Nick Clifton 601e61cdeb PR/2756
* read.c (read_a_source_file): Ignore unknown text after line comment
  character.  Fix misleading comment.
2006-07-24 16:30:55 +00:00
Nathan Sidwell 0155cc767d * gdb.base/auxv.exp: Skip on non-linux, non-solaris targets.
* gdb.base/cursal.exp: Use gdb_file_cmd first, then separate gdb_load.
2006-07-24 14:20:50 +00:00
Nick Clifton b45619c047 Fix spelling typos 2006-07-24 13:49:50 +00:00
gdbadmin 2f9c733339 *** empty log message *** 2006-07-24 00:00:33 +00:00
Alan Modra 5bbb12dfe3 daily update 2006-07-24 00:00:05 +00:00
Daniel Jacobowitz 83eba059ff * linux-nat.c (linux_nat_add_target): Remove extern.
* linux-nat.h (thread_db_init): New prototype.
2006-07-23 21:21:01 +00:00
Nick Clifton 50c77e5dcb * ldlang.c (lang_section_bst): New structure for sorting sections by name.
(wild_sort_fast): New function: Insert a section into a binary search tree.
  (output_section_callback_fast): New function: Store a section in BST.
  (output_section_callback_tree_to_list): New function: Convert a BST into a list.
  (analyze_walk_wild_section_handler): Initialize handler_data elements.
  (wild): If the data is sorted by name use the BST method to sort the names.
2006-07-23 15:32:08 +00:00
Daniel Jacobowitz b80864fbe5 gdb/
* configure.tgt: Build gdbserver for Cygwin and mingw32.
gdb/gdbserver/
	* configure.ac: Check for more headers which are missing on
	Windows.  Automatically supply -lwsock32 and USE_WIN32API.
	* configure.srv: Add Cygwin and mingw32.
	* remote-utils.c: Don't include headers unconditionally which
	are missing on mingw32.  Include <winsock.h> for mingw32.
	(remote_open): Adjust for mingw32 support.  Flush
	standard error after writing to it.
	(remote_close, putpkt_binary, input_interrupt, block_async_io)
	(unblock_async_io, enable_async_io, disable_async_io)
	(readchar, getpkt): Update for Winsock support.
	(prepare_resume_reply): Expect a protocol signal number.
	* server.c: Disable <sys/wait.h> on mingw32.
	(start_inferior): Adjust for mingw32 support.  Flush
	standard error after writing to it.
	(attach_inferior): Likewise.  Use protocol signal
	numbers.
	(main): Skip 'D' packet on mingw32.  Use protocol signal numbers
	and names.
	* win32-i386-low.c: New file.
	* Makefile.in (XM_CLIBS): Set.
	(gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
	(win32-i386-low.o): New dependency rule.
	* linux-low.c (linux_wait): Use target signal numbers.
	* target.h (struct target_ops): Doc fix.
	* server.h (target_signal_to_name): New prototype.
	* gdbreplay.c: Don't include headers unconditionally which
	are missing on mingw32.  Include <winsock.h> for mingw32.
	(remote_close, remote_open): Adjust for Winsock support.
	* configure, config.in: Regenerated.
2006-07-23 03:52:15 +00:00
Daniel Jacobowitz 66a79c16a6 * configure.in: Allow mingw32 and cygwin targets to build cross-gdb.
* configure: Regenerated.
gdb/
	* config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
	* config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
	* config/i386/tm-cygwin.h: Delete file.
2006-07-23 03:47:44 +00:00
Alan Modra bdccea594e daily update 2006-07-23 00:00:06 +00:00
gdbadmin 990b869d9b *** empty log message *** 2006-07-23 00:00:03 +00:00
Mark Kettenis fc5261f2f3 * infrun.c (handle_inferior_event): Typo. 2006-07-22 14:48:03 +00:00
Alan Modra da6d0c5be1 daily update 2006-07-22 00:00:06 +00:00
gdbadmin f55b8bc24b *** empty log message *** 2006-07-22 00:00:04 +00:00
Andrew Stubbs 16026cd75d 2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-cmds.c (source_verbose, trace_commands): New variables.
	(source_script): New function.
	(source_verbose_cleanup): New function.
	(source_command): Move old contents to source_script.
	Make function static. Parse -v option and call source_script.
	(init_cli_cmds): Update source command help.
	Add 'set trace-commands' command.
	* cli/cli-script.c (command_next_depth): New static variable.
	(suppress_next_print_command_trace): New static variable.
	(reset_command_nest_depth): New function.
	(print_command_trace): New function.
	(execute_control_command): Split the continue_control and break_control
	cases, add calls to print_command_trace and count the nest depth.
	(while_command): Set suppress_next_print_command_trace.
	(if_command): Likewise.
	* top.c (execute_command): Call print_command_trace.
	* cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
	(source_command): Change to source_script.
	* main.c (captued_main): Use source_script instead of source_command.
	* top.h (source_command): Change to source_script.
	* event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
	* cli/cli-script.h (print_command_trace): Export.
	(reset_command_nest_depth): Likewise.

docs/
	* gdb.texinfo (Optional warnings and messages): Add
	'set/show trace-commands'.
	(Command files): Add '-v' to source command.

testsuite/
	* gdb.base/default.exp: Update source command error message.
	* gdb.base/help.exp: Update 'help source' message.
2006-07-21 14:46:56 +00:00
Nick Clifton 3e4cf9243a * ld-sh/arch/arch.exp (test_arch): Set the endian flag to suit the multilib
being tested.
2006-07-21 09:56:40 +00:00
Nick Clifton 784906c5f1 * config/tc-sh.c (md_longopts): Add -EL and -EB for use by the linker testsuite. 2006-07-21 09:46:15 +00:00
gdbadmin 4c6dbf3a9b *** empty log message *** 2006-07-21 00:00:34 +00:00
Alan Modra f805a26ad0 daily update 2006-07-21 00:00:09 +00:00
Michael Meissner 46e742443d Update amd family 10 instructions to add appropriate alignment for cygwin 2006-07-20 23:09:32 +00:00
Daniel Jacobowitz 16963cb64b gdb/
* eval.c (evaluate_struct_tuple): Skip static fields.
gdb/testsuite/
	* gdb.cp/bs15503.exp: Update comment for no longer crashing
	test.
2006-07-20 22:50:07 +00:00
Thiemo Seufer d5f010e93b * config/tc-mips.c (md_parse_option): Don't infer optimisation
options from debug options.
2006-07-20 16:51:38 +00:00
Thiemo Seufer 35d3d567cc [ bfd/ChangeLog ]
* elf32-mips.c (mips16_jump_reloc): Remove function.
	(elf_mips16_howto_table_rel): Use _bfd_mips_elf_generic_reloc
	instead of mips16_jump_reloc.
	* elf64_mips.c, wlfn32-mips.c (mips16_jump_reloc): Remove function.
	(elf_mips16_howto_table_rel, elf_mips16_howto_table_rela): Use
	_bfd_mips_elf_generic_reloc instead of mips16_jump_reloc.

	[ gas/ChangeLog ]
	* config/tc-mips.c (mips_fix_adjustable): Handle BFD_RELOC_MIPS16_JMP.
	(tc_gen_reloc): Handle mips16 jumps to section symbol offsets.

	[ ld/testsuite/ChangeLog ]
	* ld-mips-elf/mips16-call-global-1.s,
	ld-mips-elf/mips16-call-global-2.s,
	ld-mips-elf/mips16-call-global-3.s, ld-mips-elf/mips16-call-global.d:
	Test linking of external mips16 jumps.
	* ld-mips-elf/mips-elf.exp: Run new test.
2006-07-20 16:46:30 +00:00
gdbadmin 5fa2b1af8c *** empty log message *** 2006-07-20 00:00:06 +00:00