changeset 880:a3268a1c055e

Quick sniff test to find leaked global variables.
author Rob Landley <rob@landley.net>
date Fri, 26 Apr 2013 01:46:03 -0500
parents bc7aa2d123b9
children 2945e3cbebf2
files scripts/findglobals.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/findglobals.sh	Fri Apr 26 01:46:03 2013 -0500
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# Quick and dirty check to see if anybody's leaked global variables.
+# We should have this, toy_list, toybuf, and toys.
+
+nm toybox_unstripped | grep '[0-9A-Fa-f]* [BCDGRS]' | cut -d ' ' -f 3