Bug 6608

Summary: always include solib in backtrace
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
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:31:12 UTC
vis:

  $ ./frysk/bindir/fstack core.7841
  Task #7841
  #0 0x00110416 in [unknown]
  #1 0x00a39028 in abort ()
  #2 0x02d9f68c in _Jv_Throw ()
  #3 0x02d92bf0 in [unknown]

vs:

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

The -rich shouldn't be required to see the solib.
Comment 1 Andrew Cagney 2008-06-11 18:51:22 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