Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: splitting output in gdb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: splitting output in gdb



Open a terminal window, and notice the pty - by default it's in the window title. Start up gdb in another terminal window, and do:

(gdb) tty /dev/ttyp1

or whatever you got for the new tty (the window title usually just has the "ttyp1" part).

Then run your app like normal, and the input & output will go to the other terminal.

Jim

On Mar 30, 2005, at 3:17 PM, Markian Hlynka wrote:

y'know how when you debug in xcode you have the gdb console window and the stdio window?

Does anyone know how to do that from the command-line? ie, if I invoke gdb in a terminal, when I run my app, it would be useful to pipe the I/O from the app to a different tty or something (ie different terminal window).

I presume this is possible, since xcode does it, but I haven't been able to figure it out yet.

Ideas?

Markian

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >splitting output in gdb (From: Markian Hlynka <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.