This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Controlling gdb outside the terminal


On Fri, Sep 07, 2007 at 05:54:40PM +0700, Brother Josef wrote:
> excellent, thank you. and yes actually I do need to look into MI  
> mode, I'm new to GDB and just now considering it as the future in how  
> I might be debugging. Could I run GDB without that error and continue  
> to write and read from the program from within my Mac app?
> 
> Could anyone point me to any source code on pseudo-terminals or  
> documents? I have been looking around today and I still can't get a  
> clear picture of how such code would look providing I could even  
> write it. ;) thanks again

Here is a gdb/mi parser.
  http://cgdb.svn.sourceforge.net/viewvc/cgdb/cgdb/trunk/lib/gdbmi/
I would start out using that. I currently have not used this parser in a
production front end yet, however, I expect to do this soon, especially
since my push parser patch is finally complete in bison. That means I
can convert the parser to being completely non blocking.

It is capable of parsing all of the mi commands that the gdb testsuite
outputs. 

Here is the code I use to open a pseudo terminal,
  http://cgdb.svn.sourceforge.net/viewvc/cgdb/cgdb/trunk/various/util/include/pseudo.h?view=log
  http://cgdb.svn.sourceforge.net/viewvc/cgdb/cgdb/trunk/various/util/src/pseudo.c?view=log

Enjoy,
Bob Rossi



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]