Skip to content

Commit

Permalink
Add gdbinit config (faasm#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shillaker authored Feb 3, 2022
1 parent 7130c12 commit 5b67a98
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gdbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

handle SIGSEGV nostop noprint

4 changes: 4 additions & 0 deletions docker/faabric.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ RUN inv dev.cmake --shared --build=Release
RUN inv dev.cc faabric --shared
RUN inv dev.install faabric --shared

# GDB config, allow loading repo-specific config
RUN touch /root/.gdbinit
RUN echo "set auto-load safe-path /" > /root/.gdbinit

# CLI setup
ENV TERM xterm-256color
SHELL ["/bin/bash", "-c"]
Expand Down
5 changes: 5 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ pip install -r requirements.txt
inv dev.cc faabric
```

## Debugging

Note that Faabric provides its own `.gdbinit` file which will ensure segfaults
(used in dirty tracking) aren't caught by gdb by default.

## Testing

We have some standard tests using [Catch2](https://github.com/catchorg/Catch2)
Expand Down

0 comments on commit 5b67a98

Please sign in to comment.