-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashscript.sh
More file actions
36 lines (29 loc) · 719 Bytes
/
bashscript.sh
File metadata and controls
36 lines (29 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#Copyright (c) 2019 Group of Computer Architecture, university of Bremen. All Rights Reserved.
#Version 1 09-July-2019
#!/bin/bash
filename='gdb_symbol.txt'
filenameGDBLog='gdblog.txt'
filenameGDBLog_ctrl='gdblog_ctrl.txt'
flagDataExtractor=0
flagGDBCommand=0
if [ -f "$filename" ]; then
python DataExtractor.py
flagDataExtractor=1
fi&&
if [ $flagDataExtractor -eq 1 ]; then
gdb gdb_output <<EOF
source gdb_source_generated.txt
EOF
fi&&
if [ -f "$filenameGDBLog" ]; then
python EndFuncExtractor.py
flagGDBCommand=1
fi&&
if [ $flagGDBCommand -eq 1 ]; then
gdb gdb_output <<EOF
source gdb_source_generated_ctrl.txt
EOF
fi&&
if [ -f "$filenameGDBLog_ctrl" ]; then
python ControlFlowGenerator.py
fi;