aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-05-03 * linux-low.c (linux_kill, linux_detach): Adjust.Pedro Alves6-54/+260
(status_pending_p_callback): Remove redundant statement. Check for !TARGET_WAITIKIND_IGNORE, instead of TARGET_WAITKIND_STOPPED. (handle_tracepoints): Make sure LWP is locked. Adjust. (linux_wait_for_event_1): Adjust. (linux_cancel_breakpoints): New. (unsuspend_one_lwp): New. (unsuspend_all_lwps): New. (linux_wait_1): If finishing a step-over, unsuspend all lwps. (send_sigstop_callback): Change return type to int, add new `except' parameter and handle it. (suspend_and_send_sigstop_callback): New. (stop_all_lwps): Add new `suspend' and `expect' parameters, and pass them down. If SUSPEND, also increment the lwp's suspend count. (linux_resume_one_lwp): Add notice about resuming a suspended LWP. (need_step_over_p): Don't consider suspended LWPs. (start_step_over): Adjust. (proceed_one_lwp): Change return type to int, add new `except' parameter and handle it. (unsuspend_and_proceed_one_lwp): New. (proceed_all_lwps): Use find_inferior instead of for_each_inferior. (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them also decrement the suspend count of LWPs. Pass `except' down, instead of hacking its suspend count. (linux_pause_all): Add `freeze' parameter. Adjust. (linux_unpause_all): New. (linux_target_ops): Install linux_unpause_all. * server.c (handle_status): Adjust. * target.h (struct target_ops): New fields `unpause_all' and `cancel_breakpoints'. Add new parameter to `pause_all'. (pause_all): Add new `freeze' parameter. (unpause_all): New. (cancel_breakpoints): New. * tracepoint.c (clear_installed_tracepoints): Pause threads, and cancel breakpoints. (cmd_qtstart): Pause threads. (stop_tracing): Pause threads, and cancel breakpoints. * win32-low.c (win32_target_ops): Adjust.
2010-05-03 * linux-low.c (linux_wait_for_event_1): Move passing the signal toPedro Alves2-49/+54
the inferior right away from here... (linux_wait_1): ... to here, and adjust to check the thread's last_resume_kind instead of the lwp's step or stop_expected flags.
2010-05-03 * remote.c (remote_notice_signals): New.Pedro Alves2-0/+21
(remote_start_remote): In non-stop mode, update the remote end on which signals it can silently pass. (init_remote_ops): Install remote_notice_signals.
2010-05-03daily updateAlan Modra1-1/+1
2010-05-03*** empty log message ***gdbadmin1-1/+1
2010-05-02gdb/Jan Kratochvil15-98/+90
* cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... * command.h (error_no_arg): ... here. Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * defs.h (NORETURN, ATTR_NORETURN): Remove. (perror_with_name, verror, error, error_stream, vfatal, fatal) (internal_verror, internal_error, nomem): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) (throw_vfatal, throw_error): Remove NORETURN. (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * exceptions.h (throw_exception, throw_verror, throw_vfatal) (throw_error, deprecated_throw_reason): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN for prototype, for the definition only remove NORETURN. * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to ATTRIBUTE_NORETURN. * target.c (tcomplain): Likewise. * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) (internal_error, perror_with_name, nomem): Remove NORETURN. * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to ATTRIBUTE_NORETURN. gdb/doc/ * gdbint.texinfo (Host Definition): Remove items NORETURN and ATTR_NORETURN.
2010-05-02gdb/Jan Kratochvil22-73/+103
* ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * complaints.h (complaint, internal_complaint): Likewise. * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. (ATTR_FORMAT): Remove. (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) (xsnprintf, verror, error, vfatal, fatal, internal_verror) (internal_error, internal_vwarning, internal_warning, warning) (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. * disasm.c (fprintf_disasm): Likewise. * exceptions.c (throw_it): Likewise. * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) (throw_error): Likewise. * language.h (type_error, range_error): Likewise. * linespec.c (cplusplus_error): Likewise. * mi/mi-interp.c (mi_interp_query_hook): Likewise. * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. * monitor.c (monitor_debug): Likewise. * parser-defs.h (parser_fprintf): Likewise. * serial.h (serial_printf): Likewise. * tui/tui-hooks.c (tui_query_hook): Likewise. * ui-out.c (default_field_fmt, default_message, uo_field_fmt) (uo_message): Likewise. * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): Likewise. * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2010-05-02 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)Pedro Alves2-81/+55
(cli_table_header, cli_begin, cli_end, cli_field_int) (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): Delete forward declarations. (cli_ui_out_impl): Move below the callbacks. (_initialize_cli_out): Delete.
2010-05-02 gdb/Pedro Alves4-40/+48
* README: Use consistent `GDB' and `GDBserver' spellings. gdb/gdbserver/ * README: Use consistent `GDB' and `GDBserver' spellings.
2010-05-02gdb/Jan Kratochvil2-2/+4
* cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2010-05-02gdb/testsuite/Jan Kratochvil4-40/+27
* gdb.base/break-interp.exp: Remove $exec.debug safety removal. * gdb.base/sepdebug.exp: Remove .debug subdirectory handling. New variable different_dir. Move debugfile into a full directory pathname under DIFFERENT_DIR. * lib/gdb.exp (separate_debug_filename): Remove. (gdb_gnu_strip_debug): No longer call separate_debug_filename. Remove variable debug_dir and mkdir of it. Update function comments.
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-02daily updateAlan Modra1-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-01daily updateAlan Modra1-1/+1
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-30Add a missing `"'.H.J. Lu2-1/+7
2010-04-30 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/dlltool.exp: Add a missing `"'.
2010-04-30Remove relocation against discarded sections for relocatable link.H.J. Lu11-18/+119
bfd/ 2010-04-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11542 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New. * elf32-i386.c (elf_i386_relocate_section): Use it. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. ld/testsuite/ 2010-04-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11542 * ld-elf/discard.ld: New. * ld-elf/discard1.d: Likewise. * ld-elf/discard1.s: Likewise. * ld-elf/discard2.d: Likewise. * ld-elf/discard2.s: Likewise. * ld-elf/discard3.d: Likewise.
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-30bfd/Tristan Gingold4-11/+92
2010-04-30 Tristan Gingold <gingold@adacore.com> * vms-lib.c (vms_read_block): New function. (vms_traverse_index): Use vms_read_block. Handle long key names. include/vms/ 2010-04-30 Tristan Gingold <gingold@adacore.com> * lbr.h (struct vms_kbn): New structure.
2010-04-30bfd/Tristan Gingold5-120/+460
2010-04-30 Tristan Gingold <gingold@adacore.com> * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms and syms removed. (struct carsym_mem): New structure. (vms_add_index): New function. (vms_add_indexes_from_list): New function. (vms_traverse_index): Parameter carsym changed to carsym_mem. Code adjusted to handle elfidx. (vms_lib_read_index): Adjusted for vms_traverse_index changes. Parameter NBREL is now a pointer. (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64 archives. (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata. (_bfd_vms_lib_find_symbol): Ditto. (vms_lib_bopen): Fix two typos: return FALSE in case of error, check MHD id. * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for changes of _bfd_vms_lib_find_symbol. include/vms 2010-04-30 Tristan Gingold <gingold@adacore.com> * lbr.h (LBR__C_TYP_ISHSTB): Added. (LHD_SANEID4): Renamed to ... (LHD_SANEID6): ... this. (LBR_MAJORID, LBR_ELFMAJORID): New macros. (struct vms_rfa): New structure. (struct vms_idxdef): Renamed to ... (struct vms_idx): ... this. (struct vms_idxdef2): Renamed to ... (struct vms_elfidx): ... this. (ELFIDX__WEAK, ELFIDX__GROUP, ELFIDX__LISTRFA, ELFIDX__SYMESC): New macros. (struct vms_lhs, struct vms_lns): New structures. (struct vms_mhd): Add missing fields. (MHD__C_MHDLEN): New macro.
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-30daily updateAlan Modra1-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 * write.c (fixup_segment): Do not assume we know the section aNick Clifton9-32/+110
defined weak symbol is in. * config/tc-arm.c (relax_adr, relax_branch, md_apply_fix): Treat weak symbols as not known to be in the same section, even if they are defined. * gas/arm/weakdef-1.s: New. * gas/arm/weakdef-1.d: New. * gas/arm/weakdef-2.s: New. * gas/arm/weakdef-2.d: New. * gas/arm/weakdef-2.l: New.
2010-04-29*** empty log message ***gdbadmin1-1/+1
2010-04-29daily updateAlan Modra1-1/+1
2010-04-282010-04-27 Kai Tietz <kai.tietz@onevision.com>Kai Tietz3-14/+27
* pe-dll.c (_nm_-symbols): Use always underscored variant for symbols. (__imp_-symbols): Likewise. (___imp_-symbols): Likewise. * NEWS: Mention ABI change for x64 PE-COFF. PS: Sorry, missed this part of approved patch.
2010-04-282010-04-28 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-4/+5
* config.bfd: Correct accidential reverted patch about vax*-*-*vms*.
2010-04-28*** empty log message ***gdbadmin1-1/+1
2010-04-28daily updateAlan Modra1-1/+1
2010-04-27gas:Joseph Myers9-26/+960
* config/tc-tic6x.h (tic6x_label_list): New. (tic6x_segment_info_type): Keep a list of labels and a current frag instead of a boolean for whether labels seen and a count of instructions. (tic6x_frag_info, TC_FRAG_TYPE, TC_FRAG_INIT, tic6x_frag_init, md_do_align, tic6x_do_align, md_end, tic6x_end): New. * config/tc-tic6x.c (tic6x_frob_label): Put label on list. (tic6x_cleanup): Correct comment. (tic6x_free_label_list): New. (tic6x_cons_align): Free label list and update for tic6x_segment_info_type changes. (tic6x_do_align): New. (md_assemble): Handle list of labels and saved frag for execute packet. Create machine-dependent frag for new execute packet and adjust labels accordingly. (tic6x_adjust_section, tic6x_frag_init, tic6x_end): New. (md_convert_frag, md_estimate_size_before_relax): Update comments. gas/testsuite: * gas/tic6x/align-1-be.d, gas/tic6x/align-1.d, gas/tic6x/align-1.s, gas/tic6x/align-2.d, gas/tic6x/align-2.s: New.
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.