public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Carl Love <cel@us.ibm.com>
To: Guinevere Larsen <blarsen@redhat.com>,
	Simon Marchi <simark@simark.ca>,
	gdb-patches@sourceware.org,
	UlrichWeigand <Ulrich.Weigand@de.ibm.com>,
	pedro@palves.net
Cc: luis.machado@arm.com, cel@us.ibm.com
Subject: RE: [PATCH 1/2 ver 2] Fix reverse stepping multiple contiguous PC ranges over the line table.
Date: Tue, 08 Aug 2023 08:38:28 -0700	[thread overview]
Message-ID: <e2b658519acda73d5790b8a2c0ee01a3c99d1d6f.camel@us.ibm.com> (raw)
In-Reply-To: <387d9d9d-6f4f-696b-ff18-f68974a7da39@redhat.com>

Guinevere:

On Tue, 2023-08-08 at 12:04 +0200, Guinevere Larsen wrote:
> > 

<snip>

> On 07/08/2023 21:03, Carl Love wrote:
> > 
> > diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
> > index 36bf738c667..bffbbf38b09 100644
> > --- a/gdb/testsuite/lib/gdb.exp
> > +++ b/gdb/testsuite/lib/gdb.exp
> > @@ -4896,6 +4896,8 @@ proc quote_for_host { args } {
> >   #     debug information
> >   #   - text_segment=addr: Tell the linker to place the text
> > segment at ADDR.
> >   #   - build-id: Ensure the final binary includes a build-id.
> > +#   - no-column-info: Disable generation of column table
> > information.
> > +#   - column-info: Enable generation of column table information.
> >   #
> >   # And here are some of the not too obscure options understood by
> > DejaGnu that
> >   # influence the compilation:
> > @@ -5105,6 +5107,38 @@ proc gdb_compile {source dest type options}
> > {
> >               } else {
> >                   error "Don't know how to handle text_segment
> > option."
> >               }
> > +	} elseif { $opt == "column-info" } {
> > +	    # If GCC or clang does not support column-info, compilation
> > +	    # will fail and the usupported column-info option will be
> > +	    # reported as such.
> > +	    if {[test_compiler_info {gcc-*}]} {
> 
> I think you missed a bit on an old comment from simon. Way back in
> may, 
> in this email 
> https://sourceware.org/pipermail/gdb-patches/2023-May/199523.html ,
> he 
> mentioned:
> 
> For instance, if you used no-column-info with gcc 6
> (which doesn't support column info at all), gdb_compile should
> succeed,
> even if there isn't an option to disable column info with that
> compiler.
> If you used column-info with gcc 6, gdb_compile would fail.
> 
> So I think this bit should throw an error if it detects gcc-[1-6].

It has been awhile, but as I recall, we decided that the we would
specify column-info and if the compiler doesn't support it then the
compiler will complain (i.e. fail) and we will let the failure be
handled by the normal compiler failure path.  I think that will work
fine?  If there is some concern that is not sufficient, I would be
happy to put in the test   if {[test_compiler_info {gcc-[1-6]-*}]}  for
the $opt == "column-info"  to have the script flag the error. 
Thoughts?

In the case where the compiler doesn't handle the no-column-info flag,
i.e. gcc 1-6, we handle that case by not adding the flag so the
compiler will not flag the error and fail.  In that case, it isn't
going to generate the column info anyways so we don't need to specify
no-column info.


> 
> > +		lappend new_options "additional_flags=-gcolumn-info"
> > +
> > +	    } elseif {[test_compiler_info {clang-*}]} {
> 
> I did some digging, and column-info were added in llvm back in
> october 
> 2012 (commit a2f7eb7c52cdc), which seems to mean support was added
> in 
> llvm 3.2, but I don't see any mention in the release notes. In my 
> opinion, this is old enough that we don't need to have a special
> case, 
> but I wanted to mention, in case some maintainer thinks it should be 
> dealt with.
> 
> If we should, before then, it seems that clang WOULD add column info
> by 
> default, so it should compile with a warning here, and fail if the
> user 
> requested no column info
> 

                                             Carl 


  reply	other threads:[~2023-08-08 15:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-07 18:54 [PATCH 0/2] " Carl Love
2023-08-07 19:03 ` [PATCH 1/2 ver 2] " Carl Love
2023-08-08 10:04   ` Guinevere Larsen
2023-08-08 15:38     ` Carl Love [this message]
2023-08-08 15:45       ` Guinevere Larsen
2023-08-07 19:03 ` [PATCH 2/2 ver 7] " Carl Love
2023-08-08 14:14   ` Guinevere Larsen
2023-08-08 15:52     ` Carl Love
  -- strict thread matches above, loose matches on Subject: below --
2023-04-27 20:59 [PATCH] " Carl Love
2023-05-03  9:53 ` Bruno Larsen
2023-05-04  2:55   ` [PATCH v2] " Carl Love
2023-05-04 15:59     ` [PATCH v3] " Carl Love
2023-05-10 13:47       ` Bruno Larsen
2023-05-10 17:16         ` Carl Love
2023-05-10 17:32           ` [PATCH v4] " Carl Love
2023-05-11 16:01             ` Simon Marchi
2023-05-11 16:23               ` Bruno Larsen
2023-05-11 17:28                 ` Simon Marchi
2023-05-16 22:54                   ` [PATCH 1/2] " Carl Love
2023-06-19 17:11                     ` Simon Marchi
2023-06-22 16:52                       ` Carl Love
2023-06-23 17:44                         ` Simon Marchi
2023-06-23 20:04                           ` [PATCH 1/2 ver 2] " Carl Love
2023-07-06 15:07                             ` Carl Love

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=e2b658519acda73d5790b8a2c0ee01a3c99d1d6f.camel@us.ibm.com \
    --to=cel@us.ibm.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=blarsen@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=luis.machado@arm.com \
    --cc=pedro@palves.net \
    --cc=simark@simark.ca \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).