aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-06-25 15:34:46 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-06-25 15:34:46 +0000
commit5868a6328778ab92661f992c78ec9113b0473b12 (patch)
tree7bf12dbbe4b61d8f4f0fc97a476dc0d76d781cdf /gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c
parentaf76db58d70f013feb5e5854ea8bd23929275b7b (diff)
downloadgdb-5868a6328778ab92661f992c78ec9113b0473b12.zip
gdb-5868a6328778ab92661f992c78ec9113b0473b12.tar.gz
gdb-5868a6328778ab92661f992c78ec9113b0473b12.tar.bz2
gdb/testsuite/
Test PR python/11407. * gdb.dwarf2/dw2-ref-missing-frame-func.c: New file. * gdb.dwarf2/dw2-ref-missing-frame.S: Use cu_text_start and cu_text_end. Split main into func_nofb and func_loopfb dropping NO_FRAME_BASE. * gdb.dwarf2/dw2-ref-missing-frame.exp: Remove variables sources, executable_nofb and executable_fb. New variables srcsfile, objsfile, srcfuncfile, objfuncfile, srcmainfile, objmainfile, executable and binfile. Call gdb_compile with clean_restart twice. (func_nofb print, func_nofb backtrace, func_loopfb print) (func_loopfb backtrace): New.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c
index 966fb7d..f5dd871 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-main.c
@@ -15,16 +15,16 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-asm (".globl main_start");
-asm ("main_start:");
+extern void func_nofb (void);
+extern void func_loopfb (void);
int
main (void)
{
- /* int main_var; */
+ int main_var = 1;
+
+ func_nofb ();
+ func_loopfb ();
return 0;
}
-
-asm (".globl main_end");
-asm ("main_end:");