aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2024-10-06 20:40:59 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2024-10-06 20:40:59 +0100
commit8e756a12bd7aea1f374ef130ce6b33e8110f176f (patch)
tree67a4c69d201ce4d338d0d703d712c7b2d81d0966 /gdb/doc
parent8503550c4565cafca7e76721bc4462dd201375a6 (diff)
downloadgdb-8e756a12bd7aea1f374ef130ce6b33e8110f176f.zip
gdb-8e756a12bd7aea1f374ef130ce6b33e8110f176f.tar.gz
gdb-8e756a12bd7aea1f374ef130ce6b33e8110f176f.tar.bz2
gdb/m2: add builtin procedure function ADR
This patch introduces ADR to the Modula-2 language interface. It return the address of the parameter supplied. The patch also contains a dejagnu test for ADR. Tested on x86_64-linux. Approved-By: Tom Tromey <tom@tromey.com> Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/gdb.texinfo3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 65a88c8..46ca62e 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -18298,6 +18298,9 @@ All Modula-2 built-in procedures also return a result, described below.
@item ABS(@var{n})
Returns the absolute value of @var{n}.
+@item ADR(@var{n})
+Returns the memory address of @var{n}.
+
@item CAP(@var{c})
If @var{c} is a lower case letter, it returns its upper case
equivalent, otherwise it returns its argument.