mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
25 lines
526 B
Bash
Executable file
25 lines
526 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Command-line script for interacting with a BSim database
|
|
|
|
# maximum heap memory (may be increased)
|
|
MAXMEM=768M
|
|
|
|
# launch mode (fg, bg, debug, debug-suspend)
|
|
LAUNCH_MODE=fg
|
|
|
|
#set debug port for debug mode if used
|
|
|
|
OS=`uname -s`
|
|
|
|
SED=/bin/sed
|
|
if [ "$OS" = "Darwin" ]; then
|
|
SED=/usr/bin/sed
|
|
fi
|
|
|
|
LAUNCH_DIR=`echo $0 | $SED -e 's/[^\/]*$//'`
|
|
if [ "$LAUNCH_DIR" = "" ]; then
|
|
LAUNCH_DIR="./";
|
|
fi
|
|
|
|
${LAUNCH_DIR}launch.sh $LAUNCH_MODE jdk "BSim" $MAXMEM "" ghidra.features.bsim.query.ingest.BSimLaunchable "$@"
|