From: Petr Machata <pmachata@redhat.com>
To: Doug Evans <dje@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH][V2] dwarf.exp: Allow generating a stub .debug_line section
Date: Mon, 30 Mar 2015 19:48:00 -0000 [thread overview]
Message-ID: <87pp7qjmh8.fsf@redhat.com> (raw)
In-Reply-To: <21785.37797.271814.469027@ruffy2.mtv.corp.google.com> (Doug Evans's message of "Mon, 30 Mar 2015 11:19:17 -0700")
Doug Evans <dje@google.com> writes:
> > + if { "$label" != "" } {
> > + $label:
> > + }
>
> Should this be:
>
> if { "$label" != "" } {
> _emit "$label:"
> }
No, it's calling the function named "$label:". To define the label that
the user supplied. Would this make it clearer?
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -1165,6 +1165,7 @@ namespace eval Dwarf {
_section $section
if { "$label" != "" } {
+ # Define the user-provided label at this point.
$label:
}
Thanks,
Petr
next prev parent reply other threads:[~2015-03-30 19:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-27 23:08 Petr Machata
2015-03-30 18:19 ` Doug Evans
2015-03-30 19:48 ` Petr Machata [this message]
2015-03-30 20:00 ` Doug Evans
2015-03-31 14:30 ` Petr Machata
-- strict thread matches above, loose matches on Subject: below --
2015-02-23 14:46 [PATCH V2] " Petr Machata
2015-02-23 23:21 ` Yao Qi
2015-02-24 0:07 ` Petr Machata
2015-02-24 12:44 ` Yao Qi
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=87pp7qjmh8.fsf@redhat.com \
--to=pmachata@redhat.com \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
/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