projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gdb/symtab] Enable ada .gdb_index
[deliverable/binutils-gdb.git]
/
binutils
/
prdbg.c
diff --git
a/binutils/prdbg.c
b/binutils/prdbg.c
index 5f14d32fb3f179def49ab144243654220524343f..1b376f485fecf04303d39b6240c1475e65e8dfa9 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-20
18
Free Software Foundation, Inc.
+ Copyright (C) 1995-20
20
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>.
@@
-1624,7
+1624,7
@@
pr_tag_type (void *p, const char *name, unsigned int id,
t = "union class ";
break;
default:
t = "union class ";
break;
default:
- abort ();
+ /* PR 25625: Corrupt input can trigger this case. */
return FALSE;
}
return FALSE;
}
@@
-1930,14
+1930,14
@@
find_address_in_section (bfd *abfd, asection *section, void *data)
if (found)
return;
if (found)
return;
- if ((bfd_
get_section_flags (abfd,
section) & SEC_ALLOC) == 0)
+ if ((bfd_
section_flags (
section) & SEC_ALLOC) == 0)
return;
return;
- vma = bfd_
get_section_vma (abfd,
section);
+ vma = bfd_
section_vma (
section);
if (pc < vma)
return;
if (pc < vma)
return;
- size = bfd_
get_
section_size (section);
+ size = bfd_section_size (section);
if (pc >= vma + size)
return;
if (pc >= vma + size)
return;
@@
-2117,6
+2117,7
@@
tg_start_class_type (void *p, const char *tag, unsigned int id,
struct pr_handle *info = (struct pr_handle *) p;
char *tv = NULL;
const char *name;
struct pr_handle *info = (struct pr_handle *) p;
char *tv = NULL;
const char *name;
+ char idbuf[20];
info->indent += 2;
info->indent += 2;
@@
-2131,8
+2132,6
@@
tg_start_class_type (void *p, const char *tag, unsigned int id,
name = tag;
else
{
name = tag;
else
{
- char idbuf[20];
-
sprintf (idbuf, "%%anon%u", id);
name = idbuf;
}
sprintf (idbuf, "%%anon%u", id);
name = idbuf;
}
This page took
0.023894 seconds
and
4
git commands to generate.