aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-11-04 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.Tom Tromey2-65/+69
2011-11-04 * coff-pe-read.c: Include defs.h before bfd.h.Rainer Orth2-2/+5
2011-11-042011-11-04 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-4/+20
PR Python/13345 * python/python.c (python_run_simple_file): Expand tilde in path.
2011-11-042011-11-04 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-8/+28
PR Python/13363 * python/py-type.c (typy_lookup_type): Do not return a type in an exception handler.
2011-11-04*** empty log message ***gdbadmin1-1/+1
2011-11-03gdb/Jan Kratochvil2-5/+12
* linux-nat.c (_initialize_linux_nat): Improve help for `info proc stat', `info proc status', `info proc cwd', `info proc cmdline' and `info proc exe'.
2011-11-03gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.base/commands.exp (cmd1 error): Fix false ERROR with gdbserver.
2011-11-03 * gdb.texinfo (Stopping): Add menu entry.Tom Tromey2-1/+10
(Continuing and Stepping): Restore @node. Use @section, not @subsection.
2011-11-03 * gdb.texinfo (Skipping Over Functions and Files): Remove nodeMaciej W. Rozycki2-2/+6
designation. Fix "Specify Location" cross-reference.
2011-11-03*** empty log message ***gdbadmin1-1/+1
2011-11-022011-11-02 Stan Shebs <stan@codesourcery.com>Stan Shebs19-6/+349
String collection for tracepoints. * NEWS: Mention string collection. * common/ax.def (tracenz): New bytecode. * ax-gdb.h (trace_string_kludge): Declare. * ax-gdb.c: Include valprint.h and c-lang.h. (trace_string_kludge): New global. (gen_traced_pop): Add string case. (agent_command): Add string case. * tracepoint.h (decode_agent_options): Declare. * tracepoint.c: Include cli-utils.h. (decode_agent_options): New function. (validate_actionline): Call it. (encode_actions_1): Ditto. * target.h (struct target_ops): New method to_supports_string_tracing. (target_supports_string_tracing): New macro. * target.c (update_current_target): Add to_supports_string_tracing. * remote.c (struct remote_state): New field string_tracing. (remote_string_tracing_feature): New function. (remote_protocol_features): New feature tracenz. (remote_supports_string_tracing): New function. (init_remote_ops): Set to_supports_string_tracing. * tracepoint.c (agent_mem_read_string): New function. (eval_agent_expr): Call it for tracenz. * server.c (handle_query): Report support for tracenz. * gdb.texinfo (Tracepoint Action Lists): Document collect/s. (General Query Packets): Describe tracenz feature. * agentexpr.texi (Bytecode Descriptions): Describe tracenz. * gdb.trace/collection.c: Add code using strings. * gdb.trace/collection.exp: Add tests of string collection.
2011-11-02gdb/Jan Kratochvil2-68/+165
* linux-nat.c: Include cli/cli-utils.h. (enum info_proc_what): New. (linux_nat_info_proc_cmd): Rename to ... (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all. New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f, status_f and stat_f from WHAT. Throw error on extra parameters. (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings) (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status) (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline) (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New. (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info proc mappings', `info proc stat`, `info proc status', `info proc cwd', `info proc cmdline', `info proc exe' and `info proc all' as real subcommands of `info proc'.
2011-11-02gdb/testsuite/Jan Kratochvil2-13/+18
* gdb.base/skip-solib.exp (executable_main): New variable. (binfile_main): Base it on that. Use $executable_main in clean_restart calls. Drop gdb_exit and gdb_start calls.
2011-11-02gdb/gdbserver/Yao Qi2-7/+4
* tracepoint.c (cmd_qtstart): Remove unused local variables.
2011-11-02gdb/gdbserver/Yao Qi2-1/+5
* target.h: Fix a typo in comment.
2011-11-02Fix date in changelog entry.Yao Qi2-2/+2
2011-11-02*** empty log message ***gdbadmin1-1/+1
2011-11-01gdb/testsuite/Jan Kratochvil2-2/+15
Fix racy FAILs. * lib/mi-support.exp (mi_gdb_test): Replace thread_selected_re and breakpoint_re globals import by async. Set string_regex to .* for async. Remove the optional thread_selected_re and breakpoint_re globals expectations.
2011-11-01 * gdb.base/maint.exp: XFAIL "maint info sections DATA" on MinGW asJoseph Myers2-1/+7
well as Cygwin.
2011-11-012011-10-06 Justin Lebar <justin.lebar@gmail.com>Justin Lebar23-67/+1324
* Makefile.in: (SFILES): Add skip.c. (HFILES_NO_SRCDIR): Add skip.h. (COMMON_OBS): Add skip.o. * skip.h, skip.c: New. * breakpoint.h (set_default_breakpoint): Remove. (get_sal_arch): Declare. * breakpoint.c: Remove default_breakpoint_valid, default_breakpoint_address, default_breakpoint_symtab, default_breakpoint_line, default_breakpoint_pspace variables. (get_sal_arch): Make public. (set_default_breakpoint): Remove. (parse_breakpoint_sals, create_breakpoint, clear_command, decode_line_spec_1): Remove uses of default_breakpoint variables; replaced with function calls into stack.c. * cli/cli-cmds.h: Add cmd_list_element *skiplist. * cli/cli-cmds.c: Add skiplist. (init_cmd_lists): Initialize skiplist. (init_cli_cmds): Fix comment (classes of commands appear in alphabetical order). * infrun.c (handle_inferior_event): Add check that we don't step into a function whose pc is marked for skip. * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace, last_displayed_addr, last_displayed_symtab, last_displayed_line variables. (set_last_displayed_sal): New static function. (print_frame_info): Switch call to set_default_breakpoint to call to set_last_displayed_sal. (clear_last_displayed_sal, last_displayed_sal_is_valid, get_last_displayed_pspace, get_last_displayed_addr, get_last_displayed_symtab, get_last_displayed_line, get_last_displayed_sal): New public functions. * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid, get_last_displayed_pspace, get_last_displayed_addr, get_last_displayed_symtab, get_last_displayed_line, get_last_displayed_sal): Declare. 2011-10-06 Justin Lebar <justin.lebar@gmail.com> Add tests for skip command. * testsuite/gdb.base/skip-solib-lib.c: New * testsuite/gdb.base/skip-solib-main.c: New * testsuite/gdb.base/skip-solib.exp: New * testsuite/gdb.base/skip.c: New * testsuite/gdb.base/skip.exp: New * testsuite/gdb.base/skip1.c: New * testsuite/gdb.base/Makefile.in: Adding new files.
2011-11-012011-11-01 Justin Lebar <justin.lebar@gmail.com>Justin Lebar2-0/+5
* MAINTAINERS (Write After Approval): Add myself to the list.
2011-11-01*** empty log message ***gdbadmin1-1/+1
2011-10-312011-10-31 Pedro Alves <pedro@codesourcery.com>Pedro Alves7-6/+321
gdb/gdbserver/ * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't clobber the breakpoints' shadows with fast tracepoint jumps. * mem-break.h (check_mem_write): Add `myaddr' parameter. * target.c (write_inferior_memory): Also pass MYADDR down to check_mem_write. gdb/testsuite/ * gdb.trace/trace-break.c: New. * gdb.trace/trace-break.exp: New.
2011-10-31*** empty log message ***gdbadmin1-1/+1
2011-10-30*** empty log message ***gdbadmin1-1/+1
2011-10-29gdb/Yao Qi2-0/+5
* infcmd.c (disconnect_command): Call disconnect_tracing.
2011-10-29gdb/Jan Kratochvil2-2/+7
Code cleanup. * symtab.c (skip_prologue_sal): Code reformatting.
2011-10-29*** empty log message ***gdbadmin1-1/+1
2011-10-28gdb/Jan Kratochvil2-6/+17
PR symtab/13208 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and SAI.
2011-10-28gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.threads/no-unwaited-for-left.exp: Specify $srcfile for break-here-2.
2011-10-282011-10-28 Pedro Alves <pedro@codesourcery.com>Pedro Alves15-125/+959
gdb/ * linux-nat.c (linux_nat_filter_event): Remove `options' parameter, and dead code that used it. If we're handling a PTRACE_EVENT_EXEC event, and the thread group leader is no longer in our lwp list, re-add it. (check_zombie_leaders): New. (linux_nat_wait_1): Remove `options' and `pid' locals. Always wait for children with WNOHANG, and always wait for all children. Don't check for no resumed children upfront. Simplify wait loop. Check for zombie thread group leaders after handling all wait statuses. Return TARGET_WAITKIND_NO_RESUMED if there no unwaited-for children left. * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED. (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED. (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED. * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New. gdb/testsuite/ * gdb.threads/no-unwaited-for-left.c: New. * gdb.threads/no-unwaited-for-left.exp: New. * gdb.threads/non-ldr-exc-1.c: New. * gdb.threads/non-ldr-exc-1.exp: New. * gdb.threads/non-ldr-exc-2.c: New. * gdb.threads/non-ldr-exc-2.exp: New. * gdb.threads/non-ldr-exc-3.c: New. * gdb.threads/non-ldr-exc-3.exp: New. * gdb.threads/non-ldr-exc-4.c: New. * gdb.threads/non-ldr-exc-4.exp: New.
2011-10-28gdb/testsuite/Jan Kratochvil10-26/+59
* gdb.base/async-shell.exp: Skip the testfile for use_gdb_stub. * gdb.base/attach-pie-misread.exp: Likewise. * gdb.base/break-interp.exp: Likewise. * gdb.base/default.exp (attach, run "r" abbreviation, run): Skip these testcases for use_gdb_stub. * gdb.dwarf2/dw2-restore.exp: Fix the run for use_gdb_stub. (continue): New testcase. * gdb.python/py-events.exp: Skip the testfile for use_gdb_stub. * gdb.threads/attach-into-signal.exp: Likewise. * gdb.threads/attach-stopped.exp: Likewise. * gdb.threads/attachstop-mt.exp: Likewise.
2011-10-2811-10-28 Sterling Augustine <saugustine@google.com>Sterling Augustine3-0/+41
* psymtab.c (map_symbol_filenames_psymtab): Call QUIT. * symtab.c (free_completion_list): New function. (do_free_completion_list): Likewise. (default_make_symbol_completion_list_break_on): New variable back_to. Call make_cleanup and discard_cleanups. (make_source_files_completion_list): Likewise.
2011-10-28* gdb.python/lib-types.exp (deep_items): Rename from deepitems.Paul Koning2-2/+8
2011-10-28* gdb.texinfo (gdb.types): Rename deepitems to deep_items.Paul Koning2-3/+7
2011-10-28* python/lib/gdb/types.py (deep_items): Rename from deepitems.Paul Koning3-2/+13
* NEWS: Mention deep_items.
2011-10-282011-10-28 Alen Skondro <askondro@gmail.com>Pedro Alves2-0/+7
* ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already defined.
2011-10-28gdb/testsuite/Jan Kratochvil2-3/+9
* lib/mi-support.exp (breakpoint_re): Suppress match reporting. (mi_gdb_test): Import globals thread_selected_re and breakpoint_re. Expect them optionally at the regex start.
2011-10-282011-10-27 Meador Inge <meadori@codesourcery.com>Meador Inge2-0/+5
* MAINTAINERS (Write After Approval): Add myself to the list.
2011-10-28*** empty log message ***gdbadmin1-1/+1
2011-10-27handle variables stored in muliple consecutive registersJoel Brobecker3-6/+42
gdb/ChangeLog: * value.h (read_frame_register_value): Add declaration. * findvar.c (read_frame_register_value): New function. (value_from_register): Use read_frame_register_value instead of get_frame_register_value + value_contents_copy to get value contents.
2011-10-27 * cli/cli-cmds.c (source_script_with_search): Pass full path toDoug Evans8-25/+44
source_script_from_stream if it may have been found on the search path. * python/py-auto-load.c (source_section_scripts): Pass full path to source_python_script_for_objfile. * python/python.c (source_python_script): Delete stream parameter. All callers updated. (source_python_script_for_objfile): Ditto. * python/python-internal.h (source_python_script_for_objfile): Update. * python/python.h (source_python_script): Update. testsuite/ * gdb.python/python.exp: Test source -s.
2011-10-27 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)Tom Tromey2-9/+5
(ada_sals_for_line): Remove declarations.
2011-10-27Move unwind reasons to an external .def fileKevin Pouget8-71/+134
gdb/ * frame.c (frame_stop_reason_string): Rewrite using unwind_stop_reasons.def. * frame.h (enum unwind_stop_reason): Likewise. * python/py-frame.c (gdbpy_initialize_frames): Likewise. (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason constants for bound-checking. * unwind_stop_reasons.def: New file. * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias instead of a distinct value. doc/ * gdb.texinfo ((Frames In Python): Document gdb.FRAME_UNWIND_FIRST_ERROR contant.
2011-10-272011-10-27 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-9/+31
PR python/13331 * python/py-function.c (fnpy_call): Check 'args' is not NULL. (convert_values_to_python): Return on Python tuple allocation failure. Return NULL on value conversion error.
2011-10-272011-10-27 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon6-50/+133
* python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH. (bppy_set_task): Ditto. (bppy_delete_breakpoint): Ditto. * python/py-symbol.c (gdbpy_lookup_symbol): Ditto. (gdbpy_lookup_global_symbol): Ditto. * python/py-lazy-string.c (stpy_convert_to_value): Ditto. * python/py-frame.c (frapy_is_valid): Ditto. (frame_info_to_frame_object): Ditto. * python/py-type.c (typy_lookup_type): Ditto. (typy_getitem): Ditto. (typy_has_key): Ditto. (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
2011-10-27*** empty log message ***gdbadmin1-1/+1
2011-10-26Regenerate gdbarch.hJoel Brobecker2-1/+5
Not sure why, but the version currently checked in as an extraneous trailing whitespace that showed up as a diff when I reran gdbarch.sh. gdb/ChangeLog: * gdbarch.h: Regenerate.
2011-10-26Fix 'sprintf' of potential NULL pointer in 'maint print arch'Joel Brobecker3-2/+8
gdb/ * gdbarch.sh (function_list): Use 'pstring' when printing 'gcore_bfd_target'. * gdbarch.c: Regenerate.
2011-10-26 * regcache.c (registers_changed_ptid): Invalidate thread architectureUlrich Weigand2-3/+7
and frame caches if PTID refers to all threads of a process.