You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ Trace files
116
116
## Debugging Facilities
117
117
118
118
Before using GDB debug `qtest`, there are some routine instructions need to do. The script `scripts/debug.py` covers these instructions and provides basic debug function.
119
-
```
119
+
```shell
120
120
$ scripts/debug.py -h
121
121
usage: debug.py [-h] [-d |-a]
122
122
@@ -126,7 +126,7 @@ optional arguments:
126
126
-a, --analyze Analyze the core dump file
127
127
```
128
128
* Enter GDB without interruption by **SIGALRM**.
129
-
```
129
+
```shell
130
130
$ scripts/debug.py -d
131
131
Reading symbols from lab0-c/qtest...done.
132
132
Signal Stop Print Pass to program Description
@@ -138,13 +138,13 @@ cmd>
138
138
139
139
The core dump file was created in the working directory of the `qtest`.
140
140
* Allow the core dumps by using shell built-in command **ulimit** to set core file size.
141
-
```
141
+
```shell
142
142
$ ulimit -c unlimited
143
143
$ ulimit -c
144
144
unlimited
145
145
```
146
146
* Enter GDB and analyze
147
-
```
147
+
```shell
148
148
$ scripts/debug.py -a
149
149
Reading symbols from lab0-c/qtest...done.
150
150
[New LWP 9424]
@@ -167,7 +167,7 @@ cmd>
167
167
168
168
A small web server is already integrated within the `qtest` command line interpreter,
169
169
and you may use it by running the `web` command in its prompt.
0 commit comments