projects
/
platform
/
upstream
/
elfutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2eabd8
)
Fix trivial regression in last commit.
author
Roland McGrath
<roland@redhat.com>
Fri, 8 May 2009 01:57:18 +0000
(18:57 -0700)
committer
Roland McGrath
<roland@redhat.com>
Fri, 8 May 2009 01:57:18 +0000
(18:57 -0700)
libdw/dwarf_getmacros.c
patch
|
blob
|
history
diff --git
a/libdw/dwarf_getmacros.c
b/libdw/dwarf_getmacros.c
index
22afbc3
..
4220ebe
100644
(file)
--- a/
libdw/dwarf_getmacros.c
+++ b/
libdw/dwarf_getmacros.c
@@
-65,6
+65,9
@@
dwarf_getmacros (die, callback, arg, offset)
void *arg;
ptrdiff_t offset;
{
+ if (d == NULL)
+ return -1;
+
Elf_Data *d = die->cu->dbg->sectiondata[IDX_debug_macinfo];
if (unlikely (d == NULL) || unlikely (d->d_buf == NULL))
{