OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.mi/] [gdb669.exp] - Blame information for rev 828

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
# Copyright 2002, 2003, 2004, 2007, 2008, 2009, 2010
2
# Free Software Foundation, Inc.
3
 
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program.  If not, see .
16
 
17
# This file checks for the bug gdb/669, where the console
18
# command "info threads" and the MI command "-thread-list-ids"
19
# return different threads in the system.
20
 
21
# This only works with native configurations
22
if {![isnative]} {
23
  return
24
}
25
 
26
load_lib mi-support.exp
27
set MIFLAGS "-i=mi"
28
 
29
gdb_exit
30
if {[mi_gdb_start]} {
31
    continue
32
}
33
 
34
#
35
# Start here
36
#
37
set testfile "pthreads"
38
set srcfile "$testfile.c"
39
set binfile "$objdir/$subdir/gdb669-$testfile"
40
 
41
set options [list debug incdir=$objdir]
42
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
43
    return -1
44
}
45
 
46
mi_run_to_main
47
check_mi_and_console_threads "at main"
48
 
49
for {set i 0} {$i < 4} {incr i} {
50
  mi_next "next, try $i"
51
  check_mi_and_console_threads "try $i"
52
}
53
 
54
mi_gdb_exit
55
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.