[PATCH v3 1/4] gdb/python doc: Add register_unwinder to code example

Paulo Neves ptsneves@gmail.com
Fri Jun 3 16:01:36 GMT 2022


It is now clear in the example code that an unwinder needs to be
registered to be used.
---
 gdb/doc/python.texi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index ba5a9b315e1..228d515a817 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -2823,6 +2823,8 @@ class MyUnwinder(Unwinder):
         # Return the result:
         return unwind_info
 
+# To use an unwinder it needs to be registered and enabled.
+gdb.unwinder.register_unwinder (<locus>, MyUnwinder, replace=<True|False>)
 @end smallexample
 
 @subheading Registering a Unwinder
-- 
2.25.1



More information about the Gdb-patches mailing list