chore: rename TargetOps to DiffTargetApi
This commit is contained in:
parent
5ddf0b48be
commit
cac75f1698
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <vector>
|
||||
|
||||
// Target dynamic library has to implement these functions
|
||||
struct TargetOps {
|
||||
struct DiffTargetApi {
|
||||
typedef void (*cont_t)(void *args, gdb_action_t *res);
|
||||
cont_t cont;
|
||||
|
||||
|
@ -48,7 +48,7 @@ struct TargetMeta {
|
|||
|
||||
class Target {
|
||||
public:
|
||||
TargetOps ops;
|
||||
DiffTargetApi ops;
|
||||
TargetMeta meta;
|
||||
arch_info_t arch;
|
||||
size_t argsize;
|
||||
|
|
0
src/export.cpp
Normal file
0
src/export.cpp
Normal file
|
@ -18,7 +18,7 @@ Target::Target(const std::string &name, const std::string &func_prefix,
|
|||
|
||||
#define LOAD_SYMBOL(ops, handle, prefix, name) \
|
||||
do { \
|
||||
ops.name = reinterpret_cast<decltype(TargetOps::name)>( \
|
||||
ops.name = reinterpret_cast<decltype(DiffTargetApi::name)>( \
|
||||
dlsym(handle, (prefix + #name).c_str())); \
|
||||
if (!ops.name) \
|
||||
goto load_error; \
|
||||
|
|
Loading…
Reference in a new issue