aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-07-11gdb/Jan Kratochvil5-14/+54
* dwarf2expr.c (read_sleb128): Fix signed extension overflowing host `int'. gdb/testsuite/ * gdb.dwarf2/dw2-const.S (Pointer size): Change from 4 to 8. (DW_AT_high_pc, DW_AT_low_pc): Remove them. (val8, .Ltype_const8, .Ltype_int8, DW_TAG_variable): New. * gdb.dwarf2/dw2-const.exp (print/x val8): New test.
2011-07-112011-07-11 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon9-17/+122
PR python/12438 * python/python.c: Set gdbpy_should_print_stack default to off. (set_python): Deprecate maint set python print-stack to class_deprecate. (_initialize_python): Deprecate maint set/show python print-stack. Add new prefix command, python. Add new setting, print-backtrace. * NEWS: Document set python print-stack. Document default change. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> PR python/12438 * gdb.texinfo (Python Commands): Add deprecate note to maint set/show python print-stack. Document set/show python print-backtrace. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> PR python/12438 * gdb.python/python.exp: Add maint set/show python print-stack deprecated tests. Add set/show python print-backtrace tests.
2011-07-112011-07-11 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon3-13/+57
* python/py-inferior.c (infpy_dealloc): New function. (inferior_to_inferior_object): Return a new object, or a new reference to the existing object. (find_thread_object): Cleanup references to inferior. (delete_thread_object): Ditto. * python/py-infthread.c (create_thread_object): Do not increment inferior reference count.
2011-07-11*** empty log message ***gdbadmin1-1/+1
2011-07-10*** empty log message ***gdbadmin1-1/+1
2011-07-09*** empty log message ***gdbadmin1-1/+1
2011-07-08 * dwarf2loc.c (locexpr_regname): New function.Tom Tromey2-20/+107
(locexpr_describe_location_piece): Use it. (disassemble_dwarf_expression): Add per_cu argument. Use locexpr_regname. <DW_OP_GNU_deref_type, DW_OP_GNU_const_type, DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: New cases. (locexpr_describe_location_1): Add per_cu argument. (locexpr_describe_location): Update. (loclist_describe_location): Update.
2011-07-08 * dwarf2expr.c (execute_stack_op): Add QUIT.Tom Tromey2-0/+8
2011-07-08*** empty log message ***gdbadmin1-1/+1
2011-07-07gdb/testsuite/Jan Kratochvil2-1/+15
* gdb.java/jprint.exp (print a java.lang.String): xfail without system debug info.
2011-07-072011-07-07 Hui Zhu <teawater@gmail.com>Hui Zhu3-25/+10
Revert: 2011-07-06 Hui Zhu <teawater@gmail.com> * remote.c (remote_start_remote): Add TRY_CATCH for remote_get_trace_status. * tracepoint.c (disconnect_tracing): Ditto.
2011-07-07http://sourceware.org/ml/gdb-patches/2011-07/msg00085.htmlAndrew Burgess2-12/+14
* cli/cli-setshow.c (do_setshow_command): Display var_zinteger variables as signed, not unsigned.
2011-07-07Minor forward declaration reformatting (jit.c)Joel Brobecker2-2/+5
gdb/ChangeLog: * jit.c (jit_inferior_init): Reformat forward declaration.
2011-07-07*** empty log message ***gdbadmin1-1/+1
2011-07-06MAINTAINERS (Write after approval): Add myself to the list.matt rice2-0/+5
2011-07-06gdb.python/python.exp: Update filename paths.matt rice3-5/+10
gdb.python/py-symtab.exp: Ditto.
2011-07-06Fix JIT clang-lli regression (unable to read JIT descriptor from memory)Joel Brobecker6-1/+165
2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com> * jit.c (jit_inferior_init): Forward declare. (jit_breakpoint_re_set_internal): Call jit_inferior_init. testsuite/ChangeLog: 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.base/jit-so.exp: New test. * gdb.base/jit-dlmain.c: New file. * gdb.base/jit-main.c: Allow "main" to be elsewhere.
2011-07-06gdb.python/py-evthreads.exp: add missing $Marek Polacek2-1/+5
2011-07-06gdb: testsuite: add Blackfin supportMike Frysinger4-0/+55
This fills out a few of the test places where needed for Blackfin targets. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-06Fix race in gdb.python/py-evthreads.expMarek Polacek2-1/+6
2011-07-06Correct a email error.Hui Zhu1-1/+1
2011-07-062011-07-06 Hui Zhu <teawater@gmail.com>Hui Zhu3-2/+31
* remote.c (remote_start_remote): Add TRY_CATCH for remote_get_trace_status. * tracepoint.c (disconnect_tracing): Ditto.
2011-07-06*** empty log message ***gdbadmin1-1/+1
2011-07-05 * symtab.c (operator_chars): Now static.Tom Tromey3-9/+6
* linespec.c (operator_chars): Don't declare.
2011-07-05 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.Thiago Jung Bauermann2-1/+5
2011-07-05gdbTom Tromey7-1/+28
* gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA. * gdbtypes.h (struct cplus_struct_type) <is_java>: New field. (TYPE_CPLUS_REALLY_JAVA): New macro. * dwarf2read.c (process_structure_scope): Set TYPE_CPLUS_REALLY_JAVA. gdb/testsuite * gdb.java/jprint.java (jprint.hi): New field. * gdb.java/jprint.exp: Print string.
2011-07-05gdb/Thiago Jung Bauermann20-17/+43
* ada-lang.c: Fix typos. * amd64-tdep.c: Likewise. * breakpoint.c: Likewise. * cli/cli-decode.c: Likewise. * findcmd.c: Likewise. * inline-frame.c: Likewise. * mi/mi-main.c: Likewise. * minsyms.c: Likewise. * monitor.c: Likewise. * monitor.h: Likewise. * prologue-value.c: Likewise. * reverse.c: Likewise. * s390-tdep.c: Likewise. gdb/testsuite/ * gdb.base/call-sc.c: Likewise. * gdb.base/ifelse.exp: Likewise. * gdb.base/structs.c: Likewise. gdb/doc/ * gdb.texinfo: Likewise.
2011-07-05*** empty log message ***gdbadmin1-1/+1
2011-07-04Minor comment reformatting in generic_elf_osabi_snifferJoel Brobecker2-3/+8
Comment says it all. I just felt that putting some new text in a separate paragraph allowed us to clearly identify the section about ELFOSABI_NONE, and the part that talks about the new ELFOSABI_GNU. gdb/ChangeLog: * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2011-07-04ada-tasks.c: handle known tasks maintained by a simply-linked list.Joel Brobecker3-65/+142
The mapping between Ada tasks, and the underlying threads is normally maintained by the GNAT runtime under the known_tasks array. For performance reasons, this array is just a static array with 10_000 entries in it. However, this is not very practical in certain environments where memory is limited. For those environments, the runtime has been enhanced to use an alternate scheme with a linked list. This change enhances the Ada tasking support to recognize this situation and use the correct way of reading the tasks info based on the the situation. gdb/ChangeLog (Tristan Gingold) * ada-tasks.c (KNOWN_TASKS_LIST): New macro. (tcb_fieldno): Add activation_link field. (get_known_tasks_addr): Moved and rewritten. (get_tcb_types_info): Set activation_link field. (read_known_tasks_array): Add parameter. Rewritten. (read_known_tasks_list): New function. (read_known_tasks): New function. (ada_build_task_list): Call read_known_tasks instead of read_known_tasks_array. * ravenscar-thread.c: Add first_task_name constant. (has_ravenscar_runtime): Check for task list too.
2011-07-04Minor changes in ada-tasks.cJoel Brobecker2-34/+40
Just some minor cleanup changes in preparation for an upcoming change... gdb/ChangeLog (Tristan Gingold) * ada-tasks.c: Renames fieldno to actb_fieldno. (ada_get_task_number): Indentation. (get_tcb_types_info): Remove all parameters. Write directly the globals. (ptid_from_atcb_common): Adjust. (read_atcb): Adjust.
2011-07-04 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.Thiago Jung Bauermann2-2/+6
2011-07-04 * ui-out.c (ui_out_field_core_addr): Mention that the functionThiago Jung Bauermann3-0/+10
description is in the header file. * ui-out.h (ui_out_field_core_addr): Document function.
2011-07-04 * ui-out.c (ui_out_get_field_separator): Remove unused function.Thiago Jung Bauermann3-9/+5
* ui-out.h (ui_out_get_field_separator): Remove prototype.
2011-07-04 * symtab.c (expand_line_sal): Remove empty line.Thiago Jung Bauermann2-1/+4
2011-07-04ELFOSABI_GNU.Thomas Schwinge2-9/+10
gdb/ * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the same way as ELFOSABI_NONE. <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2011-07-04 * breakpoint.c: Fix typos in comments.Thiago Jung Bauermann4-18/+24
* linespec.c: Likewise. * symtab.c: Likewise.
2011-07-04Do not load .eh_frame section from separete object filesJoel Brobecker2-31/+41
We don't need to read the .eh_frame section from the separate object files, because this data is already present in the main executable (it needs to, or the program wouldn't work). We discovered this investigating a problem with the 'next' command, which was due to unwind failures, which came from the fact that the .eh_frame was incorrectly relocated. gdb/ChangeLog (Tristan Gingold): * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame section in separate object files.
2011-07-04gdb/Jan Kratochvil2-0/+8
Fix false GCC warning. * linespec.c (decode_line_1): Initialize values.
2011-07-04*** empty log message ***gdbadmin1-1/+1
2011-07-03*** empty log message ***gdbadmin1-1/+1
2011-07-02gdb/testsuite/Jan Kratochvil3-5/+24
* gdb.cp/m-static.exp: Call get_compiler_info. (static const int initialized nowhere): Call setup_xfail for gcc <= 4.4. * gdb.cp/pr9167.exp (p b): Likewise. * gdb.cp/temargs.exp: Do not set have_pr_45024_fixed for gcc 4.6. (test value of P in inner_m, test type of Z in inner_m): Call setup_xfail for gcc <= 4.5.
2011-07-02gdb/testsuite/Jan Kratochvil2-0/+16
* gdb.cp/m-static.exp: Call get_compiler_info. (static const int initialized nowhere): Call setup_xfail for gcc<=4.4.
2011-07-02*** empty log message ***gdbadmin1-1/+1
2011-07-01gdb/Jan Kratochvil5-1/+73
* linespec.c (find_method): Accept the function type automatically only if it was specified with parameter types. gdb/testsuite/ * gdb.cp/paren-type.cc: New files. * gdb.cp/paren-type.exp: New files.
2011-07-01gdb/Jan Kratochvil8-102/+86
Stop on first linespec terminator instead of eating what we can. * linespec.c (is_linespec_boundary): New function. (name_end): Remove function. (keep_name_info): New parameter on_boundary, replace the body. (decode_line_1): Provide the parameter to keep_name_info. (decode_compound): Likewise. Drop the trailing java return type handling. Twice. gdb/testsuite/ Stop on first linespec terminator instead of eating what we can. * gdb.cp/minsym-fallback-main.cc (main): Call also C::operator (). * gdb.cp/minsym-fallback.cc (C::operator ()): Define. * gdb.cp/minsym-fallback.exp (break 'C::f()'): Change to ... (break C::f()): ... this one. (break C::operator()()): New test. * gdb.cp/minsym-fallback.h (C::operator ()): Declare. * gdb.java/jmisc.exp (break jmisc.main(java.lang.String[])int): New test.
2011-07-01gdb/Jan Kratochvil9-27/+175
Fall back linespec to minimal symbols. * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect decode_compound by TRY_CATCH, fall back on minsyms if it failed. (find_method, symbol_found): Change error to cplusplus_error. gdb/testsuite/ Fall back linespec to minimal symbols. * gdb.base/psymtab.exp (Don't search past end of psymtab.): Update the error message. * gdb.cp/cplusfuncs.exp (list foo::operator int*): Likewise. * gdb.cp/minsym-fallback-main.cc: New file. * gdb.cp/minsym-fallback.cc: New file. * gdb.cp/minsym-fallback.exp: New file. * gdb.cp/minsym-fallback.h: New file.
2011-07-01gdb/Changelog fix:Jan Kratochvil1-1/+1
* symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2011-07-01gdb/Jan Kratochvil5-2/+72
* symtab.c (symbol_find_demangled_name): Likewise. gdb/testsuite/ * gdb.cp/no-dmgl-verbose.cc: New file. * gdb.cp/no-dmgl-verbose.exp: New file.
2011-07-01gdb/Jan Kratochvil12-10/+391
* dwarf2read.c (check_physname): New variable. (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name. (show_check_physname): New function. (_initialize_dwarf2_read): Add `check-physname' for check_physname. gdb/doc/ * gdb.texinfo (Debugging Output): Document set debug check-physname. gdb/testsuite/ * gdb.base/break-interp.exp (reach_1, test_ld): Allow also the prefix __GI_. * gdb.cp/psymtab-parameter.cc (func): Make it a template function. (f): New function. * gdb.cp/psymtab-parameter.exp (complete break 'func(): Rename to ... (complete p 'func<short>(): ... here. * gdb.dwarf2/dw2-linkage-name-trust-main.cc: New file. * gdb.dwarf2/dw2-linkage-name-trust.S: New file. * gdb.dwarf2/dw2-linkage-name-trust.exp: New file. * gdb.cp/temargs.exp (test type of F in k3_m, test value of F in k3_m): Make them KFAIL gcc/49546.