This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]