Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Support exec tracing on GNU/Linux and HP-UX
Date: Mon, 22 Oct 2007 12:09:00 -0000	[thread overview]
Message-ID: <20071022114328.GA1421@caradoc.them.org> (raw)
In-Reply-To: <20071022043831.GD764@adacore.com>

On Sun, Oct 21, 2007 at 09:38:31PM -0700, Joel Brobecker wrote:
> I have tested this patch, and it unfortunately creates some issues:
> 
>    (gdb) run
>    Starting program: /[...]/p 
>    Executing new program: /usr/local/bin/zsh
>    (no debugging symbols found)
>    Unable to find __dld_flags symbol in object file.
> 
> What seems to happen is that we're enabling exec-following during
> the startup sequence, and that causes us to do the follow-exec routine
> on it. Eventually, this fails because the shell binary that I use
> apparently does not have any symbols, thus causing the solib-som hook
> to error out.
> 
> Do we do the same on Linux? (exec-follow during the startup)

No, we don't.  We don't turn on the exec tracing option until
linux_child_post_startup_inferior, and by then the shell has
already execed.  But inf-ttrace.c turns on exec tracing in
inf_ttrace_him instead.

This must be related to the code in infrun.c:1454 and its comment
about how HP-UX is probably broken.  It's not quite the same
though since inferior_ignoring_leading_exec_events is supposed to
handle execs which are reported twice.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-10-22 11:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 19:49 Daniel Jacobowitz
2007-10-22  6:01 ` Joel Brobecker
2007-10-22 12:09   ` Daniel Jacobowitz [this message]
2007-10-22 18:56     ` Joel Brobecker
2007-10-22 19:30       ` Joel Brobecker
2007-10-22 20:01         ` Daniel Jacobowitz
2007-12-21 16:04           ` Joel Brobecker
2007-12-21 16:13             ` Joel Brobecker
2008-01-29 17:09             ` Daniel Jacobowitz
2008-01-29 21:26               ` Joel Brobecker
2008-01-29 21:48                 ` Daniel Jacobowitz
2008-01-29 21:48                   ` Joel Brobecker
2008-01-29 22:17                     ` Daniel Jacobowitz
2008-01-29 22:54 ` Daniel Jacobowitz

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=20071022114328.GA1421@caradoc.them.org \
    --to=drow@false.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /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