This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] New "producer" attribute for gdb.Symtab objects
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Doug Evans <dje at google dot com>, Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org, eliz at gnu dot org
- Date: Thu, 18 Sep 2014 15:16:49 +0100
- Subject: Re: [PATCH] New "producer" attribute for gdb.Symtab objects
- Authentication-results: sourceware.org; auth=none
- References: <yjt2ppevf8il dot fsf at ruffy dot mtv dot corp dot google dot com> <5418D665 dot 5090309 at redhat dot com> <21530 dot 11079 dot 11868 dot 273521 at ruffy2 dot mtv dot corp dot google dot com>
On 18/09/14 01:45, Doug Evans wrote:
> Pedro Alves writes:
> > On 09/17/2014 12:30 AM, Doug Evans wrote:
> > > +# We can't do much to test the producer string (compiler name+version).
> >
> > Sounds like a job for the testsuite's dwarf compiler.
> >
> > > +# But we do have support for knowing whether gcc was used, so we can at
> > > +# least use that.
> > > +if { $gcc_compiled } {
> > > + set producer_regexp "GNU.*"
> > > +} else {
> > > + set producer_regexp ""
> > > +}
>
> Indeed.
I looked at the patch and it seems just fine. Is it just GCC that
inserts a producer?
Cheers
Phil