Bug 6609

Summary: drop .../ from paths in backtrace
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2244    

Description Andrew Cagney 2008-06-09 16:32:34 UTC

  $ ./frysk/bindir/fstack -rich core.7841
  Task #7841
  #0 0x00110416 in [unknown] from [vdso]
  #1 0x00a39028 in abort () from .../libc.so.6
  #2 0x02d9f68c in _Jv_Throw () from .../libgcj.so.9
  #3 0x02d92bf0 in [unknown] from .../libgcj.so.9

rather than including .../, just print the name without leading information, an
option can force the inclusion of the full path; similar for file names.
Comment 1 Andrew Cagney 2008-06-11 19:23:55 UTC
commit 65837bf7e7a75451a6d5971e52ed06edef716ed3
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Jun 10 13:21:49 2008 -0400

    Improve fstack, et.al., output; add Frame.toPrint PrintStackOptions param.
    This changes the following in fstack et.al.:
    -> prints the shared library by default
    -> prints FUNC() _at_ FILE#line
    -> tightens tests to explicit check for parameter names, and not
       values (and adds framework for adding a -print values option).
    -> makes ferror consistent with other utilities - print an abi frame
       by default
    -> for -rich, don't print local variable information