[RFA] PR python/18565 - make Frame.function work for inline frames
Yao Qi
qiyaoltc@gmail.com
Tue Jun 21 08:34:00 GMT 2016
Tom Tromey <tom@tromey.com> writes:
> TRY
> {
> + char *funname;
> + enum language funlang;
> +
> FRAPY_REQUIRE_VALID (self, frame);
>
> - sym = find_pc_function (get_frame_address_in_block (frame));
> + find_frame_funname (frame, &funname, &funlang, &sym);
> + xfree (funname);
> }
> CATCH (except, RETURN_MASK_ALL)
> {
Call xfree in CATCH block? Otherwise, patch is good to me.
--
Yao (齐尧)
More information about the Gdb-patches
mailing list