Skip to content

Commit b64d2fc

Browse files
committed
Apply shell annotation
1 parent d03c42a commit b64d2fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Trace files
116116
## Debugging Facilities
117117

118118
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
120120
$ scripts/debug.py -h
121121
usage: debug.py [-h] [-d | -a]
122122

@@ -126,7 +126,7 @@ optional arguments:
126126
-a, --analyze Analyze the core dump file
127127
```
128128
* Enter GDB without interruption by **SIGALRM**.
129-
```
129+
```shell
130130
$ scripts/debug.py -d
131131
Reading symbols from lab0-c/qtest...done.
132132
Signal Stop Print Pass to program Description
@@ -138,13 +138,13 @@ cmd>
138138

139139
The core dump file was created in the working directory of the `qtest`.
140140
* Allow the core dumps by using shell built-in command **ulimit** to set core file size.
141-
```
141+
```shell
142142
$ ulimit -c unlimited
143143
$ ulimit -c
144144
unlimited
145145
```
146146
* Enter GDB and analyze
147-
```
147+
```shell
148148
$ scripts/debug.py -a
149149
Reading symbols from lab0-c/qtest...done.
150150
[New LWP 9424]
@@ -167,7 +167,7 @@ cmd>
167167
168168
A small web server is already integrated within the `qtest` command line interpreter,
169169
and you may use it by running the `web` command in its prompt.
170-
```
170+
```shell
171171
$ ./qtest
172172
cmd> web
173173
listen on port 9999, fd is 3

0 commit comments

Comments
 (0)