summaryrefslogtreecommitdiffstats
path: root/gdb/thread.c
Commit message (Collapse)AuthorAgeFilesLines
* * thread.c (info_threads_command): Use get_selected_frame ().Daniel Jacobowitz2003-07-281-11/+8
| | | | Check that there is at least one non-sentinel frame.
* 2003-05-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-05-051-4/+0
| | | | | | | | | | | | | | * gdbthread.h (save_infrun_state): Drop prev_func_name parameter. (load_infrun_state): Ditto. (struct thread_info): Drop "prev_func_name" field. * thread.c (load_infrun_state): Update. (save_infrun_state): Update. * infrun.c (prev_func_name): Delete variable. (init_wait_for_inferior): Do not clear prev_func_name. (stop_stepping, keep_going, context_switch): Do not swap prev_func_name. (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp instead of PC_IN_SIGTRAMP.
* 2003-04-12 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-04-121-4/+0
| | | | | | | | | | | * gdbthread.h (save_infrun_state): Delete parameter "prev_func_start". (struct thread_info): Delete field "prev_func_start". (load_infrun_state): Ditto. * thread.c (load_infrun_state, save_infrun_state): Update. * infrun.c (prev_func_start): Delete variable. (context_switch, init_wait_for_inferior): Update. (stop_stepping, keep_going): Update.
* 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-03-281-35/+29
| | | | | | * thread.c: Reindented. * lin-lwp.c: Ditto. * linux-proc.c: Ditto.
* 2003-02-02 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2003-02-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Fix PR gdb/742 gdb/743 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end. (do_mixed_source_and_assembly): Use make_cleanup_ui_out_tuple_begin_end and make_cleanup_ui_out_tuple_begin_end. (do_mixed_source_and_assembly): Ditto. * thread.c (do_captured_list_thread_ids): Ditto. * ui-out.h (ui_out_table_begin, ui_out_list_begin, ui_out_tuple_begin, ui_out_table_end, ui_out_list_end, ui_out_tuple_end): Delete prototypes. * ui-out.c (ui_out_list_begin, ui_out_tuple_begin, ui_out_list_end, ui_out_tuple_end): Delete. From Kevin Buettner <kevinb@redhat.com>: * ui-out.h (make_cleanup_ui_out_table_begin_end): New function. * ui-out.c (make_cleanup_ui_out_table_begin_end) (do_cleanup_table_end): New functions. * breakpoint.c (print_it_typical, print_one_breakpoint, mention): Use cleanups to invoke_ui_out_tuple_end(). (breakpoint_1): Use cleanup to invoke ui_out_table_end(). * cli/cli-setshow.c (cmd_show_list): Use make_cleanup_ui_out_tuple_begin_end.
* 2003-01-13 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2003-01-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * stack.c (print_frame_info, print_stack_frame_base_stub, print_stack_frame_base, show_and_print_stack_frame_stub, show_and_print_stack_frame, print_only_stack_frame_stub, print_only_stack_frame): Delete functions. (print_stack_frame_stub): Call print_frame_info instead of print_frame_info_base. (print_frame_info_base): Rename to print_frame_info. (backtrace_command_1): Call print_frame_info, instead of print_frame_info_base. (current_frame_command): Call print_stack_frame, instead of print_only_stack_frame. (frame_command): Call print_stack_frame, instead of show_and_print_stack_frame. (up_command): Ditto. (down_command): Ditto. * frame.h (print_only_stack_frame): Delete prototype. * infrun.c (normal_stop): Call print_stack_frame, instead of show_and_print_stack_frame. * thread.c (info_threads_command): Call print_stack_frame, instead of print_only_stack_frame. 2003-01-13 Elena Zannoni <ezannoni@redhat.com> * mi-main.c (mi_cmd_exec_return): Use print_stack_frame instead of show_and_print_stack_frame.
* 2002-12-19 Keith Seitz <keiths@redhat.com>Elena Zannoni2002-12-201-0/+3
| | | | | | patch committed by Elena Zannoni <ezannoni@redhat.com> * thread.c (do_captured_list_thread_ids): Call prune_threads and target_find_new_threads. Fix for PR mi/669.
* 2002-12-05 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2002-12-061-4/+4
| | | | | | | | | | | | | | | | | | | * gdbthread.h: Include "frame.h". (struct thread_info): Replace step_frame_address with step_frame_id. * inferior.h: Include "frame.h". (step_frame_id): Replace external variable step_frame_address. * gdbthread.h (save_infrun_state): Replace step_frame_address parameter with step_frame_id parameter. (load_infrun_state): Ditto. * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h). * infcmd.c (step_frame_id, step_1, step_once): Update. * thread.c (load_infrun_state, save_infrun_state): Update. * infrun.c (clear_proceed_status, save_inferior_status): Update. (handle_inferior_event, step_over_function): Update. (normal_stop, context_switch, restore_inferior_status): Update. (struct inferior_status): Replace step_frame_address with step_frame_id.
* 2002-11-29 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2002-11-291-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stack.c (selected_frame, select_frame): Move from here ... * frame.c (selected_frame, select_frame): ... to here. Include "language.h". * Makefile.in (frame.o): Update dependencies. * frame.c (get_selected_frame): New function. * frame.h (get_selected_frame): Declare. (deprecated_selected_frame): Rename selected_frame. * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update. * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update. * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update. * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update. * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update. * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update. * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update. * z8k-tdep.c, cli/cli-cmds.c: Update. Index: mi/ChangeLog 2002-11-29 Andrew Cagney <ac131313@redhat.com> * mi/mi-cmd-stack.c, mi/mi-main.c: Update to use deprecated_selected_frame. Index: tui/ChangeLog 2002-11-29 Andrew Cagney <ac131313@redhat.com> * tui/tui-hooks.c: Update to use deprecated_selected_frame. * tui/tui.c, tui/tuiDisassem.c, tui/tuiRegs.c: Ditto. * tui/tuiSource.c, tui/tuiSourceWin.c, tui/tuiWin.c: Ditto.
* Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>Andrew Cagney2002-08-021-0/+1
| | | | | | | | | | | | | | | | | | * gdbarch.sh: Include "gdb_string.h". * gdbarch.c: Regenerate. * regcache.c: Include "gdb_string.h". * ax-general.c: Ditto. * varobj.c: Ditto. * std-regs.c: Ditto. * fbsd-proc.c: Ditto. * thread.c: Ditto. * Makefile.in (regcache.o): Update dependencies. (thread.o, gdbarch.o): Ditto. (ax-general.o, gdbarch.o): Ditto. (varobj.o, std-regs.o): Ditto. (fbsd-proc.o): Specify dependencies.
* * frame.h (select_frame): Delete level parameter.Andrew Cagney2002-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stack.c (select_frame): Update. Use frame_relative_level to obtain the frame's level. (select_and_print_frame): Update call. (select_frame_command): Ditto. (up_silently_base): Ditto. (down_silently_base): Ditto. * ocd.c (ocd_start_remote): Ditto. * remote-rdp.c (remote_rdp_open): Ditto. * remote-mips.c (mips_initialize): Ditto. (common_open): Ditto. * remote-e7000.c (e7000_start_remote): Ditto. * m3-nat.c (select_thread): Ditto. * hppa-tdep.c (child_get_current_exception_event): Ditto. (child_get_current_exception_event): Ditto. * varobj.c (varobj_create): Ditto. (varobj_update): Ditto. (c_value_of_root): Ditto. * tracepoint.c (finish_tfind_command): Ditto. * corelow.c (core_open): Ditto. * arch-utils.c (generic_prepare_to_proceed): Ditto. * thread.c (info_threads_command): Ditto. (switch_to_thread): Ditto. * infrun.c (normal_stop): Ditto. (restore_selected_frame): Ditto. (restore_inferior_status): Ditto. * breakpoint.c (insert_breakpoints): Ditto. (watchpoint_check): Ditto. (bpstat_stop_status): Ditto. (do_enable_breakpoint): Ditto. * blockframe.c (flush_cached_frames): Ditto. (reinit_frame_cache): Ditto.
* * frame.h (selected_frame_level): Document as deprecated.Andrew Cagney2002-04-211-2/+2
| | | | | | | | | | | | | | | | | | | (frame_relative_level): Declare. * stack.c (frame_relative_level): New function. (selected_frame_level): Document as deprecated. (select_frame): Do not set the selected_frame_level. * stack.c (frame_info, record_selected_frame): Update. (frame_command, current_frame_command): Update. (up_silently_base, up_command, down_silently_base): Update. (down_command): Update. * inflow.c (kill_command): Update. * tracepoint.c (finish_tfind_command): Update. * corelow.c (core_open): Update. * thread.c (info_threads_command): Update. (do_captured_thread_select): Update. * infcmd.c (finish_command): Update. * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
* Remove else clause to #if UI_OUT.Andrew Cagney2002-01-171-25/+5
|
* Add ui_out parameter to libgdb functions.Andrew Cagney2001-09-181-9/+12
|
* Move libgdb library functions to gdb.h (new file).Andrew Cagney2001-07-281-0/+1
| | | | Update everything related to this.
* 2001-06-13 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-06-131-33/+42
| | | | | | | | | | | | * gdbthread.h (struct thread_info): Add new fields: current_line, current_symtab, step_sp, for saved infrun state. * thread.c (save_infrun_state, load_infrun_state): Save and restore current_line, current_symtab, and step_sp. (add_thread): Rather than adding assignments to initialize the new fields, just use memset (tp, 0, sizeof (*tp). This way future new fields will not be overlooked. * infrun.c (handle_inferior_event): Save and restore save_sp, current_line, and current_symtab when switching threads.
* 2001-06-01 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-06-021-0/+17
| | | | | | | | | | | | | | | * thread.c (delete_step_resume_breakpoint): New function. Maintain internal consistency of the thread list while deleting a step_resume_breakpoint. * gdbthread.h (delete_step_resume_breakpoint): Export. * breakpoint.c (bpstat_find_step_resume_breakpoint): Make thread-aware: don't return a step_resume_breakpoint for the wrong thread. * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint instead of delete_breakpoint_current_contents. (fetch_inferior_event): Ditto. (handle_inferior_event): Call delete_step_resume_breakpoint instead of delete_breakpoint.
* * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_beginJim Blandy2001-05-121-2/+2
| | | | | and ui_out_tuple_end instead of ui_out_list_begin and ui_out_list_end.
* Phase 1 of the ptid_t changes.Kevin Buettner2001-05-041-59/+59
|
* 2001-04-17 Eirik Fuller <eirik@netapp.com>Michael Snyder2001-04-171-1/+1
| | | | | * thread.c (do_captured_thread_select): Allow the argument to the thread command to be an expression rather than a literal integer.
* Update/correct copyright notices.Kevin Buettner2001-03-061-3/+4
|
* Create new file regcache.h. Update all uses.Andrew Cagney2001-03-011-0/+1
|
* 2001-01-24 Jeff Holcomb <jeffh@redhat.com>Jeff Holcomb2001-01-261-3/+3
| | | | | | | | | | | | | | | | | * remote-udi.c (udi_open): Change strdup to xstrdup. * thread.c (thread_apply_all_command): Change strdup to xstrdup. Update copyright message. * varobj.c (delete_variable_1): Likewise. * gdb_string.h: Remove declaration of strdup. Update copyright message. * config/xm-mpw.h: Likewise. * config/i386/xm-i386mach.h: Likewise. * config/m68k/xm-apollo68b.h: Likewise. * config/m68k/xm-hp300bsd.h: Likewise. * config/rs6000/xm-rs6000.h: Likewise. * config/vax/xm-vaxult.h: Remove declaration of strdup. * config/vax/xm-vaxult2.h: Likewise.
* Replace free() with xfree().Kevin Buettner2000-12-151-5/+5
|
* * thread.c (thread_apply_all_command): Save the command before executing itChristopher Faylor2000-11-171-0/+16
| | | | | | because it may be modified. Restore the saved command so that the same command is executed on next thread. (thread_apply_command): Same correction.
* Protoization.Kevin Buettner2000-10-281-3/+2
|
* Protoization.Kevin Buettner2000-07-301-83/+36
|
* 2000-07-21 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2000-07-221-0/+4
| | | | * thread.c (thread_apply_all_command): Update thread list first.
* * thread.c (free_thread): New function.Nicholas Duffek2000-07-191-15/+19
| | | | | | (init_thread_list): Always zero highest_thread_num. Call free_thread() instead of free(). (delete_thread): Move thread cleanup code to free_thread().
* Purge last remaining make_cleanup_func.Andrew Cagney2000-06-071-4/+28
|
* PARAMS removal.Kevin Buettner2000-05-281-10/+10
|
* import gdb-2000-02-02 snapshotJason Molenda2000-02-031-0/+51
|
* import gdb-2000-01-17 snapshotJason Molenda2000-01-181-7/+21
|
* import gdb-2000-01-10 snapshotJason Molenda2000-01-111-39/+63
|
* import gdb-1999-09-08 snapshotStan Shebs1999-09-091-1/+1
|
* import gdb-1999-08-23 snapshotJason Molenda1999-08-231-10/+6
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-102/+106
|
* import gdb-1999-06-07 snapshotJason Molenda1999-06-071-66/+0
|
* import gdb-1999-05-25 snapshotJason Molenda1999-05-251-0/+1
|
* import gdb-19990504 snapshotStan Shebs1999-05-051-7/+3
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-2/+3
|
* Initial creation of sourceware repositoryStan Shebs1999-04-161-0/+721
|
* Initial creation of sourceware repositoryStan Shebs1999-04-161-721/+0
|
* * thread.c: cull duplicate prototypes. Move prototypes to top.Michael Snyder1999-01-131-55/+32
| | | | | * serial.c: indentation cleanup. * breakpoint.c: add casts to eliminate compiler warnings.
* * remote.c (record_curthread): Must not modify inferior_pid whenMichael Snyder1999-01-061-2/+2
| | | | | | | | | | | | called from wait_for_inferior. Instead, if a new thread-id is detected, call add_thread. (MAGIC_NULL_PID): new macro, use instead of the magic number "42000". (remote_find_new_threads): if inferior_pid is unknown, get and use the current thread id. (remote_start_remote): on connecting, attempt to get the current thread id for inferior_pid. (remote_resume): If pid == -1, then resume any-thread (not the current thread specifically). * thread.c (info_threads_command): don't initialize current_pid until after call to FIND_NEW_THREADS (which may change inferior_pid).
* Cosmetic and indentation fixes.Michael Snyder1999-01-051-23/+26
|
* all remaining *.c *.h files from hp merge.David Taylor1998-12-311-12/+116
|
* * remote.c (remote_get_threadinfo) : Support for remoteJohn Metzler1998-11-131-6/+88
| | | | | | | | | | | | | | | | | multithread debugging. (remote_get_threadlist) : get a partial list of threads (remote_threadlist_iterator) : Step through all the threads (init_remote_threadtests) : Optional builtin unit test commands. * thread.c (bind_target_thread_vector) : Implementa a more dynamic way of accessing target specific thread info functions than FIND_NEW_THREADS. (target_thread_info) : Function to get extended thread information. * gdbthread.h : Export internal data structures corresponding to external detailed thread info response. This is more like a 'ps' command than what might be expected of host based threads. This is for embedded systems.
* 1998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda1998-10-141-18/+15
| | | | | | | | | | | | | | | | | | | | | | | | * defs.h: Move _initialize_printcmd, _initialize_stack, _initialize_blockframe out of here and in to their respective .c files. * blockframe.c: Move _initialize_blockframe prototype to here. * printcmd.c: Move _initialize_printcmd prototype to here. * stack.c: Move _initialize_stack prototype to here. * source.c, symtab.h: Move _initialize_source prototype to the .c file. * values.c, value.h: Move _initialize_values prototype to the .c file. * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c file. * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype to the .c file. * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c: Standardize comments for the prototype section of these files. * configure.in: Look in libc for wctype before looking for it in libc. The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem where an empty stub library (libw) causes a core dump when we call vasprintf (e.g. `info br') in the final linked gdb.
* 1998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda1998-10-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * blockframe.c (find_pc_sect_partial_function): Add braces to avoid possible nested-if confusion. * breakpoint.c (breakpoint_here_p): Ditto. (breakpoint_inserted_here_p): Ditto. (breakpoint_thread_match): Ditto. * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined. * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability prototypes. * symtab.h: Add prototype for _initialize_source. * value.h: Add prototype for _initialize_value. * defs.h: Include sys/types.h or stddef.h to get size_t. (make_cleanup): Add make_cleanup_func typedef and switch to using a prototype for this function. (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't using mmalloc. * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c dwarf2read.c dwarfread.c elfread.c eval.c exec.c gdbtk-cmds.c gdbtk.c infcmd.c infrun.c mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c valops.c: Cast parameters passed to make_cleanup to use the new make_cleanup_func typedef. More warning cleanups. There are still a bunch of places where the first argument to make_cleanup is not cast to (make_cleanup_func); these are either due to the function fitting the make_cleanup_func specification already (e.g. free()) or they are in files that weren't compiled when I did my make on a Linux native system. Bwahahaha. You can see them like this: grep make_cleanup\ * | grep -v make_cleanup_func I'll surely go back and clean up the remaining suspicious calls in GDB one of these days. :-)
OpenPOWER on IntegriCloud