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/regformats: remove unused regformats/reg-*.dat
[deliverable/binutils-gdb.git]
/
binutils
/
addr2line.c
diff --git
a/binutils/addr2line.c
b/binutils/addr2line.c
index 817b125f634087c2fca2c45b6e9cacce19d3e9f6..846720fc81886dae7896c7aed38baeb49293c560 100644
(file)
--- a/
binutils/addr2line.c
+++ b/
binutils/addr2line.c
@@
-1,5
+1,5
@@
/* addr2line.c -- convert addresses to line number and function name
/* addr2line.c -- convert addresses to line number and function name
- Copyright (C) 1997-20
18
Free Software Foundation, Inc.
+ Copyright (C) 1997-20
20
Free Software Foundation, Inc.
Contributed by Ulrich Lauther <Ulrich.Lauther@mchp.siemens.de>
This file is part of GNU Binutils.
Contributed by Ulrich Lauther <Ulrich.Lauther@mchp.siemens.de>
This file is part of GNU Binutils.
@@
-182,14
+182,14
@@
find_address_in_section (bfd *abfd, asection *section,
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;
@@
-208,10
+208,10
@@
find_offset_in_section (bfd *abfd, asection *section)
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;
- size = bfd_
get_
section_size (section);
+ size = bfd_section_size (section);
if (pc >= size)
return;
if (pc >= size)
return;
@@
-314,8
+314,7
@@
translate_addresses (bfd *abfd, asection *section)
else
printf ("\n");
else
printf ("\n");
- if (alloc != NULL)
- free (alloc);
+ free (alloc);
}
if (base_names && filename != NULL)
}
if (base_names && filename != NULL)
@@
-410,11
+409,8
@@
process_file (const char *file_name, const char *section_name,
translate_addresses (abfd, section);
translate_addresses (abfd, section);
- if (syms != NULL)
- {
- free (syms);
- syms = NULL;
- }
+ free (syms);
+ syms = NULL;
bfd_close (abfd);
bfd_close (abfd);
This page took
0.024663 seconds
and
4
git commands to generate.