Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How do I get regexp from expect at gdb_expect?
@ 2005-01-29  2:57 Bob Rossi
  2005-01-29  3:09 ` Paul Hilfinger
  0 siblings, 1 reply; 20+ messages in thread
From: Bob Rossi @ 2005-01-29  2:57 UTC (permalink / raw)
  To: GDB

Hi,

I'm using expect with GDB and I've come across a problem. For instance,
say I have,

    gdb_expect $tmt {
     -re "(Ending remote debugging.*$mi_gdb_prompt\[ \]*$)" {
        # at this point, how do I get the string that matched the above
        # regex?
        }
    }
    }

I need to be able to get the string that matched the regex at the -re.
If I can get this data, I think I will successfully be able to get the
MI output parser to parse the output of GDB with the existing testsuite.
This will at least ensure that the syntax is correct, and will stay
correct.

I hope it is possible to get the information that I need ...
Any help would be greatly appreciated,

Thanks,
Bob Rossi


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-02-01 16:10 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-29  2:57 How do I get regexp from expect at gdb_expect? Bob Rossi
2005-01-29  3:09 ` Paul Hilfinger
2005-01-29  3:11   ` Bob Rossi
2005-01-29  3:16     ` Bob Rossi
2005-01-31 15:07   ` Bob Rossi
2005-01-31 16:28     ` Daniel Jacobowitz
2005-01-31 16:59       ` Bob Rossi
2005-01-31 21:10       ` Bob Rossi
2005-01-31 21:21         ` Daniel Jacobowitz
2005-01-31 22:00           ` Bob Rossi
2005-01-31 22:04             ` Daniel Jacobowitz
2005-01-31 22:12               ` Bob Rossi
2005-02-01  3:52                 ` Daniel Jacobowitz
2005-02-01 14:20                   ` Bob Rossi
2005-02-01 14:23                     ` Daniel Jacobowitz
2005-02-01 14:39                       ` Bob Rossi
2005-02-01 15:20                         ` Daniel Jacobowitz
2005-02-01 15:38                           ` Bob Rossi
2005-02-01 15:58                         ` Dave Korn
2005-02-01 16:10                           ` 'Bob Rossi'

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox