This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim: cgen: namespace custom trace functions
- From: Doug Evans <dje at google dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 22 Jun 2015 09:09:58 -0500
- Subject: Re: [PATCH] sim: cgen: namespace custom trace functions
- Authentication-results: sourceware.org; auth=none
- References: <20150612091149 dot GC13625 at vapier> <CADPb22TYHgvAQW7emmueSPLp2FT5oezXMci9CxVc1s0Zq-YQmw at mail dot gmail dot com> <20150621184030 dot GA17734 at vapier>
On Sun, Jun 21, 2015 at 1:40 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On 14 Jun 2015 06:49, Doug Evans wrote:
>> On Fri, Jun 12, 2015 at 2:11 AM, Mike Frysinger wrote:
>> > The cgen code declares some macros/funcs using the trace_xxx prefix, but
>> > the code isn't generic and only works with cgen targets. This is blocking
>> > the creation of new common trace functions.
>> >
>> > Let's blindly add cgen_xxx prefixes to all these symbols. Some already
>> > use this convention to avoid conflicts, so it makes sense to align them.
>> > In the future we might want to move some to the common trace core, but
>> > one thing at a time.
>> >
>> > I'm attaching the patch compressed because it's like 2MB in size. It's
>> > all pretty mechanical -- the large files were updated using `sed`.
>> >
>> > Committed.
>>
>> Heads up, a lot of these are generated files.
>> I'm happy to update the generator and regenerate these.
>
> sorry about that. i'm not terribly familiar with cgen, and the heavy use of
> scheme makes it unlikely to improve the situation :/. looks like you posted
> a patch though at this point.
Feel free to ask for help.
Plus for simple renamings like this it's not that hard.
[If I can keep my lunch down from the Perl that's been
dropped on gdb, I just can't feel bad for having asked people
to learn some Scheme. :-)]