deliverable/binutils-gdb.git
13 years ago2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
Michael Snyder [Tue, 31 Aug 2010 19:31:00 +0000 (19:31 +0000)] 
2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>

* infrun.c (set_exec_direction_func): Error out if target does not
support reverse execution.

13 years ago * gdb.dwarf2/dw4-sig-types.exp: Use .x for executable name.
Doug Evans [Tue, 31 Aug 2010 18:40:10 +0000 (18:40 +0000)] 
* gdb.dwarf2/dw4-sig-types.exp: Use .x for executable name.

13 years agogdb/
Jan Kratochvil [Tue, 31 Aug 2010 18:11:48 +0000 (18:11 +0000)] 
gdb/
Make linux_get_siginfo_type `type *' unique.
* linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
(init_linux_gdbarch_data, get_linux_gdbarch_data): New.
(linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
(_initialize_linux_tdep): New.

13 years agogdb/
Jan Kratochvil [Tue, 31 Aug 2010 18:08:43 +0000 (18:08 +0000)] 
gdb/
Code cleanup.
* defs.h (find_memory_region_ftype): New typedef.
(exec_set_find_memory_regions): Use it.
* exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
* fbsd-nat.c (fbsd_find_memory_regions): Likewise.
* gcore.c (objfile_find_memory_regions): Likewise.
* gnu-nat.c (gnu_find_memory_regions): Likewise.
* linux-nat.c (linux_nat_find_memory_regions): Likewise.
* procfs.c (iterate_over_mappings_cb_ftype): Remove.
(iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
(insert_dbx_link_bpt_in_region): Likewise.
(iterate_over_mappings): Likewise.  Drop the comment part about the
function prototype.
(find_memory_regions_callback): Use find_memory_region_ftype.
(proc_find_memory_regions): Likewise.
(info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
* target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
* target.h (struct target_ops) <to_find_memory_regions>: Likewise.

13 years agoEnable custom bcache hash function.
Sami Wagiaalla [Tue, 31 Aug 2010 17:26:08 +0000 (17:26 +0000)] 
Enable custom bcache hash function.

2010-08-25  Sami Wagiaalla  <swagiaal@redhat.com>

* psymtab.c (add_psymbol_to_bcache): Remove 'static' from
'static partial_symbol psymbol'.
(psymbol_hash): New function.
(psymbol_compare): New function.
* bcache.c (hash_continue): New.
(hash): Use hash_continue.
* bcache.c: Add hash_function and compare_function
pointers to bcache struct.
(bcache_full): Use bcache->hash_function, and
bcache->compare_function.
(bcache_compare): New function.
(bcache_xmalloc): Take hash_function and
compare_function arguments and initialize the
bcach's pointers.
Updated comment.
* objfiles.c (allocate_objfile): Updated.
* symfile.c (reread_symbols): Updated.
* python/py-type.c (typy_richcompare): Updated.

13 years ago * ldlex.l (WILDCHAR): Add the caret and exclamation point
Nick Clifton [Tue, 31 Aug 2010 16:08:24 +0000 (16:08 +0000)] 
    * ldlex.l (WILDCHAR): Add the caret and exclamation point
        characters, so that they can be used inside regexps.

13 years agoRemove an extra "@item".
H.J. Lu [Tue, 31 Aug 2010 14:45:41 +0000 (14:45 +0000)] 
Remove an extra "@item".

2010-08-31  H.J. Lu  <hongjiu.lu@intel.com>

* gdb.texinfo (i386 Features): Remove an extra "@item".

13 years ago2010-08-31 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 31 Aug 2010 14:45:35 +0000 (14:45 +0000)] 
2010-08-31  Kai Tietz  <kai.tietz@onevision.com>

        * config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison.
        (obj_coff_seh_stackalloc): Likewise.

13 years ago * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
Nick Clifton [Tue, 31 Aug 2010 10:26:11 +0000 (10:26 +0000)] 
    * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
        a region's attributes.

13 years ago * config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.
Alan Modra [Tue, 31 Aug 2010 05:34:46 +0000 (05:34 +0000)] 
* config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.

13 years ago * scripttempl/mmo.sc: Move assignment to "Main" inside .text
Alan Modra [Tue, 31 Aug 2010 05:11:29 +0000 (05:11 +0000)] 
* scripttempl/mmo.sc: Move assignment to "Main" inside .text
output section statement.

13 years ago*** empty log message ***
gdbadmin [Tue, 31 Aug 2010 00:00:34 +0000 (00:00 +0000)] 
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 31 Aug 2010 00:00:05 +0000 (00:00 +0000)] 
daily update

13 years ago * config/obj-coff-seh.c: Rewrite the entire file.
Richard Henderson [Mon, 30 Aug 2010 21:51:28 +0000 (21:51 +0000)] 
* config/obj-coff-seh.c: Rewrite the entire file.
(symtab, symptr, reltab, relcount, relsize): Remove.
(seh_ctx_root, seh_ctx): Remove.
(xdata_seg, xdata_subseg, pdata_seg): New.
(switch_xdata, switch_pdata): New.
(verify_context, verify_context_and_target, skip_whitespace_and_comma):
New parsing functions.  Rewrite all parsing functions to use them.
(obj_coff_seh_32): Fix != arm thinko.
(obj_coff_seh_handler): For x64, don't accept handler pointer here,
only flags.
(obj_coff_seh_handlerdata): New.
(do_seh_endproc): Split out of ...
(obj_coff_seh_endproc): ... here.
(obj_coff_seh_proc): Use it, if needed.
(seh_x64_make_prologue_element): Use XRESIZEVEC, symbol_temp_new_now.
(seh_x64_read_reg): Remove mm_regs alternative.  Tidy integer reg
alternatives.  Don't slurp commas.
(seh_read_offset): Remove.
(obj_coff_seh_pushframe): Split out from obj_coff_seh_push.
(obj_coff_seh_scope): Remove.
(obj_coff_seh_save): Decide UWOP_SAVE_* vs _FAR immediately.
(obj_coff_seh_stackalloc): Decide _SMALL vs _LARGE immediately.
(out_one, out_two, out_four): New.
(seh_x64_write_prologue_data, seh_x64_size_prologue_data,
seh_x64_write_function_xdata, write_function_xdata): Rewrite
from seh_x64_write_xdata, seh_needed_unwind_info, seh_store_elm_data,
seh_getelm_data_size, seh_getsize_of_unwind_entry,
seh_make_unwind_entry, seh_getsize_unwind_data, and
seh_create_unwind_data.
(seh_arm_write_function_pdata): Rewrite from seh_arm_create_pdata.
(write_function_pdata): Rewrite from make_function_entry_pdata.
(seh_write_text_eh_data, make_function_entry_pdata,
seh_arm_create_pdata, seh_arm_write_pdata, seh_reloc, save_relocs,
seh_symbol_init, seh_symbol, quick_section, seh_emit_rva,
seh_emit_long, seh_make_globl, seh_make_section2, seh_make_section,
seh_make_xlbl_name, make_seh_text_label, seh_fill_pcsyms,
seh_needed_unwind_info, seh_store_elm_data, seh_getelm_data_size,
seh_getsize_of_unwind_entry, seh_make_unwind_entry,
seh_getsize_unwind_data, seh_create_unwind_data,
seh_make_function_entry_xdata, seh_x64_makescope_elem): Remove.
* config/obj-coff-seh.h (SEH_CMDS): Remove seh_savemm, seh_scope.
Add seh_handlerdata.  Adjust function/what arguments for
seh_savereg, seh_pushframe, seh_stackalloc.
(struct seh_prologue_element): Adjust members to closer match
the elements of the UNWIND_CODE structure.
(struct seh_scope_elem): Remove.
(struct seh_context): Replace char* members with symbolS or
expressionS as appropriate.  Sort members by ARM/x64 applicability.
Remove obsolete stuff wrt direct symbol and reloc manipulation.

13 years agogdb
Tom Tromey [Mon, 30 Aug 2010 20:28:31 +0000 (20:28 +0000)] 
gdb
2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
    Tom Tromey  <tromey@redhat.com>

PR python/11792:
* python/py-value.c (valpy_get_dynamic_type): New function.
(value_object_getset): Add "dynamic_type".
(valpy_get_type): Fail on error.
gdb/doc
PR python/11792:
* gdb.texinfo (Values From Inferior): Document dynamic_type.
gdb/testsuite
PR python/11792:
* gdb.python/py-value.exp (test_subscript_regression): Add
dynamic_type test.

13 years ago * gdb.cp/cpexprs.exp (test_breakpoint): Continue to test_function
Daniel Jacobowitz [Mon, 30 Aug 2010 17:38:10 +0000 (17:38 +0000)] 
* gdb.cp/cpexprs.exp (test_breakpoint): Continue to test_function
instead of running to main.  Do not test the main function.
* gdb/testsuite/gdb.cp/cpexprs.cc (main): Rename to test_function.
Add new main.

13 years ago2010-08-30 Yao Qi <yao@codesourcery.com>
Yao Qi [Mon, 30 Aug 2010 15:26:28 +0000 (15:26 +0000)] 
2010-08-30  Yao Qi  <yao@codesourcery.com>

* arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
(arm_linux_syscall_next_pc): New.
(arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
(arm_linux_init_abi): Initialize syscall_next_pc.
* arm-tdep.c (thumb_get_next_pc_raw):  Get next pc of SWI in Thumb mode.
(arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
* arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
Declare arm_frame_is_thumb.

13 years agoremove file committed by mistake
Nathan Froyd [Mon, 30 Aug 2010 14:07:01 +0000 (14:07 +0000)] 
remove file committed by mistake

13 years agogdb/
Jan Kratochvil [Mon, 30 Aug 2010 09:49:12 +0000 (09:49 +0000)] 
gdb/
Code cleanup.
* breakpoint.c (bpstat_alloc): Remove unused prototype.
(bpstat_alloc): Change parameters cbs to bs_link_pointer.  Adjust the
code.
(bpstat_stop_status): Change root_bs into bs_head and bs_link.  Adjust
calls of bpstat_alloc.  Remove explicit bs chain termination.

13 years ago * cisco-core.c (cisco_core_file_pid): Define.
Alan Modra [Mon, 30 Aug 2010 09:35:25 +0000 (09:35 +0000)] 
* cisco-core.c (cisco_core_file_pid): Define.

13 years ago PR binutils/11953
Alan Modra [Mon, 30 Aug 2010 06:01:22 +0000 (06:01 +0000)] 
PR binutils/11953
* elf.c (copy_elf_program_header): Calculate map->header_size
from lowest_section, not first_section.  Validate program
header p_paddr against section lma.  Find lowest_section in
second loop over headers.

13 years ago*** empty log message ***
gdbadmin [Mon, 30 Aug 2010 00:00:34 +0000 (00:00 +0000)] 
*** empty log message ***

13 years agodaily update
Alan Modra [Mon, 30 Aug 2010 00:00:05 +0000 (00:00 +0000)] 
daily update

13 years agodaily update
Alan Modra [Sun, 29 Aug 2010 00:00:06 +0000 (00:00 +0000)] 
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 29 Aug 2010 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

13 years ago * linux-low.c (__SIGRTMIN): Define if not already defined.
Pedro Alves [Sat, 28 Aug 2010 14:51:29 +0000 (14:51 +0000)] 
* linux-low.c (__SIGRTMIN): Define if not already defined.
(linux_create_inferior): Check for __ANDROID__ rather than
__SIGRTMIN.
(enqueue_one_deferred_signal): Don't requeue non-RT signals that
are already deferred.
(linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
(linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
stopped and already has a pending signal to report.
(proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
a pending signal to report or is moving out of a jump pad.
(linux_init_signals): Check for __ANDROID__ rather than
__SIGRTMIN.

13 years ago * linux-low.c (linux_stabilize_threads): Wrap debug output in a
Pedro Alves [Sat, 28 Aug 2010 14:03:27 +0000 (14:03 +0000)] 
* linux-low.c (linux_stabilize_threads): Wrap debug output in a
debug_threads check.  Avoid a linear search when not doing debug
output.

13 years agogdb/
Jan Kratochvil [Sat, 28 Aug 2010 08:38:25 +0000 (08:38 +0000)] 
gdb/
Code cleanup.
* linux-nat.c (pull_pid_from_list): Rename status to statusp.
(my_waitpid): Likewise.

13 years ago2010-08-27 Doug Kwan <dougkwan@google.com>
Doug Kwan [Sat, 28 Aug 2010 08:05:04 +0000 (08:05 +0000)] 
2010-08-27  Doug Kwan  <dougkwan@google.com>

* gold/resolve.cc (Symbol_table::should_override): Let a weak
reference override an existing dynamic weak reference.
* testsuite/Makefile.am: Add new test dyn_weak_ref.
* testsuite/Makefile.in: Regenerate.
* testsuite/dyn_weak_ref.sh: New file.
* testsuite/dyn_weak_ref_1.c: Ditto.
* testsuite/dyn_weak_ref_2.c: Ditto.

13 years ago * elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
Alan Modra [Sat, 28 Aug 2010 04:04:16 +0000 (04:04 +0000)] 
* elflink.c (_bfd_elf_dynamic_symbol_p): Rename param.  Make
common syms local.
(_bfd_elf_symbol_refs_local_p): Expand comment.
(elf_link_output_extsym): Fix style nit.

13 years agodaily update
Alan Modra [Sat, 28 Aug 2010 00:00:05 +0000 (00:00 +0000)] 
daily update

13 years ago*** empty log message ***
gdbadmin [Sat, 28 Aug 2010 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

13 years ago * dwarf2read.c (dw2_require_line_header): Read from .debug_types
Doug Evans [Fri, 27 Aug 2010 23:09:58 +0000 (23:09 +0000)] 
* dwarf2read.c (dw2_require_line_header): Read from .debug_types
as appropriate.

13 years ago * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
Tom Tromey [Fri, 27 Aug 2010 21:03:39 +0000 (21:03 +0000)] 
* dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
TYPE_FIELD_IGNORE_BITS.

13 years ago * incremental.h (class Incremental_input_entry): Add virtual
Ian Lance Taylor [Fri, 27 Aug 2010 18:00:58 +0000 (18:00 +0000)] 
* incremental.h (class Incremental_input_entry): Add virtual
destructor.

13 years ago * testsuite/start_lib_test_3.c: Mark t3 as used.
Ian Lance Taylor [Fri, 27 Aug 2010 17:57:50 +0000 (17:57 +0000)] 
* testsuite/start_lib_test_3.c: Mark t3 as used.

13 years ago * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
Doug Evans [Fri, 27 Aug 2010 16:37:03 +0000 (16:37 +0000)] 
* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
the order they're defined in.  munmap .debug_types buffer.

13 years ago * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
Pedro Alves [Fri, 27 Aug 2010 16:02:49 +0000 (16:02 +0000)] 
* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
(struct gdb_event) <fd>: Change type to gdb_fildes_t.
(struct file_handler) <fd>: Change type to gdb_fildes_t.
(process_event): Change local fd's type to gdb_fildes_t.
(create_file_handler): Adjust prototype.
(delete_file_handler): Adjust prototype.
(handle_file_event): Adjust prototype.  Use pfildes.
(create_file_event): Adjsut prototype.
* remote-utils.c (remote_desc, listen_desc): Change type to
gdb_fildes_t.
* server.h: New gdb_fildes_t typedef.
[USE_WIN32API]: Include winsock2.h.
(delete_file_handler, add_file_handler): Adjust prototypes.
(pfildes): Declare.
* utils.c (pfildes): New.

13 years agoopcodes/
Nathan Froyd [Fri, 27 Aug 2010 13:59:55 +0000 (13:59 +0000)] 
opcodes/
* ppc-opc.c (powerpc_opcodes) [lswx,lswi,stswx,stswi]: Deprecate
on E500 and E500MC.

13 years agoFix whitespace, tabs/spaces.
Pedro Alves [Fri, 27 Aug 2010 12:02:20 +0000 (12:02 +0000)] 
Fix whitespace, tabs/spaces.

13 years ago * configure.ac (build_warnings): Add -Wno-char-subscripts.
Pedro Alves [Fri, 27 Aug 2010 10:20:07 +0000 (10:20 +0000)] 
* configure.ac (build_warnings): Add -Wno-char-subscripts.
* configure: Regenerate.

13 years ago * options.cc (version_script): Fix small typo in previous
Nick Clifton [Fri, 27 Aug 2010 08:50:05 +0000 (08:50 +0000)] 
    * options.cc (version_script): Fix small typo in previous
        whitespace tidyup.

13 years ago * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
Pedro Alves [Fri, 27 Aug 2010 00:16:48 +0000 (00:16 +0000)] 
* linux-low.c (linux_unprepare_to_access_memory): Rename to ...
(linux_done_accessing_memory): ... this.
(linux_target_ops): Adjust.
* linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
* nto-low.c (nto_target_ops): Adjust comment.
* server.c (gdb_read_memory, gdb_write_memory): Adjust.
* spu-low.c (spu_target_ops): Adjust comment.
* target.h (target_ops): Rename unprepare_to_access_memory field
to done_accessing_memory.
(unprepare_to_access_memory): Rename to ...
(done_accessing_memory): ... this.

13 years agodaily update
Alan Modra [Fri, 27 Aug 2010 00:00:05 +0000 (00:00 +0000)] 
daily update

13 years ago*** empty log message ***
gdbadmin [Fri, 27 Aug 2010 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

13 years ago * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
Doug Evans [Thu, 26 Aug 2010 23:36:53 +0000 (23:36 +0000)] 
* dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
(dw2_forget_cached_source_info): Rename local cu to per_cu.
(dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
(dw2_print_stats, dw2_expand_all_symtabs): Ditto.
(dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
(dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
(dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
(dwarf2_free_objfile, write_one_signatured_type): Ditto.
(write_psymtabs_to_index): Ditto.

13 years ago * linux-low.c (linux_prepare_to_access_memory): New.
Pedro Alves [Thu, 26 Aug 2010 23:17:22 +0000 (23:17 +0000)] 
* linux-low.c (linux_prepare_to_access_memory): New.
(linux_unprepare_to_access_memory): New.
(linux_target_ops): Install them.
* server.c (read_memory): Rename to ...
(gdb_read_memory): ... this.  Use
prepare_to_access_memory/prepare_to_access_memory.
(write_memory): Rename to ...
(gdb_write_memory): ... this.  Use
prepare_to_access_memory/prepare_to_access_memory.
(handle_search_memory_1): Adjust.
(process_serial_event): Adjust.
* target.h (struct target_ops): New fields
prepare_to_access_memory and unprepare_to_access_memory.
(prepare_to_access_memory, unprepare_to_access_memory): New.
* linux-x86-low.c (x86_insert_point, x86_remove_point): Use
prepare_to_access_memory/prepare_to_access_memory.
* nto-low.c (nto_target_ops): Adjust.
* spu-low.c (spu_target_ops): Adjust.
* win32-low.c (win32_target_ops): Adjust.

13 years ago * NEWS: Mention libthread_db debugging with core files.
Pedro Alves [Thu, 26 Aug 2010 19:47:23 +0000 (19:47 +0000)] 
* NEWS: Mention libthread_db debugging with core files.

13 years ago * Makefile.in (WARN_CFLAGS): Get it from configure.
Pedro Alves [Thu, 26 Aug 2010 18:36:28 +0000 (18:36 +0000)] 
* Makefile.in (WARN_CFLAGS): Get it from configure.
(WERROR_CFLAGS): New.
(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
* configure.ac: Introduce --enable-werror, which adds -Werror to
the compiler command line.  Enabled by default.  Disable with
--disable-werror.  Add -Wdeclaration-after-statement
Wpointer-arith and -Wformat-nonliteral to warning flags.
* configure: Regenerate.

13 years ago * Makefile.in (WARN_CFLAGS): Get it from configure.
Pedro Alves [Thu, 26 Aug 2010 18:03:02 +0000 (18:03 +0000)] 
* Makefile.in (WARN_CFLAGS): Get it from configure.
(WERROR_CFLAGS): New.
(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
* configure.ac: Introduce --enable-werror, which adds -Werror to
the compiler command line.  Enabled by default.  Disable with
--disable-werror.  Add -Wdeclaration-after-statement
Wpointer-arith and -Wformat-nonliteral to warning flags.
        * configure: Regenerate.

13 years ago * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
Doug Evans [Thu, 26 Aug 2010 16:47:55 +0000 (16:47 +0000)] 
* dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
forward decl.  Pass pst->dirname to dwarf_decode_lines.
(psymtab_include_file_name): New function.
(dwarf_decode_lines): Call it.  Update comments.

13 years ago * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
Pedro Alves [Thu, 26 Aug 2010 16:47:05 +0000 (16:47 +0000)] 
* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.

13 years ago * gdbreplay.c (remote_error): New.
Pedro Alves [Thu, 26 Aug 2010 16:24:41 +0000 (16:24 +0000)] 
* gdbreplay.c (remote_error): New.
(gdbchar): New.
(expect): Use gdbchar.  Check for error reading from GDB.
Clarify sync error output.
(play): Check for errors writing to GDB.
* linux-low.c (sigchld_handler): Really ignore `write' errors.
* remote-utils.c (getpkt): Check for errors writing to the remote
descriptor.

13 years ago * gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
Pedro Alves [Thu, 26 Aug 2010 14:53:45 +0000 (14:53 +0000)] 
* gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
one test.

13 years ago * elf32-arm.c (elf32_arm_final_link): Process stub sections
Nathan Sidwell [Thu, 26 Aug 2010 10:32:26 +0000 (10:32 +0000)] 
* elf32-arm.c (elf32_arm_final_link): Process stub sections
exactly once.

13 years agodaily update
Alan Modra [Thu, 26 Aug 2010 00:00:05 +0000 (00:00 +0000)] 
daily update

13 years ago*** empty log message ***
gdbadmin [Thu, 26 Aug 2010 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

13 years agoDon't set unique_global for non-ELF hash link table.
H.J. Lu [Wed, 25 Aug 2010 20:35:58 +0000 (20:35 +0000)] 
Don't set unique_global for non-ELF hash link table.

2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11939
* elflink.c (elf_link_add_object_symbols): Don't set
unique_global for non-ELF hash link table.

13 years ago * dwarf2read.c (inherit_abstract_dies): Handle origin die's
Pedro Alves [Wed, 25 Aug 2010 18:20:07 +0000 (18:20 +0000)] 
* dwarf2read.c (inherit_abstract_dies): Handle origin die's
compilation unit being different from target die's.

13 years agoCheck audit entry only on ELF input.
H.J. Lu [Wed, 25 Aug 2010 16:57:32 +0000 (16:57 +0000)] 
Check audit entry only on ELF input.

2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11946
* emultempl/elf32.em (_before_allocation): Check audit entry
only on ELF input.

13 years ago * linux-low.c (linux_wait_1): Move non-debugging code out of
Pedro Alves [Wed, 25 Aug 2010 16:49:04 +0000 (16:49 +0000)] 
* linux-low.c (linux_wait_1): Move non-debugging code out of
`debug_threads' control.

13 years ago * linux-low.c (linux_wait_1): Don't set last_status here.
Pedro Alves [Wed, 25 Aug 2010 16:27:05 +0000 (16:27 +0000)] 
* linux-low.c (linux_wait_1): Don't set last_status here.
* server.c (push_event, queue_stop_reply_callback): Assert we're
not pushing a TARGET_WAITKIND_IGNORE event.
(start_inferior, start_inferior, attach_inferior, handle_v_cont)
(myresume, handle_target_event): Set the thread's last_resume_kind
and last_status from the target returned status.

13 years agoMove gas/ld NEWS from binutils to gas/ld.
H.J. Lu [Wed, 25 Aug 2010 16:03:58 +0000 (16:03 +0000)] 
Move gas/ld NEWS from binutils to gas/ld.

13 years agoAdd target_id to elf_backend_data.
H.J. Lu [Wed, 25 Aug 2010 14:53:45 +0000 (14:53 +0000)] 
Add target_id to elf_backend_data.

2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11944
* elf-bfd.h (elf_backend_data): Add target_id.
(bfd_elf_make_generic_object): Renamed to ...
(bfd_elf_make_object): This.

* elf.c (bfd_elf_make_generic_object): Removed.
(bfd_elf_make_object): New.
(bfd_elf_mkcorefile): Really treat it as an object file.

* elf-m10300.c (ELF_TARGET_ID): New.
* elf32-arm.c (ELF_TARGET_ID): Likewise.
* elf32-bfin.c (ELF_TARGET_ID): Likewise.
* elf32-cris.c (ELF_TARGET_ID): Likewise.
* elf32-frv.c (ELF_TARGET_ID): Likewise.
* elf32-i386.c (ELF_TARGET_ID): Likewise.
* elf32-lm32.c (ELF_TARGET_ID): Likewise.
* elf32-m32r.c (ELF_TARGET_ID): Likewise.
* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
* elf32-m68k.c (ELF_TARGET_ID): Likewise.
* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
* elf32-ppc.c (ELF_TARGET_ID): Likewise.
* elf32-s390.c (ELF_TARGET_ID): Likewise.
* elf32-sh.c (ELF_TARGET_ID): Likewise.
* elf32-sparc.c (ELF_TARGET_ID): Likewise.
* elf32-spu.c (ELF_TARGET_ID): Likewise.
* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
* elf64-alpha.c (ELF_TARGET_ID): Likewise.
* elf64-hppa.c (ELF_TARGET_ID): Likewise.
* elf64-ppc.c (ELF_TARGET_ID): Likewise.
* elf64-s390.c (ELF_TARGET_ID): Likewise.
* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
* elfxx-ia64.c (ELF_TARGET_ID): Likewise.

* elf32-hppa.c (elf32_hppa_mkobject): Removed.
(bfd_elf32_mkobject): Likewise.
(ELF_TARGET_ID): New.

* elf32-mips.c (ELF_TARGET_ID): New.
(bfd_elf32_mkobject): Removed.

* elf64-mips.c (ELF_TARGET_ID): New.
(bfd_elf64_mkobject): Removed.

* elfn32-mips.c (ELF_TARGET_ID): New.
(bfd_elf32_mkobject): Removed.

* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.

* elfxx-target.h (bfd_elfNN_mkobject): Default to
bfd_elf_make_object.
(ELF_TARGET_ID): New.  Default to GENERIC_ELF_DATA.
(elfNN_bed): Initialize target_id.

13 years ago PR threads/10729
Pedro Alves [Wed, 25 Aug 2010 14:40:21 +0000 (14:40 +0000)] 
PR threads/10729

* linux-x86-low.c (update_debug_registers_callback): New.
(i386_dr_low_set_addr): Use it.
(i386_dr_low_get_addr): New.
(i386_dr_low_set_control): Use update_debug_registers_callback.
(i386_dr_low_get_control): New.
(i386_dr_low_get_status): Adjust.
* linux-low.c (linux_stop_lwp): New.
* linux-low.h (linux_stop_lwp): Declare.

* i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
argument instead of a i386_debug_reg_state.
(I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
a i386_debug_reg_state.
(i386_insert_aligned_watchpoint): Adjust.
(i386_remove_aligned_watchpoint): Adjust.
(i386_low_stopped_data_address): Read the debug registers from the
inferior instead of from the mirrors.
* i386-low.h (struct i386_debug_reg_state): Extend comment.
(i386_dr_low_get_addr): Declare.
(i386_dr_low_get_control): Declare.
(i386_dr_low_get_status): Change prototype.

* win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
(i386_dr_low_get_addr): New.
(i386_dr_low_get_control): New.
(i386_dr_low_get_status): Adjust prototype.  Return
dr_status_mirror.
(i386_initial_stuff): Clear dr_status_mirror and
dr_control_mirror.
(i386_get_thread_context): Adjust.
(i386_set_thread_context): Adjust.
(i386_thread_added): Adjust.

13 years ago bfd/
Julian Brown [Wed, 25 Aug 2010 12:37:30 +0000 (12:37 +0000)] 
bfd/
    * elf32-arm.c (arm_stub_required_alignment): New.
    (arm_build_one_stub): Use above to partition stubs.
    (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
    arm_stub_a8_veneer_b_cond.

    ld/testsuite/
    * ld-arm/arm-elf.exp (armelftests): Add cortex-a8-fix-blx-bcond.s.
    * ld-arm/cortex-a8-fix-blx-bcond.s: New.
    * ld-arm/cortex-a8-fix-blx-bcond.d: New.

13 years ago * configure.tgt (m68k-*-aout): Change to bfd_gas=yes.
Alan Modra [Wed, 25 Aug 2010 12:03:30 +0000 (12:03 +0000)] 
* configure.tgt (m68k-*-aout): Change to bfd_gas=yes.

13 years ago * config/tc-d10v.c (do_assemble): Correctly detect overflow of
Alan Modra [Wed, 25 Aug 2010 11:51:07 +0000 (11:51 +0000)] 
* config/tc-d10v.c (do_assemble): Correctly detect overflow of
"name" buffer.
* config/tc-m68hc11.c (md_assemble): Likewise.
* config/tc-microblaze.c (md_assemble): Likewise.  Correct cast
of is_end_of_line index.

13 years ago * archive.cc: Formatting fixes: Remove whitespace between
Nick Clifton [Wed, 25 Aug 2010 08:36:54 +0000 (08:36 +0000)] 
    * archive.cc: Formatting fixes: Remove whitespace between
        typename and following asterisk.  Remove whitespace between
        function name and opening parenthesis.
        * archive.h: Likewise.
        * arm.cc: Likewise.
        * attributes.cc: Likewise.
        * attributes.h: Likewise.
        * common.cc: Likewise.
        * copy-relocs.cc: Likewise.
        * dirsearch.h: Likewise.
        * dynobj.cc: Likewise.
        * ehframe.cc: Likewise.
        * ehframe.h: Likewise.
        * expression.cc: Likewise.
        * fileread.cc: Likewise.
        * fileread.h: Likewise.
        * gc.h: Likewise.
        * gold-threads.cc: Likewise.
        * gold.cc: Likewise.
        * i386.cc: Likewise.
        * icf.h: Likewise.
        * incremental-dump.cc: Likewise.
        * incremental.cc: Likewise.
        * layout.cc: Likewise.
        * layout.h: Likewise.
        * main.cc: Likewise.
        * merge.cc: Likewise.
        * merge.h: Likewise.
        * object.cc: Likewise.
        * object.h: Likewise.
        * options.cc: Likewise.
        * options.h: Likewise.
        * output.cc: Likewise.
        * output.h: Likewise.
        * plugin.cc: Likewise.
        * plugin.h: Likewise.
        * powerpc.cc: Likewise.
        * reloc.cc: Likewise.
        * script-c.h: Likewise.
        * script-sections.cc: Likewise.
        * script.cc: Likewise.
        * stringpool.cc: Likewise.
        * symtab.cc: Likewise.
        * symtab.h: Likewise.
        * target.cc: Likewise.
        * timer.cc: Likewise.
        * timer.h: Likewise.
        * version.cc: Likewise.
        * x86_64.cc: Likewise.

13 years ago * NEWS: Mention ampersand in macro change.
Alan Modra [Wed, 25 Aug 2010 08:26:37 +0000 (08:26 +0000)] 
* NEWS: Mention ampersand in macro change.

13 years ago * aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
Alan Modra [Wed, 25 Aug 2010 07:02:40 +0000 (07:02 +0000)] 
* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
* reloc.c (bfd_default_reloc_type_lookup): Likewise.
* riscix.c (riscix_reloc_type_lookup): Likewise.

13 years ago * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
Alan Modra [Wed, 25 Aug 2010 06:49:55 +0000 (06:49 +0000)] 
* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
headers if any loaded section wraps the address space.  Simplify
~(m-1) to -m.  Use lma rather than vma when determining whether
note sections are adjacent.

13 years ago * config/tc-arm.c (encode_arm_addr_mode_2): Fix comment.
Jie Zhang [Wed, 25 Aug 2010 05:59:13 +0000 (05:59 +0000)] 
* config/tc-arm.c (encode_arm_addr_mode_2): Fix comment.

13 years ago * config/tc-arm.c (encode_arm_addr_mode_2): Fix
Jie Zhang [Wed, 25 Aug 2010 05:25:09 +0000 (05:25 +0000)] 
* config/tc-arm.c (encode_arm_addr_mode_2): Fix
BAD_PC_ADDRESSING condition.

testsuite/
* gas/arm/ldst-pc.d: New test.
* gas/arm/ldst-pc.s: New test.
* gas/arm/sp-pc-validations-bad.s: `str r0,[pc,#4]' is valid.
* gas/arm/sp-pc-validations-bad.l: Adjust accordingly.

13 years ago PR symtab/11942
Doug Evans [Wed, 25 Aug 2010 00:09:14 +0000 (00:09 +0000)] 
PR symtab/11942
* dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
debug_types_type_hash.
(dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
All uses updated.
(lookup_die_type): Renamed from tag_type_to_tag.  First look in
appropriate type_hash table.  All callers updated.
(allocate_signatured_type_table): Renamed from
allocate_signatured_type_hash_table.  All callers updated.
(create_signatured_type_table_from_index): Renamed from
create_signatured_type_hash_from_index.  All callers updated.
(read_die_type): Add comment.  Move actual reading to ...
(read_die_type_1): ... here.  New function.
(follow_die_ref_or_sig): Tweak comment.
(set_die_type): Rewrite to use appropriate choice of
debug_info_type_hash or debug_types_type_hash.
(get_die_type_at_offset): New function.
(get_die_type): Call it.

testsuite/
PR symtab/11942
* gdb.dwarf2/dw4-sig-types.cc: New file.
* gdb.dwarf2/dw4-sig-types.h: New file.
* gdb.dwarf2/dw4-sig-types-b.cc: New file.
* gdb.dwarf2/dw4-sig-types.exp: New file.

13 years ago*** empty log message ***
gdbadmin [Wed, 25 Aug 2010 00:00:34 +0000 (00:00 +0000)] 
*** empty log message ***

13 years agodaily update
Alan Modra [Wed, 25 Aug 2010 00:00:05 +0000 (00:00 +0000)] 
daily update

13 years ago * linux-low.h (linux_thread_area): Delete declaration.
Pedro Alves [Tue, 24 Aug 2010 20:13:15 +0000 (20:13 +0000)] 
* linux-low.h (linux_thread_area): Delete declaration.

13 years agogdb/
Jan Kratochvil [Tue, 24 Aug 2010 17:24:28 +0000 (17:24 +0000)] 
gdb/
* python/py-type.c (typy_richcompare): Initialize worklist.

13 years agoFix typos in ld-x86-64/x86-64.exp.
H.J. Lu [Tue, 24 Aug 2010 16:36:25 +0000 (16:36 +0000)] 
Fix typos in ld-x86-64/x86-64.exp.

2010-08-24  H.J. Lu  <hongjiu.lu@intel.com>

* ld-x86-64/x86-64.exp: Fix typos.

13 years ago * arm-tdep.c: Include features/arm-with-m.c.
Daniel Jacobowitz [Tue, 24 Aug 2010 15:56:15 +0000 (15:56 +0000)] 
* arm-tdep.c: Include features/arm-with-m.c.
(arm_psr_thumb_bit): New.  Update all uses of CPSR_T to
call this function.
(arm_pc_is_thumb): Add a gdbarch argument.  Update all callers.
Check is_m after force-mode.
(arm_gdbarch_init): Check the binary before the target description.
Add check for M profile attribute.  If we have an M-profile device,
but no target register description, use arm-with-m.  Recognize the
new org.gnu.gdb.arm.m-profile feature and its xpsr register.
(_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
* arm-tdep.h (XPSR_T): Define.
(struct gdbarch_tdep): Add is_m member.
* features/arm-m-profile.xml, features/arm-with-m.c,
features/arm-with-m.xml: New files.

doc/
* gdb.texinfo (ARM Features): Document
org.gnu.gdb.arm.m-profile.

13 years ago PR 11899
Nick Clifton [Tue, 24 Aug 2010 07:24:10 +0000 (07:24 +0000)] 
    PR 11899
        * layout.cc (segment_precedes): Sort segments by their physical
        addresses, if they have been set.

13 years ago * sim/cris/asm/nonvcv32.ms: Neutralize changed &&-in-macro gas syntax.
Hans-Peter Nilsson [Tue, 24 Aug 2010 01:14:38 +0000 (01:14 +0000)] 
* sim/cris/asm/nonvcv32.ms: Neutralize changed &&-in-macro gas syntax.

13 years agodaily update
Alan Modra [Tue, 24 Aug 2010 00:00:06 +0000 (00:00 +0000)] 
daily update

13 years ago*** empty log message ***
gdbadmin [Tue, 24 Aug 2010 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

13 years ago * dwarf2read.c (set_die_type): Fix typo in comment.
Doug Evans [Mon, 23 Aug 2010 21:49:26 +0000 (21:49 +0000)] 
* dwarf2read.c (set_die_type): Fix typo in comment.

13 years ago * dwarf2read.c (read_structure_type): Add comment.
Doug Evans [Mon, 23 Aug 2010 21:44:39 +0000 (21:44 +0000)] 
* dwarf2read.c (read_structure_type): Add comment.
(read_enumeration_type): Add comment.
(process_enumeration_scope): Move definition of some locals
closer to their use.
(read_namespace_type): Add comment.

13 years agogdb
Tom Tromey [Mon, 23 Aug 2010 20:29:19 +0000 (20:29 +0000)] 
gdb
PR python/11145:
* python/py-value.c: Include expression.h.
(valpy_do_cast): New function.
(valpy_cast): Use it.
(valpy_dynamic_cast): New function.
(valpy_reinterpret_cast): Likewise.
(value_object_methods): Add dynamic_cast, reinterpret_cast.
gdb/doc
PR python/11145:
* gdb.texinfo (Values From Inferior): Document dynamic_cast and
reinterpret_cast methods.
gdb/testsuite
PR python/11145:
* gdb.python/py-value.c (Base, Derived): New types.
(base): New global.
* gdb.python/py-value.exp (test_subscript_regression): Add
dynamic_cast test.

13 years ago * archive.cc (Lib_group::add_symbols): Lock object before deleting its
Cary Coutant [Mon, 23 Aug 2010 20:28:24 +0000 (20:28 +0000)] 
* archive.cc (Lib_group::add_symbols): Lock object before deleting its
symbols data.
(Lib_group::include_member): Unlock object after deleting its
symbols data.
* testsuite/start_lib_test_3.c: Remove all global symbols to trigger
the bug fixed here.

13 years ago PR python/11391:
Tom Tromey [Mon, 23 Aug 2010 20:27:49 +0000 (20:27 +0000)] 
PR python/11391:
* python/py-value.c (valpy_nonzero): Don't throw error for other
Value types.

13 years agogdb
Tom Tromey [Mon, 23 Aug 2010 20:26:10 +0000 (20:26 +0000)] 
gdb
PR python/10676:
* python/py-type.c: Include bcache.h, vec.h.
(struct type_equality_entry): New.
(compare_strings): New function.
(check_types_equal): Likewise.
(check_types_worklist): Likewise.
(typy_richcompare): Likewise.
(type_object_type): Set tp_richcompare field.
gdb/testsuite
PR python/10676:
* gdb.python/py-type.exp (test_fields): Add tests for type
equality.

13 years ago PR python/10953:
Tom Tromey [Mon, 23 Aug 2010 20:23:55 +0000 (20:23 +0000)] 
PR python/10953:
* python/py-type.c (typy_fields): Call check_typedef.
(typy_template_argument): Add TRY_CATCH.

13 years agogdb
Tom Tromey [Mon, 23 Aug 2010 20:21:28 +0000 (20:21 +0000)] 
gdb
PR python/11915:
* python/py-type.c (typy_array): New function.
(type_object_methods): Add "array".
gdb/doc
PR python/11915:
* gdb.texinfo (Types In Python): Document array method.
gdb/testsuite
PR python/11915:
* gdb.python/py-type.exp (test_fields): Add tests for array.

13 years ago * gdb.dwarf2/dw2-double-set-die-type.S: DIE 0x51f does not
Keith Seitz [Mon, 23 Aug 2010 19:12:53 +0000 (19:12 +0000)] 
* gdb.dwarf2/dw2-double-set-die-type.S: DIE 0x51f does not
have any children. Create a new abbrev for it.
Add missing terminal sequence to .debug_abbrev.

13 years agoAdd --input-osabi and --output-osabi to elfedit.
H.J. Lu [Mon, 23 Aug 2010 16:25:53 +0000 (16:25 +0000)] 
Add --input-osabi and --output-osabi to elfedit.

binutils/

2010-08-23  H.J. Lu  <hongjiu.lu@intel.com>

* elfedit.c (input_elf_osabi): New.
(output_elf_osbi): Likewise.
(osabis): Likewise.
(elf_osabi): Likewise.
(update_elf_header): Support updating ELF OSABI.
(make_qualified_name): Break long line.
(command_line_switch): Add OPTION_INPUT_OSABI and
OPTION_OUTPUT_OSABI.
(options): Likewise.
(usage): Add --input-osabi and --output-osabi.
(main): Handle OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI.

* doc/binutils.texi: Document --input-osabi and --output-osabi
for elfedit.

binutils/testsuite/

2010-08-23  H.J. Lu  <hongjiu.lu@intel.com>

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

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

13 years ago binutils/
Maciej W. Rozycki [Mon, 23 Aug 2010 13:51:40 +0000 (13:51 +0000)] 
binutils/
* readelf.c (display_mips_gnu_attribute): Replace GCC options
with a textual description of a MIPS32r2 64-bit FPU.

ld/testsuite/
* ld-mips-elf/attr-gnu-4-04.d: Adjust Tag_GNU_MIPS_ABI_FP for
the new MIPS32r2 64-bit FPU description.
* ld-mips-elf/attr-gnu-4-40.d: Likewise.
* ld-mips-elf/attr-gnu-4-44.d: Likewise.

13 years agodaily update
Alan Modra [Mon, 23 Aug 2010 00:00:05 +0000 (00:00 +0000)] 
daily update

13 years ago*** empty log message ***
gdbadmin [Mon, 23 Aug 2010 00:00:04 +0000 (00:00 +0000)] 
*** empty log message ***

13 years agoFind one .eh_frame section for --eh-frame-hdr.
H.J. Lu [Sun, 22 Aug 2010 20:21:21 +0000 (20:21 +0000)] 
Find one .eh_frame section for --eh-frame-hdr.

2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11937
* emultempl/elf32.em (_after_open): Find one .eh_frame section
for --eh-frame-hdr.

13 years agoDon't check relocation if input ELF object ID doesn't match output.
H.J. Lu [Sun, 22 Aug 2010 19:14:25 +0000 (19:14 +0000)] 
Don't check relocation if input ELF object ID doesn't match output.

bfd/

2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11933
* elflink.c (elf_link_add_object_symbols): Don't check relocation
if input ELF object ID doesn't match output.

ld/testsuite/

2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11933
* ld-x86-64/mixed1a.s: New.
* ld-x86-64/mixed1b.s: Likewise.
* ld-x86-64/mixed2a.s: Likewise.
* ld-x86-64/mixed2b.s: Likewise.

* ld-x86-64/x86-64.exp: Text mixed x86_64 and i386 inputs.

This page took 0.04468 seconds and 4 git commands to generate.