+2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
+ cp_search_name_hash.
+ * NEWS: Add entry about nested function support.
+
2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
Andrew Burgess <andrew.burgess@embecosm.com>
* New convenience variable $_ada_exception holds the address of the
Ada exception being thrown. This is set by Ada-related catchpoints.
+* GDB can now place breakpoints on nested functions and subroutines in
+ Fortran code. The '::' operator can be used between parent and
+ child scopes when placing breakpoints, for example:
+
+ (gdb) break outer_function::inner_function
+
+ The 'outer_function::' prefix is only needed if 'inner_function' is
+ not visible in the current scope.
+
* Python API
** The gdb.Value type has a new method 'format_string' which returns a
default_pass_by_reference,
default_get_string,
c_watch_location_expression,
- NULL, /* la_get_symbol_name_matcher */
+ cp_get_symbol_name_matcher, /* la_get_symbol_name_matcher */
iterate_over_symbols,
- default_search_name_hash,
+ cp_search_name_hash,
&default_varobj_ops,
NULL,
NULL,
+2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.fortran/nested-funcs-2.exp: Run tests with and without the
+ nested function prefix.
+
2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
Richard Bunt <richard.bunt@arm.com>
Andrew Burgess <andrew.burgess@embecosm.com>
".*print \\\*, program_i ! post_hidden"
gdb_test "p program_i" " = 30" "printing hidden global"
- # Check that the methods in the container module still require the
- # module name as context.
- gdb_test_no_output "set confirm off"
- gdb_test "break print_from_module" \
- "Function \\\"print_from_module\\\" not defined."
-
# Check info symbol, whatis and ptype can find information on
# these nested functions.
foreach entry \
}
foreach_with_prefix src_prefix { 0 1 } {
- # For now this loop is only run with a value of '1'. A later
- # patch will extend this with the value '0', at which point this
- # comment will be removed.
- foreach_with_prefix nest_prefix { 1 } {
+ foreach_with_prefix nest_prefix { 0 1 } {
do_bp_tests ${src_prefix} ${nest_prefix}
}
}