Bug 6598 - next doesn't immediatly step off a breakpoint
Summary: next doesn't immediatly step off a breakpoint
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 5840
  Show dependency treegraph
 
Reported: 2008-06-05 16:26 UTC by Andrew Cagney
Modified: 2008-10-21 21:40 UTC (History)
1 user (show)

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-05 16:26:02 UTC
For instance,

$ LD_LIBRARY_PATH=/home/cagney/frysk/git/native/frysk-imports/elfutils/backends
./frysk/bindir/fhpd ./frysk/pkglibdir/funit-stepping-asm
[0.0] Loaded executable file:
/home/cagney/frysk/git/native/frysk-core/frysk/pkglibdir/funit-stepping-asm
(fhpd) break main
breakpoint 0 deferred
(fhpd) run
running with this command:
/home/cagney/frysk/git/native/frysk-core/frysk/pkglibdir/funit-stepping-asm
Attached to process 21209
Running process 21209
(fhpd) Breakpoint 0 main 0x400519
list
[0.0]
   117          LOAD_REGISTER_IMMED(REG1,1)
   118          SUB(REG0, REG1)
   119          FUNCTION_CALL(recursive)                // _recursive
   120   1:
   121          FUNCTION_EPILOGUE(recursive,0)
   122          FUNCTION_RETURN(recursive,0)
   123          FUNCTION_END(recursive,0)
   124   
   125   
   126          FUNCTION_BEGIN(main, 0)
-> 127          MAIN_PROLOGUE(0)
   128          FUNCTION_CALL(first)
   129          FUNCTION_CALL(multi)
   130          LOAD_REGISTER_IMMED(REG0, 3) ; FUNCTION_CALL(recursive)
   131          MAIN_EPILOGUE(0)
   132          FUNCTION_RETURN(main,0)
   133          FUNCTION_END(main,0)
(fhpd) next
Task stopped at line 127 in file
/home/cagney/frysk/git/frysk/frysk-core/frysk/pkglibdir/funit-stepping-asm.S
(fhpd) 

contrast this to step:

-> 127          MAIN_PROLOGUE(0)
   128          FUNCTION_CALL(first)
   129          FUNCTION_CALL(multi)
   130          LOAD_REGISTER_IMMED(REG0, 3) ; FUNCTION_CALL(recursive)
   131          MAIN_EPILOGUE(0)
   132          FUNCTION_RETURN(main,0)
   133          FUNCTION_END(main,0)
(fhpd) step
Task stopped at line 128 in file
/home/cagney/frysk/git/frysk/frysk-core/frysk/pkglibdir/funit-stepping-asm.S
(fhpd)