From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: RFA: test macro expansion in presence of #line directives
Date: Wed, 06 Nov 2002 12:31:00 -0000 [thread overview]
Message-ID: <vt28z06fo7l.fsf@zenia.red-bean.com> (raw)
In-Reply-To: <vt24rauhax5.fsf@zenia.red-bean.com>
Here's a revision of this test, which depends on the addition of the
gdb_internal_error_resync function and its use in gdb_test, done in
the previous patch.
gdb/testsuite/ChangeLog:
2002-11-01 Jim Blandy <jimb@redhat.com>
* gdb.base/step-line.exp: Check that GDB can handle filenames that
appear in the line number info, but not in the preprocessor macro
info.
Index: gdb/testsuite/gdb.base/step-line.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/step-line.exp,v
retrieving revision 1.1
diff -c -r1.1 step-line.exp
*** gdb/testsuite/gdb.base/step-line.exp 27 Mar 2001 01:32:45 -0000 1.1
--- gdb/testsuite/gdb.base/step-line.exp 6 Nov 2002 20:23:19 -0000
***************
*** 53,58 ****
--- 53,67 ----
gdb_test "next" \
".*i = f2 \\(i\\);.*" \
"next over dummy 1"
+
+ # As of Oct 2002, GCC does record the effect of #line directives in
+ # the source line info, but not in macro info. This means that GDB's
+ # symtabs (built from the former, among other things) may mention
+ # filenames that GDB's macro tables (built from the latter) don't have
+ # any record of. Make sure GDB can handle this by trying to evaluate
+ # an expression, which will do a macro expansion.
+ gdb_test "print i" ".* = 4.*"
+
gdb_test "next" \
".*dummy \\(2, i\\);.*" \
"next to dummy 2"
next prev parent reply other threads:[~2002-11-06 20:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 9:35 Jim Blandy
2002-11-06 9:42 ` Daniel Jacobowitz
2002-11-06 9:48 ` Jim Blandy
2002-11-06 12:31 ` Jim Blandy [this message]
2002-11-21 23:01 ` Jim Blandy
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=vt28z06fo7l.fsf@zenia.red-bean.com \
--to=jimb@redhat.com \
--cc=gdb-patches@sources.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