Files
binutils-gdb/gdb/doc
Tom de Vries f96ad03c0e [gdb/doc] Indicate in which languages 'filename'::funcaddr works
In the docs I read [1]:
...
In this section, we discuss operators that you can use in GDB expressions
regardless of your programming language.

    ...

GDB supports these operators, in addition to those common to programming
languages:

    ‘::’ allows you to specify a variable in terms of the file or function
    where it is defined. See Program Variables.
...

In fact, this is not supported in Ada:
...
(gdb) b *'foo.adb'::foo
No file or function "foo.adb'".
(gdb)
...
and likewise in a few other working languages.

Fix this by making this restriction explicit.

Approved-By: Eli Zaretskii <eliz@gnu.org>

PR gdb/32753
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32753

[1] https://sourceware.org/gdb/current/onlinedocs/gdb.html/Expressions.html
2025-03-03 17:13:21 +01:00
..
2025-01-12 13:30:43 -07:00
2024-12-20 12:46:11 -08:00