Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Aaron Merey <amerey@redhat.com>
Cc: gdb-patches@sourceware.org, Tom Tromey <tom@tromey.com>
Subject: Re: [PATCH v4] Add debuginfod support to GDB
Date: Mon, 24 Feb 2020 20:39:00 -0000	[thread overview]
Message-ID: <e1f6b60b-bc69-228d-a318-128a18e42b68@simark.ca> (raw)
In-Reply-To: <CAJDtP-TqxS=e34uDo_Gu_kdC9dO_bWej-fX-NPkCkkxEvQ1_KQ@mail.gmail.com>

On 2020-02-23 11:42 p.m., Aaron Merey wrote:
> On Fri, Feb 21, 2020 at 3:12 PM Simon Marchi <simark@simark.ca> wrote:
>> I'll have to build debuginfod and configure it, so I can give it a try
>> and see how it files.
>>
>> In the mean time: if we fail to parse the server's response as a bfd or
>> if the build id doesn't match, I think we need to display a warning,
>> because it probably means that the server sent us something bad, or there
>> was some problem somewhere in the pipeline.
>>
>> Currently, if that happens, the user would see "Download successful", but
>> no debug info loaded, so it's a bit misleading.
> 
> I added the warnings but removed the "Download successful" anyway
> since it resulted in too much noise.
> 
> Aaron
> 

I just noticed that the debuginfod_debuginfo_query definition is not in sync with
the declaration, so when we build without debug info support, we get:

  CXX    debuginfod-support.o
/home/smarchi/src/binutils-gdb/gdb/debuginfod-support.c: In function ‘scoped_fd debuginfod_debuginfo_query(const unsigned char*, int, gdb::unique_xmalloc_ptr<char>*)’:
/home/smarchi/src/binutils-gdb/gdb/debuginfod-support.c:36:1: error: no previous declaration for ‘scoped_fd debuginfod_debuginfo_query(const unsigned char*, int, gdb::unique_xmalloc
_ptr<char>*)’ [-Werror=missing-declarations]
 debuginfod_debuginfo_query (const unsigned char *build_id __attribute__((unused)),
 ^~~~~~~~~~~~~~~~~~~~~~~~~~

I also think you could remove the __attribute__((unused)).  We don't use -Wunused-parameter
in GDB, and I don't think we plan to (there are a ton of places with unused parameters like
that, that don't hurt).

Simon


  reply	other threads:[~2020-02-24 20:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-21  1:58 Aaron Merey
2020-02-21 20:12 ` Simon Marchi
2020-02-24  4:43   ` Aaron Merey
2020-02-24 20:39     ` Simon Marchi [this message]
2020-02-24 20:46       ` Aaron Merey
2020-02-24 20:49         ` Simon Marchi

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=e1f6b60b-bc69-228d-a318-128a18e42b68@simark.ca \
    --to=simark@simark.ca \
    --cc=amerey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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