Skip to content

Instantly share code, notes, and snippets.

@jpallister
jpallister / gdb-7.2a_patch
Created December 17, 2013 12:49
Patch file to apply to msp430 gdb-7.2a, as in http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Install:fromsource This fixes a crash when a .data segment is not in the file, changes the reset vectors to load from the last word of .vectors and adds simplistic instruction tracing.
diff -u -w -r gdb-7.2/sim/msp430/interp.c gdb-7.2_fixed/sim/msp430/interp.c
--- gdb-7.2/sim/msp430/interp.c 2013-12-17 12:32:59.982840965 +0000
+++ gdb-7.2_fixed/sim/msp430/interp.c 2013-12-17 12:32:35.114841379 +0000
@@ -844,6 +844,8 @@
}
}
+static int tracing = 0;
+
#undef AND