gitlab.com/Raven-IO/raven-delve@v1.22.4/CHANGELOG.md (about) 1 # Changelog 2 3 All notable changes to this project will be documented in this file. 4 This project adheres to Semantic Versioning. 5 6 ## [1.22.1] 2024-02-21 7 8 ### Added 9 10 - `--listen` and `connect` now support Unix Domain Sockets (#3655, ##3658, @aarzilli) 11 - Paging for commands `print`, `vars`, `args` and `locals` (#3620, @aarzilli) 12 - Syntax highlighting for stacktraces and options to change the color of Delve's prompt (#3649, #3648, @aarzilli) 13 - Wait-for option for DAP's attach mode (#3656, @muggle-nil) 14 15 ### Fixed 16 17 - Bug where Ctrl-Z was not sent to other processes in the same group as Delve (#3619, @aarzilli) 18 - Parsing of `/proc/net/tcp` when it has 10000 or more entries (#3660, @michaelmerg) 19 - Rare error when valuating expressions containing `runtime.frame(n)` inside breakpoint conditions (#3624, @aarzilli) 20 - Line number reported for the stack frame that caused a panic (#3638, @aarzilli) 21 - Building when dlv's executable already exists on macOS with a signing key already installed (#3639, @ardnew) 22 23 ### Changed 24 25 - When evaluating an expression containing a reslice operation with constant bounds the entire resulting slice will be loaded (#3623, @aarzilli) 26 27 ## [1.22.0] 2023-12-29 28 29 ### Added 30 31 - Support for Go 1.22 (#3583, @aarzilli) 32 - Support for min and max builtins (#3530, @aarzilli) 33 - Expression evaluator can now reference previous frames (#3534, @derekparker) 34 - Better support for stripped binaries (#3549, #3577, #3597, @derekparker) 35 - Remove package paths from types returned by DAP (#3535, @stefanhaller) 36 - Show pprof labels in DAP (#3501, @stefanhaller) 37 38 ### Fixed 39 40 - Fixes for signal routing with debugserver (#3541, @aarzilli) 41 - Clear substitute path rules cache every time the `config` command is used (#3567, @aarzilli) 42 - Fixes handling of hardcoded breakpoints after a manual stop (#3582, @aarzilli) 43 - Occasional close on closed channel panic in DAP (#3573, @aarzilli) 44 - Correctly reports exit code on Linux when a we receive a signal close to the program's exit (#3585, @aarzilli) 45 46 ### Changed 47 48 - Type casts from slice to string and vice versa will now use the load configuration for the target type, which is more intuitive (#3596, @aarzilli) 49 - Miscellaneous impreovements to documentation (#3531, #3555, #3556, #3562, #3564, #3575, #3576, @alexandear, @testwill) 50 51 ## [1.21.2] 2023-10-30 52 53 ### Added 54 55 - DAP: add concrete type to interface type (@suzmue, #3510) 56 - Support for VSCode in the edit command (@derekparker, #3524) 57 - Follow-mode support for Windows (@aarzilli, #3507) 58 59 ### Fixed 60 61 - Fix bugs handling stdout/stderr in DAP (@hyangah, #3522) 62 - Fix bug with autogenerated wrappers for methods of generic types (@aarzilli, #3528) 63 64 ### Changed 65 66 - Use Cgo instead of C code in the FreeBSD backend (@4a6f656c, #3529) 67 - Remove obsolete build tags (+build) (@alexandear, #3513) 68 69 ## [1.21.1] 2023-10-3 70 71 ### Added 72 73 - Support for linux/ppc64le (@alexsaezm) 74 - Enable debugging stripped mach-o (MacOS) binaries (@pgavlin) 75 - Enable function call injection for linux/ppc64le (@archanaravindar) 76 - Improved support for editors in 'edit' command (@derekparker) 77 - Early 1.22 support (@aarzilli) 78 - Add 'packages' command to list packages in compiled binary (@hyangah) 79 - Support debugging PIE binaries on linux/ppc64le (@archanaravindar) 80 - Add ability to list goroutines waiting on channel (@aarzilli) 81 - Add support for more argument / return type parsing in ebpf tracing backend (@derekparker) 82 - Add waitfor option to 'attach' command (@aarzilli) 83 84 ### Fixed 85 86 - Fix memory leak in native Darwin backend CGO usage (@thechampagne) 87 - Fix hexadecimal printing of variables with symbolic const values (@aarzilli) 88 - Handle ctrl-c during tracing executing (@derekparker) 89 - Use a stack for restore/remember opcodes in DWARF CFI (@javierhonduco) 90 - Pass user specified '-C' argument first in gobuild flags (@aarzilli) 91 - Fix stacktraces on freebsd/amd64/go1.20 (@aarzilli) 92 - Fix PIE support on macOS (@aarzilli) 93 - Fix starlark slice unmarshaling (@andreimatei) 94 - Restore breakpoints set with line offsets on restart (@aarzilli) 95 - Check recursion level when printing pointers (@aarzilli) 96 - Fix FrameDescriptionEntries' append bug removing duplicates (@gocurr) 97 - Read context from sigtrampgo fixing cgo stack traces on 1.21 (@aarzilli) 98 99 ### Changed 100 101 - Replace deprecated io/ioutil usage (@alexandear) 102 - Accept string list as launch requests buildFlags in DAP server (@hyangah) 103 - Strip package paths from symbols in callstack in DAP response (@stefanhaller) 104 - Update cilium/ebpf package (@aarzilli) 105 106 ## [1.21.0] 2023-06-23 107 108 ### Added 109 110 - Go 1.21 support (#3370, #3401, @aarzilli) 111 - Basic debug functionality for stripped executables (#3408, #3421, @derekparker) 112 - Core dumping on FreeBSD (#3305, @aarzilli) 113 - Ability to automatically attach to child processes when they are spawned (linux-only) (#3286, #3346, @aarzilli) 114 - Starlark scripts can now use the time module (#3375, @andreimatei) 115 - Online help for starlark interpreter (#3388, @aarzilli) 116 - `dlv trace` has a new option, `--timestamp`, that prints timestamps before every trace event (#3358, @spacewander) 117 118 ### Fixed 119 120 - Stepping could hide normal breakpoint hits occurring simultaneously, in rare circumstances (#3287, @aarzilli) 121 - Internal error when defer locations can not be resolved (#3329, @aarzilli) 122 - Channels of certain types could be displayed incorrectly (#3362, @aarzilli) 123 - Formatted time wouldn't always be displayed when using DAP (#3349, @suzmue) 124 - Function call injection when parameters are in registers (#3365, @ZekeLu) 125 - Panic in Starlark interface when using partially loaded variables (#3386, @andreimatei) 126 - Use debug info directories configuration in `dlv trace` (#3405, @nozzy123nozzy) 127 - Updated DAP version (#3414, @suzmue) 128 129 ### Changed 130 131 - Improved eBPF tracepoints (#3325, #3353, #3417, @chenhengqi, @derekparker) 132 - The name of the default output binary is now randomizes, which fixes some weird behavior when multiple instances of Delve are run simultaneously in the same directory (#3366, @aarzilli) 133 - Stderr of debuginfod-find is now suppressed (#3381, @fche) 134 - Better documentation for substitute-path (#3335, @aarzilli) 135 - `quit -c` will ask for confirmation when breakpoints still exist (#3398, @aarzilli) 136 - Miscellaneous improvements to documentation and tests (#3326, #3327, #3340, #3341, #3357, #3378, #3376, #3399, #3374, #3426, @alexandear, @cuishuang, @alexsaezm, @andreimatei) 137 138 139 ## [1.20.2] 2023-04-05 140 141 ### Added 142 143 - New flag --rr-onprocess-pid to replay command (#3281, @jcpowermac) 144 - Added documentation for watching arbitrary address (#3268, @felixge) 145 - Allow extracting a DWARF entry field (#3258, @brancz) 146 - Add SetLoggerFactory to terminal/logflags package (#3257, @blaubaer) 147 - New config option for tab printing when printing source code (#3243, @thockin) 148 - Added documentation for debugging Go runtime with Delve (#3234, @aarzilli) 149 150 ### Fixed 151 152 - Fix printing boolean values in Starlark scripts (#3314, @vitalif) 153 - Fix infinite recursion in escapeCheck (#3311, @aarzilli) 154 - Support multiple functions with same name (#3297, @aarzilli) 155 - Handle end_seq in dwarf/line correctly (#3277, @derekparker) 156 - Fix calls into SYS_PROCESS_VM_READV/WRITEV syscalls (#3273, @aarzilli) 157 - Fix exit status for trace subcommand (#3263, @derekparker) 158 - Fix stripping DYLD_INSERT_LIBRARIES on macOS (#3245, @aviramha) 159 - Fix handling of list colors via config (#3240, @derekparker) 160 - Fixes to FreeBSD backend (#3224, @aarzilli) 161 162 ### Changed 163 164 - Add limit to maximum time.Time we try and format (#3294, @aarzilli) 165 - Add fuzzing tests to expression evaluator and variable loader (#3293, @aarzilli) 166 - Removed some support for Go 1.12 and earlier (#3271, @aarzilli) 167 - Moved util functions to dwarf package (#3252, @alexandear) 168 - Attempt to load DW_AT_specification if present (#3247, @brancz) 169 - Match go test behavior when dlv test gets list of go files (#3232, @aarzilli) 170 - Populate Value field in pointer Variable (#3229, @andreimatei) 171 172 ## [1.20.1] 2022-12-12 173 174 ### Fixed 175 176 - Fix executing programs on macOS with most versions of debugserver installed (#3211, @aarzilli) 177 178 ## [1.20.0] 2022-12-07 179 180 ### Added 181 182 - Support for Go 1.20 (#3129, #3196, #3180, @cuiweixie, @qmuntal, @aarzilli) 183 - Support for Windows/arm64 (gated by a build tag) (#3063, #3198, #3200, @qmuntal) 184 - Compatibility with coredumpctl (#3195, @Foxboron) 185 186 ### Fixed 187 188 - Improve evaluation of type casts (#3146, #3149, #3186, @aarzilli) 189 - DAP: Added type to response of EvaluateRequest (#3172, @gfszr) 190 - Cgo stacktraces on linux/arm64 (#3192, @derekparker) 191 - Debugserver crashes on recent versions of macOS when $DYLD_INSERT_LIBRARIES is set (#3181, @aviramha) 192 - Stacktraces and stepping on Go 1.19.2 and later on macOS (#3204, @aarzilli) 193 - Attaching to processes used by a different user on Windows (#3162, @aarzilli) 194 - Nil pointer dereference when current address is not part of a function (#3157, @aarzilli) 195 196 ### Changed 197 198 - Change behavior of exec command so that it looks for the executable in the current directory (#3167, @derekparker) 199 - DAP shows full value when evaluating log messages (#3141, @suzmue) 200 - Wait time is no longer reported for parked goroutines (its value was always incorrect) (#3139, @aarzilli) 201 - Miscellaneous improvements to documentation and error messages (#3119, #3117, #3154, #3161, #3169, #3188, @aarzilli, @derekparker, @cuishuang, @Frederick888, @dlipovetsky) 202 203 ## [1.9.1] 2022-08-23 204 205 ### Added 206 207 - Add support for empty string in substitutePath (@RuijieC-dev) 208 - Support gnu_debuglink section (@aarzilli) 209 - Support exact matches in SubstitutePath (@eandre) 210 - Add ability to show disassembly instead of source code (@aazilli) 211 - Add -per-g-hitcount to breakpoint conditions (@yangxikun) 212 213 ### Fixed 214 215 - Ensure breakpoint map exists (@aarzilli) 216 - Use standard library to compute CRC for gnu_debuglink section (@aarzilli) 217 - Fix command to download Go version in CI (@derekparker) 218 - Do not panic reading bad G struct (@aarzilli) 219 - Fix parsing DWARFv5 file table (@derekparker) 220 - Improve trace subcommand output (@derekparker) 221 - Fix documentation for examinemem (@aaarzilli) 222 - Fix step instruction on 1 byte instruction with software breakpoint (@qmuntal) 223 - Fix handling of function entry / return in ebpf tracing backend (@derekparker) 224 - Fix size of ebpf type for fn_addr (@derekparker) 225 226 ### Changed 227 228 - Send large terminal output to pager (@aarzilli) 229 - Refactor windows backend framework (@qmuntal) 230 - Complete the dropping of CGO dependency for ebpf backend (@aarzilli) 231 - Limit disassembly range in DAP backend (@aarzilli) 232 233 ## [1.9.0] 2022-07-06 234 235 ### Added 236 237 - Support for Go 1.19 (#3038, #3031, #3009, @aarzilli) 238 - Autocomplete for local variables (#3004, @pippolo84) 239 - Support for function call injection on arm64 (#2996, @aarzilli) 240 241 ### Fixed 242 243 - Ctrl-C handling on Windows (#3039, @aarzilli) 244 - Expressions accessing maps with string literals (#3036, @aarzilli) 245 - Occasional crash caused by race between manual stop and normal stop on macOS (#3021, @aarzilli) 246 - Pretty-print of register components (#3022, @aarzilli) 247 - Misc function call injection bugs (#3007, #3002, #3000, @aarzilli) 248 249 ### Changed 250 - Improved FreeBSD port (#3019, #2972, #2981, #2982, @4a6f656c) 251 - Misc test fixes (#3011, #2995, #2979, @polinasok, @aarzilli) 252 - Misc documentation changes (#2998, #2991, @aarzilli, @polinasok) 253 - Better autogenerated function skip (#2975, @aarzilli) 254 255 ## [1.8.3] 2022-04-25 256 ### Added 257 - Pretty-print time.Time variables (@aarzilli) 258 - Better "could not open debug info" errors (@polinasok) 259 - DAP: Support --disable-aslr (@polinasok) 260 - DAP interface documentation improvements (@polinasok) 261 - CLI documentation improvements (@derekparker, @deathiop) 262 263 ### Fixed 264 - DAP: offer disconnect/stop options for attach mode only (@polinasok) 265 - Fix godoc comments (@hitzhangjie) 266 - Allow low index == len in reslice expressions (@aarzilli) 267 - Fix leaky process when failing to debug stripped binaries in headless mode (@polinasok) 268 - Skip stepping into autogenerated functions for go1.18 (@aarzilli) 269 270 ### Changed 271 - Drop support for building on Go < 1.10 (@aarzilli) 272 273 ## [1.8.2] 2022-03-07 274 ### Added 275 - Add '-clear' option for 'condition' command (@chainhelen) 276 - Support ctrl-Z for shell job control (@derekparker) 277 278 ### Fixed 279 - Improve handling of hard coded breakpoints (@aarzilli) 280 - Better error messages for ambiguous function calls / type casts (@aarzilli) 281 - Fix crash when trying to open separate debug info (@aarzilli) 282 - Handle non-install dev tools on osx (@zchee) 283 284 ### Changed 285 - Downgrade loadBuildID error to warning (@aarzilli) 286 - Require go-delve/liner in go.mod file instead of upstream version (@hyanhag) 287 288 ## [1.8.1] 2022-02-07 289 290 ### Added 291 292 - Downloading source code listings with debuginfod (@Foxboron) 293 - Added `transcript` command (@aarzilli) 294 - Enabled `dump` command on windows (@aarzilli) 295 - Env attribute in DAP launch requests (@hyangah) 296 - Better documentation for the DAP interface (@polinasok) 297 298 ### Fixed 299 300 - Require argument for trace subcommand (@derekparker) 301 - Handling of inlined calls within inlined calls (@derekparker) 302 - Handling of DW_AT_inline attribute (@aarzilli) 303 - Set stop reason in StepInstruction (@suzmue) 304 305 ### Changed 306 307 - The DAP interface will not create executables in the temp directory (@hyangah) 308 - When the `goroutines` command looks for the user frame it will exclude frames in internal and runtime/internal in addition to private runtime functions (@aarzilli) 309 - Breakpoints with hitcount conditions are automatically disabled when their condition can no longer be satisfied (@pippolo84) 310 - The commands `break` and `trace` will set a breakpoint on the current line if no argument is specified (@thockin) 311 - Miscellaneous documentation improvements (@chainhelen, @gareth-rees, @polinasok) 312 313 ## [1.8.0] 2021-12-23 314 315 ### Added 316 317 * Go 1.18 support 318 * Support for DWARF5 on Windows/MacOS (@aarzilli) 319 * Added more installation instructions to documentation (@polinasok) 320 * Allow for rewind to work after process exit with RR backend (@aarzilli) 321 * Added documentation on runtime.curg and runtime.frameoff in eval (@aarzilli) 322 * DAP: Expose sources command in evaluate request (@suzmue) 323 * DAP: Support Goroutine filters (@suzmue) 324 325 ### Fixed 326 327 * Fix build version using buildinfo (@aarzilli) 328 * Fix crash when using deferred with no args (@kaddy-tom) 329 * DAP: Misc remote attach improvements (@polinasok) 330 331 ### Changed 332 333 * Misc cleanup and refactoring (@aarzilli) 334 * Added option to disable invoking git during build (@herbygillot) 335 * Ignore 'pf' mappings during core dump creation (@aarzilli) 336 337 ## [1.7.3] 2021-11-16 338 339 ### Added 340 341 * Misc changes to prepare for Go 1.18 and generics (#2703, @2745, @aarzilli) 342 * Watchpoint support (disabled on Windows) (#2651, #2659, #2667, #2769, @aarzilli) 343 * Warn about listening to remote connections (#2721, @aarzilli) 344 * Support call injection with rr backend (#2740, @aarzilli) 345 * Support JSON-RPC and DAP on the same port from 'dlv debug/exec/test/attach' (#2755, @polinasok) 346 * DAP: Remote attach support (#2709, @polinasok) 347 * DAP: Multi-client support (#2731, #2737, #2781, @polinasok) 348 * DAP: Logpoints support (#2634, #2730, #2747, #2748, @suzmue) 349 * DAP: Disassembly view support (#2713, #2716, #2728, #2742, @suzmue) 350 * DAP: Support dlvCwd and use a temp file as default debug binary (#2660, #2734, @hyangah, @polinasok) 351 * DAP: Auto-resume execution when setting breakpoints while running (#2726, @suzmue) 352 * DAP: Add --client-addr flag to run dap with a predefined client (#2568, @hyangah) 353 * DAP: Log parsed and applied launch configs (#2732, @polinasok) 354 * DAP: Add option to hide system goroutines (#2743, @suzmue) 355 * DAP: Add support for special 'config' expressions (#2750, @suzmue) 356 357 ### Fixed 358 359 * Return correct exit status from Halt command (#2674, @suzmue) 360 * Merge register data before writing to register (#2699, @mknyszek) 361 * Do not assign temp breakpoint IDs to avoid conflicts with user breakpoints (#2650, @aarzilli) 362 * Miscellaneous fixes for Windows native backend (#2736, @aarzilli) 363 * Return error when assigning between function variables (#2692, @aarzilli) 364 * Obey logflags config for LoadConfig warnings (#2701, @aarzilli, @suzmue) 365 * Workaround for debugserver register set bug (#2770, @aarzilli) 366 * DAP: Fix nil dereference when byte array cannot be converted to string (#2733, @polinasok) 367 * DAP: Fix data race for noDebugProcess.ProcessState (#2735, @polinasok) 368 369 ### Changed 370 371 * Refine handling of version-too-old errors (#2684, #2712, @polinasok, @yang-wei) 372 * eBPF tracing backend return value parsing (#2704, @derekparker) 373 * Replace libbpfgo with cilium/ebpf (##2771, @derekparker) 374 * DAP: Merge Arguments and Locals scopes (#2717, @suzmue) 375 * DAP: Refine launch/attach error visibility (#2671, @polinasok) 376 * DAP: Server refactoring to separate listener and client session layers (#2729, @polinasok) 377 * DAP: Improve shutdown logic and test coverage (#2749, @polinasok) 378 379 ## [1.7.2] 2021-09-21 380 381 ### Added 382 383 * Documentation: Add notes on porting Delve to other architectures (@aarzilli) 384 * Add internal checks to ensure we're synched with Go runtime internals (@aarzilli) 385 * eBPF backend can parse goroutine info (@derekparker) 386 * Add support for debuginfo-find (@derekparker) 387 * Add MAKE arguments for GOOS / GOARCH (@cmol) 388 389 ### Fixed 390 391 * Correctly check for 1.17 and regabi (@aarzilli) 392 * Print config output strings quouted (@aarzilli, @krobelus) 393 * Update check for system goroutines (@suzmue) 394 * DAP: Halt before detach in Stop (@polinasok) 395 * DAP: Do not send halt request if debuggee is not running (@suzmue) 396 397 ### Changed 398 399 * Include selected goroutine in threads request (@suzmue) 400 * Remove individual OS install instructions (@gabriel-vasile) 401 * DAP: Show decimal / hex values for uint (@suzmue) 402 * Avoid bright colors in default syntax highlighting (@krobelus) 403 404 ## [1.7.1] 2021-08-18 405 406 ### Added 407 408 - *EXPERIMENTAL* Added support for eBPF based trace backend (@derekparker) 409 - Added fuzzy completion for the CLI for commands and breakpoint locations (@derekparker) 410 - Added stack watchpoints (@aarzilli) 411 - Added verbose version output (@hyangah) 412 - DAP: Support for replay and core modes (@Iggomez) 413 - DAP: Added ability to page stack frames (@suzmue) 414 - DAP: Added len as metadata for maps (@suzmue) 415 - DAP: Add 'backend' launch/attach attribute (@polinasok) 416 417 ### Fixed 418 419 - Fix handling of runtime throws (@derekparker) 420 - DAP: Handle unexpected debugger termination (@polinasok) 421 422 ### Changed 423 424 - Added configuration for Target to not clear stepping breakpoints (@suzmue) 425 - Ignore existing breakpoints for continue-until (@derekparker) 426 - Improve help output for examinemem (@derekparker) 427 - Clarify next-while-nexting error (@suzmue) 428 - DWARF improvements for additional opcodes (@aarzilli) 429 - Treat SIGTERM as server disconnect signal (@polinasok) 430 - Update Cobra lib to v1.1.3 (@hyangah) 431 - Improvements to 'on' command (@aarzilli) 432 - Terminal will now prompt when breakpoint is hit during next/step/stepout (@aarzilli) 433 - DAP: Ensure server is always headless and target foregrounded (@polinasok) 434 - DAP: Set hit breakpoint IDs (@suzmue) 435 436 ## [1.7.0] 2021-07-19 437 438 ### Added 439 440 - Go 1.17 support (@aarzilli, @mknyszek) 441 - Add new API and terminal command for setting watchpoints (@aarzilli) 442 - Add filtering and grouping to goroutines command (@aarzilli) 443 - Added support for hit count condition on breakpoints (@suzmue, @aarzilli) 444 - DAP server: Handle SetVariable requests (@hyangah) 445 - DAP server: Add clipboard support (@hyangah) 446 447 ### Fixed 448 449 - DAP server: Several shutdown / disconnect fixes (@suzmue, @polinasok) 450 - DAP server: Clean output executable name on Windows (@hyangah) 451 - DAP server: Variables response must not have null variables array (@polinasok) 452 - Fix runtimeTypeToDIE setup (necessary for Go 1.17) (@aarzilli) 453 - Reenable CGO stacktrace test on arm64 (@derekparker) 454 - Fix incorrect integer casts in freebsd C backend (@dwagin) 455 - Ensure correct exit status reported on commands following process death (@derekparker) 456 - Misc flakey test fixes / test refactoring (@polinasok) 457 - Fix for frame parameter being ignored in ConvertEvalScope when no goroutine is found (@suzmue) 458 - Ensure ContinueOnce returns StopExited if process exited, otherwise return StopUnknown (@polinasok) 459 - Fix panic in RPC2.ListDynamicLibraries (@derekparker) 460 - Fix typo in flag passed to check if debugserver supports unmask_signals (@staugust) 461 462 ### Changed 463 464 - DAP server: Add sameuser security check (@hyangah) 465 - DAP server: Changes to context-dependent load limits for string type (@hyangah, @polinasok) 466 - DAP server: Add paging for arrays, slices and maps (@suzmue) 467 - DAP server: Deemphasize internal runtime stack frames (@suzmue) 468 - DAP server: Add throw reason to exception information upon panic (@suzmue) 469 - DAP server: Set breakpoint hit ID (@suzmue) 470 - DAP server: Add string value of byte/rune slice as child (@suzmue) 471 - Documentation: Add viminspector to list of editor plugins (@aarzilli) 472 - Support for ZMM registers in gdbserial backend (@aarzilli) 473 - Remove support for stack barriers (@derekparker) 474 - Improve support for DWARF5 (@derekparker) 475 - Improve documentation (@derekparker, @aarzilli) 476 - Print message and exit if Delve detects it is running under Rosetta on M1 macs (@aarzilli) 477 - Drop official Go 1.14 support (@derekparker) 478 479 ## [1.6.1] 2021-05-18 480 481 ### Added 482 483 - Dump command: generate core dumps from within Delve (@aarzilli) 484 - Toggle command: toggle breakpoints on or off (@alexsaezm) 485 - DAP server improvements (@polinasok, @hyangah, @suzmue) 486 - Delve now parses and uses the .eh_frame section when available (@aarzilli) 487 - Add linespec argument to 'continue' command (@icholy) 488 - Add optional format argument to 'print' and 'display' commands (@aarzilli) 489 490 ### Fixed 491 492 - Fixed file reference handling with DWARF5 compilation units (@thanm) 493 - Fix embedded field searching (@aarzilli) 494 - Fix off by one error reading core files (@aarzilli) 495 - Correctly read G address on linux/arm64 496 - Avoid double removal of temp built binary (@polinasok) 497 - Fix temp binary deletion race in DAP server (@polinasok) 498 - Fix shutdown related bugs in RPC server (@aarzilli) 499 - Fix crashes induced by RequestManualStop (@aarzilli) 500 - Fix handling of DW_OP_piece (@aarzilli) 501 - Correctly truncate the result of binary operations on integers (@aarzilli) 502 503 ### Changed 504 505 - Dropped Go 1.13 support (@aarzilli) 506 - Improved documentation (@ChrisHines, @aarzilli, @becheran, @hedenface, @andreimatei, @ehershey , @hyangah) 507 - Allow examinememory to use an expression (@felixge) 508 - Improve gdb server check on newer ARM based macs (@oxisto) 509 - CPU registers can now be used in expressions (@aarzilli) 510 - DAP: Add type information to variables (@suzmue) 511 - DAP: Support setting breakpoints while target is running (@polinasok) 512 - DAP: Implement function breakpoints (@suzmue) 513 514 ## [1.6.0] 2021-01-28 515 516 ### Added 517 518 - Support for debugging darwin/arm64 (i.e. macOS on Apple Silicon) (#2285, @oxisto) 519 - Support for debugging Go1.16 (#2214, @aarzilli) 520 - DAP: support for attaching to a local process (#2260, @polinasok) 521 - DAP: fill the `evaluateName` field when returning variables, enabling "Add to Watch" and "Copy as Expression" features of VSCode (#2292, @polinasok) 522 - Added WaitSince, WaitReason to `service/api.Goroutine` and to the `goroutines` command (#2264, #2283, #2270, @dlsniper, @nd, @aarzilli) 523 - Syntax highlighting for Go code (#2294, @aarzilli) 524 - Added flag `CallReturn` to `service/api.Thread` to distinguish return values filled by a `stepOut` command from the ones filled by a `call` command (#2230, @aarzilli) 525 526 ### Fixed 527 528 - Fix occasional "Access is denied" error when debugging on Windows (#2281, @nd) 529 - Register formatting on ARM64 (#2289, @dujinze) 530 - Miscellaneous bug fixes (#2232, #2255, #2280, #2286, #2291, #2309, #2293, @aarzilli, @polinasok, @hitzhangjie) 531 532 ### Changed 533 534 - The `goroutines` command can be interrupted by pressing Ctrl-C (#2278, @aarzilli) 535 - Using a TeamCity instance provided by JetBrains for Continuous Integration (#2298, #2307, #2311, #2315, #2326, @artspb, @nd, @aarzilli, @derekparker) 536 - Improvements to documentation and error messages (#2266, #2265, #2273, #2299, @andreimatei, @hitzhangjie, @zamai, @polinasok) 537 538 ## [1.5.1] 2020-12-09 539 540 ### Added 541 - DAP: Scope and variable requests, including call injection (#2111, #2158, #2160, #2184, #2185, @polinasok) 542 - DAP: Support removing breakpoints and breakpoint conditions (#2188, @polinasok) 543 - DAP: Support next, stepIn, stepOut requests (#2143, @polinasok) 544 - DAP: Miscellaneous improvements (#2167, #2186, #2238, #2233, #2248, @eliben, @suzmue, @polinasok) 545 - Command line flag `-r` to redirect standard file descriptors of the target process (#2146, #2222, @aarzilli) 546 - `-size` flag for `examinemem` command (##2147, @hitzhangjie) 547 - Command line flag to disable ASLR (#2202, @aarzilli) 548 - Support for DWARFv5 loclists (#2097, @aarzilli) 549 550 ### Fixed 551 - Support for Go version >= 1.15.4 (#2235, @aarzilli) 552 - Fix displaying AVX registers (#2139, @aarzilli) 553 - Panic during `next`, `step` when there is no current goroutine (#2164, @chainhelen) 554 - Reading a deferred call's arguments on linux/arm64 (#2210, @aarzilli) 555 - Miscellaneous bug fixes (#2135, #2131, #2142, #2140, #2127, #2113, #2172, #2181, #2195, #2193, #2220, #2179, #2206, #2223, @aarzilli) 556 557 ### Changed 558 - `dlv test` switches to the package directory like `go test` does (#2128, @aarzilli) 559 - Delve will no longer resolve symbolic links when searching for split debug_info if the executable path is not /proc/pid/exe (#2170, @aarzilli) 560 - Starlark scripts can now be interrupted using Ctrl-C even if they are not making any API calls (#2149, @aarzilli) 561 - An error message will be displayed more prominently if a connection is rejected due to the `--only-same-user` flag (which is enabled by default) (#2211, @aarzilli) 562 - Substitute path rules are applied to the argument of `break` and `trace` (#2213, @aarzilli) 563 - The output of `xcode-select --print-path` will be used to determine the location of `debugserver` instead of a hardcoded path (#2229, @aaronsky) 564 - Improvements to documentation and error messages (#2148, #2154, #2196, #2228, @aurkenb, @pohzipohzi, @chainhelen, @andreimatei) 565 566 567 ## [1.5.0] 2020-07-29 568 569 ### Added 570 571 - Go 1.15 support (#2011, @aarzilli) 572 - Added the `reload` command that restarts the debugging session after recompiling the program (#1971, @alexsaezm) 573 - Better support for printing pointers in the C part of a cgo program (#1997, @aarzilli) 574 - Some support for DWARFv5 (#2090, @aarzilli) 575 576 ### Fixed 577 578 - Fixed trace subcommand when the `-p` option is used (#2069, @chainhelen) 579 - Nil pointer dereference when printing tracepoints (#2071, @aarzilli) 580 - Internal debugger error when printing the goroutine list of a corrupted or truncated core file (#2070, @aarzilli) 581 - Do not corrupt the list of source files whenever a plugin (or dynamically loaded library) is loaded (#2075, @aarzilli) 582 - Fixed current file/line reported after a segfault on macOS that was wrong under certain circumstances (#2081, @aarzilli) 583 - Internal debugger error when reading global variables of types using unsupported debug_info features (#2105, #2106, #2110, @aarzilli, @b00f) 584 585 ### Changed 586 587 - Support for stack trace requests in DAP and other DAP improvements (#2056, #2093, #2099, #2103, @polinasok) 588 - Delve will step inside a private runtime function call when it is already inside the runtime package (#2061, @aarzilli) 589 - Updated cosiner/argv dependency to v0.1.0 (#2088, @gadelkareem) 590 - Improvements to documentation and error messages (#2068, #2084, #2091, @aarzilli, @bhcleek, @letientai299) 591 592 ## [1.4.1] 2020-05-22 593 594 ### Added 595 596 - Support for linux/386 added (@chainhelen) 597 - DAP server initial release (@polinasok, @eliben, @hyangah) 598 - New command `examinemem` (or `x`) allows users to examine raw memory (@chainhelen) 599 - New command `display` allows users to print value of an expression every time the program stops (@aarzilli) 600 - New flag `--tty` allows users to supply a TTY for the debugged program to use (@derekparker) 601 - Coredump support added for Arm64 (@ossdev07) 602 - Ability to print goroutine labels (@aarzilli) 603 - Allow printing registers for arbitrary stack frames (@aarzilli) 604 - Add `disassemble-flavor` to config to specify assembly syntax (@chainhelen) 605 606 ### Fixed 607 608 - Allow function calls on non-struct types (@derekparker) 609 - Dwarf line parsing bug fix (@klemens-morgenstern) 610 - Improved error message when building Delve on unsupported systems (@aarzilli) 611 - Improved error message when trying to execute a binary in an invalid format for host system (@derekparker) 612 - Fix panic in Delve when using `call` command with some invalid input (@chainhelen) 613 614 ### Changed 615 616 - Improved output from `dlv trace` and `trace` REPL commands (@derekparker) 617 - Conditional breakpoint performance improvements (@aarzilli) 618 - Thread register loading performance improvement on gdbserial backend (@derekparker) 619 - Reduce default log level to error (@aarzilli) 620 - Linux memory read/write optimization using process_vm_read/write (@cuviper) 621 - Terminal output of commands divided into categories (@aarzilli) 622 - Use less permissive file settings on history file (@derekparker) 623 - Autogenerated interface method calls wrappers now automatically stepped through (@aarzilli) 624 625 ## [1.4.0] 2020-02-11 626 627 ### Added 628 629 - Support for Linux/ARM64 (#1733, #1780 @hengwu0, @tykcd996) 630 - Support for Go 1.14 (@aarzilli) 631 - Added an API call that can be used by Delve front-ends to map between package names and build paths (#1784, @aarzilli) 632 - Added a field to goroutine objects returned by the API listing the goroutine's pprof labels (#1836, @nd) 633 - Better support for inlined functions (#1717, #1742, #1807 @aarzilli) 634 635 ### Fixed 636 637 - Fixed target program crash after step-instruction (#1738, @aarzilli) 638 - Fixed miscellaneus bugs related to debugging Position Independent Executables and plugins (#1775, @aarzilli) 639 - Always remove breakpoints during detach (#1772, @hengwu0) 640 - Fixed Delve's exit status after the program has ended (#1781, @derekparker) 641 - Fixed nil pointer dereference in FunctionReturnLocations (#1789, @aarzilli) 642 - Improved performance of `goroutines -t` command (#1830, @aarzilli) 643 - Fixed occasional "Access Denied" error during attach on Windows (#1826, @alexbrainman) 644 - Fixed parsing of the `disassemble` command (#1837, @chainhelen) 645 646 ### Changed 647 648 - Check that local connections originate from the same User ID as the one that started Delve's instance (#1764, @stapelberg) 649 - Mapping between package names and package paths is done using the DW_AT_go_package_name where available (#1757, @aarzilli) 650 - Improvements to documentation and error messages (#1806, #1822, #1827, #1843, #1848, #1850, #1853 @spacewander, @chainhelen, @stigok) 651 - Miscellaneous code refactorings (#1746, #1777, #1834 @derekparker, @aarzilli) 652 653 ## [1.3.2] 2019-10-21 654 655 ### Added 656 657 - New example for starlark documentation (@aarzilli) 658 - Allow calls to optimized functions (@aarzilli) 659 - Option to bypass smart stacktraces (@aarzilli) 660 - Ability to call method of embedded field (@chainhelen) 661 - Added `make unininstall` command (@chainhelen) 662 - User can re-record recorded targets (@aarzilli) 663 664 ### Fixed 665 666 - Fix version reporting (current latest tagged as 1.3.1, reporting 1.3.0) (@derekparker) 667 - Fix nil pointer deref on proc.GetG (@aarzilli) 668 - Better handling of DW_TAG_inlined_subroutine without debug_line info (@aarzilli) 669 - Fix panic on invalid config values (@TerrySolar) 670 - Fix debug_line state machine behavior with multi-sequence units (@aarzilli) 671 - Fix starlark iteration on maps > 64 entries (@alxn) 672 - debug_frame parser fixed parsing augmentation (@chainhelen) 673 - Round TLS segment size to its alignment (@heschik) 674 675 ### Changed 676 677 - Documentation bumped required Go version (@codekaup) 678 - Disassemble now works without a selected goroutine (@aarzilli) 679 - Correctly mark closure variables as shadowed (@aarzilli) 680 - Bump CI to use Go 1.13 (@aarzilli) 681 682 ## [1.3.0] 2019-08-27 683 684 ### Added 685 686 - Go 1.13 support (#1546, @aarzilli) 687 - Starlark scripting language in the command line client (#1466, #1605, @aarzilli, @derekparker) 688 - Initial support for FreeBSD (#1480, @rayrapetyan) 689 - Command line flag to continue process immediately after launch/attach (#1585, @briandealwis) 690 - Configuration option for the maximum recursion depth used when printing variables (#1626, @msaf1980) 691 - `next` command now takes a numerical option specifying how many times it should be repeated (#1629, @jeremyfaller) 692 - Command line options to redirect logs to a file or file descriptor (#1525, @aarzilli) 693 - Ability to read goroutine ancestors if they are enabled by passing `GODEBUG="tracebackancestors=N"` (requires Go >= 1.11) (#1514, #1570, @aarzilli) 694 - Breakpoint autocompletion for the command line client (#1612, @qingyunha) 695 - Added reverse step-instruction command for rr backend (#1596, @dpapastamos) 696 - Support debugging programs using plugins on Linux with Go 1.12 or later (#1413, #1414, @aarzilli) 697 - Improved function call injection (#1503, #1504, #1548, #1591, #1602, @aarzilli) 698 - New variable flag to mark variables that have a fake or no-longer-valid address, because they are either stored in registers or in a stack frame that has been removed from the stack (#1619, @aarzilli) 699 - Support relative file paths when specifying breakpoint locations (#1478, @chainhelen) 700 - GetVersion API response now reports currently used backend (#1641, @aarzilli) 701 - `so` as alias for `stepout` (#1646, @stmuk) 702 703 ### Fixed 704 705 - Fixed values of registers smaller than 64bit (#1583, @derekparker) 706 - Fixed reading maps with removed entries in Go 1.12 (#1532, @aarzilli) 707 - Fixed possible crash on Linux caused by function call injection (#1538, @aarzilli) 708 - Fixed errors reading DWARF sections (#1574, #1582, #1603, @aarzilli) 709 - Prompt to shutdown headless instance after the target process has exited (#1621, @briandealwis) 710 - Stacktraces when a SIGSEGV (or other signal) happens during a cgo call (#1647, @aarzilli) 711 - Error restarting program with next/step/stepout under some circumstances (#1657, @aarzilli) 712 - Other bug fixes (#1487, #1488, #1490, #1500, #1497, #1469, #1553, #1595, #1594, #1620, #1622, #1624, #1637, #1664, #1665, #1668, @derekparker, @aarzilli, @dpapastamos, @pjot726) 713 714 ### Changed 715 716 - Delve will refuse to work with a version of Go that is either too old or too new (can be disabled with `--check-go-version=false`) (#1533, @aarzilli) 717 - When the value of a variable is determined to be a symbolic constant the numerical value of the symbolic constant will also be printed (#1530, @aarzilli) 718 - Catch fatal runtime errors (such as the deadlock detector triggering) automatically (#1502, @aarzilli) 719 - Replaced glide (which we weren't using anymore) with `go mod vendor` in make script (#1606, @derekparker) 720 - Removed support for reading interfaces in older versions (prior to 1.7) of Go (#1501, @aarzilli) 721 - Removed support for location expression "<fnname>:0" and associated API functionality (#1588, @aarzilli) 722 - Calling an unknown method through the JSON-RPC API will now return an error while previously it would simply be ignored (#1571, @aarzilli) 723 - Improved documentation and error messages (#1492, #1520, #1524, #1561, #1562, #1556, #1559, #1567, #1638, #1649, #1662, @derekparker, @Ladicle, @qaisjp, @justinclift, @tschundler, @two, @aarzilli, @dr2chase) 724 725 ## [1.2.0] 2019-02-19 726 727 ### Added 728 729 - Go 1.12 support 730 - Improved `trace` command to show return values and trace pre-built executables or tests (#1379, #1380, #1381, @derekparker) 731 - Windows Minidump support (#1386, #1387, #1402, @aarzilli) 732 - Better support for split DWARF symbol files (#1405, #1420, @derekparker, @slp) 733 - Function call support on macOS (#1324, @derekparker) 734 - `deferred` command to view the arguments of a deferred call (#1285, #1265, @aarzilli) 735 - Support for debugging Position Independent Executables (#1358, @aarzilli) 736 - Type conversions of byte and rune arrays into strings (#1372, @chainhelen) 737 - Configuration option (source-list-line-color) to change the color of line numbers in listings (#1364, @Russtopia) 738 - New expression `iface.(data)` to access the concrete value of interface variable `iface`, without having to write a full type assertion (#1340, @aarzilli) 739 - Support for specifying multiple source files as arguments for `debug`, `trace` and `test` (#1339, @chainhelen) 740 741 ### Fixed 742 743 - Make `edit` command work with vim and neovim (#1451, @the4thamigo-uk) 744 - Support Linux kernels prior to 2.6.34 (i.e. without PTRACE_GETREGSET) (#1435, @aarzilli) 745 - Fixed `substitute-path` configuration option on Windows (#1418, @zavla) 746 - Better performance for ListGoroutines API call (#1440, #1408, @slp, @aarzilli) 747 - Better performance when loading the value of very large sparse maps (#1392, @aarzilli) 748 - Other bug fixes (#1377, #1384, #1429, #1434, #1445, @aarzilli) 749 750 ### Changed 751 752 - Changes to where the configuration is stored, conforming to [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) with fallbacks to the current directory when calls to `user.Current` fail (#1455 @GregorioMartinez, @acshekhara1) 753 - Project moved from github.com/derekparker/delve to github.com/go-delve/delve (@derekparker) 754 - Switched dependency management to go.mod (@aarzilli, @derekparker, @zavla) 755 - New build scripts and support building on macOS without the native backend (@aarzilli, @kevin-cantwell) 756 - Tolerate corrupted memory when reading the goroutine list (#1354, @aarzilli) 757 - Improved documentation and error messages (@sbromberger, @aarzilli, @derekparker, @chainhelen, @dishmaev, @altimac) 758 759 ## [1.1.0] 2018-08-15 760 761 ### Added 762 763 - Go 1.11 support (@aarzilli) 764 - Improvements to Delve logging (@aarzilli, @derekparker) 765 - Show global variables in disassembly (@aarzilli) 766 - Support for inlined calls (@aarzilli, @derekparker, @jaym) 767 - Support dwz compressed debug symbols (@slp) 768 - Support for debug info in a separate file (@slp) 769 - Let target process access the tty when running in headless mode on linux/native and darwin/gdbserial (@aarzilli) 770 - Commands `up` and `down` (@yasushi-saito) 771 - Flag to print stacktrace of all goroutines (@acshekhara1) 772 - Command `edit` (@benc153) 773 - Allow headless instances to keep running without a connected client (@aarzilli) 774 - Add `StartLoc` to `api.Goroutine` containing the starting location of each goroutine (@aarzilli) 775 - Preliminary support for function call injection with Go 1.11 (@aarzilli) 776 - Ability to read list of deferred calls of a goroutine (@aarzilli) 777 778 ### Fixed 779 780 - Fixed crashes when configuration file can not be created (@derekparker, @yuval-k, @aarzilli) 781 - Fixed reported location of the go statement of goroutines (@derekparker) 782 - Allow evaluation of constants specified without the full package path (@aarzilli) 783 - Fixed some integer arithmetic bugs in proc (@functionary) 784 - Respect load configuration after reslicing a map (@aarzilli) 785 - Fixed race condition between Halt and process death in the linux native backend (@aarzilli) 786 - Support core files generated by gdb (@psanford) 787 - Fixed evaluation of breakpoint conditions containing a single boolean variable (@aarzilli) 788 - Miscellaneous bugs in the debug_line state machine (@aarzilli) 789 790 ### Changed 791 792 - Removed redundant/obsolete methods of proc.Process Halt and Kill, general cleanup of native backends (@aarzilli) 793 - Improved documentation (@giuscri, @jsoref, @Carpetsmoker, @PatrickSchuster, @aarzilli, @derekparker, @ramya-rao-a, @dlsniper) 794 - Workaround in the gdbserial backend for broken version 902 of debugserver (@aarzilli) 795 - Changed operators || and && to short-circuit the evaluation of their arguments, like in Go (@aarzilli) 796 - Mark shadowed arguments as shadowed (@aarzilli) 797 - Allow syntax "package/path".varname to specify the full package path of a variable, in case disambiguating between multiple packages with the same name is necessary (@aarzilli) 798 799 ## [1.0.0] 2018-02-19 800 801 ### Added 802 803 - Print DWARF location expression with `whatis` (@aarzilli) 804 - Use `DW_AT_producer` to warn about optimized code (@aarzilli) 805 - Use constants to describe variable value (@aarzilli) 806 - Use `DW_AT_decl_line` to determine variable visibility (@aarzilli) 807 - `-offsets` flag for `stack` command (@aarzilli) 808 - Support CGO stacktraces (@aarzilli) 809 - Disable optimizations in C compiler (@aarzilli) 810 - `--output` flag to configure output binary (@Carpetsmoker) 811 - Support `DW_OP_piece`, `DW_OP_regX`, `DW_OP_fbreg` (@aarzilli) 812 - Support `DW_LNE_define_file` (@aarzilli) 813 - Support more type casts (@aarzilli) 814 815 ### Fixed 816 817 - Disable file path case normalization on OSX (@aarzilli) 818 - Support Mozilla RR 5.1.0 (@aarzilli) 819 - Terminal no longer crashes when process exits during `next` (@aarzilli) 820 - Fix TestCoreFPRegisters on Go 1.9 (@aarzilli) 821 - Avoid scanning system stack if it's not executing CGO (@aarzilli) 822 - Locspec "+0" should always evaluate to the current PC (@aarzilli) 823 - Handle `DW_LNE_end_of_sequence` correctly (@aarzilli) 824 - Top level interface variables may have 0 address (@aarzilli) 825 - Handle `DW_TAG_subprogram` with a nochildren abbrev (@aarzilli) 826 - StepBreakpoint handling (@aarzilli) 827 828 ### Changed 829 830 - Documentation improvements (@grahamking) 831 - Removed limitation of exit notifications (@dlsniper) 832 - Use `go env GOPATH` for install path 833 - Disable test caching (@aarzilli) 834 - Disable `-a` and use `all=` for Go 1.10 building (@aarzilli) 835 - Automatically deref interfaces on member access (@aarzilli) 836 - Replace all uses of `gosymtab/gopclntab` with `.debug_line` section (@aarzilli) 837 838 ## [1.0.0-rc.2] 2017-10-16 839 840 ### Added 841 842 - Automatically print panic reason for unrecovered panics (@aarzilli) 843 - Propagate frame offset to clients (@aarzilli) 844 - Added vim-delve plugin to documentation (@sebdah) 845 - Floating point register support in core files (@aarzilli) 846 - Go 1.9 support, including lexical block support (@aarzilli) 847 - Added whatis and config commands (@aarzilli) 848 - Add FrameOffset field to api.Stackframe (@aarzilli) 849 850 ### Fixed 851 852 - Better interoperation with debugserver on macOS (@aarzilli / @dlsniper) 853 - Fix behavior of next, step and stepout with recursive functions (@aarzilli) 854 - Parsing of maps with zero sized values (@aarzilli) 855 - Typo in the documentation of `types` command (@custa) 856 - Data races in tests (@aarzilli) 857 - Fixed SetBreakpoint in native and gdbserial to return the breakpoint if it already exists (@dlsniper) 858 - Return breakpoint if it already exists (@dlsniper) 859 - Collect breakpoint information on exit from next/stepout/step (@aarzilli) 860 - Fixed install instructions (@jacobvanorder) 861 - Make headless server quit when the client disconnects (@aarzilli) 862 - Store the correct concrete value for interface variables (previously we would always have a pointer type, even when the concrete value was not a pointer) (@aarzilli) 863 - Fix interface and slice equality with nil (@aarzilli) 864 - Fix file:line location specs when relative paths are in .debug_line (@hyangah) 865 - Fix behavior of next/step/stepout in several edge-cases (invalid return addresses, no current goroutine, after process exists, inside unknown code, inside assembly files) (@aarzilli) 866 - Make sure the debugged executable we generated is deleted after exit (@alexbrainman) 867 - Make sure rr trace directories are deleted when we delete the executable and after tests (@aarzilli) 868 - Return errors for commands sent after the target process exited instead of panicking (@derekparker) 869 - Fixed typo in clear-checkpoint documentation (@iamzhout) 870 871 ### Changed 872 873 - Switched from godeps to glide (@derekparker) 874 - Better performance of linux native backend (@aarzilli) 875 - Collect breakpoints information if necessary after a next, step or stepout command (@aarzilli) 876 - Autodereference escaped variables (@aarzilli) 877 - Use runtime.tlsg to determine G struct offset (@heschik) 878 - Use os.StartProcess to implement Launch on windows (@alexbrainman) 879 - Escaped variables are dereferenced instead of being reported as &v (@aarzilli) 880 - Report errors when we fail to load the executable on attach (@aarzilli) 881 - Distinguish between nil and empty slices and maps both in the API and on the command line interface (@aarzilli) 882 - Skip deferred functions on next and stepout (as long as they are not called through a panic) (@aarzilli) 883 884 ## [1.0.0-rc.1] 2017-05-05 885 886 ### Added 887 888 - Added support for core files (@heschik) 889 - Added support for lldb-server and debugserver as backend, using debugserver by default on macOS (@aarzilli) 890 - Added support for Mozilla RR as backend (@aarzilli) 891 892 ### Fixed 893 894 - Detach should correctly kill child process we created (@aarzilli) 895 - Correctly return error when reading/writing memory of exited process (@aarzilli) 896 - Fix race condition in test (@hyangah) 897 - Fix version extraction to support proposals (@allada) 898 - Tolerate spaces better after command prefixes (@aarzilli) 899 900 ### Changed 901 902 - Updated Mac OSX install instructions (@aarzilli) 903 - Refactor of core code in proc (@aarzilli) 904 - Improve list command (@aarzilli) 905 906 ## [0.12.2] 2017-04-13 907 908 ### Fixed 909 910 - Fix infinite recursion with pointer loop (@aarzilli) 911 - Windows: Handle delayed events (@aarzilli) 912 - Fix Println call to be Printf (@derekparker) 913 - Fix build on OSX (@koichi) 914 - Mark malformed maps as unreadable instead of panicking (@aarzilli) 915 - Fixed broken benchmarks (@derekparker) 916 - Improve reliability of certain tests (@aarzilli) 917 918 ### Added 919 920 - Go 1.8 Compatibility (@aarzilli) 921 - Add Go 1.8 to test matrix (@derekparker) 922 - Support NaN/Inf float values (@aarzilli) 923 - Handle absence of stack barriers in Go 1.9 (@drchase) 924 - Add gdlv to list of alternative UIs (@aarzilli) 925 926 ### Changed 927 928 - Optimized 'trace' functionality (@aarzilli) 929 - Internal refactoring to support multiple backends, core dumps, and more (@aarzilli) [Still ongoing] 930 - Improve stacktraces (@aarzilli) 931 - Improved documentation for passing flags to debugged process (@njason) 932 933 ## [0.12.1] 2017-01-11 934 935 ### Fixed 936 937 - Fixed version output format. 938 939 ## [0.12.0] 2017-01-11 940 941 ### Added 942 943 - Added support for OSX 10.12.1 kernel update (@aarzilli) 944 - Added flag to set working directory (#650) (@rustyrobot) 945 - Added stepout command (@aarzilli) 946 - Implemented "attach" on Windows (@alexbrainman) 947 - Implemented next / step / step-instruction on parked goroutines (@aarzilli) 948 - Added support for App Engine (@dbenque) 949 - Go 1.7 support 950 - Added HomeBrew formula for installing on OSX. 951 - Delve now will break on unrecovered panics. (@aarzilli) 952 - Headless server can serve multiple clients. 953 - Conditional breakpoints have been implemented. (@aarzilli) 954 - Disassemble command has been implemented. (@aarzilli) 955 - Much improved documentation (still a ways to go). 956 957 ### Changed 958 959 - Pretty printing: type of elements of interface slices are printed. 960 - Improvements in internal operation of "step" command. 961 - Allow quoting in build flags argument. 962 - "h" as alias for "help" command. (@stmuk) 963 964 ### Fixed 965 966 - Improved prologue detection for large stack frames (#690) (@aarzilli) 967 - Fixed bugs involving stale executables during restart (#689) (@aarzilli) 968 - Various improvements to variable evaluation code (@aarzilli) 969 - Fix bug reading process comm name (@ggndnn) 970 - Add better detection for launching non executable files. (@aarzilli) 971 - Fix halt bug during tracing. (@aarzilli) 972 - Do not use escape codes on Windows when unsupported (@alexbrainman) 973 - Fixed path lookup logic on Windows. (@lukehoban) 974 975 ## [0.11.0-alpha] 2016-01-26 976 977 ### Added 978 979 - Windows support landed in master. Still work to be done, but 95% the way there. (@lukehoban) 980 - `step-instruction` command added, has same behavior of the old `step` command. 981 - (Backend) Implementation for conditional breakpoints, front end command coming soon. (@aarzilli) 982 - Implement expression evaluator, can now execute commands like `print i == 2`. (@aarzilli) 983 984 ### Changed 985 986 - `step` command no longer steps single instruction but goes to next source line, stepping into functions. 987 - Refactor of `parseG` command for clarity and speed improvements. 988 - Optimize reading from target process memory with cache. (prefetch + parse) (@aarzilli) 989 - Shorten file paths in `trace` output. 990 - Added Git SHA to version output. 991 - Support function spec with partial package paths. (@aarzilli) 992 - Bunch of misc variable evaluation fixes (@aarzilli) 993 994 ### Fixed 995 996 - Misc fixes in preparation for Go 1.6. (@aarzilli, @derekparker) 997 - Replace stdlib debug/dwarf with golang.org/x/debug/dwarf and fix Dwarf endian related parsing issues. (@aarzilli) 998 - Fix `goroutines` not working without an argument. (@aarzilli) 999 - Always clear temp breakpoints, even if normal breakpoint is hit. (@aarzilli) 1000 - Infinite loading loop through maps. (@aarzilli) 1001 - Fix OSX issues related to CGO memory corruption (array overrun in CGO). (@aarzilli) 1002 - Fix OSX issue related to reporting multiple breakpoints hit at same time. (@aarzilli) 1003 - Fix panic when using the `trace` subcommand. 1004 1005 ## [0.10.0-alpha] 2015-10-04 1006 1007 ### Added 1008 1009 - `set` command, allows user to set variable (currently only supports pointers / numeric values) (@aarzilli) 1010 - All deps are vendored with Godeps and leveraging GO15VENDOREXPERIMENT 1011 - `source` command and `--init` flag to run commands from a file (@aarzilli) 1012 - `clearall` commands now take linespec (@kostya-sh) 1013 - Support for multiple levels of struct nesting during variable eval (i.e. `print foo.bar.baz` now works) (@lukehoban) 1014 1015 ### Changed 1016 1017 - Removed hardware assisted breakpoints (for now) 1018 - Remove Go 1.4.2 on Travis builds 1019 1020 ### Fixed 1021 1022 - Limit string sizes, be more tolerant of uninitialized memory (@aarzilli) 1023 - `make` commands fixed for >= Go 1.5 on OSX 1024 - Fixed bug where process would not be killed upon detach (@aarzilli) 1025 - Fixed bug trying to detach/kill process that has already exited (@aarzilli) 1026 - Support for "dumb" terminals (@dlsniper) 1027 - Fix bug setting breakpoints at chanRecvAddrs (@aarzilli) 1028 1029 ## [0.9.0-alpha] 2015-09-19 1030 1031 ### Added 1032 1033 - Basic tab completion to terminal UI (@icholy) 1034 - Added `-full` flag to stack command, prints local vars and function args (@aarzilli) 1035 1036 ### Changed 1037 1038 - Output of threads and goroutines sorted by ID (@icholy) 1039 - Performance improvement: cache parsed goroutines during halt (@icholy) 1040 - Stack command no longer takes goroutine ID. Use scope prefix command instead (i.e. `goroutine <id> bt`) 1041 1042 ### Fixed 1043 1044 - OSX: Fix hang when 'next'ing through highly parallel programs 1045 - Absolute path confused as regexp in FindLocation (@aarzilli) 1046 - Use sched.pc instead of gopc for goroutine location 1047 - Exclude dead goroutines from `goroutines` command output (@icholy) 1048 1049 ## [0.8.1-alpha] 2015-09-05 1050 1051 ### Fixed 1052 - OSX: Fix error setting breakpoint upon Delve startup. 1053 1054 ## [0.8.0-alpha] 2015-09-05 1055 1056 ### Added 1057 - New command: 'frame'. Accepts a frame number and a command to execute in the context of that frame. (@aarzilli) 1058 - New command: 'goroutine'. Accepts goroutine ID and optionally a command to execute within the context of that goroutine. (@aarzilli) 1059 - New subcommand: 'exec'. Allows user to debug existing binary. 1060 - Add config file and add config options for command aliases. (@tylerb) 1061 1062 ### Changed 1063 - Add Go 1.5 to travis list. 1064 - Stop shortening file paths from API, shorten instead in terminal UI. 1065 - Implemented several improvements for `next`ing through highly parallel programs. 1066 - Visually align registers. (@paulsmith) 1067 1068 ### Fixed 1069 - Fixed output of 'goroutines' command. 1070 - Stopped preserving temp breakpoints on restart. 1071 - Added support for parsing multiple DWARF file tables. (@Omie) 1072 1073 ## [0.7.0-alpha] 2015-08-14 1074 1075 ### Added 1076 1077 - New command: 'list' (alias: 'ls'). Allows you to list the source code of either your current location, or a location that you describe via: file:line, line number (in current file), +/- offset or /regexp/. (@joeshaw) 1078 - Added Travis-CI for continuous integration. Works for now, will eventually change. 1079 - Ability to connect to headless server. When running Delve in headless mode (used previously only for editor integration), you now have the opportunity to connect to it from the command line with `dlv connect [addr]`. This will allow you to (insecurely) remotely debug an application. (@tylerb) 1080 - Support for printing complex numeric types. (@ebfe) 1081 1082 ### Changed 1083 1084 - Deprecate 'run' subcommand in favor of 'debug'. The 'run' subcommand now simply prints a warning, instructing the user to use the 'debug' command instead. 1085 - All 'info' subcommands have been promoted to the top level. You can now simply run 'funcs', or 'sources' instead of 'info funcs', etc... 1086 - Any command taking a location expression (i.e. break/trace/list) now support an updated linespec implementation. This allows you to describe the location you would like a breakpoint (etc..) set at in a more convenient way (@aarzilli). 1087 1088 ### Fixed 1089 1090 - Improved support for CGO. (@aarzilli) 1091 - Support for upcoming Go 1.5. 1092 - Improve handling of soft signals on Darwin. 1093 - EvalVariable evaluates package variables. (@aarzilli) 1094 - Restart command now preserves breakpoints previously set. 1095 - Track recurse level when eval'ing slices/arrays. (@aarzilli) 1096 - Fix bad format string in cmd/dlv. (@moshee)