Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org,  Tom Tromey <tromey@redhat.com>
Subject: Re: [patch] Fix dangling displays in separate debug
Date: Sun, 11 Apr 2010 01:27:00 -0000	[thread overview]
Message-ID: <201004110227.35104.pedro@codesourcery.com> (raw)
In-Reply-To: <20100409200046.GA22709@host0.dyn.jankratochvil.net>

On Friday 09 April 2010 21:00:46, Jan Kratochvil wrote:
> On Fri, 09 Apr 2010 18:47:50 +0200, Pedro Alves wrote:

> > and `solib->objfile'
> > (because GDB didn't find any symbols for the shared library) be NULL,
> 
> I was convinced due to some invalid reasons solib->objfile cannot be NULL.

There's an easy way to see that state:

 (gdb) nosharedlibrary
 (gdb) info sharedlibrary

This will not reload symbol info, thus you'll have
a bunch of solibs with objfile set to NULL.
[do `(gdb) sharedlibrary' to reload debug info].

> gdb/
> 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 	    Tom Tromey  <tromey@redhat.com>
> 	    Pedro Alves  <pedro@codesourcery.com>
> 
> 	* printcmd.c (display_uses_solib_p): Check also
> 	SEPARATE_DEBUG_OBJFILE_BACKLINK.  New variable symbol_objfile.
> 	* solist.h (struct so_list) <objfile>: New comment.
> 	* symtab.h (struct general_symbol_info) <obj_section>: Extend the
> 	comment.

This part is OK.  Thanks for the new comments.

> 
> gdb/testsuite/
> 2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* gdb.base/solib-display.exp (split solib): New.

Doesn't this make it so that only the separate debug info
case is exercised, and, it stops exercising the non-separate
debug info case?  I think we should instead be running the
relevant parts the test twice instead?

> --- a/gdb/testsuite/gdb.base/solib-display.exp
> +++ b/gdb/testsuite/gdb.base/solib-display.exp
> @@ -53,6 +53,13 @@ if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
>    return -1
>  }
>  
> +set test "split solib"
> +if {[gdb_gnu_strip_debug $binfile_lib] != 0} {
> +    fail $test

Not all systems support this, so this should 
be `unsupported' instead.  When you make the tests
run twice, this would skip the rest of the
rerunning.

> +} else {
> +    pass $test
> +}

> +
>  gdb_exit
>  gdb_start
>  gdb_reinitialize_dir $srcdir/$subdir

-- 
Pedro Alves


  reply	other threads:[~2010-04-11  1:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-03  9:56 Jan Kratochvil
2010-04-07 19:25 ` Tom Tromey
2010-04-09 15:30   ` Jan Kratochvil
2010-04-09 15:34     ` Pedro Alves
2010-04-09 15:53       ` Jan Kratochvil
2010-04-09 16:48         ` Pedro Alves
2010-04-09 20:01           ` Jan Kratochvil
2010-04-11  1:27             ` Pedro Alves [this message]
2010-04-19 14:25               ` Jan Kratochvil
2010-04-20 11:05                 ` Pedro Alves
2010-04-22 22:30                   ` Jan Kratochvil
2010-04-22 22:52                     ` Pedro Alves
2010-04-22 23:17                       ` Jan Kratochvil
2010-04-09 17:17       ` Tom Tromey

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=201004110227.35104.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=tromey@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