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/python/py-objfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-objfile.c') diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index 48d2eb3..8c56879 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -550,7 +550,7 @@ objfpy_build_id_matches (const struct bfd_build_id *build_id, for (i = 0; i < build_id->size; ++i) { char c1 = string[i * 2], c2 = string[i * 2 + 1]; - int byte = (host_hex_value (c1) << 4) | host_hex_value (c2); + int byte = (fromhex (c1) << 4) | fromhex (c2); if (byte != build_id->data[i]) return 0; -- cgit v1.1