From: Manoj Iyer <manjo@austin.ibm.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFC] gdb.server testcases (resend)
Date: Tue, 17 May 2005 19:02:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.58.0505170951240.12613@lazy> (raw)
In-Reply-To: <Pine.LNX.4.58.0505161210420.28371@lazy>
Daniel,
Any comments on this one? ok to commit?
Thanks
-----
manjo
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cogito ergo sum +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
On Mon, 16 May 2005, Manoj Iyer wrote:
>
> In my previous email I missed the changelog. Here is my complete patch.
> Please review and comment.
>
> 2005-05-16 Manoj Iyer <manjo@austin.ibm.com>
>
> * gdb.server/server-run.exp: added testcases.
> * gdb.server/server.c: added nested function call to test
> backtrace.
>
> =============== server-run.exp ==================
> --- ./old/src/gdb/testsuite/gdb.server/server-run.exp 2005-05-16 11:42:45.000000000 -0500
> +++ ./new/src/gdb/testsuite/gdb.server/server-run.exp 2005-05-16 11:44:30.000000000 -0500
> @@ -38,5 +38,21 @@ gdb_start
> gdbserver_load $binfile ""
> gdb_reinitialize_dir $srcdir/$subdir
>
> +# test setting a breakpoint
> gdb_breakpoint main
> -gdb_test "continue" "Breakpoint.* main .*" "continue to main"
> +
> +gdb_test "continue" ".*Continuing\\..*Breakpoint \[0-9\], main.*at .*$srcfile:\[0-9\]+.*"
> +
> +# test if list command displays source code
> +gdb_test "list" ".*main.*\{.*\}"
> +
> +# set breakpoint at a function and test backtrace command
> +gdb_test "break function3" "Breakpoint 2 at.*file .*$srcfile, line \[0-9\]+."
> +
> +gdb_test "continue" ".*Continuing\\..*Breakpoint \[0-9\]+, function3.*at.*$srcfile:\[0-9\]+.*"
> +
> +gdb_test "backtrace" "\#0.*function3.*at.*server.c:\[0-9\]+.*\#1.*function2.*at.*server.c:\[0-9\]+.*\#2.*function1.*at.*server.c:\[0-9\]+.*\#3.*main.*at.*server.c:\[0-9\]+"
> +
> +gdb_test "step" ".*function4.*at.*server.c:\[0-9\]+.*;"
> +
> +gdb_test "step 2" ".*\[0-9\]+.*x = y;"
> ===============================================
>
> =============== server.c ======================
> --- ./old/src/gdb/testsuite/gdb.server/server.c 2005-05-16 11:42:45.000000000 -0500
> +++ ./new/src/gdb/testsuite/gdb.server/server.c 2005-05-16 11:44:17.000000000 -0500
> @@ -17,8 +17,40 @@
> Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
> USA. */
>
> +static void
> +function4()
> +{
> + int x = 1;
> + int y = 2;
> +
> + x = y;
> + return;
> +}
> +
> +
> +static void
> +function3()
> +{
> + function4();
> +}
> +
> +
> +static void
> +function2()
> +{
> + function3();
> +}
> +
> +
> +static void
> +function1()
> +{
> + function2();
> +}
> +
> int
> main (int argc, char **argv)
> {
> - return 0;
> + function1();
> + return 0;
> }
> =================================
>
>
> Thanks
> -----
> manjo
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> + Cogito ergo sum +
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
next prev parent reply other threads:[~2005-05-17 14:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-17 2:38 Manoj Iyer
2005-05-17 19:02 ` Manoj Iyer [this message]
2005-05-18 1:45 ` Daniel Jacobowitz
2005-05-18 9:52 ` Manoj Iyer
2005-05-18 16:01 ` Daniel Jacobowitz
2005-05-18 16:29 ` Manoj Iyer
2005-05-18 18:08 ` Daniel Jacobowitz
2005-05-18 22:08 ` Manoj Iyer
2005-05-19 14:46 Wu Zhou
2005-05-19 17:52 ` Manoj Iyer
2005-05-22 20:40 ` Daniel Jacobowitz
2005-05-22 21:01 ` Daniel Jacobowitz
2005-05-23 11:21 ` Wu Zhou
2005-05-23 18:26 ` Daniel Jacobowitz
2005-05-24 4:17 ` Wu Zhou
2005-05-24 8:29 ` 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=Pine.LNX.4.58.0505170951240.12613@lazy \
--to=manjo@austin.ibm.com \
--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