Ever had those annoying SEGMENTATION FAULT errors? Ever screamed in frustration because you weren't able to find their cause? Don't worry, GDB to the rescue!
#A faulty program
We have this C program: (prog1.c
)
#include <stdio.h>
int
export LC_ALL='en_US.UTF-8' | |
export LANG='en_US.UTF-8' | |
xrdb ~/.Xdefaults | |
xmodmap ~/.xmodmap | |
synclient TapButton2=3 TapButton3=2 HorizTwoFingerScroll=1 \ | |
VertTwoFingerScroll=1 VertScrollDelta=-104 HorizScrollDelta=-104 PalmDetect=1 \ | |
PalmMinWidth=5 MaxTapTime=0 MaxTapMove=0 | |
echo 300 > /sys/class/backlight/intel_backlight/brightness | |
while : ; do | |
cat /sys/class/power_supply/BAT0/charge_now |
#!/bin/sh | |
BROWSER=firefox | |
XCLIP=xclip | |
BROWSER=`which $BROWSER` | |
XCLIP=`which $XCLIP` | |
TMP_IMG=/tmp/nyazo.png | |
TMP_FILE=/tmp/nyazo | |
BOUNDARY="----BOUNDARYBOUNDARY----" |
#include "../irc.h" | |
#include "../module.h" | |
#include "../config.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
static char *mod_invokers[1] = {NULL}; /* are you sure you don't want it to be called when "anime" is said? */ | |
static void anime(char **args, enum irc_type type); |
Ever had those annoying SEGMENTATION FAULT errors? Ever screamed in frustration because you weren't able to find their cause? Don't worry, GDB to the rescue!
#A faulty program
We have this C program: (prog1.c
)
#include <stdio.h>
int
#Hello
This is a Markdown file, and should be read as such! We can
use bold and monospace
and more things I can't remember,
and we can
#include <stdio.h>
int