This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] testsuite: Fix break-inline.exp with gdbserver


On Wed, 15 Feb 2012 20:29:26 +0100, Aleksandar Ristovski wrote:
> On 12-02-15 11:09 AM, Tom Tromey wrote:
> > Aleksandar>  2012-02-14  Aleksandar Ristovski<aristovski@qnx.com>
> > 
> > Aleksandar>      * gdb.base/break-inline.exp: New file.
> > Aleksandar>      * gdb.base/break-inline.c: New file.
[...]
> Committed, thank you.

with
	http://sourceware.org/gdb/wiki/TestingGDB#Testing_gdbserver_in_a_native_configuration
+ERROR: gdbserver does not support start without extended-remote

Checked in.

The former internal error is then reproducible even with gdbserver.

(Plus I fixed the parantheses which had no effect before, forgot it in
ChangeLog.)


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2012-02/msg00109.html

--- src/gdb/testsuite/ChangeLog	2012/02/17 19:24:26	1.3078
+++ src/gdb/testsuite/ChangeLog	2012/02/19 13:05:27	1.3079
@@ -1,3 +1,9 @@
+2012-02-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix for gdbserver non-extended mode.
+	* gdb.base/break-inline.exp (start): Replace "start" by gdb_breakpoint
+	and gdb_run_cmd.
+
 2012-02-17  Tom Tromey  <tromey@redhat.com>
 
 	* gdb.python/py-events.py (exit_handler): Add test for 'dir'.
--- src/gdb/testsuite/gdb.base/break-inline.exp	2012/02/15 19:27:59	1.1
+++ src/gdb/testsuite/gdb.base/break-inline.exp	2012/02/19 13:05:28	1.2
@@ -18,7 +18,9 @@
     return -1
 }
 
-gdb_test "start" "Temporary breakpoint.*foo().*"
+gdb_breakpoint "main" "temporary"
+gdb_run_cmd
+gdb_test "" "Temporary breakpoint.*foo\\(\\).*"
 
 # Now test 'break' with no arguments.
 gdb_test "break" "Breakpoint.*"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]