From df86565b31bf12aab6fdceade49169bc6f378b13 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 21 Sep 2022 11:05:21 -0400 Subject: gdb: remove TYPE_LENGTH Remove the macro, replace all uses with calls to type::length. Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb --- gdb/findcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/findcmd.c') diff --git a/gdb/findcmd.c b/gdb/findcmd.c index ed2cea7..889e31b 100644 --- a/gdb/findcmd.c +++ b/gdb/findcmd.c @@ -187,7 +187,7 @@ parse_find_args (const char *args, ULONGEST *max_countp, { const gdb_byte *contents = value_contents (v).data (); pattern_buf.insert (pattern_buf.end (), contents, - contents + TYPE_LENGTH (t)); + contents + t->length ()); } if (*s == ',') -- cgit v1.1