Skip to content

Commit

Permalink
even more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Dec 19, 2024
1 parent 7069cb9 commit cabdb93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/boost/dll/detail/pe_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class pe_info {

std::cerr << "!!!!!! BEFORE exports(fs, h)\n";
const exports_t exprt = exports(fs, h);
std::cerr << "!!!!!! AFTER exports(fs, h)\n";
std::cerr << "!!!!!! AFTER exports(fs, h) exprt.NumberOfFunctions " << exprt.NumberOfFunctions << "\n";
const std::size_t exported_symbols = exprt.NumberOfFunctions;
const std::size_t fixed_names_addr = get_file_offset(fs, exprt.AddressOfNames, h);
const std::size_t fixed_ordinals_addr = get_file_offset(fs, exprt.AddressOfNameOrdinals, h);
Expand All @@ -358,10 +358,12 @@ class pe_info {
// getting ordinal
fs.seekg(fixed_ordinals_addr + i * sizeof(ordinal));
read_raw(fs, ordinal);
std::cerr << "!!!!!! LOOP exported_symbols ordinal " << ordinal << "\n";

// getting function addr
fs.seekg(fixed_functions_addr + ordinal * sizeof(ptr));
read_raw(fs, ptr);
std::cerr << "!!!!!! LOOP exported_symbols ptr " << ptr << "\n";
ptr = static_cast<boost::dll::detail::DWORD_>( get_file_offset(fs, ptr, h) );

std::cerr << "!!!!!! LOOP exported_symbols " << ptr << " >= " << section_end_addr << " || " << ptr << " < " << section_begin_addr << "\n";
Expand Down

0 comments on commit cabdb93

Please sign in to comment.