Thread: RE: [Cgdb-devel] no input when debugging OpenIPMI
Brought to you by:
bobbybrasko,
crouchingturbo
|
From: Wenqiang S. <ws...@sb...> - 2005-06-10 23:54:52
|
Thanks. Yes I'm trying to pass input to program being debugged. And yes what you said works. I just blindly thought it works just like gdb which uses the same window for program input/output. Appreciate your help. Wenqiang -----Original Message----- From: cgd...@li... on behalf of Mike Mueller Sent: Fri 6/10/2005 7:39 PM To: cgd...@li... Subject: Re: [Cgdb-devel] no input when debugging OpenIPMI Are you trying to pass input to the program being debugged? If so, currently this must be done through cgdb's TTY window, which is opened by pressing 'T' in command mode. You can then type input and view output from the program in this window. ESC takes you out of the window, and 't' puts you back in. These keys are documented in the (albeit highly simple) :help document. Hopefully this solves your problem! Regards, Mike > Folks, > > When I debug OpenIPMI(can't be downloaded from > http://sourceforge.net/projects/openipmi/), after starting the program and > get the command line prompt I can't input anything. The only way to exit > is > hitting Ctrl-C and return to cgdb prompt. The problem is reproducable and > it > doesn't happen to gdb(version 6.3). Did any of you guys meet this kind of > problem? > > How to reproduce: > > 1, download OpenIPMI 2.0.1 source and compile it(don't need to install) > 2, under dir OpenIPMI-2.0.1/ run 'cgdb cmdlang/.libs/ipmish' > 3, start the program, then bump. > > Best Regards > > For limitations on the use and distribution of this message, please visit > www.sbs.com/emaildisclaimer. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office luge > track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Cgdb-devel mailing list > Cgd...@li... > https://lists.sourceforge.net/lists/listinfo/cgdb-devel > ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r _______________________________________________ Cgdb-devel mailing list Cgd...@li... https://lists.sourceforge.net/lists/listinfo/cgdb-devel ***This message has been scanned for virus, spam, and undesirable content.*** ***For further information, contact your mail administrator.*** For limitations on the use and distribution of this message, please visit www.sbs.com/emaildisclaimer. |
|
From: Wenqiang S. <ws...@sb...> - 2005-06-11 03:47:25
|
This is right and BETTER. Thanks -----Original Message----- From: cgd...@li... on behalf of Bob Rossi Sent: Fri 6/10/2005 11:28 PM To: cgd...@li... Subject: Re: [Cgdb-devel] no input when debugging OpenIPMI Another alternative (which is the one I prefer), is to simply start your program in another terminal and then attach to it using CGDB. This allows your input/output to be in one terminal, and your CGDB debug session in another terminal. Bob Rossi On Fri, Jun 10, 2005 at 05:54:38PM -0600, Wenqiang Song wrote: > Thanks. Yes I'm trying to pass input to program being debugged. And yes what > you said works. > > I just blindly thought it works just like gdb which uses the same window for > program input/output. > > Appreciate your help. > > Wenqiang > > -----Original Message----- > From: cgd...@li... on behalf of Mike Mueller > Sent: Fri 6/10/2005 7:39 PM > To: cgd...@li... > Subject: Re: [Cgdb-devel] no input when debugging OpenIPMI > > Are you trying to pass input to the program being debugged? If so, > currently this must be done through cgdb's TTY window, which is opened by > pressing 'T' in command mode. You can then type input and view output > from the program in this window. ESC takes you out of the window, and 't' > puts you back in. These keys are documented in the (albeit highly simple) > :help document. > > Hopefully this solves your problem! > > Regards, > Mike > > > Folks, > > > > When I debug OpenIPMI(can't be downloaded from > > http://sourceforge.net/projects/openipmi/), after starting the program and > > get the command line prompt I can't input anything. The only way to exit > > is > > hitting Ctrl-C and return to cgdb prompt. The problem is reproducable and > > it > > doesn't happen to gdb(version 6.3). Did any of you guys meet this kind of > > problem? > > > > How to reproduce: > > > > 1, download OpenIPMI 2.0.1 source and compile it(don't need to install) > > 2, under dir OpenIPMI-2.0.1/ run 'cgdb cmdlang/.libs/ipmish' > > 3, start the program, then bump. > > > > Best Regards > > > > For limitations on the use and distribution of this message, please visit > > www.sbs.com/emaildisclaimer. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > > shotput > > a projector? How fast can you ride your desk chair down the office luge > > track? > > If you want to score the big prize, get to know the little guy. > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > > _______________________________________________ > > Cgdb-devel mailing list > > Cgd...@li... > > https://lists.sourceforge.net/lists/listinfo/cgdb-devel > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office luge > track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > _______________________________________________ > Cgdb-devel mailing list > Cgd...@li... > https://lists.sourceforge.net/lists/listinfo/cgdb-devel > > ***This message has been scanned for virus, spam, and undesirable > content.*** > ***For further information, contact your mail administrator.*** > > > > For limitations on the use and distribution of this message, please visit www.sbs.com/emaildisclaimer. For limitations on the use and distribution of this message, please visit www.sbs.com/emaildisclaimer. |
|
From: Bob R. <bo...@br...> - 2005-06-11 03:28:45
|
Another alternative (which is the one I prefer), is to simply start=20 your program in another terminal and then attach to it using CGDB. This allows your input/output to be in one terminal, and your CGDB debug session in another terminal. Bob Rossi On Fri, Jun 10, 2005 at 05:54:38PM -0600, Wenqiang Song wrote: > Thanks. Yes I'm trying to pass input to program being debugged. And yes w= hat > you said works.=20 >=20 > I just blindly thought it works just like gdb which uses the same window = for > program input/output.=20 >=20 > Appreciate your help. >=20 > Wenqiang >=20 > -----Original Message----- > From: cgd...@li... on behalf of Mike Mueller > Sent: Fri 6/10/2005 7:39 PM > To: cgd...@li... > Subject: Re: [Cgdb-devel] no input when debugging OpenIPMI > =20 > Are you trying to pass input to the program being debugged? If so, > currently this must be done through cgdb's TTY window, which is opened by > pressing 'T' in command mode. You can then type input and view output > from the program in this window. ESC takes you out of the window, and 't' > puts you back in. These keys are documented in the (albeit highly simple) > :help document. >=20 > Hopefully this solves your problem! >=20 > Regards, > Mike >=20 > > Folks, > > > > When I debug OpenIPMI(can't be downloaded from > > http://sourceforge.net/projects/openipmi/), after starting the program = and > > get the command line prompt I can't input anything. The only way to exit > > is > > hitting Ctrl-C and return to cgdb prompt. The problem is reproducable a= nd > > it > > doesn't happen to gdb(version 6.3). Did any of you guys meet this kind = of > > problem? > > > > How to reproduce: > > > > 1, download OpenIPMI 2.0.1 source and compile it(don't need to install) > > 2, under dir OpenIPMI-2.0.1/ run 'cgdb cmdlang/.libs/ipmish' > > 3, start the program, then bump. > > > > Best Regards > > > > For limitations on the use and distribution of this message, please vis= it > > www.sbs.com/emaildisclaimer. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > > shotput > > a projector? How fast can you ride your desk chair down the office luge > > track? > > If you want to score the big prize, get to know the little guy. > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=3D20 > > _______________________________________________ > > Cgdb-devel mailing list > > Cgd...@li... > > https://lists.sourceforge.net/lists/listinfo/cgdb-devel > > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office luge > track? > If you want to score the big prize, get to know the little guy. =20 > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Cgdb-devel mailing list > Cgd...@li... > https://lists.sourceforge.net/lists/listinfo/cgdb-devel >=20 > ***This message has been scanned for virus, spam, and undesirable > content.*** > ***For further information, contact your mail administrator.*** >=20 >=20 >=20 > For limitations on the use and distribution of this message, please visit= www.sbs.com/emaildisclaimer. |