Align README and debugging procedure.

This commit is contained in:
Enrico Fraccaroli
2022-12-08 13:20:17 -05:00
parent 26daf96b90
commit b1f3169310
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -264,15 +264,16 @@ cmake ..
make
```
Then, you need to generate a file called `.gdbinit` placed inside the `build` directory, which will tell **gdb** which *object* file he needs to read in order to allow proper debugging.
Then, you need to generate a file called `.gdbinit` placed inside the `build` directory, which will tell **gdb** which *object* file he needs to read in order to allow proper debugging. To generate the file, just execute:
```bash
make gdb_file
make gdbinit
```
Finally, you run qemu in debugging mode with:
```bash
make qemu-gdb
```
If you did everything correctly, you should see an empty QEMU window. Basically, QEMU is waiting for you to connect *remotely* with gdb. Anyway, running `make qemu-gdb` will make your current shell busy, you cannot call `gdb` in it. You need to open a new shell inside the `build` folder and do a:
```bash
cgdb -q -iex 'add-auto-load-safe-path .'