-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add hook.getObjectsOfClass and getAssignableClasses based on JVMTI
- Loading branch information
Showing
27 changed files
with
7,408 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.22.1) | ||
project("stethox") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20") | ||
add_library(${CMAKE_PROJECT_NAME} SHARED stethox.cpp plt.c classloader.cpp utils.cpp) | ||
|
||
target_link_libraries(${CMAKE_PROJECT_NAME} android log) | ||
include_directories(include) | ||
|
||
find_package(cxx REQUIRED CONFIG) | ||
link_libraries(cxx::cxx) | ||
|
||
add_library(${CMAKE_PROJECT_NAME} SHARED stethox.cpp plt.c classloader.cpp utils.cpp jvmti/stethox_jvmti.cpp) | ||
|
||
target_link_libraries(${CMAKE_PROJECT_NAME} log elf_parser maps_scan) | ||
add_subdirectory(elf_parser) | ||
add_subdirectory(maps_scan) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
project(elf_parser) | ||
|
||
add_library(elf_parser STATIC | ||
elf_parser.cc | ||
xz-embedded/xz_crc32.c | ||
xz-embedded/xz_crc64.c | ||
xz-embedded/xz_dec_lzma2.c | ||
xz-embedded/xz_dec_stream.c | ||
) | ||
target_include_directories(elf_parser PUBLIC include) | ||
target_include_directories(elf_parser PRIVATE xz-embedded) |
Oops, something went wrong.