Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner via Gdb-patches <gdb-patches@sourceware.org>
To: Guinevere Larsen <blarsen@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2 1/2] gdb/record: print frame information when exiting a recursive call
Date: Sun, 24 Sep 2023 10:53:21 -0700	[thread overview]
Message-ID: <20230924105321.3cb5be5e@f37-zws-nv> (raw)
In-Reply-To: <20230924125855.983839-3-blarsen@redhat.com>

On Sun, 24 Sep 2023 14:58:55 +0200
Guinevere Larsen <blarsen@redhat.com> wrote:

> +int
> +foo (int x)
> +{
> +  if (x) return foo(x-1);

Add space between 'foo' and left paren.

> +  return 0;
> +}
> +
> +int
> +bar (int x)
> +{
> +  int r = foo(x);

Likewise.

> +  return 2*r;
> +}
> +
> +int
> +main ()
> +{
> +  int i = bar(5);
> +  int j = foo(5);

Likewise for both bar and foo above.

> +  return 0;			/* END OF MAIN */
> +}


  reply	other threads:[~2023-09-24 17:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-23 10:34 [PATCH] " Guinevere Larsen via Gdb-patches
2023-09-23 21:56 ` Kevin Buettner via Gdb-patches
2023-09-24  9:55   ` Guinevere Larsen via Gdb-patches
2023-09-24 12:58 ` [PATCH v2 0/2] Improving frame printing with recursive Guinevere Larsen via Gdb-patches
2023-09-24 12:58 ` [PATCH v2 1/2] gdb/record: print frame information when exiting a recursive call Guinevere Larsen via Gdb-patches
2023-09-24 17:53   ` Kevin Buettner via Gdb-patches [this message]
2023-09-24 12:58 ` [PATCH v2 2/2] gdb/infrun: simplify process_event_stop_test Guinevere Larsen via Gdb-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230924105321.3cb5be5e@f37-zws-nv \
    --to=gdb-patches@sourceware.org \
    --cc=blarsen@redhat.com \
    --cc=kevinb@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox