Changeset 7db39f7 for libcfa/src/interpose.cfa
- Timestamp:
- Jan 11, 2024, 9:19:17 AM (7 months ago)
- Branches:
- master
- Children:
- a3f820b, ee16f8fc
- Parents:
- 8655363
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/interpose.cfa
r8655363 r7db39f7 10 10 // Created On : Wed Mar 29 16:10:31 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jan 4 11:04:06202413 // Update Count : 21 512 // Last Modified On : Thu Jan 11 09:09:34 2024 13 // Update Count : 217 14 14 // 15 15 … … 18 18 extern "C" { 19 19 #include <dlfcn.h> // dlopen, dlsym 20 //#include <link.h> // dl_iterate_phdr 21 struct dl_phdr_info; 22 int dl_iterate_phdr( int (*)( struct dl_phdr_info *, size_t, void * ), void * ); 20 #include <link.h> // dl_iterate_phdr 23 21 #include <execinfo.h> // backtrace, messages 24 22 } … … 158 156 159 157 extern "C" int dl_iterate_phdr( int (* callback)( struct dl_phdr_info *, size_t, void * ), void * data ) { 160 // assert( RealRtn::dl_iterate_phdr != nullptr );161 158 disable_interrupts(); 162 int ret = __cabi_libc.dl_iterate_phdr( callback, data ); 159 int ret = __cabi_libc.dl_iterate_phdr( callback, data ); // call real routine 163 160 enable_interrupts( false ); 164 161 return ret;
Note: See TracChangeset
for help on using the changeset viewer.