Bug 5799

Summary: Listing error occurs when duplicate exectables are loaded/unloaded
Product: frysk Reporter: Rick Moseley <rmoseley>
Component: generalAssignee: Rick Moseley <rmoseley>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246    

Description Rick Moseley 2008-02-28 05:29:11 UTC
When 2 executables are loaded via the load command and then one unloaded,
load/unload should list the 1 remaining when no parameters are given, instead
nothing is listed.  Here is the sequence to duplicate:

(fhpd) load ../pkglibdir/funit-hello         
Loaded executable file: ../pkglibdir/funit-hello
(fhpd) load ../pkglibdir/funit-hello         
Loaded executable file: ../pkglibdir/funit-hello
(fhpd) load
Target set      pid     id      path-to-executable
[0.0]           0       0      
/home/rmoseley/frysk-git3/build/frysk-core/frysk/bindir/../pkglibdir/funit-hello
[1.0]           0       0      
/home/rmoseley/frysk-git3/build/frysk-core/frysk/bindir/../pkglibdir/funit-hello
(fhpd) unload -t 0
Removed Target id [0]
(fhpd)load
Target set      pid     id      path-to-executable
(fhpd)


The above "load" command should print this:

Target set      pid     id      path-to-executable
[1.0]           0       0      
/home/rmoseley/frysk-git3/build/frysk-core/frysk/bindir/../pkglibdir/funit-hello
Comment 1 Rick Moseley 2008-02-28 05:34:01 UTC
Fixed in HEAD.

* ViewsetCommand.java: Fix error when duplicate executables are
  loaded/unloaded(bz 5799).