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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc3/] [gdb/] [testsuite/] [gdb.arch/] [i386-unwind.c] - Diff between revs 330 and 513

Only display areas with differences | Details | Blame | View Log

Rev 330 Rev 513
/* Unwinder test program.
/* Unwinder test program.
 
 
   Copyright 2003, 2004, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
   Copyright 2003, 2004, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
 
   This file is part of GDB.
   This file is part of GDB.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 
#ifdef SYMBOL_PREFIX
#ifdef SYMBOL_PREFIX
#define SYMBOL(str)     SYMBOL_PREFIX #str
#define SYMBOL(str)     SYMBOL_PREFIX #str
#else
#else
#define SYMBOL(str)     #str
#define SYMBOL(str)     #str
#endif
#endif
 
 
void
void
trap (void)
trap (void)
{
{
  asm ("int $0x03");
  asm ("int $0x03");
}
}
 
 
/* Make sure that main directly follows a function without an
/* Make sure that main directly follows a function without an
   epilogue.  */
   epilogue.  */
 
 
asm(".text\n"
asm(".text\n"
    "    .align 8\n"
    "    .align 8\n"
    "    .globl gdb1435\n"
    "    .globl gdb1435\n"
    "gdb1435:\n"
    "gdb1435:\n"
    "    pushl %ebp\n"
    "    pushl %ebp\n"
    "    mov   %esp, %ebp\n"
    "    mov   %esp, %ebp\n"
    "    call  " SYMBOL (trap) "\n"
    "    call  " SYMBOL (trap) "\n"
    "    .globl " SYMBOL (main) "\n"
    "    .globl " SYMBOL (main) "\n"
    SYMBOL (main) ":\n"
    SYMBOL (main) ":\n"
    "    pushl %ebp\n"
    "    pushl %ebp\n"
    "    mov   %esp, %ebp\n"
    "    mov   %esp, %ebp\n"
    "    call  gdb1435\n");
    "    call  gdb1435\n");
 
 

powered by: WebSVN 2.1.0

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