diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-01-07 13:46:09 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-01-08 12:45:38 +0000 |
commit | 6b4ff53381250c56ecfc69204e662d8832d113e5 (patch) | |
tree | 356269df39b35c5f95011b77bbc2d364ca6b7173 | |
parent | 653a44e8613edf6c306687d17cf3039536f1bf12 (diff) | |
download | gcc-6b4ff53381250c56ecfc69204e662d8832d113e5.zip gcc-6b4ff53381250c56ecfc69204e662d8832d113e5.tar.gz gcc-6b4ff53381250c56ecfc69204e662d8832d113e5.tar.bz2 |
libstdc++: Make GDB skip over some library functions [PR118260]
libstdc++-v3/ChangeLog:
PR libstdc++/118260
* python/hook.in: Run 'skip' commands for some simple accessor
functions.
-rw-r--r-- | libstdc++-v3/python/hook.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/python/hook.in b/libstdc++-v3/python/hook.in index 11940c8..d63909d 100644 --- a/libstdc++-v3/python/hook.in +++ b/libstdc++-v3/python/hook.in @@ -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 |