Saturday, May 19, 2007

Arrage Icons by CVS Status

I want Tortoise CVS to arrange icons based on CVS Status. I was not able
to do so. I check up the feature list need find them there. I also check
the features wanted listed, no luck even there. I thought I should add
code to tortoise for this feature. When I was studying some pages for
adding a column on the file explorer. It was here that I found that the
feature already exists.

All you got to do is
1.Click View->Details
2.Right Click on the column header, choose more.
3.Select amoung the CVS Status, CVS Revision, CVS Sticky Tags or CVS
File type
4.Click View->Arrange Icons by->CVS Status
5............There you go, it is ordered by CVS Status ( Modified,
Unmodifed, Unknown, Added, Conflict, Removed )

Wednesday, March 08, 2006

void __builtin_return_address (unsigned int level);

void __builtin_return_address (unsigned int level);
    Returns the return address of the current function, or of one of its callers. Where level argument is a constant literal indicating the number of frames to scan up the call stack. The level must range from 0 to 63. A value of 0 yields the return address of the current function, a value of 1 yields the return address of the caller of the current function and so on.
Notes:
  1. When the top of the stack is reached, the function will return 0.
  2. The level must range from 0 to 63, otherwise a warning message will be issued and the compilation will halt.
  3. When functions are inlined, the return address corresponds to that of the function that is returned to.
  4. Compiler optimization may affect expected return value due to introducing extra stack frames or fewer stack frames than expected due to optimizations such as inlining.
    __builtin_return_address(0) yields the address to which the current function will return. __builtin_return_address(1) yields the address to which the caller will return, and so on up the stack.
    Return probes operates by replacing the return address in the stack (or in a known register, such as the lr register for ppc - what else can you do with a system with 100's of registers :) ). This may cause __builtin_return_address(0), when invoked from return-probed function, to return the address of the return-probes trampoline. There has been concern that this will break something.
    __builtin_return_address is used entirely for tracing, profiling, and error reporting.