aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-17daily updateAlan Modra1-1/+1
2013-02-17*** empty log message ***gdbadmin1-1/+1
2013-02-16daily updateAlan Modra1-1/+1
2013-02-16Don't add DT_NEEDED for references from the dummy bfdH.J. Lu10-2/+85
bfd/ PR ld/15146 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED for references from the dummy bfd. ld/ PR ld/15146 * plugin.c (plugin_notice): Replace the undefined dummy bfd with the real one. ld/testsuite/ PR ld/15146 * ld-plugin/pr15146.d: New file. * ld-plugin/pr15146a.c: Likewise. * ld-plugin/pr15146b.c: Likewise. * ld-plugin/pr15146c.c: Likewise. * ld-plugin/pr15146d.c: Likewise. * ld-plugin/lto.exp: Add tests for PR ld/15146.
2013-02-16Also trace symbol from the IR bfdH.J. Lu2-5/+10
PR ld/15141 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
2013-02-16Also track weak referencesH.J. Lu2-9/+18
PR ld/15149 * elflink.c (elf_link_add_object_symbols): Also track weak references.
2013-02-16gdb/Yao Qi2-1/+6
2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com> * frame.c: Remove one extra white space after #include directive.
2013-02-16*** empty log message ***gdbadmin1-1/+1
2013-02-15daily updateAlan Modra1-1/+1
2013-02-15gdb/Jan Kratochvil2-1/+5
* contrib/cc-with-tweaks.sh: Extend the comment for -p option.
2013-02-15gdb/Jan Kratochvil2-10/+22
* gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command and dir commands into an if block.
2013-02-15Don't allow a nested archive pointing to itselfH.J. Lu2-14/+14
PR binutils/15151 * archive.c (_bfd_find_nested_archive): Don't allow a nested archive pointing to itself. (_bfd_get_elt_at_filepos): Revert the last 2 changes.
2013-02-15 * configure.ac: Sync with GCC repo.Yufeng Zhang3-0/+11
* configure: Ditto.
2013-02-152013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>Tom Tromey2-1/+6
* python/py-breakpoint (struct pybp_code): Use int instead of enum type_code.
2013-02-15Allow for some recursion when scanning archives.Nick Clifton1-3/+9
2013-02-15 * options.h (DEFINE_uint64_alias): Define.Ian Lance Taylor2-0/+35
(class General_options): Add -Ttext-segment as an alias for -Ttext.
2013-02-15 * metag-dis.c: Initialize outf->bytes_per_chunk to 4Nick Clifton19-43584/+43614
which also makes the disassembler output be in little endian like it should be. * metag/labelarithmetic.d: Fix the expected disassembler output to be in little endian format * metag/metacore12.d: likewise * metag/metacore21.d: likewise * metag/metacore21ext.d: likewise * metag/metadsp21.d: likewise * metag/metadsp21ext.d: likewise * metag/metafpu.d: likewise * metag/metafpuext.d: likewise * metag/tls.d: likewise * ld-metag/pcrel.d: Fix the expected disassembler output to be in little endian format * ld-metag/shared.d: likewise * ld-metag/stub.d: likewise * ld-metag/stub_pic_app.d: likewise * ld-metag/stub_pic_shared.d: likewise * ld-metag/stub_shared.d: likewise
2013-02-15 PR binutils/15140Nick Clifton7-23/+92
* ar.c (open_inarch): Fail on attempts to convert a normal archive to a thin archive or vice versa. * elfcomm.c (make_qualified_name): Handle corrupted thin archives. * readelf.c (process_archive): Likewise. * doc/binutils.texi: Clarify documentation describing thin archives. * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop accessing a corrupt nested archive.
2013-02-15 * objcopy.c (copy_main): Initialize context variable.Kai Tietz2-1/+5
2013-02-15 * powerpc.cc (Stub_table::plt_off): New function, extracted from..Alan Modra2-46/+41
(Stub_table::do_write): ..here, two places. (Stub_table::plt_call_size): Use it here too.
2013-02-15 * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.Kai Tietz2-2/+7
(.pdata): Merge .pdata* into .pdata section.
2013-02-15 * gas/arm/neon-vmov-bad.d: New file.Nick Clifton6-0/+23
* gas/arm/neon-vmov-bad.s: Likewise. * gas/arm/neon-vmov-bad.l: Likewise. * config/tc-arm.c (do_neon_mov): Break on NS_NULL.
2013-02-152013-02-15 Pedro Alves <pedro@codesourcery.com>Hafiz Abid Qadeer9-17/+69
Hafiz Abid Qadeer <abidh@codesourcery.com> gdb/ * NEWS: Mention new field "trace-file". * tracepoint.c (trace_status_mi): Output "trace-file" field. (tfile_open): Record the trace file's filename in the trace status. (tfile_files_info): Mention the name of the trace file. Check the "filename" field explicitely. (trace_status_command): Explicitely check "filename" field. (trace_find_command): Ditto. (trace_find_pc_command): Ditto. (trace_find_tracepoint_command): Ditto. (trace_find_line_command): Ditto. (trace_find_range_command): Ditto. (trace_find_outside_command): Ditto. * tracepoint.h (struct trace_status) <from_file>: Rename it to "filename" and make it hold the trace file's filename instead of a boolean. * remote.c (remote_get_trace_status): Initialize "filename" field with NULL instead of 0. gdb/doc/ * gdb.texinfo (GDB/MI Tracepoint Commands) <-trace-status>: Document the "trace-file" field. gdb/testsuite/ * gdb.trace/tfile.exp: Add test for -trace-status command.
2013-02-15 * configure.tgt: Add nios2-*-rtems*.Nick Clifton2-1/+6
2013-02-15 PR binutils/15033Nick Clifton4-163/+266
* objcopy.c (enum change_action): Delete. (struct section_list): Delete remove, copy, change_vma, change_lma and set_flags fields. Add context field. (find_section_list): Add a context parameter. Add support for wildcard characters in section names. (is_strip_section): Check for sections being both copied and removed. (copy_object): Pass context to find_section_list. (setup_section): Likewise. (copy_section): Likewise. (copy_main): Likewise. * doc/binutils: Document the new behaviour. * NEWS: Mention the new feature
2013-02-15gdb/Yao Qi2-1/+5
* remote.c: Fix a typo.
2013-02-15merge from gccDJ Delorie3-1/+28
2013-02-15*** empty log message ***gdbadmin1-1/+1
2013-02-14 * binutils-all/mips/mixed-mips16.s: Add missing stack adjustment.Maciej W. Rozycki3-1/+7
* binutils-all/mips/mixed-mips16.d: Update accordingly.
2013-02-14daily updateAlan Modra1-1/+1
2013-02-14 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.Pierre Muller2-15/+4
2013-02-14opcodes/Yufeng Zhang7-18/+66
* aarch64-opc.c (aarch64_prfops): Change unnamed operation 'name' fields to NULL. (aarch64_print_operand): Adjust the printing for AARCH64_OPND_PRFOP. gas/ * config/tc-aarch64.c (md_begin): Change to check if 'name' is NULL. gas/testsuite/ * gas/aarch64/system.s: Add tests. * gas/aarch64/system.d: Update.
2013-02-14gdbserver: QTNotes, plug memory leak.Pedro Alves2-0/+10
The previous notes aren't being released before setting new ones. Tested on x86_64 Fedora 17. gdb/gdbserver/ 2013-02-14 Pedro Alves <palves@redhat.com> Plug memory leak. * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
2013-02-14gdbserver:tracepoint.c:cmd_qtdpsrc use savestring.Pedro Alves1-0/+4
An obvious use case for savestring. Tested on x86_64 Fedora 17. 2013-02-14 Pedro Alves <palves@redhat.com> * tracepoint.c (cmd_qtdpsrc): Use savestring.
2013-02-14Move savestring to common/common-utils.c, make gdbserver use it.Pedro Alves6-31/+32
This makes gdbserver share gdb's savestring, instead of baking its own. Tested on x86_64 Fedora 17. gdb/ 2013-02-14 Pedro Alves <palves@redhat.com> * utils.c (savestring): Don't #undef it. Move function to common/common-utils.c. * common/common-utils.c: Include gdb_string.h. (savestring): Move here from utils.c. * common/common-utils.h (savestring): Declare. gdb/gdbserver/ 2013-02-14 Pedro Alves <palves@redhat.com> * tracepoint.c (save_string): Delete. (add_tracepoint_action): Use savestring instead of save_string.
2013-02-14savestring: Rename parameter 'size' to 'len'.Pedro Alves2-5/+9
It's better to avoid needless confusion, and call string length, length, instead of size, which is usually used to refer to sizeof of the string (len+1): size_t len = strlen (str); size_t size = sizeof (str); Tested on x86_64 Fedora 17. 2013-02-14 Pedro Alves <palves@redhat.com> * utils.c (savestring): Rename parameter 'size' to 'len'.
2013-02-14gdb/testsuite/Jan Kratochvil2-2/+6
* gdb.threads/pthread_cond_wait.c (main): Remove variable ts. Replace nanosleep by sleep.
2013-02-142013-02-14 Pedro Alves <palves@redhat.com>Yufeng Zhang2-68/+175
Yufeng Zhang <yufeng.zhang@arm.com> * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete. (aarch64_inferior_data, struct aarch64_inferior_data): Delete. (struct aarch64_process_info): New. (aarch64_process_list): New global. (aarch64_find_process_pid, aarch64_add_process) (aarch64_process_info_get): New functions. (aarch64_inferior_data_get): Delete. (aarch64_process_info_get): New function. (aarch64_forget_process): New function. (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement. (aarch64_linux_prepare_to_resume): Pass the lwp's pid to aarch64_get_debug_reg_state. (aarch64_notify_debug_reg_change): Use iterate_over_lwps instead of linux_nat_iterate_watchpoint_lwps. (aarch64_linux_new_fork): New function. (aarch64_linux_child_post_startup_inferior): Use aarch64_forget_process instead of aarch64_init_debug_reg_state. (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint) (aarch64_linux_remove_hw_breakpoint) (aarch64_handle_aligned_watchpoint) (aarch64_handle_unaligned_watchpoint) (aarch64_linux_insert_watchpoint) (aarch64_linux_remove_watchpoint) (aarch64_linux_stopped_data_address): Adjust to pass the current process id to aarch64_debug_reg_state. (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as linux_nat_new_fork hook, and aarch64_forget_process as linux_nat_forget_process hook; remove the call to register_inferior_data_with_cleanup.
2013-02-14Fix ptype bug actually exercised in userdef.expPedro Alves4-5/+15
I happened to notice a bug with ptype &Ref, and found out userdef.exp actually exercises the bug. With: class Container { public: Member m; Member& operator* (); }; Member& Container::operator* () { return this->m; } And 'c' is of type Container: (gdb) p c $1 = {m = {z = -9192}} (gdb) p *c $2 = (Member &) @0x7fffffffda20: {z = -9192} (gdb) ptype *c type = class Member { public: int z; } & (gdb) p &*c $3 = (Member *) 0x7fffffffda20 (gdb) ptype &*c type = class Member { public: int z; } &* (gdb) Notice that last print (&*c) on says the type is a pointer - that's how you get the address behind a reference. But notice the last ptype instead says the type of the same expression is a pointer _reference_. This looks like a bug to me. This patch fixes it. The issue is that we're entering the VALUE_LVAL (x) == lval_memory branch by mistake for references. The fix is just to swap the tests so references are checked first, like value_addr also handles references first. Tested on x86_64 Fedora 17. 2013-02-14 Pedro Alves <palves@redhat.com> * eval.c (evaluate_subexp_for_address) <default_case_after_eval, EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before lval_memory. 2013-02-14 Pedro Alves <palves@redhat.com> * gdb.cp/userdef.exp (ptype &*c): Don't expect an &.
2013-02-14 PR binutils/15125Nick Clifton2-48/+67
* objcopy.c (copy_object): Provide a helpful warning message when adding a gnu_debuglink section to an object which already contains one.
2013-02-142013-02-14 Pedro Alves <pedro@codesourcery.com>Hafiz Abid Qadeer6-42/+80
Hafiz Abid Qadeer <abidh@codesourcery.com> gdb/ * tracepoint.h (validate_trace_state_variable_name): Declare. * tracepoint.c (validate_trace_state_variable_name): New. (trace_variable_command): Parse the trace state variable's name without using parse_expression. Do several validations. * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the trace state variable's name with parse_expression. Validate it. gdb/testsuite/ * gdb.trace/tsv.exp: Adjust tests, and add a few more.
2013-02-14gdb/Yao Qi2-5/+4
* infcmd.c (breakpoint_proceeded): Remove it.
2013-02-14gdb/Yao Qi3-5/+10
* tracepoint.c (end_actions_pseudocommand): Make it static. (while_stepping_pseudocommand): Likewise. * tracepoint.h (end_actions_pseudocommand): Remove the declaration. (while_stepping_pseudocommand): Likewise.
2013-02-14gdb/Yao Qi1-2/+2
Indent one changelog entry.
2013-02-14gdb/Yao Qi2-2/+6
* cli/cli-decode.c (help_cmd): Remove the declaration of "cmdlist". (help_all): Likewise.
2013-02-14*** empty log message ***gdbadmin1-1/+1
2013-02-13daily updateAlan Modra1-1/+1
2013-02-13Correct ChangeLog dates.Maciej W. Rozycki2-2/+2
2013-02-13 opcodes/Maciej W. Rozycki8-0/+168
* mips-dis.c (is_compressed_mode_p): Only match symbols from the section disassembled. binutils/testsuite/ * binutils-all/mips/mixed-micromips.d: New test. * binutils-all/mips/mixed-mips16.d: New test. * binutils-all/mips/mixed-micromips.s: New test source. * binutils-all/mips/mixed-mips16.s: New test source. * binutils-all/mips/mips.exp: New file.
2013-02-13Fix typo: amd64 -> i386.Pedro Alves1-1/+1