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

Paulo Neves via Gdb-patches
2022-05-28T11:56:44Z

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 cb5283e03c0..5b7fba798a9 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -2814,6 +2814,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