Saturday, January 29, 2011

OS X IP alias

To avoid reconfiguring interfaces for repeated router setups, decided to find out how to add an IP alias in Mac OS X:

sudo ifconfig en1 alias 192.168.1.195 netmask 255.255.255.0

aplawrence.com


Wednesday, January 26, 2011

gdb tricks

Excellent gdb examples at ksplice.com blog.

gdb --args
directory
set substitute path

-ggdb3 to gdb optimized debug symbols; macro expand