aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2011-10-26 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint opsUlrich Weigand2-2/+7
to create_breakpoint.
2011-10-26 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.Ulrich Weigand2-29/+28
(ppc_sysv_abi_push_dummy_call): Use it. (do_ppc_sysv_return_value): Likewise. (ppc64_sysv_abi_push_dummy_call): Likewise. (ppc64_sysv_abi_return_value): Likewise.
2011-10-26* gdb.texinfo (gdb.types): Document new deepitems function.Paul Koning2-0/+33
2011-10-26* gdb.python/lib-types.cc (struct A): New structure.Paul Koning3-0/+38
* gdb.python/lib-types.exp (deepitems): New tests.
2011-10-26* python/lib/gdb/types.py (deepitems): New function.Paul Koning2-0/+24
2011-10-26*** empty log message ***gdbadmin1-1/+1
2011-10-25* gdb.python/py-value.exp: Add testcases for is_lazy attribute,Paul Koning2-4/+21
fetch_lazy method.
2011-10-25PR python/13327Paul Koning2-0/+35
* gdb.texinfo (Values From Inferior): Add is_lazy attribute, fetch_lazy method.
2011-10-25PR python/13327Paul Koning2-8/+52
* python/py-value.c (value_to_value_object): Remove fetching of the value if it was lazy. (valpy_get_is_lazy): New function. (valpy_fetch_lazy): New function.
2011-10-25*** empty log message ***gdbadmin1-1/+1
2011-10-24[powerpc] crash trying to allocate memory in inferiorJoel Brobecker2-0/+6
Our testsuite noticed a crash when trying to call a function which requires GDB to allocate memory in the inferior. Typically, this happens when one of the parameters is a string. For instance, our testcase tries: (gdb) call debug.trace (me, "You") [1] 32737 segmentation fault /path/to/gdb What happens is that GDB sees the string, and thus tries to allocate memory for it in the inferior: > /* Allocate NBYTES of space in the inferior using the inferior's > malloc and return a value that is a pointer to the allocated > space. */ > > struct value * > value_allocate_space_in_inferior (int len) > { > struct objfile *objf; > struct value *val = find_function_in_inferior ("malloc", &objf); And find_function_in_inferior first searches the symtab in case we have debug info. But, in our case (bareboard powerpc), we don't, so it gets "malloc"'s address from the minimal symbols, and builds a value whose type is a TYPE_CODE_PTR, not a TYPE_CODE_FUNC. As a result, when we later try to make the call to malloc, we end up inside the powerpc tdep code that has: > do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *func_type, [...] > if (func_type > && TYPE_CALLING_CONVENTION (func_type) == DW_CC_GDB_IBM_OpenCL) The problem is that func_type is not a TYPE_CODE_FUNC, and thus the type-specific kind is not TYPE_SPECIFIC_FUNC, and so we do TYPE_CALLING_CONVENTION is an invalid access. Interestingly, the other call to TYPE_CALLING_CONVENTION is correctly preceded by a check of the type's TYPE_CODE (making sure that it is TYPE_CODE_FUNC). gdb/ChangeLog: * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2011-10-242011-10-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-0/+11
gdb/ * linux-nat.c (linux_handle_extended_wait): When handling a clone event, in non-stop, if not stopping, make sure the new lwp has last_resume_kind set to resume_continue. Assert that when we're resuming the new lwp, its last_resume_kind is resume_continue.
2011-10-242011-10-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-1/+7
gdb/ * infrun.c (handle_inferior_event): Don't assume inferior_ptid is already set when marking the event thread as not executing in non-stop mode.
2011-10-242011-10-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-0/+7
gdb/ * infrun.c (handle_inferior_event): Add debug output for TARGET_WAITKIND_NO_HISTORY.
2011-10-24 gdb/testsuite/Yao Qi2-1/+7
* lib/gdb.exp (can_single_step_to_signal_handler): Return 0 when target is tic6x-*-*.
2011-10-242011-10-24 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-4/+15
* NEWS: Move set/show extended-prompt to "New Options". Expand description. Fix typos.
2011-10-242011-10-24 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-0/+9
PR python/13310 * python/py-param.c (call_doc_function): Correctly deference on function exit.
2011-10-24*** empty log message ***gdbadmin1-1/+1
2011-10-23*** empty log message ***gdbadmin1-1/+1
2011-10-22*** empty log message ***gdbadmin1-1/+1
2011-10-21[Ada] Fix number of lines in -ada-task-info outputJoel Brobecker5-2/+165
When using the new -ada-task-info command with an argument, the output would say that there are N entries in the returned table, (where N is the total number of tasks present in the inferior). But, in fact, the table would only contain at most 1 entry. This patch fixes this by properly computing the number of tasks being displayed before giving it to the uiout. gdb/ChangeLog: * ada-tasks.c (print_ada_task_info): Fix computation of number of tasks displayed in command output. gdb/testsuite/ChangeLog: * gdb.ada/mi_task_info/task_switch.adb: New file. * gdb.ada/mi_task_info.exp: New file.
2011-10-21gdb/testsuite/Jan Kratochvil3-0/+63
* gdb.cp/expand-psymtabs-cxx.exp: New file. * gdb.cp/expand-psymtabs-cxx.cc: New file.