public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Patch to show address definition based on file/line number with e xtra flags in the nm command
@ 2005-10-20  1:10 atul.sabharwal at exgate.tek.com
  2005-10-20  2:54 ` Frank
  0 siblings, 1 reply; 6+ messages in thread
From: atul.sabharwal at exgate.tek.com @ 2005-10-20  1:10 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] Patch to show address definition based on file/line number with e xtra flags in the nm command
  2005-10-20  1:10 [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
@ 2005-10-20  2:54 ` Frank
  2005-10-20 13:46   ` Detlev Zundel
  0 siblings, 1 reply; 6+ messages in thread
From: Frank @ 2005-10-20  2:54 UTC (permalink / raw)
  To: u-boot

at the top level directory:
find . -name "*.[sSch]" -print >cscope.files


--- atul.sabharwal at exgate.tek.com wrote:

> 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
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads,
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] Patch to show address definition based on file/line number with e xtra flags in the nm command
  2005-10-20  2:54 ` Frank
@ 2005-10-20 13:46   ` Detlev Zundel
  2005-10-21  5:48     ` Frank
  2005-10-21 15:02     ` Frank
  0 siblings, 2 replies; 6+ messages in thread
From: Detlev Zundel @ 2005-10-20 13:46 UTC (permalink / raw)
  To: u-boot

Hi,

> at the top level directory:
> find . -name "*.[sSch]" -print >cscope.files

Why doesn't someone take the time to prepare a patch for a "cscope"
target in the Makefile so that "make cscope" does the correct thing?
There are already "tags" and "etags" targets by the way...

Cheers
  Detlev

-- 
But in terms of creative  information, information that people can use
or enjoy, and that will be  used and enjoyed more  the more people who
have it, always we should encourage the copying.
	                                    -- Richard M. Stallman

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] Patch to show address definition based on file/line number with e xtra flags in the nm command
  2005-10-20 13:46   ` Detlev Zundel
@ 2005-10-21  5:48     ` Frank
  2005-10-21 15:02     ` Frank
  1 sibling, 0 replies; 6+ messages in thread
From: Frank @ 2005-10-21  5:48 UTC (permalink / raw)
  To: u-boot

Like:
make cscope
You have the patch, submit it.:-)


--- Detlev Zundel <dzu@denx.de> wrote:

> Hi,
> 
> > at the top level directory:
> > find . -name "*.[sSch]" -print >cscope.files
> 
> Why doesn't someone take the time to prepare a patch for a
> "cscope"
> target in the Makefile so that "make cscope" does the correct
> thing?
> There are already "tags" and "etags" targets by the way...
> 
> Cheers
>   Detlev
> 
> -- 
> But in terms of creative  information, information that people
> can use
> or enjoy, and that will be  used and enjoyed more  the more
> people who
> have it, always we should encourage the copying.
> 	                                    -- Richard M. Stallman
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads,
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] Patch to show address definition based on file/line number with e xtra flags in the nm command
  2005-10-20 13:46   ` Detlev Zundel
  2005-10-21  5:48     ` Frank
@ 2005-10-21 15:02     ` Frank
  2005-10-24  8:42       ` Detlev Zundel
  1 sibling, 1 reply; 6+ messages in thread
From: Frank @ 2005-10-21 15:02 UTC (permalink / raw)
  To: u-boot


--- Detlev Zundel <dzu@denx.de> wrote:

> Hi,
> 
> > at the top level directory:
> > find . -name "*.[sSch]" -print >cscope.files
> 
> Why doesn't someone take the time to prepare a patch for a
> "cscope"
> target in the Makefile so that "make cscope" does the correct
> thing?
> There are already "tags" and "etags" targets by the way...
> 
> Cheers
>   Detlev

Forgot the target:

cscope:  cscope.files
          find . -name "*.[sSch]" -print >cscope.files



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] Patch to show address definition based on file/line number with e xtra flags in the nm command
  2005-10-21 15:02     ` Frank
@ 2005-10-24  8:42       ` Detlev Zundel
  0 siblings, 0 replies; 6+ messages in thread
From: Detlev Zundel @ 2005-10-24  8:42 UTC (permalink / raw)
  To: u-boot

Hi Frank,

> cscope:  cscope.files
>           find . -name "*.[sSch]" -print >cscope.files

Hmm - this will pick up each and every source file and I am not sure I
like this.  Have you looked at the tags target?  And sorry for being
ignorant, but don't we want cscope.out to be generated also?

Cheers
  Detlev

-- 
A stated design goal of Motif was to give the X Window System the
window management capabilities of HP's circa-1988 window manager and
the visual elegance of Microsoft Windows. We kid you not.
                                          -- The UNIX Haters Handbook

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-24  8:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20  1:10 [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
2005-10-20  2:54 ` Frank
2005-10-20 13:46   ` Detlev Zundel
2005-10-21  5:48     ` Frank
2005-10-21 15:02     ` Frank
2005-10-24  8:42       ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox