From: Michael Chastain <mec.gnu@mindspring.com>
To: cagney@gnu.org
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/testsuite] revert return-type of gdb_file_cmd, gdb_load
Date: Fri, 10 Sep 2004 18:30:00 -0000 [thread overview]
Message-ID: <4141F2C7.nailIB81I9LLG@mindspring.com> (raw)
In-Reply-To: <4141EFBF.2010009@gnu.org>
Andrew Cagney <cagney@gnu.org> wrote:
> What of two interfaces -> an existing one with preserved behavior and a
> new one with extended behavior?
In a way, that's what we have now. The "extended behavior" is to set
the global variable gdb_file_cmd_debug_info.
The problem with "two interfaces" is that there really are nine
different procedures named gdb_load, and the caller does not know
which of the nine procedures is active. So the new interface has
to be compatible with the old, or I have to change nine implementations
of "gdb_load" simultaneously.
Also, if gdb.gdb/*.exp runs in an environment where the implementation of
gdb_load does not provide this extended behavior, then it will
see that gdb_file_cmd_debug_info is still set to "unset" and it can
react appropriately. From inspection, I believe the only gdb_load
that will *not* get the extended behavior is the stubby
"not implemented yet" implementation in config/nind.exp.
Michael
prev parent reply other threads:[~2004-09-10 18:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-10 1:03 Michael Chastain
2004-09-10 18:11 ` Andrew Cagney
2004-09-10 18:30 ` Michael Chastain [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=4141F2C7.nailIB81I9LLG@mindspring.com \
--to=mec.gnu@mindspring.com \
--cc=cagney@gnu.org \
--cc=gdb-patches@sources.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