addr2line format specifiers
Kurt Roeckx
kurt at roeckx.be
Fri Feb 24 21:36:32 UTC 2012
Hi,
addr2line.c:457 has:
char *name = NULL;
if (sscanf (string, "(%m[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2
&& string[i] == '\0')
parsed = adjust_to_section (name, &addr, dwfl);
switch (sscanf (string, "%m[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j))
And in the portability branch that got changed to:
char *name = NULL;
if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2
&& string[i] == '\0')
parsed = adjust_to_section (name, &addr, dwfl);
switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j))
But I think that that doesn't make sense. Isn't %m the gnu extention,
and that %a now follows the C99 standard and expects a float *?
Kurt
More information about the elfutils-devel
mailing list