From: Michael Chastain <mec.gnu@mindspring.com>
To: manjo@austin.ibm.com, gdb-patches@sources.redhat.com
Subject: Re: [RFC] GDB testsuite patch. (revised version)
Date: Fri, 27 Aug 2004 14:48:00 -0000 [thread overview]
Message-ID: <412F49BA.nailEDT11A0NY@mindspring.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0408261009010.27764@lazy>
Ouch, copying the whole text of gdb_file_cmd is no good, either!
That much duplicate code is bad.
Here is my plan.
gdb_file_cmd has a return value. None of the callers of gdb_file_cmd
uses the return vale, except for gdb_load, which simply returns the same
value.
There are about 300 callers of gdb_load. Most of them don't use the
return value either. The exceptions are:
gdb.base/remote.exp
gdb.base/sepdebug.exp
# does not use the return value but it wants to
gdb.gdb/complaints.exp
gdb.gdb/observer.exp
gdb.gdb/selftest.exp
gdb.gdb/xfullpath.exp
gdb.stabs/weird.exp
# does not use the return value but it wants to
lib/gdb.exp:
proc gdb_run_cmd
So, I will do some infrastructure work: I will make gdb_load return
a better return value that includes more information, like a list
with more status information:
success indicator
whatever sepdebug.exp is looking for
whatever weird.exp is looking for
indicator of whether debug symbols found or not
While I am in there, I will see if I can get back any commonality
with mi_gdb_file_cmd. But that's optional.
I expect to commit the new gdb_file_cmd sometime on Saturday. After
that, it will be easy for you to change gdb.gdb/*.exp to just use the
new information in the return value from gdb_load.
Michael
2004-08-26 Manoj Iyer <manjo@austin.ibm.com
* lib/gdb.exp (gdb_check_debuginfo): New procedure
* gdb.gdb/complaints.exp: check if gdb has debug information.
* gdb.gdb/observer.exp: check if gdb has debug information.
* gdb.gdb/selftest.exp: check if gdb has debug information.
* gdb.gdb/xfullpath.exp: check if gdb has debug information.
next prev parent reply other threads:[~2004-08-27 14:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.58.0408191014360.21237@lazy>
[not found] ` <41251A45.nail58D215HD7@mindspring.com>
[not found] ` <Pine.LNX.4.58.0408191637370.21237@lazy>
[not found] ` <4125BB8B.nailJWP1FZGHJ@mindspring.com>
[not found] ` <Pine.LNX.4.58.0408242319060.7065@lazy>
[not found] ` <20040825124945.GA25217@nevyn.them.org>
[not found] ` <412C98BD.nail10P1YTPHK@mindspring.com>
2004-08-27 0:00 ` Manoj Iyer
2004-08-27 14:48 ` Michael Chastain [this message]
2004-08-27 15:28 ` Manoj Iyer
2004-08-27 16:01 ` Michael Chastain
2004-08-28 5:50 ` Manoj Iyer
2004-08-28 5:48 ` Manoj Iyer
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=412F49BA.nailEDT11A0NY@mindspring.com \
--to=mec.gnu@mindspring.com \
--cc=gdb-patches@sources.redhat.com \
--cc=manjo@austin.ibm.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