aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-10-28daily updateAlan Modra1-1/+1
2008-10-28*** empty log message ***gdbadmin1-1/+1
2008-10-27 * inflow.c (kill_command): If the target claims there is stillPedro Alves2-7/+17
execution, don't clear the thread list.
2008-10-27 * cp-name-parser.y: Include defs.h instead of config.h.Pedro Alves2-4/+22
(parse_escape): Rename to ... (cp_parse_escape): ... this. (yylex): Update. (xfree) [TEST_CPNAMES]: New.
2008-10-27merge from gccDJ Delorie6-16/+38
2008-10-27 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead ofPedro Alves2-3/+8
2.13 and configure.in.
2008-10-27 * target.h (struct target_ops) <to_supports_multi_process>: NewPedro Alves5-2/+46
field. (target_supports_multi_process): New define. * target.c (update_current_target): Inherit and de_fault to_supports_multi_process. * infcmd.c (attach_command): Allow attaching to multiple processes if the target supports it. (detach_command): If the target claims there is still execution, don't clear the thread list. * remote.c (remote_supports_multi_process): New. (init_remote_ops): Register remote_supports_multi_process.
2008-10-27 * Makefile.in (.y.c, .l.c): sed free to xfree.Pedro Alves2-0/+8
2008-10-27gdb/Pedro Alves4-14/+17
* Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to $(TM_CLIBS). (CDEPS): Remove reference to $(TM_CDEPS). gdb/doc/ * gdbint.texinfo (Adding a New Target): Don't mention TDEPFILES, .mt files, TM_CLIBS or TM_CDEPS. (x86 Watchpoints): Don't mention TDEPFILES.
2008-10-272008-10-26 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+21
* infrun.c (handle_inferior_event): Handle dynamic symbol resolution in reverse.
2008-10-27*** empty log message ***gdbadmin1-1/+1
2008-10-27daily updateAlan Modra1-1/+1
2008-10-26*** empty log message ***gdbadmin1-1/+1
2008-10-26daily updateAlan Modra1-1/+1
2008-10-25 * infrun.c: Minor comment reformatting.Joel Brobecker2-2/+5
2008-10-25ChangeLog (2008-03-13): Fix a function name typo.Jan Kratochvil1-2/+2
2008-10-25 PR 6945Nick Clifton2-1/+13
* ldlang.c (lang_size_sections_1): Do not update the VMAs of output sections when performing a relocatable link on COFF objects.
2008-10-25 * ada-exp.y (write_object_renaming): Use malloc instead ofPedro Alves3-2/+8
xmalloc. * p-exp.y (pop_current_type): Use free instead of xfree.
2008-10-25daily updateAlan Modra1-1/+1
2008-10-25*** empty log message ***gdbadmin1-1/+1
2008-10-24 * fork-child.c (startup_inferior): Only set threads not-executingPedro Alves2-8/+27
after getting all the pending execs. On TARGET_WAITKIND_IGNORE, keep waiting, don't resume. On all other cases but TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to the event ptid.
2008-10-24 * Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.Daniel Jacobowitz3-2/+7
* Makefile.in: Regenerated.
2008-10-242008-10-24 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-22/+264
gdb/doc * gdb.texinfo (Remote Protocol): Add new nodes to menu. (Overview): Mention notifications and non-stop mode behavior. (Packets): Update documentation of ?, vAttach, vCont, and vRun with non-stop mode behavior. Add vStopped description. (Stop Reply Packets): Update list of packets that return stop replies. Mention non-stop behavior. (General Query Packets): Document QNonStop packet and associated qSupported query response. (Interrupts): Clarify multi-threaded behavior. Mention non-stop behavior. (Notification Packets): New section. (Remote Non-Stop): New section. (File-I/O Overview): Mention non-stop behavior.
2008-10-24 Remote non-stop mode support.Pedro Alves3-201/+1285
* remote.c (pending_stop_reply): New. (struct remote_state) <non_stop_aware, support_vCont_t>: New fields. (remote_async_inferior_event_token) (remote_async_get_pending_events_token): New. (notice_new_inferiors): New, abstracted out from record_currthread. (record_currthread): Call it. (remote_threads_info): Default threads to running in non-stop mode. In non-stop mode, only qfThreadInfo is supported. (remote_close): Discard all pending stop_replies. Close the event sources. (set_stop_requested_callback): New. (remote_start_remote): Implement non-stop mode startup. In all-stop, don't clear the thread list here. (remote_non_stop_feature): New. (remote_protocol_features): Add a "QNonStop" feature. (remote_open_1): Clear cached_wait_status and non_stop_aware. Clear the thread list here. (remote_detach_1): Discard pending stop replies of the process we detached from. (extended_remote_attach_1): Implement non-stop mode. (remote_vcont_probe): Recognize `vCont;t'. (remote_vcont_resume): Implement non-stop mode. (remote_resume): Don't set waiting_for_stop_reply in non-stop mode. (remote_stop_ns): New. (remote_stop): Rename to ... (remote_stop_as): ... this. If we have a cached wait status, don't bother interrupting the remote. (remote_stop): Reimplement as wrapper around remote_stop_as and remote_stop_ns. (interrupt_query): Don't query in async mode. (struct cached_reg, cahed_reg_t): New. (struct stop_reply): New. (stop_reply_queue): New. (stop_reply_xmalloc, stop_reply_xfree) (discard_pending_stop_replies, do_stop_reply_xfree) (queued_stop_reply, push_stop_reply, peek_stop_reply) (remote_parse_stop_reply, remote_get_pending_stop_replies) (process_stop_reply): New. (remote_wait_ns): New. (remote_wait_as): Use remote_parse_stop_reply. Invalidate the notion of current general thread is a process exit was reported. (remote_wait): Call remote_wait_ns in non-stop mode. (handle_notification): New. (putpkt_binary): Handle notifications. Don't care for waiting_for_stop_reply in non-stop mode. (getpkt_sane): Rename to ... (getpkt_or_notif_sane_1): ... this. Add `expecting_notif' argument. Handle it. Handle notifications. (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1. (getpkt_or_notif_sane): New. (select_new_thread_callback): Check for exited state instead of comparing the ptid against minus_one_ptid. (extended_remote_create_inferior_1): Query the remote about the current thread. (remote_supports_non_stop): New. (init_remote_ops): Register it. (remote_async_inferior_event_handler): New. (remote_async_get_pending_events_handler): New. * infcmd.c (proceed_thread_callback): Comment. (proceed_after_attach_callback, proceed_after_attach): New. (attach_command_post_wait): In background attach, resume all threads, but only if they are unsignalled, and not explicitly stopped. In foreground attach, in non-stop mode, make sure to stop all threads of the just attached to process. (attach_command): In non-stop mode: If doing a background attach, stop at least one thread. If a foreground attach, stop all threads.
2008-10-24 * event-loop.h: Mention async_event_handlers.Pedro Alves3-105/+367
(async_event_handler): Forward declare. (async_event_handler_func): New typedef. (create_async_event_handler, delete_async_event_handler) (mark_async_event_handler): Declare. * event-loop.c (event_data): New. (event_handler_func): Take an event_data instead of an integer. (struct gdb_event): Replace the integer file descriptor by a generic event_data. (async_event_handler): New. (async_handler_ready): Delete. (async_event_handler_list): New. (create_event): New. (create_file_event): Use it. (process_event): Adjust. (gdb_do_one_event): Poll from the event sources in round-robin fashion across calls. Be sure to consult all sources before blocking. (handle_file_event): Take an event_data instead of an integer. Adjust. (gdb_wait_for_event): Add `block' argument. Handle it. (mark_async_signal_handler): Remove unneeded cast. (invoke_async_signal_handler): Rename to ... (invoke_async_signal_handlres): ... this. Return true if any was handled. (check_async_ready): Delete (create_async_event_handler): New. (mark_async_event_handler): New. (struct async_event_handler_data): New. (invoke_async_event_handler): New. (check_async_event_handlers): New. (delete_async_event_handler): New. (handle_timer_event): Adjust.
2008-10-24* config/tc-mips.c (mips_cpu_info_table): Move the MIPS64r2Maciej W. Rozycki2-2/+7
comment so that Broadcom SB-1 cores are in the MIPS64 section.
2008-10-24 * gdb.python/python-value.exp (test_value_in_inferior): Don't usePedro Alves2-5/+14
gdb_start_cmd. Use runto_main before any test that requires execution.
2008-10-24 * dwarf2read.c (typename_concat): Don't segv if prefix or suffixDoug Evans2-10/+13
is NULL. Simplify obs == NULL case.
2008-10-242008-10-24 Hui Zhu <teawater@gmail.com>Hui Zhu4-27/+102
Pedro Alves <pedro@codesourcery.com> * infrun.c (can_use_displaced_stepping): Change type to const char pointer. (can_use_displaced_stepping_auto): New string. (can_use_displaced_stepping_on): New string. (can_use_displaced_stepping_off): New string. (can_use_displaced_stepping_enum): New array. (show_can_use_displaced_stepping): In auto mode, also show the current effect of the option. (use_displaced_stepping): Return non-zero if displaced stepping is auto, and can be used with GDBARCH, and in non-stop mode. Return non-zero if displaced stepping is on, and can be used with GDBARCH. Return zero otherwise. (_initialize_infrun): Make the "set displaced-stepping" command an enum command. Change its class to class_run. Place it in the top level set list. Extend help to describe the auto mode. 2008-10-24 Hui Zhu <teawater@gmail.com> Pedro Alves <pedro@codesourcery.com> * gdb.texinfo (displaced-stepping): Describe the auto mode setting, and say it's the default. This is now a mainstream setting instead of a maintenance setting.
2008-10-24daily updateAlan Modra1-1/+1
2008-10-24*** empty log message ***gdbadmin1-1/+1
2008-10-23gdb/Pedro Alves12-50/+351
2008-10-23 Pedro Alves <pedro@codesourcery.com> * defs.h: Mention ptid_is_pid. * inferior.h (ptid_is_pid): Declare. * gdbthread.h (struct thread_info) <stop_requested>: New field. (set_stop_requested): Declare. * infcmd.c (interrupt_target_1): Call set_stop_requested. * infrun.c (clear_proceed_status): Clear stop_requested. (infrun_thread_stop_requested_callback, infrun_thread_stop_requested): New. (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a thread that had an explicit stop request, pretend we got a TARGET_SIGNAL_0. Always stop if the thread had an explicit stop request. (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped", instead of mentioning signal 0. (ptid_is_pid): New. * thread.c (set_stop_requested): New. * linux-nat.c (queued_waitpid): Rename to ... (queued_waitpid_1): ... this. Add `peek' argument. Handle it. (queued_waitpid): New, as wrapper to queued_waitpid_1. (push_waitpid): Push the SIGTRAP to the local event queue, to the kernel's. (send_sigint_callback): Delete. (linux_nat_stop_lwp): New. (linux_nat_stop): Use it. gdb/doc/ 2008-10-23 Pedro Alves <pedro@codesourcery.com> * observer.texi (thread_stop_requested): New. gdb/testsuite/ 2008-10-23 Pedro Alves <pedro@codesourcery.com> * lib/mi-support.exp (mi_expect_interrupt): Expect signal 0 instead of SIGINT.
2008-10-232008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+6
* python/python-value (valpy_getitem): Fix heap corruption.
2008-10-23 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.Aleksandar Ristovski2-1/+7
(procfs_create_inferior): Fetch list of threads.
2008-10-23* nto-procfs.c (procfs_files_info): Fix a typo.Aleksandar Ristovski2-3/+9
(procfs_create_inferior): Make attach_flag per-inferior.
2008-10-232008-10-23 Tom Tromey <tromey@redhat.com>Paul Pluzhnikov2-0/+8
* python/python-value.c (value_to_value_object): Initialize owned_by_gdb field. (valpy_new): Likewise.
2008-10-23 * ada-tasks.c (task_states, long_task_states): Use constant N_()Jan Kratochvil2-27/+34
initializer. Define the strings as const. (short_task_info, info_task): Translate the strings above.
2008-10-23daily updateAlan Modra1-1/+1
2008-10-23*** empty log message ***gdbadmin1-1/+1
2008-10-22 * NEWS: Add entry for new feature (Ada tasking support).Joel Brobecker2-1/+19
2008-10-22 * configure.ac: On alpha-osf, error out if enable_tui is set toJoel Brobecker3-102/+167
"yes", and set enable_tui to "no" if previously set to "auto". Check for waddstr only if TUI support was requested. Move the part of the configure script that updates various Makefile variables up, together with the check for waddstr. * configure: Regenerate.
2008-10-22 * gdbtypes.c (copy_type): New function.Joel Brobecker4-0/+71
* gdbtypes.h (copy_type): Add declaration. * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ variable, then use it.
2008-10-22 * gdb.texinfo (Ada Tasks, Ada Tasks and Core Files): New nodes.Joel Brobecker2-1/+189
(Patching): Replace incorrect usage of @samp by @kbd.
2008-10-22 * gdb.base/completion.exp: Update expected output followingJoel Brobecker2-3/+8
the addition of the "info tasks" command.
2008-10-22 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.Joel Brobecker8-40/+1105
(target_get_ada_task_ptid): New macro. * target.c (default_get_ada_task_ptid): New function. (update_current_target): Inherit field default_get_ada_task_ptid. (update_current_target): Make default_get_ada_task_ptid the default value for field to_get_ada_task_ptid. * ada-lang.h (struct task_control_block): Delete. Never used. (struct task_ptid, task_ptid_t, struct task_entry, task_list): Likewise. (struct ada_task_info): New. (ada_task_is_alive, ada_find_printable_frame) (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add declarations. (ada_build_task_list): Update prototype. (init_task_list, ada_is_exception_breakpoint): Remove prototypes. * ada-lang.c (ada_find_printable_frame): Make non-static. * ada-tasks.c: New file. * Makefile.in (SFILES): Add ada-tasks.c. (COMMON_OBS): Add ada-tasks.o. * linux-thread-db.c (thread_db_find_thread_from_tid) (thread_db_get_ada_task_ptid): New functions. (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
2008-10-22gdbTom Tromey4-3/+47
PR gdb/2506: * c-exp.y (string_exp): New production. (exp): Use it. gdb/testsuite * gdb.base/exprs.exp (test_expr): Add test for string concatenation.
2008-10-22 PR 6937Nick Clifton3-4/+20
* configure.in (SHARED_LIBADD): Revert previous change. Add a comment explaining why. (SHARED_DEPENDENCIES): Revert previous change. * configure: Regenerate.
2008-10-22 * emultempl/armelf.em (arm_elf_after_open): Move check for using aNick Clifton2-10/+17
non-arm output target from here... (arm_elf_create_output_section_statements): ... to here, so that the check is made at the earliest possible opportunity.
2008-10-22 PR gdb/921Daniel Jacobowitz8-6/+68
PR gdb/1646 PR gdb/2175 PR gdb/2176 * Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS. * Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS. (EXTRA_BUILD_FLAGS): Correct typo. Pass CPPFLAGS. (HOST_EXPORTS): Pass CPPFLAGS. (CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define. (LDFLAGS_FOR_TARGET): Initialize from configure script. (EXTRA_TARGET_FLAGS): Set CPPFLAGS. * Makefile.in, configure: Regenerated. * configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET, and CPPFLAGS_FOR_BUILD. libiberty/ * Makefile.in (CPPFLAGS): Define. (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
2008-10-22 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".Alan Modra2-1/+7
(EXTRA_EM_FILE): Define.