delve/pkg/terminal
Archana Ravindar 89123a0000
pkg/terminal,service/debugger: Support to add a new suboption --follow-calls to trace subcommand (#3594)
* rebasing on master to implement --followcalls

* in progress changes to enable --followcalls

* rebase to master: modified function to add children to funcs array

* modify main traversal loop

* added tests to check different scenarios

* added tests to check different scenarios

* added tests to check different scenarios

* add test to check for overlapping regular expression

* modified type of strings array as a return only

* changed depth to a simple integer instead of a global map

* avoid calling traverse on recursive calls

* Added tests for various call graphs to test trace followfuncs

* Added tests for various call graphs to test trace followfuncs

* Added tests for various call graphs to test trace followfuncs

* made auxillary changes for build to go through for new option follow-calls

* Add support to print depth of the function calls as well

* Added two sample output files for checking

* Bypass morestack_noctxt in output for verification testing

* Corrected newline error by adding newlines only if the line does not match morestack_noctxt

* Added more tests

* Cleanup

* Updated documentation

* fixed error message in fmt.Errorf

* Fixed result of Errorf not used error

* Addressing review comments to fix depth reporting and other issues

* dont invoke stacktrace if tracefollowcalls is enabled, compute depth from main regex root symbol than main.main

* Addressing a part of review comments

* Added changes to allow deferred functions to be picked up for tracing

* Fix issue to avoid printing stack for a simple trace option

* Moving most tests to integration2_test.go and keeping only one in dlv_test.go

* Moving most tests to integration2_test.go and keeping only one in dlv_test.go

* Adding panic-defer test case

* Moved rest of the tests to integration2_test.go

* addressing review comments: folding Functions and FunctionsDeep, reducing branches by using depth prefix, wrap using %w and other comments

* Optimize traversal and parts of printing trace point function and modify trace output layout
and adjust tests accordingly

* Resolved error occurring due to staticcheck

* Implemented traversal algorithm using breadth first search

* Addressing review comments on the breadth first search implementation and
other comments

* Inline filterRuntimeFuncs and remove duplicate initialization
2024-06-12 12:35:48 -07:00
..
colorize all: replace deprecated io/ioutil with io and os (#3509) 2023-09-25 11:41:59 -07:00
starbind pkg/terminal,service/debugger: Support to add a new suboption --follow-calls to trace subcommand (#3594) 2024-06-12 12:35:48 -07:00
command_test.go pkg/terminal: clear erroneous name setting on postfix if (#3702) 2024-04-15 10:07:36 +02:00
command.go pkg/terminal,service/debugger: Support to add a new suboption --follow-calls to trace subcommand (#3594) 2024-06-12 12:35:48 -07:00
config.go terminal: clear substitute path rules cache when config is used (#3567) 2023-11-16 10:43:23 -08:00
disasmprint.go terminal: add ability to show disassembly instead of source (#3047) 2022-07-14 14:08:47 -07:00
docgen.go *: remove redundant lines at the start/end of block (#3730) 2024-05-20 14:16:22 -07:00
groups.go terminal: divide commands into categories 2020-03-09 10:11:21 -07:00
out_unix.go all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
out_windows.go terminal: use exact window size for pager (#3249) 2023-01-16 09:20:43 -08:00
out.go terminal: use exact window size for pager (#3249) 2023-01-16 09:20:43 -08:00
starlark_test.go pkg,service: refactor to use %q instead of "%s" (#3430) 2023-07-05 08:49:08 -07:00
starlark.go *: Fix go vet complaints (#1935) 2020-03-18 09:25:32 -07:00
terminal_other.go all: remove obsolete build tags "// +build" (#3513) 2023-10-03 08:50:11 -07:00
terminal_test.go *: misc improvements to config command and substitute-path rules (#3335) 2023-05-02 12:23:59 -07:00
terminal_windows.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
terminal.go pkg/terminal,service/debugger: Support to add a new suboption --follow-calls to trace subcommand (#3594) 2024-06-12 12:35:48 -07:00