diff options
author | Roland McGrath <roland@redhat.com> | 2010-03-10 23:49:13 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-03-11 00:00:20 -0800 |
commit | 8068e06dd70d08789fafd8d6d22bbb42adbd2e7d (patch) | |
tree | c198133b372ad6c45b26301d7a1197d4d5a70377 /libdwfl/libdwfl.h | |
parent | dd7a9d79b88cf55d0b2c0e57e5f46373308e0cac (diff) | |
download | elfutils-8068e06dd70d08789fafd8d6d22bbb42adbd2e7d.tar.gz |
Export dwfl_core_file_report.
Diffstat (limited to 'libdwfl/libdwfl.h')
-rw-r--r-- | libdwfl/libdwfl.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index fafc75e5..51e98187 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -1,5 +1,5 @@ /* Interfaces for libdwfl. - Copyright (C) 2005-2009 Red Hat, Inc. + Copyright (C) 2005-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -359,6 +359,15 @@ extern int dwfl_linux_kernel_report_offline (Dwfl *dwfl, const char *release, int (*predicate) (const char *, const char *)); +/* Examine an ET_CORE file and report modules based on its contents. + This can follow a dwfl_report_offline call to bootstrap the + DT_DEBUG method of following the dynamic linker link_map chain, in + case the core file does not contain enough of the executable's text + segment to locate its PT_DYNAMIC in the dump. This might call + dwfl_report_elf on file names found in the dump if reading some + link_map files is the only way to ascertain those modules' addresses. + Returns the number of modules reported, or -1 for errors. */ +extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf); /* Call dwfl_report_module for each file mapped into the address space of PID. Returns zero on success, -1 if dwfl_report_module failed, |