Daniel Jacobowitz
b0f4b84b5c
* infrun.c (inferior_ignoring_startup_exec_events): Delete.
...
(start_remote): Use STOP_QUIETLY_REMOTE.
(handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
support on a SOLIB_ADD definition. Update breakpoints_inserted.
Update to match shared library event breakpoint support. Only
resume if appropriate. Handle STOP_QUIETLY_REMOTE.
(normal_stop): Handle TARGET_WAITKIND_LOADED.
* fork-child.c (startup_inferior): Do not set
inferior_ignoring_startup_exec_events
* inferior.h (inferior_ignoring_startup_exec_events): Delete
declaration.
(enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
* config/gdbserver.exp (gdb_reconnect): New.
* gdb.base/so-disc-shr.c, gdb.base/solib-disc.c,
gdb.base/solib-disc.exp: New files.
* lib/gdb.exp (gdb_test_multiple): Allow tests to match "Ending
remote debugging".
(gdb_compile): Add shlib_load flag.
* lib/gdbserver-support.exp (gdbserver_run): Save the protocol and
port.
(gdbserver_reconnect): New.
2007-07-02 21:29:28 +00:00
Ulrich Weigand
9bbf65bb08
2007-07-02 Markus Deuling <deuling@de.ibm.com>
...
* breakpoint.c (insert_bp_location): Remove dead code
(DISABLE_UNSETTABLE_BREAK).
(disable_breakpoints_in_shlibs)
(disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2007-07-02 18:30:19 +00:00
Mike Stump
d3f5afc4f9
* acx.m4 (ACX_CHECK_INSTALLED_TARGET_TOOL): Fixup logic for cross
...
builds.
* acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Fix incremental builds.
(ACX_HAVE_GCC_FOR_TARGET): Likewise.
2007-07-02 18:06:53 +00:00
Daniel Jacobowitz
a4954f26af
* breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
...
Call insert_bp_location.
2007-07-02 16:14:01 +00:00
Nathan Sidwell
82c01eb610
* ld-scripts/alignof.exp: Skip on non-elf
2007-07-02 15:56:46 +00:00
Daniel Jacobowitz
ae13219ef8
* inferiors.c (change_inferior_id): Add comment.
...
* linux-low.c (check_removed_breakpoint): Add an early
prototype. Improve debug output.
(linux_attach): Doc update.
(linux_detach_one_process, linux_detach): Clean up before releasing
each process.
(send_sigstop, wait_for_sigstop): Improve comments and debug output.
* linux-low.h (struct process_info): Doc improvement.
* mem-break.c (delete_all_breakpoints): New.
* mem-break.h (delete_all_breakpoints): New prototype.
* thread-db.c (find_first_thread): New.
(thread_db_create_event): Call it instead of
thread_db_find_new_threads. Clean up unused variables.
(maybe_attach_thread): Remove first thread handling.
(thread_db_find_new_threads): Use find_first_thread.
(thread_db_get_tls_address): Likewise.
2007-07-02 15:35:36 +00:00
Joseph Myers
741d6ea85b
bfd:
...
* elfxx-mips.c (mips_elf_calculate_relocation): Handle
R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
* elf64-mips.c (mips_elf64_howto_table_rela): Support
R_MIPS_TLS_DTPREL64.
gas:
* config/tc-mips.c (s_dtprelword, s_dtpreldword,
s_dtprel_internal): New.
(mips_pseudo_table): Add .dtprelword and .dtpreldword.
(md_apply_fix): Handle BFD_RELOC_MIPS_TLS_DTPREL32 and
BFD_RELOC_MIPS_TLS_DTPREL64.
2007-07-02 10:49:42 +00:00
Alan Modra
e205a09915
PR 4716
...
* objcopy.c (filter_symbols): Correct relocatable file test.
2007-07-02 08:05:06 +00:00
Alan Modra
ae351704e2
Regenerate files.
2007-07-02 07:12:53 +00:00
Alan Modra
3e5484dbb9
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
...
symsec != NULL tests.
2007-07-02 06:51:57 +00:00
Alan Modra
08a40648e5
PR 4712
...
* elf.c (assign_file_positions_for_load_sections): Adjust lma
by p_vaddr_offset.
2007-07-02 06:47:43 +00:00
Alan Modra
8d452c7870
* config/tc-ppc.c (ppc_pe_section): Comment out code assigning
...
coff section flag values to bfd section flag.
2007-07-02 02:11:56 +00:00
H.J. Lu
b48516f9cd
2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
...
* core-regset.c (fetch_core_registers): Work around gcc 3.4
alias warning bug.
2007-07-02 00:03:29 +00:00
Alan Modra
3adf154903
daily update
2007-07-02 00:00:06 +00:00
gdbadmin
c0598e6a6c
*** empty log message ***
2007-07-02 00:00:02 +00:00
Daniel Jacobowitz
962257181f
* minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
...
objfiles.
2007-07-01 22:39:04 +00:00
Daniel Jacobowitz
1b05479a47
2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
...
* top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
(struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
(gdb_readline_wrapper_cleanup): Do not reset the prompt.
(gdb_readline_wrapper): Do not save the prompt. Pass our prompt
to display_gdb_prompt.
2007-07-01 Nick Roberts <nickrob@snap.net.nz>
Daniel Jacobowitz <dan@codesourcery.com>
* gdb.base/annota3.exp: Test for if construct.
2007-07-01 22:37:52 +00:00
Daniel Jacobowitz
5ad3a4ca20
PR symtab/2161
...
* target.c (memory_xfer_partial): Do not continue past targets with
all memory.
2007-07-01 22:35:55 +00:00
Jan Kratochvil
159fcc13bb
* gdb.texinfo (Attach): Fixed GDB exit inferior detachment.
2007-07-01 09:13:05 +00:00
Alan Modra
89526cc00d
daily update
2007-07-01 00:00:04 +00:00
gdbadmin
b726c1c10c
*** empty log message ***
2007-07-01 00:00:03 +00:00
H.J. Lu
86b57e315d
bfd/
...
2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
* aclocal.m4: Regenerated.
* Makefile.in: Likewise.
bfd/doc/
2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in: Likewise.
binutils/
2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
* aclocal.m4: Regenerated.
* doc/Makefile.in: Likewise.
* Makefile.in: Likewise.
gas/
2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
* aclocal.m4: Regenerated.
* doc/Makefile.in: Likewise.
* Makefile.in: Likewise.
gprof/
2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
* aclocal.m4: Regenerated.
* Makefile.in: Likewise.
ld/
2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
* aclocal.m4: Regenerated.
* Makefile.in: Likewise.
opcodes/
2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
* aclocal.m4: Regenerated.
* Makefile.in: Likewise.
2007-06-30 17:21:16 +00:00
Andreas Schwab
4713453b1e
* m68k-tdep.c (m68k_ps_type): New.
...
(m68k_init_types): New.
(m68k_register_type): Use m68k_ps_type for PS register.
(_initialize_m68k_tdep): Call m68k_init_types.
2007-06-30 17:15:15 +00:00
Andreas Schwab
4ed7793328
* m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
...
from the generic m68k arch.
2007-06-30 15:35:19 +00:00
Joseph Myers
34c8bcbae2
bfd:
...
* elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
(ppc_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_power_gnu_attribute, process_power_specific):
New.
(process_arch_specific): Call process_power_specific.
include/elf:
* ppc.h (Tag_GNU_Power_ABI_FP): Define.
ld/testsuite:
* ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d,
ld-powerpc/attr-gnu-4-01.d, ld-powerpc/attr-gnu-4-02.d,
ld-powerpc/attr-gnu-4-1.s, ld-powerpc/attr-gnu-4-10.d,
ld-powerpc/attr-gnu-4-11.d, ld-powerpc/attr-gnu-4-12.d,
ld-powerpc/attr-gnu-4-13.d, ld-powerpc/attr-gnu-4-2.s,
ld-powerpc/attr-gnu-4-20.d, ld-powerpc/attr-gnu-4-21.d,
ld-powerpc/attr-gnu-4-22.d, ld-powerpc/attr-gnu-4-3.s,
ld-powerpc/attr-gnu-4-31.d: New.
* ld-powerpc/powerpc.exp: Run these new tests.
2007-06-30 00:03:40 +00:00
Alan Modra
89ebe69733
daily update
2007-06-30 00:00:05 +00:00
gdbadmin
6b2e58e2a6
*** empty log message ***
2007-06-30 00:00:02 +00:00
H.J. Lu
f85fcb85a6
2007-06-29 H.J. Lu <hongjiu.lu@intel.com>
...
* i386-reg.tbl: Remove spaces before comments.
2007-06-29 20:07:53 +00:00
Joseph Myers
7ace4e4c06
* as.c (main): Only call create_obj_attrs_section if IS_ELF.
2007-06-29 20:04:26 +00:00
H.J. Lu
a19bcec6a7
2007-06-29 H.J. Lu <hongjiu.lu@intel.com>
...
* NEWS: Remove a line with '*' only.
2007-06-29 18:44:09 +00:00
Joseph Myers
2cf19d5cb9
bfd:
...
* elfxx-mips.c (mips_elf_merge_obj_attributes): New.
(_bfd_mips_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_mips_gnu_attribute): New.
(process_mips_specific): Call process_attributes.
include/elf:
* mips.h (Tag_GNU_MIPS_ABI_FP): Define.
ld/testsuite:
* ld-mips-elf/attr-gnu-4-0.s, ld-mips-elf/attr-gnu-4-00.d,
ld-mips-elf/attr-gnu-4-01.d, ld-mips-elf/attr-gnu-4-02.d,
ld-mips-elf/attr-gnu-4-03.d, ld-mips-elf/attr-gnu-4-1.s,
ld-mips-elf/attr-gnu-4-10.d, ld-mips-elf/attr-gnu-4-11.d,
ld-mips-elf/attr-gnu-4-12.d, ld-mips-elf/attr-gnu-4-13.d,
ld-mips-elf/attr-gnu-4-14.d, ld-mips-elf/attr-gnu-4-2.s,
ld-mips-elf/attr-gnu-4-20.d, ld-mips-elf/attr-gnu-4-21.d,
ld-mips-elf/attr-gnu-4-22.d, ld-mips-elf/attr-gnu-4-23.d,
ld-mips-elf/attr-gnu-4-3.s, ld-mips-elf/attr-gnu-4-30.d,
ld-mips-elf/attr-gnu-4-31.d, ld-mips-elf/attr-gnu-4-32.d,
ld-mips-elf/attr-gnu-4-33.d, ld-mips-elf/attr-gnu-4-4.s,
ld-mips-elf/attr-gnu-4-41.d: New.
* ld-mips-elf/mips-elf.exp: Run these new tests.
2007-06-29 16:41:32 +00:00
Joseph Myers
104d59d19c
bfd:
...
* elf-attrs.c: New.
* Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
(BFD32_BACKENDS_CFILES): Add elf-attrs.c.
(elf-attrs.lo): Generate dependencies.
* Makefile.in: Regenerate.
* configure.in (elf): Add elf-attrs.lo.
* configure: Regenerate.
* elf-bfd.h (struct elf_backend_data): Add entries for object
attributes.
(NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
New.
(struct elf_obj_tdata): Add entries for object attributes.
(elf_known_obj_attributes, elf_other_obj_attributes,
elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
New.
(bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
_bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
_bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
* elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
(bfd_section_from_shdr): Handle attributes sections.
* elflink.c (bfd_elf_final_link): Handle attributes sections.
* elfxx-target.h (elf_backend_obj_attrs_vendor,
elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
elf_backend_obj_attrs_section_type): New.
(elfNN_bed): Update.
* elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
aeabi_attribute_list): Remove.
(struct elf32_arm_obj_tdata): Remove object attributes fields.
(check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
Update for new object attributes interfaces.
(uleb128_size, is_default_attr, eabi_attr_size,
elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
elf32_arm_add_eabi_attr_int, attr_strdup,
elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
to generic code in elf-attrs.c.
(elf32_arm_obj_attrs_arg_type): New.
(elf32_arm_fake_sections): Do not handle .ARM.attributes.
(elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
(bfd_elf32_bfd_final_link): Remove.
(elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
elf_backend_obj_attrs_arg_type,
elf_backend_obj_attrs_section_type): New.
* elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
attributes.
* elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
* elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
* elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
* elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
* elf32-sh.c (sh_elf_copy_private_data): Likewise.
* elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
binutils:
* readelf.c (display_gnu_attribute): New.
(process_arm_specific): Rearrange as process_attributes.
(process_arm_specific): Replace by wrapper of process_attributes.
gas:
* as.c (create_obj_attrs_section): New.
(main): Call create_obj_attrs_section for ELF.
* read.c (s_gnu_attribute, skip_whitespace, skip_past_char,
skip_past_comma, s_vendor_attribute): New.
(potable): Add gnu_attribute for ELF.
* read.h (s_vendor_attribute): Declare.
* config/tc-arm.c (s_arm_eabi_attribute): Replace by wrapper
round s_vendor_attribute.
(aeabi_set_public_attributes): Update for new attributes
interfaces.
(arm_md_end): Remove attributes contents setting now done
generically.
include/elf:
* arm.h (elf32_arm_add_eabi_attr_int,
elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
elf32_arm_get_eabi_attr_int, elf32_arm_set_eabi_attr_contents,
elf32_arm_eabi_attr_size, Tag_NULL, Tag_File, Tag_Section,
Tag_Symbol, Tag_compatibility): Remove.
* common.h (SHT_GNU_ATTRIBUTES): Define.
ld:
* emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
(ATTRS_SECTIONS): Define.
* scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
2007-06-29 16:29:17 +00:00
Paul Brook
5ab7998193
2007-06-29 Paul Brook <paul@codesourcery.com>
...
bfd/
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
call veneers for call relocations against undefined symbols.
(elf32_arm_final_link_relocate): Turn call to undefined symbol
into a jump to the next instruction.
ld/testuite/
* ld-arm/arm-elf.exp (armelftests): Add callweak.
* ld-arm/callweak.d: New test.
* ld-arm/callweak.s: New test.
2007-06-29 15:05:47 +00:00
Nick Clifton
32e8a950c4
* bfd.c (bfd_demangle): Plug memory leak (Coverity).
2007-06-29 14:36:21 +00:00
Nick Clifton
3d3d428f04
New port: National Semiconductor's CR16
2007-06-29 14:09:34 +00:00
Bernd Schmidt
7c3e1d1299
* configure.ac: Don't add target-libmudflap to noconfigdirs for
...
uclinux and linux-uclibc targets.
* configure: Regenerate.
2007-06-29 11:33:56 +00:00
H.J. Lu
f403ca9371
2007-06-28 H.J. Lu <hongjiu.lu@intel.com>
...
PR ld/4701
* ld-elf/noload-2.d: New.
2007-06-29 03:10:53 +00:00
Alan Modra
c55fe0967e
* elflink.c (_bfd_elf_link_assign_sym_version): Improve error
...
message for undefined version nodes.
(elf_gc_sweep): Don't warn when zero size sections are
removed.
2007-06-29 02:09:42 +00:00
Alan Modra
375de94a5e
* elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
...
types.
2007-06-29 01:51:55 +00:00
Alan Modra
7d3287cb71
* elf32-spu.c (spu_elf_fake_sections): New function.
...
(elf_backend_fake_sections): Define.
2007-06-29 01:39:54 +00:00
H.J. Lu
36fc76aebb
Mention PR ld/4701.
2007-06-29 01:22:40 +00:00
Alan Modra
6a3cd2b4ed
* elf.c (assign_file_positions_for_load_sections): Use elf
...
section header sh_size rather than bfd section size, simplifying
.tbss handling.
2007-06-29 01:21:08 +00:00
Alan Modra
bf988460f1
* elf.c (assign_file_positions_for_load_sections): Ensure bss
...
segments meet gABI alignment requirements. Don't allocate
file space for bss sections in a segment also containing file
or program headers.
2007-06-29 01:12:52 +00:00
Michael Snyder
f08312c2d4
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* m2-typeprint.c (m2_print_type): Move pointer ref after null test
(Coverity).
2007-06-29 00:35:08 +00:00
Roland McGrath
1ac7d223d3
.
2007-06-29 00:34:18 +00:00
Roland McGrath
c1c0eb9e7b
2007-06-28 Roland McGrath <roland@frob.com>
...
* objcopy.c (setup_section): Don't reset ELF section type to
SHT_NOBITS when it is SHT_NOTE.
* doc/binutils.texi (objcopy, strip): Mention under --only-keep-debug.
2007-06-29 00:34:14 +00:00
Michael Snyder
f66d1690c3
2007-06-28 Michael Snyder <msnyder@svkmacdonelllnx>
...
* gdbint.texinfo (Table, Tuple and List Functions) Fix typo.
2007-06-29 00:23:44 +00:00
gdbadmin
d2ea1f5742
*** empty log message ***
2007-06-29 00:00:33 +00:00
Alan Modra
0f504e0094
daily update
2007-06-29 00:00:05 +00:00
Michael Snyder
a787bedf4f
2007-06-28 Michael Snyder <msnyder@access-company.com>
...
* linux-thread-db.c (thread_db_get_thread_local_address): Add
gdb_assert before using return value of find_thread_pid (Coverity).
2007-06-28 23:02:06 +00:00