Skip to content

Latest commit

 

History

History
345 lines (264 loc) · 15.1 KB

CHANGELOG.md

File metadata and controls

345 lines (264 loc) · 15.1 KB

Changelog

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

All changes mention the author, unless contributed by me (@derekparker).

[1.1.0] 2018-08-15

Added

  • Go 1.11 support (@aarzilli)
  • Improvements to Delve logging (@aarzilli, @derekparker)
  • Show global variables in disassembly (@aarzilli)
  • Support for inlined calls (@aarzilli, @derekparker, @jaym)
  • Support dwz compressed debug symbols (@slp)
  • Support for debug info in a separate file (@slp)
  • Let target process access the tty when running in headless mode on linux/native and darwin/gdbserial (@aarzilli)
  • Commands up and down (@yasushi-saito)
  • Flag to print stacktrace of all goroutines (@acshekhara1)
  • Command edit (@benc153)
  • Allow headless instances to keep running without a connected client (@aarzilli)
  • Add StartLoc to api.Goroutine containing the starting location of each goroutine (@aarzilli)
  • Preliminary support for function call injection with Go 1.11 (@aarzilli)
  • Ability to read list of deferred calls of a goroutine (@aarzilli)

Fixed

  • Fixed crashes when configuration file can not be created (@derekparker, @yuval-k, @aarzilli)
  • Fixed reported location of the go statement of goroutines (@derekparker)
  • Allow evaluation of constants specified without the full package path (@aarzilli)
  • Fixed some integer arithmetics bugs in proc (@functionary)
  • Respect load configuration after reslicing a map (@aarzilli)
  • Fixed race condition between Halt and process death in the linux native backend (@aarzilli)
  • Support core files generated by gdb (@psanford)
  • Fixed evaluation of breakpoint conditions containing a single boolean variable (@aarzilli)
  • Miscellaneous bugs in the debug_line state machine (@aarzilli)

Changed

  • Removed redundant/obsolete methods of proc.Process Halt and Kill, general cleanup of native backends (@aarzilli)
  • Improved documentation (@giuscri, @jsoref, @Carpetsmoker, @PatrickSchuster, @aarzilli, @derekparker, @ramya-rao-a, @dlsniper)
  • Workaround in the gdbserial backend for broken version 902 of debugserver (@aarzilli)
  • Changed operators || and && to short-circuit the evaluation of their arguments, like in Go (@aarzilli)
  • Mark shadowed arguments as shadowed (@aarzilli)
  • 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)

[1.0.0] 2018-02-19

Added

  • Print DWARF location expression with whatis (@aarzilli)
  • Use DW_AT_producer to warn about optimized code (@aarzilli)
  • Use constants to describe variable value (@aarzilli)
  • Use DW_AT_decl_line to determine variable visibility (@aarzilli)
  • -offsets flag for stack command (@aarzilli)
  • Support CGO stacktraces (@aarzilli)
  • Disable optimizations in C compiler (@aarzilli)
  • --output flag to configure output binary (@Carpetsmoker)
  • Support DW_OP_piece, DW_OP_regX, DW_OP_fbreg (@aarzilli)
  • Support DW_LNE_define_file (@aarzilli)
  • Support more type casts (@aarzilli)

Fixed

  • Disable file path case normalization on OSX (@aarzilli)
  • Support Mozilla RR 5.1.0 (@aarzilli)
  • Terminal no longer crashes when process exits during next (@aarzilli)
  • Fix TestCoreFPRegisters on Go 1.9 (@aarzilli)
  • Avoid scanning system stack if it's not executing CGO (@aarzilli)
  • Locspec "+0" should always evaluate to the current PC (@aarzilli)
  • Handle DW_LNE_end_of_sequence correctly (@aarzilli)
  • Top level interface variables may have 0 address (@aarzilli)
  • Handle DW_TAG_subprogram with a nochildren abbrev (@aarzilli)
  • StepBreakpoint handling (@aarzilli)

Changed

  • Documentation improvements (@grahamking)
  • Removed limitation of exit notifications (@dlsniper)
  • Use go env GOPATH for install path
  • Disable test caching (@aarzilli)
  • Disable -a and use all= for Go 1.10 building (@aarzilli)
  • Automatically deref interfaces on member access (@aarzilli)
  • Replace all uses of gosymtab/gopclntab with .debug_line section (@aarzilli)

[1.0.0-rc.2] 2017-10-16

Added

  • Automatically print panic reason for unrecovered panics (@aarzilli)
  • Propagate frame offset to clients (@aarzilli)
  • Added vim-delve plugin to documentation (@sebdah)
  • Floating point register support in core files (@aarzilli)
  • Go 1.9 support, including lexical block support (@aarzilli)
  • Added whatis and config commands (@aarzilli)
  • Add FrameOffset field to api.Stackframe (@aarzilli)

Fixed

  • Better interoperation with debugserver on macOS (@aarzilli / @dlsniper)
  • Fix behavior of next, step and stepout with recursive functions (@aarzilli)
  • Parsing of maps with zero sized values (@aarzilli)
  • Typo in the documentation of types command (@custa)
  • Data races in tests (@aarzilli)
  • Fixed SetBreakpoint in native and gdbserial to return the breakpoint if it already exists (@dlsniper)
  • Return breakpoint if it already exists (@dlsniper)
  • Collect breakpoint information on exit from next/stepout/step (@aarzilli)
  • Fixed install instructions (@jacobvanorder)
  • Make headless server quit when the client disconnects (@aarzilli)
  • 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)
  • Fix interface and slice equality with nil (@aarzilli)
  • Fix file:line location specs when relative paths are in .debug_line (@hyangah)
  • 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)
  • Make sure the debugged executable we generated is deleted after exit (@alexbrainman)
  • Make sure rr trace directories are deleted when we delete the executable and after tests (@aarzilli)
  • Return errors for commands sent after the target process exited instead of panicing (@derekparker)
  • Fixed typo in clear-checkpoint documentation (@iamzhout)

Changed

  • Switched from godeps to glide (@derekparker)
  • Better performance of linux native backend (@aarzilli)
  • Collect breakpoints information if necessary after a next, step or stepout command (@aarzilli)
  • Autodereference escaped variables (@aarzilli)
  • Use runtime.tlsg to determine G struct offset (@heschik)
  • Use os.StartProcess to implement Launch on windows (@alexbrainman)
  • Escaped variables are dereferenced instead of being reported as &v (@aarzilli)
  • Report errors when we fail to load the executable on attach (@aarzilli)
  • Distinguish between nil and empty slices and maps both in the API and on the command line interface (@aarzilli)
  • Skip deferred functions on next and stepout (as long as they are not called through a panic) (@aarzilli)

[1.0.0-rc.1] 2017-05-05

Added

  • Added support for core files (@heschik)
  • Added support for lldb-server and debugserver as backend, using debugserver by default on macOS (@aarzilli)
  • Added support for Mozilla RR as backend (@aarzilli)

Fixed

  • Detach should correctly kill child process we created (@aarzilli)
  • Correctly return error when reading/writing memory of exited process (@aarzilli)
  • Fix race condition in test (@hyangah)
  • Fix version extraction to support proposals (@allada)
  • Tolerate spaces better after command prefixes (@aarzilli)

Changed

  • Updated Mac OSX install instructions (@aarzilli)
  • Refactor of core code in proc (@aarzilli)
  • Improve list command (@aarzilli)

[0.12.2] 2017-04-13

Fixed

  • Fix infinite recursion with pointer loop (@aarzilli)
  • Windows: Handle delayed events (@aarzilli)
  • Fix Println call to be Printf (@derekparker)
  • Fix build on OSX (@koichi)
  • Mark malformed maps as unreadable instead of panicing (@aarzilli)
  • Fixed broken benchmarks (@derekparker)
  • Improve reliability of certain tests (@aarzilli)

Added

  • Go 1.8 Compatability (@aarzilli)
  • Add Go 1.8 to test matrix (@derekparker)
  • Support NaN/Inf float values (@aarzilli)
  • Handle absence of stack barriers in Go 1.9 (@drchase)
  • Add gdlv to list of alternative UIs (@aarzilli)

Changed

  • Optimized 'trace' functionality (@aarzilli)
  • Internal refactoring to support multiple backends, core dumps, and more (@aarzilli) [Still ongoing]
  • Improve stacktraces (@aarzilli)
  • Improved documentation for passing flags to debugged process (@njason)

[0.12.1] 2017-01-11

Fixed

  • Fixed version output format.

[0.12.0] 2017-01-11

Added

  • Added support for OSX 10.12.1 kernel update (@aarzilli)
  • Added flag to set working directory (#650) (@rustyrobot)
  • Added stepout command (@aarzilli)
  • Implemented "attach" on Windows (@alexbrainman)
  • Implemented next / step / step-instruction on parked goroutines (@aarzilli)
  • Added support for App Engine (@dbenque)
  • Go 1.7 support
  • Added HomeBrew formula for installing on OSX.
  • Delve now will break on unrecovered panics. (@aarzilli)
  • Headless server can serve multiple clients.
  • Conditional breakpoints have been implemented. (@aarzilli)
  • Disassemble command has been implemented. (@aarzilli)
  • Much improved documentation (still a ways to go).

Changed

  • Pretty printing: type of elements of interface slices are printed.
  • Improvements in internal operation of "step" command.
  • Allow quoting in build flags argument.
  • "h" as alias for "help" command. (@stmuk)

Fixed

  • Improved prologue detection for large stack frames (#690) (@aarzilli)
  • Fixed bugs involving stale executables during restart (#689) (@aarzilli)
  • Various improvements to variable evaluation code (@aarzilli)
  • Fix bug reading process comm name (@ggndnn)
  • Add better detection for launching non executable files. (@aarzilli)
  • Fix halt bug during tracing. (@aarzilli)
  • Do not use escape codes on Windows when unsupported (@alexbrainman)
  • Fixed path lookup logic on Windows. (@lukehoban)

[0.11.0-alpha] 2016-01-26

Added

  • Windows support landed in master. Still work to be done, but 95% the way there. (@lukehoban)
  • step-instruction command added, has same behavior of the old step command.
  • (Backend) Implementation for conditional breakpoints, front end command coming soon. (@aarzilli)
  • Implement expression evaluator, can now execute commands like print i == 2. (@aarzilli)

Changed

  • step command no longer steps single instruction but goes to next source line, stepping into functions.
  • Refactor of parseG command for clarity and speed improvements.
  • Optimize reading from target process memory with cache. (prefetch + parse) (@aarzilli)
  • Shorten file paths in trace output.
  • Added Git SHA to version output.
  • Support function spec with partial package paths. (@aarzilli)
  • Bunch of misc variable evaluation fixes (@aarzilli)

Fixed

  • Misc fixes in preparation for Go 1.6. (@aarzilli, @derekparker)
  • Replace stdlib debug/dwarf with golang.org/x/debug/dwarf and fix Dwarf endian related parsing issues. (@aarzilli)
  • Fix goroutines not working without an argument. (@aarzilli)
  • Always clear temp breakpoints, even if normal breakpoint is hit. (@aarzilli)
  • Infinite loading loop through maps. (@aarzilli)
  • Fix OSX issues related to CGO memory corruption (array overrun in CGO). (@aarzilli)
  • Fix OSX issue related to reporting multiple breakpoints hit at same time. (@aarzilli)
  • Fix panic when using the trace subcommand.

[0.10.0-alpha] 2015-10-04

Added

  • set command, allows user to set variable (currently only supports pointers / numeric values) (@aarzilli)
  • All deps are vendored with Godeps and leveraging GO15VENDOREXPERIMENT
  • source command and --init flag to run commands from a file (@aarzilli)
  • clearall commands now take linespec (@kostya-sh)
  • Support for multiple levels of struct nesting during variable eval (i.e. print foo.bar.baz now works) (@lukehoban)

Changed

  • Removed hardware assisted breakpoints (for now)
  • Remove Go 1.4.2 on Travis builds

Fixed

  • Limit string sizes, be more tolerant of uninitialized memory (@aarzilli)
  • make commands fixed for >= Go 1.5 on OSX
  • Fixed bug where process would not be killed upon detach (@aarzilli)
  • Fixed bug trying to detach/kill process that has already exited (@aarzilli)
  • Support for "dumb" terminals (@dlsniper)
  • Fix bug setting breakpoints at chanRecvAddrs (@aarzilli)

[0.9.0-alpha] 2015-09-19

Added

  • Basic tab completion to terminal UI (@icholy)
  • Added -full flag to stack command, prints local vars and function args (@aarzilli)

Changed

  • Output of threads and goroutines sorted by ID (@icholy)
  • Performance improvement: cache parsed goroutines during halt (@icholy)
  • Stack command no longer takes goroutine ID. Use scope prefix command instead (i.e. goroutine <id> bt)

Fixed

  • OSX: Fix hang when 'next'ing through highly parallel programs
  • Absolute path confused as regexp in FindLocation (@aarzilli)
  • Use sched.pc instead of gopc for goroutine location
  • Exclude dead goroutines from goroutines command output (@icholy)

[0.8.1-alpha] 2015-09-05

Fixed

  • OSX: Fix error setting breakpoint upon Delve startup.

[0.8.0-alpha] 2015-09-05

Added

  • New command: 'frame'. Accepts a frame number and a command to execute in the context of that frame. (@aarzilli)
  • New command: 'goroutine'. Accepts goroutine ID and optionally a command to execute within the context of that goroutine. (@aarzilli)
  • New subcommand: 'exec'. Allows user to debug existing binary.
  • Add config file and add config options for command aliases. (@tylerb)

Changed

  • Add Go 1.5 to travis list.
  • Stop shortening file paths from API, shorten instead in terminal UI.
  • Implemented several improvements for nexting through highly parallel programs.
  • Visually align registers. (@paulsmith)

Fixed

  • Fixed output of 'goroutines' command.
  • Stopped preserving temp breakpoints on restart.
  • Added support for parsing multiple DWARF file tables. (@Omie)

[0.7.0-alpha] 2015-08-14

Added

  • 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)
  • Added Travis-CI for continuous integration. Works for now, will eventually change.
  • 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)
  • Support for printing complex numeric types. (@ebfe)

Changed

  • Deprecate 'run' subcommand in favor of 'debug'. The 'run' subcommand now simply prints a warning, instructing the user to use the 'debug' command instead.
  • All 'info' subcommands have been promoted to the top level. You can now simply run 'funcs', or 'sources' instead of 'info funcs', etc...
  • 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).

Fixed

  • Improved support for CGO. (@aarzilli)
  • Support for upcoming Go 1.5.
  • Improve handling of soft signals on Darwin.
  • EvalVariable evaluates package variables. (@aarzilli)
  • Restart command now preserves breakpoints previously set.
  • Track recurse level when eval'ing slices/arrays. (@aarzilli)
  • Fix bad format string in cmd/dlv. (@moshee)