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 18:24 atul.sabharwal at exgate.tek.com
  2005-10-20 20:27 ` [U-Boot-Users] Patch to show address definition based on file Andrew Wozniak
  0 siblings, 1 reply; 2+ messages in thread
From: atul.sabharwal at exgate.tek.com @ 2005-10-20 18:24 UTC (permalink / raw)
  To: u-boot

I did that. Then I did cscope -b -R -u -q to enable a fast recursive index
file generation in the top directory.  Now I go to cpu/mpc8xx and search
For the typedef bd_t from that directory & cannot find it.  There
Are some environment varibles e.g. $HOME or $SOURCEDIRS and it does not
work.  Even define a CSCOPE_DIR variable in the main.c to change cwd to this
Directory but no quick solution.  Unless its some user error on my part:)

-----Original Message-----
From: Frank [mailto:frannk_m1 at yahoo.com] 
Sent: Wednesday, October 19, 2005 7:54 PM
To: Sabharwal, Atul; u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Patch to show address definition based on
file/line number with e xtra flags in the nm command

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] 2+ messages in thread

* [U-Boot-Users] Patch to show address definition based on file
  2005-10-20 18:24 [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 20:27 ` Andrew Wozniak
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Wozniak @ 2005-10-20 20:27 UTC (permalink / raw)
  To: u-boot

cscope alway looks in the current directory for the cscope.out file. If 
you cd into another directory, use this to specify the cscope.out path:

   cscope -f <path>/cscope.out

BTW, this is all OFF-TOPIC. see http://cscope.sourceforge.net for docs!

atul.sabharwal at exgate.tek.com wrote:
> I did that. Then I did cscope -b -R -u -q to enable a fast recursive index
> file generation in the top directory.  Now I go to cpu/mpc8xx and search
> For the typedef bd_t from that directory & cannot find it.  There
> Are some environment varibles e.g. $HOME or $SOURCEDIRS and it does not
> work.  Even define a CSCOPE_DIR variable in the main.c to change cwd to this
> Directory but no quick solution.  Unless its some user error on my part:)
> 
> -----Original Message-----
> From: Frank [mailto:frannk_m1 at yahoo.com] 
> Sent: Wednesday, October 19, 2005 7:54 PM
> To: Sabharwal, Atul; u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Patch to show address definition based on
> file/line number with e xtra flags in the nm command
> 
> 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/
> 
> 
> -------------------------------------------------------
> 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
> 

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

end of thread, other threads:[~2005-10-20 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 18:24 [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 20:27 ` [U-Boot-Users] Patch to show address definition based on file Andrew Wozniak

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