external/binutils.git
12 years ago*** empty log message ***
gdbadmin [Sun, 20 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 19 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 19 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 18 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * findvar.c (read_frame_register_value): Respect value_offset
Ulrich Weigand [Fri, 18 Nov 2011 20:03:42 +0000 (20:03 +0000)]
* findvar.c (read_frame_register_value): Respect value_offset
of the register value.  Remove big-endian special case.

12 years ago PR build/7196:
Tom Tromey [Fri, 18 Nov 2011 15:38:58 +0000 (15:38 +0000)]
PR build/7196:
* remote.c (putpkt_for_catch_errors): New function.
(remote_kill): Use it.

12 years agogdb/
Yao Qi [Fri, 18 Nov 2011 01:21:35 +0000 (01:21 +0000)]
gdb/
* breakpoint.c (create_breakpoint): Produce query message according to
breakpoint's type.
Allocate tracepoint per correct type.
Don't check SALs for pending fast tracepoints.
* tracepoint.c (process_tracepoint_on_disconnect): New.
(disconnect_tracing): Call process_tracepoint_on_disconnect.

gdb/doc/
* gdb.texinfo (Create and Delete Tracepoints): Mention pending
tracepoint.

gdb/testsuite/
* gdb.trace/pending.exp: New.
* gdb.trace/pending.c: New.
* gdb.trace/pendshr1.c: New.
* gdb.trace/pendshr2.c: New.
* gdb.trace/change-loc.exp (tracepoint_change_loc_1): Check one
tracepoint location becomes pending.
(tracepoint_change_loc_2): New.

12 years ago * breakpoint.c (install_breakpoint): Add one more parameter so that
Yao Qi [Fri, 18 Nov 2011 01:03:51 +0000 (01:03 +0000)]
* breakpoint.c (install_breakpoint):  Add one more parameter so that
update_global_location_list is called conditionally.
(create_fork_vfork_event_catchpoint): Update.
(create_syscall_event_catchpoint): Update.
(create_breakpoint_sal): Update.
(create_breakpoint_sal): Update. Call do_cleanups before
install_breakpoint.
* ada-lang.c (create_ada_exception_catchpoint): Update.
* breakpoint.h (install_breakpoint): Update declaration.

12 years ago*** empty log message ***
gdbadmin [Fri, 18 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 17 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2011-11-17 Sterling Augustine <saugustine@google.com>
Sterling Augustine [Thu, 17 Nov 2011 17:46:54 +0000 (17:46 +0000)]
2011-11-17  Sterling Augustine  <saugustine@google.com>

* script.cc (script_include_directive): Implement.
(read_script_file): New local variables name and search_path. Update
comment. Call IS_ABSOLUTE_PATH and Dirsearch::find_file_in_dir_list.
* dirsearch.h (Dirsearch::find_file_in_dir_list): Declare new method.
* dirsearch.cc (Dirsearch::find_file_in_dir_list): Implement it.

12 years ago * config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8.
David S. Miller [Thu, 17 Nov 2011 04:24:56 +0000 (04:24 +0000)]
* config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8.

12 years ago * elf32-arm.c (elf32_thumb_to_arm_stub): Sync message so that it
Alan Modra [Thu, 17 Nov 2011 00:20:01 +0000 (00:20 +0000)]
* elf32-arm.c (elf32_thumb_to_arm_stub): Sync message so that it
needs to be translated only once.

12 years ago*** empty log message ***
gdbadmin [Thu, 17 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 16 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * spu-tdep.c (spu_return_value): Fix handling of
Ulrich Weigand [Wed, 16 Nov 2011 18:30:09 +0000 (18:30 +0000)]
* spu-tdep.c (spu_return_value): Fix handling of
TYPE_CALLING_CONVENTION annotation.

12 years ago * skip.c (skip_function_command): Work around uninitialized
Ulrich Weigand [Wed, 16 Nov 2011 18:29:34 +0000 (18:29 +0000)]
* skip.c (skip_function_command): Work around uninitialized
variable warning.

12 years ago * lib/gdb.exp (can_single_step_to_signal_handler): Return zero when
David S. Miller [Wed, 16 Nov 2011 18:16:27 +0000 (18:16 +0000)]
* lib/gdb.exp (can_single_step_to_signal_handler): Return zero when
target is sparc*-*-linux*

12 years ago * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
David S. Miller [Wed, 16 Nov 2011 18:14:53 +0000 (18:14 +0000)]
* utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
'tv_usec' to long for printf since these fields have a type which
varies.

12 years ago gas/
Maciej W. Rozycki [Wed, 16 Nov 2011 12:34:34 +0000 (12:34 +0000)]
gas/
* config/tc-mips.c (macro): Fix unsupported opcode message
capitalization.
(mips_ip, mips16_ip): Likewise.

gas/testsuite/
* gas/mips/mips-double-float-flag.l: Adjust according to
unsupported opcode message capitalization fix.
* gas/mips/mips-hard-float-flag.l: Likewise.
* gas/mips/mips-macro-ill-nofp.l: Likewise.
* gas/mips/mips-macro-ill-sfp.l: Likewise.
* gas/mips/mips1-fp.l: Likewise.
* gas/mips/mips16e-64.l: Likewise.
* gas/mips/mips32-sf32.l: Likewise.
* gas/mips/mips32r2-fp32.l: Likewise.
* gas/mips/mips4-branch-likely.l: Likewise.
* gas/mips/mips4-fp.l: Likewise.
* gas/mips/octeon-ill.l: Likewise.

12 years ago * config/tc-mips.c (ISA_SUPPORTS_MCU_ASE): Also set if microMIPS
Maciej W. Rozycki [Wed, 16 Nov 2011 12:29:56 +0000 (12:29 +0000)]
* config/tc-mips.c (ISA_SUPPORTS_MCU_ASE): Also set if microMIPS
mode.

12 years ago * config/tc-mips.c (macro_build_jalr): Reverse a negative
Maciej W. Rozycki [Wed, 16 Nov 2011 12:27:06 +0000 (12:27 +0000)]
* config/tc-mips.c (macro_build_jalr): Reverse a negative
conditional.
(mips_ip): Likewise.

12 years ago * micromips-opc.c (micromips_opcodes): Use NODS rather than TRAP
Maciej W. Rozycki [Wed, 16 Nov 2011 12:24:08 +0000 (12:24 +0000)]
* micromips-opc.c (micromips_opcodes): Use NODS rather than TRAP
for "alnv.ps".

12 years ago * config/tc-mips.c (mips_cpu_info_table): Add "m14ke" and
Maciej W. Rozycki [Wed, 16 Nov 2011 12:21:35 +0000 (12:21 +0000)]
* config/tc-mips.c (mips_cpu_info_table): Add "m14ke" and
"m14kec".
* doc/c-mips.texi (MIPS architecture options): Add "m14ke" and
"m14kec" to the list of -march options.

12 years ago * elf64-mips.c (mips_elf64_howto_table_rela): Set src_mask to
Maciej W. Rozycki [Wed, 16 Nov 2011 12:12:22 +0000 (12:12 +0000)]
* elf64-mips.c (mips_elf64_howto_table_rela): Set src_mask to
zero throughout.
(mips16_elf64_howto_table_rela): Likewise.
(micromips_elf64_howto_table_rela): Likewise.
* elfn32-mips.c (elf_mips_howto_table_rela): Likewise.
(elf_mips16_howto_table_rela): Likewise.
(elf_micromips_howto_table_rela): Likewise.

12 years ago*** empty log message ***
gdbadmin [Wed, 16 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * buildsym.c (add_symbol_to_list): Delete outdated comment.
Doug Evans [Tue, 15 Nov 2011 23:12:30 +0000 (23:12 +0000)]
* buildsym.c (add_symbol_to_list): Delete outdated comment.

12 years agodaily update
Alan Modra [Tue, 15 Nov 2011 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agoObvious: Fix error in name of concerned macro ETIMEDOUT
Pierre Muller [Tue, 15 Nov 2011 22:04:43 +0000 (22:04 +0000)]
Obvious: Fix error in name of concerned macro ETIMEDOUT

12 years ago* gdb.python/py-type.exp: New testcases for exceptions on scalar types
Paul Koning [Tue, 15 Nov 2011 21:17:40 +0000 (21:17 +0000)]
* gdb.python/py-type.exp: New testcases for exceptions on scalar types

12 years ago* python/py-type.c (typy_get_composite): New function.
Paul Koning [Tue, 15 Nov 2011 21:17:04 +0000 (21:17 +0000)]
* python/py-type.c (typy_get_composite): New function.
(typy_nonzero): New function.
(typy_values): Rename from typy_fields.
(typy_fields): New function.
(typy_length): Raise exception if not struct, union, or enum type.
(typy_getitem): Ditto.
(typy_has_key): Ditto.
(typy_make_iter): Ditto.

12 years ago* ld/ldlang.c (insert_pad): Change alignment_needed argument to
Andreas Schwab [Tue, 15 Nov 2011 18:22:27 +0000 (18:22 +0000)]
* ld/ldlang.c (insert_pad): Change alignment_needed argument to
bfd_size_type.
(size_input_section): Change alignment_needed varible to
bfd_size_type.
* ld/ldlang.h (lang_padding_statement_type): Change size field to
bfd_size_type.

12 years ago * NEWS: Mention new parameter basenames-may-differ.
Doug Evans [Tue, 15 Nov 2011 17:40:02 +0000 (17:40 +0000)]
* NEWS: Mention new parameter basenames-may-differ.
* dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
! basenames_may_differ.
* psymtab.c (lookup_partial_symtab): Ditto.
* symtab.c (lookup_symtab): Ditto.
(basenames_may_differ): New global.
(_initialize_symtab): New parameter basenames-may-differ.
* symtab.h (basenames_may_differ): Declare.

doc/
* gdb.texinfo (Files): Document basenames-may-differ.

12 years ago2011-11-15 Pedro Alves <pedro@codesourcery.com>
Luis Machado [Tue, 15 Nov 2011 13:17:05 +0000 (13:17 +0000)]
2011-11-15  Pedro Alves  <pedro@codesourcery.com>
    Luis Machado  <lgustavo@codesourcery.com>

* auxv.c: Include observer.h.
(auxv_inferior_data_cleanup): New.
(invalidate_auxv_cache_inf): New.
(invalidate_auxv_cache): New.
(get_auxv_inferior_data): New.
(auxv_inferior_data): New static global.
(auxv_info): New structure.
(target_auxv_search): Use get_auxv_inferior_data instead of
target_read_alloc and don't free cached buffers.
(fprint_target_auxv): Likewise
(_initialize_auxv): Register per-inferior auxv cache and register
observers to invalidate auxv cache when needed.

12 years ago * write.c (dump_section_relocs): Don't convert PC-relative relocs
Maciej W. Rozycki [Tue, 15 Nov 2011 13:08:17 +0000 (13:08 +0000)]
* write.c (dump_section_relocs): Don't convert PC-relative relocs
that have an in-place addend narrower than the addresses used.

12 years agoFix a typo.
Maciej W. Rozycki [Tue, 15 Nov 2011 13:01:20 +0000 (13:01 +0000)]
Fix a typo.

12 years ago * elflink.c (_bfd_elf_create_got_section): Replace
Alan Modra [Tue, 15 Nov 2011 11:33:57 +0000 (11:33 +0000)]
* elflink.c (_bfd_elf_create_got_section): Replace
bfd_make_section_with_flags with bfd_make_section_anyway_with_flags.
(_bfd_elf_link_create_dynamic_sections): Likewise.
* elf32-ppc.c (ppc_elf_create_glink): Likewise.
(ppc_elf_create_dynamic_sections): Likewise.

12 years ago Make "!" an alias for "shell".
Doug Evans [Tue, 15 Nov 2011 05:06:35 +0000 (05:06 +0000)]
Make "!" an alias for "shell".
* NEWS: Add mention.
* cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
adding "!" command, always add it.
* cli/cli-decode.c (find_command_name_length): Recognize "!" as a
command of length one.

doc/
* gdb.texinfo (Shell Commands): Document "!".

testsuite/
* gdb.base/shell.exp: New file.

12 years ago * elfxx-mips.c (mips_n64_exe_plt0_entry): Use 64-bit move.
Maxim Kuvyrkov [Tue, 15 Nov 2011 03:23:56 +0000 (03:23 +0000)]
* elfxx-mips.c (mips_n64_exe_plt0_entry): Use 64-bit move.

12 years agoFix broken changelog entry.
Yao Qi [Tue, 15 Nov 2011 01:07:44 +0000 (01:07 +0000)]
Fix broken changelog entry.

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

12 years agodaily update
Alan Modra [Mon, 14 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2011-11-14 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Mon, 14 Nov 2011 20:07:25 +0000 (20:07 +0000)]
2011-11-14  Stan Shebs  <stan@codesourcery.com>
    Kwok Cheung Yeung  <kcy@codesourcery.com>

* NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
* i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
the minimum instruction size for fast tracepoints.
* target.h (struct target_ops): Add new method
to_get_min_fast_tracepoint_insn_len.
(target_get_min_fast_tracepoint_insn_len): New.
* target.c (update_current_target): Set up new target operation.
* remote.c (remote_write_bytes_aux): Fix typo.
(remote_get_min_fast_tracepoint_insn_len): New.
(init_remote_ops): Initialize new field.

* gdb.texinfo (Create and Delete Tracepoints): Describe what is
needed to get shorter fast tracepoints.
(Tracepoint Packets): Document new qTMinFTPILen packet.

* linux-x86-low.c (small_jump_insn): New.
(i386_install_fast_tracepoint_jump_pad): Add arguments for
trampoline and error message, build a trampoline and issue a small
jump instruction to it.
(x86_install_fast_tracepoint_jump_pad): Add arguments for
trampoline and error message.
(x86_get_min_fast_tracepoint_insn_len): New.
(the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
* linux-low.h (struct linux_target_ops): Add arguments to
install_fast_tracepoint_jump_pad operation, add new operation.
* linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
arguments.
(linux_get_min_fast_tracepoint_insn_len): New function.
(linux_target_op): Add new operation.
* tracepoint.c (gdb_trampoline_buffer): New IPA variable.
(gdb_trampoline_buffer_end): Ditto.
(gdb_trampoline_buffer_error): Ditto.
(struct ipa_sym_addresses): Add fields for new IPA variables.
(symbol_list): Add entries for new IPA variables.
(struct tracepoint): Add fields to hold the address range of the
trampoline used by the tracepoint.
(trampoline_buffer_head): New static variable.
(trampoline_buffer_tail): Ditto.
(claim_trampoline_space): New function.
(have_fast_tracepoint_trampoline_buffer): New function.
(clone_fast_tracepoint): Fill in trampoline fields of tracepoint
structure.
(install_fast_tracepoint): Ditto, also add error buffer argument.
(cmd_qtminftpilen): New function.
(handle_tracepoint_query): Add response to qTMinFTPILen packet.
(fast_tracepoint_from_trampoline_address): New function.
(fast_tracepoint_collecting): Handle trampoline as part of jump
pad space.
(set_trampoline_buffer_space): New function.
(initialize_tracepoint): Initialize new IPA variables.
* target.h (struct target_ops): Add arguments to
install_fast_tracepoint_jump_pad operation, add new
get_min_fast_tracepoint_insn_len operation.
(target_get_min_fast_tracepoint_insn_len): New.
(install_fast_tracepoint_jump_pad): Add arguments.
* server.h (IPA_BUFSIZ): Define.
* linux-i386-ipa.c: Include extra header files.
(initialize_fast_tracepoint_trampoline_buffer): New function.
(initialize_low_tracepoint): Call it.
* server.h (set_trampoline_buffer_space): Declare.
(claim_trampoline_space): Ditto.
(have_fast_tracepoint_trampoline_buffer): Ditto.

* gdb.trace/ftrace.c: New.
* gdb.trace/ftrace.exp: New.

12 years ago * tracepoint.c (encode_actions_1): Use the location's gdbarch.
Tom Tromey [Mon, 14 Nov 2011 16:10:18 +0000 (16:10 +0000)]
* tracepoint.c (encode_actions_1): Use the location's gdbarch.
(encode_actions): Likewise.

12 years agogdb/
Yao Qi [Mon, 14 Nov 2011 15:18:54 +0000 (15:18 +0000)]
gdb/
* remote.c (struct remote_state): <install_in_trace> new field.
(PACKET_InstallInTrace): New enum value.
(remote_install_in_trace_feature): Support InstallInTrace.
(remote_supports_install_in_trace): Likewise.
(remote_protocol_features): Likewise.
(_initialize_remote): Likewise.
(remote_can_download_tracepoint): New.
* target.h (struct target): New field
`to_can_download_tracepoint'.
(target_can_download_tracepoint): New macro.
* target.c (update_current_target): Update.
* breakpoint.h (struct bp_location): Add comment on field
`duplicate'.
(should_be_inserted): Don't differentiate breakpoint and tracepoint.
(remove_breakpoints): Don't remove tracepoints.
(tracepoint_locations_match ): New.
(breakpoint_locations_match): Call it.
(disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
(download_tracepoint_locations): New.
(update_global_location_list): Call it.
* tracepoint.c (find_matching_tracepoint): Delete.
(find_matching_tracepoint_location): Renamed from
find_matching_tracepoint.  Return bp_location rather than
tracepoint.
(merge_uploaded_tracepoints): Set `inserted' field to 1 if
tracepoint is found.

gdb/doc/
* gdb.texinfo (Create and Delete Tracepoints): Describe changed
behavior of tracepoint.
(General Query Packets): New feature InstallInTrace.
(Remote Configuration): Document "set remote
install-in-trace-packet".

gdb/gdbserver/
* server.c (handle_query): Handle InstallInTrace for qSupported.
* tracepoint.c (add_tracepoint): Sort list.
(install_tracepoint, download_tracepoint): New.
(cmd_qtdp): Call them to install and download tracepoints.
(sort_tracepoints): Removed.
(cmd_qtstart): Update.

gdb/testsuite/
* gdb.trace/change-loc-1.c: New.
* gdb.trace/change-loc-2.c: New.
* gdb.trace/change-loc.c: New.
* gdb.trace/change-loc.exp:  New.
* gdb.trace/change-loc.h:  New.
* gdb.trace/trace-break.c (marker): Define new symbol.
* gdb.trace/trace-break.exp (break_trace_same_addr_5):
        New.
(break_trace_same_addr_6): New.

12 years ago * mem-break.c (inc_ref_fast_tracepoint_jump): New.
Yao Qi [Mon, 14 Nov 2011 14:38:41 +0000 (14:38 +0000)]
* mem-break.c (inc_ref_fast_tracepoint_jump): New.
* mem-break.h: Declare.
* tracepoint.c (cmd_qtstart): Move some code to ...
(clone_fast_tracepoint, install_fast_tracepoint): ... here.
New.
(download_tracepoints): Move some code to ...
(download_tracepoint_1): ... here.  New.

12 years ago * target.h (struct target): <to_download_tracepoint> Change type
Yao Qi [Mon, 14 Nov 2011 14:11:36 +0000 (14:11 +0000)]
* target.h (struct target): <to_download_tracepoint> Change type
of parameter from tracepoint to bp_location.
* target.c (update_current_target): Update.
* tracepoint.c (start_tracing): Update.
* remote.c (remote_download_tracepoint): Remove loop for each location
of a tracepoint.

12 years ago gas/
Maciej W. Rozycki [Mon, 14 Nov 2011 13:43:23 +0000 (13:43 +0000)]
gas/
* config/tc-mips.c (can_swap_branch_p): Exclude microMIPS
variant frags too.

gas/testsuite/
* gas/mips/relax-swap3.d: New test.
* gas/mips/mips16@relax-swap3.d: Likewise.
* gas/mips/micromips@relax-swap3.d: Likewise.
* gas/mips/relax-swap3.s: New test source.
* gas/mips/mips.exp: Run the new tests.

12 years ago * i386-nat.c (i386_insert_hw_breakpoint): Call
Maciej W. Rozycki [Mon, 14 Nov 2011 13:11:58 +0000 (13:11 +0000)]
* i386-nat.c (i386_insert_hw_breakpoint): Call
i386_update_inferior_debug_regs.
(i386_remove_hw_breakpoint): Likewise.

12 years ago * breakpoint.c (init_raw_breakpoint): Call
Yao Qi [Mon, 14 Nov 2011 03:01:01 +0000 (03:01 +0000)]
* breakpoint.c (init_raw_breakpoint): Call
add_location_to_breakpoint to replace duplicated code.
(add_location_to_breakpoint): Adjust the breakpoint's
address prior to allocating a location.

12 years ago*** empty log message ***
gdbadmin [Mon, 14 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 13 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

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

12 years agodaily update
Alan Modra [Sat, 12 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoMove info definitions command to an info macro option.
matt rice [Sat, 12 Nov 2011 17:01:12 +0000 (17:01 +0000)]
Move info definitions command to an info macro option.

12 years ago*** empty log message ***
gdbadmin [Sat, 12 Nov 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 11 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago2011-11-11 Sterling Augustine <saugustine@google.com>
Sterling Augustine [Fri, 11 Nov 2011 22:29:43 +0000 (22:29 +0000)]
2011-11-11  Sterling Augustine  <saugustine@google.com>

* yyscript.y (section_cmd): Add support for INCLUDE directive.
(file_or_sections_cmd): Likewise.

12 years ago2011-11-11 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 11 Nov 2011 21:49:36 +0000 (21:49 +0000)]
2011-11-11  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::do_make_elf_object): Allow executable also
if --just-symbols is given.

12 years ago* binutils/readelf.c (process_program_headers): Fix typo printing p_memsz
Andreas Schwab [Fri, 11 Nov 2011 20:50:38 +0000 (20:50 +0000)]
* binutils/readelf.c (process_program_headers): Fix typo printing p_memsz
field.

12 years ago PR gdb/12843
Keith Seitz [Fri, 11 Nov 2011 19:53:12 +0000 (19:53 +0000)]
PR gdb/12843
* gdb.base/linespecs.exp: New file.

12 years ago PR gdb/12843
Keith Seitz [Fri, 11 Nov 2011 19:52:46 +0000 (19:52 +0000)]
PR gdb/12843
* linespec.c (locate_first_half): Keep ':' if it looks
like it could be part of a Windows path starting with
a drive letter.

12 years ago * gdb.threads/print-threads.exp: Extend timeout for slower
Doug Evans [Fri, 11 Nov 2011 17:36:07 +0000 (17:36 +0000)]
* gdb.threads/print-threads.exp: Extend timeout for slower
tests.

12 years ago * gdb.texinfo (Compilation): Don't mention -gdwarf-2. Link to GCC
Tom Tromey [Fri, 11 Nov 2011 16:56:47 +0000 (16:56 +0000)]
* gdb.texinfo (Compilation): Don't mention -gdwarf-2.  Link to GCC
manual.
(Variables): Don't mention -gdwarf-2.  Link to Compilation node.
(Macros): Add a footnote.
(C): Remove paragraph about compiler options.
(C Constants): Mention wide character and string constants.
(C Plus Plus Expressions): Update compiler option advice.  Mention
using declarations.  Mention ADL.  Remove old HP compiler
information.

12 years ago PR c++/9257:
Tom Tromey [Fri, 11 Nov 2011 15:07:57 +0000 (15:07 +0000)]
PR c++/9257:
* gdb.texinfo (Print Settings): Add an extra note about the need
for a vtable.

12 years ago * dwarf2read.c (dw2_map_symbol_filenames): New parameter
Doug Evans [Fri, 11 Nov 2011 00:43:04 +0000 (00:43 +0000)]
* dwarf2read.c (dw2_map_symbol_filenames): New parameter
`need_fullname'.
* psymtab.c (map_symbol_filenames_psymtab): Ditto.
(map_partial_symbol_filenames): Ditto.  All callers updated.
* psymtab.h (map_partial_symbol_filenames): Update prototype.
* symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
parameter need_fullname.

12 years ago*** empty log message ***
gdbadmin [Fri, 11 Nov 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 10 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
Doug Evans [Thu, 10 Nov 2011 22:14:16 +0000 (22:14 +0000)]
* psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
* source.c (symtab_to_fullname): Ditto.

12 years ago2011-11-10 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 10 Nov 2011 20:53:36 +0000 (20:53 +0000)]
2011-11-10  Doug Kwan  <dougkwan@google.com>

PR gold/13362
* arm.cc (Target_arm::Relocate::relocate_tls): Do unaligned accesses
when processing data relocs.
* reloc.h (Relocate_functions::rel_unaligned): New method.
(Relocate_functions::pcrel_unaligned): Ditto.
(Relocate_functions::rel32_unaligned): Ditto.
(Relocate_functions::pcrel32_unaligned): Ditto.

12 years ago * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
Doug Evans [Thu, 10 Nov 2011 20:21:29 +0000 (20:21 +0000)]
* defs.h (is_cplus_marker, set_demangling_style): Moved to ...
* gdb-demangle.h: ... here.  New file.
* demangle.c: #include "gdb-demangle.h".
(_initialize_demangler): Use initialize_file_ftype for prototype.
Move "set demangle" and "set asm-demangle" parameters here from utils.c
(demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
from utils.c
* utils.c: Update. #include "gdb-demangle.h".
* symtab.h (asm_demangle): Delete.
(demangle): Move declaration next to use.
* breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
* dwarf2read.c: #include "gdb-demangle.h".
* gnu-v2-abi.c: Ditto.
* jv-typeprint.c: Ditto.
* mdebugread.c: Ditto.
* p-typeprint.c: Ditto.
* stabsread.c: Ditto.
* printcmd.c: Ditto.
(asm_demangle): Delete declaration.
* tui/tui-stack.c: #include "gdb-demangle.h".

12 years ago2011-11-10 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Thu, 10 Nov 2011 20:17:52 +0000 (20:17 +0000)]
2011-11-10  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (linux_nat_wait): Don't force waking up the event
loop when returning a TARGET_WAITKIND_NO_RESUMED.

12 years ago2011-11-10 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Thu, 10 Nov 2011 20:07:51 +0000 (20:07 +0000)]
2011-11-10  Pedro Alves  <pedro@codesourcery.com>

gdb/
* target.c (target_waitstatus_to_string): Handle
TARGET_WAITKIND_NO_RESUMED.

12 years ago * gdb.reverse/i387-env-reverse.exp: Extend timeout of
Doug Evans [Thu, 10 Nov 2011 19:22:07 +0000 (19:22 +0000)]
* gdb.reverse/i387-env-reverse.exp: Extend timeout of
"record to end of main" test.

12 years ago * python/py-type.c (typy_fields_items): Call check_typedef.
Doug Evans [Thu, 10 Nov 2011 19:15:10 +0000 (19:15 +0000)]
* python/py-type.c (typy_fields_items): Call check_typedef.

testsuite/
* gdb.python/py-type.c (TS): New typedef.
(ts): New global.
* gdb.python/py-type.exp: Test field list of typedef.

12 years agoFix wrong changelog entry date.
Joel Brobecker [Thu, 10 Nov 2011 17:14:51 +0000 (17:14 +0000)]
Fix wrong changelog entry date.

12 years agoread_frame_register_value and big endian arches
Joel Brobecker [Thu, 10 Nov 2011 17:14:41 +0000 (17:14 +0000)]
read_frame_register_value and big endian arches

The read_frame_register_value function as it was implemented introduced
a regression on big-endian targets. The problem appears when trying to
get the value of an entity stored inside a register, and when the size
of the entity is smaller than the size of the register. In that case,
we were always reading the first N bytes of the register, which is wrong
for big-endian architectures, where we need to read the last N bytes of
the register.

gdb/ChangeLog:

        * findvar.c (read_frame_register_value): Read correct bytes from
        register on big-endian architectures.

gdb/testsuite/ChangeLog:

        * gdb.ada/small_reg_param: New testcase.

12 years agoprocfs file descriptor leaks
Joel Brobecker [Thu, 10 Nov 2011 16:36:28 +0000 (16:36 +0000)]
procfs file descriptor leaks

gdb/ChangeLog (from Tom Tromey):

* procfs.c (load_syscalls): Make a cleanup.
(open_procinfo_files): fd==0 is ok.

12 years ago[procfs] /proc/.../map file descriptor leak
Joel Brobecker [Thu, 10 Nov 2011 16:36:18 +0000 (16:36 +0000)]
[procfs] /proc/.../map file descriptor leak

When opening the procfs map file, we create a cleanup routine to make
sure that the associated file descriptor gets closed, but we never
call the cleanup. So the FD gets leaked.

gdb/ChangeLog:

        * procfs.c (iterate_over_mappings): Call do_cleanups before
        returning.

12 years ago * gdbtypes.c (check_typedef): Document that this function can
Doug Evans [Thu, 10 Nov 2011 06:53:55 +0000 (06:53 +0000)]
* gdbtypes.c (check_typedef): Document that this function can
throw an exception.

12 years ago2011-11-09 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 10 Nov 2011 00:41:53 +0000 (00:41 +0000)]
2011-11-09  Doug Kwan  <dougkwan@google.com>

PR gold/13362
* arm.cc (Arm_scan_relocatable_relocs::Default_scan_relocatable_relocs):
Use unaligned 4-byte relocs for static 32-bit data as required by EABI.
* reloc.h (Relocatable_relocs::Reloc_strategy): New enum
RELOC_ADJUST_FOR_SECTION_4_UNALIGNED.
(Relocate_functions::rel_unaligned): New.
(Relocate_functions::rel32_unaligned): New.
* target-reloc.h (relocate_for_relocatable): Add code to handle
RELOC_ADJUST_FOR_SECTION_4_UNALIGNED.
* testsuite/Makefile.am (arm_unaligned_reloc_r.stdout,
arm_unaligned_reloc_r): New targets.
* testsuite/Makefile.in: Regenerate.
* arm_unaligned_reloc.sh: Check unaligned relocs in relocatable
linking.

12 years ago*** empty log message ***
gdbadmin [Thu, 10 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 9 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb
Tom Tromey [Wed, 9 Nov 2011 19:50:15 +0000 (19:50 +0000)]
gdb
PR c++/13342:
* valops.c (value_full_object): Return early if real type is
smaller than the enclosing type.
gdb/testsuite
* gdb.cp/destrprint.exp: New file.
* gdb.cp/destrprint.cc: New file.

12 years ago2011-11-09 Roland McGrath <mcgrathr@google.com>
DJ Delorie [Wed, 9 Nov 2011 18:57:30 +0000 (18:57 +0000)]
2011-11-09  Roland McGrath  <mcgrathr@google.com>
* configure.ac: Add tool checks for READELF and READELF_FOR_TARGET.
* configure: Rebuild.
* Makefile.def (flags_to_pass): Add READELF_FOR_TARGET.
* Makefile.tpl (READELF, READELF_FOR_TARGET): New variables.
(HOST_EXPORTS): Add READELF, READELF_FOR_TARGET.
(BASE_FLAGS_TO_PASS): Add READELF_FOR_TARGET.
(BASE_TARGET_EXPORTS, EXTRA_HOST_FLAGS, EXTRA_TARGET_FLAGS):
Add READELF.
* Makefile.in: Rebuild.

12 years ago * ld/testsuite/ld-arm/jump-reloc-veneers.s: Update for changes to assembler output.
Matthew Gretton-Dann [Wed, 9 Nov 2011 17:01:38 +0000 (17:01 +0000)]
* ld/testsuite/ld-arm/jump-reloc-veneers.s: Update for changes to assembler output.

12 years agogdb/gdbserver
Yao Qi [Wed, 9 Nov 2011 02:32:42 +0000 (02:32 +0000)]
gdb/gdbserver

* remote-utils.c (relocate_instruction): A comment fix.

12 years agogdb/
Yao Qi [Wed, 9 Nov 2011 02:21:54 +0000 (02:21 +0000)]
gdb/

* amd64-tdep.c (amd64_relocate_instruction): Make it static.

12 years agogdb/
Meador Inge [Wed, 9 Nov 2011 00:53:40 +0000 (00:53 +0000)]
gdb/
* arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
register when the frame can't be determined.
* arm-tdep.c (arm_analyze_prologue): Ditto.

gdb/testsuite/
* gdb.arch/thumb-prologue.c (switch_stack_to_same): New test function.
(switch_stack_to_other): New test function.
* gdb.arch/thumb-prologue.exp: New test cases.

12 years ago*** empty log message ***
gdbadmin [Wed, 9 Nov 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 8 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * gdb.texinfo (MIPS): Remove duplicate "auto" reference from
Maciej W. Rozycki [Tue, 8 Nov 2011 21:34:18 +0000 (21:34 +0000)]
* gdb.texinfo (MIPS): Remove duplicate "auto" reference from
"set mips abi" documentation.

12 years ago * lib/mi-support.exp (mi_send_resuming_command_raw): Fix a typo.
Maciej W. Rozycki [Tue, 8 Nov 2011 19:51:17 +0000 (19:51 +0000)]
* lib/mi-support.exp (mi_send_resuming_command_raw): Fix a typo.

12 years agoMerge libitm changes to configure.ac from gcc master.
Richard Henderson [Tue, 8 Nov 2011 18:23:33 +0000 (18:23 +0000)]
Merge libitm changes to configure.ac from gcc 

12 years agomerge from gcc
DJ Delorie [Tue, 8 Nov 2011 16:01:58 +0000 (16:01 +0000)]
merge from gcc

12 years ago * elf-m10300.c (mn10300_elf_relax_section): Fix check for an
Nick Clifton [Tue, 8 Nov 2011 15:07:17 +0000 (15:07 +0000)]
* elf-m10300.c (mn10300_elf_relax_section): Fix check for an
immediate move into an address register.

12 years ago * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
Alan Modra [Tue, 8 Nov 2011 13:49:11 +0000 (13:49 +0000)]
* elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
executables when export_dynamic.

12 years agobfd/
Alan Modra [Tue, 8 Nov 2011 13:06:03 +0000 (13:06 +0000)]
bfd/
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename
ha_relocs_not_using_r2 to unexpected_toc_insn.
(ok_lo_toc_insn): New function.
(ppc64_elf_edit_toc): Check insn on lo toc reloc.  Emit warning.
(ppc64_elf_relocate_section): Don't check insn on lo toc reloc here.
Handle addic on lo toc reloc.
ld/testsuite/
* ld-powerpc/powerpc.exp: Expect ld warnings for tocopt test.
* ld-powerpc/tocopt.out: New file.

12 years agogdb/testsuite/
Yao Qi [Tue, 8 Nov 2011 08:23:49 +0000 (08:23 +0000)]
gdb/testsuite/

* gdb.exp (supports_process_record): New.
(supports_reverse): New.
* gdb.reverse/break-precsave.exp: Call support_process_record
to run test conditionally.
* gdb.reverse/consecutive-precsave.exp: Likewise.
* gdb.reverse/i386-precsave.exp: Likewise.
* gdb.reverse/machinestate-precsave.exp: Likewise.
* gdb.reverse/solib-precsave.exp: Likewise.
* gdb.reverse/step-precsave.exp: Likewise.
* gdb.reverse/until-precsave.exp: Likewise.
* gdb.reverse/watch-precsave.exp: Likewise.
* gdb.reverse/break-reverse.exp: Call support_reverse  to run
test conditionally.
* gdb.reverse/consecutive-reverse.exp: Likewise.
* gdb.reverse/finish-precsave.exp: Likewise.
* gdb.reverse/finish-reverse-bkpt.exp: Likewise.
* gdb.reverse/finish-reverse.exp: Likewise.
* gdb.reverse/i386-reverse.exp: Likewise.
* gdb.reverse/i386-sse-reverse.exp: Likewise.
* gdb.reverse/machinestate.exp: Likewise.
* gdb.reverse/next-reverse-bkpt-over-sr.exp: Likewise.
* gdb.reverse/sigall-precsave.exp: Likewise.
* gdb.reverse/sigall-reverse.exp: Likewise.
* gdb.reverse/solib-reverse.exp: Likewise.
* gdb.reverse/step-reverse.exp: Likewise.
* gdb.reverse/until-reverse.exp: Likewise.
* gdb.reverse/watch-reverse.exp: Likewise.

12 years ago * MAINTAINERS: Move Michael Snyder to Past Maintainers.
Stan Shebs [Tue, 8 Nov 2011 00:07:53 +0000 (00:07 +0000)]
* MAINTAINERS: Move Michael Snyder to Past Maintainers.