summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-11-17 19:30:41 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-11-17 19:30:41 +0000
commitbb06c8eddb1916ac32c8949bc1450c6a602ebd24 (patch)
tree82546eadccc33e61682256f0464d856dc09114ef /gdb/utils.c
parent0359335297e89c82724aecf28e8a46e84ce441d4 (diff)
downloadgdb-bb06c8eddb1916ac32c8949bc1450c6a602ebd24.tar.gz
* utils.c (string_to_core_addr): Use error instead of
internal_error. * mi/mi-main.c (mi_execute_command): Check for a NULL message.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index c64629c5161..b33eadd1878 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -2865,7 +2865,7 @@ string_to_core_addr (const char *my_string)
else if (isxdigit (my_string[i]))
addr = (tolower (my_string[i]) - 'a' + 0xa) + (addr * 16);
else
- internal_error (__FILE__, __LINE__, _("invalid hex"));
+ error (_("invalid hex \"%s\""), my_string);
}
}
else
@@ -2877,7 +2877,7 @@ string_to_core_addr (const char *my_string)
if (isdigit (my_string[i]))
addr = (my_string[i] - '0') + (addr * 10);
else
- internal_error (__FILE__, __LINE__, _("invalid decimal"));
+ error (_("invalid decimal \"%s\""), my_string);
}
}
return addr;