* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
From-SVN: r204971
This commit is contained in:
parent
aadce58599
commit
582f5a2df8
@ -1,3 +1,7 @@
|
||||
2013-11-18 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
|
||||
|
||||
2013-11-16 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* backtrace.h (backtrace_create_state): Correct comment about
|
||||
|
@ -863,12 +863,8 @@ phdr_callback (struct dl_phdr_info *info, size_t size ATTRIBUTE_UNUSED,
|
||||
fileline elf_fileline_fn;
|
||||
int found_dwarf;
|
||||
|
||||
/* There is not much we can do if we don't have the module name. If
|
||||
the base address is 0, this is probably the executable, which we
|
||||
already loaded. */
|
||||
if (info->dlpi_name == NULL
|
||||
|| info->dlpi_name[0] == '\0'
|
||||
|| info->dlpi_addr == 0)
|
||||
/* There is not much we can do if we don't have the module name. */
|
||||
if (info->dlpi_name == NULL || info->dlpi_name[0] == '\0')
|
||||
return 0;
|
||||
|
||||
descriptor = backtrace_open (info->dlpi_name, pd->error_callback, pd->data,
|
||||
|
Loading…
Reference in New Issue
Block a user