Bug 6641

Summary: Disassember does not work on bash nor funit-hello
Product: frysk Reporter: Sami Wagiaalla <swagiaal>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Sami Wagiaalla 2008-06-12 16:56:40 UTC
[swagiaal@toner frysk-core]$ ./frysk/bindir/fhpd $$
Attached to process 22852
(fhpd) list
[0.0]
    22   #include <sys/wait.h>
    23   
    24   __pid_t
    25   __libc_waitpid (__pid_t pid, int *stat_loc, int options)
    26   {
    27     if (SINGLE_THREAD_P)
    28       {
    29   #ifdef __NR_waitpid
    30         return INLINE_SYSCALL (waitpid, 3, pid, stat_loc, options);
    31   #else
->  32         return INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL);
    33   #endif
    34       }
    35   
    36     int oldtype = LIBC_CANCEL_ASYNC ();
    37   
    38   #ifdef __NR_waitpid
    39     int result = INLINE_SYSCALL (waitpid, 3, pid, stat_loc, options);
    40   #else
    41     int result = INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL);
(fhpd) disassemble 
[0.0]
Dump of assembler code for function: __waitpid
Error: no disassember available
(fhpd) 

--------------
[swagiaal@toner frysk-core]$ ./frysk/bindir/fhpd ./frysk/pkglibdir/funit-hello
[0.0] Loaded executable file:
/notnfs/swagiaal/frysks.bin/frysk.testBuild/frysk-core/frysk/pkglibdir/funit-hello
(fhpd) break main
breakpoint 0 deferred
(fhpd) run
running with this command:
/notnfs/swagiaal/frysks.bin/frysk.testBuild/frysk-core/frysk/pkglibdir/funit-hello
Attached to process 17324
Running process 17324
(fhpd) Breakpoint 0 main 0x4004f6
disassemble 
[0.0]
Dump of assembler code for function: main
Error: no disassember available
(fhpd)
Comment 1 Andrew Cagney 2008-06-12 18:28:02 UTC
Workaround with LD_LIBRARY_PATH= path-to-elfutils/backends

*** This bug has been marked as a duplicate of 6566 ***