aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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
2011-10-15*** empty log message ***gdbadmin1-1/+1
2011-10-14 PR c++/13225Keith Seitz3-0/+46
* gdb.cp/converts.cc (foo3_1): New function. (foo3_2): New functions. * gdb.cp/converts.exp: Add tests for int to pointer conversion and null pointer conversions of integer constant zero. Add test to check if all arguments are checked for incompatible conversion BADNESS.
2011-10-14 PR c++/13225Keith Seitz7-65/+104
* eval.c (evaluate_subexp_standard): Do not construct an array of types; pass the value array directly to find_overload_match. * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare. (rank_function): Take an array of values instead of types. (rank_one_type): Add struct value * parameter. * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define. (rank_function): For each argument, pass the argument's value to rank_one_type. (rank_one_type): Add VALUE parameter. If the parameter type is a pointer and the argument type is an integer, return NULL_POINTER_CONVERSION_BADNESS if VALUE is zero. Update all calls to rank_one_type, passing NULL for new VALUE parameter. * valarith.c (value_user_defined_cpp_op): Do not construct an array of types; pass the value array directly to find_overload_match. * valops.c (find_overload_method_list): Take an array of values instead of types. Save the type of OBJP for later use. Update calls to find_oload_champ, and find_oload_champ_namespace. (find_oload_champ_namespace): Take an array of values instead of types. (find_oload_champ_namespace_loop): Likewise. (find_oload_champ): Likewise. (classify_oload_match): Inspect all arguments until INCOMPATIBLE is found. Return the worst badness found otherwise. (compare_parameters): Update call to rank_one_type. * value.h (find_overload_match): Take an array of values instead of types.
2011-10-14 * gdb.threads/attachstop-mt.exp: Add $srcfile to the linespecs.Tom Tromey3-3/+9
* gdb.threads/attach-stopped.exp (corefunc): Add $srcfile to the linespec.
2011-10-14gdb/Jan Kratochvil2-84/+84
Drop lazy lm_info reading. * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p, l_addr_inferior, l_ld, l_next, l_prev and l_name. (lm_info_read): New function. (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove. (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and lm_dynamic_from_link_map. (lm_next, lm_prev, lm_name): Remove. (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries initialization incl. read_memory. No longer use lm_name. (svr4_free_so): Drop lm_info->lm freeing. (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop explicit lm_addr and lm initialization. (svr4_read_so_list): Use lm_info_read, drop the initailization of fields by hand, incl. read_memory. No longer use lm_next, lm_prev and lm_name.
2011-10-14gdb/Jan Kratochvil4-93/+159
* defs.h (struct so_list): New forward declaration. (make_cleanup_free_so): New declaration. * solib-svr4.c (ignore_first_link_map_entry): Remove. (svr4_free_so): Move the function here from downwards. Handle NULL so->lm_info. (svr4_free_library_list): New. (svr4_read_so_list): New, moved here code from svr4_current_sos. Use more cleanups. Use new parameter ignore_first instead of ignore_first_link_map_entry. (svr4_current_sos): New variable ignore_first, initialize it. New variable back_to, use it for svr4_free_library_list protection. (svr4_free_so): Remove - move upwards. * utils.c: Include solist.h. (do_free_so, make_cleanup_free_so): New functions.
2011-10-14*** empty log message ***gdbadmin1-1/+1
2011-10-13gdb/Jan Kratochvil5-4/+222
Fix internal error regression. * value.c (value_primitive_field): Handle value_optimized_out. Move packed bitfields comment. gdb/testsuite/ Fix internal error regression. * gdb.dwarf2/implptr-optimized-out.S: New file. * gdb.dwarf2/implptr-optimized-out.exp: New file.
2011-10-13 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL isTom Tromey2-8/+13
always released.
2011-10-13PR python/13285 Document named constants for frame unwind stop reasonsKevin Pouget2-1/+39
* gdb.texinfo (Frames In Python): Document gdb.FRAME_UNWIND_* constants.
2011-10-13 * python/py-type.c (typy_has_key): Make 'field' const.Tom Tromey2-1/+5
2011-10-132011-10-13 Luis Machado <lgustavo@codesourcery.com>Luis Machado2-1/+5
* remote.c (remote_save_trace_data): Invert comparison.
2011-10-132011-10-13 Luis Machado <lgustavo@codesourcery.com>Luis Machado2-1/+6
* tracepoint.c (trace_save_command): Use filename instead of args when printing.
2011-10-13gdb/Jan Kratochvil2-1/+8
* dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even if .size is 0.
2011-10-13 PR gdb/12703Yao Qi2-12/+18
* arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check whether insn is a 32-bit Thumb-2 instruction. (thumb_in_function_epilogue_p): Likewise. (thumb_get_next_pc_raw): Likewise. (arm_breakpoint_from_pc): Likewise.
2011-10-13*** empty log message ***gdbadmin1-1/+1
2011-10-12gdb/Jan Kratochvil7-21/+81
Fix empty DWARF expressions DATA vs. SIZE conditionals. * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH. (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH. (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA. (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for zero DATA. * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE validity. * dwarf2read.c (struct dwarf_block): Comment DATA validity. (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not clear DATA on zero SIZE. gdb/testsuite/ Fix empty DWARF expressions DATA vs. SIZE conditionals. * gdb.dwarf2/dw2-op-call.S (arraycallnoloc, arraynoloc): New DIEs. (loclist): New. (4): New abbrev. * gdb.dwarf2/dw2-op-call.exp: Remove variable srcfile and executable. Use prepare_for_testing, remove clean_restart. (p arraynoloc, p arraycallnoloc): New tests.
2011-10-12 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,Doug Evans2-16/+13
header->first_die_offset here. All callers updated.
2011-10-12gdb/Jan Kratochvil7-14/+167
Fix compatibility with texinfo versions older than 4.12. * Makefile.in (MAKEINFO): Set to @MAKEINFO@. (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New. (MAKEHTMLFLAGS): Use MAKEINFO_CMD. (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS. * configure: Regenerate. * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac. (MAKEINFOFLAGS): Pre-set it to --split-size=5000000. (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK. gdb/doc/ Fix compatibility with texinfo versions older than 4.12. * Makefile.in (MAKEINFO): Set to @MAKEINFO@. (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New. (MAKEHTMLFLAGS): Use MAKEINFO_CMD. (gdb.info, gdbint.info, stabs.info, annotate.info): Use MAKEINFO_CMD. * gdb.texinfo (Tail Call Frames): Convert @arrow{} to @click, when possible. Make the conversion conditional on HAVE_MAKEINFO_CLICK, using variables CALLSEQ1A, CALLSEQ1B, CALLSEQ2A and CALLSEQ2B.
2011-10-122011-10-12 Gary Benson <gbenson@redhat.com>Gary Benson4-1/+79
* breakpoint.h (pc_at_non_inline_function): Declare. * breakpoint.c (is_non_inline_function, pc_at_non_inline_function): New functions. * infrun.c (handle_inferior_event): Don't call skip_inline_frames if the stop is at a location where functions cannot be inlined.
2011-10-12Fix incomplete entry. Should have been:Pedro Alves1-0/+4
2011-10-12 Pedro Alves <pedro@codesourcery.com> * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if the core wanted them stopped, or if they now have a pending event to report. (linux_nat_filter_event): New parameter `new_pending_p'. Pass it down to stop_and_resume_callback. (linux_nat_wait_1): Always clear `options' when retrying. Handle having new pending events after calling linux_nat_filter_event.
2011-10-122011-10-12 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-13/+67
gdb/ * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if the core wanted them stopped, or if they now have a pending event to report.
2011-10-12gdb/testsuite/Jan Kratochvil2-2/+9
* gdb.cp/namespace-enum.exp (executable): New variable. (binfile): Use ${objdir}/${subdir}/ prefix. Use ${executable} for clean_restart.
2011-10-12*** empty log message ***gdbadmin1-1/+1
2011-10-112011-10-11 Sterling Augustine <saugustine@google.com>Sterling Augustine2-47/+407
* dwarf2read.c: Undo inadvertent changes in previous commit.