aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-09-17 * infrun.c (restore_infcall_suspend_state): Eliminate single-useSiddhesh Poyarekar2-2/+6
variable LEN.
2012-09-17gdb/Jan Kratochvil10-1/+910
PR 14119 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames. (frame_pop): Drop also TAILCALL_FRAME frames. * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames. gdb/testsuite/ PR 14119 * gdb.arch/amd64-tailcall-ret.S: New file. * gdb.arch/amd64-tailcall-ret.c: New file. * gdb.arch/amd64-tailcall-ret.exp: New file. * gdb.reverse/amd64-tailcall-reverse.S: New file. * gdb.reverse/amd64-tailcall-reverse.c: New file. * gdb.reverse/amd64-tailcall-reverse.exp: New file.
2012-09-17gdb/Jan Kratochvil8-16/+523
PR 14548 * infrun.c (handle_inferior_event): Do not reverse-continue back to the function start if we are already at function start. Both for reverse-next and for reverse-step into function without line number info. gdb/testsuite/ PR 14548 * gdb.reverse/singlejmp-reverse-nodebug.S: New file. * gdb.reverse/singlejmp-reverse-nodebug.c: New file. * gdb.reverse/singlejmp-reverse.S: New file. * gdb.reverse/singlejmp-reverse.c: New file. * gdb.reverse/singlejmp-reverse.exp: New file.
2012-09-17gdb/Jan Kratochvil6-29/+55
Code cleanup - rename 'inline' depth to 'artificial' depth. * breakpoint.c (set_momentary_breakpoint): Rename at a caller to frame_id_artificial_p, extend the comment. * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user. * frame.c (fprint_frame_id): Rename at a user, change debug output text to "artificial=". (skip_inlined_frames): Rename to ... (skip_artificial_frames): ... here. Extend the comment. (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller. (frame_id_inlined_p): Rename to ... (frame_id_artificial_p): ... here. Rename at a user. (frame_id_eq, frame_id_inner, frame_unwind_caller_pc) (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename at a user. * frame.h (struct frame_id): Rename inline_depth to artificial_depth. Extend the comment. (frame_id_inlined_p): Rename to ... (frame_id_artificial_p): ... here. * inline-frame.c (inline_frame_this_id): Rename at a user.
2012-09-17*** empty log message ***gdbadmin1-1/+1
2012-09-16gdb/testsuite/Jan Kratochvil2-0/+9
Fix compatibility with old GCC (~4.1). * gdb.cp/converts.cc (my_enum_var): New variable.
2012-09-16*** empty log message ***gdbadmin1-1/+1
2012-09-15*** empty log message ***gdbadmin1-1/+1
2012-09-14http://sourceware.org/ml/gdb-patches/2012-09/msg00015.htmlAndrew Burgess4-5/+18
gdb/ChangeLog * c-typeprint.c (c_type_print_varspec_suffix): Display the size of vector variables using vector_size syntax rather than array syntax. gdb/testsuite/ChangeLog * gdb.xml/tdesc-regs.exp: Update expected output for new vector_size syntax of vector types.
2012-09-14 * valarith.c (value_concat): Replace unsafe ALLOCA withSiddhesh Poyarekar2-2/+15
XMALLOC/XFREE.
2012-09-142012-09-14 Pedro Alves <palves@redhat.com>Pedro Alves2-4/+17
* gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2012-09-14Point contrib/cc-with-tweaks.sh to the build-local data-directory.Yit Phang Khoo2-4/+11
gdb/ * contrib/cc-with-tweaks.sh (GDB): Add -data-directory data-directory as appropriate.
2012-09-14 * printcmd.c (ui_printf): Eliminate single-use variableSiddhesh Poyarekar2-3/+7
PARAM_LEN.
2012-09-14gdb/Yao Qi2-3/+8
* valops.c (value_assign): Move observer_notify_target_changed below to replace reinit_frame_cache.
2012-09-14*** empty log message ***gdbadmin1-1/+1
2012-09-13Refactor Python "gdb" module into a proper Python package, by introducingYit Phang Khoo7-116/+205
a new "_gdb" module for code implemented in C, and using reload/__import__ instead of exec. gdb/ * python/lib/gdb/__init__.py: Import * from _gdb. (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr, prompt_hook, sys.argv): Moved from finish_python_initialization. (pretty_printers, PYTHONDIR): Moved from _initialize_python. (packages, auto_load_packages): New list and function replacing module_dict and auto-loading code, using __file__ instead of gdb.PYTHONDIR and reload/__import__ instead of exec. (GdbSetPythonDirectory): Replacing function of the same name from finish_python_initialization, using reload/__import__ instead of exec, as well as call auto_load_packages. * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check gdb_python_module and not gdb_module. * python/python-internal.h (gdb_python_module): Declare. * python/python.c (gdb_python_module): New global. (before_prompt_hook): Check gdb_python_module and not gdb_module. (_initialize_python): Rename gdb module to _gdb. Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py. (finish_python_initialization): Move Python code to lib/gdb/__init__.py; instead, set up sys.path and import gdb into __main__. gdb/testsuite/ * gdb.python/python.exp (Test stderr location): Update module location of GDB-specific sys.stderr. (Test stdout location): Ditto for sys.stdout.
2012-09-13gdb/doc/Jan Kratochvil2-6/+18
* gdbint.texinfo (Defining Other Architecture Features): Clarify *pcptr encoding for gdbarch_breakpoint_from_pc, bp_addr for gdbarch_push_dummy_call and bp_addr for gdbarch_push_dummy_code.
2012-09-132012-09-13 Pedro Alves <palves@redhat.com>Pedro Alves4-71/+246
* Makefile.in (COMMON_OBS): Add registry.o. * registry.c: New file. * registry.h (struct registry_container): Declare. (registry_data_callback): New typedef. (struct registry_data, struct registry_data_registration, struct registry_data_registry): New type. (register_data_with_cleanup, registry_alloc_data) (registry_callback_adaptor, registry_clear_data) (registry_container_free_data, registry_set_data, registry_data): Declare. (DEFINE_REGISTRY): Refactor structures and functions as shims over the new common structures and functions. (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged callback typedefs.
2012-09-13gdb/testsuite/Jan Kratochvil2-1/+4
* gdb.base/valgrind-infcall.exp: Remove comment about Ubuntu.
2012-09-13*** empty log message ***gdbadmin1-1/+1
2012-09-12 * gdb.cp/converts.cc (main): Comment out the pointer to booleanKeith Seitz2-0/+13
conversion statement.
2012-09-12* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception ifMike Wrighton2-14/+45
there is an error inserting hardware breakpoints and use the error message from the target. * gdb/breakpoint.c (insert_bp_location, insert_breakpoint_locations): Catch this exception and print the error message contained within. Do not print the default hardware error breakpoint message in this case.
2012-09-12 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case whereDoug Evans2-3/+11
cu == NULL.
2012-09-12 * gdb.base/help.exp: Remove testing of individual command help text,Doug Evans2-640/+68
too much of a maintenance burden. Instead, test the functionality of "help" itself.
2012-09-12*** empty log message ***gdbadmin1-1/+1
2012-09-11 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examineDoug Evans2-6/+17
.gdb_index symbol attributes if there are none.
2012-09-11 * gdb.cp/mb-inline.exp: Do "info break" after setting multi-locationDoug Evans2-0/+8
breakpoint.
2012-09-11Name of symbol missing when printing global variable's addressJoel Brobecker5-5/+32
The build_address_symbolic funnction filters out data symbols if their size is set to zero. But the problem is that the COFF symbol table (for instance) does not provide any size information, leaving the size to its default value of zero, thus always triggering the filter. This shows up when trying to print the address of a global variable when debugging a Windows executable, for instance. gdb/ChangeLog: * symtab.h (struct minimal_symbol) [has_size]: New field. (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue. (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros. * printcmd.c (build_address_symbolic): Only filter out zero-sized minimal symbols if the symbol's size is actually known. * minsyms.c (prim_record_minimal_symbol_full): Adjust setting of msymbol's size field. Add comment. * elfread.c (elf_symtab_read, elf_rel_plt_read): Use SET_MSYMBOL_SIZE to set the minimal symbol size.
2012-09-11install_minimal_symbols: use memset instead of setting each field.Joel Brobecker2-7/+7
gdb/ChangeLog: * minsyms.c (install_minimal_symbols): Use memset to fill entire minimal_symbol struct object, rather than setting some of its fields one by one.
2012-09-11 * gdb.dwarf2/fission-base.S: Include gdb.dwarf2/ in dwo_name.Doug Evans5-36/+32
* gdb.dwarf2/fission-reread.S: Ditto. * gdb.dwarf2/fission-base.exp: Remove setting of debug-file-directory. * gdb.dwarf2/fission-reread.exp: Ditto.
2012-09-11http://sourceware.org/ml/gdb-patches/2012-09/msg00013.htmlAndrew Burgess4-1/+12
gdb/ChangeLog: * c-typeprint.c (c_type_print_varspec_prefix): Pass through the passed_a_ptr flag when displaying typedef types. gdb/testsuite/ChangeLog: * gdb.base/ptype.exp: Test ptype on a pointer to a typedef.
2012-09-11*** empty log message ***gdbadmin1-1/+1
2012-09-10crash printing optimized out variant typeJoel Brobecker5-0/+69
Assuming the following declarations: type Discriminants_Record (A : Integer; B : Boolean) is record C : Float; end record; Z : Discriminants_Record := (A => 1, B => False, C => 2.0); If variable Z is not used, and the compiler optimizes it out, GDB would crash as follow: (gdb) print Z /[...]/gdb/valops.c:1121: internal-error: Unexpected lazy value type. This is because the ada-lang module forgot to set the optimized_out flag in the value returned by ada_evaluate_subexp during the value's "fixing" process. Later on, when trying to print the resulting value, GDB finds that the value is still lazily allocated, and thus tries to fetch it. But this is not allowed for not_lval values, hence the internal error. gdb/ChangeLog: * ada-lang.c (coerce_unspec_val_to_type): Make sure that the optimized_out flag is preserved. gdb/testsuite/ChangeLog: * gdb.ada/optim_drec: New testcase.
2012-09-10Fix function prologue analyzer for moxie.Anthony Green2-6/+11
2012-09-10 * boards/fission.exp: Explicitly mark "board" as not remote.Doug Evans2-0/+9
2012-09-10 PR gdb/13483Keith Seitz6-7/+73
* gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ... (BOOL_CONVERSION_BADNESS): ... this. * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise. (rank_one_type): Allow all boolean conversions permitted by the standard. * gdb.cp/converts.cc (A::A): Add ctor. (A::member_): Add member. (enum my_enum): New enumeration. (main): Add calls to foo1_7 with various permitted arguments. * gdb.cp/converts.exp: Add tests for boolean conversions permitted by the standard.
2012-09-10*** empty log message ***gdbadmin1-1/+1
2012-09-09*** empty log message ***gdbadmin1-1/+1
2012-09-082012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu>Yit Phang Khoo5-4/+18
Replace -nw option with $INTERNAL_GDBFLAGS in "xgdb" tests to avoid spurious results due to ~/.gdbinit. * gdb.gdb/complaint.exp (setup_test): Replace -nw option with $INTERNAL_GDBFLAGS in run command. * gdb.gdb/observer.exp (setup_test): Ditto. * gdb.gdb/selftest.exp (test_with_self): Ditto. * gdb.gdb/xfullpath.exp (setup_test): Ditto.
2012-09-08*** empty log message ***gdbadmin1-1/+1
2012-09-07*** empty log message ***gdbadmin1-1/+1
2012-09-06 * boards/fission.exp: New file.Doug Evans2-0/+32
2012-09-06 * python/py-newobjfileevent.c (create_new_objfile_event_object):Tom Tromey2-3/+8
Don't decref py_objfile.
2012-09-06(test_subscript_regression): Remove no longer necessary globals,Doug Evans1-4/+0
from previous patch.
2012-09-06 * gdb.python/py-value.exp: Use clean_restart.Doug Evans2-8/+6
2012-09-06*** empty log message ***gdbadmin1-1/+1
2012-09-05 * gdb.base/info-macros.c: Fix whitespace.Doug Evans2-5/+7
2012-09-05*** empty log message ***gdbadmin1-1/+1
2012-09-04 * linux-crisv32-low.c: Fix compile errors.Hans-Peter Nilsson2-12/+15
2012-09-04gdb/gdbserver/Yao Qi2-8/+7
* tracepoint.c (cmd_qtsv): Adjust debug message. Don't check CUR_TPOINT.