This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] multi-process gdb (forks, checkpoints)


Eli Zaretskii wrote:
Date: Mon, 28 Nov 2005 14:57:51 -0800
From: Michael Snyder <msnyder@redhat.com>

This is, no kidding, gdb debugging multiple processes.


Wow! Thanks!


Eli, I'll be working on documentation.  For the mean time,
the user interface looks like this:

	set/show detach-on-fork (on/off) [default on]
	info forks
	fork <n> [analogous to thread <n>]
	detach-fork <n>
	delete-fork <n> [and kill]


I'd prefer that we use ``process'' instead of ``fork'' here. That is,

    info processes
    process <n>  [assuming n is a PID]

Good idea. But <n>, as written, is not a PID, it's a small counting number (analogous to a breakpoint id or thread id).

I've added the command "process <proc-id" on the branch,
but kept "fork <fork-id>" since its semantics is different
(and still useful).  "info processes" is problematic, since
there is already an "info proc" command.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]