From: Fernando Nasser <fnasser@redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: Jim Blandy <jimb@cygnus.com>, gdb-patches@sources.redhat.com
Subject: Re: RFA: parse output from `info sources' one filename at a time
Date: Thu, 21 Feb 2002 11:41:00 -0000 [thread overview]
Message-ID: <3C754D4A.CC9FAE82@redhat.com> (raw)
In-Reply-To: <3C7542CF.A82DFC33@redhat.com>
Michael Snyder wrote:
>
> Jim Blandy wrote:
> >
> > This eliminates an `ERROR' when the test is run under Linux. The
> > output from `info sources' includes all the shared library source
> > files, making it so long that it overflows Expect's buffer.
>
> Not the maintainer, but I recommend acceptance.
>
We don't have a co-maintainer for testsuite/gdb.asm...
Who was it that was fixing it all ove and adding lots
of things lately? Would be a good candidate for a "volunteer" ;-)
Thanks for looking into it Michael.
Please check it in Jim, and thanks for the patch.
Regards to all,
Fernando
> >
> > 2002-02-13 Jim Blandy <jimb@redhat.com>
> >
> > * gdb.asm/asm-source.exp: Parse the output from `info sources' one
> > filename at a time, and watch for the ones we want to see.
> >
> > Index: gdb/testsuite/gdb.asm/asm-source.exp
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
> > retrieving revision 1.17
> > diff -c -r1.17 asm-source.exp
> > *** gdb/testsuite/gdb.asm/asm-source.exp 2002/01/18 00:13:00 1.17
> > --- gdb/testsuite/gdb.asm/asm-source.exp 2002/02/14 00:05:30
> > ***************
> > *** 202,211 ****
> > "Current source file is .*asmsrc2.s.*Source language is asm.*" \
> > "info source asmsrc2.s"
> >
> > ! # Try 'info sources'
> > ! gdb_test "info sources" \
> > ! "Source files .*asmsrc\[12\].s.*asmsrc\[12\].s.*" \
> > ! "info sources"
> >
> > # Try 'info line'
> > gdb_test "info line" \
> > --- 202,238 ----
> > "Current source file is .*asmsrc2.s.*Source language is asm.*" \
> > "info source asmsrc2.s"
> >
> > ! # Try 'info sources'. This can produce a lot of output on systems
> > ! # with dynamic linking, where the system's shared libc was compiled
> > ! # with debugging info; for example, on Linux, this produces 47kb of
> > ! # output. So we consume it as we go.
> > ! send_gdb "info sources\n"
> > ! set seen_asmsrc_1 0
> > ! set seen_asmsrc_2 0
> > ! gdb_expect {
> > ! -re "^\[^,\]*asmsrc1.s(, |\[\r\n\]+)" {
> > ! set seen_asmsrc_1 1
> > ! exp_continue
> > ! }
> > ! -re "^\[^,\]*asmsrc2.s(, |\[\r\n\]+)" {
> > ! set seen_asmsrc_2 1
> > ! exp_continue
> > ! }
> > ! -re ", " {
> > ! exp_continue
> > ! }
> > ! -re "$gdb_prompt $" {
> > ! if {$seen_asmsrc_1 && $seen_asmsrc_2} {
> > ! pass "info sources"
> > ! } else {
> > ! fail "info sources"
> > ! }
> > ! }
> > ! timeout {
> > ! fail "info sources (timeout)"
> > ! }
> > ! }
> > !
> >
> > # Try 'info line'
> > gdb_test "info line" \
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
next prev parent reply other threads:[~2002-02-21 19:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 16:10 Jim Blandy
2002-02-21 11:04 ` Michael Snyder
2002-02-21 11:41 ` Fernando Nasser [this message]
2002-02-21 12:08 ` Michael Snyder
2002-02-21 12:30 ` Fernando Nasser
2002-04-17 16:21 ` Old business: gdb.asm maintainership Michael Snyder
2002-04-18 8:57 ` Fernando Nasser
2002-02-21 12:58 ` RFA: parse output from `info sources' one filename at a time Jim Blandy
2002-02-21 13:37 Michael Elizabeth Chastain
2002-02-21 13:42 ` Daniel Jacobowitz
2002-02-21 23:16 Michael Elizabeth Chastain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C754D4A.CC9FAE82@redhat.com \
--to=fnasser@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@cygnus.com \
--cc=msnyder@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox