aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2013-01-17Merge dg-extract-results.sh from gcc upstream (svn 195224).Pedro Alves2-4/+25
gdb/testsuite/ 2013-01-17 Pedro Alves <palves@redhat.com> Merge dg-extract-results.sh from upstream (svn 195224). 2013-01-15 David Blaikie <dblaikie@gmail.com> * dg-extract-results.sh: Fix order of summary counts. 2013-01-15 David Blaikie <dblaikie@gmail.com> * dg-extract-results.sh: Constrain the start-of-log pattern. 2013-01-15 David Blaikie <dblaikie@gmail.com> * dg-extract-results.sh: Handle KPASSes. 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * dg-extract-results.sh: Redirect grep output to /dev/null instead of grep -q.
2013-01-17gdb/testsuiteSanjoy Das1-0/+9
* gdb.base/jit-reader.exp: New file. Test case for the jit-reader interface. * gdb.base/jithost.c: New file. * gdb.base/jithost.h: New file. * gdb.base/jitreader.c : New file. * gdb.base/jit-protocol.h: New file.
2013-01-17* jit.c (jit_reader_load_command): Interpret the jit reader name as anSanjoy Das4-10/+27
absolute path if it begins with a forward slash.
2013-01-17PR gdb/14550Sanjoy Das2-2/+19
* jit.c (finalize_symtab): Ensure that only the global block has a NULL superblock.
2013-01-172013-01-17 Pedro Alves <palves@redhat.com>Pedro Alves4-9/+29
* acinclude.m4: Include ../config/plugins.m4, ../config/largefile.m4 and ../config/lead-dot.m4. Add comments. * Makefile.in (aclocal_m4_deps): Update. * aclocal.m4: Renegerate.
2013-01-17*** empty log message ***gdbadmin1-1/+1
2013-01-16 * contrib/cc-with-tweaks.sh: Add references to Fission docs.Doug Evans2-0/+8
2013-01-162013-01-03 Pedro Alves <palves@redhat.com>Tom Tromey13-130/+964
Tom Tromey <tromey@redhat.com> PR cli/7221: * NEWS: Add "catch signal". * breakpoint.c (base_breakpoint_ops): No longer static. (bpstat_explains_signal): New function. (init_catchpoint): No longer static. (base_breakpoint_explains_signal): New function. (base_breakpoint_ops): Initialize new field. * breakpoint.h (enum bpstat_signal_value): New. (struct breakpoint_ops) <explains_signal>: New field. (bpstat_explains_signal): Remove macro, declare as function. (base_breakpoint_ops, init_catchpoint): Declare. * break-catch-sig.c: New file. * inferior.h (signal_catch_update): Declare. * infrun.c (signal_catch): New global. (handle_syscall_event): Update for change to bpstat_explains_signal. (handle_inferior_event): Likewise. Always handle random signals via bpstats. (signal_cache_update): Check signal_catch. (signal_catch_update): New function. (_initialize_infrun): Initialize signal_catch. * Makefile.in (SFILES): Add break-catch-sig.c. (COMMON_OBS): Add break-catch-sig.o. gdb/doc * gdb.texinfo (Set Catchpoints): Document "catch signal". (Signals): Likewise. gdb/testsuite * gdb.base/catch-signal.c: New file. * gdb.base/catch-signal.exp: New file.
2013-01-16 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)Tom Tromey6-6/+51
(print_one_catch_solib, print_one_catch_syscall) (print_one_catch_exec, print_one_exception_catchpoint): Emit "catch-type". gdb/doc * gdb.texinfo (GDB/MI Breakpoint Information): Document "catch-type" field. (GDB/MI Catchpoint Commands): Add "catch-type" to examples. gdb/testsuite * gdb.mi/mi-catch-load.exp: Look for "catch-type".
2013-01-16gdb/Yao Qi2-1/+5
* printcmd.c (current_display_number): Make it static.
2013-01-16gdb/gdbserver/Yao Qi2-1/+6
* linux-low.c (linux_resume_one_lwp): Don't check 'lwp->bp_reinsert != 0'.
2013-01-16gdb/Yao Qi2-1/+6
* infcmd.c (step_once): Don't check '!single_inst' as it was checked before.
2013-01-16*** empty log message ***gdbadmin1-1/+1
2013-01-15gdb/Jan Kratochvil2-1/+7
* dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2013-01-15gdb/testsuite/Jan Kratochvil2-0/+9
* gdb.dwarf2/dw2-restrict.exp: Skip compilation on non-x86_64 targets.
2013-01-15*** empty log message ***gdbadmin1-1/+1
2013-01-14 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return theTom Tromey6-17/+68
set command. * command.h (add_setshow_string_noescape_cmd): Update. * corefile.c (set_gnutarget_command): Remove trailing whitespace. (complete_set_gnutarget): New function. (_initialize_core): Set the "set gnutarget" completer. gdb/testsuite * gdb.base/completion.exp: Add "set gnutarget" test.
2013-01-14 PR symtab/14442:Tom Tromey9-12/+570
* c-typeprint.c (cp_type_print_method_args): Handle 'restrict'. (c_type_print_modifier): Likewise. * dwarf2read.c (read_tag_restrict_type): New function. (read_type_die_1): Handle DW_TAG_restrict_type. * gdbtypes.c (make_restrict_type): New function. (recursive_dump_type): Handle TYPE_RESTRICT. * gdbtypes.h (enum type_flag_values): Renumber. (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_RESTRICT. (TYPE_RESTRICT): New macro. (make_restrict_type): Declare. gdb/testsuite * gdb.dwarf2/dw2-restrict.S: New file. * gdb.dwarf2/dw2-restrict.c: New file. * gdb.dwarf2/dw2-restrict.exp: New file.
2013-01-14 PR symtab/14931:Tom Tromey8-1/+292
* psymtab.c (struct psymtab_state): New. (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New functions. * psympriv.h (make_cleanup_discard_psymtabs): Declare. * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions. gdb/testsuite * gdb.dwarf2/dw2-error.exp: New file. * gdb.dwarf2/dw2-error.c: New file. * gdb.dwarf2/dw2-error.S: New file.
2013-01-142013-01-14 Richard Sharman <richard_sharman@mitel.com>Pedro Alves2-1/+20
Pedro Alves <palves@redhat.com> PR remote/14786 * remote.c (remote_threads_info): Make a copy of the reply from qfThreadInfo and use that instead of rs->buf.
2013-01-14gdb/Yao Qi5-48/+42
2013-01-14 Yao Qi <yao@codesourcery.com> * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL. (dbx_psymtab_to_symtab): Likewise. * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise. * mdebugread.c (mdebug_psymtab_to_symtab): Likewise. * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
2013-01-14*** empty log message ***gdbadmin1-1/+1
2013-01-13gdb/Jan Kratochvil7-3/+119
* parse.c (parse_exp_in_context): New variable inner_chain. Call make_cleanup_restore_current_language. Call set_language. Move OLD_CHAIN and INNER_CHAIN cleanups. * utils.c (do_restore_current_language) (make_cleanup_restore_current_language): New functions. * utils.h (make_cleanup_restore_current_language): New declaration. gdb/testsuite/ * gdb.cp/parse-lang.cc: New file. * gdb.cp/parse-lang.exp: New file.
2013-01-13gdb/Jan Kratochvil2-1/+4
* source.c (symtab_to_fullname): Do not prepend DIRNAME for non-existing files if FILENAME is already absolute.
2013-01-13gdb/Jan Kratochvil4-4/+41
* source.c (symtab_to_fullname): Apply rewrite_source_path also for non-existing files. gdb/testsuite/ * gdb.mi/mi-fullname-deleted.exp: Set srcfileabssubst and initdir. (set substitute-path): New test. (fullname present): Remove content. (substituted fullname): New test.
2013-01-13Fix gdb.python/py-finish-breakpoint.exp ERROR.Joel Brobecker2-7/+14
This patch fixes the following error, when running gdb.python/ py-finish-breakpoint.exp: ERROR: can't read "gdb_py_is_py24": no such variable while executing "if { $gdb_py_is_py24 == 1 } { gdb/testsuite/ChangeLog: * gdb.python/py-finish-breakpoint.exp: Add skip_python_tests check. Move $gdb_py_is_py24 value check right after.
2013-01-13*** empty log message ***gdbadmin1-1/+1
2013-01-12*** empty log message ***gdbadmin1-1/+1
2013-01-11gdb/Jan Kratochvil2-3/+6
* macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of fputs_filtered. Append trailing newline.
2013-01-11gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.base/dprintf.exp (dprintf info 1): Fix expectation on 64-bit targets.
2013-01-11gdb/Yao Qi2-1/+6
2013-01-11 Yao Qi <yao@codesourcery.com> Stan Shebs <stan@codesourcery.com> * psymtab.c (init_psymbol_list): Clarify the comment.
2013-01-11gdb/Yao Qi2-29/+26
* breakpoint.c (print_one_breakpoint_location): Remove dead code. (update_dprintf_command_list): Assert that 'printf_line' is non-null. Remove condition check.
2013-01-11gdb/testsuite/Yao Qi3-1/+30
* gdb.base/dprintf.exp: Check the output of 'info breakpoints' for dprintf. * gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify): Check the fields in "=breakpoint-created" for dprintf.
2013-01-11*** empty log message ***gdbadmin1-1/+1
2013-01-10gdb/Jan Kratochvil4-4/+13
Code cleanup. * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return type const char *. * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname const char *. * tui/tui-source.h (tui_source_is_displayed): Likewise.
2013-01-10*** empty log message ***gdbadmin1-1/+1
2013-01-09Fixes for solaris compilerAnthony Green3-2/+8
2013-01-09 * symfile.h (quick_symbol_functions): Delete memberDoug Evans5-108/+173
pre_expand_symtabs_matching. All uses removed. * dwarf2read.c (dw2_lookup_symbol): Implement. (dw2_do_expand_symtabs_matching): Delete. (dw2_pre_expand_symtabs_matching): Delete. (struct dw2_symtab_iterator): New type. (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions. (dw2_expand_symtabs_for_function): Rewrite. (dwarf2_gdb_index_functions): Update. * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete. (psym_functions): Update.
2013-01-09 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.Tom Tromey5-47/+117
* configure: Rebuild. * configure.ac: Add somread.o to the build if BFD has SOM support. * somread.c: Include som/aout.h, not syms.h. (som_symtab_read): Use som_external_symbol_dictionary_record. Unpack records manually. (_initialize_somread): Declare.
2013-01-09*** empty log message ***gdbadmin1-1/+1
2013-01-08gdb: x86: fix x32 builds with inline asmMike Frysinger2-1/+7
We need to cast the pointer up to 64bits so that the push works on x32 targets. For 64bit targets, this makes no difference. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-082013-01-08 Hui Zhu <hui_zhu@mentor.com>Hui Zhu4-7/+8
* printcmd.c: Remove define of function output_command. * tracepoint.c: Remove extern of function output_command. * valprint.h: (output_command): New extern.
2013-01-08*** empty log message ***gdbadmin1-1/+1
2013-01-07 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):Tom Tromey2-146/+10
Remove. (objc_language_defn): Use c_printchar, c_printstr, c_emit_char.
2013-01-07 PR cli/7719:Tom Tromey17-248/+109
* NEWS: Update. * ada-valprint.c (printstr, print_field_values): Remove "inspect_it" code. * cp-valprint.c (cp_print_value_fields): Remove "inspect_it" code. * jv-valprint.c (java_print_value_fields): Remove "inspect_it" code. * m2-lang.c (m2_printstr): Remove "inspect_it" code. * main.c (captured_main): Remove "epoch" argument. * objc-lang.c (objc_printstr): Remove "inspect_it" code. * p-lang.c (pascal_printstr): Remove "inspect_it" code. * p-valprint.c (pascal_object_print_value_fields): Remove "inspect_it" code. * printcmd.c (print_command_1): Remove 'inspect' argument. (print_command, call_command): Update. (inspect_command): Remove. (_initialize_printcmd): Make "inspect" an alias for "print". * top.c (epoch_interface): Remove. * top.h (epoch_interface): Remove. * valprint.c (user_print_options): Update. (print_converted_chars_to_obstack): Remove "inspect_it" code. * valprint.h (struct value_print_options) <inspect_it>: Remove field. doc * gdb.texinfo (Mode Options): Don't mention -epoch. (Data, Emacs): Remove obsolete comments.
2013-01-07Simplifly ptrace_request_to_str's implementation...Joel Brobecker2-147/+58
... following Pedro's advice of using a temporary macro. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Define a temporary macro and use it to simplify this function's implementation.
2013-01-07Add ptrace error handling in lynx_resumeJoel Brobecker2-0/+9
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace sets errno.
2013-01-07Make x86-lynx GDBserver pass XML register map to GDB.Joel Brobecker2-0/+7
This is not strictly needed, since both GDB and GDBserver seem to agree on the register numbering without this. But this allows us to make sure that this is always going to be the case. gdb/gdbserver/ChangeLog: * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
2013-01-07Allow powerpc-*-lynxos* GDBserver to send register map via XML...Joel Brobecker2-0/+7
... back to GDB. The transfer occurs when GDB sends the 'qXfer:features:read:target.xml' packet. This allows us to make sure that GDB and GDBserver use the same register numbering. This is important on Lynx 178, where GDB selects the rs6000:6000 architecture by default instead of the powerpc:common architecture. gdb/gdbserver/ChangeLog: * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
2013-01-07LynxOS: Resume the same thread when receiving a thread create/exit event.Joel Brobecker2-4/+17
Before this patch, the ptid passed to lynx_resume was completely ignored, and we used the current_inferior. This resulted in trying to resume the inferior execution using the wrong ptid after having received a thread create/exit event, because the inferior_ptid was still set to the ptid prior to receiving the signal. gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Use the resume_info parameter to determine the ptid for the lynx_ptrace call, unless it is equal to minus_one_ptid, in which case we use the ptid of the current_inferior. (lynx_wait_1): After having received a thread create/exit event, resume the inferior's execution using the signaling thread's ptid, rather than the old ptid.