[Patch][Python] PR python/13285 Document named constants for frame unwind stop reasons

Kevin Pouget kevin.pouget@gmail.com
Thu Oct 13 12:39:00 GMT 2011


On Wed, Oct 12, 2011 at 7:05 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:
>
>>> Why not use the supplied gdb constants in this case?  "2" does not map
>>> to any enum.
>>> IE gdb.FRAME_UNWIND_NO_REASON
>
> Kevin> it looks like these enums are not documented, are they? I can't grep
> Kevin> 'FRAME_UNWIND_NO_REASON' in gdb.texinfo
>
> Yeah, we should document those.
> I filed: http://sourceware.org/bugzilla/show_bug.cgi?id=13285
>
> Tom

Hello,

I've prepared a bit of documentation for these named constants, based
on their comments in the source code.
The concept of frame ID (struct frame_id) is not exposed in the Python
interface, but I'm not sure that the constants could be explained
without this idea.

Thanks,

Kevin

2011-10-13  Kevin Pouget  <kevin.pouget@st.com>

	PR python/13285 Document named constants for frame unwind stop reasons
	* gdb.texinfo (Frames In Python): Document gdb.FRAME_UNWIND_*
	constants.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb.texinfo.patch
Type: text/x-patch
Size: 1684 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20111013/dfe27ad2/attachment.bin>


More information about the Gdb-patches mailing list