# $Id: .gdbinit,v 1.5 2003/03/22 20:06:57 short Exp $
# gdb init script for convenient debugging
# Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
# 
# 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
# the Free Software Foundation; exactly version 2 of June 1991 is required
# 
# This program 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 General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


# for $(top_srcdir)/src/libcaptive/ps/signal.c
handle SIGSEGV nostop noprint pass
set env LD_PRELOAD=/usr/lib/libefence.so
# FIXME: _append_ to the previous LD_LIBRARY_PATH value
set env LD_LIBRARY_PATH ./src/libcaptive/.libs/
file ./src/client/cmdline/.libs/captive-cmdline
set args --load-module=$HOME/.captive/ntoskrnl.exe --filesystem=$HOME/.captive/fs.sys --disk --blind /tmp/captive.bin #--debug-messages
b main
run
# break when the W32 fs module is already loaded
#b captive_signal_init
cont
