From d3771fe234b74d60cfa553940bce9d047bd38e8d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 22 Oct 2021 10:49:19 -0600 Subject: Add gdb.Architecture.integer_type Python function This adds a new Python function, gdb.Architecture.integer_type, which can be used to look up an integer type of a given size and signed-ness. This is useful to avoid dependency on debuginfo when a particular integer type would be useful. v2 moves this to be a method on gdb.Architecture and addresses other review comments. --- gdb/NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index c1e4dd0..9e950d2 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -49,6 +49,9 @@ maint show internal-warning backtrace containing all of the possible Architecture.name() values. Each entry is a string. + ** New function gdb.Architecture.integer_type(), which returns an + integer type given a size and a signed-ness. + * New features in the GDB remote stub, GDBserver ** GDBserver is now supported on OpenRISC GNU/Linux. -- cgit v1.1