[brain@ignatenko-w541 ripgrep]$ rust-gdb rg GNU gdb (GDB) Fedora 7.12.50.20170226-4.fc27 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from rg...Reading symbols from /usr/lib/debug/usr/bin/rg.debug...done. done. warning: Invalid entry in .debug_gdb_scripts section
As far as I can tell, the script is still loaded fine. (gdb) info auto-load python-scripts Loaded Script Yes gdb_load_rust_pretty_printers.py full name: /usr/lib/rustlib/etc/gdb_load_rust_pretty_printers.py Jan Kratochvil told me that GDB is complaining because that section is marked NOBITS, which he thought was a bug in GDB.
https://sourceware.org/ml/gdb-patches/2017-03/msg00263.html [patch] Fix warning: Invalid entry in .debug_gdb_scripts section
It is now checked in upstream. It will get to F-26 after the next rebase. https://sourceware.org/ml/gdb-patches/2017-03/msg00512.html