summaryrefslogtreecommitdiff
path: root/ddb/db_sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'ddb/db_sym.c')
-rw-r--r--ddb/db_sym.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index 7d97d15..0179137 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -38,6 +38,7 @@
#include <ddb/db_sym.h>
#include <ddb/db_task_thread.h>
#include <ddb/db_aout.h>
+#include <ddb/db_elf.h>
#include <vm/vm_map.h> /* vm_map_t */
@@ -507,6 +508,10 @@ void db_free_symbol(db_sym_t s)
*/
void dummy_db_free_symbol(db_sym_t symbol) { }
+boolean_t dummy_db_sym_init(char *a, char *b, char *c, char *d) {
+ return FALSE;
+}
+
struct db_sym_switch x_db[] = {
@@ -521,7 +526,14 @@ struct db_sym_switch x_db[] = {
{ 0,},
/* Machdep, not inited here */
- { 0,}
+ { 0,},
+
+#ifdef DB_NO_ELF
+ { 0,},
+#else /* DB_NO_ELF */
+ { dummy_db_sym_init, elf_db_lookup, elf_db_search_symbol,
+ elf_db_line_at_pc, elf_db_symbol_values, dummy_db_free_symbol },
+#endif /* DB_NO_ELF */
};