aboutsummaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_access.c3
-rw-r--r--ddb/db_examine.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/ddb/db_access.c b/ddb/db_access.c
index 16d4d3ef..509c1ba4 100644
--- a/ddb/db_access.c
+++ b/ddb/db_access.c
@@ -72,7 +72,8 @@ db_get_task_value(
db_expr_t value;
int i;
- db_read_bytes(addr, size, data, task);
+ if (!db_read_bytes(addr, size, data, task))
+ return 0;
value = 0;
#if BYTE_MSF
diff --git a/ddb/db_examine.c b/ddb/db_examine.c
index 836b0e89..6f94b686 100644
--- a/ddb/db_examine.c
+++ b/ddb/db_examine.c
@@ -473,7 +473,10 @@ db_xcdump(
if (!DB_CHECK_ACCESS(next_page_addr, sizeof(int), task))
bcount = next_page_addr - addr;
}
- db_read_bytes(addr, bcount, data, task);
+ if (!db_read_bytes(addr, bcount, data, task)) {
+ db_printf("*\n");
+ continue;
+ }
for (i = 0; i < bcount && off != 0; i += size) {
if (i % 4 == 0)
db_printf(" ");