Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.
Joy Arulraj edited this page Nov 28, 2015 · 5 revisions

GDB Environment

Set up gdb environment by copying these lines into ~\.gdbinit:

# We have scroll bars in the year 2015!  
set pagination off

# Attach to both parent and child on fork  
set detach-on-fork off

# Stop/resume all processes  
set schedule-multiple on

# Usually don't care about these signals  
handle SIGUSR1 noprint nostop
handle SIGUSR2 noprint nostop

# Ugly hack so we don't break on process exit  
python gdb.events.exited.connect(lambda x: [gdb.execute('inferior 1'), gdb.post_event(lambda: gdb.execute('continue'))])

Start Peloton Under GDB

## Stop peloton server  
pg_ctl -D ./data stop

## Launch peloton under gdb  
gdb --args peloton -D ./data 

Useful Links

Clone this wiki locally