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: [PATCH] infcmd, btrace: fix crash in 'finish' for tailcall-only frames


Markus Metzger <markus.t.metzger@intel.com> writes:

Patch is good to me, nits on code format,

> +  do {

"{" should be in the new line.

> +    start = frame;
> +
> +    frame = skip_tailcall_frames (frame);
> +    if (frame == NULL)
> +      break;
> +
> +    frame = skip_unwritable_frames (frame);
> +    if (frame == NULL)
> +      break;
> +  } while (start != frame);

"while" should be in the new line too.  The format is documented in
https://www.gnu.org/prep/standards/standards.html#Writing-C

-- 
Yao (éå)


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