This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 5/7 take 4] Improved linker-debugger interface
- From: Pedro Alves <palves at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>, gdb-patches at sourceware dot org
- Date: Fri, 31 May 2013 14:27:44 +0100
- Subject: Re: [RFA 5/7 take 4] Improved linker-debugger interface
- References: <20130516144340 dot GA2105 at blade dot nx> <20130516144838 dot GF2105 at blade dot nx> <20130517185002 dot GA10447 at host2 dot jankratochvil dot net> <20130524083044 dot GC4602 at blade dot nx> <51A64E24 dot 2020901 at redhat dot com> <20130530104346 dot GA6217 at blade dot nx> <51A789CF dot 2000302 at redhat dot com> <20130531132206 dot GB7409 at blade dot nx>
On 05/31/2013 02:22 PM, Gary Benson wrote:
> How about this:
>
> const char *name = probe_info[i].name;
> char buf[32];
>
> /* Fedora 17 and Red Hat Enterprise Linux 6.2-6.4
> shipped with an early version of the probes code in
> which the probes' names were prefixed with "rtld_"
> and the "map_failed" probe did not exist. The
> locations of the probes are otherwise the same, so
> we check for probes with prefixed names if probes
> with unprefixed names are not present. */
> if (with_prefix)
> {
> xsnprintf (buf, sizeof (buf), "rtld_%s", name);
> name = buf;
> }
>
Looks great. Thanks!
--
Pedro Alves