Skip to content

Commit 7995d1d

Browse files
committed
use dos2unix
1 parent 0d2c65f commit 7995d1d

10 files changed

Lines changed: 10 additions & 10 deletions

gdb_hello_core.ko.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# 이 스크립트는 지정된 core 덤프 파일을 gdb로 분석하기 위해 실행됩니다.
44

55
set -euo pipefail
6-
6+
77
# 작업 디렉터리 및 실행 파일 경로 설정
88
WORKDIR="/home/jaytwo/workspace/coredump-workspace"
99
EXEC="${WORKDIR}/hello"

gdb_hello_core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -euo pipefail
77
# Set working directory and executable path
88
WORKDIR="/home/jaytwo/workspace/coredump-workspace"
99
EXEC="${WORKDIR}/hello"
10-
10+
1111
# Check arguments
1212
if [ $# -ne 1 ]; then
1313
echo "Usage: $0 <core_dump_file>"

list_core_with_time.ko.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -euo pipefail
88
shopt -s nullglob
99

1010
FOUND=0
11-
11+
1212
for f in core.*; do
1313
# 마지막 '.' 이후를 timestamp로 간주
1414
ts="${f##*.}"

list_core_with_time.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -euo pipefail
77

88
shopt -s nullglob
9-
9+
1010
FOUND=0
1111

1212
for f in core.*; do

run_hello_with_core.ko.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euo pipefail
1111
# 작업 디렉터리 및 실행 파일 경로 설정
1212
WORKDIR="/home/jaytwo/workspace/coredump-workspace"
1313
EXEC="${WORKDIR}/hello"
14-
14+
1515
cd "${WORKDIR}"
1616

1717
# 코어 덤프 허용 (현재 쉘/프로세스에만 적용)

run_hello_with_core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# If not configured, coredump files will not be created.
88

99
set -euo pipefail
10-
10+
1111
# Set working directory and executable path
1212
WORKDIR="/home/jaytwo/workspace/coredump-workspace"
1313
EXEC="${WORKDIR}/hello"

run_hello_with_core_daemon.ko.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# 설정하지 않으면 coredump 파일이 생성되지 않습니다.
99

1010
set -euo pipefail
11-
11+
1212
# 작업 디렉터리 및 실행 파일 경로, 로그 파일 경로 설정
1313
WORKDIR="/home/jaytwo/workspace/coredump-workspace"
1414
EXEC="${WORKDIR}/hello"

run_hello_with_core_daemon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# If not configured, coredump files will not be created.
99

1010
set -euo pipefail
11-
11+
1212
# Set working directory, executable path, and log file path
1313
WORKDIR="/home/jaytwo/workspace/coredump-workspace"
1414
EXEC="${WORKDIR}/hello"

setup_core_dump_systemwide.ko.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ "$EUID" -ne 0 ]; then
99
echo "예: sudo $0"
1010
exit 1
1111
fi
12-
12+
1313
# core 파일을 실행 디렉터리에 생성: core.<exe>.<pid>.<time>
1414
CORE_PATTERN="core.%e.%p.%t"
1515
# time 정보 읽는 예제: date -d @1735123456 '+%Y-%m-%d %H:%M:%S %Z'

setup_core_dump_systemwide.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ "$EUID" -ne 0 ]; then
99
echo "Example: sudo $0"
1010
exit 1
1111
fi
12-
12+
1313
# Create core files in the execution directory: core.<exe>.<pid>.<time>
1414
CORE_PATTERN="core.%e.%p.%t"
1515
# Example to read time info: date -d @1735123456 '+%Y-%m-%d %H:%M:%S %Z'

0 commit comments

Comments
 (0)