From: Tom Tromey <tromey@redhat.com>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Implement -break-commands
Date: Wed, 29 Jul 2009 21:08:00 -0000 [thread overview]
Message-ID: <m38wi7wcg9.fsf@fleche.redhat.com> (raw)
In-Reply-To: <200907272050.41744.vladimir@codesourcery.com> (Vladimir Prus's message of "Mon\, 27 Jul 2009 20\:50\:40 +0400")
Tom> There's some other little style nits in the patch -- over-bracing
Tom> in the second patch, mostly.
Volodya> Is that something you want fixed? I do prefer bracing
Volodya> everything, since that is safer in the long run.
Yes, please fix this. AFAIK this is the documented style.
Volodya> +void
Volodya> +breakpoint_set_commands (struct breakpoint *b, struct command_line *commands)
Tom> Needs a header comment.
Volodya> Do we have a policy if function should be documented in header,
Volodya> or implementation? It seems many existing files have comments
Volodya> on implementation.
It is hard to say whether we arrived at a policy the last time we had
this discussion. These things rarely seem to converge, they just wander
off into the weeds.
I usually follow the prevailing style of the module I am modifying.
That is always a safe thing to do.
Tom> I think this would be cleaner if read_command_lines_1 took a "user_data"
Tom> argument and then there were no new globals.
Volodya> It would be clearer, though I decided not to do that because
Volodya> it's not likely we'll need another such function, and the use
Volodya> of globals in this context is ugly, but safe. Shall I refactor?
This one is up to you :-)
Tom
next prev parent reply other threads:[~2009-07-29 18:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 16:00 Vladimir Prus
2009-07-27 16:08 ` Marc Khouzam
2009-07-27 16:17 ` Vladimir Prus
2009-07-27 18:49 ` Tom Tromey
2009-07-27 17:38 ` Vladimir Prus
2009-07-29 21:08 ` Tom Tromey [this message]
2009-07-30 7:54 ` Vladimir Prus
2009-07-30 16:57 ` Tom Tromey
2009-08-03 12:40 ` Vladimir Prus
2009-07-30 21:22 ` Eli Zaretskii
2009-08-03 12:42 ` Vladimir Prus
2009-08-03 18:22 ` Eli Zaretskii
2009-07-27 18:56 ` Eli Zaretskii
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=m38wi7wcg9.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.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