binutils-gdb.git
12 years agodeal with endian-ness in mach-o non-scattered relocs.
Iain Sandoe [Thu, 23 Feb 2012 16:29:56 +0000 (16:29 +0000)]
deal with endian-ness in mach-o non-scattered relocs.

BFD:

* mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
(bfd_mach_o_canonicalize_one_reloc):  Swap non-scattered reloc
bit-fields when target and host differ in endian-ness.  When
PAIRs are non-scattered find the 'symbol' from the preceding
reloc.  Add FIXME re. reloc symbols on section boundaries.
(bfd_mach_o_swap_out_non_scattered_reloc): New.
(bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.

include/mach-o:

* external.h: Add comments about relocations fields.  Add macros
for non-scattered relocations.  Move scattered relocation macros to here.
* reloc.h: Remove macros related to external representation of reloc fields.

12 years ago2012-02-23 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 23 Feb 2012 11:15:06 +0000 (11:15 +0000)]
2012-02-23  Tristan Gingold  <gingold@adacore.com>

       * ada-tasks.c (struct ada_tasks_inferior_data): Add
        known_tasks_element and known_tasks_length fields.
        (read_known_tasks_array): Change argument type.  Use pointer type
        and number of elements from DATA.  Adjust.
        (read_known_tasks_list): Likewise.
        (get_known_tasks_addr): Remove.
        (ada_set_current_inferior_known_tasks_addr): Renamed to ...
        (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
        type and array length.  Merge former get_known_tasks_addr code.

12 years agogdb/
Jan Kratochvil [Thu, 23 Feb 2012 08:15:04 +0000 (08:15 +0000)]
gdb/
PR backtrace/13716
* infcmd.c (finish_forward): New variable frame_id, initialize it, use
it after set_momentary_breakpoint.

12 years ago*** empty log message ***
gdbadmin [Thu, 23 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * gdb.texinfo (Blocks In Python): Clarify block iteration.
Tom Tromey [Wed, 22 Feb 2012 18:39:28 +0000 (18:39 +0000)]
* gdb.texinfo (Blocks In Python): Clarify block iteration.

12 years agoChangeLog
Sterling Augustine [Wed, 22 Feb 2012 18:20:38 +0000 (18:20 +0000)]
ChangeLog
2012-02-22  Sterling Augustine  <saugustine@google.com>

PR 13689:
* breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.

testsuite/ChangeLog
2012-02-22  Sterling Augustine  <saugustine@google.com>

* gdb.base/watchpoint.exp (test_constant_watchpoint): Add test for
constant with cast.

12 years agooops - omitted part of changelog entry with the previous delta.
Nick Clifton [Wed, 22 Feb 2012 16:59:52 +0000 (16:59 +0000)]
oops - omitted part of changelog entry with the previous delta.

12 years ago PR ld/13683
Nick Clifton [Wed, 22 Feb 2012 16:27:35 +0000 (16:27 +0000)]
PR ld/13683
* ldlang.c (lang_process): Rerun lang_do_assignments before
starting garbage collection.
* ldexp.c (fold_name): Generate a reloc for defined symbols
found without an associated output section during the mark phase.
(exp_fold_tree_1): Continue processing an expression, even if we
are unable to fold it, if we are in the first two evaluation
phases.
* ldexp.h (enum lang_phase_type): Add descriptions of the phases.

* ld-gc/pr13683.c: New test source file.
* ld-gc/pr13683.d: New test control and output file.
* ld-gc/gc.exp: Run the pr13683 test.

* ld-cris/tls-gc-68: Update expected symbol table dump.
* ld-cris/tls-gc-69: Likewise.
* ld-cris/tls-gc-70: Likewise.
* ld-cris/tls-gc-71: Likewise.
* ld-cris/tls-gc-75: Likewise.
* ld-cris/tls-gc-76.d: Likewise.
* ld-cris/tls-gc-79.d: Likewise.

12 years ago2012-02-22 Gary Benson <gbenson@redhat.com>
Gary Benson [Wed, 22 Feb 2012 14:55:25 +0000 (14:55 +0000)]
2012-02-22  Gary Benson  <gbenson@redhat.com>

* dwarf2read.c (dwarf2_read_index): Correct misspelling.
(find_slot_in_mapped_hash): Likewise.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 22 Feb 2012 00:07:43 +0000 (00:07 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.threads/watchpoint-fork.exp (test): Use with_test_prefix.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 22 Feb 2012 00:04:58 +0000 (00:04 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.base/return-nodebug.exp (do_test): Use with_test_prefix.

12 years ago*** empty log message ***
gdbadmin [Wed, 22 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 21 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 21 Feb 2012 22:58:39 +0000 (22:58 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.trace/unavailable.exp (gdb_collect_globals_test): Use
with_test_prefix.

12 years ago2012-02-21 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:40:27 +0000 (22:40 +0000)]
2012-02-21  Joern Rennecke  <joern.rennecke@embecosm.com>

        * COPYING.NEWLIB: Add Adapteva notice.
        * COPYING.LIBGLOSS: Add Adapteva notice.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 21 Feb 2012 22:01:10 +0000 (22:01 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.arch/altivec-abi.exp (altivec_abi_tests): Don't do
with_test_prefix here.
(top level): Do it here instead.  Remove `:' from the
with_test_prefix string.
* gdb.base/attach-pie-misread.exp: Remove the leading space the
the suffix `:' from the with_test_prefix prefix string.
* gdb.base/break-interp.exp: Ditto.
* gdb.base/catch-load.exp: Ditto.
* gdb.base/disp-step-syscall.exp: Ditto.
* gdb.base/jit-so.exp: Ditto.
* gdb.base/jit.exp: Ditto.
* gdb.base/sepdebug.exp: Ditto.
* gdb.base/solib-display.exp: Ditto.
* gdb.base/solib-overlap.exp: Ditto.
* gdb.base/watch-cond-infcall.exp: Ditto.
* gdb.base/watchpoint.exp: Ditto.
* gdb.dwarf2/dw2-noloc.exp: Ditto.
* gdb.mi/mi-watch.exp: Ditto.
* gdb.mi/mi2-watch.exp: Ditto.
* gdb.threads/non-ldr-exc-1.exp: Ditto.
* gdb.threads/non-ldr-exc-2.exp: Ditto.
* gdb.threads/non-ldr-exc-3.exp: Ditto.
* gdb.threads/non-ldr-exc-4.exp: Ditto.
* gdb.threads/watchpoint-fork.exp: Ditto.
* gdb.threads/watchthreads-reorder.exp: Ditto.
* gdb.trace/change-loc.exp: Ditto.
* gdb.trace/pending.exp: Ditto.
* gdb.trace/status-stop.exp: Ditto.
* gdb.trace/strace.exp: Ditto.
* gdb.trace/trace-break.exp: Ditto.
* gdb.trace/unavailable.exp: Ditto.
* lib/gdb.exp (with_test_prefix): Always prefix with space and
suffix with colon.  Adjust leading comments.

12 years agogdb/
Jan Kratochvil [Tue, 21 Feb 2012 22:00:32 +0000 (22:00 +0000)]
gdb/
PR build/13638
* configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
(MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
* configure: Regenerate.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 21 Feb 2012 21:55:39 +0000 (21:55 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>
    Tom Tromey  <tromey@redhat.com>

* lib/gdb.exp: Add description of test prefixes.
(with_test_prefix): New procedure.
* gdb.arch/altivec-abi.exp: Use with_test_prefix.
* gdb.base/attach-pie-misread.exp: Use with_test_prefix.
* gdb.base/break-interp.exp: Use with_test_prefix.  Use append
instead of lappend to append to pf_prefix.
* gdb.base/catch-load.exp: Use with_test_prefix.
* gdb.base/disp-step-syscall.exp: Use with_test_prefix.
* gdb.base/jit-so.exp: Use with_test_prefix.
* gdb.base/jit.exp: Use with_test_prefix.
* gdb.base/return-nodebug.exp (do_test): Use append instead of
lappend to append to pf_prefix.
* gdb.base/sepdebug.exp: Use with_test_prefix.
* gdb.base/solib-display.exp: Use with_test_prefix.
* gdb.base/solib-overlap.exp: Use with_test_prefix.
* gdb.base/watch-cond-infcall.exp: Use with_test_prefix.
* gdb.base/watchpoint.exp: Use with_test_prefix.
* gdb.dwarf2/dw2-noloc.exp: Use with_test_prefix.
* gdb.mi/mi-watch.exp: Use with_test_prefix.
* gdb.mi/mi2-watch.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-1.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-2.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-3.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-4.exp: Use with_test_prefix.
* gdb.threads/watchpoint-fork.exp: Use with_test_prefix.  Use
append instead of lappend to append to pf_prefix.
* gdb.threads/watchthreads-reorder.exp: Use with_test_prefix.
* gdb.trace/change-loc.exp: Use with_test_prefix.
* gdb.trace/pending.exp: Use with_test_prefix.
* gdb.trace/status-stop.exp: Use with_test_prefix.
* gdb.trace/strace.exp: Use with_test_prefix.
* gdb.trace/trace-break.exp: Use with_test_prefix.
* gdb.trace/unavailable.exp: Use with_test_prefix.  Use append
instead of lappend to append to pf_prefix.

12 years ago2012-02-21 Tristan Gingold <gingold@adacore.com>
Pedro Alves [Tue, 21 Feb 2012 19:39:32 +0000 (19:39 +0000)]
2012-02-21  Tristan Gingold  <gingold@adacore.com>
    Pedro Alves  <palves@redhat.com>

* ia64-tdep.c: Do not include libunwind-ia64.h.
* libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
Include libunwind-ia64.h instead of libunwind.h.
* configure.ac (--with-libunwind, $enable_libunwind): Don't check
for libunwind.h existence.
* configure, config.in: Regenerate.

12 years agoAdd HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease
H.J. Lu [Tue, 21 Feb 2012 18:09:48 +0000 (18:09 +0000)]
Add HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease

gas/

2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
HLEPrefixAny and HLEPrefixRelease.

opcodes/

2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h (HLEPrefixNone): New.
(HLEPrefixLock): Likewise.
(HLEPrefixAny): Likewise.
(HLEPrefixRelease): Likewise.

12 years ago * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
Nick Clifton [Tue, 21 Feb 2012 16:55:31 +0000 (16:55 +0000)]
* gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.

12 years ago PR binutils/13682
Kai Tietz [Tue, 21 Feb 2012 16:10:12 +0000 (16:10 +0000)]
PR binutils/13682
* NEWS: Mention new feature.
* dlltool.c (i386_x64_dljtab): New stub-code for x64
delayed-load feature.
(i386_x64_trampoline): New trampoline-code for x64
delayed-load feature.
(make_one_lib_file): Add support for x64 delayed-load
feature.
(make_delay_head): Likewis

12 years agogdb/
Anton Gorenkov [Tue, 21 Feb 2012 13:48:59 +0000 (13:48 +0000)]
gdb/
* c-valprint.c (c_value_print): Use value_rtti_indirect_type
instead of value_rtti_target_type.
* eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
instead of value_rtti_target_type.
* typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
value_rtti_target_type.
* valops.c (value_ind): Extract function readjust_indirect_value_type.
(value_rtti_target_type): Rename to ...
(value_rtti_indirect_type): ... here and make it indirect.  Update
function comment.
* value.c (readjust_indirect_value_type): New function.
(coerce_ref): Support for enclosing type setting for references
with readjust_indirect_value_type.
* value.h (readjust_value_type): New declaration.
(value_rtti_target_type): Rename to ...
(value_rtti_indirect_type): ... here.

12 years agoprovide a hook to allow checking errors just before we output the file.
Iain Sandoe [Tue, 21 Feb 2012 13:39:37 +0000 (13:39 +0000)]
provide a hook to allow checking errors just before we output the file.

gas:

* write.c (write_object_file): Add md_pre_output_hook.
* config/obj-macho.c (obj_mach_o_check_before_writing): New.
(obj_mach_o_pre_output_hook): New.
* config/obj-macho.h (md_pre_output_hook): Define.
(obj_mach_o_pre_output_hook): Declare.

12 years agogdb/
Anton Gorenkov [Tue, 21 Feb 2012 13:39:30 +0000 (13:39 +0000)]
gdb/
* MAINTAINERS (Write After Approval): Add myself to the list.

12 years ago2012-02-21 Tristan Gingold <gingold@adacore.com>
Iain Sandoe [Tue, 21 Feb 2012 09:13:02 +0000 (09:13 +0000)]
2012-02-21  Tristan Gingold  <gingold@adacore.com>

* config/tc-i386.h (OBJ_MACH_O): New section.
(TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
(TC_FORCE_RELOCATION_SUB_SAME): New
(TC_FORCE_RELOCATION_SUB_LOCAL): New.
(TC_VALIDATE_FIX_SUB): New.
* frags.h (struct frag): OBJ_FRAG_TYPE, new field.
* symbols.c (colon): obj_frob_colon: New hook.
* write.c (write_object_file): md_pre_relax_hook, new
hook.
* config/obj-macho.c (obj_mach_o_frob_colon): New.
(obj_mach_o_frob_label): Record sub-section labels.
(obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
(obj_mach_o_set_subsections): New.
(obj_mach_o_pre_relax_hook): New.
(obj_mach_o_in_different_subsection): New.
(obj_mach_o_force_reloc_sub_same): New.
(obj_mach_o_force_reloc_sub_local): New.
(obj_mach_o_force_reloc): New.
* config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
(obj_frob_colon): New Define.
(obj_mach_o_frob_label): Renamed.
(obj_mach_o_frob_symbol): Renamed.
(OBJ_FRAG_TYPE): New.
(obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
 obj_mach_o_force_reloc_sub_same,
 obj_mach_o_force_reloc_sub_local): New declarations.

12 years ago * objfiles.c (add_to_objfile_sections): Remove outdated comments.
Doug Evans [Tue, 21 Feb 2012 06:55:36 +0000 (06:55 +0000)]
* objfiles.c (add_to_objfile_sections): Remove outdated comments.
Rename objfile_p_char parameter to objfilep.
(build_objfile_section_table): Result is now void.  All callers
updated.
* objfiles.h (struct objfile): Tweak comments, whitespace.
(build_objfile_section_table): Update.

12 years agofix email address in previous entry
Doug Evans [Tue, 21 Feb 2012 06:48:12 +0000 (06:48 +0000)]
fix email address in previous entry

12 years ago * elfread.c (elf_symfile_segments): Fix warning text.
Doug Evans [Tue, 21 Feb 2012 06:44:13 +0000 (06:44 +0000)]
* elfread.c (elf_symfile_segments): Fix warning text.

12 years ago*** empty log message ***
gdbadmin [Tue, 21 Feb 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 20 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 20 Feb 2012 21:03:05 +0000 (21:03 +0000)]
gdb/testsuite/
Fix racy FAILs.
* gdb.base/inferior-died.c (main): Add return of 0.
* gdb.base/inferior-died.exp (continue): Fix expectation of
asynchronous events.
(p 1): New test.

12 years ago PR gdb/13498:
Tom Tromey [Mon, 20 Feb 2012 20:56:12 +0000 (20:56 +0000)]
PR gdb/13498:
* dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
particular set of file names once.
(dw2_map_symbol_filenames): Likewise.

12 years agogas:
Iain Sandoe [Mon, 20 Feb 2012 20:11:32 +0000 (20:11 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_is_frame_section): New.
(obj_mach_o_allow_local_subtract): New.
* config/obj-macho.h (md_allow_local_subtract): Define.
(obj_mach_o_allow_local_subtract): Declare.

12 years agogas:
Iain Sandoe [Mon, 20 Feb 2012 19:44:40 +0000 (19:44 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
canonical information, try to determine CODE and DEBUG section flags
from the mach-o section data.

12 years agogdb/
Jan Kratochvil [Mon, 20 Feb 2012 19:44:01 +0000 (19:44 +0000)]
gdb/
Code cleanup.
* main.c (write_files): Remove the declaration.
(external_editor_command): Move the declaration ...
[GDBTK] (external_editor_command): ... here.  Fix the comment.

12 years ago * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
Tom Tromey [Mon, 20 Feb 2012 19:24:39 +0000 (19:24 +0000)]
* dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
extraneous block.

12 years ago2012-02-20 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 20 Feb 2012 13:20:38 +0000 (13:20 +0000)]
2012-02-20  Pedro Alves  <palves@redhat.com>

* gdb.threads/attach-into-signal.exp (corefunc): Don't enable
lin-lwp output.  Set SIGALRM to stop.  Adjust tests to not rely on
gdb's internal debug output.  For the non-threaded case, look for
"Program received signal SIGLARM", for the threaded case, peek at
the thread's siginfo.

12 years ago2012-02-20 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 20 Feb 2012 13:18:36 +0000 (13:18 +0000)]
2012-02-20  Pedro Alves  <palves@redhat.com>

General cleanup, make output test messages unique, and build
different executable files for the non-threaded and threaded
cases.

* gdb.threads/attach-into-signal.exp (binfile, escapedbinfile):
Delete.
(executable_nothr, executable_thr): New globals.
(top level): Adjust to delete both executables.
(corefunc): New parameter $executable.  Set $pf_prefix instead of
hand writing a prefix in tests.  Issue a clean_restart and enable
lin-lwp debug output here.
(top level): Adjust.  Use build_executable.  Don't start gdb here,
and don't enable lin-lwp debug output here.
* gdb.threads/Makefile.in (EXECUTABLES): Adjust.

12 years ago * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
Nick Clifton [Mon, 20 Feb 2012 10:25:02 +0000 (10:25 +0000)]
* cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
local symbols.

12 years ago2012-02-20 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 20 Feb 2012 09:42:34 +0000 (09:42 +0000)]
2012-02-20  Tristan Gingold  <gingold@adacore.com>

* darwin-nat.h (enum darwin_msg_state): Add comments.

12 years ago2012-02-20 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 20 Feb 2012 09:40:57 +0000 (09:40 +0000)]
2012-02-20  Tristan Gingold  <gingold@adacore.com>

* amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
value.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 20 Feb 2012 06:20:28 +0000 (06:20 +0000)]
gdb/testsuite/
Fix racy FAILs.
* gdb.base/catch-load.exp (one_catch_load_test): Remove duplicate
"continue" command.

12 years ago * objdump.c (slurp_file): Close file if fstat fails.
Alan Modra [Mon, 20 Feb 2012 03:25:21 +0000 (03:25 +0000)]
* objdump.c (slurp_file): Close file if fstat fails.

12 years ago * ld-elf/comm-data.exp: Run for *-*-gnu*.
Alan Modra [Mon, 20 Feb 2012 01:51:52 +0000 (01:51 +0000)]
* ld-elf/comm-data.exp: Run for *-*-gnu*.

12 years ago*** empty log message ***
gdbadmin [Mon, 20 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 19 Feb 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * deffilep.y (cmp_import_elem): Sort first by module name.
Kai Tietz [Sun, 19 Feb 2012 21:18:08 +0000 (21:18 +0000)]
    * deffilep.y (cmp_import_elem): Sort first by module name.
        * pe-dll.c (process_def_file_and_drectve): Free strings
        from removed export-element.
        (add_bfd_to_link): Optimize loop on import-elements and lower
        allocated memory.
        (pe_implied_import_dll): Pass NULL instead of 0 for pointer
        argument.

12 years agogdb/testsuite/
Jan Kratochvil [Sun, 19 Feb 2012 13:05:28 +0000 (13:05 +0000)]
gdb/testsuite/
Fix for gdbserver non-extended mode.
* gdb.base/break-inline.exp (start): Replace "start" by gdb_breakpoint
and gdb_run_cmd.

12 years ago*** empty log message ***
gdbadmin [Sun, 19 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 18 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agoMinor reformatting in breakpoint.c (watchpoint_exp_is_const)
Joel Brobecker [Sat, 18 Feb 2012 17:10:32 +0000 (17:10 +0000)]
Minor reformatting in breakpoint.c (watchpoint_exp_is_const)

gdb/ChangeLog:

  * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
  between function description and implementation.

12 years ago * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
Hans-Peter Nilsson [Sat, 18 Feb 2012 11:55:45 +0000 (11:55 +0000)]
* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
temporary variable node used for NULL argument.

12 years ago*** empty log message ***
gdbadmin [Sat, 18 Feb 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 17 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago PR python/10753:
Tom Tromey [Fri, 17 Feb 2012 19:52:33 +0000 (19:52 +0000)]
PR python/10753:
* gdb.texinfo (objfile-gdb.py file): Fix location of auto-load
directory.

12 years ago PR python/12070:
Tom Tromey [Fri, 17 Feb 2012 19:24:27 +0000 (19:24 +0000)]
PR python/12070:
* python/py-event.c (event_object_getset): New global.
(event_object_type): Reference it.
* python/py-type.c (field_object_getset): New global.
(field_object_type): Reference it.
* python/python-internal.h (gdb_py_generic_dict): Declare.
* python/py-utils.c (gdb_py_generic_dict): New function.
testsuite/gdb
* gdb.python/py-events.py (exit_handler): Add test for 'dir'.
* gdb.python/py-events.exp: Check 'dir' output.
* gdb.python/py-type.exp (test_fields): Add test for 'dir'.

12 years ago2012-02-17 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 17 Feb 2012 16:37:43 +0000 (16:37 +0000)]
2012-02-17  Tristan Gingold  <gingold@adacore.com>

* solib-darwin.c (darwin_current_sos): Check magic and filetype

12 years ago PR ld/13343
Alan Modra [Fri, 17 Feb 2012 14:09:57 +0000 (14:09 +0000)]
PR ld/13343
* ld.h (parsing_defsym): Delete.
* ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
(fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
exp_get_abs_int): Add tree arg for %S in error messages.  Don't
fudge lineno.
(exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
type.filename from sub-tree.
(exp_trinop): Likewise, and use "cond" rather than "lhs".
* ldexp.h (node_type): Add filename field to struct.
* ldfile.c (ldfile_input_filename): Delete.  Remove all refs.
* ldfile.h (ldfile_input_filename): Delete.
* ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
%S in error messages.
* ldemul.c (syslib_default, hll_default): Likewise.
* ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
lang_get_regions, lang_new_phdr): Likewise.
(lang_size_sections_1): Pass addr_tree for %S.
* ldlex.h (lex_redirect): Update prototype.
(ldlex_filename): Declare.
* ldlex.l (<EOF>): Don't set ldfile_input_filename.
(lex_redirect): Add fake_filename and count params.  Push
fake_filename to file_name_stack and init lineno from count.
(ldlex_filename): New function.
(lex_warn_invalid): Use above.
* ldmain.c (main): Update lex_redirect call.
* ldmisc.c (vfinfo <%S>): Take file name and line number from
etree_type arg, or use current if arg is NULL.
* lexsup.c (parsing_defsym): Delete.
(parse_args <OPTION_DEFSYM>): Update lex_redirect call.

12 years agogdb/testsuite/
Yao Qi [Fri, 17 Feb 2012 13:22:58 +0000 (13:22 +0000)]
gdb/testsuite/
* gdb.trace/strace.exp (strace_info_marker): Test `info threads'.

12 years agosupport 16 sect-diffs for mach-o
Iain Sandoe [Fri, 17 Feb 2012 11:23:44 +0000 (11:23 +0000)]
support 16 sect-diffs for mach-o

bfd:

* mach-o-i386.c (i386_howto_table): Add support for 16 bit
sect-diffs.
(bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
(bfd_mach_o_i386_swap_reloc_out): Likewise.

12 years agoadd LOCAL SECDIFF relocation for m32 mach-o
Iain Sandoe [Fri, 17 Feb 2012 10:57:33 +0000 (10:57 +0000)]
add LOCAL SECDIFF relocation for m32 mach-o

bfd:

* reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
* libbfd.h: Regenerated.
* bfd-in2.h: Likewise.
* mach-o-i386.c (i386_howto_table): Include local sectdiff.
(bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
(bfd_mach_o_i386_swap_reloc_out): Likewise.

12 years ago * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
Thomas Schwinge [Fri, 17 Feb 2012 08:39:57 +0000 (08:39 +0000)]
* sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
TYPE_CALLING_CONVENTION annotation.

12 years ago2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 17 Feb 2012 08:38:06 +0000 (08:38 +0000)]
2012-02-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (elf_s390_relocate_section): Support basr in the
GD->LE and LD->LE optimizations.

12 years ago*** empty log message ***
gdbadmin [Fri, 17 Feb 2012 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * MAINTAINERS: Add rx to target ISA section.
Kevin Buettner [Thu, 16 Feb 2012 23:39:37 +0000 (23:39 +0000)]
* MAINTAINERS: Add rx to target ISA section.
* Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
(ALLDEPFILES): Add rx-tdep.c.

12 years agoUpdate sim_fetch_register, sim_store_register for sh and mn10300.
Kevin Buettner [Thu, 16 Feb 2012 23:17:27 +0000 (23:17 +0000)]
Update sim_fetch_register, sim_store_register for sh and mn10300.
Fix compile warnings for sh built on 64-bit hosts.

12 years ago * symfile.c (symbol_file_add_main_1): Use inferior's
Tom Tromey [Thu, 16 Feb 2012 21:07:20 +0000 (21:07 +0000)]
* symfile.c (symbol_file_add_main_1): Use inferior's
symfile_flags.
* solib.c (solib_read_symbols): Use inferior's symfile_flags.
* linux-nat.c (linux_child_follow_fork): Set symfile_flags on
inferior.
* infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
inferior.
(follow_exec): Use inferior's symfile_flags.
* inferior.h (struct inferior) <symfile_flags>: New field.

12 years ago * testsuite/Makefile.am (initpri2): Add --ctors-in-init-array option.
Cary Coutant [Thu, 16 Feb 2012 19:37:34 +0000 (19:37 +0000)]
* testsuite/Makefile.am (initpri2): Add --ctors-in-init-array option.
* testsuite/Makefile.in: Regenerate.

12 years agogdb: sim: check return value of sim_create_inferior
Mike Frysinger [Thu, 16 Feb 2012 18:30:43 +0000 (18:30 +0000)]
gdb: sim: check return value of sim_create_inferior

The current gdbsim_create_inferior func doesn't check the return value
of sim_create_inferior which can be problematic when that func doesn't
return success.  So, if it fails, call error() and be done.

Reported-by: Richard Stuckey <richard.stuckey@arc.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago2012-02-16 Josh Matthews <josh@joshmatthews.net>
Tristan Gingold [Thu, 16 Feb 2012 14:57:02 +0000 (14:57 +0000)]
2012-02-16  Josh Matthews  <josh@joshmatthews.net>

        * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.

12 years ago * gdb.base/inferior-died.c: Don't include stdio.h.
Tom Tromey [Thu, 16 Feb 2012 14:42:51 +0000 (14:42 +0000)]
* gdb.base/inferior-died.c: Don't include stdio.h.

12 years ago PR c++/13653:
Tom Tromey [Thu, 16 Feb 2012 14:35:00 +0000 (14:35 +0000)]
PR c++/13653:
* thread.c (struct current_thread_cleanup) <was_removable>: New
field.
(do_restore_current_thread_cleanup): Restore 'removable' field.
(restore_current_thread_cleanup_dtor): Likewise.
(make_cleanup_restore_current_thread): Initialize new field.
testsuite/gdb
* gdb.base/inferior-died.c: New file.
* gdb.base/inferior-died.exp: New file.

12 years agogdb/gdbserver/
Yao Qi [Thu, 16 Feb 2012 10:38:15 +0000 (10:38 +0000)]
gdb/gdbserver/
* inferiors.c: Move code to ...
* dll.c: .... here.  New.
* server.h: Declare clear_dlls.
* Makefile.in (SFILES): Add dll.c.
(OBS): Add dll.o
(dll.o): New rule.

12 years ago PR binutils/13355
Alan Modra [Thu, 16 Feb 2012 07:40:23 +0000 (07:40 +0000)]
PR binutils/13355
* elf32-rx.c (elf32_rx_relax_section): Correct width check.

12 years ago*** empty log message ***
gdbadmin [Thu, 16 Feb 2012 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 15 Feb 2012 23:00:07 +0000 (23:00 +0000)]
daily update

12 years ago * MAINTAINERS: Add rl78 to target ISA section.
Kevin Buettner [Wed, 15 Feb 2012 22:17:02 +0000 (22:17 +0000)]
* MAINTAINERS: Add rl78 to target ISA section.
* Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
(ALLDEPFILES): Add rl78-tdep.c.
* NEWS: Mention rl78 as a new target.

12 years ago * frame.c (find_frame_sal): Initialize sal->pspace field from frame
Aleksandar Ristovski [Wed, 15 Feb 2012 19:27:59 +0000 (19:27 +0000)]
* frame.c (find_frame_sal): Initialize sal->pspace field from frame
data.
* stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.

testuite:
* gdb.base/break-inline.exp: New file.
* gdb.base/break-inline.c: New file.

12 years ago PR gdb/12659:
Tom Tromey [Wed, 15 Feb 2012 19:13:14 +0000 (19:13 +0000)]
PR gdb/12659:
* infcmd.c (registers_info): Print just the current register's
name.
gdb/testsuite
* gdb.base/pc-fp.exp: Add "info register" tests.

12 years ago * gdb.base/regs.exp: Remove.
Tom Tromey [Wed, 15 Feb 2012 18:49:27 +0000 (18:49 +0000)]
* gdb.base/regs.exp: Remove.

12 years ago * dwarf.c (dwarf_vmatoa64): New function.
Cary Coutant [Wed, 15 Feb 2012 18:32:30 +0000 (18:32 +0000)]
* dwarf.c (dwarf_vmatoa64): New function.
(read_and_display_attr_value): Print 8-byte forms as single hex
numbers.
(process_debug_info): Print type signatures as single hex numbers.
* elfcomm.c (byte_get_64): New function.
* elfcomm.h (byte_get_64): New function.

12 years ago2012-02-15 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 15 Feb 2012 18:09:20 +0000 (18:09 +0000)]
2012-02-15  Pedro Alves  <palves@redhat.com>

* gdb.trace/backtrace.exp: Issue UNSUPPORTED instead of PASS when
the target doesn't support tracepoints.
* gdb.trace/circ.exp: Ditto.
* gdb.trace/collection.exp: Ditto.
* gdb.trace/packetlen.exp: Ditto.
* gdb.trace/passc-dyn.exp: Ditto.
* gdb.trace/report.exp: Ditto.
* gdb.trace/tfind.exp: Ditto.
* gdb.trace/tspeed.exp: Ditto.
* gdb.trace/tsv.exp: Ditto.
* gdb.trace/unavailable.exp: Ditto.
* gdb.trace/while-dyn.exp: Ditto.

12 years ago * python/py-symbol.c (sympy_value): Use _().
Tom Tromey [Wed, 15 Feb 2012 17:51:04 +0000 (17:51 +0000)]
* python/py-symbol.c (sympy_value): Use _().

12 years ago2012-02-15 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 15 Feb 2012 17:20:07 +0000 (17:20 +0000)]
2012-02-15  Pedro Alves  <palves@redhat.com>

* gdb.trace/circ.exp (trace_buffer_normal): Rewrite using
gdb_test_multiple, and call unsupported instead of fail, if the
remote side does not support the request.

12 years ago2012-02-15 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 15 Feb 2012 12:51:17 +0000 (12:51 +0000)]
2012-02-15  Pedro Alves  <palves@redhat.com>

* gdb.server/ext-attach.exp: Make sure gdb is disconnected.
* gdb.server/ext-run.exp: Make sure gdb is disconnected.
* gdb.server/file-transfer.exp: Make sure gdb is disconnected.
* gdb.server/server-mon.exp: Make sure gdb is disconnected.
* gdb.server/server-run.exp: Make sure gdb is disconnected.
* lib/gdbserver-support.exp (gdbserver_start_extended): Only
prepend "extended-" to $gdbserver_protocol if $gdbserver_protocol
doesn't start with "extended-" already.

12 years agogdb/
Pedro Alves [Wed, 15 Feb 2012 12:48:55 +0000 (12:48 +0000)]
gdb/
2012-02-15  Pedro Alves  <palves@redhat.com>

* remote.c (remote_detach_1, extended_remote_attach_1): Tweak
output to be like native targets'.
(remote_pid_to_str): Special case the null ptid.

gdb/testsuite/
2012-02-15  Pedro Alves  <palves@redhat.com>

Support extended-remote.  Avoid cascading timeouts.

* gdb.base/attach.exp (do_attach_tests): Add expected output for
the extended-remote target.  If attaching with no file fails, load
the file manually.
* gdb.server/ext-attach.exp: Adjust expected attach/detach output.

12 years ago * options.cc (General_options::finalize): Disallow -pie and -static.
Cary Coutant [Wed, 15 Feb 2012 00:56:16 +0000 (00:56 +0000)]
* options.cc (General_options::finalize): Disallow -pie and -static.

12 years ago*** empty log message ***
gdbadmin [Wed, 15 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago2012-02-14 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Tue, 14 Feb 2012 23:28:15 +0000 (23:28 +0000)]
2012-02-14  Stan Shebs  <stan@codesourcery.com>

* NEWS: Mention enable count command.
* breakpoint.h (struct breakpoint): New field enable_count.
* breakpoint.c (enable_breakpoint_disp): Add count argument.
(enable_breakpoint): Add arg to call.
(struct disp_data): New struct.
(do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
(do_map_enable_once_breakpoint): Create a struct and pass it.
(do_map_enable_delete_breakpoint): Ditto.
(do_map_enable_count_breakpoint): New function.
(enable_count_command): New function.
(bpstat_stop_status): Decrement enable_count.
(print_one_breakpoint_location): Report enable count.
(_initialize_breakpoint): Add enable count command.

* gdb.texinfo (Disabling Breakpoints): Document enable count.

* gdb.base/ena-dis-br.exp: Add enable count test.

12 years agodaily update
Alan Modra [Tue, 14 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago PR ld/13621
Richard Henderson [Tue, 14 Feb 2012 20:43:26 +0000 (20:43 +0000)]
    PR ld/13621
        * ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.

12 years agorl78-tdep.c: Rearrange order in which registers are displayed.
Kevin Buettner [Tue, 14 Feb 2012 20:15:44 +0000 (20:15 +0000)]
rl78-tdep.c: Rearrange order in which registers are displayed.

12 years ago * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
Kevin Buettner [Tue, 14 Feb 2012 20:07:26 +0000 (20:07 +0000)]
* rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
the name parameter being passed to find_pc_partial_function().

12 years agogdb/
Jan Kratochvil [Tue, 14 Feb 2012 14:42:12 +0000 (14:42 +0000)]
gdb/
* MAINTAINERS: Step down from being ia64 target maintainer.

12 years ago * binutils-all/dlltool.exp: Add setup_xfail.
Alan Modra [Tue, 14 Feb 2012 02:40:39 +0000 (02:40 +0000)]
* binutils-all/dlltool.exp: Add setup_xfail.

12 years agoRegenerate
Alan Modra [Tue, 14 Feb 2012 01:25:47 +0000 (01:25 +0000)]
Regenerate

12 years agoRegenerate.
Alan Modra [Tue, 14 Feb 2012 01:24:35 +0000 (01:24 +0000)]
Regenerate.

12 years ago * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
Alan Modra [Tue, 14 Feb 2012 01:02:04 +0000 (01:02 +0000)]
* ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
* ld-elf/pr11304a.s: Always have whitespace before directives.
* ld-elf/pr11304b.s: Likewise.
* ld-selective/selective.exp: Test m68hc1* variant of m6811, m6812.
* lib/ld-lib.exp: Likewise, and vice versa.

12 years ago * gas/elf/bad-group.s: Add section attributes.
Alan Modra [Tue, 14 Feb 2012 01:01:30 +0000 (01:01 +0000)]
* gas/elf/bad-group.s: Add section attributes.
* gas/elf/elf.exp (groupautoa, groupautob): Don't run for hppa64-hpux.
(ifunc-1, type): Don't run for hpux.
* gas/elf/type-noifunc.e: Accept ANSI_COM.
* gas/elf/section7.s: Always have whitespace before directives.
* gas/elf/warn-2.s: Likewise.
* gas/i386/ifunc-3.s: Move .size directive.