Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org, ARistovski@qnx.com
Subject: Re: [PATCH v4 0/8] Validate binary before use
Date: Sun, 02 Mar 2014 20:47:00 -0000	[thread overview]
Message-ID: <837g8ctjkj.fsf@gnu.org> (raw)
In-Reply-To: <20140302195248.10290.22958.stgit@host1.jankratochvil.net>

> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Aleksandar Ristovski <ARistovski@qnx.com>
> Date: Sun, 02 Mar 2014 20:52:48 +0100
> 
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -43,6 +43,12 @@ maint ada show ignore-descriptive-types
>    the user manual for more details on descriptive types and the intended
>    usage of this option.
>  
> +set solib-build-id-force (on|off)
> +show solib-build-id-force
> +  Inferior shared library and symbol file may contain unique build-id.
> +  If both build-ids are present but they do not match then this setting
> +  enables (on) or disables (off) loading of such symbol file.
> +
>  * New features in the GDB remote stub, GDBserver
>  
>    ** New option --debug-format=option1[,option2,...] allows one to add
> @@ -51,6 +57,10 @@ maint ada show ignore-descriptive-types
>       Timestamps can also be turned on with the
>       "monitor set debug-format timestamps" command from GDB.
>  
> +  ** library-list-svr4 contains also optional attribute 'build-id' for
> +     each library.  GDB does not load library with build-id that
> +     does not match such attribute.
> +

This part is OK.

> +@table @code
> +@kindex set solib-build-id-force
> +@item set solib-build-id-force @var{mode}
> +Setting to override @value{GDBN} build-id check.

There should be a @cindex entry here about overriding the build-id
check.

> +Inferior shared library and symbol file may contain unique build-id.

I guess you meant "libraries" and "symbol files", in plural here.

> +If both build-ids are present but they do not match then this setting

That "both" part came as a surprise to me.  Are there only two of
them?  If so, where is each one stored?  I don't think preceding text
describes this.

> +Loading non-matching symbol file may confuse debugging including breakage
> +of backtrace output.
> +
> +By default @value{GDBN} will ignore symbol files with non-matching build-id
> +while printing:

Perhaps this stuff should be before you describe the option itself,
because it explains why there's a need for the option in the first
place.

Thanks.


  parent reply	other threads:[~2014-03-02 20:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-02 19:53 Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 3/8] Create empty common/linux-maps.[ch] and common/common-target.[ch] Jan Kratochvil
2014-03-10  3:46   ` Yao Qi
2014-03-19 22:33     ` Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 4/8] Prepare linux_find_memory_regions_full & co. for move Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 1/8] Move utility functions to common/ Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 5/8] Move linux_find_memory_regions_full & co Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 2/8] Merge multiple hex conversions Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 6/8] gdbserver build-id attribute generator Jan Kratochvil
2014-03-02 20:47   ` Eli Zaretskii
2014-03-02 19:54 ` [PATCH v4 7/8] Validate symbol file using build-id Jan Kratochvil
2014-03-02 19:54 ` [PATCH v4 8/8] Tests for validate " Jan Kratochvil
2014-03-10  3:38   ` Yao Qi
2014-03-19 22:33     ` Jan Kratochvil
2014-03-20 12:16       ` Yao Qi
2014-03-20 13:12       ` Pedro Alves
2014-03-21 16:58         ` Jan Kratochvil
2014-03-02 20:47 ` Eli Zaretskii [this message]
2014-03-08 19:57   ` [PATCH v4 0/8] Validate binary before use Jan Kratochvil
2014-03-09 16:53     ` Eli Zaretskii
2014-03-09 18:58       ` Jan Kratochvil
2014-03-09 19:19         ` Eli Zaretskii
2014-03-19 22:33           ` Jan Kratochvil
2014-03-21 16:58       ` Jan Kratochvil

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=837g8ctjkj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=ARistovski@qnx.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.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