Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb@sourceware.org, Joel Brobecker <brobecker@adacore.com>,
	       Doug Evans <dje@google.com>
Subject: Re: attach u/i oddity
Date: Wed, 19 Oct 2011 20:03:00 -0000	[thread overview]
Message-ID: <m3wrc0vjtc.fsf@fleche.redhat.com> (raw)
In-Reply-To: <201110111217.21689.pedro@codesourcery.com> (Pedro Alves's	message of "Tue, 11 Oct 2011 12:17:21 +0100")

Pedro> Maybe what we need a `warning' so that the surprise is gone:

Pedro>  "warning: assuming process is running the loaded executable `FOO'
Pedro>   which is different from the executable the target reports the process "
Pedro>   is running.  Unload it with the `file' command to make gdb find and load
Pedro>   the target reported executable automatically."

It seems like a decent idea to me.

I wrote a patch to change the behavior here once:

    http://sourceware.org/ml/gdb-patches/2008-11/msg00279.html

The ensuing thread points out the different use cases where people
really want to do this.

Tom


      parent reply	other threads:[~2011-10-19 19:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-09 21:36 Doug Evans
2011-10-11  6:17 ` Joel Brobecker
2011-10-11 11:17   ` Pedro Alves
2011-10-11 16:46     ` Doug Evans
2011-10-11 17:20       ` Pedro Alves
2011-10-11 18:11         ` Doug Evans
2011-10-11 18:22           ` Pedro Alves
2011-10-11 18:56           ` Pedro Alves
2011-10-11 22:38             ` Doug Evans
2011-10-19 20:03     ` Tom Tromey [this message]

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=m3wrc0vjtc.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=dje@google.com \
    --cc=gdb@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