aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-04-29*** empty log message ***gdbadmin1-1/+1
2010-04-28*** empty log message ***gdbadmin1-1/+1
2010-04-27Fix author list for one of the patches.Joel Brobecker1-1/+2
I was the committer, not the author.
2010-04-27Expand description of solib-svr4.c:solib_svr4_r_mapJoel Brobecker2-1/+6
2010-04-27 Joel Brobecker <brobecker@adacore.com> * solib-svr4.c (solib_svr4_r_map): Expand function description.
2010-04-27Associate .dg files to AdaJoel Brobecker2-0/+6
The .dg files are files containing the user's code, after the GNAT expander was applied. The expansion replaces some of the complex features by simpler pseudo-Ada code and the user can ask to see and debug that code using the -gnatDG option... For instance, given the following code where Circle is a tagged type (aka as a class type in C++): procedure Foo is My_Shape : Circle := (X => 1, Y => 2, R => 3); X : Integer; begin X := Position_X (My_Shape); end Foo; The expansion results in: procedure foo is my_shape : pck__circle := ( _parent => ( _tag => pck__circleP, x => 1, y => 2), r => 3); x : integer; begin x := pck__position_x (my_shape); return; end foo; 2010-04-27 Joel Brobecker <brobecker@adacore.com> * symfile.c (init_filename_language_table): Register .dg files with language_ada.
2010-04-27Document special use of target_type field in Ada structs.Joel Brobecker2-0/+8
This is a comment that I wrote not too long ago, I believe, as part of a submission process, and somehow did not get to commit. It explains how the TYPE_TARGET_TYPE is used by Ada in the case of dynamic records/ unions. 2010-04-24 Joel Brobecker <brobecker@adacore.com> * gdbtypes.h (struct main_type): Expand comment about target_type field.
2010-04-27Check library name rather than member name when rereading symbols.Joel Brobecker2-5/+9
On Darwin, we have lots of complaints being emitted when restarting a program: (gdb) start `a-except.o' has disappeared; keeping its symbols. `unwind-dw2.o' has disappeared; keeping its symbols. `s-except.o' has disappeared; keeping its symbols. `s-traceb.o' has disappeared; keeping its symbols. These object files are part of the GNAT runtime, and were never available. The warning comes from the fact that we're checking whether the .o files in the GNAT shared runtime have changed whereas we should be checking whether the GNAT shared library itself has changed. This patch implements this. Although it is really only useful on a platform such as Darwin (debug info stored in .o files), we believe that this is the right thing to do in general. This change should be a noop for all the other platforms in any case. gdb/ChangeLog (from Tristan Gingold & Pedro Alves): * symfile.c (reread_symbols): Also search for file in libraries. Update comment. Tested on x86_64-darwin and x86_64-linux.
2010-04-27Add support for x86-lynxos cross debugger (as bareboard x86).Joel Brobecker2-1/+5
This is a fairly simple patch that we have had for a while. LynxOS has relatively few features, from a GDB perspective, and we've been using a bareboard x86 debugger as our LynxOS cross-debugger. So here is a patch that make x86-lynxos an alias of bareboard x86. On the other end of things, I'm still working on gdbserver support for LynxOS - I'm just lacking the time to make significant progress. But this is in the works (in the meantime, we're using gdbserver from gdb-6.8 which is derived work from LinuxWorks' patch). I wasn't sure whether this would be interesting or not for the FSF tree, but since it's simple and unintrusive, I am suggesting it now... Any objection? I wasn't sure whether it warranted a NEWS entry either, since it doesn't really add a new port, just an alias. I suggest the NEWS entry when I'm finally done with the gdbserver port. gdb/ChangeLog: * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets in terms of configuration.
2010-04-27gdb/Jan Kratochvil3-5/+17
* objfiles.c: Include solist.h. (free_all_objfiles): New variable so. Check stale solist objfiles. * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles and no_shared_libraries.
2010-04-27ARI warning fix.Joel Brobecker2-1/+7
* python/py-auto-load.c (source_section_scripts): Remove trailing new-line in i18n string.
2010-04-27*** empty log message ***gdbadmin1-1/+1
2010-04-26 * server.c (handle_general_set): Make static.Doug Evans2-1/+4
2010-04-26 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.Doug Evans2-0/+16
2010-04-26 PR breakpoints/11531.Pierre Muller3-0/+110
* gdb.base/gdb11531.c: New file. * gdb.base/gdb11531.exp: New file.
2010-04-26gdbTom Tromey4-29/+67
* cli/cli-decode.c (complete_on_cmdlist): Make two passes over the command list. gdb/testsuite * gdb.base/completion.exp: Add tests for completion and deprecated commands.
2010-04-26 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.Doug Evans2-18/+22
Print received char after testing for error/eof instead of before. (input_interrupt): Tweak comment.
2010-04-26gdb/testsuite/Jan Kratochvil2-3/+8
* gdb.pascal/gdb11492.exp (print integer_array, print /d char_array) (print /x char_array): Escape curly brackets.
2010-04-26 *Fix ChangeLog entryPierre Muller1-2/+2
2010-04-26 Removal of config/i386/nm-i386sol2.h native configuration file.Pierre Muller6-26/+10
* config/i386/nm-i386sol2.h: Remove file. * config/i386/i386sol2.mh: Remove NAT_FILE definition. * config/i386/sol2-64.mh: Idem. * config/djgpp/fnchange.lst: Idem. * Makefile.in (HFILES_NO_SRCDIR): Remove reference to that file.
2010-04-26 PR breakpoints/11531.Pierre Muller5-37/+13
* config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove macro definition and related comment. * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. (resume): Remove code and comment related to this macro. doc ChangeLog entry: * gdbint.texinfo (CANNOT_STEP_HW_WATCHPOINTS): Remove explanation of macro deleted from GDB code.
2010-04-26gdb/Jan Kratochvil2-2/+7
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. Fix whitespace.
2010-04-26*** empty log message ***gdbadmin1-1/+1
2010-04-25*** empty log message ***gdbadmin1-1/+1
2010-04-24 * defs.h: Adjust comment.Pedro Alves16-33/+487
* filesystem.h, filesystem.c: New files. * Makefile.in (SFILES): Add filesystem.c. (COMMON_OBS): Add filesystem.o. * solib.c (solib_find): Handle DOS-based filesystems. Handle different target and host path flavours. * arm-symbian-tdep.c (arm_symbian_init_abi): Set has_dos_based_file_system on the gdbarch. * arm-wince-tdep.c (arm_wince_init_abi): Ditto. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. * i386-tdep.c (i386_go32_init_abi): Ditto. * gdbarch.sh (has_dos_based_file_system): New. * gdbarch.h, gdbarch.c: Regenerate. * NEWS: Mention improved support for remote targets with DOS-based filesystems. Mention new `set/show target-file-system-kind' commands. gdb/doc/ * gdb.texinfo (Commands to specify files): Describe what how GDB looks up DOS-based filesystem paths on the system root. Document the new `set/show target-file-system-kind' commands.
2010-04-24 * server.c (start_inferior): Print inferior argv if --debug.Doug Evans2-0/+12
2010-04-24*** empty log message ***gdbadmin1-1/+1
2010-04-232010-04-23 Stan Shebs <stan@codesourcery.com>Stan Shebs5-165/+203
* ax.h (struct agent_expr): Merge in agent_reqs fields, add some comments. (struct agent_reqs): Remove. (ax_reg_mask): Declare. * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. (free_agent_expr): Free reg_mask. (ax_print): Add scope and register mask info. (ax_reqs): Remove agent_reqs argument, use agent expression fields, and move part of register mask computation to... (ax_reg_mask): New function. * ax-gdb.c (gen_trace_static_fields): Call it. (gen_traced_pop): Ditto. (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. (gen_trace_for_var): Pass gdbarch to new_agent_expr. (gen_trace_for_expr): Ditto, and clear optimized_out flag. (gen_eval_for_expr): Ditto, and require an rvalue. (agent_command): Call ax_reqs. (agent_eval_command): Ditto. * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. (validate_action_line): Ditto. (collect_symbol): Ditto. (encode_actions_1): Ditto.
2010-04-23gdb/Jan Kratochvil5-9/+93
Fix deadlock on looped list of loaded shared objects. * solib-svr4.c (LM_PREV): New function. (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. (svr4_current_sos): Check for correct l_prev. New variables prev_lm and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. gdb/testsuite/ Fix deadlock on looped list of loaded shared objects. * gdb.base/solib-corrupted.exp: New.
2010-04-23 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not usingDoug Evans6-9/+76
python. * configure: Regenerate. * main.c: #include "python/python.h". (captured_main): Defer loading auto-loaded scripts until after local_gdbinit has been sourced. * python/py-auto-load.c (gdbpy_global_auto_load): New global. (load_auto_scripts_for_objfile): New function. (auto_load_new_objfile): Call it. * python/python.h (gdbpy_global_auto_load): Declare. (load_auto_scripts_for_objfile): Declare.
2010-04-23 Add support for auto-loading scripts from .debug_gdb_scripts section.Doug Evans3-0/+36
* NEWS: Add entry for .debug_gdb_scripts. * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. (py-auto-load.o): New rule. * cli/cli-cmds.c (find_and_open_script): Make externally visible. * cli/cli-cmds.h (find_and_open_script): Update prototype. * python/py-auto-load.c: New file. * python/python-internal.h: #include <stdio.h>. (set_python_list, show_python_list): Declare. (gdbpy_initialize_auto_load): Declare. (source_python_script_for_objfile): Declare. * python/python.c: Remove #include of observer.h. (gdbpy_auto_load): Moved to py-auto-load.c. (GDBPY_AUTO_FILENAME): Ditto. (gdbpy_new_objfile): Delete. (source_python_script_for_objfile): New function. (set_python_list, show_python_list): Make externally visible. (_initialize_python): Move "auto-load" command to py-auto-load.c and observer_attach_new_objfile to py-auto-load.c. doc/ * gdb.texinfo (Python): Move Auto-loading section here ... (Python API): from here. (Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts. (Maintenance Commands): Add docs for "maint print section-scripts". testsuite/ * gdb.python/py-section-script.c: New file. * gdb.python/py-section-script.exp: New file. * gdb.python/py-section-script.py: New file.
2010-04-23 Add support for auto-loading scripts from .debug_gdb_scripts section.Doug Evans11-131/+846
* NEWS: Add entry for .debug_gdb_scripts. * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. (py-auto-load.o): New rule. * cli/cli-cmds.c (find_and_open_script): Make externally visible. * cli/cli-cmds.h (find_and_open_script): Update prototype. * python/py-auto-load.c: New file. * python/python-internal.h: #include <stdio.h>. (set_python_list, show_python_list): Declare. (gdbpy_initialize_auto_load): Declare. (source_python_script_for_objfile): Declare. * python/python.c: Remove #include of observer.h. (gdbpy_auto_load): Moved to py-auto-load.c. (GDBPY_AUTO_FILENAME): Ditto. (gdbpy_new_objfile): Delete. (source_python_script_for_objfile): New function. (set_python_list, show_python_list): Make externally visible. (_initialize_python): Move "auto-load" command to py-auto-load.c and observer_attach_new_objfile to py-auto-load.c. doc/ * gdb.texinfo (Python): Move Auto-loading section here ... (Python API): from here. (Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts. (Maintenance Commands): Add docs for "maint print section-scripts". testsuite/ * gdb.python/py-section-script.c: New file. * gdb.python/py-section-script.exp: New file. * gdb.python/py-section-script.py: New file.
2010-04-23 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)Jerome Guitton3-2/+183
(OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): New constants. (alpha_heuristic_analyze_probing_loop): New function. (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect and handle cases when a stack probe loop is generated. * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. (alpha_mdebug_max_frame_size_exceeded): New function. (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): Return 0 when the maximum debuggable frame size has been exceeded.
2010-04-23Fix ARI warning.Joel Brobecker2-1/+6
* ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2010-04-23PR 10179Chris Moller11-4/+131
* symtab.c (rbreak_command): Added code to include a filename specification in the rbreak argument. * NEWS: Added a brief description of filename-qualified rbreak. * gdb.base/Makefile.in (EXECUTABLES): Added pr10179. * gdb.base/pr10179-a.c: * gdb.base/pr10179-b.c: * gdb.base/pr10179.exp: New files. * gdb.texinfo (Setting Breakpoints): Added description of filename-qualified rbreak. * refcard.tex (Breakpoints and Watchpoints): Added brief description of filename-qualified rbreak.
2010-04-23*** empty log message ***gdbadmin1-1/+1
2010-04-22gdb/Jan Kratochvil15-114/+355
Fix crashes on dangling display expressions. * ada-lang.c (ada_operator_check): New function. (ada_exp_descriptor): Fill-in the field operator_check. * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. * jv-lang.c (exp_descriptor_java): Likewise. * m2-lang.c (exp_descriptor_modula2): Likewise. * scm-lang.c (exp_descriptor_scm): Likewise. * parse.c (exp_descriptor_standard): Likewise. (operator_check_standard): New function. (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. * parser-defs.h (struct exp_descriptor): New field operator_check. (operator_check_standard, exp_uses_objfile): New declarations. * printcmd.c: Remove the inclusion of solib.h. (display_uses_solib_p): Remove the function. (clear_dangling_display_expressions): Call lookup_objfile_from_block and exp_uses_objfile instead of display_uses_solib_p. * solist.h (struct so_list) <objfile>: New comment. * symtab.c (lookup_objfile_from_block): Remove the static qualifier. * symtab.h (lookup_objfile_from_block): New declaration. (struct general_symbol_info) <obj_section>: Extend the comment. gdb/testsuite/ Fix crashes on dangling display expressions. * gdb.base/solib-display.exp: Call gdb_gnu_strip_debug if LIBSEPDEBUG is SEP. (lib_flags): Remove the "debug" keyword. (libsepdebug): New variable for iterating new loop. (save_pf_prefix): New variable wrapping the loop. (sep_lib_flags): New variable derived from LIB_FLAGS. Use it. * lib/gdb.exp (gdb_gnu_strip_debug): Document the return code.
2010-04-22 * gdb.threads/watchthreads.exp: Change to obtain consistent output.Pierre Muller2-2/+6
2010-04-222010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>Thiago Jung Bauermann2-78/+610
Thiago Jung Bauermann <bauerman@br.ibm.com> * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): Define, in case <ptrace.h> doesn't provide it. (booke_debug_info): New variable. (max_slots_number): Ditto. (hw_break_tuple): New struct. (thread_points): Ditto. (ppc_threads): New variable. (PPC_DEBUG_CURRENT_VERSION): New define. (have_ptrace_new_debug_booke): New function. (ppc_linux_check_watch_resources): Renamed to ... (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. (booke_cmp_hw_point): New function. (booke_find_thread_points_by_tid): Ditto. (booke_insert_point): Ditto. (booke_remove_point): Ditto. (ppc_linux_insert_hw_breakpoint): Ditto. (ppc_linux_remove_hw_breakpoint): Ditto. (get_trigger_type): Ditto. (ppc_linux_insert_watchpoint): Handle BookE processors. (ppc_linux_remove_watchpoint): Ditto. (ppc_linux_new_thread): Ditto. (ppc_linux_thread_exit): New function.. (ppc_linux_stopped_data_address): Handle BookE processors. (ppc_linux_watchpoint_addr_within_range): Ditto. (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and to_remove_hw_breakpoint fields of the target operations struct. Add observe for the thread_exit event.
2010-04-22Reformat.H.J. Lu1-2/+2
2010-04-22Remove regmap from i386-linux-nat.c.H.J. Lu4-31/+31
2010-04-22 H.J. Lu <hongjiu.lu@intel.com> * i386-linux-nat.c (regmap): Removed. (fetch_register): Replace regmap with i386_linux_gregset_reg_offset. (store_register): Likewise. (supply_gregset): Likewise. (fill_gregset): Likewise. * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it global. * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2010-04-22* cp-valprint.c (cp_print_value_fields): Replaced obstack_base()Chris Moller2-10/+26
method of popping recursion-detection stack with a method based on obstack_object_size(). (Similar to the PR9167 patch below, but for the static array obstack rather than the static member obstack.)
2010-04-22Remove amd64_linux_gregset64_reg_offset.H.J. Lu4-31/+17
2010-04-22 H.J. Lu <hongjiu.lu@intel.com> * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. (_initialize_amd64_linux_nat): Replace amd64_linux_gregset64_reg_offset with amd64_linux_gregset_reg_offset. * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it global. * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2010-04-22gdb/doc/Jan Kratochvil2-39/+60
* gdb.texinfo (Data): New @menu reference to Pretty Printing. (Python API): Change the reference to Pretty Printing API. (Pretty Printing): Move the user part under the Data node. Reformat the sample output to 72 columns. Create a new reference to Pretty Printing API. Rename the API part ... (Pretty Printing API): To a new node name. (Selecting Pretty-Printers, Progspaces In Python, Objfiles In Python) (GDB/MI Variable Objects): Change references to Pretty Printing API.
2010-04-22 PR stabs/11479.Pierre Muller3-0/+128
* gdb.stabs/gdb11479.exp: New file. * gdb.stabs/gdb11479.c: New file.
2010-04-22 * Remove unwanted space in set_length_in_type_chain parameterdeclarationPierre Muller1-1/+1
2010-04-22 PR stabs/11479.Pierre Muller2-0/+45
* stabsread.c (set_length_in_type_chain): New function. (read_struct_type): Call set_length_in_type_chain function. (read_enum_type): Idem.
2010-04-222010-04-21 Stan Shebs <stan@codesourcery.com>Stan Shebs2-1/+6
Nathan Sidwell <nathan@codesourcery.com> * tracepoint.c (trace_save): Open in binary mode.
2010-04-222010-04-21 Stan Shebs <stan@codesourcery.com>Stan Shebs2-13/+17
* gdb.texinfo (Tracepoint Actions): Mention synonymy of actions and commands. (Listing Tracepoints): Update to reflect current behavior.
2010-04-22*** empty log message ***gdbadmin1-1/+1
2010-04-21gdb ChangeLogPierre Muller9-9/+104
* gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 fields. * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and builtin_char32 fields. * printcmd.c (decode_format): Set char size to '\0' for strings unless explicit size is given. (print_formatted): Correct calculation of NEXT_ADDRESS for 16 or 32 bit strings. (do_examine): Do not force byte size for strings. Use builtin_char16 and builtin_char32 types to display 16 or 32 bit-wide strings. (x_command): Set LAST_SIZE to 'b' for string type. gdb/doc ChangeLog * gdb.texinfo (Examining memory): Update for change in string display with explicit size. gdb/testsuite ChangeLog * gdb.base/charset.c (Strin16, String32): New variables. * gdb.base/charset.exp (gdb_test): Test correct display of 16 or 32 bit strings.