Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] unneeded extra brace in infrun.c (handle_inferior_event)
@ 2002-07-16 14:02 Joel Brobecker
  2002-07-16 14:09 ` Elena Zannoni
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2002-07-16 14:02 UTC (permalink / raw)
  To: gdb-patches

While reading the code, I found this comment along the extra unneeded
brace:

     /* Keep this extra brace for now, minimizes diffs.  */
     {

This brace causes an extra 2 characters indentation to the right for the
entire function (which is quite long, actually).  No big deal, but it
would take me very little time to remove it if that's useful. Shall I do
it?

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] unneeded extra brace in infrun.c (handle_inferior_event)
  2002-07-16 14:02 [RFC] unneeded extra brace in infrun.c (handle_inferior_event) Joel Brobecker
@ 2002-07-16 14:09 ` Elena Zannoni
  2002-07-16 16:59   ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Elena Zannoni @ 2002-07-16 14:09 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

Joel Brobecker writes:
 > While reading the code, I found this comment along the extra unneeded
 > brace:
 > 
 >      /* Keep this extra brace for now, minimizes diffs.  */
 >      {
 > 
 > This brace causes an extra 2 characters indentation to the right for the
 > entire function (which is quite long, actually).  No big deal, but it
 > would take me very little time to remove it if that's useful. Shall I do
 > it?
 > 
 > -- 
 > Joel

I remember that! (Does that mean I am becoming an old timer? Oh dear.)
The comment was introduced by Stan when he did some major cleanup of
this function (at the time called wait_for_inferior).  There were so
many changes that adding formatting changes would have made really
difficult to track (and back possibly back out) all the functional
ones.

I vote for reindenting the code. Infrun.c has been on the quiet side
for a bit, and I don't think this change will cause any problems.

Elena


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] unneeded extra brace in infrun.c (handle_inferior_event)
  2002-07-16 14:09 ` Elena Zannoni
@ 2002-07-16 16:59   ` Joel Brobecker
  2002-07-16 17:17     ` Kevin Buettner
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2002-07-16 16:59 UTC (permalink / raw)
  To: Elena Zannoni; +Cc: gdb-patches

> I vote for reindenting the code. Infrun.c has been on the quiet side
> for a bit, and I don't think this change will cause any problems.

I can do the following, all within a short period:
  - remove the braces (without indentation change)
  - commit
  - run gdb_indent.sh
  - commit
  
That way, we have one commit which contains a code change, but the diff
is readable. The second diff may be unreadable, but will contain no code
change.

Should I go ahead?
-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] unneeded extra brace in infrun.c (handle_inferior_event)
  2002-07-16 16:59   ` Joel Brobecker
@ 2002-07-16 17:17     ` Kevin Buettner
  2002-07-16 19:00       ` Elena Zannoni
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Buettner @ 2002-07-16 17:17 UTC (permalink / raw)
  To: Joel Brobecker, Elena Zannoni; +Cc: gdb-patches

On Jul 16,  4:30pm, Joel Brobecker wrote:

> I can do the following, all within a short period:
>   - remove the braces (without indentation change)
>   - commit
>   - run gdb_indent.sh
>   - commit
>   
> That way, we have one commit which contains a code change, but the diff
> is readable. The second diff may be unreadable, but will contain no code
> change.
> 
> Should I go ahead?

Sounds okay to me...

(I'd say go ahead provided you get a couple more "yes" votes and no
objections.)

Kevin


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] unneeded extra brace in infrun.c (handle_inferior_event)
  2002-07-16 17:17     ` Kevin Buettner
@ 2002-07-16 19:00       ` Elena Zannoni
  2002-07-16 20:32         ` Elena Zannoni
  0 siblings, 1 reply; 6+ messages in thread
From: Elena Zannoni @ 2002-07-16 19:00 UTC (permalink / raw)
  To: Kevin Buettner; +Cc: Joel Brobecker, Elena Zannoni, gdb-patches

Kevin Buettner writes:
 > On Jul 16,  4:30pm, Joel Brobecker wrote:
 > 
 > > I can do the following, all within a short period:
 > >   - remove the braces (without indentation change)
 > >   - commit
 > >   - run gdb_indent.sh
 > >   - commit
 > >   
 > > That way, we have one commit which contains a code change, but the diff
 > > is readable. The second diff may be unreadable, but will contain no code
 > > change.
 > > 
 > > Should I go ahead?
 > 
 > Sounds okay to me...
 > 
 > (I'd say go ahead provided you get a couple more "yes" votes and no
 > objections.)

It had my vote. I would just go ahead (post the diffs, though).

Elena


 > 
 > Kevin


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] unneeded extra brace in infrun.c (handle_inferior_event)
  2002-07-16 19:00       ` Elena Zannoni
@ 2002-07-16 20:32         ` Elena Zannoni
  0 siblings, 0 replies; 6+ messages in thread
From: Elena Zannoni @ 2002-07-16 20:32 UTC (permalink / raw)
  To: gdb-patches; +Cc: Kevin Buettner, Joel Brobecker

Elena Zannoni writes:
 > Kevin Buettner writes:
 >  > On Jul 16,  4:30pm, Joel Brobecker wrote:
 >  > 
 >  > > I can do the following, all within a short period:
 >  > >   - remove the braces (without indentation change)
 >  > >   - commit
 >  > >   - run gdb_indent.sh
 >  > >   - commit
 >  > >   
 >  > > That way, we have one commit which contains a code change, but the diff
 >  > > is readable. The second diff may be unreadable, but will contain no code
 >  > > change.
 >  > > 
 >  > > Should I go ahead?
 >  > 
 >  > Sounds okay to me...
 >  > 
 >  > (I'd say go ahead provided you get a couple more "yes" votes and no
 >  > objections.)
 > 
 > It had my vote. I would just go ahead (post the diffs, though).
 > 

I mean, this would give people time to object. Wait until the next day
before committing.

 > Elena
 > 
 > 
 >  > 
 >  > Kevin


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-07-17  2:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-16 14:02 [RFC] unneeded extra brace in infrun.c (handle_inferior_event) Joel Brobecker
2002-07-16 14:09 ` Elena Zannoni
2002-07-16 16:59   ` Joel Brobecker
2002-07-16 17:17     ` Kevin Buettner
2002-07-16 19:00       ` Elena Zannoni
2002-07-16 20:32         ` Elena Zannoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox