This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][Python] gdbpy_frame_stop_reason_string bug
The patch appears to be missing unwind_stop_reasons.def.
> +#define SET(name, description) \
> + PyModule_AddIntConstant (gdb_module, "FRAME_"#name, unwind_cpt++);
> +#include "gdb/unwind_stop_reasons.def"
What's that `unwind_cpt' for? Wouldn't:
#define SET(name, description) \
PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name);
work?
--
Pedro Alves