-
Notifications
You must be signed in to change notification settings - Fork 243
/
gumsymbolutil.h
39 lines (30 loc) · 1.05 KB
/
gumsymbolutil.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (C) 2008-2010 Ole André Vadla Ravnås <[email protected]>
* Copyright (C) 2008 Christian Berentsen <[email protected]>
* Copyright (C) 2020 Matt Oh <[email protected]>
*
* Licence: wxWindows Library Licence, Version 3.1
*/
#ifndef __GUM_SYMBOL_UTIL_H__
#define __GUM_SYMBOL_UTIL_H__
#include <gum/gummemory.h>
typedef struct _GumDebugSymbolDetails GumDebugSymbolDetails;
struct _GumDebugSymbolDetails
{
GumAddress address;
gchar module_name[GUM_MAX_PATH + 1];
gchar symbol_name[GUM_MAX_SYMBOL_NAME + 1];
gchar file_name[GUM_MAX_PATH + 1];
guint line_number;
guint column;
};
G_BEGIN_DECLS
GUM_API gboolean gum_symbol_details_from_address (gpointer address,
GumDebugSymbolDetails * details);
GUM_API gchar * gum_symbol_name_from_address (gpointer address);
GUM_API gpointer gum_find_function (const gchar * name);
GUM_API GArray * gum_find_functions_named (const gchar * name);
GUM_API GArray * gum_find_functions_matching (const gchar * str);
GUM_API gboolean gum_load_symbols (const gchar * path);
G_END_DECLS
#endif