File: duma.sh

package info (click to toggle)
duma 2.5.15-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,884 kB
  • sloc: ansic: 5,308; cpp: 2,204; makefile: 695; sh: 90
file content (17 lines) | stat: -rwxr-xr-x 471 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

#
# Simple script to run DUMA on stuff.  (needs libduma.so).
#
# $Id: duma.sh,v 1.7 2008/07/20 22:59:32 h_ayguen Exp $
#

# Usage check.
if [ "$1" = "" ]; then
	echo "$0: Usage: duma [executable] [arguments]."
	echo "	Runs the executable under the DUMA malloc debugger."
	exit
fi

# Set the environment to (pre)load duma library.
(export LD_PRELOAD=./libduma.so.0.0.0; export DYLD_INSERT_LIBRARIES=libduma.dylib; export DYLD_FORCE_FLAT_NAMESPACE=1; exec $*)