Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: gdb/testsuite/gdb.base/expand-psymtabs.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.base/expand-psymtabs.c ('k') | gdb/testsuite/gdb.base/exprs.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2007-2012 Free Software Foundation, Inc. 1 # Copyright 2007-2013 Free Software Foundation, Inc.
2 # 2 #
3 # This program is free software; you can redistribute it and/or modify 3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by 4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or 5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version. 6 # (at your option) any later version.
7 # 7 #
8 # This program is distributed in the hope that it will be useful, 8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
(...skipping 10 matching lines...) Expand all
22 # different preprocessor symbols #defined; the first .o only has 22 # different preprocessor symbols #defined; the first .o only has
23 # 'main' at some earlier source lines, while the second .o only has 23 # 'main' at some earlier source lines, while the second .o only has
24 # 'foo' at later source lines. So when setting breakpoints by line 24 # 'foo' at later source lines. So when setting breakpoints by line
25 # number, which full symtab we need depends on the line number in 25 # number, which full symtab we need depends on the line number in
26 # question. 26 # question.
27 # 27 #
28 # This test is meant to verify that, even with lazy partial symtab 28 # This test is meant to verify that, even with lazy partial symtab
29 # reading in effect, GDB can set breakpoints by line number 29 # reading in effect, GDB can set breakpoints by line number
30 # successfully in either compilation unit. 30 # successfully in either compilation unit.
31 31
32 set testfile expand-psymtabs 32 standard_testfile
33 set srcfile ${testfile}.c
34 set binfile ${objdir}/${subdir}/${testfile}
35 set binfile_1 ${objdir}/${subdir}/${testfile}_1.o
36 set binfile_2 ${objdir}/${subdir}/${testfile}_2.o
37 33
38 # What compiler are we using? 34 # What compiler are we using?
39 if [get_compiler_info] { 35 if [get_compiler_info] {
40 return -1 36 return -1
41 } 37 }
42 38
43 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_1}" object {debug additional_flags=-DFIRST} ] != "" } { 39 # We intentionally compile the source file in twice.
44 untested expand-psymtabs.exp 40 if {[prepare_for_testing_full $testfile.exp \
45 return -1 41 » [list $testfile debug $srcfile {debug additional_flags=-DFIRST} \
42 » $srcfile debug]]} {
43 return -1
46 } 44 }
47 45
48 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_2}" object {debug }] != "" } {
49 untested expand-psymtabs.exp
50 return -1
51 }
52
53 if { [gdb_compile "${binfile_1} ${binfile_2}" "${binfile}" executable {debug}] != "" } {
54 untested expand-psymtabs.exp
55 return -1
56 }
57
58 gdb_exit
59 gdb_start
60 gdb_reinitialize_dir $srcdir/$subdir
61 gdb_load ${binfile}
62
63 set foo_bp [gdb_get_line_number "Break here"] 46 set foo_bp [gdb_get_line_number "Break here"]
64 gdb_test "break $foo_bp" "Breakpoint.*" "Expand psymtabs" 47 gdb_test "break $foo_bp" "Breakpoint.*" "Expand psymtabs"
65 48
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/expand-psymtabs.c ('k') | gdb/testsuite/gdb.base/exprs.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698