]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/m2: add builtin procedure function ADR
authorGaius Mulley <gaiusmod2@gmail.com>
Sun, 6 Oct 2024 19:40:59 +0000 (20:40 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Sun, 6 Oct 2024 19:40:59 +0000 (20:40 +0100)
commit8e756a12bd7aea1f374ef130ce6b33e8110f176f
tree67a4c69d201ce4d338d0d703d712c7b2d81d0966
parent8503550c4565cafca7e76721bc4462dd201375a6
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>
gdb/doc/gdb.texinfo
gdb/m2-exp.y
gdb/testsuite/gdb.modula2/builtin-procedure-adr.exp [new file with mode: 0644]