patch to add QNX NTO i386 support

Andrew Cagney ac131313@redhat.com
Wed Feb 5 18:46:00 GMT 2003


>> >     * ser-ntopty.c: New file
> 
>>
>> Hmm, is this specific to nto?  Also, glancing through the code, how
>> different is this to the existing serial code.  I'm wondering if the
>> file exists due to local fixes and not because it is needed.
> 
> 
> It took me a few minutes to remember what this was.  When we originally
> ported gdb, the only way it worked was using the remote pdebug protocol,
> even on the local machine (we had no native procfs port).  So, you would
> issue a command 'target qnx pty' (instead of 'target qnx <serial port>' or
> 'target qnx '<host>:<port>') and it would automatically spawn the pdebug
> server on a pty and connect to it.  Since we've got a native procfs port
> working, this is by and large redundant so I'll take it out.  It was only
> there for legacy support and because it was sometimes useful to compare the
> procfs vs. the pdebug to make sure things are working.  Since the equivalent
> can be accomplished with 'target qnx localhost:<port>', I think it's time
> for ser-ntopty.c to die.

Ah.  There is also now ser-pipe.c vis:

	(gdb) target remote |program

A `ser-pty' might also be useful but that isn't specific to nto.  I've 
no idea on the syntax (... pty:...).

Andrew




More information about the Gdb-patches mailing list