projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use scoped_value_mark in dwarf2_evaluate_loc_desc_full
[binutils-gdb.git]
/
binutils
/
prdbg.c
diff --git
a/binutils/prdbg.c
b/binutils/prdbg.c
index 4ef481cddeff020a67bb9ae9cef4ed56bdacb1ac..9bd01bc071a8704e0c0662708d4eae8338e3b6f6 100644
(file)
--- a/
binutils/prdbg.c
+++ b/
binutils/prdbg.c
@@
-1,5
+1,5
@@
/* prdbg.c -- Print out generic debugging information.
/* prdbg.c -- Print out generic debugging information.
- Copyright (C) 1995-201
5
Free Software Foundation, Inc.
+ Copyright (C) 1995-201
7
Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
Tags style generation written by Salvador E. Tropea <set@computer.org>.
Written by Ian Lance Taylor <ian@cygnus.com>.
Tags style generation written by Salvador E. Tropea <set@computer.org>.
@@
-291,7
+291,8
@@
static const struct debug_write_fns tg_fns =
bfd_boolean
print_debugging_info (FILE *f, void *dhandle, bfd *abfd, asymbol **syms,
bfd_boolean
print_debugging_info (FILE *f, void *dhandle, bfd *abfd, asymbol **syms,
- void *demangler, bfd_boolean as_tags)
+ char * (*demangler) (struct bfd *, const char *, int),
+ bfd_boolean as_tags)
{
struct pr_handle info;
{
struct pr_handle info;
@@
-302,7
+303,7
@@
print_debugging_info (FILE *f, void *dhandle, bfd *abfd, asymbol **syms,
info.filename = NULL;
info.abfd = abfd;
info.syms = syms;
info.filename = NULL;
info.abfd = abfd;
info.syms = syms;
- info.demangler =
(char * (*)(struct bfd *, const char *, int))
demangler;
+ info.demangler = demangler;
if (as_tags)
{
if (as_tags)
{
@@
-671,7
+672,7
@@
pr_enum_type (void *p, const char *tag, const char **names,
if (values[i] != val)
{
if (values[i] != val)
{
- char ab[2
0
];
+ char ab[2
2
];
print_vma (values[i], ab, FALSE, FALSE);
if (! append_type (info, " = ")
print_vma (values[i], ab, FALSE, FALSE);
if (! append_type (info, " = ")
@@
-801,7
+802,7
@@
static bfd_boolean
pr_range_type (void *p, bfd_signed_vma lower, bfd_signed_vma upper)
{
struct pr_handle *info = (struct pr_handle *) p;
pr_range_type (void *p, bfd_signed_vma lower, bfd_signed_vma upper)
{
struct pr_handle *info = (struct pr_handle *) p;
- char abl[2
0], abu[20
];
+ char abl[2
2], abu[22
];
assert (info->stack != NULL);
assert (info->stack != NULL);
@@
-826,7
+827,7
@@
pr_array_type (void *p, bfd_signed_vma lower, bfd_signed_vma upper,
{
struct pr_handle *info = (struct pr_handle *) p;
char *range_type;
{
struct pr_handle *info = (struct pr_handle *) p;
char *range_type;
- char abl[2
0], abu[20
], ab[50];
+ char abl[2
2], abu[22
], ab[50];
range_type = pop_type (info);
if (range_type == NULL)
range_type = pop_type (info);
if (range_type == NULL)
@@
-1150,7
+1151,7
@@
pr_struct_field (void *p, const char *name, bfd_vma bitpos, bfd_vma bitsize,
enum debug_visibility visibility)
{
struct pr_handle *info = (struct pr_handle *) p;
enum debug_visibility visibility)
{
struct pr_handle *info = (struct pr_handle *) p;
- char ab[2
0
];
+ char ab[2
2
];
char *t;
if (! substitute_type (info, name))
char *t;
if (! substitute_type (info, name))
@@
-1334,7
+1335,7
@@
pr_class_baseclass (void *p, bfd_vma bitpos, bfd_boolean is_virtual,
struct pr_handle *info = (struct pr_handle *) p;
char *t;
const char *prefix;
struct pr_handle *info = (struct pr_handle *) p;
char *t;
const char *prefix;
- char ab[2
0
];
+ char ab[2
2
];
char *s, *l, *n;
assert (info->stack != NULL && info->stack->next != NULL);
char *s, *l, *n;
assert (info->stack != NULL && info->stack->next != NULL);
@@
-1494,7
+1495,7
@@
pr_class_method_variant (void *p, const char *physname,
return FALSE;
if (context || voffset != 0)
{
return FALSE;
if (context || voffset != 0)
{
- char ab[2
0
];
+ char ab[2
2
];
if (context)
{
if (context)
{
@@
-1601,7
+1602,7
@@
pr_tag_type (void *p, const char *name, unsigned int id,
{
struct pr_handle *info = (struct pr_handle *) p;
const char *t, *tag;
{
struct pr_handle *info = (struct pr_handle *) p;
const char *t, *tag;
- char idbuf[2
0
];
+ char idbuf[2
2
];
switch (kind)
{
switch (kind)
{
@@
-1697,7
+1698,7
@@
static bfd_boolean
pr_int_constant (void *p, const char *name, bfd_vma val)
{
struct pr_handle *info = (struct pr_handle *) p;
pr_int_constant (void *p, const char *name, bfd_vma val)
{
struct pr_handle *info = (struct pr_handle *) p;
- char ab[2
0
];
+ char ab[2
2
];
indent (info);
print_vma (val, ab, FALSE, FALSE);
indent (info);
print_vma (val, ab, FALSE, FALSE);
@@
-1724,7
+1725,7
@@
pr_typed_constant (void *p, const char *name, bfd_vma val)
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
- char ab[2
0
];
+ char ab[2
2
];
t = pop_type (info);
if (t == NULL)
t = pop_type (info);
if (t == NULL)
@@
-1747,7
+1748,7
@@
pr_variable (void *p, const char *name, enum debug_var_kind kind,
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
- char ab[2
0
];
+ char ab[2
2
];
if (! substitute_type (info, name))
return FALSE;
if (! substitute_type (info, name))
return FALSE;
@@
-1810,7
+1811,7
@@
pr_function_parameter (void *p, const char *name,
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
- char ab[2
0
];
+ char ab[2
2
];
if (kind == DEBUG_PARM_REFERENCE
|| kind == DEBUG_PARM_REF_REG)
if (kind == DEBUG_PARM_REFERENCE
|| kind == DEBUG_PARM_REF_REG)
@@
-1848,7
+1849,7
@@
static bfd_boolean
pr_start_block (void *p, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
pr_start_block (void *p, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
- char ab[2
0
];
+ char ab[2
2
];
if (info->parameter > 0)
{
if (info->parameter > 0)
{
@@
-1871,7
+1872,7
@@
static bfd_boolean
pr_lineno (void *p, const char *filename, unsigned long lineno, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
pr_lineno (void *p, const char *filename, unsigned long lineno, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
- char ab[2
0
];
+ char ab[2
2
];
indent (info);
print_vma (addr, ab, TRUE, TRUE);
indent (info);
print_vma (addr, ab, TRUE, TRUE);
@@
-1886,7
+1887,7
@@
static bfd_boolean
pr_end_block (void *p, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
pr_end_block (void *p, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
- char ab[2
0
];
+ char ab[2
2
];
info->indent -= 2;
info->indent -= 2;
@@
-1992,7
+1993,7
@@
tg_enum_type (void *p, const char *tag, const char **names,
struct pr_handle *info = (struct pr_handle *) p;
unsigned int i;
const char *name;
struct pr_handle *info = (struct pr_handle *) p;
unsigned int i;
const char *name;
- char ab[2
0
];
+ char ab[2
2
];
if (! pr_enum_type (p, tag, names, values))
return FALSE;
if (! pr_enum_type (p, tag, names, values))
return FALSE;
@@
-2539,7
+2540,7
@@
static bfd_boolean
tg_int_constant (void *p, const char *name, bfd_vma val)
{
struct pr_handle *info = (struct pr_handle *) p;
tg_int_constant (void *p, const char *name, bfd_vma val)
{
struct pr_handle *info = (struct pr_handle *) p;
- char ab[2
0
];
+ char ab[2
2
];
indent (info);
print_vma (val, ab, FALSE, FALSE);
indent (info);
print_vma (val, ab, FALSE, FALSE);
@@
-2568,7
+2569,7
@@
tg_typed_constant (void *p, const char *name, bfd_vma val)
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
{
struct pr_handle *info = (struct pr_handle *) p;
char *t;
- char ab[2
0
];
+ char ab[2
2
];
t = pop_type (info);
if (t == NULL)
t = pop_type (info);
if (t == NULL)
@@
-2746,7
+2747,7
@@
static bfd_boolean
tg_start_block (void *p, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
tg_start_block (void *p, bfd_vma addr)
{
struct pr_handle *info = (struct pr_handle *) p;
- char ab[2
0
], kind, *partof;
+ char ab[2
2
], kind, *partof;
char *t;
bfd_boolean local;
char *t;
bfd_boolean local;