diff options
Diffstat (limited to 'gdb/guile/lib')
-rw-r--r-- | gdb/guile/lib/gdb.scm | 2 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/boot.scm | 2 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/experimental.scm | 2 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/init.scm | 2 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/iterator.scm | 4 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/printing.scm | 2 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/support.scm | 2 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/types.scm | 21 |
8 files changed, 28 insertions, 9 deletions
diff --git a/gdb/guile/lib/gdb.scm b/gdb/guile/lib/gdb.scm index afa6aa3..d0272970 100644 --- a/gdb/guile/lib/gdb.scm +++ b/gdb/guile/lib/gdb.scm @@ -1,6 +1,6 @@ ;; Scheme side of the gdb module. ;; -;; Copyright (C) 2014-2024 Free Software Foundation, Inc. +;; Copyright (C) 2014-2025 Free Software Foundation, Inc. ;; ;; This file is part of GDB. ;; diff --git a/gdb/guile/lib/gdb/boot.scm b/gdb/guile/lib/gdb/boot.scm index 31a47d0..b41551b 100644 --- a/gdb/guile/lib/gdb/boot.scm +++ b/gdb/guile/lib/gdb/boot.scm @@ -1,6 +1,6 @@ ;; Bootstrap the Scheme side of the gdb module. ;; -;; Copyright (C) 2014-2024 Free Software Foundation, Inc. +;; Copyright (C) 2014-2025 Free Software Foundation, Inc. ;; ;; This file is part of GDB. ;; diff --git a/gdb/guile/lib/gdb/experimental.scm b/gdb/guile/lib/gdb/experimental.scm index 0c79d18..df56f05 100644 --- a/gdb/guile/lib/gdb/experimental.scm +++ b/gdb/guile/lib/gdb/experimental.scm @@ -1,7 +1,7 @@ ;; Various experimental utilities. ;; Anything in this file can change or disappear. ;; -;; Copyright (C) 2014-2024 Free Software Foundation, Inc. +;; Copyright (C) 2014-2025 Free Software Foundation, Inc. ;; ;; This file is part of GDB. ;; diff --git a/gdb/guile/lib/gdb/init.scm b/gdb/guile/lib/gdb/init.scm index a675c6c..81a16e5 100644 --- a/gdb/guile/lib/gdb/init.scm +++ b/gdb/guile/lib/gdb/init.scm @@ -1,6 +1,6 @@ ;; Scheme side of the gdb module. ;; -;; Copyright (C) 2014-2024 Free Software Foundation, Inc. +;; Copyright (C) 2014-2025 Free Software Foundation, Inc. ;; ;; This file is part of GDB. ;; diff --git a/gdb/guile/lib/gdb/iterator.scm b/gdb/guile/lib/gdb/iterator.scm index f27fd96..14a957b 100644 --- a/gdb/guile/lib/gdb/iterator.scm +++ b/gdb/guile/lib/gdb/iterator.scm @@ -1,7 +1,7 @@ ;; Iteration utilities. ;; Anything in this file can change or disappear. ;; -;; Copyright (C) 2014-2024 Free Software Foundation, Inc. +;; Copyright (C) 2014-2025 Free Software Foundation, Inc. ;; ;; This file is part of GDB. ;; @@ -62,7 +62,7 @@ (iterator-for-each proc iter))))) (define-public (iterator-filter pred iter) - "Return the elements that satify predicate PRED." + "Return the elements that satisfy predicate PRED." (let loop ((result '())) (let ((next (iterator-next! iter))) (cond ((end-of-iteration? next) (reverse! result)) diff --git a/gdb/guile/lib/gdb/printing.scm b/gdb/guile/lib/gdb/printing.scm index 19daddd..3116c7c 100644 --- a/gdb/guile/lib/gdb/printing.scm +++ b/gdb/guile/lib/gdb/printing.scm @@ -1,6 +1,6 @@ ;; Additional pretty-printer support. ;; -;; Copyright (C) 2014-2024 Free Software Foundation, Inc. +;; Copyright (C) 2014-2025 Free Software Foundation, Inc. ;; ;; This file is part of GDB. ;; diff --git a/gdb/guile/lib/gdb/support.scm b/gdb/guile/lib/gdb/support.scm index 8b575ef..f508f16 100644 --- a/gdb/guile/lib/gdb/support.scm +++ b/gdb/guile/lib/gdb/support.scm @@ -1,6 +1,6 @@ ;; Internal support routines. ;; -;; Copyright (C) 2014-2024 Free Software Foundation, Inc. +;; Copyright (C) 2014-2025 Free Software Foundation, Inc. ;; ;; This file is part of GDB. ;; diff --git a/gdb/guile/lib/gdb/types.scm b/gdb/guile/lib/gdb/types.scm index 198de9d..a7b168c 100644 --- a/gdb/guile/lib/gdb/types.scm +++ b/gdb/guile/lib/gdb/types.scm @@ -1,5 +1,5 @@ ;; Type utilities. -;; Copyright (C) 2010-2024 Free Software Foundation, Inc. +;; Copyright (C) 2010-2025 Free Software Foundation, Inc. ;; ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -55,6 +55,25 @@ (search-class type)) +(define-public (get-basic-type type) + "Return the \"basic\" type of a given type. + + Arguments: + type: The type to reduce to its basic type. + + Returns: + TYPE with const/volatile stripped away, and typedefs/references + converted to the underlying type." + + (while (or (= (type-code type) TYPE_CODE_REF) + (= (type-code type) TYPE_CODE_RVALUE_REF) + (= (type-code type) TYPE_CODE_TYPEDEF)) + (if (= (type-code type) TYPE_CODE_TYPEDEF) + (set! type (type-strip-typedefs type)) + (set! type (type-target type)))) + + (type-unqualified type)) + (define-public (make-enum-hashtable enum-type) "Return a hash table from a program's enum type. |