diff options
Diffstat (limited to 'gdb/target-descriptions.c')
-rw-r--r-- | gdb/target-descriptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index c77acb6..ca5b4fd 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -183,7 +183,7 @@ target_find_description (void) /* The current architecture should not have any target description specified. It should have been cleared, e.g. when we disconnected from the previous target. */ - gdb_assert (gdbarch_target_desc (current_gdbarch) == NULL); + gdb_assert (gdbarch_target_desc (target_gdbarch) == NULL); /* First try to fetch an XML description from the user-specified file. */ @@ -216,7 +216,7 @@ target_find_description (void) { struct tdesc_arch_data *data; - data = gdbarch_data (current_gdbarch, tdesc_data); + data = gdbarch_data (target_gdbarch, tdesc_data); if (tdesc_has_registers (current_target_desc) && data->registers == NULL) warning (_("Target-supplied registers are not supported " |