diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-11-22 18:30:38 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-11-24 23:10:17 +0100 |
commit | 21a911aa9623928b70f88804a40ec764e7952211 (patch) | |
tree | 10650460e0e34a9f2b5282dbb3759153b05a93a5 /ddb | |
parent | 403d8f883d3653c124012f01bb54ea9cae83d06b (diff) |
ddb: move forward declarations into a header file
* ddb/db_examine.c (db_disasm, db_search): Remove forward declarations.
* ddb/db_examine.h (db_disasm, db_search): Add prototypes.
Diffstat (limited to 'ddb')
-rw-r--r-- | ddb/db_examine.c | 4 | ||||
-rw-r--r-- | ddb/db_examine.h | 18 |
2 files changed, 16 insertions, 6 deletions
diff --git a/ddb/db_examine.c b/ddb/db_examine.c index 31f77bd..3d2c42b 100644 --- a/ddb/db_examine.c +++ b/ddb/db_examine.c @@ -53,9 +53,6 @@ int db_examine_count = 1; db_addr_t db_examine_prev_addr = 0; thread_t db_examine_thread = THREAD_NULL; -extern db_addr_t db_disasm(db_addr_t pc, boolean_t altform, task_t task); - /* instruction disassembler */ - /* * Examine (print) data. */ @@ -343,7 +340,6 @@ db_strcpy(dst, src) ; } -void db_search(); /*forward*/ /* * Search for a value in memory. * Syntax: search [/bhl] addr value [mask] [,count] [thread] diff --git a/ddb/db_examine.h b/ddb/db_examine.h index e1fb1ee..e4f3415 100644 --- a/ddb/db_examine.h +++ b/ddb/db_examine.h @@ -61,8 +61,22 @@ int db_xcdump( int count, task_t task); -void db_print_cmd(); +void db_print_cmd(void); -void db_search_cmd(); +void db_search_cmd(void); + +void db_search( + db_addr_t addr, + int size, + db_expr_t value, + db_expr_t mask, + unsigned int count, + task_t task); + +/* instruction disassembler */ +extern db_addr_t db_disasm( + db_addr_t pc, + boolean_t altform, + task_t task); #endif /* _DDB_DB_EXAMINE_H_ */ |