Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: GDB Patches <gdb-patches@sourceware.cygnus.com>
Subject: Re: Is ``break main if(1)'' legal?
Date: Wed, 15 Dec 1999 09:14:00 -0000	[thread overview]
Message-ID: <3857CC59.35545D0C@cygnus.com> (raw)
In-Reply-To: <38572456.8C003027@cygnus.com>

Andrew Cagney wrote:
> 
> (vs ``break main if (1)'')
> Some parts of the code (decode_line_1()) think it is legal but other
> parts (break_command_1()) don't.
> 

(1) is a perfectly valid logical expression of "true".  It makes no
sense setting a conditional breakpoint to always true, but rejecting the
expression as not valid is wrong.

What is break_command_1() complaining about?

-- 
Fernando Nasser
Cygnus Solutions - Toronto Office       E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299
From guo@cup.hp.com Wed Dec 15 10:17:00 1999
From: Jimmy Guo <guo@cup.hp.com>
To: Jeffrey A Law <law@cygnus.com>
Cc: Andrew Cagney <ac131313@cygnus.com>, gdb-patches@sourceware.cygnus.com
Subject: Re: (patch) hpjyg15: hppah-nat.c & related 
Date: Wed, 15 Dec 1999 10:17:00 -0000
Message-id: <Pine.LNX.4.10.9912150951120.29808-100000@hpcll168.cup.hp.com>
References: <881.945247412@upchuck>
X-SW-Source: 1999-q4/msg00387.html
Content-length: 1439

Jeff, thanks for taking the time looking at the patches!

Since I'm splitting apart changes made by HP, in various areas, over 12
months, into multiple patches, there's a need for me to run indent on
the patched source to ensure that the GNU coding style in gdb source is
adhered to.  I will make sure that pure formatting changes (line breaks)
made by HP are not introduced along with real changes.

However as we've discovered, due to a combination of a potential indent
program problem and the fact that there're places in snapshot sources
where formatting is actually necessary, there's another kind of pure
formatting changes which can come from this combination (and my running
indent before making the patch).  There're several ways to handle this:

1) generate patch using GNU diff -w option (ignore white space), and
   apply patch using patch -l (--ignore-whitespace) option.
   :: I like this approach and I'll do it if you guys are willing to
   give this a try.

2) don't run indent before generating patch, have maintainers do
   that before checking into CVS.
   :: could work.  If necessary I can provide a ksh script to do this,
   incorporating the special-case handlings documented by Stan during
   the GDB reformat (so one do not indent a file which is not supposed
   to be indented).

3) patch submitter manually remove pure formatting change noises from
   patch.
   :: least favored.

- Jimmy Guo, guo@cup.hp.com


       reply	other threads:[~1999-12-15  9:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <38572456.8C003027@cygnus.com>
1999-12-15  9:14 ` Fernando Nasser [this message]
1999-12-15 10:41   ` Elena Zannoni

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=3857CC59.35545D0C@cygnus.com \
    --to=fnasser@cygnus.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb-patches@sourceware.cygnus.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