From: Aleksandar Ristovski <ARistovski@qnx.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] gdb.mi tests
Date: Fri, 28 Mar 2008 15:24:00 -0000 [thread overview]
Message-ID: <47ED0DAB.1040406@qnx.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
Daniel Jacobowitz wrote:
> On Wed, Mar 12, 2008 at 03:18:15PM -0400, Aleksandar Ristovski wrote:
>> Attached working diff. Comments welcome.
>
> I think this patch is OK, if you add a changelog entry for it. Do
> you have write access? If not, would you like to?
>
In the context of this thread, I have reduced the originally proposed diff.
Now
it is a simple change in mi-support.exp, diff attached.
I gave up the removal of "load_lib mi-support.exp" from all tests since, as
Daniel pointed out, the overriding can still be done by loading the file in
your
board file, and after the load_lib statement redefining the functions of
interest; load_lib makes sure to not reload already loaded file.
Leaving "load_lib mi-support.exp" maybe makes it a bit more clear what file
contains functions that can be overridden.
Thanks,
Aleksandar Ristovski
QNX Software Systems
2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
* lib/mi-support.exp: Rename mi_gdb_start to default_mi_gdb_start
and
add mi_gdb_start to simply call the default one. Brings mi-support
in line with gdb.exp.
[-- Attachment #2: mi-support.diff --]
[-- Type: text/plain, Size: 1492 bytes --]
Index: gdb/testsuite/lib/mi-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
retrieving revision 1.51
diff -u -p -r1.51 mi-support.exp
--- gdb/testsuite/lib/mi-support.exp 29 Jan 2008 19:36:58 -0000 1.51
+++ gdb/testsuite/lib/mi-support.exp 28 Mar 2008 15:07:52 -0000
@@ -84,7 +84,7 @@ proc mi_uncatched_gdb_exit {} {
}
#
-# mi_gdb_start [INFERIOR_PTY] -- start gdb running, default procedure
+# default_mi_gdb_start [INFERIOR_PTY] -- start gdb running, default procedure
#
# INFERIOR_PTY should be set to separate-inferior-tty to have the inferior work
# with it's own PTY. If set to same-inferior-tty, the inferior shares GDB's PTY.
@@ -94,7 +94,7 @@ proc mi_uncatched_gdb_exit {} {
# tests on different hosts all using the same server, things can
# get really slow. Give gdb at least 3 minutes to start up.
#
-proc mi_gdb_start { args } {
+proc default_mi_gdb_start { args } {
global verbose
global GDB
global GDBFLAGS
@@ -230,6 +230,14 @@ proc mi_gdb_start { args } {
return 0;
}
+#
+# Overridable function. You can override this function in your
+# baseboard file.
+#
+proc mi_gdb_start { args } {
+ return [default_mi_gdb_start $args]
+}
+
# Many of the tests depend on setting breakpoints at various places and
# running until that breakpoint is reached. At times, we want to start
# with a clean-slate with respect to breakpoints, so this utility proc
next reply other threads:[~2008-03-28 15:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 15:24 Aleksandar Ristovski [this message]
2008-03-28 15:59 ` Daniel Jacobowitz
2008-03-28 16:00 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2008-03-28 16:16 Aleksandar Ristovski
2008-03-11 19:32 Aleksandar Ristovski
2008-03-12 19:18 ` Aleksandar Ristovski
2008-03-12 19:25 ` Vladimir Prus
2008-03-12 19:34 ` Daniel Jacobowitz
2008-03-12 20:49 ` Aleksandar Ristovski
2008-03-12 21:05 ` Daniel Jacobowitz
2008-03-14 18:07 ` Aleksandar Ristovski
2008-03-21 15:07 ` 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=47ED0DAB.1040406@qnx.com \
--to=aristovski@qnx.com \
--cc=drow@false.org \
--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