if (flags & VER_FLG_WEAK)
{
if (endp != buf)
- endp = stpcpy (endp, "| ");
+ endp = stpcpy (endp, "| ");
endp = stpcpy (endp, "WEAK ");
}
printf (gettext ("\
Average number of tests: successful lookup: %f\n\
- unsuccessful lookup: %f\n"),
+ unsuccessful lookup: %f\n"),
(double) success / (double) nzero_counts,
(double) nzero_counts / (double) nbucket);
}
return DWARF_CB_ABORT;
}
char *a = format_dwarf_addr (cbargs->dwflmod, cbargs->addrsize, addr);
- printf (" %*s%-20s %s\n",
- (int) (level * 2), "", dwarf_attr_string (attr), a);
+ printf (" %*s%-20s (%s) %s\n",
+ (int) (level * 2), "", dwarf_attr_string (attr),
+ dwarf_form_string (form), a);
free (a);
}
break;
const char *str = dwarf_formstring (attrp);
if (unlikely (str == NULL))
goto attrval_out;
- printf (" %*s%-20s \"%s\"\n",
- (int) (level * 2), "", dwarf_attr_string (attr), str);
+ printf (" %*s%-20s (%s) \"%s\"\n",
+ (int) (level * 2), "", dwarf_attr_string (attr),
+ dwarf_form_string (form), str);
break;
case DW_FORM_ref_addr:
if (unlikely (dwarf_formref_die (attrp, &ref) == NULL))
goto attrval_out;
- printf (" %*s%-20s [%6" PRIxMAX "]\n",
+ printf (" %*s%-20s (%s) [%6" PRIxMAX "]\n",
(int) (level * 2), "", dwarf_attr_string (attr),
- (uintmax_t) dwarf_dieoffset (&ref));
+ dwarf_form_string (form), (uintmax_t) dwarf_dieoffset (&ref));
break;
case DW_FORM_udata:
case DW_AT_data_member_location:
if (form != DW_FORM_data4 && form != DW_FORM_data8)
{
- printf (" %*s%-20s %" PRIxMAX "\n",
+ printf (" %*s%-20s (%s) %" PRIxMAX "\n",
(int) (level * 2), "", dwarf_attr_string (attr),
- (uintmax_t) num);
+ dwarf_form_string (form), (uintmax_t) num);
return DWARF_CB_OK;
}
/* else fallthrough */
case DW_AT_frame_base:
case DW_AT_return_addr:
case DW_AT_static_link:
- printf (" %*s%-20s location list [%6" PRIxMAX "]\n",
+ printf (" %*s%-20s (%s) location list [%6" PRIxMAX "]\n",
(int) (level * 2), "", dwarf_attr_string (attr),
- (uintmax_t) num);
+ dwarf_form_string (form), (uintmax_t) num);
return DWARF_CB_OK;
case DW_AT_ranges:
- printf (" %*s%-20s range list [%6" PRIxMAX "]\n",
+ printf (" %*s%-20s (%s) range list [%6" PRIxMAX "]\n",
(int) (level * 2), "", dwarf_attr_string (attr),
- (uintmax_t) num);
+ dwarf_form_string (form), (uintmax_t) num);
return DWARF_CB_OK;
case DW_AT_language:
}
if (valuestr == NULL)
- printf (" %*s%-20s %" PRIuMAX "\n",
+ printf (" %*s%-20s (%s) %" PRIuMAX "\n",
(int) (level * 2), "", dwarf_attr_string (attr),
- (uintmax_t) num);
+ dwarf_form_string (form), (uintmax_t) num);
else
- printf (" %*s%-20s %s (%" PRIuMAX ")\n",
+ printf (" %*s%-20s (%s) %s (%" PRIuMAX ")\n",
(int) (level * 2), "", dwarf_attr_string (attr),
- valuestr, (uintmax_t) num);
+ dwarf_form_string (form), valuestr, (uintmax_t) num);
break;
case DW_FORM_flag:;
if (unlikely (dwarf_formflag (attrp, &flag) != 0))
goto attrval_out;
- printf (" %*s%-20s %s\n",
+ printf (" %*s%-20s (%s) %s\n",
(int) (level * 2), "", dwarf_attr_string (attr),
- nl_langinfo (flag ? YESSTR : NOSTR));
+ dwarf_form_string (form), nl_langinfo (flag ? YESSTR : NOSTR));
break;
case DW_FORM_block4:
if (unlikely (dwarf_formblock (attrp, &block) != 0))
goto attrval_out;
- printf (" %*s%-20s ",
- (int) (level * 2), "", dwarf_attr_string (attr));
+ printf (" %*s%-20s (%s) ",
+ (int) (level * 2), "", dwarf_attr_string (attr),
+ dwarf_form_string (form));
switch (attr)
{
break;
default:
- printf (" %*s%-20s [form: %d] ???\n",
+ printf (" %*s%-20s (form: %#x) ???\n",
(int) (level * 2), "", dwarf_attr_string (attr),
(int) form);
break;
/* Next the minimum instruction length. */
uint_fast8_t minimum_instr_len = *linep++;
- /* Then the flag determining the default value of the is_stmt
+ /* Then the flag determining the default value of the is_stmt
register. */
uint_fast8_t default_is_stmt = *linep++;
is computed with
opcode = (desired line increment - line_base)
- + (line_range * address advance) + opcode_base
+ + (line_range * address advance) + opcode_base
*/
int line_increment = (line_base
+ (opcode - opcode_base) % line_range);
case DW_MACINFO_undef:
case DW_MACINFO_vendor_ext:
/* For the first two opcodes the parameters are
- line, string
+ line, string
For the latter
- number, string.
+ number, string.
We can treat these cases together. */
get_uleb128 (u128, readp);