aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2011-10-21*** empty log message ***gdbadmin1-1/+1
2011-10-20gdb/Jan Kratochvil2-6/+13
* dwarf2-frame-tailcall.c: Include dwarf2-frame.h. (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa. (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace gdbarch_pc_regnum and frame_unwind_register_unsigned by gdbarch_unwind_pc.
2011-10-20 * dwarf2read.c (dw2_get_file_names): Move adjustment for typeCary Coutant2-9/+21
section to... (partial_read_comp_unit_head): ...here. Add is_debug_type_section flag. Adjust all callers. (process_psymtab_comp_unit): Remove adjustment for type section.
2011-10-20 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed functionAleksandar Ristovski5-5/+19
arguments by adding OBJFILE. Instead of getting objfile from symbol's symtab, use new argument OBJFILE. * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function arguments by adding OBJFILE. * gdb/dwarf2read.c (new_symbol_full): Change call to cp_scan_for_anonymous_namespaces to match new signature. * gdb/stabsread.c (define_symbol): Change call to cp_scan_for_anonymous_namespaces to match new signature.
2011-10-202011-10-20 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon3-6/+20
PR python/13308 PR python/13309 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference leak. * python/py-inferior.c (gdbpy_inferiors): Fix List reference leak. Delete unused variables.
2011-10-202011-10-20 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon15-24/+186
PR python/12656 * python/py-frame.c (frapy_read_var): Use const struct *block. * python/py-type.c (typy_lookup_typename): Likewise. (typy_lookup_type): Likewise. (typy_legacy_template_argument): Likewise. (typy_template_argument): Likewise. (gdbpy_lookup_type): Likewise. * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. * python/py-block.c (blpy_block_object): Likewise. (blpy_iter): Likewise. (blpy_get_start): Likewise. (blpy_get_end): Likewise. (blpy_get_function): Likewise. (blpy_get_superblock): Likewise. (set_block): Likewise. (block_to_block_object): Likewise. (block_object_to_block): Likewise. (blpy_is_valid): Likewise. (blpy_get_global_block): New function. (blpy_get_static_block): New function. (blpy_is_global): New function. (blpy_is_static): New function. * blockframe.c (block_innermost_frame): Likewise. * valops.c (value_of_variable): Likewise. * frame.h: Update prototypes. * python/python-internal.h: Likewise. * value.h: Likewise. 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> PR python/12656 * gdb.texinfo (Blocks In Python): Document is_static, is_global, global_block, static_block function. 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> PR python/12656 * gdb.python/py-block.exp: Add is_global, is_static, static_block, global_block tests.
2011-10-20 * dwarf2read.c (create_debug_types_hash_table): Fix size ofCary Coutant2-1/+6
type_offset field.
2011-10-20*** empty log message ***gdbadmin1-1/+1
2011-10-19 * gdb.texinfo (Commands In Python): Add missing "@"s.Tom Tromey2-1/+5
2011-10-19 * dwarf2read.c (peek_abbrev_code): New function.Cary Coutant2-0/+65
(dw2_get_file_names): Check for dummy compilation units. (create_debug_types_hash_table): Likewise. (process_psymtab_comp_unit): Likewise. (load_partial_comp_unit): Likewise. (load_full_comp_unit): Likewise.
2011-10-19*** empty log message ***gdbadmin1-1/+1
2011-10-18 * gdb.base/jit-so.exp (one_jit_test): Remove spurious backslash.Tom Tromey2-1/+5
2011-10-18 * gdb.base/source.exp: Don't include full file name in test name.Tom Tromey3-3/+12
* gdb.python/python.exp: Don't include full file name in test name.
2011-10-18 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,Aleksandar Ristovski5-5/+140
initialize them from target PT_PHDR p_vaddr, relocate sect_addr by pt_phdr if PT_PHDR was found. * gdb.base/attach-pie-noexec.c: New files. * gdb.base/attach-pie-noexec.exp: New files.
2011-10-18*** empty log message ***gdbadmin1-1/+1
2011-10-17 * lib/gdb.exp (gdb_test_multiple): Expect newline and secondaryJoseph Myers2-1/+8
prompt for each extra line in command.
2011-10-172011-10-17 Joost van der Sluis <joost@cnoc.nl>Tom Tromey3-1/+13
* gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a type or "<unnamed type"> when there is no name assigned. * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to avoid a sigint when no name is assigned.
2011-10-17gdb/Jan Kratochvil7-83/+256
Revert: 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> * dwarf2expr.c (ctx_no_read_reg): New function. * dwarf2expr.h (ctx_no_read_reg): New declaration. * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove. (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New. (decode_locdesc): Replace by a caller of dwarf_expr_eval. gdb/testsuite/ * gdb.dwarf2/dw2-simple-locdesc.exp (p &s.shl): KFAIL it. Revert the part of: 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.dwarf2/dw2-stack-boundary.exp (check partial symtab errors): Change the expected string.
2011-10-17*** empty log message ***gdbadmin1-1/+1
2011-10-16Add comma after "If True" to previous checkin.Doug Evans1-1/+1
2011-10-16 * NEWS: Document python gdb.printing.register_pretty_printer's newDoug Evans2-0/+9
`replace' parameter.
2011-10-16gdb/testsuite/Jan Kratochvil2-3/+10
Fix results with system glibc debug info installed. * gdb.base/disp-step-syscall.exp (continue to $syscall (1st time)) (continue to $syscall (2nd time), continue to $syscall (3rd time)): Accept also __libc_ symbol prefix and no prefix.
2011-10-16*** empty log message ***gdbadmin1-1/+1