From: Christophe LYON <christophe.lyon@st.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] testsuite gdb.base/expand-psymtabs: ensure code is generated for the expected source line
Date: Mon, 08 Dec 2008 15:25:00 -0000 [thread overview]
Message-ID: <493D3C16.3010303@st.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
Hi all,
I propose the attached small patch to expand-psymtabs.c. The goal is to
make sure the compiler actually generates code and debug information for
the expected line. Currently, our compiler attaches code only to the
opening brace, hence causing the test to fail.
Christophe.
[-- Attachment #2: ChangeLog --]
[-- Type: text/plain, Size: 179 bytes --]
2008-12-08 Christophe Lyon <christophe.lyon@st.com>
* gdb.base/expand-psymtabs.c: Insert code in foo so that the
compiler actually generate code at the expected line number.
[-- Attachment #3: patch --]
[-- Type: text/plain, Size: 409 bytes --]
Index: src/gdb/testsuite/gdb.base/expand-psymtabs.c
===================================================================
--- src/gdb/testsuite/gdb.base/expand-psymtabs.c (revision 308)
+++ src/gdb/testsuite/gdb.base/expand-psymtabs.c (working copy)
@@ -27,9 +27,14 @@ main (void)
#else
void
+bar (void)
+ {
+ }
+
+void
foo (void)
{
- /* Break here */
+ bar(); /* Break here */
}
#endif
next reply other threads:[~2008-12-08 15:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 15:25 Christophe LYON [this message]
2008-12-10 17:29 ` Carlos Eduardo Seo
2008-12-11 8:50 ` Christophe LYON
2008-12-15 12:02 ` Christophe LYON
2008-12-16 6:29 ` Joel Brobecker
2008-12-16 10:28 ` Christophe LYON
2008-12-16 13:19 ` Denis PILAT
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=493D3C16.3010303@st.com \
--to=christophe.lyon@st.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