summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve output of "maintenance info sol-threads" command.Joel Brobecker2013-05-082-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does the following: - Puts the startfunc and "Sleep func" info on the same line; - Renames "Sleep func" into "sleepfunc" to be consistent with "startfunc" - Avoids the use of a '-' as a separate before the "sleepfunc" output, because the '-' looks odd and out of place when the "startfunc" field is not printed (ti.ti_startfunc is nul). - Use a '=' instead of ':' and avoids the space between the name of the value and its value, mostly to help group the value with its name. For the record, this is how the new outout now looks like: (gdb) maintenance info sol-threads user thread #1, lwp 1, (active) system thread #2, lwp 2, (active) system thread #3, lwp 0, (asleep) sleepfunc=0xff32d9e0 user thread #4, lwp 4, (asleep) startfunc=[...].task_wrapper sleepfunc=0xff3290f0 system thread #5, lwp 7, (active) startfunc=_co_timerset user thread #6, lwp 8, (active) startfunc=[...].task_wrapper gdb/ChangeLog: * sol-thread.c (info_cb): Rework the output of the "maintenance info sol-threads" command a bit.
* ti.ti_pc vs ti.ti_startfunc copy-pasto in sol-thread.c:info_cbJoel Brobecker2013-05-082-1/+6
| | | | | | | | | | gdb/ChangeLog: * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]: Replace ti.ti_startfunc by ti.ti_pc. Probably OK to commit without approval, so will likely do so in the next few days.
* Dummy implementation of solib_aix_free_library_list if libexpat missing.Joel Brobecker2013-05-082-0/+12
| | | | | | | gdb/ChangeLog: * solib-aix.c (solib_aix_free_library_list): New function for the case where HAVE_LIBEXPAT is not defined.
* [doco] Document the XML format used for AIX shared lib support.Joel Brobecker2013-05-082-0/+77
| | | | | | | | gdb/doc/ChangeLog: * gdbint.texinfo (Native Debugging): Add "AIX Shared Library Support" subsection documenting the XML format used to transfer shared library info on AIX.
* Document set/show debug aix-solib.Joel Brobecker2013-05-082-0/+11
| | | | | | | gdb/doc/ChangeLog: * gdb.texinfo (Debugging Output): Add documentation of "set debug aix-solib" and "show debug aix-solib" commands.
* daily updateAlan Modra2013-05-081-1/+1
|
* *** empty log message ***gdbadmin2013-05-081-1/+1
|
* * lib/selftest-support.exp: New file.Tom Tromey2013-05-076-387/+174
| | | | | | | | | | | | | | | | * gdb.gdb/complaints.exp: Load selftest-support.exp. Use do_self_tests. (setup_test, find_gdb): Remove. * gdb.gdb/observer.exp: Load selftest-support.exp. Use do_self_tests. (setup_test, find_gdb): Remove. (test_observer): Don't call setup_test. Remove argument. * gdb.gdb/selftest.exp: Load selftest-support.exp. (find_gdb): Remove. * gdb.gdb/complaints.exp: Load selftest-support.exp. Use do_self_tests. (setup_test, find_gdb): Remove. (test_with_self): Don't call setup_test. Remove argument.
* Merge gdb.arch/system-gcore.exp into gdb.base/gcore.expPedro Alves2013-05-074-265/+14
| | | | | | | | | | | | | | | | | | | The test case gdb.arch/system-gcore.exp is almost an identical copy of gdb.base/gcore.exp. The only functional change is the additional comparison of the "info reg system" command output. It should be safe to perform this comparison on all architectures. Thus the patch removes the arch-specific version and adds "info reg system" to the common gcore test case instead. Tested on i686-linux and s390x-linux. gdb/testsuite/Changelog: 2013-05-07 Andreas Arnez <arnez@linux.vnet.ibm.com> * gdb.arch/system-gcore.exp: Remove. * gdb.arch/gcore.c: Remove. * gdb.base/gcore.exp: Add "info reg system".
* gdb/Sergio Durigan Junior2013-05-075-19/+28
| | | | | | | | | | | | | | | | | | 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com> PR breakpoints/15413: * breakpoint.c (condition_completer): Simplify the code to disconsider multiple locations of breakpoints when completing the "condition" command. gdb/testsuite/ 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com> PR breakpoints/15413: * gdb.base/pending.exp: Add test for completion of the "condition" command for pending breakpoints. * gdb.linespec/linespec.ex: Add test for completion of the "condition" command when dealing with multiple locations.
* bfd/elf-ifunc.c: Add header size arg to _bfd_elf_allocate_ifunc_dyn_relocs.Will Newton2013-05-075-3/+16
| | | | | | | | | | | | | | bfd/ChangeLog: 2013-05-07 Will Newton <will.newton@linaro.org> * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a plt_header_size argument for ports where it differs from plt_entry_size. * elf-bfd.h: Likewise. * elf32-i386.c: Pass plt_header_size to _bfd_elf_allocate_ifunc_dyn_relocs. * elf64-x86-64.c: Likewise.
* bfd/elf-ifunc.c: Remove unused function _bfd_elf_create_ifunc_dyn_reloc.Will Newton2013-05-073-48/+6
| | | | | | | | | | bfd/ChangeLog: 2013-05-07 Will Newton <will.newton@linaro.org> * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused function. * elf-bfd.h: Likewise.
* * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"Pierre Muller2013-05-072-1/+6
| | | | instead of <sys/wait.h>.
* * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: removePierre Muller2013-05-072-1/+6
| | | | trailing new line from warning message.
* * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)Pierre Muller2013-05-072-3/+8
| | | | (PC_SOLIB): Change type from ari_deprecate to ari_regression.
* Add missing ChangeLog entries...Joel Brobecker2013-05-071-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | ... for the following commits: 2013-05-07 Joel Brobecker <brobecker@adacore.com> * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of error message (ARI fix). 2013-05-07 Joel Brobecker <brobecker@adacore.com> * features/library-list-aix.dtd: Replace library-list by library-list-aix. * rs6000-nat.c: Replace library-list by library-list-aix throughout. * solib-aix.c: Likewise. 2013-05-07 Joel Brobecker <brobecker@adacore.com> * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]: Renames TARGET_OBJECT_AIX_LIBRARIES. * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with TARGET_OBJECT_LIBRARIES_AIX throughout. * solib-aix.c: Likwise. There were added, but accidently not checked in.
* rs6000-nat.c:rs6000_core_ldinfo: Remove \n at end of error message.Joel Brobecker2013-05-071-2/+2
| | | | | | | gdb/ChangeLog: * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of error message (ARI fix).
* AIX: Change XML to use library-list-aix instead of library-list.Joel Brobecker2013-05-073-7/+7
| | | | | | | | | | | | | This is more consistent with what we do with other similar XML lists, and avoids a potential confusion with the library-list XML list. gdb/ChangeLog: * features/library-list-aix.dtd: Replace library-list by library-list-aix. * rs6000-nat.c: Replace library-list by library-list-aix throughout. * solib-aix.c: Likewise.
* Rename TARGET_OBJECT_AIX_LIBRARIES to TARGET_OBJECT_LIBRARIES_AIXJoel Brobecker2013-05-073-7/+7
| | | | | | | | | | | | More consistent with the name of other similar object names. gdb/ChangeLog: * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]: Renames TARGET_OBJECT_AIX_LIBRARIES. * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with TARGET_OBJECT_LIBRARIES_AIX throughout. * solib-aix.c: Likwise.
* gdb/Yao Qi2013-05-072-8/+5
| | | | | * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove. (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
* gdb/Yao Qi2013-05-072-119/+36
| | | | | | | | * solib-dsbt.c (enable_break): Declare. (dsbt_current_sos): Remove call to enable_break2. (enable_break2): Rename to enable_break. Set solib breakpoint on '_dl_debug_state'. (enable_break): Remove.
* gdb/Luis Machado2013-05-075-1/+337
| | | | | | | | | | * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's debug state prior to replicating existing hardware watchpoints or breakpoints. gdb/testsuite/ * gdb.threads/wp-replication.c: New file. * gdb.threads/wp-replication.exp: New file.
* gdb/Jan Kratochvil2013-05-072-2/+8
| | | | | * gcore.c (gcore_create_callback): Ignore sections with separate_debug_objfile_backlink != NULL.
* 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2013-05-072-0/+7
| | | | | gdb/testsuite/ * gdb.xml/tdesc-regs.exp: Add case for nios2.
* 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2013-05-074-0/+256
| | | | | | | | | | | Andrew Jenner <andrew@codesourcery.com> gdb/gdbserver/ * Makefile.in (SFILES): Add linux-nios2-low.c. (clean): Add action to delete nios2-linux.c. (nios2-linux.c): New rule. * configure.srv: Add nios2*-*-linux*. * linux-nios2-low.c: New.
* 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2013-05-0716-1/+2313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Andrew Jenner <andrew@codesourcery.com> Chung-Lin Tang <cltang@codesourcery.com> Julian Brown <julian@codesourcery.com> Based on the nios2-elf port from Altera Corporation. gdb/ * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and nios2-linux-tdep.o. (HFILES_NO_SRCDIR): Add nios2-tdep.h. (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c. * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets. * nios2-tdep.h: New. * nios2-tdep.c: New. * nios2-linux-tdep.c: New. * features/Makefile (WHICH): Add nios2-linux. (nios2-linux-expedite): Set. * features/nios2-cpu.xml: New. * features/nios2.xml: New. * features/nios2-linux.xml: New. * features/nios2.c: New (autogenerated). * features/nios2-linux.c: New (autogenerated). * regformats/nios2-linux.dat: New (autogenerated). * NEWS (Changes since GDB 7.6): Add new Nios II targets and commands. gdb/doc/ * gdb.texinfo (Nios II): New section. (Nios II Features): New section.
* * symfile.c: Whitespace cleanup.Doug Evans2013-05-072-12/+12
|
* daily updateAlan Modra2013-05-071-1/+1
|
* *** empty log message ***gdbadmin2013-05-071-1/+1
|
* * config/tc-ppc.c (PPC_VLE_SPLIT16A): Delete unused macro.Alan Modra2013-05-062-29/+25
| | | | | | | | | (PPC_VLE_SPLIT16D, PPC_VLE_LO16A, PPC_VLE_LO16D): Likewise. (PPC_VLE_HI16A, PPC_VLE_HI16D): Likewise. (PPC_VLE_HA16A, PPC_VLE_HA16D): Likewise. (md_apply_fix): Set fx_no_overflow for assorted relocations. Shift and sign-extend fieldval for use by some VLE reloc operand->insert functions.
* * gdb.base/solib-search-lib1.c: New file.Doug Evans2013-05-066-0/+355
| | | | | | | * gdb.base/solib-search-lib2.c: New file. * gdb.base/solib-search.c: New file. * gdb.base/solib-search.h: New file. * gdb.base/solib-search.exp: New file.
* * solist.h (struct target_so_ops): New member clear_so.Doug Evans2013-05-064-6/+35
| | | | | | | * solib-svr4.c (svr4_clear_so): New function. (_initialize_svr4_solib): Set svr4_so_ops.clear_so. * solib.c (clear_so): Renamed from free_so_symbols. All callers updated. Call target clear_so if it exists.
* * lib/gdb.exp (gdb_core_cmd): New function.Doug Evans2013-05-066-103/+70
| | | | | | | * gdb.arch/system-gcore.exp: Use it. * gdb.arch/vsx-regs.exp: Ditto. * gdb.base/gcore.exp: Ditto. * gdb.threads/gcore-thread.exp: Ditto.
* * gdb.reverse/shr.h: New file.Doug Evans2013-05-067-64/+140
| | | | | | | | | | * gdb.reverse/shr1.c: New file. * gdb.reverse/shr2.c: #include "shr.h". * gdb.reverse/solib-reverse.c: Remove #include <stdio.h>. #include "shr.h". Replace calls to printf,sleep to call shr1 instead. * gdb.reverse/solib-precsave.exp: Build shr2.sl. Update tests using sleep/printf to use shr2.sl instead. * gdb.reverse/solib-reverse.exp: Ditt.o
* * ada-lang.c (ada_value_primitive_packed_val): Don'tTom Tromey2013-05-063-6/+15
| | | | | | | call value_incref. * value.c (set_value_parent): Incref the new parent and decref the old parent. (value_copy, value_primitive_field): Use set_value_parent.
* * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.Tom Tromey2013-05-068-16/+359
| | | | | | | | | | | | | | (indirect_pieced_value): Call dwarf2_fetch_constant_bytes if needed. * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare. * dwarf2read.c (write_constant_as_bytes) (dwarf2_fetch_constant_bytes): New functions. gdb/testsuite * gdb.dwarf2/implptrconst.c: New file. * gdb.dwarf2/implptrconst.exp: New file. * lib/dwarf.exp (Dwarf::_nz_quote): New proc. (Dwarf::_handle_DW_FORM): Handle DW_FORM_block1. (Dwarf::_location): Handle DW_OP_GNU_implicit_pointer.
* * dwarf2read.c (dwarf2_const_value_data): Remove unusedTom Tromey2013-05-062-10/+11
| | | | | parameters. (dwarf2_const_value_attr): Update.
* * somread.c (som_symfile_offsets): Add 'const' to addrs.Tom Tromey2013-05-064-6/+11
| | | | | | * machoread.c (macho_symfile_offsets): Add 'const' to addrs. * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs. Remove declaration.
* * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', notTom Tromey2013-05-062-3/+7
| | | | objfile's obstack.
* * dbxread.c (process_one_symbol): Constify section_offsets parameter.Doug Evans2013-05-0610-27/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | * stabsread.h (process_one_symbol): Update declaration. * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters. * elfread.c (elf_symfile_relocate_probe): Ditto. * psymtab.c (relocate_psymtabs): Ditto. * objfiles.c (objfile_relocate1): Constify new_offsets parameter. (objfile_relocate): Ditto. * objfiles.h (objfile_relocate): Update declaration. * symfile.c (relative_addr_info_to_section_offsets): Constify addrs parameter. (default_symfile_offsets): Ditto. (syms_from_objfile_1): Constify offsets parameter. (syms_from_objfile): Ditto. (symbol_file_add_with_addrs_or_offsets): Ditto. (symfile_map_offsets_to_segments): Constify data parameter. * symfile.h (struct quick_symbol_functions): Constify new_offsets, delta parameters of member relocate. (struct sym_probe_fns): Constify new_offsets, delta parameters of member sym_relocate_probe. (struct sym_fns): Constify section_addr_info parameter of member sym_offsets. (relative_addr_info_to_section_offsets): Update declaration. (default_symfile_offsets): Ditto. (syms_from_objfile): Ditto. (symfile_map_offsets_to_segments): Ditto.
* * symfile.c (syms_from_objfile_1): Use correct section count whenDoug Evans2013-05-062-1/+6
| | | | objfile->sf == NULL.
* 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>Jeff Johnston2013-05-062-0/+35
| | | | * COPYING.NEWLIB: Add Altera Corporation copyright.
* gdb: btrace: fix indentation styleMike Frysinger2013-05-062-42/+46
| | | | | Most of this func had the incorrect indentation level (starting with 4 spaces instead of 2).
* * psympriv.h (struct partial_symtab): Augment comment for memberDoug Evans2013-05-062-1/+8
| | | | section_offsets.
* 2013-05-06 Paul Brook <paul@codesourcery.com>Catherine Moore2013-05-067-5/+83
| | | | | | | | | | | | | | | | | | | | | include/elf/ * mips.h (R_MIPS_PC32): Update comment. * elf64-mips.c (elf_mips_gnu_pcrel32): New. (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup, mips_elf64_rtype_to_howto): Handle R_MIPS_PC32. * elfn32-mips.c (elf_mips_gnu_pcrel32): New. (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup, mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32. 2013-05-06 Paul Brook <paul@codesourcery.com> Catherine Moore <clm@codesourcery.com> gas/ * config/tc-mips.c (md_pcrel_from): Handle BFD_RELOC_32_PCREL. (limited_pcrel_reloc_p): Likewise. (md_apply_fix): Likewise. (tc_gen_reloc): Likewise.
* 2013-05-06 Richard Sandiford <rdsandiford@googlemail.com>Catherine Moore2013-05-062-4/+29
| | | | | | * config/tc-mips.c (limited_pcrel_reloc_p): New function. (mips_fix_adjustable): Adjust pc-relative check to use limited_pc_reloc_p.
* Reimplement shared library support on ppc-aix...Joel Brobecker2013-05-0626-1160/+1192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... using the target_so_ops framework. gdb/ChangeLog: * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum. * features/library-list-aix.dtd: New file. * solib-aix.h, solib-aix.c: New file. * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h". (rs6000_find_toc_address_hook): Delete. (rs6000_push_dummy_call): Rewrite code setting the TOC value. (rs6000_aix_init_osabi): Register solib_aix_so_ops. * rs6000-nat.c: Remove "xcoffsolib.h" include. Include "xml-utils.h". (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add) (vmap_symtab, fixup_breakpoints): Delete. (rs6000_xfer_shared_libraries): New function. (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling. (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete. (xcoff_relocate_symtab, xcoff_relocate_core): Delete. (rs6000_ptrace_ldinfo, rs6000_core_ldinfo) (rs6000_xfer_shared_library): New function. (find_toc_address): Delete. (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook. * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove. * xcoffread.c (record_minimal_symbol): Reloate symbol address before creating minimal symbol. Adjust function description accordingly. (scan_xcoff_symtab): Replace call to prim_record_minimal_symbol_and_info by call to record_minimal_symbol. (xcoff_symfile_offsets): Reimplement mostly as a wrapper around default_symfile_offsets. * configure.tgt: Add solib-aix.o to gdb_target_obs for powerpc-aix targets. * config/rs6000/nm-rs6000.h: Delete. * config/powerpc/aix.mh (NAT_FILE): Delete. (NATDEPFILES): Remove xcoffsolib.o. * Makefile.in (XMLFILES): Add library-list-aix.dtd. (ALL_TARGET_OBS): Add solib-aix.o. (HFILES_NO_SRCDIR): Remove xcoffsolib.h and config/rs6000/nm-rs6000.h. Add solib-aix.h. (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c. * xcoffsolib.h, xcoffsolib.c: Delete. * solib.c (reload_shared_libraries): Remove reference to SOLIB_CREATE_INFERIOR_HOOK. * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD. (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB. (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in comment. * corelow.c (deprecated_core_resize_section_table): Delete. * exec.c: Remove include of xcoffsolib.h". (map_vmap, vmap): Delete. (exec_close_1): Remove references to vmap. (exec_file_attach): Remove vmap handling code, and reference to DEPRECATED_IBM6000_TARGET. (bfdsec_to_vmap): Delete. (exec_files_info): Remove block of code handling VMAP. * infcmd.c (post_create_inferior): Remove reference to SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD. * infrun.c (follow_exec): Remove reference to SOLIB_CREATE_INFERIOR_HOOK. * stack.c (print_frame): Remove reference to PC_SOLIB. * solib-dsbt.c (dsbt_current_sos): Adjust comment. (dsbt_relocate_main_executable): Likewise. * solib-frv.c (frv_current_sos): Likewise. gdb/doc/ChangeLog: * gdbint.texinfo (Algorithms): Remove entries documenting DEPRECATED_IBM6000_TARGET, SOLIB_ADD, and SOLIB_CREATE_INFERIOR_HOOK.
* Fix -Wpointer-sign warning in sol-thread.cJoel Brobecker2013-05-062-2/+7
| | | | | | | gdb/ChangeLog: * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls to target_write_memory and target_read_memory.
* darwin: warning resuming inferior after attachJoel Brobecker2013-05-062-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | This patch avoids a warning when resuming the execution of a program that we attached to. For instance: (gdb) attach 29989 (gdb) continue Continuing. warning: Mach error at "/[...]/darwin-nat.c:738" in function "darwin_resume_thread": (os/kern) failure (0x5) The warning is relatively harmless, but worrisome for the average user. The warning comes from the fact that darwin_wait recorded that the fake stop event corresponding to the suspend action was caused by the main thread being suspended on a SIGTRAP. As a result of this, when resuming the program's execution, we try to resume the thread's execution as well. This is where the issue occurs, as the thread was not in fact suspended, thus triggering the warning. gdb/ChangeLog: * darwin-nat.c (darwin_setup_fake_stop_event): New function. (darwin_attach): Adjust using darwin_setup_fake_stop_event.
* darwin-nat: Print all hex values with 0x prefix.Joel Brobecker2013-05-062-13/+18
| | | | | | | gdb/ChangeLog: * darwin-nat.c: Replace all "%x" instances in format strings into "0x%x" throughout.
OpenPOWER on IntegriCloud