Re: [PATCH] Python API: Add gdb.is_in_prologue and gdb.is_in_epilogue.

Pedro Alves
2014-10-22T21:59:28Z

On 10/22/2014 10:34 PM, Pedro Alves wrote:
>> +# Get the current frame object.
>> > +gdb_py_test_silent_cmd "python selectedFrame = gdb.selected_frame()" \
>> > + "Get the current frame object." 0
> Lowercase, and no "." please. Here and throughout. Usual style is to
> drop the "the"s to be more concise:
>
> gdb_py_test_silent_cmd "python selectedFrame = gdb.selected_frame()" \
^^^^^^^^
> "get current frame object" 0
^^^^^^^

BTW, I happened to read this back, and noticed: "current" and "selected"
have distinct meanings in the frame machinery. Best not mix them up:

gdb_py_test_silent_cmd "python selectedFrame = gdb.selected_frame()" \
"get selected frame object" 0

Thanks,
Pedro Alves