This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: fork debugging : back to parent.
Daniel Jacobowitz <drow@false.org> writes:
> On Thu, Aug 10, 2006 at 02:06:38PM -0700, Richard wrote:
>>
>>
>> Incidentally, I also tried "set $tmp=parent_id" (I made an api call to get
>> the parent proc id in the child fork), and in the child I tried to "attach
>> $tmp", but it said there was no such process. Is it not possible to use
>> convenience variables for things like "attach"? "attach parent_id" worked
>> fine.
>
> Yes, I don't think convenience variables are supported there - some
> targets may not use numbers for these identifiers, in theory.
>
Seems strange. Is there a design reason behind that? It was the
first time I ever used a convenience variable and *bang* it doesnt work
:( I'm jinxed - whatever I seem to want to do is either not supported or
buggy ... Mind you I do like the gdb-ui interface a lot - functional
and certainly better than the previous GUD interface.
> --
> Daniel Jacobowitz
> CodeSourcery
>
--