From: Pedro Alves <palves@redhat.com>
To: Mark Wielaard <mjw@redhat.com>
Cc: Stan Shebs <stanshebs@earthlink.net>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Use GCC5/DWARF5 DW_AT_noreturn to mark functions that don't return normally.
Date: Sat, 24 Jan 2015 00:32:00 -0000 [thread overview]
Message-ID: <54C2825C.50302@redhat.com> (raw)
In-Reply-To: <1422030805.4858.16.camel@bordewijk.wildebeest.org>
On 01/23/2015 04:33 PM, Mark Wielaard wrote:
> On Wed, 2015-01-21 at 17:07 +0000, Pedro Alves wrote:
>>> diff --git a/gdb/testsuite/gdb.base/noreturn.c b/gdb/testsuite/gdb.base/noreturn.c
>>> new file mode 100644
>>> index 0000000..e39cf15
>>> --- /dev/null
>>> +++ b/gdb/testsuite/gdb.base/noreturn.c
>>> @@ -0,0 +1,13 @@
>>
>> Please add a copyright header. Even though some of our old
>> files don't have it, all new files should, even if the file
>> is small (so that we don't have to recall adding it back
>> if the file grows in future).
>
> Added.
> Note that most .c files in gdb.base don't have such a header.
Yeah, that's why I felt completed to explain why we add it for
new files. Adding the header to old files now requires looking at
the logs to know what would be the correct year range. That's a lot
of boring work, so nobody ever does it. And that's exactly
the work you've now spared someone in the future by adding
the copyright header now.
> Added the void.
> Note most existing .c tests in gdb.base don't declare functions with
> void arguments.
Yes, a lot of old code in the testsuite doesn't follow
the currently agreed rules for new files.
Doesn't mean we need to keep repeating past mistakes though.
See:
https://sourceware.org/gdb/wiki/Internals%20GDB-Testsuite-Coding-Standards
https://sourceware.org/gdb/wiki/GDBTestcaseCookbook
It's just the usual problem of lacking manpower to go through the
existing tests and update them. It'd be great to see that
done (volunteers very much welcome!), but meanwhile, we try to
avoid propagating bad idioms in new tests.
Thanks,
Pedro Alves
prev parent reply other threads:[~2015-01-23 17:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-27 14:53 Mark Wielaard
2014-12-04 13:26 ` Mark Wielaard
2014-12-04 14:02 ` Pedro Alves
2014-12-09 10:49 ` Mark Wielaard
2014-12-09 18:57 ` Stan Shebs
2014-12-10 11:25 ` Mark Wielaard
2014-12-12 10:47 ` Pedro Alves
2015-01-15 23:56 ` Mark Wielaard
2015-01-21 17:07 ` Pedro Alves
2015-01-23 16:42 ` Mark Wielaard
2015-01-24 0:32 ` Pedro Alves [this message]
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=54C2825C.50302@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=mjw@redhat.com \
--cc=stanshebs@earthlink.net \
/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