aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-05-02 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.Pedro Alves6-70/+135
(linux_kill): Stop all lwps here. Don't delete the main lwp here. (linux_detach_one_lwp): Assume the lwp is stopped. (any_thread_of): Delete. (linux_detach): Stop all lwps here. Don't blindly delete all breakpoints. (delete_lwp_callback): New. (linux_mourn): Delete all lwps of the process that is gone. (linux_wait_1): Don't delete the last lwp of the process here. * mem-break.h (mark_breakpoints_out): Declare. * mem-break.c (mark_breakpoints_out): New. (free_all_breakpoints): Use it. * server.c (handle_target_event): If the process is gone, mark breakpoints out. * thread-db.c (struct thread_db) <create_bp>: New field. (thread_db_enable_reporting): Fix prototype. Store a thread event breakpoint reference in the thread_db struct. (thread_db_load_search): Clear the thread_db object. (try_thread_db_load_1): Ditto. (switch_to_process): New. (disable_thread_event_reporting): Use it. (remove_thread_event_breakpoints): New. (thread_db_detach, thread_db_mourn): Use it.
2010-05-02*** empty log message ***gdbadmin1-1/+1
2010-05-01 * infrun.c (prepare_for_detach): In non-stop, context switch toPedro Alves2-0/+13
the thread that got the event before handling the event.
2010-05-01 * linux-low.c (linux_enable_event_reporting): New.Pedro Alves2-3/+17
(linux_wait_for_event_1, handle_extended_wait): Use it.
2010-05-01*** empty log message ***gdbadmin1-1/+1
2010-04-30 * linux-low.c (linux_kill_one_lwp, linux_kill)Pedro Alves2-14/+57
(linux_detach_one_lwp): Adjust to send_sigstop interface change. (send_sigstop): Take an lwp_info as parameter instead. Queue a SIGSTOP even if the LWP is stopped. (send_sigstop_callback): New. (stop_all_lwps): Use send_sigstop_callback instead. (linux_resume_one_thread): Adjust. (proceed_one_lwp): Still proceed an LWP that the client has requested to stop, if we haven't reported it as stopped yet. Make sure that LWPs the client want stopped, have a pending SIGSTOP.
2010-04-30 * symtab.c (symbol_set_names): Fix typo.Tom Tromey2-1/+5
2010-04-30 * python/py-param.c (parm_constants): Avoid ARI warningPierre Muller2-2/+9
by adding ARI comment. (parmpy_init): Likewise.
2010-04-30 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCHPierre Muller2-0/+14
and created type for re-use.
2010-04-30 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.Pierre Muller2-0/+6
2010-04-30*** empty log message ***gdbadmin1-1/+1
2010-04-29 * ser-base.h (reschedule): Delete prototype.Doug Evans3-2/+6
* ser-base.c (reschedule): Make static.
2010-04-29*** empty log message ***Matthew Gretton-Dann2-3/+38
2010-04-29 PR gdb/11557Pedro Alves7-6/+161
gdb/ * regcache.c (registers_changed): Rename to ... (registers_changed_ptid): ... this, and only delete register cache entries matching the ptid filter argument. (registers_changed): Reimplement on top of registers_changed_ptid. * regcache.h (registers_changed_ptid): Declare. * target.c (target_resume): Flush register caches. gdb/testsuite/ * gdb.mi/mi-ns-stale-regcache.exp, gdb.mi/ns-stale-regcache.c: New files.
2010-04-29Fix typo in ChangeLog name (non-UTF8 character).Joel Brobecker1-1/+1
Seems to have been inserted accidently.
2010-04-292010-04-29 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon11-18/+974
Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. (SUBDIR_PYTHON_SRCS): Likewise. (py-parameter.o): New rule. * python/py-parameter.c: New file. * python/python-internal.h (gdbpy_initialize_parameter) (gdbpy_parameter, gdbpy_parameter_value) (gdbpy_parse_command_name): Declare. * python/py-cmd.c (parse_command_name): Rename to gdbpy_parse_command_name. (gdbpy_parse_command_name): Accept a starting list parameter and use over cmdlist. (cmdpy_init): Use gdbpy_parse_command_name. * python/python.c (parameter_to_python): Rename to gdbpy_parameter_to_python. Accept enum var_types and value. (gdbpy_parameter): Use gdbpy_parameter_value. (_initialize_python): Call gdbpy_initialize_parameters. 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-param.exp: New File. 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> Tom Tromey <tromey@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.texinfo (Parameters In Python): New Node.
2010-04-29 * gdb/MAINTAINERS: Add myself for write after approval privileges.Matthew Gretton-Dann2-0/+5
2010-04-29D language support.Joel Brobecker17-9/+504
gdb/ChangeLog: D language support. * Makefile.in (SFILES): Add d-lang.c d-valprint.c. (COMMON_OBS): Add d-lang.o d-valprint.o. (HFILES_NO_SRCDIR): Add d-lang.h. * NEWS: Mention D language support. * c-lang.c (c_emit_char, exp_descriptor_c): Make public. * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. * d-lang.c: New file. * d-lang.h: New file. * d-valprint.c: New file. * defs.h (enum language): Add language_d. * dwarf2read.c (set_cu_language): Add DW_LANG_D. * language.c (binop_result_type, integral_type, character_type) (string_type, boolean_type, structured_type): Add language_d. * symfile.c (init_filename_language_table): Add language_d. * symtab.c: Include d-lang.h. (symbol_init_language_specific, symbol_find_demangled_name) (symbol_natural_name, lookup_symbol_in_language) (symbol_demangled_name, symbol_matches_domain): Add language_d. gdb/doc/ChangeLog: * gdb.texinfo: (Summary) Add mention about D language support. (Filenames): Add D suffixes. (D): New node. gdb/testsuite/ChangeLog: * gdb.base/default.exp: Fix "set language" test.
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.