delve/pkg/proc
ttoad 53998cbb18
pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253)
* wip: Support sending output when remote debug

* wip: Support local output and remote output

* wip: fix stderr and stdout assignment error

* wip: optimize code

* wip: Only if outputMode is "remote" is the redirected console output

* wip: Redirected debugMode output(Not tested on windows)

* wip: support remote debugging output redirection of windows

* wip: real-time write back output

* wip: support for windows

* wip: fix windows remote debug not output

* wip: fix truncated output redirection

* wip: delete printfln

* wip: use debugger.Config to pass redirect(macOS)

* wip: use debugger.Config to pass redirect(linux)

* wip: Change redirect to a concrete type

* wip: s.wg.wait before sending "terminated"

* wip: add proc/redirect test(darwin and linux)

* Merge branch 'master' of github.com:tttoad/delve into feat-console

* wip: Fix test failure on windows

* fix: undefined: proc.Redirects

* fix: compile failure

* wip: Remove useless code

* fix: filename error

* fix: os.file not close

* test: add server_test.redirect

* fix: Remove 'eol' from end of file

* fix: gdbserial: File not closed in file mode.
(in reality, gdbserial will never use file mode)

* feat: Remove "only-remote". Fix spelling mistakes.

* fix: spelling mistakes

* refactor: redirect

* fix: stdout and stderr are not set to default values

* fix: Restore code logic for rr.openRedirects()

* fix: Optimization Code

* fix: utiltest

* fix: execpt out

* fix: Resource release for redirects

* fix: build failure

* fix: clean->clear

* fix: build failure

* fix: test failure

* fix: Optimization Code

* style: remove useless code

* refactor: namedpipe

* refactor: namedpipe, launch ...

* fix: freebsd compile failure

* fix: proc_darwin compile failure

* style:  remove useless code

* feat: add d.config.Stdxx check on debug.Restart

* style: formatting and adding comments

* style: formatting and adding comments

* feat: add d.config.Stdxx check on debug.Restart

* style: namedpipe->redirector

* style: namedPipe->redirector

---------

Co-authored-by: 李翔 <qian.fu2@amh-group.com>
2023-07-05 08:39:01 -07:00
..
amd64util fmt code (#2826) 2021-12-13 10:25:23 -08:00
core proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
debuginfod debuginfod-find stderr may contain diagnostics; look at stdout only for filename (#3381) 2023-05-23 11:11:51 -07:00
fbsdutil pkg/proc: fix and improve freebsd register handling (#3019) 2022-05-31 16:04:36 -07:00
gdbserial pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
internal/ebpf pkg/proc: fix ebpf probe tracing backen uprobe handling (#3417) 2023-06-15 12:07:32 +02:00
linutil dwarf,proc: fix typos in comments and error messages (#3379) 2023-05-23 18:22:20 +02:00
macutil fmt code (#2826) 2021-12-13 10:25:23 -08:00
native pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
test proc/test: reenable cgo testing on FreeBSD (#3394) 2023-06-06 20:50:03 -07:00
winutil Add support for windows/arm64 (#3063) 2022-09-21 13:39:44 -07:00
amd64_arch.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
amd64_disasm.go pkg/proc: apply simplifycompositelit analysis fixes (#3236) 2023-01-03 08:13:28 -08:00
arch.go Add support for windows/arm64 (#3063) 2022-09-21 13:39:44 -07:00
arm64_arch.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
arm64_disasm.go *: Change comments to match common Go standarts (#3221) 2022-12-14 08:56:07 -08:00
bininfo.go pkg/proc: improve stripped binary support with PIE (#3421) 2023-06-16 09:38:19 +02:00
breakpoints.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
disasm.go proc/internal/ebpf: drop dependency on cgo (#3072) 2022-07-22 19:39:18 +02:00
doc.go *: run go1.19 'go fmt' on everything and fix problems (#3031) 2022-06-17 10:08:11 -07:00
dump.go proc: Fix typos in the comments (#3231) 2022-12-28 12:41:13 +01:00
dwarf_export_test.go pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365) 2023-05-15 14:46:33 -07:00
dwarf_expr_test.go proc: support multiple functions with the same name (#3297) 2023-03-22 11:38:09 -07:00
eval_go117.go proc: better error messages for ambiguous function calls/type casts (#2903) 2022-02-22 09:55:59 -08:00
eval_go118.go proc: better error messages for ambiguous function calls/type casts (#2903) 2022-02-22 09:55:59 -08:00
eval.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
fncall.go pkg/proc: enable basic debug functionality for stripped ELF binaries (#3408) 2023-06-14 13:23:46 +02:00
goroutine_cache.go pkg/proc: enable basic debug functionality for stripped ELF binaries (#3408) 2023-06-14 13:23:46 +02:00
i386_arch.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
i386_disasm.go dwarf,proc: fix typos in comments and error messages (#3379) 2023-05-23 18:22:20 +02:00
interface.go proc,proc/native: adds ability to automatically debug child processes (#3165) 2023-02-22 09:26:28 -08:00
mem.go pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365) 2023-05-15 14:46:33 -07:00
moduledata.go proc: remove old method to resolve the type of an interface to a DIE (#3150) 2022-09-29 10:06:15 -07:00
pclntab.go pkg/proc: improve stripped binary support with PIE (#3421) 2023-06-16 09:38:19 +02:00
pe.go proc: fix typo 'unkown' => 'unknown' (#2473) 2021-05-10 11:36:03 -07:00
proc_general_test.go Add support for windows/arm64 (#3063) 2022-09-21 13:39:44 -07:00
proc_linux_test.go pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
proc_test.go pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
proc_unexported_test.go proc: correctly truncate the result of binary ops on integers (#2463) 2021-05-17 10:31:05 -07:00
proc_unix_test.go proc,proc/native: adds ability to automatically debug child processes (#3165) 2023-02-22 09:26:28 -08:00
redirect.go pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
redirector_other.go pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
redirector_windows.go pkg/proc,service/*: Supports sending output to clients when running programs remotely (#3253) 2023-07-05 08:39:01 -07:00
registers.go proc: support function call injection on arm64 (#2996) 2022-05-03 10:46:24 -07:00
scope_test.go proc,proc/native: adds ability to automatically debug child processes (#3165) 2023-02-22 09:26:28 -08:00
stack_sigtramp.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
stack.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
stackwatch.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
target_exec.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
target_group.go proc,terminal: read command line of new processes (#3346) 2023-05-09 11:40:00 -07:00
target.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
threads.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
types.go proc: fix runtime type handling for Go 1.21 (#3370) 2023-05-15 10:21:52 -07:00
variable_test.go proc,proc/native: adds ability to automatically debug child processes (#3165) 2023-02-22 09:26:28 -08:00
variables_fuzz_test.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
variables_test.go pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365) 2023-05-15 14:46:33 -07:00
variables.go proc: read context from sigtrampgo, fixes TestCgoStacktrace2 on 1.21 (#3401) 2023-06-27 09:33:07 -07:00
x86_disasm.go proc: remove duplicate Registers.Get implementations (#2415) 2021-04-28 10:00:26 -07:00