Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gdbinit config #217

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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