Releases: go-delve/delve
v1.23.1
What's Changed
- proc: move stepping test to their own file by @aarzilli in #3784
- proc: fix step stuttering when entering range-over-func bodies by @aarzilli in #3788
- proc: fix TestRangeOverFuncNext on linux/386 by @aarzilli in #3795
- eval: Allow reslicing a slice up to its cap, rather than its length by @Jille in #3796
- chore: fix function name by @linchizhen in #3803
- terminal/starbind: fix starlark conversion of named consts by @arvidfm in #3802
- proc: workaround for macOS section name truncation by @aarzilli in #3799
- service/dap: make handlesMap generic by @aarzilli in #3798
- service/dap: fix test failure with 1.24 by @aarzilli in #3805
- proc: fix result type of division of untyped constants by @aarzilli in #3794
- proc: improve Rosetta check by @aarzilli in #3810
- proc: for optimized functions allow .closureptr to not exist by @aarzilli in #3808
- proc: cache module data by @aarzilli in #3800
- *: release version 1.23.1 by @aarzilli in #3816
New Contributors
- @Jille made their first contribution in #3796
- @linchizhen made their first contribution in #3803
- @arvidfm made their first contribution in #3802
Curated Changelog: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1231-2024-09-23
v1.23.0
What's Changed
- dwarfbuilder: fix makeAbbrevTable by @aarzilli in #3665
- *: misc fixes for go1.23 by @aarzilli in #3663
- elfwriter: add WriteSectionHeaders by @aarzilli in #3666
- Upgrade github.com/google/go-dap to v0.12.0 by @suzmue in #3673
- pkg/terminal,pkg/proc: Implement next-instruction by @derekparker in #3671
- pkg/terminal: print breakpoint number on stop by @derekparker in #3675
- proc/evalop: remove no longer needed Go 1.17 files by @alexandear in #3676
- Cirrus-CI: update to FreeBSD 13.3 by @aarzilli in #3679
- dwarf/loclist: remove impossible condition by @alexandear in #3677
- proc: catch panics when reading debug info for stripped executables by @aarzilli in #3678
- proc,go.mod: update x/sys remove KeepAlive calls by @aarzilli in #3680
- pkg/proc: defend better against missing DWARF by @derekparker in #3695
- proc: support reading captured variables of closures by @aarzilli in #3682
- pkg/terminal: allow postfix if for breakpoint conds by @derekparker in #3693
- proc: change 'step' command so that it steps through go statements by @aarzilli in #3686
- cmd/dlv: add shell (non-)completions to flags taking args by @scop in #3696
- cmd/dlv: fix panic on connect fail by @scop in #3698
- tests: fix tests on Go 1.23 by @aarzilli in #3697
- pkg/terminal: clear erroneous name setting on postfix if by @derekparker in #3702
- pkg/terminal: remove duplicated word by @alexandear in #3707
- cmd/dlv: improve positional argument completion by @scop in #3699
- proc: generalize escapeCheck and allocString by @aarzilli in #3687
- rr: fix gdb parsing by @howardjohn in #3705
- Add function name even in return trace by @archanaravindar in #3712
- pkg/proc: fix watchpoints on macos by @derekparker in #3703
- _scripts: upgrade to python3 by @aarzilli in #3716
- pkg/proc/gdbserial: optimize gdbwire backend by @derekparker in #3715
- gdbserial: update path of lldb protocol extension documentation by @aarzilli in #3727
- gdbserial: fixes for rr 5.7.0 by @aarzilli in #3718
- pkg/terminal: remove deprecated starlark global options by @alexandear in #3722
- *: remove redundant lines at the start/end of block by @alexandear in #3730
- Update actions/checkout to v4 by @abbasudo in #3731
- proc/gdbserial: add environment variables to configure rr invocation by @aarzilli in #3726
- proc: initial stepping with range-over-func support by @aarzilli in #3736
- cmd/dlv: print out message with stack trace when breakpoint is hit but has no waiting client by @fatanugraha in #3632
- Support to add a new suboption --follow-calls to trace subcommand by @archanaravindar in #3594
- proc: fix bug with stack watchpoints going out of scope by @aarzilli in #3742
- proc: fix TestRangeOverFuncNext by @aarzilli in #3740
- proc: refactor identifier evaluation for range-over-func support by @aarzilli in #3738
- service: print better message for unattended stops by @aarzilli in #3747
- pkg/astutil,pkg/elfwriter: fix package doc by @alexandear in #3753
- *: replace fmt.Errorf with errors.New by @alexandear in #3752
- proc: initial support for expressions with range-over-func by @aarzilli in #3750
- pkg/terminal: do not use deprecated strings.Title by @alexandear in #3756
- all: fix typos in CHANGELOG, comments and package name by @alexandear in #3757
- refactor: move loadModuleData from runtimeTypeToDIE and expose the apis by @jayantxie in #3741
- pkg/proc,service/debugger: fix debuginfod-find source by @derekparker in #3762
- fix: mem cache out of range panic caused by overflow by @jayantxie in #3761
- proc: support stepping through range-over-func statements with inlining by @aarzilli in #3755
- service/debugger: evaluate breakpoint vars on g-less threads by @aarzilli in #3759
- fix: LoadAbstractOriginAndSpecification infinite loop caused by abstr… by @zdyj3170101136 in #3767
- *: remove redundant lines at the start/end of block by @alexandear in #3773
- pkg/proc: fix 404 links and change to https by @alexandear in #3775
- go.mod: update gopkg.in/yaml to v3 by @aarzilli in #3776
- pkg/terminal: add missing file.Close() call by @alexandear in #3770
- pkg: refactor to .WriteString() instead of .Write([]byte()) by @alexandear in #3769
- pkg/dwarf/line: use t.Logf instead of fmt.Printf in tests by @alexandear in #3772
- proc: use .closureptr for stepping through range-over-func statements by @aarzilli in #3763
- service/rpc1: add Go Reference doc by @alexandear in #3779
- *: replace old golang.org links with new go.dev by @alexandear in #3774
- proc: fix bug with range-over-func stepping by @aarzilli in #3778
- goversion: add 1.23 to supported versions, update test matrix by @aarzilli in #3780
- teamcity: fix typo in configuration by @aarzilli in #3783
- *: release version 1.23.0 by @aarzilli in #3782
New Contributors
- @scop made their first contribution in #3696
- @howardjohn made their first contribution in #3705
- @abbasudo made their first contribution in #3731
- @fatanugraha made their first contribution in #3632
- @jayantxie made their first contribution in #3741
- @zdyj3170101136 made their first contribution in #3767
Full Changelog: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1230-2024-07-16
v1.22.1
What's Changed
- Cirrus-CI: update FreeBSD version by @aarzilli in #3618
- go.mod: Update version of go-delve/liner by @aarzilli in #3619
- Documentation: document runtime.frame(n).varname by @aarzilli in #3625
- TeamCity: speed up ppc64le CI by @aarzilli in #3622
- terminal: add paging to print, vars, args and locals by @aarzilli in #3620
- proc: fix TestCondBreakpointWithFrame flakes on 1.22rc1 by @aarzilli in #3624
- proc: fix dynamic library loading with musl loader by @aarzilli in #3621
- proc: fix stacktrace frame after runtime.sigpanic by @aarzilli in #3638
- proc/native: remove dead code in nonative_darwin.go by @aarzilli in #3637
- make.go: skip codesigning when testing an existing build by @ardnew in #3639
- proc/native: add support sentinel for FreeBSD with cgo disabled by @aarzilli in #3636
- service/dap: make TestEvaluateCallFunction independent of line numbers by @aarzilli in #3644
- evalop: fix name of executeOp function in test by @aarzilli in #3643
- proc: skip TestDebugStripped on development versions of Go by @aarzilli in #3642
- proc/gdbserver: clean up rr directory on detach by @aarzilli in #3570
- proc: if a reslice operator is used load the whole slice by @aarzilli in #3623
- *: remove accidentally committed binary by @derekparker in #3645
- *: update go-delve/gore by @derekparker in #3646
- service/dap: support waitfor option for 'dap attach' only by @aarzilli in #3656
- cmd/dlv: support unix domain sockets by @aarzilli in #3655
- terminal: add color highlighting to stacktraces by @aarzilli in #3649
- terminal: add prompt color option by @aarzilli in #3648
- *: update gore by @derekparker in #3659
- Don't use a fixed width for "sl" column when parsing /proc/net/tcp lines by @michaelmerg in #3660
- cmd/dlv: fix --continue with unix domain sockets by @aarzilli in #3658
- pkg/proc: remove usage of gore dependency by @derekparker in #3664
- *: release version 1.22.1 by @aarzilli in #3662
New Contributors
- @ardnew made their first contribution in #3639
- @michaelmerg made their first contribution in #3660
Full Changelog: v1.22.0...v1.22.1
Curated Changelog: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1221-2024-02-21
v1.22.0
What's Changed
- all: remove obsolete build tags by @alexandear in #3513
- service/dap: add the concrete type to interface type by @suzmue in #3510
- service/dap: fix bugs in stdout/stderr handling by @hyangah in #3522
- pkg/terminal: support vscode in edit command by @derekparker in #3524
- Use a valid timezone in tested binary by @upils in #3527
- proc: implement follow exec mode on Windows by @aarzilli in #3507
- service/test: disable TestClientServer_chanGoroutines with rr backend by @aarzilli in #3492
- proc/native: use cgo instead of C for freebsd by @4a6f656c in #3529
- proc: use DW_AT_trampoline to detect auto-generated code by @aarzilli in #3528
- proc: use stack machine to evaluate expressions by @aarzilli in #3508
- proc: fix comment typos by @alexandear in #3531
- proc: add min and max builtins by @aarzilli in #3530
- CI: update staticcheck version by @aarzilli in #3533
- proc: remove expr evaluation goroutine from EvalExpressionWithCalls by @aarzilli in #3532
- service/api: use bitfield for prettyprint flags by @aarzilli in #3536
- proc: allow evaluator to reference previous frames by @derekparker in #3534
- *: Add explicit code of conduct by @derekparker in #3540
- proc,service/dap,proc/gdbserial: fixes for debugserver --unmask-signals by @aarzilli in #3541
- *: release 1.21.2 (for master) by @aarzilli in #3546
- proc/native: wherever we check for exited we should also check detached by @aarzilli in #3547
- pkg/proc: add inline function support for stripped binaries by @derekparker in #3549
- cmd: fix a bunch of linter warnings from GoLand by @derekparker in #3550
- proc: add regression test for issue #3548 by @aarzilli in #3553
- *: update dependencies by @derekparker in #3552
- service: fix a bunch of linter warnings from GoLand by @derekparker in #3551
- *: Correct spelling mistakes by @alexandear in #3555
- pkg,service: Remove redundant build constraints by @alexandear in #3556
- Shorten variable types by @stefanhaller in #3535
- TeamCity: reupgrade linux/386 builder to Go 1.21 by @aarzilli in #3560
- pkg/proc: improve support unwinding from sigpanic by @derekparker in #3559
- pkg/proc: unskip passing tests and reorganize by @derekparker in #3561
- chore: use strings.Contains instead by @testwill in #3562
- pkg,service: remove unnecessary convertions by @alexandear in #3564
- *: remove checks for TRAVIS env variable by @aarzilli in #3568
- terminal: clear substitute path rules cache when config is used by @aarzilli in #3567
- service: fix typo in variable name by @alexandear in #3575
- TeamCity: remove windows/arm64 builders from chain by @aarzilli in #3572
- proc: simplify and generalize runtime.mallocgc workaround by @aarzilli in #3571
- proc/gdbserial: refactor parsing of key-value pairs from gdb protocol by @aarzilli in #3574
- Extract tip builds into a separate sub-project by @artspb in #3578
- pkg,service/dap: use switch instead of if-else-if by @alexandear in #3576
- CI: update teamcity settings by @derekparker in #3579
- pkg/proc: use gore to obtain info from stripped binaries by @derekparker in #3577
- add missing import in TeamCity DSL by @artspb in #3580
- update TeamCity DSL version to 2023.05 and remove tip configurations from Aggregator by @artspb in #3581
- proc: fix TestIssue1101 flake by @aarzilli in #3585
- proc: skip trapthread for harcoded breakpoints after manual stop by @aarzilli in #3582
- tests: fix tests in go1.22 by @aarzilli in #3583
- all: run go mod tidy by @prattmic in #3589
- add all branches but PRs to filter by @artspb in #3590
- service/dap: fix close on closed channel panic by @aarzilli in #3573
- Show pprof labels in thread names by @stefanhaller in #3501
- *: Use forked goretk/gore module by @derekparker in #3597
- proc: make some type casts less counterintuitive by @aarzilli in #3596
- teamcity,version: add 1.22 to supported versions and CI matrix by @aarzilli in #3601
- proc: fix ppc64 arch name check by @aarzilli in #3608
- goversion: include pre-releases in VersionAfterOrEqual check by @aarzilli in #3607
- service/dap: fix close on closed channel by @aarzilli in #3609
- proc: fix TestPackageRenames on go1.22 on linux/386 by @aarzilli in #3610
- *: Update gore dep for 1.22 by @derekparker in #3611
- *: release version 1.22.0 by @aarzilli in #3606
New Contributors
- @upils made their first contribution in #3527
- @testwill made their first contribution in #3562
- @prattmic made their first contribution in #3589
Full Changelog: v1.21.1...v1.22.0
Curated Changelog: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1220-2023-12-29
v1.21.2
Added
DAP: add concrete type to interface type (@suzmue, #3510)
Support for VSCode in the edit command (@derekparker, #3524)
Follow-mode support for Windows (@aarzilli, #3507)
Fixed
Fix bugs handling stdout/stderr in DAP (@hyangah, #3522)
Fix bug with autogenerated wrappers for methods of generic types (@aarzilli, #3528)
Changed
Use Cgo instead of C code in the FreeBSD backend (@4a6f656c, #3529)
Remove obsolete build tags (+build) (@alexandear, #3513)
v1.21.1
What's Changed
- proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 by @aarzilli in #3401
- Supports sending output to clients when running programs remotely by @tttoad in #3253
- pkg/dwarf/frame: fix FrameDescriptionEntries's Append by @gocurr in #3433
- pkg,service: refactor to use %q instead of "%s" by @alexandear in #3430
- fix typos by @gocurr in #3434
- service/dap: fix test for debug in progress by @suzmue in #3407
- delve: add ppc64le support by @alexsaezm in #2963
- proc: check recursion level when loading pointers by @aarzilli in #3431
- terminal,service: better printing of suspended breakpoints by @aarzilli in #3415
- *: add linux/ppc64le targets by @derekparker in #3435
- pkg/proc: simplify code with trivial changes by @gocurr in #3436
- service/dap: fix typos in comments by @alexandear in #3438
- all: use "len == 0" rather than "len <= 0" when checking empty slice/… by @gocurr in #3439
- terminal: restore breakpoints set with line offset on restart by @aarzilli in #3425
- service/api: in multiline mode print address of pointers by @aarzilli in #3448
- proc,ebpf: mark as unreadable args with unsupported types with ebpf by @aarzilli in #3444
- proc: replace use of runtime.GOARCH with Arch.Name by @aarzilli in #3442
- pkg/terminal: use reflect.Value.IsValid to check a zero Value by @gocurr in #3450
- starbind: fix Starlark slice unmarshaling by @andreimatei in #3454
- logflags: simplify Logger interface by @aarzilli in #3274
- proc: add waitfor option to attach by @aarzilli in #3445
- Documentation,cmd/dlv: clean up command line usage help by @aarzilli in #3395
- *: Fix ppc64le test runs by @derekparker in #3460
- goversion,teamcity: update test matrix and fix build scripts by @aarzilli in #3463
- service/dap: use == to test io.EOF by @gocurr in #3464
- teamcity: hold back linux/386 builds to 1.20 by @aarzilli in #3465
- proc: fix PIE support on macOS by @aarzilli in #3467
- proc: fix stacktraces on freebsd/amd64/go1.20 by @aarzilli in #3458
- locspec: fix SubstitutePath when converting a Windows path to Linux by @aarzilli in #3453
- gobuild: pass user specified arguments of go build first by @aarzilli in #3456
- *: remove deepsource.toml by @derekparker in #3468
- fix(proc): fix nil pointer panic by @Ccheers in #3471
- goversion: parse new version format and simplify version representation by @aarzilli in #3470
- pkg,service: make receiver names consistent by @alexandear in #3473
- pkg/proc: add support for more types in ebpf tracing backend by @derekparker in #3474
- proc: when stepping set condition on thread ID if there is no curg by @aarzilli in #3475
- teamcity: misc changes to CI by @aarzilli in #3476
- cmd/dlv: handle ctrl-c during tracing by @derekparker in #3477
- proc: remove unused functions by @aarzilli in #3479
- DWARF CFI: use a stack for restore/remember opcodes by @javierhonduco in #3480
- proc: disable "wait-for" tests on freebsd by @aarzilli in #3482
- proc,service,terminal: add ways to list goroutines waiting on a channel by @aarzilli in #3481
- proc: refactorings to implement follow-exec mode on Windows by @aarzilli in #3441
- pkg,service: fix typos in comments, exceptions, tests by @alexandear in #3486
- api,dap: fix hexadecimal printing of vars with symbolic const values by @aarzilli in #3487
- go.mod: update version of github.com/cilium/ebpf by @aarzilli in #3491
- Fix PIE tests on ppc64le port by @archanaravindar in #3498
- service/dap: strip package paths from symbols in callstack by @stefanhaller in #3500
- pkg/proc/internal/ebpf: remove redundant nil check by @Juneezee in #3502
- pkg/terminal: add 'packages' command by @hyangah in #3499
- proc,service: simplify tests with T.Setenv by @alexandear in #3503
- _scripts: remove unnecessary os.ExpandEnv by @alexandear in #3504
- service/dap: accept a string list as launch request's buildFlags by @hyangah in #3496
- Various fixes for go 1.22 by @aarzilli in #3455
- proc: move StepInstruction method to TargetGroup by @aarzilli in #3488
- pkg/terminal: support more editors with edit command by @derekparker in #3506
- Enable function call injection in Delve for linux/ppc64le by @archanaravindar in #3449
- fix memory leak by @thechampagne in #3512
- macho: Enable debugging stripped binaries by @pgavlin in #3511
- all: replace deprecated io/ioutil with io and os by @alexandear in #3509
- V1.21.1 by @derekparker in #3518
New Contributors
- @tttoad made their first contribution in #3253
- @gocurr made their first contribution in #3433
- @Ccheers made their first contribution in #3471
- @archanaravindar made their first contribution in #3498
- @stefanhaller made their first contribution in #3500
- @thechampagne made their first contribution in #3512
- @pgavlin made their first contribution in #3511
Full Changelog: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1211-2023-10-3
v1.21.0
Curated CHANGELOG
https://github.com/go-delve/delve/blob/master/CHANGELOG.md#1210-2023-06-23
What's Changed
- proc: fix TestFrameEvaluation by adding missing assert by @alexandear in #3326
- proc: fix match condition in TestGnuDebuglink by @alexandear in #3327
- proc: disable flaky tests on windows/arm64 by @aarzilli in #3328
- Small test fix for early Go 1.21 by @aarzilli in #3312
- proc: step breakpoints shouldn't hide normal breakpoints by @aarzilli in #3287
- proc: Simplify eBPF backend implementation by @chenhengqi in #3325
- debugger: do not panic if defer location can not be found by @aarzilli in #3329
- proc/native: support core dumping on FreeBSD by @aarzilli in #3305
- service/debugger,terminal: API and user interface for follow exec mode by @aarzilli in #3286
- fix some comments by @cuishuang in #3340
- Add additional information to how to filter goroutines by @alexsaezm in #3341
- service: fix typos in comments by @alexandear in #3344
- proc/test: replace old func testName with T.Name by @alexandear in #3347
- service/dap,service/debugger: refactor regexp funcs by @alexandear in #3348
- service/dap: use reloaded value by @suzmue in #3349
- *: misc improvements to config command and substitute-path rules by @aarzilli in #3335
- pkg/proc: remove memlock limit for ebpf trace backend by @derekparker in #3353
- pkg/proc: add missing response body Close in test by @alexandear in #3355
- chore: don't ignore directory cmd/dlv by @spacewander in #3359
- refactor: replace
Readdir(-1)
withos.ReadDir
by @Juneezee in #3361 - dwarf/godwarf: fix alignment calculation for typedef types by @aarzilli in #3362
- service/dap: refactor funcs always returning nil error by @alexandear in #3357
- trace: add timestamp to the output by @spacewander in #3358
- proc,terminal: read command line of new processes by @aarzilli in #3346
- proc: fix runtime type handling for Go 1.21 by @aarzilli in #3370
- cmd/dlv: logger is not closed in connect command by @alexandear in #3367
- pkg/proc: pad variable mem in extractVarInfoFromEntry by @ZekeLu in #3365
- cmd/dlv,service/dap: use randomized name as default output binary by @aarzilli in #3366
- pkg/proc,pkg/terminal: close response body in tests by @alexandear in #3372
- proc: remove addrret field from Stackframe struct by @aarzilli in #3373
- service: fix typos in comments, logs, tests, errors, and vars by @alexandear in #3378
- dwarf,proc: fix typos in comments and error messages by @alexandear in #3379
- debuginfod-find stderr may contain diagnostics; look at stdout only by @fche in #3381
- documentation: add a note about starlark structs by @andreimatei in #3376
- starbind: Make the time module available to star scripts by @andreimatei in #3375
- dwarf/op: use readMemory function by @aarzilli in #3391
- _scripts: fix typos by @alexandear in #3402
- dwarf: ignore DeclLine for function args by @andreimatei in #3400
- docgen: fix links with trailing dots by @andreimatei in #3399
- service/rpccommon: correct wrong comments by @aarzilli in #3397
- TeamCity: actually run linux/386 tests on linux/386 by @aarzilli in #3392
- debugger: inline clearBreakpoint, createLogicalBreakpoint by @aarzilli in #3389
- starbind: fix use of ptr variables in starlark by @andreimatei in #3386
- cmd/commands: fix to read debug info file from correct directory in trace command by @nozzy123nozzy in #3405
- rpc2, debugger: Fix comments around goroutine grouping by @andreimatei in #3374
- TeamCity: fix linux/arm64 build by @aarzilli in #3403
- terminal: ask for confirmation when using 'quit -c' with breakpoints by @aarzilli in #3398
- proc/test: reenable cgo testing on FreeBSD by @aarzilli in #3394
- terminal: expand ~ in paths passed to 'source' by @aarzilli in #3387
- TeamCity: fix linux/arm64 build (second attempt) by @aarzilli in #3411
- service/dap: update go-dap to latest by @suzmue in #3414
- terminal/starbind: add online help for starlark by @aarzilli in #3388
- pkg/proc: enable basic debug functionality for stripped ELF binaries by @derekparker in #3408
- pkg/proc: fix ebpf probe tracing backend uprobe handling by @derekparker in #3417
- pkg/terminal: regenerate starlark mappings by @derekparker in #3418
- service,terminal: when libraries don't have debug_info print reason by @aarzilli in #3419
- proc: only print warning when gopclntab can not be read for first image by @aarzilli in #3420
- pkg/proc: improve stripped binary support with PIE by @derekparker in #3421
- service/dap: fix typos in comments by @alexandear in #3426
- proc: skip TestDebugStripped on linux/386/pie by @aarzilli in #3427
- all: Bump to v1.21.0 by @aarzilli in #3428
New Contributors
- @chenhengqi made their first contribution in #3325
- @Juneezee made their first contribution in #3361
- @ZekeLu made their first contribution in #3365
- @fche made their first contribution in #3381
- @nozzy123nozzy made their first contribution in #3405