bochs-2.4.5.tar.gz


bochs虚拟机,可以调试x86汇编代码,它完整的模拟了一台x86计算机,可以调试自己的操作系统................................................................................................
资源截图
代码片段和文件信息
/////////////////////////////////////////////////////////////////////////
// $Id: ltdl.cv 1.5 2009/02/08 09:05:51 vruppert Exp $
//
// NOTE: The ltdl library comes from the Libtool package.  Bochs uses
// ltdl and libtool to build and load plugins.  The libtool
// documentation describes how to copy ltdl.c and ltdl.h into your
// distribution so it is clearly legal to do so.
/////////////////////////////////////////////////////////////////////////

/* ltdl.c -- system independent dlopen wrapper
   Copyright (C) 1998 1999 2000 Free Software Foundation Inc.
   Originally by Thomas Tanner 
   This file is part of GNU Libtool.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License or (at your option) any later version.

As a special exception to the GNU Lesser General Public License
if you distribute this file as part of a program or library that
is built using GNU libtool you may include it under the same
distribution terms that you use for the rest of that program.

This library is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not write to the Free Software
Foundation Inc. 51 Franklin St Fifth Floor Boston MA  02110-1301 USA

*/

// ltdlconf.h added for Bochs
#include “ltdlconf.h“

#if HAVE_CONFIG_H
#  include 
#endif

#if HAVE_UNISTD_H
#  include 
#endif

#if HAVE_STDIO_H
#  include 
#endif

#if HAVE_STDLIB_H
#  include 
#endif

#if HAVE_STRING_H
#  include 
#else
#  if HAVE_STRINGS_H
#    include 
#  endif
#endif

#if HAVE_CTYPE_H
#  include 
#endif

#if HAVE_MALLOC_H
#  include 
#endif

#if HAVE_MEMORY_H
#  include 
#endif

#if HAVE_ERRNO_H
#  include 
#endif

#if HAVE_DIRENT_H
#  include 
#  define LT_D_NAMLEN(dirent) (strlen((dirent)->d_name))
#else
#  define dirent direct
#  define LT_D_NAMLEN(dirent) ((dirent)->d_namlen)
#  if HAVE_SYS_NDIR_H
#    include 
#  endif
#  if HAVE_SYS_DIR_H
#    include 
#  endif
#  if HAVE_NDIR_H
#    include 
#  endif
#endif

#if HAVE_ARGZ_H
#  include 
#endif

#if HAVE_ASSERT_H
#  include 
#else
#  ifdef __GNUC__
#    warning using my own assert
#  endif
#  define assert(cond)   while (!(cond)) { fprintf (stderr “Assert failed at %s:%d: ‘%s‘
“ __FILE__ __LINE__ #cond); abort(); }
#endif

#define LTDEBUG_PRINTF(x) /* debug output disabled */
//#define LTDEBUG_PRINTF(x) do{ printf(“LT_DEBUG: “); printf x; } while (0)

#include “ltdl.h“




/* --- WINDOWS SUPPORT --- */


#ifdef DLL_EXPORT
#  defi

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)