[RFC][Python] gdbpy_frame_stop_reason_string bug

Pedro Alves pedro@codesourcery.com
Thu Oct 13 15:19:00 GMT 2011


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



More information about the Gdb-patches mailing list