Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Multi-process and 'inferior'
@ 2008-06-13 14:22 Marc Khouzam
  2008-06-13 14:25 ` Daniel Jacobowitz
  2008-06-13 19:18 ` Michael Snyder
  0 siblings, 2 replies; 6+ messages in thread
From: Marc Khouzam @ 2008-06-13 14:22 UTC (permalink / raw)
  To: gdb

Hi,

With multi-process debugging, what will the 'inferior' be?

In fact, currently, when using attach/detach with gdbserver, what is 
considered the inferior?  I assume that the inferior is the process 
GDB is currently attached to, right?
 
Thanks

Marc


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Multi-process and 'inferior'
  2008-06-13 14:22 Multi-process and 'inferior' Marc Khouzam
@ 2008-06-13 14:25 ` Daniel Jacobowitz
  2008-06-13 14:32   ` Marc Khouzam
  2008-06-13 19:18 ` Michael Snyder
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-06-13 14:25 UTC (permalink / raw)
  To: Marc Khouzam; +Cc: gdb

On Fri, Jun 13, 2008 at 10:21:43AM -0400, Marc Khouzam wrote:
> Hi,
> 
> With multi-process debugging, what will the 'inferior' be?

In what context?  Conceptually, I'd guess it all the attached
processes would be inferiors.

> In fact, currently, when using attach/detach with gdbserver, what is 
> considered the inferior?  I assume that the inferior is the process 
> GDB is currently attached to, right?

Yes.  It's no different than local attach/detach.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Multi-process and 'inferior'
  2008-06-13 14:25 ` Daniel Jacobowitz
@ 2008-06-13 14:32   ` Marc Khouzam
  2008-06-13 14:39     ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Khouzam @ 2008-06-13 14:32 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

On Friday, June 13, 2008 10:25 AM, Daniel Jacobowitz wrote:
>
> > With multi-process debugging, what will the 'inferior' be?
> 
> In what context?  Conceptually, I'd guess it all the attached
> processes would be inferiors.

At this time, I'm thinking of "set inferior-tty"

But maybe having GDB handle many inferiors instead of the
one, would affect other commands?

Marc


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Multi-process and 'inferior'
  2008-06-13 14:32   ` Marc Khouzam
@ 2008-06-13 14:39     ` Daniel Jacobowitz
  2008-06-13 14:45       ` Marc Khouzam
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-06-13 14:39 UTC (permalink / raw)
  To: Marc Khouzam; +Cc: gdb

On Fri, Jun 13, 2008 at 10:32:00AM -0400, Marc Khouzam wrote:
> At this time, I'm thinking of "set inferior-tty"
> 
> But maybe having GDB handle many inferiors instead of the
> one, would affect other commands?

Oh, many commands, I expect... Especially in the vague world of "set".
If you want to be able to specify different TTYs for each process we'd
need a new command.  The easiest thing to do would be to honor
inferior-tty for every process GDB runs (it doesn't apply when we attach).

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Multi-process and 'inferior'
  2008-06-13 14:39     ` Daniel Jacobowitz
@ 2008-06-13 14:45       ` Marc Khouzam
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Khouzam @ 2008-06-13 14:45 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb


> On Friday, June 13, 2008 10:38 AM,Daniel Jacobowitz wrote:
>
> > But maybe having GDB handle many inferiors instead of the
> > one, would affect other commands?
> 
> Oh, many commands, I expect... Especially in the vague world of "set".
> If you want to be able to specify different TTYs for each process we'd
> need a new command.  
>
> The easiest thing to do would be to honor
> inferior-tty for every process GDB runs (it doesn't apply 
> when we attach).

That sounds good enough.

Thanks


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Multi-process and 'inferior'
  2008-06-13 14:22 Multi-process and 'inferior' Marc Khouzam
  2008-06-13 14:25 ` Daniel Jacobowitz
@ 2008-06-13 19:18 ` Michael Snyder
  1 sibling, 0 replies; 6+ messages in thread
From: Michael Snyder @ 2008-06-13 19:18 UTC (permalink / raw)
  To: Marc Khouzam; +Cc: gdb

On Fri, 2008-06-13 at 10:21 -0400, Marc Khouzam wrote:
> Hi,
> 
> With multi-process debugging, what will the 'inferior' be?
> 
> In fact, currently, when using attach/detach with gdbserver, what is 
> considered the inferior?  I assume that the inferior is the process 
> GDB is currently attached to, right?

Many years ago, we tried to give up using that term, "inferior".
Sounds sort of politically incorrect, though I'm glad that it 
doesn't seem to have the same 'squick factor' now as it did 
in the 1990's...



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-13 19:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-13 14:22 Multi-process and 'inferior' Marc Khouzam
2008-06-13 14:25 ` Daniel Jacobowitz
2008-06-13 14:32   ` Marc Khouzam
2008-06-13 14:39     ` Daniel Jacobowitz
2008-06-13 14:45       ` Marc Khouzam
2008-06-13 19:18 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox