Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: MI testsuite fix
Date: Mon, 21 Apr 2008 14:04:00 -0000	[thread overview]
Message-ID: <20080421123258.GA29008@caradoc.them.org> (raw)
In-Reply-To: <200804211235.58900.pedro@codesourcery.com>

On Mon, Apr 21, 2008 at 12:35:58PM +0100, Pedro Alves wrote:
> Ok, that's what the attached does.  Regtested on
> x86_64-unknown-linux-gnu, and confirmed that is also fixes the
> async MI testsuite on x86 due to the gate page warning.
> 
> BTW, What is it that won't work with the look for .text first?

Beats me.  But it probably means find_lowest_section doesn't work
on some platforms.  e.g. the SEC_THREAD_LOCAL thing but that problem
is much newer than this code.

> > I'd also 
> > approve a patch to reuse some of the qOffsets machinery for this, but
> > that would take more testing... if you want to look at that,
> > keep in mind that SEC_LOAD doesn't mean the VMA is useful; you
> > also need to check !SEC_THREAD_LOCAL.
> 
> Now you've lost me.  This is mapping absolute section addresses
> to section offsets.  It doesn't seem symfile_map_offsets_to_segments
> or objfile_relocate would give any help here?

Well, anything that just carries offsets forwards from the previous
section is suspect.  If the user gives us the addresses of .text and
.data, it'd be nice to move the containing segments appropriately.

> 2008-04-21  Pedro Alves  <pedro@codesourcery.com>
> 
> 	* symfile.c (syms_from_objfile): Don't warn if lowest loadable
> 	section is not a code section.

OK.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-04-21 12:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 20:37 Pedro Alves
2008-04-10 21:42 ` Luis Machado
2008-04-10 22:10   ` Pedro Alves
2008-04-10 23:13 ` Pedro Alves
2008-04-14 18:27 ` Daniel Jacobowitz
2008-04-21 12:58   ` Pedro Alves
2008-04-21 14:04     ` Daniel Jacobowitz [this message]
2008-04-21 15:05       ` Pedro Alves

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=20080421123258.GA29008@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.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