Bug 6609 - drop .../ from paths in backtrace
Summary: drop .../ from paths in backtrace
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 2244
  Show dependency treegraph
 
Reported: 2008-06-09 16:32 UTC by Andrew Cagney
Modified: 2008-06-11 19:23 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2008-06-09 16:32:34 UTC
e.g.,:

  $ ./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