1. 04 11月, 2017 6 次提交
  2. 25 10月, 2017 1 次提交
    • A
      proc/eval: support more type casts · 8f16b371
      aarzilli 提交于
      * string to []rune
      * string to []byte
      * []rune to string
      * []byte to string
      * any pointer to uintptr
      
      The string, []rune, []byte conversion pairs aligns this to the go
      language.
      The pointer -> uintptr conversion pair is symmetric to the uintptr ->
      pointer that we already have.
      
      Also lets the user specify any size for byte array types instead of
      just the ones already used by the program, this can be used to read
      arbitrary memory.
      
      Fixes #548, #867
      8f16b371
  3. 21 10月, 2017 1 次提交
  4. 17 10月, 2017 1 次提交
  5. 26 9月, 2017 1 次提交
    • A
      proc: change next to skip deferred functions · 5c9b2009
      aarzilli 提交于
      Make 'next' skip deferred functions unless they are called via a panic.
      Call to a deferred function through 'return' are predictable, if the
      user wants to step into them 'step' can be used but without this change
      there is no way to avoid stepping into them.
      
      Implements #956
      5c9b2009
  6. 21 9月, 2017 1 次提交
    • A
      proc/gdbserial: return error if stopped with a sginal · 2c0e3116
      aarzilli 提交于
      On macOS we can also stop when we receive a signal,
      propagate this reason upwards to the client.
      
      Also clear internal breakpoints after an unrecovered-panic since they
      can not be reached anymore.
      
      Fixes #872
      2c0e3116
  7. 12 9月, 2017 1 次提交
  8. 09 9月, 2017 3 次提交
  9. 31 8月, 2017 3 次提交
  10. 15 8月, 2017 1 次提交
  11. 10 8月, 2017 1 次提交
  12. 08 8月, 2017 1 次提交
  13. 02 8月, 2017 11 次提交
  14. 29 7月, 2017 1 次提交
  15. 27 7月, 2017 7 次提交
    • A
      cmd/dlv: delete trace directory when we delete the built executable (#856) · d7a92b58
      Alessandro Arzilli 提交于
      Mozilla RR will create a trace directory that can be reused with the
      replay verb, however if we delete the executable file the trace
      directory will become useless, so delete that too before exit.
      
      Users that wish to reuse a recording should build the executable
      themselves and then use either dlv exec or rr record to do the
      recording.
      d7a92b58
    • A
      debugger/locations: if locspec isn't found try interpreting it as expr (#858) · e0ac447a
      Alessandro Arzilli 提交于
      If the user tries to list the contents of a function pointer but
      forgets the '*' operator the location lookup will fail and result in a
      unhelpful "location not found" error.
      
      Instead if the location lookup fails we should try interpreting the
      locspec as if it was preceded by '*'.
      e0ac447a
    • A
      proc/native: make sure debugged executable can be deleted on windows (#890) · 0cfe5390
      Alex Brainman 提交于
      * proc/native: make sure debugged executable can be deleted on windows
      
      Delve opens debugged executable to read binary info it
      contains, but it never closes the file. Windows will not
      let you delete file that is opened. So close Process.bi
      in Process.postExit, and actually call Process.postExit
      from windows Process.Kill.
      
      Also Windows sends some debugging events
      (EXIT_PROCESS_DEBUG_EVENT event in particular) after Delve
      calls TerminateProcess. The events need to be consumed by
      debugger before debugged process will be released by
      Windows. So call Process.waitForDebugEvent after
      TerminateProcess in Process.Kill.
      
      Fixes #398
      
      * cmd/dlv: make TestIssue398 pass on darwin
      
      * cmd/dlv: add comment for TestIssue398
      
      * proc/native: wait for debuggee to exit before returning from windows Process.Kill
      
      * proc/native: close process handle before returning from windows killProcess
      
      * proc/native: remove not used Process.Process
      0cfe5390
    • A
      proc: fix next when current function is unknown on macOS · 2d9a9a76
      aarzilli 提交于
      Updates #893
      2d9a9a76
    • A
      proc: treat assembly files like go code in Next · 60a5d221
      aarzilli 提交于
      60a5d221
    • A
      proc/native,proc/gdbserial: set selectedGoroutine after StepInstruction · 4121fb1f
      aarzilli 提交于
      When stepping through runtime sometimes the current goroutine will
      change. It is impossible to handle this in Next, Step and StepOut but
      StepInstruction can reset the current goroutine correctly.
      4121fb1f
    • A
      service/debugger: revert Next/StepOut/Step behavior on exit · 283128ae
      aarzilli 提交于
      When the process exits during we used to return an error, but after
      commit 8bbcc89711f4263e7bb2b6d9c00fa96d0294e56f we move the error into
      state.Err. Revert this behavior change.
      283128ae