From 2b531492447d10de27e6210117509097f6cbc9e0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 3 Feb 2022 11:45:59 -0700 Subject: 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. --- gdb/mi/mi-parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/mi/mi-parse.c') 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 { -- cgit v1.1