[RFA 5/7 take 4] Improved linker-debugger interface
Pedro Alves
palves@redhat.com
Fri May 31 13:27:00 GMT 2013
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
More information about the Gdb-patches
mailing list