Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA: two Ada tests -vs- debug-file-directory
@ 2012-03-05 20:57 Tom Tromey
  2012-03-05 21:04 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2012-03-05 20:57 UTC (permalink / raw)
  To: gdb-patches; +Cc: Joel Brobecker

I was seeing test regressions in some Ada tests and tracked it down to
the fact that one tree was build with the correct system
debug-file-directory setting, and one was built with a different
setting.

I have all the GCC debuginfo installed on this machine, but the
apparently-failing Ada tests are not prepared to see this.

The appended handles the problem by ensuring that gdb doesn't see the
system debuginfo during the tests in question.

Ok?

Tom

2012-03-05  Tom Tromey  <tromey@redhat.com>

	* gdb.ada/operator_bp.exp: Clear debug-file-directory.
	* gdb.ada/mi_task_arg.exp: Clear debug-file-directory.

diff --git a/gdb/testsuite/gdb.ada/mi_task_arg.exp b/gdb/testsuite/gdb.ada/mi_task_arg.exp
index a8cc59b..0b2013c 100644
--- a/gdb/testsuite/gdb.ada/mi_task_arg.exp
+++ b/gdb/testsuite/gdb.ada/mi_task_arg.exp
@@ -37,6 +37,9 @@ mi_delete_breakpoints
 mi_gdb_reinitialize_dir $srcdir/$subdir
 mi_gdb_load ${binfile}
 
+# This test won't work properly if system debuginfo is installed.
+mi_gdb_test "-gdb-set debug-file-directory \"\"" ".*"
+
 if ![mi_runto "task_switch.break_me"] then {
    fail "Cannot run to main, testcase aborted"
    return 0
diff --git a/gdb/testsuite/gdb.ada/operator_bp.exp b/gdb/testsuite/gdb.ada/operator_bp.exp
index 2be7e0a..18cf46d 100644
--- a/gdb/testsuite/gdb.ada/operator_bp.exp
+++ b/gdb/testsuite/gdb.ada/operator_bp.exp
@@ -29,6 +29,9 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
 
 clean_restart ${testfile}
 
+# This test won't work properly if system debuginfo is installed.
+gdb_test_no_output "set debug-file-directory"
+
 set bp_location [gdb_get_line_number "BEGIN" ${testdir}/ops_test.adb]
 runto "ops_test.adb:$bp_location"
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RFA: two Ada tests -vs- debug-file-directory
  2012-03-05 20:57 RFA: two Ada tests -vs- debug-file-directory Tom Tromey
@ 2012-03-05 21:04 ` Joel Brobecker
  2012-03-05 21:21   ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2012-03-05 21:04 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

> I have all the GCC debuginfo installed on this machine, but the
> apparently-failing Ada tests are not prepared to see this.

[...]
> 2012-03-05  Tom Tromey  <tromey@redhat.com>
> 
> 	* gdb.ada/operator_bp.exp: Clear debug-file-directory.
> 	* gdb.ada/mi_task_arg.exp: Clear debug-file-directory.

That would work for me.

Do you still have a copy of the failures somewhere? I'd be interested
in knowing what they are, to see if it's a weakness in the testcase
or a real bug...

Thanks!
-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RFA: two Ada tests -vs- debug-file-directory
  2012-03-05 21:04 ` Joel Brobecker
@ 2012-03-05 21:21   ` Tom Tromey
  2012-03-05 21:55     ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2012-03-05 21:21 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

Joel> That would work for me.

Thanks, I'm going to check it in.

Joel> Do you still have a copy of the failures somewhere? I'd be interested
Joel> in knowing what they are, to see if it's a weakness in the testcase
Joel> or a real bug...

I've attached gdb.log for a failing run of the two tests.

Tom


[-- Attachment #2: gdb.log --]
[-- Type: text/plain, Size: 26608 bytes --]

Test Run By tromey on Mon Mar  5 14:19:51 2012
Native configuration is x86_64-unknown-linux-gnu

		=== gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../archer/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../archer/gdb/testsuite/gdb.ada/mi_task_arg.exp ...
Executing on host: gnatmake task_switch.adb  -gnata -P../../../archer/gdb/testsuite/gdb.ada/gnat_ada -XSRC=mi_task_arg -XOBJ=/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/mi_task_arg -g  -lm   -o /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/mi_task_arg/task_switch    (timeout = 300)
spawn -ignore SIGHUP gnatmake task_switch.adb -gnata -P../../../archer/gdb/testsuite/gdb.ada/gnat_ada -XSRC=mi_task_arg -XOBJ=/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/mi_task_arg -g -lm -o /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/mi_task_arg/task_switch
gnatmake: "/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/mi_task_arg/task_switch" up to date.
output is:
gnatmake: "/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/mi_task_arg/task_switch" up to date.

PASS: gdb.ada/mi_task_arg.exp: compilation task_switch.adb
spawn /home/tromey/gnu/archer/build/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/tromey/gnu/archer/build/gdb/testsuite/../data-directory -i=mi
=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.4.50.20120305-cvs\n"
~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-unknown-linux-gnu\".\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
(gdb) 
100-gdb-set height 0
100^done
(gdb) 
101-gdb-set width 0
101^done
(gdb) 
show target-async
&"show target-async\n"
~"Controlling the inferior in asynchronous mode is off.\n"
^done
(gdb) 
102-break-delete
102^done
(gdb) 
103-break-list
103^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
(gdb) 
104-environment-directory -r
104^done,source-path="$cdir:$cwd"
(gdb) 
105-environment-directory ../../../archer/gdb/testsuite/gdb.ada
105^done,source-path="/home/tromey/gnu/archer/build/gdb/testsuite/../../../archer/gdb/testsuite/gdb.ada:$cdir:$cwd"
(gdb) 
105-file-exec-and-symbols /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/mi_task_arg/task_switch
105^done
(gdb) 
Expecting: ^(200-break-insert -t task_switch\.break_me[
]+)?(200\^done,bkpt={number="[0-9]+",type="breakpoint",disp="del",enabled="y",addr="0x[0-9A-Fa-f]+",func="task_switch.break_me(\(.*\))?",file=".*",line="[0-9]*",times="0",original-location=".*"}[
]+[(]gdb[)] 
[ ]*)
200-break-insert -t task_switch.break_me
200^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0000000000403018",func="task_switch.break_me",file="/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/mi_task_arg/task_switch.adb",fullname="/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/mi_task_arg/task_switch.adb",line="57",times="0",original-location="task_switch.break_me"}
(gdb) 
PASS: gdb.ada/mi_task_arg.exp: breakpoint at task_switch.break_me
220-exec-run 
=thread-group-started,id="i1",pid="11251"
=thread-created,id="1",group-id="i1"
220^running
*running,thread-id="all"
(gdb) 
mi_expect_stop: expecting: \*stopped,reason="breakpoint-hit",disp="del",bkptno="[0-9]+",frame={addr="0x[0-9A-Fa-f]+",func="task_switch.break_me",args=\[.*\],(?:file="[^
]*.*",fullname="(/[^\n]*/|\\\\[^\\]+\\[^\n]+\\|\\[^\\][^\n]*\\|[a-zA-Z]:[^\n]*\\).*",line="[0-9]+"|from=".*")},thread-id="[0-9]+",stopped-threads=[^
]*
(=thread-selected,id="[0-9]+"
|=(?:breakpoint-created|breakpoint-deleted)[^
]+"
)*[(]gdb[)] 
$
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib64/libgnarl-4.6.so",target-name="/usr/lib64/libgnarl-4.6.so",host-name="/usr/lib64/libgnarl-4.6.so",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib64/libgnat-4.6.so",target-name="/usr/lib64/libgnat-4.6.so",host-name="/usr/lib64/libgnat-4.6.so",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/libpthread.so.0",target-name="/lib64/libpthread.so.0",host-name="/lib64/libpthread.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/libc.so.6",target-name="/lib64/libc.so.6",host-name="/lib64/libc.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/librt.so.1",target-name="/lib64/librt.so.1",host-name="/lib64/librt.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/libgcc_s.so.1",target-name="/lib64/libgcc_s.so.1",host-name="/lib64/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/libm.so.6",target-name="/lib64/libm.so.6",host-name="/lib64/libm.so.6",symbols-loaded="0",thread-group="i1"
~"[Thread debugging using libthread_db enabled]\n"
~"Using host libthread_db library \"/lib64/libthread_db.so.1\".\n"
=thread-created,id="2",group-id="i1"
~"[New Thread 0x7ffff7887700 (LWP 11254)]\n"
*running,thread-id="all"
=thread-created,id="3",group-id="i1"
~"[New Thread 0x7ffff7683700 (LWP 11255)]\n"
*running,thread-id="all"
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0000000000403018",func="task_switch.break_me",file="/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/mi_task_arg/task_switch.adb",fullname="/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/mi_task_arg/task_switch.adb",line="57",times="1",original-location="task_switch.break_me"}
~"[Switching to Thread 0x7ffff7683700 (LWP 11255)]\n"
*stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x0000000000403018",func="task_switch.break_me",args=[],file="/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/mi_task_arg/task_switch.adb",fullname="/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/mi_task_arg/task_switch.adb",line="57"},thread-id="3",stopped-threads="all",core="1"
=breakpoint-deleted,id="1"
(gdb) 
PASS: gdb.ada/mi_task_arg.exp: mi runto task_switch.break_me
Expecting: ^(-stack-list-arguments 1[
]+)?(\^done,stack-args=\[frame={level="0",args=\[\]},frame={level="1",args=\[{name="<_task>",value="0x[0-9A-Fa-f]+"}\]},frame={level="2",args=\[\]}.*[
]+[(]gdb[)] 
[ ]*)
-stack-list-arguments 1
^done,stack-args=[frame={level="0",args=[]},frame={level="1",args=[{name="<_task>",value="0x60e3e0"}]},frame={level="2",args=[{name="self_id",value="0x60e400"}]},frame={level="3",args=[{name="arg",value="0x7ffff7683700"}]},frame={level="4",args=[]}]
(gdb) 
FAIL: gdb.ada/mi_task_arg.exp: -stack-list-arguments 1
testcase ../../../archer/gdb/testsuite/gdb.ada/mi_task_arg.exp completed in 1 seconds
Running ../../../archer/gdb/testsuite/gdb.ada/operator_bp.exp ...
Executing on host: gnatmake ops_test.adb  -P../../../archer/gdb/testsuite/gdb.ada/gnat_ada -XSRC=operator_bp -XOBJ=/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp -g  -lm   -o /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test    (timeout = 300)
spawn -ignore SIGHUP gnatmake ops_test.adb -P../../../archer/gdb/testsuite/gdb.ada/gnat_ada -XSRC=operator_bp -XOBJ=/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp -g -lm -o /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test
gnatmake: "/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test" up to date.
output is:
gnatmake: "/home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test" up to date.

PASS: gdb.ada/operator_bp.exp: compilation ops_test.adb
spawn /home/tromey/gnu/archer/build/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/tromey/gnu/archer/build/gdb/testsuite/../data-directory
GNU gdb (GDB) 7.4.50.20120305-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ../../../archer/gdb/testsuite/gdb.ada
Source directories searched: /home/tromey/gnu/archer/build/gdb/testsuite/../../../archer/gdb/testsuite/gdb.ada:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test
Reading symbols from /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break ops_test.adb:20
Breakpoint 1 at 0x4013a5: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops_test.adb, line 20.
(gdb) run 
Starting program: /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test 

Breakpoint 1, ops_test () at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops_test.adb:20
20	   Dummy (Make (31) + Make (11)); -- BEGIN
(gdb) break "+"
Breakpoint 2 at 0x401176: "+". (80 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "+"
break "-"
Breakpoint 3 at 0x40118f: "-". (75 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "-"
break "*"
Breakpoint 4 at 0x4011ac: "*". (70 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "*"
break "/"
Breakpoint 5 at 0x4011c8: "/". (49 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "/"
break "mod"
Breakpoint 6 at 0x4011f8: "mod". (2 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "mod"
break "rem"
Breakpoint 7 at 0x40122a: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 50.
(gdb) PASS: gdb.ada/operator_bp.exp: break "rem"
break "**"
Breakpoint 8 at 0x401258: "**". (35 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "**"
break "<"
Breakpoint 9 at 0x40129a: "<". (18 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "<"
break "<="
Breakpoint 10 at 0x4012af: "<=". (18 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "<="
break ">"
Breakpoint 11 at 0x4012c4: ">". (18 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break ">"
break ">="
Breakpoint 12 at 0x4012d9: ">=". (18 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break ">="
break "="
Breakpoint 13 at 0x4012ee: "=". (18 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "="
break "and"
Breakpoint 14 at 0x401303: "and". (10 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "and"
break "or"
Breakpoint 15 at 0x401317: "or". (19 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "or"
break "xor"
Breakpoint 16 at 0x40132b: "xor". (10 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "xor"
break "&"
Breakpoint 17 at 0x40133f: "&". (25 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "&"
break "abs"
Breakpoint 18 at 0x401350: "abs". (7 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "abs"
break "not"
Breakpoint 19 at 0x40135c: "not". (11 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "not"
continue
Continuing.

Breakpoint 2, ops."+" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:25
25	      return Int (IntRep (I1) + IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "+"
continue
Continuing.

Breakpoint 3, ops."-" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:30
30	      return Int (IntRep (I1) - IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "-"
continue
Continuing.

Breakpoint 4, ops."*" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:35
35	      return Int (IntRep (I1) * IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "*"
continue
Continuing.

Breakpoint 5, ops."/" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:40
40	      return Int (IntRep (I1) / IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "/"
continue
Continuing.

Breakpoint 6, ops."mod" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:45
45	      return Int (IntRep (I1) mod IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "mod"
continue
Continuing.

Breakpoint 7, ops."rem" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:50
50	      return Int (IntRep (I1) rem IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "rem"
continue
Continuing.

Breakpoint 8, ops."**" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:54
54	      Result : IntRep := 1;
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "**"
continue
Continuing.

Breakpoint 9, ops."<" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:64
64	      return IntRep (I1) < IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "<"
continue
Continuing.

Breakpoint 10, ops."<=" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:69
69	      return IntRep (I1) <= IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "<="
continue
Continuing.

Breakpoint 11, ops.">" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:74
74	      return IntRep (I1) > IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ">"
continue
Continuing.

Breakpoint 12, ops.">=" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:79
79	      return IntRep (I1) >= IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ">="
continue
Continuing.

Breakpoint 13, ops."=" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:84
84	      return IntRep (I1) = IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "="
continue
Continuing.

Breakpoint 14, ops."and" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:89
89	      return Int (IntRep (I1) and IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "and"
continue
Continuing.

Breakpoint 15, ops."or" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:94
94	      return Int (IntRep (I1) or IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "or"
continue
Continuing.

Breakpoint 16, ops."xor" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:99
99	      return Int (IntRep (I1) xor IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "xor"
continue
Continuing.

Breakpoint 17, ops."&" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:104
104	      return Int (IntRep (I1) and IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "&"
continue
Continuing.

Breakpoint 18, ops."abs" (i1=42) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:109
109	      return Int (abs IntRep (I1));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "abs"
continue
Continuing.

Breakpoint 19, ops."not" (i1=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:114
114	      return Int (not IntRep (I1));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to "not"
spawn /home/tromey/gnu/archer/build/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/tromey/gnu/archer/build/gdb/testsuite/../data-directory
GNU gdb (GDB) 7.4.50.20120305-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ../../../archer/gdb/testsuite/gdb.ada
Source directories searched: /home/tromey/gnu/archer/build/gdb/testsuite/../../../archer/gdb/testsuite/gdb.ada:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test
Reading symbols from /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break ops_test.adb:20
Breakpoint 1 at 0x4013a5: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops_test.adb, line 20.
(gdb) run 
Starting program: /home/tromey/gnu/archer/build/gdb/testsuite/gdb.ada/operator_bp/ops_test 

Breakpoint 1, ops_test () at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops_test.adb:20
20	   Dummy (Make (31) + Make (11)); -- BEGIN
(gdb) break ops."+"
Breakpoint 2 at 0x401176: ops."+". (2 locations)
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."+"
break ops."-"
Breakpoint 3 at 0x40118f: ops."-". (2 locations)
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."-"
break ops."*"
Breakpoint 4 at 0x4011ac: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 35.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."*"
break ops."/"
Breakpoint 5 at 0x4011c8: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 40.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."/"
break ops."mod"
Breakpoint 6 at 0x4011f8: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 45.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."mod"
break ops."rem"
Breakpoint 7 at 0x40122a: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 50.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."rem"
break ops."**"
Breakpoint 8 at 0x401258: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 54.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."**"
break ops."<"
Breakpoint 9 at 0x40129a: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 64.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."<"
break ops."<="
Breakpoint 10 at 0x4012af: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 69.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."<="
break ops.">"
Breakpoint 11 at 0x4012c4: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 74.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops.">"
break ops.">="
Breakpoint 12 at 0x4012d9: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 79.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops.">="
break ops."="
Breakpoint 13 at 0x4012ee: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 84.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."="
break ops."and"
Breakpoint 14 at 0x401303: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 89.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."and"
break ops."or"
Breakpoint 15 at 0x401317: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 94.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."or"
break ops."xor"
Breakpoint 16 at 0x40132b: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 99.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."xor"
break ops."&"
Breakpoint 17 at 0x40133f: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 104.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."&"
break ops."abs"
Breakpoint 18 at 0x401350: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 109.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."abs"
break ops."not"
Breakpoint 19 at 0x40135c: file /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb, line 114.
(gdb) PASS: gdb.ada/operator_bp.exp: break ops."not"
continue
Continuing.

Breakpoint 2, ops."+" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:25
25	      return Int (IntRep (I1) + IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."+"
continue
Continuing.

Breakpoint 3, ops."-" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:30
30	      return Int (IntRep (I1) - IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."-"
continue
Continuing.

Breakpoint 4, ops."*" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:35
35	      return Int (IntRep (I1) * IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."*"
continue
Continuing.

Breakpoint 5, ops."/" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:40
40	      return Int (IntRep (I1) / IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."/"
continue
Continuing.

Breakpoint 6, ops."mod" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:45
45	      return Int (IntRep (I1) mod IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."mod"
continue
Continuing.

Breakpoint 7, ops."rem" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:50
50	      return Int (IntRep (I1) rem IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."rem"
continue
Continuing.

Breakpoint 8, ops."**" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:54
54	      Result : IntRep := 1;
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."**"
continue
Continuing.

Breakpoint 9, ops."<" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:64
64	      return IntRep (I1) < IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."<"
continue
Continuing.

Breakpoint 10, ops."<=" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:69
69	      return IntRep (I1) <= IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."<="
continue
Continuing.

Breakpoint 11, ops.">" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:74
74	      return IntRep (I1) > IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops.">"
continue
Continuing.

Breakpoint 12, ops.">=" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:79
79	      return IntRep (I1) >= IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops.">="
continue
Continuing.

Breakpoint 13, ops."=" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:84
84	      return IntRep (I1) = IntRep (I2);
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."="
continue
Continuing.

Breakpoint 14, ops."and" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:89
89	      return Int (IntRep (I1) and IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."and"
continue
Continuing.

Breakpoint 15, ops."or" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:94
94	      return Int (IntRep (I1) or IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."or"
continue
Continuing.

Breakpoint 16, ops."xor" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:99
99	      return Int (IntRep (I1) xor IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."xor"
continue
Continuing.

Breakpoint 17, ops."&" (i1=31, i2=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:104
104	      return Int (IntRep (I1) and IntRep (I2));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."&"
continue
Continuing.

Breakpoint 18, ops."abs" (i1=42) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:109
109	      return Int (abs IntRep (I1));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."abs"
continue
Continuing.

Breakpoint 19, ops."not" (i1=11) at /home/tromey/gnu/archer/archer/gdb/testsuite/gdb.ada/operator_bp/ops.adb:114
114	      return Int (not IntRep (I1));
(gdb) PASS: gdb.ada/operator_bp.exp: continue to ops."not"
testcase ../../../archer/gdb/testsuite/gdb.ada/operator_bp.exp completed in 2 seconds

		=== gdb Summary ===

# of expected passes		59
# of unexpected failures	18
Executing on host: /home/tromey/gnu/archer/build/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/tromey/gnu/archer/build/gdb/testsuite/../data-directory --version    (timeout = 300)
spawn -ignore SIGHUP /home/tromey/gnu/archer/build/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/tromey/gnu/archer/build/gdb/testsuite/../data-directory --version
GNU gdb (GDB) 7.4.50.20120305-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
/home/tromey/gnu/archer/build/gdb/testsuite/../../gdb/gdb version  7.4.50.20120305-cvs -nw -nx -data-directory /home/tromey/gnu/archer/build/gdb/testsuite/../data-directory 

runtest completed at Mon Mar  5 14:19:54 2012

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RFA: two Ada tests -vs- debug-file-directory
  2012-03-05 21:21   ` Tom Tromey
@ 2012-03-05 21:55     ` Joel Brobecker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2012-03-05 21:55 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

> I've attached gdb.log for a failing run of the two tests.

Thank you!

For the first test (mi_task_arg.exp), the failure is indeed caused
by the fact that a function in the callstack for which there is normally
no debugging info (and thus no parameters in the backtrace) now has
debug info, and starts showing parameters for that frame. Your fix
prevents that from happening, and is just as good as allowing the
parameters in the output from the -stack-list-arguments command.

For the second testcase, the debugger picks up a wack load of functions
that fit the profile of a function we are trying to break into (Ada
operator "+", for instance). So we end up with more locations than
we expected. The fix you provided is the only reasonable fix in this
case.

So I wouldn't change a thing :).

-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-05 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-05 20:57 RFA: two Ada tests -vs- debug-file-directory Tom Tromey
2012-03-05 21:04 ` Joel Brobecker
2012-03-05 21:21   ` Tom Tromey
2012-03-05 21:55     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox