* size.c: Fix formatting.
* srconv.c: Likewise. * stabs.c: Likewise. * sysdump.c: Likewise. * unwind-ia64.c: Likewise. * wrstabs.c: Likewise.
This commit is contained in:
parent
b91b96f4f6
commit
9f66665ac5
@ -1,3 +1,12 @@
|
|||||||
|
2002-05-23 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
|
* size.c: Fix formatting.
|
||||||
|
* srconv.c: Likewise.
|
||||||
|
* stabs.c: Likewise.
|
||||||
|
* sysdump.c: Likewise.
|
||||||
|
* unwind-ia64.c: Likewise.
|
||||||
|
* wrstabs.c: Likewise.
|
||||||
|
|
||||||
2002-05-23 Jakub Jelinek <jakub@redhat.com>
|
2002-05-23 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* readelf.c (get_segment_type): Add PT_TLS.
|
* readelf.c (get_segment_type): Add PT_TLS.
|
||||||
|
@ -84,7 +84,7 @@ usage (stream, status)
|
|||||||
{
|
{
|
||||||
fprintf (stream, _("Usage: %s [option(s)] [file(s)]\n"), program_name);
|
fprintf (stream, _("Usage: %s [option(s)] [file(s)]\n"), program_name);
|
||||||
fprintf (stream, _(" Displays the sizes of sections inside binary files\n"));
|
fprintf (stream, _(" Displays the sizes of sections inside binary files\n"));
|
||||||
fprintf (stream, _(" If no input file(s) are specified, a.out is assumed\n"));
|
fprintf (stream, _(" If no input file(s) are specified, a.out is assumed\n"));
|
||||||
fprintf (stream, _(" The options are:\n\
|
fprintf (stream, _(" The options are:\n\
|
||||||
-A|-B --format={sysv|berkeley} Select output style (default is %s)\n\
|
-A|-B --format={sysv|berkeley} Select output style (default is %s)\n\
|
||||||
-o|-d|-h --radix={8|10|16} Display numbers in octal, decimal or hex\n\
|
-o|-d|-h --radix={8|10|16} Display numbers in octal, decimal or hex\n\
|
||||||
@ -448,7 +448,7 @@ berkeley_sum (abfd, sec, ignore)
|
|||||||
bsssize += size;
|
bsssize += size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_berkeley_format (abfd)
|
print_berkeley_format (abfd)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
{
|
{
|
||||||
|
@ -104,7 +104,7 @@ static int debug = 0;
|
|||||||
static int quick = 0;
|
static int quick = 0;
|
||||||
static int noprescan = 0;
|
static int noprescan = 0;
|
||||||
static struct coff_ofile *tree;
|
static struct coff_ofile *tree;
|
||||||
/* Obsolete ??
|
/* Obsolete ??
|
||||||
static int absolute_p;
|
static int absolute_p;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -923,7 +923,7 @@ walk_tree_type_1 (sfile, symbol, type, nest)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Obsolete ?
|
/* Obsolete ?
|
||||||
static void
|
static void
|
||||||
dty_start ()
|
dty_start ()
|
||||||
{
|
{
|
||||||
@ -1632,17 +1632,17 @@ wr_cs ()
|
|||||||
0x80, /* IT */
|
0x80, /* IT */
|
||||||
0x21, /* RL */
|
0x21, /* RL */
|
||||||
0x00, /* number of chars in variable length part */
|
0x00, /* number of chars in variable length part */
|
||||||
0x80, /* hd */
|
0x80, /* hd */
|
||||||
0x00, /* hs */
|
0x00, /* hs */
|
||||||
0x80, /* un */
|
0x80, /* un */
|
||||||
0x00, /* us */
|
0x00, /* us */
|
||||||
0x80, /* sc */
|
0x80, /* sc */
|
||||||
0x00, /* ss */
|
0x00, /* ss */
|
||||||
0x80, /* er */
|
0x80, /* er */
|
||||||
0x80, /* ed */
|
0x80, /* ed */
|
||||||
0x80, /* sh */
|
0x80, /* sh */
|
||||||
0x80, /* ob */
|
0x80, /* ob */
|
||||||
0x80, /* rl */
|
0x80, /* rl */
|
||||||
0x80, /* du */
|
0x80, /* du */
|
||||||
0x80, /* dps */
|
0x80, /* dps */
|
||||||
0x80, /* dsy */
|
0x80, /* dsy */
|
||||||
@ -1886,7 +1886,7 @@ wr_unit_info (ptr)
|
|||||||
p2 = ftell (file);
|
p2 = ftell (file);
|
||||||
fseek (file, p1, SEEK_SET);
|
fseek (file, p1, SEEK_SET);
|
||||||
wr_un (ptr, sfile, first, nsecs);
|
wr_un (ptr, sfile, first, nsecs);
|
||||||
fseek (file, p2, SEEK_SET);
|
fseek (file, p2, SEEK_SET);
|
||||||
wr_er (ptr, sfile, first);
|
wr_er (ptr, sfile, first);
|
||||||
wr_ed (ptr, sfile, first);
|
wr_ed (ptr, sfile, first);
|
||||||
first = 0;
|
first = 0;
|
||||||
|
@ -562,7 +562,7 @@ parse_stab (dhandle, handle, type, desc, value, string)
|
|||||||
|
|
||||||
f = info->so_string;
|
f = info->so_string;
|
||||||
|
|
||||||
if (IS_ABSOLUTE_PATH (string))
|
if (IS_ABSOLUTE_PATH (string))
|
||||||
info->so_string = xstrdup (string);
|
info->so_string = xstrdup (string);
|
||||||
else
|
else
|
||||||
info->so_string = concat (info->so_string, string,
|
info->so_string = concat (info->so_string, string,
|
||||||
@ -1912,7 +1912,7 @@ parse_stab_sun_builtin_type (dhandle, pp)
|
|||||||
}
|
}
|
||||||
++*pp;
|
++*pp;
|
||||||
|
|
||||||
/* The second number is always 0, so ignore it too. */
|
/* The second number is always 0, so ignore it too. */
|
||||||
(void) parse_number (pp, (boolean *) NULL);
|
(void) parse_number (pp, (boolean *) NULL);
|
||||||
if (**pp != ';')
|
if (**pp != ';')
|
||||||
{
|
{
|
||||||
@ -1921,7 +1921,7 @@ parse_stab_sun_builtin_type (dhandle, pp)
|
|||||||
}
|
}
|
||||||
++*pp;
|
++*pp;
|
||||||
|
|
||||||
/* The third number is the number of bits for this type. */
|
/* The third number is the number of bits for this type. */
|
||||||
bits = parse_number (pp, (boolean *) NULL);
|
bits = parse_number (pp, (boolean *) NULL);
|
||||||
|
|
||||||
/* The type *should* end with a semicolon. If it are embedded
|
/* The type *should* end with a semicolon. If it are embedded
|
||||||
@ -1974,7 +1974,7 @@ parse_stab_sun_floating_type (dhandle, pp)
|
|||||||
|| details == NF_COMPLEX32)
|
|| details == NF_COMPLEX32)
|
||||||
return debug_make_complex_type (dhandle, bytes);
|
return debug_make_complex_type (dhandle, bytes);
|
||||||
|
|
||||||
return debug_make_float_type (dhandle, bytes);
|
return debug_make_float_type (dhandle, bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle an enum type. */
|
/* Handle an enum type. */
|
||||||
@ -2308,7 +2308,7 @@ parse_stab_struct_fields (dhandle, info, pp, retp, staticsp)
|
|||||||
/* Look for the ':' that separates the field name from the field
|
/* Look for the ':' that separates the field name from the field
|
||||||
values. Data members are delimited by a single ':', while member
|
values. Data members are delimited by a single ':', while member
|
||||||
functions are delimited by a pair of ':'s. When we hit the member
|
functions are delimited by a pair of ':'s. When we hit the member
|
||||||
functions (if any), terminate scan loop and return. */
|
functions (if any), terminate scan loop and return. */
|
||||||
|
|
||||||
p = strchr (p, ':');
|
p = strchr (p, ':');
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
@ -2759,27 +2759,27 @@ parse_stab_members (dhandle, info, tagname, pp, typenums, retp)
|
|||||||
/* Figure out from whence this virtual function
|
/* Figure out from whence this virtual function
|
||||||
came. It may belong to virtual function table of
|
came. It may belong to virtual function table of
|
||||||
one of its baseclasses. */
|
one of its baseclasses. */
|
||||||
look_ahead_type = parse_stab_type (dhandle, info,
|
look_ahead_type = parse_stab_type (dhandle, info,
|
||||||
(const char *) NULL,
|
(const char *) NULL,
|
||||||
pp,
|
pp,
|
||||||
(debug_type **) NULL);
|
(debug_type **) NULL);
|
||||||
if (**pp == ':')
|
if (**pp == ':')
|
||||||
{
|
{
|
||||||
/* g++ version 1 overloaded methods. */
|
/* g++ version 1 overloaded methods. */
|
||||||
context = DEBUG_TYPE_NULL;
|
context = DEBUG_TYPE_NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
context = look_ahead_type;
|
context = look_ahead_type;
|
||||||
look_ahead_type = DEBUG_TYPE_NULL;
|
look_ahead_type = DEBUG_TYPE_NULL;
|
||||||
if (**pp != ';')
|
if (**pp != ';')
|
||||||
{
|
{
|
||||||
bad_stab (orig);
|
bad_stab (orig);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
++*pp;
|
++*pp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '?':
|
case '?':
|
||||||
@ -3035,7 +3035,7 @@ parse_stab_tilde_field (dhandle, info, pp, typenums, retvptrbase, retownvptr)
|
|||||||
|
|
||||||
orig = *pp;
|
orig = *pp;
|
||||||
|
|
||||||
/* If we are positioned at a ';', then skip it. */
|
/* If we are positioned at a ';', then skip it. */
|
||||||
if (**pp == ';')
|
if (**pp == ';')
|
||||||
++*pp;
|
++*pp;
|
||||||
|
|
||||||
@ -3047,7 +3047,7 @@ parse_stab_tilde_field (dhandle, info, pp, typenums, retvptrbase, retownvptr)
|
|||||||
if (**pp == '=' || **pp == '+' || **pp == '-')
|
if (**pp == '=' || **pp == '+' || **pp == '-')
|
||||||
{
|
{
|
||||||
/* Obsolete flags that used to indicate the presence of
|
/* Obsolete flags that used to indicate the presence of
|
||||||
constructors and/or destructors. */
|
constructors and/or destructors. */
|
||||||
++*pp;
|
++*pp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3088,7 +3088,7 @@ parse_stab_tilde_field (dhandle, info, pp, typenums, retvptrbase, retownvptr)
|
|||||||
*pp = p + 1;
|
*pp = p + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read a definition of an array type. */
|
/* Read a definition of an array type. */
|
||||||
|
@ -107,10 +107,10 @@ dh (ptr, size)
|
|||||||
{
|
{
|
||||||
for (j = 0; j < span; j++)
|
for (j = 0; j < span; j++)
|
||||||
{
|
{
|
||||||
if (j + i < size)
|
if (j + i < size)
|
||||||
printf ("%02x ", ptr[i + j]);
|
printf ("%02x ", ptr[i + j]);
|
||||||
else
|
else
|
||||||
printf (" ");
|
printf (" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (j = 0; j < span && j + i < size; j++)
|
for (j = 0; j < span && j + i < size; j++)
|
||||||
|
@ -475,7 +475,7 @@ typedef bfd_vma unw_word;
|
|||||||
* macros/constants before including this file:
|
* macros/constants before including this file:
|
||||||
*
|
*
|
||||||
* Types:
|
* Types:
|
||||||
* unw_word Unsigned integer type with at least 64 bits
|
* unw_word Unsigned integer type with at least 64 bits
|
||||||
*
|
*
|
||||||
* Register names:
|
* Register names:
|
||||||
* UNW_REG_BSP
|
* UNW_REG_BSP
|
||||||
|
@ -795,7 +795,7 @@ stab_bool_type (p, size)
|
|||||||
case 2:
|
case 2:
|
||||||
index = -22;
|
index = -22;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case 4:
|
case 4:
|
||||||
index = -16;
|
index = -16;
|
||||||
@ -963,7 +963,7 @@ stab_modify_type (info, mod, size, cache, cache_alloc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Push a pointer type. */
|
/* Push a pointer type. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user