Home | History | Annotate | Download | only in gdbsupport

Lines Matching refs:width

40 decimal2str (const char *sign, ULONGEST addr, int width)
53 width -= 9;
57 width += 9;
58 if (width < 0)
59 width = 0;
64 xsnprintf (str, PRINT_CELL_SIZE, "%s%0*lu", sign, width, temp[0]);
67 xsnprintf (str, PRINT_CELL_SIZE, "%s%0*lu%09lu", sign, width,
71 xsnprintf (str, PRINT_CELL_SIZE, "%s%0*lu%09lu%09lu", sign, width,
82 octal2str (ULONGEST addr, int width)
93 width -= 10;
97 width += 10;
98 if (width < 0)
99 width = 0;
105 xsnprintf (str, PRINT_CELL_SIZE, "%*o", width, 0);
107 xsnprintf (str, PRINT_CELL_SIZE, "0%0*lo", width, temp[0]);
110 xsnprintf (str, PRINT_CELL_SIZE, "0%0*lo%010lo", width, temp[1], temp[0]);
113 xsnprintf (str, PRINT_CELL_SIZE, "0%0*lo%010lo%010lo", width,
236 hex_string_custom (LONGEST num, int width)
243 if (hex_len > width)
244 width = hex_len;
245 if (width + 2 >= PRINT_CELL_SIZE)
249 strcpy (result_end - width - 2, "0x");
250 memset (result_end - width, '0', width);
252 return result_end - width - 2;
258 int_string (LONGEST val, int radix, int is_signed, int width,
267 if (width == 0)
270 result = hex_string_custom (val, width);
282 return decimal2str ("-", -(ULONGEST)val, width);
284 return decimal2str ("", val, width);
288 char *result = octal2str (val, width);