]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Make GDB skip over some library functions [PR118260]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 7 Jan 2025 13:46:09 +0000 (13:46 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 8 Jan 2025 12:45:38 +0000 (12:45 +0000)
libstdc++-v3/ChangeLog:

PR libstdc++/118260
* python/hook.in: Run 'skip' commands for some simple accessor
functions.

libstdc++-v3/python/hook.in

index 11940c878f46b647c08986fb7869ee10d7530ab1..d63909d2af4c6ce749a79ba55be773d33071cc36 100644 (file)
@@ -55,6 +55,11 @@ if gdb.current_objfile () is not None:
     if not dir_ in sys.path:
         sys.path.insert(0, dir_)
 
+    gdb.execute('skip -rfu ^std::(move|forward|as_const|(__)?addressof)')
+    gdb.execute('skip -rfu ^std::(shared|unique)_ptr<.*>::(get|operator)')
+    gdb.execute('skip -rfu ^std::(basic_string|vector|array|deque|(forward_)?list|(unordered_|flat_)?(multi)?(map|set)|span)<.*>::(c?r?(begin|end)|front|back|data|size|empty)')
+    gdb.execute('skip -rfu ^std::(basic_string|vector|array|deque|span)<.*>::operator.]')
+
 # Call a function as a plain import would not execute body of the included file
 # on repeated reloads of this object file.
 from libstdcxx.v6 import register_libstdcxx_printers