diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-10-06 20:40:59 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-10-06 20:40:59 +0100 |
commit | 8e756a12bd7aea1f374ef130ce6b33e8110f176f (patch) | |
tree | 67a4c69d201ce4d338d0d703d712c7b2d81d0966 /gdb/doc | |
parent | 8503550c4565cafca7e76721bc4462dd201375a6 (diff) | |
download | gdb-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.texinfo | 3 |
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. |