Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - use -s, use -i; usemsg -i: (3 Items)
   
use -s, use -i; usemsg -i  
Hi, 

I am trying to use use -s with my executables and I am always getting "No info available in (...)"

Does anybody know how to put the information into the file in order to make it appear when typing use -s myprogram?

I've been able to use usemsh-i and use-i but this kind of limitated.
Re: use -s, use -i; usemsg -i  
Albert Andreu wrote:
> Hi, 
> 
> I am trying to use use -s with my executables and I am always getting "No info available in (...)"
> 
> Does anybody know how to put the information into the file in order to make it appear when typing use -s myprogram?

use -s just dumps the .ident section so you can inject ident strings 
into your binary using inline assembly. For example, we define a 
__SRCVERSION macro in sys/srcversion.h which does the following:

#if defined(__QNXNTO__) && defined(__USESRCVERSION)
# define __SRCVERSION(__id)												\
	__asm__(".section .ident,\"SM\",%progbits,1; .asciz " #__id "; .previous");
#else
# define __SRCVERSION(__id)
#endif

and then at the bottom of our source files we have:

  __SRCVERSION( "$URL: file:///svn/product/trunk/foo $ $Rev: 123456 $" )

Hope this helps.

Regards,

Ryan Mansfield
Re: use -s, use -i; usemsg -i  
I hope so.

I'll try as soon as I can and I let  U know

Thanks