aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-parse.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-02-03 11:45:59 -0700
committerTom Tromey <tromey@adacore.com>2022-02-04 07:37:22 -0700
commit2b531492447d10de27e6210117509097f6cbc9e0 (patch)
tree5e08243a39a075762c852e656563a6c3faf62b38 /gdb/mi/mi-parse.c
parentfd3c53675c01472caaa4eb976781b9d6d2d3c53d (diff)
downloadgdb-2b531492447d10de27e6210117509097f6cbc9e0.zip
gdb-2b531492447d10de27e6210117509097f6cbc9e0.tar.gz
gdb-2b531492447d10de27e6210117509097f6cbc9e0.tar.bz2
Remove host_hex_value
I noticed that host_hex_value is redundant, because gdbsupport already has fromhex. This patch removes the former in favor of the latter. Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/mi/mi-parse.c')
-rw-r--r--gdb/mi/mi-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-parse.c b/gdb/mi/mi-parse.c
index d5febce..dfa7b46 100644
--- a/gdb/mi/mi-parse.c
+++ b/gdb/mi/mi-parse.c
@@ -57,7 +57,7 @@ mi_parse_escape (const char **string_ptr)
case '6':
case '7':
{
- int i = host_hex_value (c);
+ int i = fromhex (c);
int count = 0;
while (++count < 3)
@@ -67,7 +67,7 @@ mi_parse_escape (const char **string_ptr)
{
(*string_ptr)++;
i *= 8;
- i += host_hex_value (c);
+ i += fromhex (c);
}
else
{