summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-04-29 21:36:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-04-29 21:36:48 (GMT)
commit85ddac0558313b5d3fbd9428ae3e9614f16d514d (patch)
tree208bdf6311ba8414e38909870be753fcd062d404 /src/analysis
parent2e867fcae6e91594ae47528ca097952398ffcca4 (diff)
Improved the documentation of the disassembly cache for Python.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/binary.c4
-rw-r--r--src/analysis/binary.h2
-rw-r--r--src/analysis/db/items/bookmark.c2
-rw-r--r--src/analysis/db/items/comment.c2
-rw-r--r--src/analysis/disass/block.c4
-rw-r--r--src/analysis/routine.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 0f7b096..bdee11b 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -1236,7 +1236,7 @@ GArchProcessor *g_loaded_binary_get_processor(const GLoadedBinary *binary)
* *
******************************************************************************/
-GBufferCache *g_loaded_binary_get_disassembled_cache(const GLoadedBinary *binary)
+GBufferCache *g_loaded_binary_get_disassembly_cache(const GLoadedBinary *binary)
{
GBufferCache *result; /* Instance à retourner */
@@ -1973,7 +1973,7 @@ static GtkWidget *g_loaded_binary_build_view(GLoadedBinary *binary, unsigned int
break;
case BVW_BLOCK:
- cache = g_loaded_binary_get_disassembled_cache(binary);
+ cache = g_loaded_binary_get_disassembly_cache(binary);
view = g_buffer_view_new(cache, NULL);
display = gtk_block_display_new(view);
break;
diff --git a/src/analysis/binary.h b/src/analysis/binary.h
index 925fbb0..74c5f7f 100644
--- a/src/analysis/binary.h
+++ b/src/analysis/binary.h
@@ -143,7 +143,7 @@ GExeFormat *g_loaded_binary_get_format(const GLoadedBinary *);
GArchProcessor *g_loaded_binary_get_processor(const GLoadedBinary *);
/* Fournit le tampon associé au contenu assembleur d'un binaire. */
-GBufferCache *g_loaded_binary_get_disassembled_cache(const GLoadedBinary *);
+GBufferCache *g_loaded_binary_get_disassembly_cache(const GLoadedBinary *);
/* -------------------- SAUVEGARDE ET RESTAURATION DE PARAMETRES -------------------- */
diff --git a/src/analysis/db/items/bookmark.c b/src/analysis/db/items/bookmark.c
index 3cf9f3c..f493559 100644
--- a/src/analysis/db/items/bookmark.c
+++ b/src/analysis/db/items/bookmark.c
@@ -530,7 +530,7 @@ static bool g_db_bookmark_run(GDbBookmark *bookmark, GLoadedBinary *binary, bool
result = false;
- cache = g_loaded_binary_get_disassembled_cache(binary);
+ cache = g_loaded_binary_get_disassembly_cache(binary);
if (cache == NULL) goto exit;
g_buffer_cache_lock(cache);
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c
index 241451f..6c1f6d9 100644
--- a/src/analysis/db/items/comment.c
+++ b/src/analysis/db/items/comment.c
@@ -635,7 +635,7 @@ static bool g_db_comment_run(GDbComment *comment, GLoadedBinary *binary, bool ap
result = true;
- cache = g_loaded_binary_get_disassembled_cache(binary);
+ cache = g_loaded_binary_get_disassembly_cache(binary);
cursor = g_binary_cursor_new();
g_binary_cursor_update(G_BINARY_CURSOR(cursor), &comment->addr);
diff --git a/src/analysis/disass/block.c b/src/analysis/disass/block.c
index c80d464..d314b5a 100644
--- a/src/analysis/disass/block.c
+++ b/src/analysis/disass/block.c
@@ -496,7 +496,7 @@ static GBufferView *g_basic_block_build_view(const GBasicBlock *block, segcnt_li
end = g_binary_cursor_new();
g_binary_cursor_update(G_BINARY_CURSOR(end), get_mrange_addr(last_range));
- cache = g_loaded_binary_get_disassembled_cache(block->binary);
+ cache = g_loaded_binary_get_disassembly_cache(block->binary);
result = g_buffer_view_new(cache, highlighted);
@@ -637,7 +637,7 @@ static char *g_basic_block_build_tooltip(const GBasicBlock *block)
string_info = NULL;
proc = g_loaded_binary_get_processor(block->binary);
- cache = g_loaded_binary_get_disassembled_cache(block->binary);
+ cache = g_loaded_binary_get_disassembly_cache(block->binary);
iter = g_arch_processor_get_iter_from_address(proc, get_mrange_addr(&range));
if (iter == NULL) goto no_iter;
diff --git a/src/analysis/routine.c b/src/analysis/routine.c
index 240004f..82f30f8 100644
--- a/src/analysis/routine.c
+++ b/src/analysis/routine.c
@@ -1102,7 +1102,7 @@ char *g_binary_routine_build_tooltip(const GBinRoutine *routine, const GLoadedBi
string_info = NULL;
proc = g_loaded_binary_get_processor(binary);
- cache = g_loaded_binary_get_disassembled_cache(binary);
+ cache = g_loaded_binary_get_disassembly_cache(binary);
/* Parcours des instructions */