[U-Boot-Users] Patch to show address definition based on file/line number with e xtra flags in the nm command

atul.sabharwal at exgate.tek.com atul.sabharwal at exgate.tek.com
Thu Oct 20 03:10:46 CEST 2005


This is a nit but instead of tracing code using cscope/ctags or fgrep, this
method
Makes code tracing lot quicker. Unless you have an IDE :)

I have used cscope but have not been able to search symbols at a top level
Directory from a directory N level deep.  Any tips appreciated.


--- /login/asabharw/lxhome/u-boot-1.1.3/Makefile	2005-08-13
16:53:35.000000000 -0700
+++ Makefile	2005-10-17 18:59:37.000000000 -0700
@@ -194,7 +194,7 @@
 			\( -name CVS -prune \) -o \( -name '*.[ch]' -print
\)`
 
 System.map:	u-boot
-		@$(NM) $< | \
+		$(NM) -A -l $< | \
 		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw]
\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
 		sort > System.map





More information about the U-Boot mailing list