aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-05-10gdbTom Tromey23-12/+74
Freddie Chopin <freddie_chopin@op.pl> PR build/15414: * configure: Rebuild. * configure.ac (build_warnings): Do not use -Wformat-nonliteral with -Wno-format. sim/common * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use -Wformat-nonliteral with -Wno-format. sim/bfin * configure: Rebuild. sim/cr16 * configure: Rebuild. sim/cris * configure: Rebuild. sim/d10v * configure: Rebuild. sim/igen * configure: Rebuild. sim/m68hc11 * configure: Rebuild. sim/mips * configure: Rebuild. sim/mn10300 * configure: Rebuild. sim/v850 * configure: Rebuild.
2013-05-10Fix typo in "show remote traceframe-info-packet"Pedro Alves2-1/+6
I noticed: (gdb) show remote traceframe-info-packet Support for the `qXfer:trace-frame-info:read' packet is auto-detected, currently unknown. ^^^^^^^^^^^ The packet is actually qXfer:traceframe-info:read. gdb/ 2013-05-10 Pedro Alves <palves@redhat.com> * remote.c (_initialize_remote): Fix spelling of qXfer:traceframe-info:read packet in packet config command.
2013-05-10PR remote/15455 - QTro remote packet brokenPedro Alves5-0/+221
In the function remote_trace_set_readonly_regions in gdb/remote.c, the local variable 'offset' does not account for "QTro" at the start of the packet with the result that if there are any read-only regions, the packet is sent -- but without the "QTro" -- causing the remote stub to report that the packet is unsupported: Sending packet: $:0000000000400200,(...),00000000004560a4#ab...Packet received: vs the expected: Sending packet: $QTro:0000000000400200,(...),00000000004560a4#31...Packet received: OK We don't see the problem when testing with GDBserver, as that supports qXfer:trace-frame-info:read, meaning GDBserver never needs to read from the read-only sections directly itself. This commit adds a test that explicitly disables qXfer:trace-frame-info:read. gdb/ 2013-05-10 David Taylor <dtaylor@emc.com> PR remote/15455 * remote.c (remote_trace_set_readonly_regions): Do not overwrite "QTro" at start of packet. gdb/testsuite/ 2013-05-10 Pedro Alves <palves@redhat.com> PR remote/15455 * gdb.trace/qtro.c: New file. * gdb.trace/qtro.exp: New file.
2013-05-10Remove FIXME in solib-aix.c:solib_aix_relocate_section_addressesJoel Brobecker2-10/+5
This issue should now be fixed thanks to a change in bfd removing the SEC_ALLOC flag from all sections that do not get mapped to memory. gdb/ChangeLog: * solib-aix.c (solib_aix_relocate_section_addresses): Remove FIXME comment.
2013-05-10XCOFF/AIX: Remove SEC_ALLOC flags for unmapped sections.Joel Brobecker6-3/+20
The .except, .loader and .typchk are not mapped to memory, so do not set their SEC_ALLOC flag. bfd/ChangeLog: * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections. ld/testsuite/ChangeLog: * ld-powerpc/aix-core-sec-1.hd, ld-powerpc/aix-core-sec-2.hd, ld-powerpc/aix-core-sec-3.hd: Adjust expected section flags for section .loader.
2013-05-10AIX: wrong address for shared object's .bss sectionJoel Brobecker2-1/+21
gdb/ChangeLog: * solib-aix.c (solib_aix_relocate_section_addresses): For the .bss section action, apply the same offset as the .data section.
2013-05-10move sparc-sol-thread.c back into sol-thread.c.Joel Brobecker5-57/+33
The routines in sparc-sol-thread used to be SPARC-specific (and documented as such in the ptrace man page), and therefore hosting them in a sparc-specific file made sense. However, newer versions of Solaris now use those callbacks (Solaris 10 Update 10, apparently), and thus the note about these callbacks being specific to SPARC was removed. So this patch deletes sparc-sol-thread.c and moves the code back inside sol-thread.c. gdb/ChangeLog: PR tdep/15420: * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs): New functions, directly copied from sparc-sol-thread.c. * sparc-sol-thread.c: Delete. * configure.ac: Remove code handling sparc-solaris-thread.c. * configure: Regenerate.
2013-05-102013-05-10 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon29-87/+4845
* stack.c (backtrace_command_1): Add "no-filters", and Python frame filter logic. (backtrace_command): Add "no-filters" option parsing. (_initialize_stack): Alter help to reflect "no-filters" option. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o (SUBDIR_PYTHON_SRCS): Add py-framefilter.c (py-frame.o): Add target * data-directory/Makefile.in (PYTHON_DIR): Add Python frame filter files. * python/python.h: Add new frame filter constants, and flag enum. (apply_frame_filter): Add definition. * python/python.c (apply_frame_filter): New non-Python enabled function. * python/py-utils.c (py_xdecref): New function. (make_cleanup_py_xdecref): Ditto. * python/py-objfile.c: Declare frame_filters dictionary. (objfpy_dealloc): Add frame_filters dealloc. (objfpy_new): Initialize frame_filters attribute. (objfile_to_objfile_object): Ditto. (objfpy_get_frame_filters): New function. (objfpy_set_frame_filters): New function. * python/py-progspace.c: Declare frame_filters dictionary. (pspy_dealloc): Add frame_filters dealloc. (pspy_new): Initialize frame_filters attribute. (pspacee_to_pspace_object): Ditto. (pspy_get_frame_filters): New function. (pspy_set_frame_filters): New function. * python/py-framefilter.c: New file. * python/lib/gdb/command/frame_filters.py: New file. * python/lib/gdb/frames.py: New file. * python/lib/gdb/__init__.py: Initialize global frame_filters dictionary * python/lib/gdb/FrameDecorator.py: New file. * python/lib/gdb/FrameIterator.py: New file. * mi/mi-cmds.c (mi_cmds): Add frame filters command. * mi/mi-cmds.h: Declare. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add --no-frame-filter logic, and Python frame filter logic. (stack_enable_frame_filters): New function. (parse_no_frame_option): Ditto. (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame filter logic. (mi_cmd_stack_list_locals): Ditto. (mi_cmd_stack_list_args): Ditto. (mi_cmd_stack_list_variables): Ditto. * NEWS: Add frame filter note. 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-framefilter.py: New File. * gdb.python/py-framefilter-mi.exp: Ditto. * gdb.python/py-framefilter.c: Ditto. * gdb.python/py-framefilter-mi.exp: Ditto. * gdb.python/py-framefilter-mi.c: Ditto, * gdb.python/py-framefilter-gdb.py.in: Ditto. 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Backtrace): Add "no-filter" argument. (Python API): Add Frame Filters API, Frame Wrapper API, Writing a Frame Filter/Wrapper, Managing Management of Frame Filters chapter entries. (Frame Filters API): New Node. (Frame Wrapper API): New Node. (Writing a Frame Filter): New Node. (Managing Frame Filters): New Node. (Progspaces In Python): Add note about frame_filters attribute. (Objfiles in Python): Ditto. (GDB/MI Stack Manipulation): Add -enable-frame-filters command, @anchors and --no-frame-filters option to -stack-list-variables, -stack-list-frames, -stack-list-locals and -stack-list-arguments commands.
2013-05-10merge from gccDJ Delorie2-11/+10
2013-05-10binutils/ChangeLog:Andrew Pinski16-17/+274
* doc/binutils.texi: Document -Mvirt disassembler option. gas/ChangeLog: * config/tc-mips.c (struct mips_set_options): New ase_virt field. (mips_opts): Update for the new field. (file_ase_virt): New variable. (ISA_SUPPORTS_VIRT_ASE): New macro. (ISA_SUPPORTS_VIRT64_ASE): New macro. (MIPS_CPU_ASE_VIRT): New define. (is_opcode_valid): Handle ase_virt. (macro_build): Handle "+J". (validate_mips_insn): Likewise. (mips_ip): Likewise. (enum options): Add OPTION_VIRT and OPTION_NO_VIRT. (md_longopts): Add mvirt and mnovirt (md_parse_option): Handle OPTION_VIRT and OPTION_NO_VIRT. (mips_after_parse_args): Handle ase_virt field. (s_mipsset): Handle "virt" and "novirt". (mips_elf_final_processing): Add a comment about virt ASE might need a new flag. (md_show_usage): Print out the usage of -mvirt and mno-virt options. * doc/c-mips.texi: Document -mvirt and -mno-virt. Document ".set virt" and ".set novirt". gas/testsuite/ChangeLog: * gas/mips/mips.exp: Run virt and virt64 testcases. * gas/mips/virt.d: New file. * gas/mips/virt.s: New file. * gas/mips/virt64.d: New file. * gas/mips/virt64.s: New file. include/opcode/ChangeLog: * mips.h (OP_MASK_CODE10): Correct definition. (OP_SH_CODE10): Likewise. Add a comment that "+J" is used now for OP_*CODE10. (INSN_ASE_MASK): Update. (INSN_VIRT): New macro. (INSN_VIRT64): New macro opcodes/ChangeLog: * mips-dis.c (mips_arch_choices): Add INSN_VIRT to mips32r2 . Add INSN_VIRT and INSN_VIRT64 to mips64r2. (parse_mips_dis_option): Handle the virt option. (print_insn_args): Handle "+J". (print_mips_disassembler_options): Print out message about virt64. * mips-opc.c (IVIRT): New define. (IVIRT64): New define. (mips_builtin_opcodes): Add dmfgc0, dmtgc0, hypcall, mfgc0, mtgc0, tlbgr, tlbgwi, tlbginv, tlbginvf, tlbgwr, tlbgp VIRT instructions. Move rfe to the bottom as it conflicts with tlbgp.
2013-05-10daily updateAlan Modra1-1/+1
2013-05-10*** empty log message ***gdbadmin1-1/+1
2013-05-09 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.Doug Evans3-65/+26
All callers updated. (syms_from_objfile): Ditto. Make static. (symbol_file_add_with_addrs): Renamed from symbol_file_add_with_addrs_or_offsets. Delete args offsets, num_offsets. All callers updated. * symfile.h (syms_from_objfile): Delete.
2013-05-09 * symfile.c (decrement_reading_symtab): Add assert.Doug Evans2-0/+7
(increment_reading_symtab): Ditto.
2013-05-09Use fputc in place of putc to avoid -Wunused-value warning (AIX).Joel Brobecker2-1/+8
Currently, bfd does not compile with -Wunused-value because the following code: val = putc ('\n', f); gets expanded into some code that triggers a warning: warning: value computed is not used [-Wunused-value] This is because putc is implemented as a macro... >#define putc(__x, __p) (((!((__p)->_flag & 0xC000)) && \ > ((__p)->_flag = ((__p)->_flag & 0x3FFF) | 0x8000)),\ > (--(__p)->_cnt < 0 ? \ > __flsbuf((unsigned char) (__x), (__p)) : \ > (int) (*(__p)->_ptr++ = (unsigned char) (__x)))) It's the first part, before the coma operator, which triggers the unused-value warning. This patch fixes the issue by simply avoiding the macro and using fputc instead. bfd/ChangeLog: * bfd.c (_bfd_default_error_handler): Replace use of putc by fputc. Add comment explaining why.
2013-05-09source.c: Use fgetc instead of getc.Joel Brobecker2-4/+10
On AIX, getc is a macro which triggers an -Wunused-value warning. gdb/ChangeLog: * source.c (forward_search_command): Replace call to getc by call to fgetc. (reverse_search_command): Likewise.
2013-05-09 * ppc-opc.c (extract_vlesi): Properly sign extend.Alan Modra2-6/+8
(extract_vlensi): Likewise. Comment reason for setting invalid.
2013-05-09 * config/tc-ppc.c (md_apply_fix): Sign extend fieldval underAlan Modra2-19/+21
control of operand flag bits.
2013-05-09*** empty log message ***gdbadmin1-1/+1
2013-05-09daily updateAlan Modra1-1/+1
2013-05-08 * elflink.c (elf_link_add_object_symbols): Don't omit readingAlan Modra2-14/+22
of symbols when hashes already exist.
2013-05-08 * psymtab.c (expand_symtabs_matching_via_partial): Fix file nameDoug Evans2-5/+16
matching test.
2013-05-08 * gdb.base/solib-search.exp: Set test name for "setTom Tromey2-1/+8
solib-search-path" test.
2013-05-082013-05-08 Hafiz Abid Qadeer <abidh@codesourcery.com>Hafiz Abid Qadeer2-146/+232
* gdb.trace/circ.exp: Remove unnecessary 'if then' checks. (set_a_tracepoint): Set tracepoint before prologue. (run_trace_experiment): Test setup_tracepoints and 'break end' in it. (trace_buffer_normal): Remove. (gdb_trace_circular_tests): Remove. Move tests to... (top level): ...here. Call 'runto_main' before checking for trace support. Use commands to check the support for circular trace buffer and changing of trace buffer size. Add test to calculate size of single frame. Use this size to calculate the size of trace buffer. Use 'tfind pc func9' instead of 'tfind 9'. Use 'with_test_prefix'.
2013-05-08Avoid duplicating text in sol-thread.c:info_cbJoel Brobecker2-12/+12
This is a minor cleanup that helps avoiding duplicating the output of a command when handling alternative situations. gdb/ChangeLog: * sol-thread.c (info_cb): Factorize the code a little.
2013-05-08Improve output of "maintenance info sol-threads" command.Joel Brobecker2-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.
2013-05-08ti.ti_pc vs ti.ti_startfunc copy-pasto in sol-thread.c:info_cbJoel Brobecker2-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.
2013-05-08Dummy implementation of solib_aix_free_library_list if libexpat missing.Joel Brobecker2-0/+12
gdb/ChangeLog: * solib-aix.c (solib_aix_free_library_list): New function for the case where HAVE_LIBEXPAT is not defined.
2013-05-08[doco] Document the XML format used for AIX shared lib support.Joel Brobecker2-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.
2013-05-08Document set/show debug aix-solib.Joel Brobecker2-0/+11
gdb/doc/ChangeLog: * gdb.texinfo (Debugging Output): Add documentation of "set debug aix-solib" and "show debug aix-solib" commands.
2013-05-08daily updateAlan Modra1-1/+1
2013-05-08*** empty log message ***gdbadmin1-1/+1
2013-05-07 * lib/selftest-support.exp: New file.Tom Tromey6-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.
2013-05-07Merge gdb.arch/system-gcore.exp into gdb.base/gcore.expPedro Alves4-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".
2013-05-07gdb/Sergio Durigan Junior5-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.
2013-05-07bfd/elf-ifunc.c: Add header size arg to _bfd_elf_allocate_ifunc_dyn_relocs.Will Newton5-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.
2013-05-07bfd/elf-ifunc.c: Remove unused function _bfd_elf_create_ifunc_dyn_reloc.Will Newton3-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.
2013-05-07 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"Pierre Muller2-1/+6
instead of <sys/wait.h>.
2013-05-07 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: removePierre Muller2-1/+6
trailing new line from warning message.
2013-05-07 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)Pierre Muller2-3/+8
(PC_SOLIB): Change type from ari_deprecate to ari_regression.
2013-05-07Add missing ChangeLog entries...Joel Brobecker1-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.
2013-05-07rs6000-nat.c:rs6000_core_ldinfo: Remove \n at end of error message.Joel Brobecker1-2/+2
gdb/ChangeLog: * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of error message (ARI fix).
2013-05-07AIX: Change XML to use library-list-aix instead of library-list.Joel Brobecker3-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.
2013-05-07Rename TARGET_OBJECT_AIX_LIBRARIES to TARGET_OBJECT_LIBRARIES_AIXJoel Brobecker3-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.
2013-05-07gdb/Yao Qi2-8/+5
* solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove. (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
2013-05-07gdb/Yao Qi2-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.
2013-05-07 gdb/Luis Machado5-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.
2013-05-07gdb/Jan Kratochvil2-2/+8
* gcore.c (gcore_create_callback): Ignore sections with separate_debug_objfile_backlink != NULL.
2013-05-072013-05-06 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-0/+7
gdb/testsuite/ * gdb.xml/tdesc-regs.exp: Add case for nios2.
2013-05-072013-05-06 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore4-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.