Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC-v2] Support for const char and strings in stabs reader
Date: Mon, 05 Apr 2010 15:19:00 -0000	[thread overview]
Message-ID: <20100405151916.GB19194@adacore.com> (raw)
In-Reply-To: <000601cacba5$0463eb60$0d2bc220$@muller@ics-cnrs.unistra.fr>

> > As a general comment, the formatting of the section supporting strings
> > is not consistent. It looks like it's because you have a mixture of
> > spaces and tabs...
>  Strange because I now use the script recently given on gdb mailing list
> to avoid such problems...

The tricks for the .vimrc file is not a silver bullet ensuring that all
lines start with tabs instead of using blocks of 8 spaces. What it only
does is use tabs instead of spaces when creating a new line. Some parts
of your patch have lines that start with a space, then a tab, then more
spaces...

When you need to see spaces and tabs, I recommend the following setting:

        :set list

I cannot help shaking my head as to how much grief this spaces vs tabs
thing is causing. It's insane, IMO, to be clinging to tabs in our
programming style. But I've fought and lost that battle before...


> 2010-03-24  Pierre Muller  <muller@ics.u-strasbg.fr>
> 
> 	* stabsread.c (define_symbol): Add support for char
> 	and string constants.

This is OK, after you make sure to format the code properly (spaces
and tabs).

> testsuite ChangeLog entry:
> 
> 	* gdb.stabs/aout.sed: Convert all backslash to double backslash
> 	within one line, unless it is followed by a double quote.
> 	* gdb.stabs/hppa.sed: Idem.
> 	* gdb.stabs/weird.def: Add char and String constants
> 	* gdb.stabs/weird.exp: Check for correct parsing of 
> 	chhar and string constants.
> 	* gdb.stabs/xcoff.sed: Ignore escaped quote quotes
> 	in .stabs to .stabx substitution.

OK, except for one tiny hunk that I suspect got in unintentionally:

> @@ -287,7 +298,7 @@ if  { [gdb_compile "${srcfile}" "${binfi
>       return -1
>  }
>  
> -remote_file build delete ${srcfile}
> +# remote_file build delete ${srcfile}
>  
>  # Start with a fresh gdb
>  gdb_exit

This change was probably not meant to go in.

-- 
Joel


  reply	other threads:[~2010-04-05 15:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16 21:10 [RFC] " Pierre Muller
2010-03-22 21:56 ` PING " Pierre Muller
2010-03-22 22:19   ` Joel Brobecker
2010-03-23 18:53 ` Joel Brobecker
2010-03-24 22:55   ` [RFC-v2] " Pierre Muller
2010-04-05 15:19     ` Joel Brobecker [this message]
2010-04-05 22:48       ` Pierre Muller

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=20100405151916.GB19194@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    /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