• 大小: 3.87MB
    文件类型: .gz
    金币: 1
    下载: 0 次
    发布日期: 2023-11-15
  • 语言: 其他
  • 标签: bochs  虚拟机  

资源简介

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‘\n“ __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

评论

共有 条评论