binutils-gdb.git
13 years ago*** empty log message ***
gdbadmin [Sat, 23 Jul 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sat, 23 Jul 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago2011-07-22 Sriraman Tallam <tmsriram@google.com>
Sriraman Tallam [Fri, 22 Jul 2011 22:38:42 +0000 (22:38 +0000)]
2011-07-22  Sriraman Tallam  <tmsriram@google.com>

* symtab.cc (Symbol_table::add_from_relobj): Mark symbol as referenced
only after checking if it cannot be forced local.
* symtab.h (is_externally_visible): Check if the symbol is not forced
local.

13 years ago * dwarf2.h (DW_AT_GNU_macros): New.
Jakub Jelinek [Fri, 22 Jul 2011 20:37:50 +0000 (20:37 +0000)]
* dwarf2.h (DW_AT_GNU_macros): New.
(enum dwarf_macro_record_type): New enum.  Add DW_MACRO_GNU_*.

13 years agoAdd initial Intel K1OM support.
H.J. Lu [Fri, 22 Jul 2011 20:22:38 +0000 (20:22 +0000)]
Add initial Intel K1OM support.

bfd/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ALL_MACHINES): Add cpu-k1om.lo.
(ALL_MACHINES_CFILES): Add cpu-k1om.c.
* Makefile.in: Regenerated.

* archures.c (bfd_architecture): Add bfd_arch_k1om.
(bfd_k1om_arch): New.
(bfd_archures_list): Add &bfd_k1om_arch.
* bfd-in2.h: Regenerated.

* config.bfd (targ64_selvecs): Add bfd_elf64_k1om_vec if
bfd_elf64_x86_64_vec is supported.  Add bfd_elf64_k1om_freebsd_vec
if bfd_elf64_x86_64_freebsd_vec is supported.
(targ_selvecs): Likewise.

* configure.in: Support bfd_elf64_k1om_vec and
bfd_elf64_k1om_freebsd_vec.
* configure: Regenerated.

* cpu-k1om.c: New.

* elf64-x86-64.c (elf64_k1om_elf_object_p): New.
(bfd_elf64_k1om_vec): Likewise.
(bfd_elf64_k1om_freebsd_vec): Likewise.

* targets.c (bfd_elf64_k1om_vec): New.
(bfd_elf64_k1om_freebsd_vec): Likewise.
(_bfd_target_vector): Add bfd_elf64_k1om_vec and
bfd_elf64_k1om_freebsd_vec.

binutils/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf.c (init_dwarf_regnames): Handle EM_K1OM.

* elfedit.c (elf_machine): Support EM_K1OM.
(elf_class): Likewise.

* readelf.c (guess_is_rela): Handle EM_K1OM.
(dump_relocations): Likewise.
(get_machine_name): Likewise.
(get_section_type_name): Likewise.
(get_elf_section_flags): Likewise.
(process_section_headers): Likewise.
(get_symbol_index_type): Likewise.
(is_32bit_abs_reloc): Likewise.
(is_32bit_pcrel_reloc): Likewise.
(is_64bit_abs_reloc): Likewise.
(is_64bit_pcrel_reloc): Likewise.
(is_none_reloc): Likewise.

* doc/binutils.texi: Mention K1OM for elfedit.

binutils/testsuite/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/elfedit.exp: Run elfedit-4.

* binutils-all/elfedit-4.d: New.

gas/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (cpu_arch): Add k1om.
(i386_align_code): Handle PROCESSOR_K1OM.
(check_cpu_arch_compatible): Check EM_K1OM.
(i386_arch): Handle Intel K1OM.
(i386_mach): Return bfd_mach_k1om for Intel K1OM.
(i386_target_format): Return ELF_TARGET_K1OM_FORMAT for Intel
K1OM.

* config/tc-i386.h (ELF_TARGET_K1OM_FORMAT): New.
(processor_type): Add PROCESSOR_K1OM.

* doc/c-i386.texi: Document k1om.

gas/testsuite/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/k1om.d: New.
* gas/i386/k1om-inval.l: Likewise.
* gas/i386/k1om-inval.s: Likewise.

* gas/i386/i386.exp: Run k1om-inval and k1om.

include/elf/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_K1OM): New.

ld/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and
eelf_k1om_fbsd.o
(eelf_k1om.c): New.
(eelf_k1om_fbsd.c): Likewise.
* Makefile.in: Regenerated.

* configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64
is supported.  Add elf_k1om_fbsd if elf_x86_64_fbsd is supported.
(targ_extra_emuls): Likewise.

* emulparams/elf_k1om.sh: New.
* emulparams/elf_k1om_fbsd.sh: Likewise.

ld/testsuite/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/abs-k1om.d: New.
* ld-x86-64/protected2-k1om.d: Likewise.
* ld-x86-64/protected3-k1om.d: Likewise.

* ld-x86-64/x86-64.exp: Run abs-k1om, protected2-k1om and
protected3-k1om.

opcodes/

2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* configure.in: Handle bfd_k1om_arch.
* configure: Regenerated.

* disassemble.c (disassembler): Handle bfd_k1om_arch.

* i386-dis.c (print_insn): Handle bfd_mach_k1om and
bfd_mach_k1om_intel_syntax.

* i386-gen.c (cpu_flag_init): Set CPU_UNKNOWN_FLAGS to
~(CpuL1OM|CpuK1OM).  Add CPU_K1OM_FLAGS.
(cpu_flags): Add CpuK1OM.

* i386-opc.h (CpuK1OM): New.
(i386_cpu_flags): Add cpuk1om.

* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

13 years ago * Makefile.def (language=c++): Add check-c++0x and
Jason Merrill [Fri, 22 Jul 2011 18:20:21 +0000 (18:20 +0000)]
* Makefile.def (language=c++): Add check-c++0x and
check-target-libmudflap-c++.
* Makefile.tpl (check-target-libmudflap-c++): New.
* Makefile.in: Regenerate.

13 years ago * gdb.python/py-mi.exp: Use different file names for different
Ulrich Weigand [Fri, 22 Jul 2011 18:01:43 +0000 (18:01 +0000)]
* gdb.python/py-mi.exp: Use different file names for different
versions of the executable under test.
* gdb.python/py-prettyprint.exp: Likewise.
* gdb.python/py-symbol.exp: Likewise.
* gdb.python/py-template.exp: Likewise.
* gdb.python/py-type.exp: Likewise.
* gdb.python/py-value.exp: Likewise.

13 years ago * gdb.python/py-breakpoint.exp: Re-set can-use-hw-watchpoints
Ulrich Weigand [Fri, 22 Jul 2011 17:46:18 +0000 (17:46 +0000)]
* gdb.python/py-breakpoint.exp: Re-set can-use-hw-watchpoints
flag after restarting GDB if necessary.

13 years ago * gdb.python/py-shared.exp: Call gdb_load_shlibs.
Ulrich Weigand [Fri, 22 Jul 2011 17:45:16 +0000 (17:45 +0000)]
* gdb.python/py-shared.exp: Call gdb_load_shlibs.

13 years ago2011-07-22 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 22 Jul 2011 16:58:32 +0000 (16:58 +0000)]
2011-07-22  Pedro Alves  <pedro@codesourcery.com>

gdb/testsuite/
* gdb.arch/i386-dr3-watch.exp: Test that the i386 watchpoints
backend doesn't leave used debug registers behind.

gdb/gdbserver/
* i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
to the inferior here.
(i386_remove_aligned_watchpoint): Ditto.
(i386_handle_nonaligned_watchpoint): Return immediate on fail to
fit part of the watchpoint in the debug registers.
(i386_update_inferior_debug_regs): New.
(i386_low_insert_watchpoint): Work on a local mirror of the debug
registers, and only update the inferior on success.
(i386_low_remove_watchpoint): Ditto.

gdb/
* i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
(I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
(I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
adjust.
(dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
(struct i386_debug_reg_state): New.
(i386_init_dregs): New.
(dr_mirror): New.
(i386_cleanup_dregs): Use i386_init_dregs.
(i386_show_dr): Add state parameter and adjust.
(i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
the inferior here.
(i386_remove_aligned_watchpoint): Likewise.
(i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
(i386_update_inferior_debug_regs): New.
(i386_insert_watchpoint): Work on a local mirror of the debug
registers, and only update the inferior on success.
(i386_remove_watchpoint): Ditto.
(i386_region_ok_for_watchpoint): Adjust.
(i386_stopped_data_address): Adjust.
(i386_insert_hw_breakpoint): Adjust.
(i386_remove_hw_breakpoint): Adjust.

13 years agogdb
Tom Tromey [Fri, 22 Jul 2011 15:31:52 +0000 (15:31 +0000)]
gdb
* amd64-tdep.c (amd64_pseudo_register_read_value): Rename
from amd64_pseudo_register_read.  Change arguments.  Call
mark_value_bytes_unavailable when needed.
(amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
set_gdbarch_pseudo_register_read.
* sentinel-frame.c (sentinel_frame_prev_register): Use
regcache_cooked_read_value.
* regcache.h (regcache_cooked_read_value): Declare.
* regcache.c (regcache_cooked_read_value): New function.
(regcache_cooked_read): Call
gdbarch_pseudo_register_read_value if available.
* i386-tdep.h (i386_pseudo_register_read_value): Declare.
(i386_pseudo_register_read): Remove.
* i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
i386_pseudo_register_read.  Change arguments.  Call
mark_value_bytes_unavailable when needed.
(i386_pseudo_register_read_value): New function.
(i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
not set_gdbarch_pseudo_register_read.
* gdbarch.sh (pseudo_register_read_value): New method.
* gdbarch.c, gdbarch.h: Rebuild.
* findvar.c (value_from_register): Call get_frame_register_value.
gdb/testsuite
* gdb.dwarf2/typeddwarf.c: XFAIL 'z' on x86-64.
* gdb.dwarf2/typeddwarf.exp (xfail-gdb-test): Add arch_pattern
argument.
* gdb.dwarf2/typeddwarf-amd64.S: New file.

13 years agomerge from gcc
DJ Delorie [Fri, 22 Jul 2011 14:37:58 +0000 (14:37 +0000)]
merge from gcc

13 years ago2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Fri, 22 Jul 2011 09:22:50 +0000 (09:22 +0000)]
2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>

* event-top.c (cli_command_loop): Use get_prompt, get_suffix,
get_prefix.
(display_gdb_prompt): Likewise.
(change_annotation_level): Likewise.
(push_prompt): Likewise.
(pop_prompt): Likewise.
(handle_stop_sig): Use get_prompt with a level.
* top.c (command_loop): Use get_prompt with a level.
(set_async_annotation_level): Use set_prompt with a level.
(get_prefix): New function.
(set_prefix): Ditto.
(set_suffix): Ditto.
(get_suffix): Ditto.
(get_prompt): Accept a level argument.
(set_prompt): Accept a level argument.  Free old prompts.  Set
new_async_prompt if level is 0.
(init_main): Use set_prompt with a level.  Do not set
new_async_prompt.
* event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
* top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
Modify set_prompt, get_prompt to account for levels.
* tui/tui-interp.c (tui_command_loop): Use get_prompt with a
level
* python/python.c (before_prompt_hook): Use set_prompt.

13 years ago* gdb.threads/Makefile.in: Avoid globbing corethreads.exp
matt rice [Fri, 22 Jul 2011 01:05:24 +0000 (01:05 +0000)]
* gdb.threads/Makefile.in: Avoid globbing corethreads.exp
in mostlyclean rule.  Add files ending in .core.

13 years agodaily update
Alan Modra [Fri, 22 Jul 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Fri, 22 Jul 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
Kwok Yeung [Thu, 21 Jul 2011 23:46:12 +0000 (23:46 +0000)]
2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>

gdb/
* defs.h: Add guard against inclusion in gdbserver.
(struct ptid, ptid_t): Move to common/ptid.h.
(xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
xsnprintf, internal_error): Move to common/common-utils.h.
(nomem): Delete.
* gdb_assert.h: Move into common/ sub-directory.
* gdb_locale.h: Ditto.
* gdb_dirent.h: Ditto.
* inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
Move into common/ptid.h.
* xml-support.c (xml_escape_text): Move into common/xml-utils.c.
(gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
Change nomem to malloc_failure.
* xml-support.h (xml_escape_text): Move into common/xml-utils.h.
* utils.c (nomem): Rename to malloc_failure.
(xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
(gdb_buildargv): Change nomem to malloc_failure.
* infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
ptid_is_pid): Move into common/ptid.c.
(initialize_infrun): Delete initialization of null_ptid and
minus_one_ptid.
* linux-nat.c (linux_nat_xfer_osdata): Defer to
linux_common_xfer_osdata.
* Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
common/ptid.c and common/buffer.c.
(HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
common/ptid.h, common/buffer.h and common/linux-osdata.h.
(COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
(common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
rules.
* common/gdb_assert.h: New.
* common/gdb_dirent.h: New.
* common/gdb_locale.h: New.
* common/buffer.c: New.
* common/buffer.h: New.
* common/ptid.c: New.
* common/ptid.h: New.
* common/xml-utils.c: New.
* common/xml-utils.h: New.
* common/common-utils.c: New.
* common/common-utils.h: New.
* common/linux-osdata.c: New.
* common/linux-osdata.h: New.
* config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
* config/arm/linux.mh (NATDEPFILES): Ditto.
* config/i386/linux.mh (NATDEPFILES): Ditto.
* config/i386/linux64.mh (NATDEPFILES): Ditto.
* config/ia64/linux.mh (NATDEPFILES): Ditto.
* config/m32r/linux.mh (NATDEPFILES): Ditto.
* config/m68k/linux.mh (NATDEPFILES): Ditto.
* config/mips/linux.mh (NATDEPFILES): Ditto.
* config/pa/linux.mh (NATDEPFILES): Ditto.
* config/powerpc/linux.mh (NATDEPFILES): Ditto.
* config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
* config/s390/s390.mh (NATDEPFILES): Ditto.
* config/sparc/linux.mh (NATDEPFILES): Ditto.
* config/sparc/linux64.mh (NATDEPFILES): Ditto.
* config/xtensa/linux.mh (NATDEPFILES): Ditto.

gdbserver/
* linux-low.c (compare_ints, unique, list_threads, show_process,
linux_core_of_thread): Delete.
(linux_target_ops): Change linux_core_of_thread to
linux_common_core_of_thread.
(linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
* utils.c (malloc_failure): Change type of argument.
(xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
* Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
common/linux-osdata.c, common/ptid.c and common/buffer.c.
(OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
(IPA_OBJS): Add common-utils-ipa.o.
(ptid_h, linux_osdata_h): New macros.
(server_h): Add common/common-utils.h, common/xml-utils.h,
common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
common/ptid.h.
(common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
ptid.o, buffer.o): New rules.
(linux-low.o): Add common/linux-osdata.h as a dependency.
* configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
* configure.ac: Add AC_HEADER_DIRENT check.
* config.in: Regenerate.
* configure: Regenerate.
* remote-utils.c (xml_escape_text): Delete.
(buffer_grow, buffer_free, buffer_init, buffer_finish,
buffer_xml_printf): Move to common/buffer.c.
* server.c (main): Remove call to initialize_inferiors.
* server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
internal_error, gdb_assert, gdb_assert_fail): Delete.
(struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
common/buffer.h.
* inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
initialize_inferiors): Delete.

13 years ago* NEWS: Add info macros and info definitions commands.
matt rice [Thu, 21 Jul 2011 17:23:55 +0000 (17:23 +0000)]
* NEWS: Add info macros and info definitions commands.

13 years ago 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 21 Jul 2011 15:58:52 +0000 (15:58 +0000)]
 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>

* NEWS: Document Python prompt substitution hook.

13 years agoPR macros/12999
matt rice [Thu, 21 Jul 2011 15:13:30 +0000 (15:13 +0000)]
PR macros/12999
* macrotab.h (macro_callback_fn): Add new arguments to callback.
* macrotab.c (foreach_macro): Ditto.
(foreach_macro_in_scope): Ditto.
* macrocmd.c (print_macro_callback): New function.
(info_macro_command): Move some code to print_macro_definition.
(print_macro_definition): New function.
(print_one_macro): Add new arguments to callback.

testsuite/
* gdb.base/info-macros.c: New test sources.
* gdb.base/info-macros.exp: New tests.

docs/
* gdb.texinfo (Macros): Add info definitions and info macros commands.
Update text and cindex entries for info macro command.

13 years ago2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 21 Jul 2011 11:03:48 +0000 (11:03 +0000)]
2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
            Tom Tromey  <tromey@redhat.com>

* top.c (set_prompt): Rewrite to free previous prompt, free
asynch_new_prompt and set both on new prompts.
* event-top.c (display_gdb_prompt): Add prompt substitution
logic.
* python/python.c (before_prompt_hook): New function.

2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/python.exp: Add prompt substitution tests.

2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>

* observer.texi (GDB Observers): Add before_prompt observer.
* gdb.texinfo (Basic Python): Add documentation for prompt
substitution.

13 years ago*** empty log message ***
gdbadmin [Thu, 21 Jul 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Thu, 21 Jul 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years agobfd/
Jan Kratochvil [Wed, 20 Jul 2011 19:22:30 +0000 (19:22 +0000)]
bfd/
Fix false coff-go32-exe matches.
* coff-i386.c (TARGET_SYM) <_bfd_check_format>: Conditionally use
COFF_CHECK_FORMAT.
* coff-stgo32.c (go32_check_format): New forward declaration.
(COFF_CHECK_FORMAT): New defintion.
(go32_check_format): New function.

13 years ago* bfin-tdep.c (bfin_extract_return_value): Fix swapped
matt rice [Wed, 20 Jul 2011 16:52:36 +0000 (16:52 +0000)]
* bfin-tdep.c (bfin_extract_return_value): Fix swapped
arguments to store_unsigned_integer.

13 years ago * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
Tom Tromey [Wed, 20 Jul 2011 15:13:49 +0000 (15:13 +0000)]
* dwarf2read.c (process_enumeration_scope): Do not call new_symbol
in some declaration-only cases.

13 years ago PR symtab/12984:
Tom Tromey [Wed, 20 Jul 2011 15:06:54 +0000 (15:06 +0000)]
PR symtab/12984:
* dwarf2read.c (dwarf2_section_info_def): New typedef.
(struct dwarf2_per_objfile) <types>: Change to a VEC.
(struct dwarf2_per_cu_data) <from_debug_types>: Remove.
<debug_type_section>: New field.
(dwarf2_locate_sections): Push .debug_types sections onto VEC.
(load_cu): Use appropriate section.
(create_signatured_type_table_from_index): Add 'section'
argument.
(dwarf2_read_index): Only allow a single .debug_types section.
(dw2_get_file_names): Use appropriate section.
(read_type_comp_unit_head): Add 'section' argument.
(create_debug_types_hash_table): Loop over all .debug_types
sections.
(init_cu_die_reader): Use appropriate section.
(process_psymtab_comp_unit, load_partial_comp_unit)
(load_full_comp_unit, read_die_and_children, find_partial_die)
(lookup_die_type, determine_prefix, follow_die_offset): Update.
(lookup_signatured_type_at_offset): Add 'section' argument.
(read_signatured_type_at_offset): Add 'sect' argument.
(read_signatured_type): Use appropriate section.
(set_die_type, get_die_type_at_offset): Update.
(dwarf2_per_objfile_free): Free all .debug_types sections, and
VEC.
(write_psymtabs_to_index): Don't allow index with more than one
.debug_types section.

13 years ago2011-07-20 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Wed, 20 Jul 2011 11:01:21 +0000 (11:01 +0000)]
2011-07-20  Pedro Alves  <pedro@codesourcery.com>

* tracepoint.c (tracepoint_look_up_symbols): Return upon the first
symbol error.

13 years agodaily update
Alan Modra [Wed, 20 Jul 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Wed, 20 Jul 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agogdb/
Jan Kratochvil [Tue, 19 Jul 2011 20:28:52 +0000 (20:28 +0000)]
gdb/
Fix crash if referenced CU is aged out.
* dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
xfree of block.data.
(indirect_pieced_value): New variable back_to, use to for xfree of
baton.data.
(dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
block.data.
* dwarf2read.c (dwarf2_find_base_address): New prototype.
(load_cu): New function from ...
(dw2_do_instantiate_symtab): ... the code here ...
(process_full_comp_unit): ... and here.
(dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
retval.data.

gdb/testsuite/
Fix crash if referenced CU is aged out.
* gdb.dwarf2/dw2-op-call.exp (maintenance set dwarf2 max-cache-age 0):
New.
* gdb.dwarf2/implptr.exp: Likewise.

13 years agogdb/
Jan Kratochvil [Tue, 19 Jul 2011 20:25:14 +0000 (20:25 +0000)]
gdb/
* dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
type.

gdb/testsuite/
* gdb.dwarf2/implptr.S: Rebuilt.
* gdb.dwarf2/implptr.c (intp, intpp, intppp): New typedefs.
(bar): Use them for j, k, l.
* gdb.dwarf2/implptr.exp: New variable opts.  Support runtest parameter
COMPILE.
(print j in implptr:bar): Update for the intp typedef.
(print p[0].x in implptr:foo): Use more exact regex.

13 years agogdb/
Gary Benson [Tue, 19 Jul 2011 12:24:34 +0000 (12:24 +0000)]
gdb/
* infrun.c (struct execution_control_state): New member
stop_func_filled_in.
(clear_stop_func, fill_in_stop_func): New functions.
(handle_inferior_event): Call clear_stop_func rather than
manipulating the execution control state directly.
Call fill_in_stop_func lazily as required rather than
directly calling find_pc_partial_function in all cases.

13 years ago*** empty log message ***
gdbadmin [Tue, 19 Jul 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 19 Jul 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
Tom Tromey [Mon, 18 Jul 2011 15:17:35 +0000 (15:17 +0000)]
* dwarf2read.c (read_subrange_type): Use attr_form_is_block when
checking for variable-sized array.

13 years ago * gdb.cp/static-method.exp: Add missing single quote.
Tom Tromey [Mon, 18 Jul 2011 15:15:06 +0000 (15:15 +0000)]
* gdb.cp/static-method.exp: Add missing single quote.

13 years agoFix a typo in doc/c-i386.texi.
H.J. Lu [Mon, 18 Jul 2011 13:32:31 +0000 (13:32 +0000)]
Fix a typo in doc/c-i386.texi.

2011-07-18  H.J. Lu  <hongjiu.lu@intel.com>

* doc/c-i386.texi: Fix a typo.

13 years ago toplevel:
Rainer Orth [Mon, 18 Jul 2011 10:15:06 +0000 (10:15 +0000)]
toplevel:
* configure: Regenerate.

config:
* elf.m4 (target_elf): Remove *-netware*.

13 years agogdb/
Jean-Charles Delay [Mon, 18 Jul 2011 09:23:52 +0000 (09:23 +0000)]
gdb/

* MAINTAINERS (Write After Approval): Add myself to the list.

13 years agogdb/
Jean-Charles Delay [Mon, 18 Jul 2011 09:21:43 +0000 (09:21 +0000)]
gdb/

* varobj.h (varobj_languages): Add vlang_ada definition to the list
of supported languages.
* varobj.c: Add top definitions and basic implementation of the
following callbacks: ada_number_of_children, ada_name_of_variable,
ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
ada_value_of_child, ada_type_of_child, ada_value_of_variable.
(languages): Register Ada-specific callbacks.
(variable_language): Add the Ada case in the language setter switch.

13 years ago gdb/testsuite/
Yao Qi [Mon, 18 Jul 2011 04:14:21 +0000 (04:14 +0000)]
gdb/testsuite/

* gdb.base/async-shell.exp: Skip test if displaced stepping is not
supported.
* gdb.mi/mi-nonstop-exit.exp: Likewise.
* gdb.mi/mi-nonstop.exp: Likewise.
* gdb.mi/mi-ns-stale-regcache.exp: Likewise.
* gdb.mi/mi-nsintrall.exp: Likewise.
* gdb.mi/mi-nsmoribund.exp: Likewise.
* gdb.mi/mi-nsthrexec.exp: Likewise.
* gdb.python/py-evthreads.exp: Likewise.

13 years ago*** empty log message ***
gdbadmin [Mon, 18 Jul 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Mon, 18 Jul 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years agogdb/
Jan Kratochvil [Sun, 17 Jul 2011 19:22:32 +0000 (19:22 +0000)]
gdb/
* remote-mips.c (pmon_download): Fix ignored return value GCC warning.

13 years agodaily update
Alan Modra [Sun, 17 Jul 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 17 Jul 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoImplement ld --print-output-format.
Roland McGrath [Sat, 16 Jul 2011 07:58:40 +0000 (07:58 +0000)]
Implement ld --print-output-format.

13 years agodaily update
Alan Modra [Sat, 16 Jul 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sat, 16 Jul 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * options.h (class General_options): Add --print-output-format.
Ian Lance Taylor [Fri, 15 Jul 2011 21:43:08 +0000 (21:43 +0000)]
* options.h (class General_options): Add --print-output-format.
Move -EL next to -EB, for  better --help output.
* target-select.cc: Include <cstdio>, "options.h", and
"parameters.h".
(Target_selector::do_target_bfd_name): New function.
(print_output_format): New function.
* target-select.h (class Target_selector): Update declarations.
(Target_selector::target_bfd_name): New function.
(print_output_format): Declare.
* main.cc: Include "target-select.h".
(main): Handle --print-output-format.
* gold.cc: Include "target-select.h".
(queue_initial_tasks): Handle --print-output-format when there are
no input files.
* parameters.cc (parameters_force_valid_target): Give a better
error message if -EB/-EL does not match target.
* freebsd.h (Target_selector_freebsd::do_target_bfd_name): New
function.

13 years agogdb/
Jan Kratochvil [Fri, 15 Jul 2011 20:54:32 +0000 (20:54 +0000)]
gdb/
Code cleanup.
* dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
(execute_stack_op): Use dwarf2_frame_ctx_funcs
* dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
(execute_stack_op): Access read_reg, get_frame_base, read_mem,
get_frame_cfa, get_tls_address and dwarf_call via funcs.
* dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
(struct dwarf_expr_context_funcs): New, move here methods from ...
(struct dwarf_expr_context): ... here.  New fields funcs.
* dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
(dwarf_expr_ctx_funcs): New.
(dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
(needs_frame_dwarf_call): Access get_frame_pc via funcs.
(needs_frame_ctx_funcs): New.
(dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.

13 years agogdb/testsuite/
Jan Kratochvil [Fri, 15 Jul 2011 18:46:10 +0000 (18:46 +0000)]
gdb/testsuite/
Code cleanup.
* gdb.cp/namespace.exp (xfail_class_types): New variable.  Initialize
it.  Substitute it instead of test_compiler_info everywhere.

13 years ago * i386.cc (class Output_data_plt_i386): Add layout_ field.
Ian Lance Taylor [Fri, 15 Jul 2011 15:31:54 +0000 (15:31 +0000)]
* i386.cc (class Output_data_plt_i386): Add layout_ field.
(Output_data_plt_i386::Output_data_plt_i386): Initialize layout_.
(Output_data_plt_i386::do_write): Write address of .dynamic
section to first entry in .got.plt section.
* x86_64.cc (class Output_data_plt_x86_64): Add layout_ field.
(Output_data_plt_x86_64::Output_data_plt_x86_64) [both versions]:
Initialize layout_.
(Output_data_plt_x86_64::do_write): Write address of .dynamic
section to first entry in .got.plt section.
* layout.h (Layout::dynamic_section): New function.

13 years ago2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
Fawzi Mohamed [Fri, 15 Jul 2011 15:27:49 +0000 (15:27 +0000)]
2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>

* MAINTAINERS (Write After Approval): Add myself to the list.

13 years ago2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
Fawzi Mohamed [Fri, 15 Jul 2011 15:01:04 +0000 (15:01 +0000)]
2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>

* dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
that CIE pointer of an FDE really points to a CIE .

13 years ago * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test on
Ulrich Weigand [Fri, 15 Jul 2011 14:13:00 +0000 (14:13 +0000)]
* gdb.base/type-opaque.exp: Use gdb_load_shlibs.  Run test on
remote targets as well.

13 years ago * lib/gdb.exp (gdb_compile_shlib_pthreads): New helper.
Ulrich Weigand [Fri, 15 Jul 2011 14:11:22 +0000 (14:11 +0000)]
* lib/gdb.exp (gdb_compile_shlib_pthreads): New helper.
* gdb.threads/tls-shared.exp: Use it.  Call gdb_load_shlibs.

13 years ago * lib/gdb.exp (gdb_compile): Specify rpath if the *target* is
Ulrich Weigand [Fri, 15 Jul 2011 14:10:26 +0000 (14:10 +0000)]
* lib/gdb.exp (gdb_compile): Specify rpath if the *target* is
a remote machine, not the host.
(gdb_compile_shlib): Set soname if target is remote.

13 years agoinclude/
Alan Modra [Fri, 15 Jul 2011 02:36:36 +0000 (02:36 +0000)]
include/
* bfdlink.h (struct bfd_link_info): Use ENUM_BITFIELD for strip,
discard, common_skip_ar_symbols, unresolved_syms_in_objects, and
unresolved_syms_in_shared_libs fields.  Move emit_note_gnu_build_id
out of bitfields.  Reorder bitfields.
bfd/
* configure.in: Bump version.
* configure: Regenerate.

13 years ago2011-07-15 Hui Zhu <teawater@gmail.com>
Hui Zhu [Fri, 15 Jul 2011 02:07:43 +0000 (02:07 +0000)]
2011-07-15  Hui Zhu  <teawater@gmail.com>

* remote.c (remote_get_trace_status): Add comments.

13 years ago * Makefile.am (e*.c): Sort.
Alan Modra [Fri, 15 Jul 2011 01:45:50 +0000 (01:45 +0000)]
* Makefile.am (e*.c): Sort.
* Makefile.in: Regenerate.

13 years ago*** empty log message ***
gdbadmin [Fri, 15 Jul 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoCleanup: kill trailing whitespace
Paul Pluzhnikov [Thu, 14 Jul 2011 16:41:56 +0000 (16:41 +0000)]
Cleanup: kill trailing whitespace

13 years ago2011-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Thu, 14 Jul 2011 16:33:21 +0000 (16:33 +0000)]
2011-07-14  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.cp/minsym-fallback.exp: Link in C++ mode.

13 years agogdb/
Jan Kratochvil [Thu, 14 Jul 2011 15:00:20 +0000 (15:00 +0000)]
gdb/
Code cleanup - constify struct lval_funcs.
* dwarf2loc.c (pieced_value_funcs): Make it const.
* infrun.c (siginfo_value_funcs): Likewise.
* opencl-lang.c (opencl_value_funcs): Likewise.
* valops.c (value_assign, value_ind): Make the funcs variable const.
* value.c (struct value): Make location.computed.funcs target const.
Rearrange the comments.
(allocate_computed_value): Make the funcs parameter target const.
(value_computed_funcs): Return the funcs target const.
(value_free, value_copy, set_value_component_location): Make the funcs
variable const.
* value.h (allocate_computed_value): Make the funcs parameter target
const.
(value_computed_funcs): Return the funcs target const.
* windows-tdep.c (tlb_value_funcs): Make it const.

13 years agoAlso check ignored "-z relro".
H.J. Lu [Thu, 14 Jul 2011 14:54:53 +0000 (14:54 +0000)]
Also check ignored "-z relro".

2011-07-14  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/binutils.exp (binutils_test): Also check ignored
"-z relro".

13 years agoRevert the last change.
H.J. Lu [Thu, 14 Jul 2011 14:51:09 +0000 (14:51 +0000)]
Revert the last change.

13 years agoSkip relro tests on ia64.
H.J. Lu [Thu, 14 Jul 2011 14:49:37 +0000 (14:49 +0000)]
Skip relro tests on ia64.

2011-07-14  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/binutils.exp: Skip relro tests on ia64.

13 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
Alan Modra [Thu, 14 Jul 2011 12:43:35 +0000 (12:43 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option,
gld${EMULATION_NAME}_list_options): Don't condition -z relro
and -z norelro on COMMONPAGESIZE being defined.

13 years ago * ld-scripts/section-flags.exp: Pass --local-store 0:0 for
Alan Modra [Thu, 14 Jul 2011 06:49:45 +0000 (06:49 +0000)]
* ld-scripts/section-flags.exp: Pass --local-store 0:0 for
spu.  Rewrite using foreach.

13 years ago * linker.c (_bfd_generic_section_already_linked): Set l_flags.
Alan Modra [Thu, 14 Jul 2011 06:22:57 +0000 (06:22 +0000)]
* linker.c (_bfd_generic_section_already_linked): Set l_flags.
* elf-bfd.h (struct already_linked): Forward declare.

13 years ago2011-07-14 Hui Zhu <teawater@gmail.com>
Hui Zhu [Thu, 14 Jul 2011 04:46:42 +0000 (04:46 +0000)]
2011-07-14  Hui Zhu  <teawater@gmail.com>

* remote.c (remote_get_trace_status): Initialize p.

13 years agowhitespace regen
Alan Modra [Thu, 14 Jul 2011 04:02:32 +0000 (04:02 +0000)]
whitespace regen

13 years ago * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.
Alan Modra [Thu, 14 Jul 2011 03:57:18 +0000 (03:57 +0000)]
* elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.
(_bfd_elf_adjust_dynamic_symbol): Remove FIXME.

13 years agobfd/
Alan Modra [Thu, 14 Jul 2011 03:28:22 +0000 (03:28 +0000)]
bfd/
* elf64-ppc.c (struct ppc_link_hash_table): Add plt_static_chain.
(build_plt_stub): Add plt_static_chain param, don't load r11 if false.
(build_tls_get_addr_stub): Likewise.
(ppc_build_one_stub): Update calls to above.
(ppc_size_one_stub): Adjust stub size.
(ppc64_elf_size_stubs): Add plt_static_chain param, save to htab.
* elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
ld/
* emultempl/ppc64elf.em (plt_static_chain): New var.
(gld${EMULATION_NAME}_after_allocation): Pass to ppc64_elf_size_stubs.
(PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Handle
--plt-static-chain and --no-plt-static-chain.
ld/testsuite/
* ld-powerpc/tlsexe.d, * ld-powerpc/tlsexe.g. *ld-powerpc/tlsexe.r,
* ld-powerpc/tlsexetoc.d, * ld-powerpc/tlsexetoc.g,
* ld-powerpc/tlsexetoc.r, * ld-powerpc/tlsso.d,
* ld-powerpc/tlstocso.d: Update for plt stub change.

13 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
Alan Modra [Thu, 14 Jul 2011 02:38:43 +0000 (02:38 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_add_options,
gld${EMULATION_NAME}_handle_option, gld${EMULATION_NAME}_list_options):
Provide --build-id, -z defs, -z muldefs, -z max-page-size,
-z common-page-size, -z execstack, -z noexecstack for all targets.
Add help for --exclude-libs.
(OPTION_LD_GENERATED_UNWIND_INFO,
OPTION_NO_LD_GENERATED_UNWIND_INFO): Move this..
(gld${EMULATION_NAME}_handle_option): ..and code handling
--ld-generated-unwind-info and --no-ld-generated-unwind-info..
* emulparams/plt_unwind.sh: ..to here.  New file.  Add help.
* emulparams/elf32_x86_64.sh: Include plt_unwind.sh.
* emulparams/elf_i386.sh: Likewise.
* emulparams/elf_i386_chaos.sh: Likewise.
* emulparams/elf_i386_ldso.sh: Likewise.
* emulparams/elf_l1om.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.

13 years ago2011-07-13 Sriraman Tallam <tmsriram@google.com>
Sriraman Tallam [Thu, 14 Jul 2011 00:55:18 +0000 (00:55 +0000)]
2011-07-13  Sriraman Tallam  <tmsriram@google.com>

* plugin-api.h
(ld_plugin_section): New struct.
(ld_plugin_get_section_count): New typedef.
(ld_plugin_get_section_type): New typedef.
(ld_plugin_get_section_name): New typedef.
(ld_plugin_get_section_contents): New typedef.
(ld_plugin_update_section_order): New typedef.
(ld_plugin_allow_section_ordering): New typedef.
(LDPT_GET_SECTION_COUNT): New enum value.
(LDPT_GET_SECTION_TYPE): New enum value.
(LDPT_GET_SECTION_NAME): New enum value.
(LDPT_GET_SECTION_CONTENTS): New enum value.
(LDPT_UPDATE_SECTION_ORDER): New enum value.
(LDPT_ALLOW_SECTION_ORDERING): New enum value.
(tv_get_section_count): New struct members.
(tv_get_section_type): New struct members.
(tv_get_section_name): New struct members.
(tv_get_section_contents): New struct members.
(tv_update_section_order): New struct members.
(tv_allow_section_ordering): New struct members.
* archive.cc (Archive::get_elf_object_for_member): Add extra parameter
to claim_file call.
* layout.cc (Layout::Layout): Initialize section_ordering_specified_,
input_section_position_, and input_section_glob_.
(read_layout_from_file): Call function section_ordering_specified.
* layout.h (is_section_ordering_specified): New function.
(section_ordering_specified): New function.
(section_ordering_specified_): New boolean member.
* main.cc(main): Call load_plugins after layout object is defined.
* output.cc (Output_section::add_input_section): Use
function section_ordering_specified to check if section ordering is
needed.
* output.cc (Output_section::add_relaxed_input_section): Use
function section_ordering_specified to check if section ordering is
needed.
(Output_section::update_section_layout): New function.
(Output_section::sort_attached_input_sections): Check if input section
must be reordered.
* output.h (Output_section::update_section_layout): New function.
* plugin.cc (get_section_count): New function.
(get_section_type): New function.
(get_section_name): New function.
(get_section_contents): New function.
(update_section_order): New function.
(allow_section_ordering): New function.
(Plugin::load): Add the new interfaces to the transfer vector.
(Plugin_manager::load_plugins): New parameter.
(Plugin_manager::all_symbols_read): New parameter.
(Plugin_manager::claim_file): New parameter. Save the elf object for
unclaimed objects.
(Plugin_manager::get_elf_object): New function.
(Plugin_manager::get_view): Change to directly use the bool to check
if get_view is called from claim_file_hook.
* plugin.h (input_objects): New function
(Plugin__manager::load_plugins): New parameter.
(Plugin_manager::claim_file): New parameter.
(Plugin_manager::get_elf_object): New function.
(Plugin_manager::in_claim_file_handler): New function.
(Plugin_manager::in_claim_file_handler_): New member.
(layout): New function.
* readsyms.cc (Read_symbols::do_read_symbols): Call the claim_file
handler with an extra parameter. Make the elf object before calling
claim_file handler.
* testsuite/plugin_test.c (get_section_count): New function pointer.
(get_section_type): New function pointer.
(get_section_name): New function pointer.
(get_section_contents): New function pointer.
(update_section_order): New function pointer.
(allow_section_ordering): New function pointer.
(onload): Check if the new interfaces exist.

13 years ago*** empty log message ***
gdbadmin [Thu, 14 Jul 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Thu, 14 Jul 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * i386.cc (Target_i386::got_section): If -z now, make .got.plt a
Ian Lance Taylor [Wed, 13 Jul 2011 22:47:08 +0000 (22:47 +0000)]
* i386.cc (Target_i386::got_section): If -z now, make .got.plt a
relro section.
* x86_64.cc (Target_x86_64::got_section): Likewise.
* testsuite/Makefile.am (check_PROGRAMS): Add relro_now_test.
(relro_now_test_SOURCES): New variable.
(relro_now_test_DEPENDENCIES): New variable.
(relro_now_test_LDFLAGS): New variable.
(relro_now_test_LDADD): New variable.
(relro_now_test.so): New target.
* testsuite/Makefile.in: Rebuild.

13 years agogdb/
Jan Kratochvil [Wed, 13 Jul 2011 17:07:16 +0000 (17:07 +0000)]
gdb/
Work around kgdb.
* remote.c (remote_get_trace_status): New variable ex.  Put
remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.

13 years ago* gdb.python/py-objfile-script-gdb.py: Renamed to
matt rice [Wed, 13 Jul 2011 17:00:56 +0000 (17:00 +0000)]
* gdb.python/py-objfile-script-gdb.py: Renamed to
py-objfile-script-gdb.py.in.
* gdb.python/py-objfile-script-gdb.py.in: Renamed from
py-objfile-script-gdb.py.
* gdb.python/py-objfile-script.exp: Update reference to
py-objfile-script-gdb.py.

13 years ago * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
Tom Tromey [Wed, 13 Jul 2011 16:51:22 +0000 (16:51 +0000)]
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
value_from_contents for final conversion.

13 years agogdb/testsuite/
Jan Kratochvil [Wed, 13 Jul 2011 15:18:13 +0000 (15:18 +0000)]
gdb/testsuite/
* gdb.dwarf2/dw2-op-call.S (array1): Use the real label; do not
reference undefined label.

13 years agogdb/
Jan Kratochvil [Wed, 13 Jul 2011 15:15:42 +0000 (15:15 +0000)]
gdb/
Code cleanup.
* dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
Indent prototypes so they do not get into tags.

13 years ago*** empty log message ***
gdbadmin [Wed, 13 Jul 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Wed, 13 Jul 2011 00:00:08 +0000 (00:00 +0000)]
daily update

13 years ago PR gold/12980
Ian Lance Taylor [Tue, 12 Jul 2011 22:29:09 +0000 (22:29 +0000)]
PR gold/12980
* i386.cc (Target_i386::Scan::global): For a GOT reloc, use a
GLOB_DAT relocation rather than a RELATIVE relocation for a
protected symbol when creating a shared library.
* x86_64.cc (Target_x86_64::Scan::global): Likewise.
* testsuite/protected_1.cc (f2, get_f2_addr): New functions.
* testsuite/protected_main_1.cc (main): Test that protected
function has same address.

13 years agogdb/
Jan Kratochvil [Tue, 12 Jul 2011 21:16:48 +0000 (21:16 +0000)]
gdb/
Code cleanup making also optimized out values lazy.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
allocate_optimized_out_value.  Twice.
(loclist_read_variable)  Use allocate_optimized_out_value.  Once.
* findvar.c (read_var_value): Likewise.
* value.c (allocate_optimized_out_value): New function.
* value.h (allocate_optimized_out_value): New declaration.

13 years agogdb/
Jan Kratochvil [Tue, 12 Jul 2011 20:59:03 +0000 (20:59 +0000)]
gdb/
Fix occasional crash of CTRL-C during DWARF read in.
* dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.

13 years agosim: include sim-options.h for command prototype
Mike Frysinger [Tue, 12 Jul 2011 20:21:28 +0000 (20:21 +0000)]
sim: include sim-options.h for command prototype

The sim_args_command prototype is in sim-options.h, so pull it in
directly rather than assuming a common header does it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: fix broken skel configure.ac example
Mike Frysinger [Tue, 12 Jul 2011 20:20:32 +0000 (20:20 +0000)]
sim: fix broken skel configure.ac example

Shell code before AC_INIT will be silently culled, and since the common
aclocal.m4 includes inline shell code, the file cannot be included before
AC_INIT.  So update the example to show people including the file after
that rather than before to avoid random breakage.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: use AC_REQUIRE with AC_PROG_CC
Mike Frysinger [Tue, 12 Jul 2011 20:19:49 +0000 (20:19 +0000)]
sim: use AC_REQUIRE with AC_PROG_CC

The autoconf guys point out that our usage of AC_PROG_CC in the
SIM_AC_COMMON does not jive with their intended use.
http://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required

So utilize AC_REQUIRE to make the warnings go away and generate
the correct code with different autoconf versions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * elf32-arm.c (elf32_arm_section_flags): Delete.
Nick Clifton [Tue, 12 Jul 2011 15:17:43 +0000 (15:17 +0000)]
* elf32-arm.c (elf32_arm_section_flags): Delete.
(elf_backend_section_flags): Remove.

13 years ago * arm-dis.c (print_insn_arm): Revert previous, undocumented,
Nick Clifton [Tue, 12 Jul 2011 08:45:45 +0000 (08:45 +0000)]
* arm-dis.c (print_insn_arm): Revert previous, undocumented,
accidental change.

13 years ago PR 12983
Cary Coutant [Tue, 12 Jul 2011 04:47:49 +0000 (04:47 +0000)]
PR 12983
* binutils/nm.c (display_file): Decompress debug sections when
printing line numbers.

13 years agodaily update
Alan Modra [Tue, 12 Jul 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Tue, 12 Jul 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agosim: m32c/rx: rename configure.in to match rest of the tree
Mike Frysinger [Mon, 11 Jul 2011 19:00:17 +0000 (19:00 +0000)]
sim: m32c/rx: rename configure.in to match rest of the tree

The sim dir has 30 configure.ac files and 2 configure.in files.
So rename the minority to be consistent.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>