profile
viewpoint

chainhelen/bptree 8

Implementing bplustree base on disk(kv store).

chainhelen/godbg 3

the debugger on linux platform for go (Toys ==ing==> Tool)

chainhelen/ACdream 0

programming community of ACM (node.js + express4 + mongodb)

chainhelen/c4 0

C in four functions

chainhelen/chlang 0

to be a new language interpreter

chainhelen/delve 0

Delve is a debugger for the Go programming language.

chainhelen/deno 0

A secure TypeScript runtime on V8

issue commentgo-delve/delve

Should dlv test chdir to the package directory like go test does?

Ps:

--wd string Working directory for running the program. (default ".")
dlv test --wd ./mypackage ./mypackage .

abustany

comment created time in 2 days

issue commentgo-delve/delve

delve should produce an error when the go command cannot be found

@lolbinarycat

  1. What's the path of package which you want to debug?
  2. Can you list all files in $GOPATH/bin where you run execution ?
lolbinarycat

comment created time in 2 days

pull request commentgo-delve/delve

Add arm-linux support to delve

So great.

puppywang

comment created time in 8 days

issue commentgo-delve/delve

dlv locals not intact

@PandaTea I notice the msg Warning: debugging optimized function on your screen shot. So could you try -gcflags="all=-N -l" instead of -gcflags="-N -l"

PandaTea

comment created time in 9 days

issue commentgo-delve/delve

dlv send to channel value similar to set variable.

In fact ch <- 1 will become that calling one function named chansend on runtime. So this feature maybe similar to call cmd.

andriisoldatenko

comment created time in 11 days

issue commentgo-delve/delve

The debug result is different with go run result ( using unsafe. Pointer, got []byte cap = 0 and len >0 )

@fxxkingNoob I have try, as @qingyunha say.

go version go1.14 linux/amd64
go build -o main1 main.go 

./main1  

8
824633927632
73
1
[5/824633927632]0x475d75
go build -o main2 -gcflags="all=-N -l" main.go

./main2

8
0
65533
1
panic: runtime error: slice bounds out of range [:5] with capacity 0

goroutine 1 [running]:
main.main()
	/home/chainhelen/main.go:15 +0x1c2

Need to create one issue on https://github.com/golang/go/issues for tracing.

fxxkingNoob

comment created time in 13 days

issue commentgo-delve/delve

install dlv error: found packages native (proc.go)...

@hudingchen As the message says, dlv don't support windows/386 currently.

https://groups.google.com/d/msg/delve-dev/uUkP7MjET6Q/PX4o4r9OBwAJ
duplicate 32-bit Windows support # 656

hudingchen

comment created time in 22 days

pull request commentgo-delve/delve

pkg/proc: Fix crash when LocationExpr is nil

Done and rebase.

chainhelen

comment created time in a month

push eventchainhelen/delve

polinasok

commit sha 717e2685db31ecd26ce8d78e5e14cf6d9562a164

service/dap: Add launch request support for stackTraceDepth arg (#2099) * service/dap: Support stackTraceDepth launch argument * Respond to review comments * Make DeepSource happy Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>

view details

polinasok

commit sha c63ae072bcfcf418a6af772e906738b78ff7435b

service/dap: resolve minor error code TODO (#2103) Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>

view details

Alessandro Arzilli

commit sha 8571fddbc189e60698a207e88f08155ba030e6b5

godwarf: handle unsupported types gracefully (#2106) Backport https://go-review.googlesource.com/c/go/+/158797 from upstream. Fixes #2101

view details

chainhelen

commit sha a77da42096e95eb0f09e68349a5ae12ee7fa4425

pkg/proc: Fix crash when LocationExpr is nil Add nil check for v.LocationExpr and keep unreadable error of var. Fix #2049

view details

push time in a month

push eventchainhelen/delve

chainhelen

commit sha bb16d15b991a7e42a1333247382418a44c07cb1f

pkg/proc: Fix crash when LocationExpr is nil Add nil check for v.LocationExpr and keep unreadable error of var. Fix #2049

view details

push time in a month

pull request commentgo-delve/delve

pkg,service: support 386 on linux

Incredible work @chainhelen! The original 32-bit issue was opened 6 years ago. It's great to see progress being made to add 32-bit support to Delve!

So, I tried it out for a sample binary (at rev c63ae07) and first I made the mistake of running dlv compiled for my native machine architecture (AMD64) when trying to debug a 32-bit ELF sample. This resulted in the wrong pointer size being used (as expected).

$ dlv exec ./sample
goarch: amd64
elfFile.Machine: EM_386
bi.Arch.PtrSize(): 8
panic: runtime error: slice bounds out of range [16:12]

goroutine 7 [running]:
github.com/go-delve/delve/pkg/dwarf/frame.parseFDE(0xc0001da000, 0xbd1f68)
	/home/u/goget/src/github.com/go-delve/delve/pkg/dwarf/frame/parser.go:88 +0x2d4

For reference, the out-of-bounds access happens on this line (and it is expected to happen as I had dlv compiled for 64-bit, but debugged a 32-bit program):

From pkg/dwarf/frame/parser.go:88:

	ctx.frame.Instructions = r[2*ctx.ptrSize:]

As the 32-bit support was implemented for the native package I tried to rebuild dlv with GOARCH=386, but then ran into the following build error:

$ GOOS=linux GOARCH=386 go install -v github.com/go-delve/delve/cmd/dlv
github.com/go-delve/delve/pkg/proc/native
# github.com/go-delve/delve/pkg/proc/native
goget/src/github.com/go-delve/delve/pkg/proc/native/register_linux_386.go:66:13: undefined: ptraceGetTls
goget/src/github.com/go-delve/delve/pkg/proc/native/register_linux_386.go:83:51: undefined: ptraceGetRegset
goget/src/github.com/go-delve/delve/pkg/proc/native/threads_linux.go:97:16: undefined: processVmWrite
goget/src/github.com/go-delve/delve/pkg/proc/native/threads_linux.go:112:9: undefined: processVmRead

Is this to be expected?

Once more, thanks for working on this! It's tremendously useful to have a debugger for Go written in Go with support for the various architectures that Go compiles down to.

Cheerful regards, Robin

Please notice cgo when cross compile.

chainhelen

comment created time in a month

pull request commentgo-delve/delve

pkg,service: support 386 on linux

Incredible work @chainhelen! The original 32-bit issue was opened 6 years ago. It's great to see progress being made to add 32-bit support to Delve!

So, I tried it out for a sample binary (at rev c63ae07) and first I made the mistake of running dlv compiled for my native machine architecture (AMD64) when trying to debug a 32-bit ELF sample. This resulted in the wrong pointer size being used (as expected).

$ dlv exec ./sample
goarch: amd64
elfFile.Machine: EM_386
bi.Arch.PtrSize(): 8
panic: runtime error: slice bounds out of range [16:12]

goroutine 7 [running]:
github.com/go-delve/delve/pkg/dwarf/frame.parseFDE(0xc0001da000, 0xbd1f68)
	/home/u/goget/src/github.com/go-delve/delve/pkg/dwarf/frame/parser.go:88 +0x2d4

For reference, the out-of-bounds access happens on this line (and it is expected to happen as I had dlv compiled for 64-bit, but debugged a 32-bit program):

From pkg/dwarf/frame/parser.go:88:

	ctx.frame.Instructions = r[2*ctx.ptrSize:]

As the 32-bit support was implemented for the native package I tried to rebuild dlv with GOARCH=386, but then ran into the following build error:

$ GOOS=linux GOARCH=386 go install -v github.com/go-delve/delve/cmd/dlv
github.com/go-delve/delve/pkg/proc/native
# github.com/go-delve/delve/pkg/proc/native
goget/src/github.com/go-delve/delve/pkg/proc/native/register_linux_386.go:66:13: undefined: ptraceGetTls
goget/src/github.com/go-delve/delve/pkg/proc/native/register_linux_386.go:83:51: undefined: ptraceGetRegset
goget/src/github.com/go-delve/delve/pkg/proc/native/threads_linux.go:97:16: undefined: processVmWrite
goget/src/github.com/go-delve/delve/pkg/proc/native/threads_linux.go:112:9: undefined: processVmRead

Is this to be expected?

Once more, thanks for working on this! It's tremendously useful to have a debugger for Go written in Go with support for the various architectures that Go compiles down to.

Cheerful regards, Robin

Please notice cgo when cross compile.

chainhelen

comment created time in a month

issue commentgo-delve/delve

ppc64le

duplicate #1564. (label kind/enhancement)

macthev

comment created time in a month

pull request commentgo-delve/delve

pkg/proc: Fix crash when LocationExpr is nil

Not any process on reproducer and avoid to cover up the real problem. Rebase and done.

chainhelen

comment created time in a month

push eventchainhelen/delve

chainhelen

commit sha 2e2f9492794f49ba31349b25dfc67f101882a2d8

pkg/proc: Keep unreadable error of var Update #2049

view details

push time in a month

push eventchainhelen/delve

chainhelen

commit sha 237c5026f40e38d2dd6f62a7362de7b25b00c1c7

doc/readme: Remove the Build Status of appveyor (#2055) update #1919

view details

Derek Parker

commit sha 4a9b3419d13abcc850acf80770f5103191d06a1f

*: v1.4.1 (#2059)

view details

polinasok

commit sha 4be75bec5910d17c119acfd79d9017078e8ae3e3

service/dap: Add buildFlags error checking and tests in launch requests (#2056) * service/dap: Add error checking and tests for buildFlags in launch requests * Clarify with comments and better naming * Undo redundant support.go changes * Undo redundant support.go changes (attempt #2) Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>

view details

chainhelen

commit sha 04a0891913bb714245def33fa9a4637e157ee707

cmd/dlv: do not ignore regex when tracing pid (#2069) The trace command line subcommand ignored the regexp argument when the traced process was specified using the '-p' option. Fixes #2023

view details

Alessandro Arzilli

commit sha fecf14bd195878767757a963e5a9a7724aa629e1

terminal: fix nil pointer dereference when printing tracepoints (#2071) This issue causes a failure of TestTracePid that was observed in CI: https://travis-ci.com/github/go-delve/delve/jobs/343053383 I'm not sure what causes it in this particular instance but there are several ways in which a thread stopped at a breakpoint might have a BreakpointInfo == nil field (see variable withBreakpointInfo in debugger.Debugger.Command).

view details

Alessandro Arzilli

commit sha 2d6bc19ad7bb214c5803e5f457a3f34926610f7d

service/api: do not try to convert unreadable goroutines (#2070) When reading truncated core files GoroutinesInfo will sometimes produce some proc.G structs with only the Unreadable field set. These proc.G can not be used for anything, but the service layer will still try to convert them. Since they are not fully initialized parts of the conversion will fail, api.ConvertGoroutine should not try to call methods of unreadable goroutines. Fixes a bug reported on the mailing list. https://groups.google.com/forum/#!msg/delve-dev/gauDqYaD81c/K5YDNBOhAAAJ

view details

Alessandro Arzilli

commit sha 80b5b95182bd9101f6f847e2102261ecaec2f23c

proc/*: move Set/Clear Breakpoint methods to Target (#2064)

view details

Alessandro Arzilli

commit sha 292f5c69f0c769fd32c2e8b1e7153b56e908efd7

proc: step into unexported runtime funcs when already inside runtime (#2061) Normally we don't step into unexported runtime functions because the compiler is free to insert them into the code and they are not relevant to the user, however if we are already stepping through a runtime function we should let step into work normally and step into other runtime functions.

view details

Álex Sáez

commit sha 95e7cafd0c77790d728a6dc6ffc65c2cb29a13c0

terminal/command: Add 'reload' command (#1971) * terminal/command: Add 'reload' command These changes add the 'reload' command, which allows us to rebuild the project and start the debugging session again. Currently, if the project's code is updated while debugging it, Delve shows the new source code, but it's still running the old one. With 'reload', the whole binary is rebuilt, and the process starts again. Fixes #1551 * Remove unnecessary print Changes to be committed: modified: pkg/terminal/command.go * Add tests and refactor the code Changes to be committed: modified: cmd/dlv/cmds/commands.go modified: go.mod modified: pkg/terminal/command.go modified: service/config.go modified: service/debugger/debugger.go modified: service/test/integration2_test.go * Fix typo in the comment Changes to be committed: modified: service/debugger/debugger.go * Fix typo in the name of the variables The variables are local therefore the capitalization is not needed Changes to be committed: modified: cmd/dlv/cmds/commands.go * Call GoTestBuild Also, remove the := to avoid redeclaration * Change the Kind in the tests Change from debugger.ExecutingGeneratedTest to debugger.ExecutingGeneratedFile for consistency. We are generating a real binary instead of a test one so ExecutingGeneratedFile makes more sense here. Changes to be committed: modified: service/test/integration2_test.go * Avoid breakpoints based on addresses Changes to be committed: modified: service/debugger/debugger.go * Update the rebuild behaviour There are a few cases where we can't rebuild the binary because we don't know how it was build. Changes to be committed: modified: service/debugger/debugger.go * Fix typos and update documentation Changes to be committed: modified: Documentation/cli/README.md modified: pkg/terminal/command.go modified: service/config.go modified: service/debugger/debugger.go * Fix typo * Remove variables They were added to the debugger.Config * Rename variable Rename Kind to ExecuteKind to make it more accurate Changes to be committed: modified: cmd/dlv/cmds/commands.go modified: service/debugger/debugger.go modified: service/test/integration2_test.go

view details

Alessandro Arzilli

commit sha a72723433b4d0b3a34d0ec85a2a78d7ccf7ac843

proc: better support for C pointers (#1997) - treat C pointers as arrays - print 'char *' variables as strings

view details

Alessandro Arzilli

commit sha 708eadd5538edd222d8553b08b47c295474f38fa

proc: do not wipe sources list when a plugin is detected (#2075) The list of source files must include all files from all images, not just the files from the last discovered image. Fixes #2074

view details

Alessandro Arzilli

commit sha 67f6a21ab811f8bf4ba50033971752415755f4ed

proc: refresh cur thread/sel g after ContineOnce errors (#2081) On platforms other than macOS this doesn't matter but on macOS a segmentation fault will cause ContinueOnce to return an error, before returning it we should still fix the current thread and selected goroutine values. Fixes #2078

view details

Alessandro Arzilli

commit sha ab5713d3ec5d12754f4b2edf85e4b36a08b67c48

Documentation: clarify API version status (#2068) Clarify that the currently supported version of the API is 2 and that the preferred method for selecting it is sending a SetApiVersion command after connection. Fixes #2066

view details

Billie Cleek

commit sha 4af62f57b5c9ee31ccddb1a091cb0201d89803f8

make it clear that vim-go support include Neovim (#2084)

view details

Tai Le

commit sha 99369f99f86574eb73f8c1d872e216729c195efc

Fix incorrect terminal output (#2091)

view details

Waleed Gadelkareem

commit sha b14182324d81715242beb5a311226d24b8a1a632

Update cosiner/argv to v0.1.0 (#2088)

view details

polinasok

commit sha 7e13791b4abc8f950a8347def75b166e55978578

service/dap: Support stackTrace request (#2093) * service/dap: Support stackTrace request * Minor tweaks * Address review comments * Fix grammar * Address review comments * Address review comments * Update comments Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>

view details

chainhelen

commit sha 1e4ca34ad6b5b9fce5512e1c57c19a719f09f66b

pkg/proc: Keep unreadable error of var Update #2049

view details

push time in a month

push eventchainhelen/delve

Alessandro Arzilli

commit sha 67f6a21ab811f8bf4ba50033971752415755f4ed

proc: refresh cur thread/sel g after ContineOnce errors (#2081) On platforms other than macOS this doesn't matter but on macOS a segmentation fault will cause ContinueOnce to return an error, before returning it we should still fix the current thread and selected goroutine values. Fixes #2078

view details

Alessandro Arzilli

commit sha ab5713d3ec5d12754f4b2edf85e4b36a08b67c48

Documentation: clarify API version status (#2068) Clarify that the currently supported version of the API is 2 and that the preferred method for selecting it is sending a SetApiVersion command after connection. Fixes #2066

view details

Billie Cleek

commit sha 4af62f57b5c9ee31ccddb1a091cb0201d89803f8

make it clear that vim-go support include Neovim (#2084)

view details

Tai Le

commit sha 99369f99f86574eb73f8c1d872e216729c195efc

Fix incorrect terminal output (#2091)

view details

Waleed Gadelkareem

commit sha b14182324d81715242beb5a311226d24b8a1a632

Update cosiner/argv to v0.1.0 (#2088)

view details

polinasok

commit sha 7e13791b4abc8f950a8347def75b166e55978578

service/dap: Support stackTrace request (#2093) * service/dap: Support stackTrace request * Minor tweaks * Address review comments * Fix grammar * Address review comments * Address review comments * Update comments Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>

view details

push time in a month

issue commentgo-delve/delve

Support debugging i386 executables on amd64 host

Delve need to be compiled on i386 platform or cross compile for i386 (please note dlv use cgo when cross compile) .

dennwc

comment created time in a month

issue commentgo-delve/delve

Runtime error: slice bounds out of range

It do rely on runtime.GOOS, runtime.GOARCH instead of executable at present.

dennwc

comment created time in a month

startedAobingJava/JavaFamily

started time in a month

push eventchainhelen/RKMF-OS

chainhelen

commit sha bb6ea74a45e8d26bf007b669c4c8eb72813adcf3

Feature: not compile

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 4e11c2ac07ad953a5b5fc2853fe6c62ee216360f

add reamde: memwindows

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : memwindows

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 11daee8f0178e9e4241d0b5482f14bf2e2f5e1f5

Feature: memwindows

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 3ef270d29587e30957cc06ad3b1967deacb7ed5a

Feature: add 1024 * 768

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 36834e379a7ef8c3a2d908efc8ec0bb3b1fc115f

Feature: add mouse readme

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : mouseiointerrupt

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha b4e687f60478b86a3fdc27387a72a5dd4849514b

1024x768

view details

chainhelen

commit sha 0f7148638a066c46adee4cb181fbf9b4979ac6d6

modify mem distribution

view details

chainhelen

commit sha 85aa2408e6fb8fb1e74cb53d5c256b3d6f07ae9b

mouse interrupt

view details

push time in 2 months

issue commentgo-delve/delve

debugging cgo produces "multiple definition of" error

@prolink007 Can you try go build -gcflags="all=-N -l" -o main main.go with

//#cgo LDFLAGS: -Wl,--allow-multiple-definition
import "C"

as described at https://github.com/golang/go/issues/16513 ?

prolink007

comment created time in 2 months

create barnchchainhelen/RKMF-OS

branch : font

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 2a4cc44cf51487da9136f95c2a5d5aab827b884a

Feature: change background color

view details

chainhelen

commit sha d5bbf6b6f2fc805a89f0f2d44c42f0a82bbc48a0

Feature: add readme.md

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 5ed4cdd8fd4a89c30efde56f0383bd987b9352f2

Feature: optimize idt

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : keyboardiointerrupt

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 0be104f5f15fe4d2d4cb7e71cf01e2e00b182dee

Init keyboardiointerrupt

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha e7f17661c39c8978175d75762e37a90b63e57646

init idt

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : simplewindows

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 4caf37f29d83bbd7840e5e699509b02800958bb2

Add simplewindows

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 63e6e0d4d93877e3e6786574648f57da11088fbc

Add linearleaf

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : linearleaf

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 554105d12490766384bb90a5719bcbf0432715f9

Fix: linearleaf

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 885711cbbf61ec847158696c41b535ee10993132

Feat: move boot.asm => ./boot loader.asm => ./loader

view details

chainhelen

commit sha 44112a7b80858ff68fd1dc04d4634709cec6bcfc

Add: add setcolor

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 6e74d2bccf28ccdde3c3959cb29006a2de8dde24

Fix hello.png

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : hello

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 49899f98546ec223f73fb850de37f9f46a918c10

Add 4windows

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : 4windows

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 3d34cae48ed0006f1acb7fc5a35d9d314fe037e0

Update README

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha bba560299792a6439495c3eebf129b72e0b48925

Update README.md

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 52255aa8bb686437a7e7869deaeb4d75b0c7f295

Update mem

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 9d7c49aab633e4d45845de13835dd0ac106a5543

Add logo

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 84a42fe7af516e72cdabac11676a65a284617dd1

sdf

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 152ecbb6cd6e2404b99f7bbe496ef09d9152419c

Fix: logo

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 650ea3f47ecdd480d7c4de95150be8e8abaa3271

Add logo

view details

push time in 2 months

issue commentgo-delve/delve

Stepout skips one-line methods and functions

And the call frames will be ok if I expand func (t T) m() { stop() }. It means

package main

var i int

type T struct{}

func (t T) m() {
	stop()
}

func stop() {
	println() //break
	i++
}

func main() { T{}.m() }

Then I get

(dlv) bt
0  0x000000000045fc8b in main.stop
   at ./main.go:12
1  0x000000000045fc60 in main.T.m
   at ./main.go:8
2  0x000000000045fce0 in main.main
   at <autogenerated>:1
3  0x00000000004306b8 in runtime.main
   at /usr/local/go/src/runtime/proc.go:203
4  0x000000000045b271 in runtime.goexit
   at /usr/local/go/src/runtime/asm_amd64.s:1373

nd

comment created time in 2 months

issue commentgo-delve/delve

Stepout skips one-line methods and functions

dlv debug main.go
Type 'help' for list of commands.
(dlv) b main.go:10
Breakpoint 1 set at 0x45fc8b for main.stop() ./main.go:10
(dlv) c
> main.stop() ./main.go:10 (hits goroutine(1):1 total:1) (PC: 0x45fc8b)
     5:	type T struct{}
     6:	
     7:	func (t T) m() { stop() }
     8:	
     9:	func stop() {
=>  10:		println() //break
    11:		i++
    12:	}
    13:	
    14:	func main() { T{}.m() }
(dlv) bt
0  0x000000000045fc8b in main.stop
   at ./main.go:10
1  0x000000000045fc60 in main.T.m
   at <autogenerated>:1
2  0x000000000045fce0 in main.main
   at <autogenerated>:1
3  0x00000000004306b8 in runtime.main
   at /usr/local/go/src/runtime/proc.go:203
4  0x000000000045b271 in runtime.goexit
   at /usr/local/go/src/runtime/asm_amd64.s:1373

nd

comment created time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 9a76f842fa1138614caa28de4cf9ece99f3e8161

Del: remove bak file

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 03dde860f6f2a4de7e7c37fe4b1bc11e480f568f

Complete readme.md

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha b5bb3ada8471a857480e1750b3a4a3f7cbbc801d

Add: add picture to show rkmf

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 68eda8c9c44b45eaadc843e33960c0439e1fc1a7

read_write_disk

view details

chainhelen

commit sha 85ab7f2e2c492bb2d41639ea20c40af5d88e0dea

Fix bug

view details

chainhelen

commit sha b89e8cdb62a769f2246dde530a1a0111d5b8ed1b

Fix: -12

view details

chainhelen

commit sha a356ae98e95edb1c9ce3f3df15561f6d294d8165

Merge branch 'master' into read_write_disk

view details

chainhelen

commit sha 475e8a62159518da42c5f5545f820b64517ff6c8

Add qemu

view details

chainhelen

commit sha cba959abd7338384fa2cd91f2cf02e33a4d48f9a

Fix:

view details

chainhelen

commit sha 73bf0fac1ef57e73dacc66f3ca5a95d5b935eb3c

unpack boot.asm

view details

chainhelen

commit sha fc9149f4f1432b0e1770076b375c0556f8f33b08

Add mem.svg

view details

chainhelen

commit sha 6d35dd70d78b3490dbae1a5f2584d0d2882fd17e

hidden .fuse_hidden

view details

chainhelen

commit sha 397505864a0fef648ce7d4f41b5f23872f84afcc

add c_asm and add image

view details

chainhelen

commit sha 96415d810ddb4b0fb2ee0cab3ac6b6531358cd7f

Enter c-language times

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 96415d810ddb4b0fb2ee0cab3ac6b6531358cd7f

Enter c-language times

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 397505864a0fef648ce7d4f41b5f23872f84afcc

add c_asm and add image

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : xnumadd

created branch time in 2 months

issue commentgo-delve/delve

Delve Cannot Debug with Externally compiled plugins

@linkjay

go build -gcflags="all=-N -l" -buildmode=plugin -o plugins/test-plugin.so plugins/test-plugin.go

// dlv compile
go build -gcflags="all=-N -l" -o main main.go

Please keep the -gcflags="all=-N -l" when plugin and executable.

Same as https://github.com/microsoft/vscode-go/issues/3048

linkjay

comment created time in 2 months

issue commentgo-delve/delve

make install github.com/go-delve/delve error

Can you provide some infomation below?

1. What version of Delve are you using (`dlv version`)?
2. What version of Go are you using? (`go version`)?
3. What operating system and processor architecture are you using? (`uname -a` on linux)
YuHuShangWei

comment created time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha fc9149f4f1432b0e1770076b375c0556f8f33b08

Add mem.svg

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha 73bf0fac1ef57e73dacc66f3ca5a95d5b935eb3c

unpack boot.asm

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha cba959abd7338384fa2cd91f2cf02e33a4d48f9a

Fix:

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : asm

created branch time in 2 months

create barnchchainhelen/RKMF-OS

branch : read_write_disk

created branch time in 2 months

create barnchchainhelen/RKMF-OS

branch : printcs

created branch time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha a06423eeb16a4dbb11e076197d005ce5f4ca7ce6

remove refer.txt

view details

push time in 2 months

push eventchainhelen/RKMF-OS

chainhelen

commit sha fb96da4164837b24d0d327e924e88179d5379826

change readme

view details

push time in 2 months

create barnchchainhelen/RKMF-OS

branch : master

created branch time in 2 months

created repositorychainhelen/RKMF-OS

A simple and beautiful operating system

created time in 2 months

issue commentgo-delve/delve

Weird stepOut behavior on last method in interface (alphabetically) in go1.13

workspace is /home/chainhelen

go version go1.13.12 linux/amd64
go build -gcflags="all=-N -l" -o main main.go

// main.go
package main

type I interface {
	foo()
	bar()
}

type T struct{}

func (t T) foo() {
	println("ok")
}

func (t T) bar() {
	println("ok")
}

func main() {
	t := T{}
	var i I = t
	i.bar() //break
	i.foo()
}

The download url of executable is https://drive.google.com/file/d/1J5p31QkvuWY-F7s9tPry4JZMpwHANt5T/view?usp=sharing

nd

comment created time in 2 months

issue commentgo-delve/delve

Weird stepOut behavior on last method in interface (alphabetically) in go1.13

I check it on linux, same issue when go1.13.12 linux/amd64 && dlv 1.4.1

nd

comment created time in 2 months

issue commentgo-delve/delve

Error reading debug_info: concrete subprogram without address range at 0x3bd499

There are warnings, not fatal mistakes. It means some debug infos can't be found correctly according to dwarf sections of binary executable.

siddjain

comment created time in 2 months

issue commentgo-delve/delve

Can't build v1.4.1 with Go 1.11 anymore due to use of strings.ReplaceAll()

duplicate #2067

We only test and support the three most recent versions of Go. Use a more recent version of Go or a less recent version of Delve.

antiphp

comment created time in 2 months

push eventchainhelen/delve

Derek Parker

commit sha f96663a243ac3d844a3e43731d7eaf5b1bf3dfab

cmd/dlv: Fix trace output (#2038) * cmd/dlv,debugger: Improve dlv trace and trace command output This patch improves the `dlv trace` subcommand output by reducing the noise that is generated and providing clearer more concise information. Also adds new tests closing a gap in our testing (we previously never really tested this subcommand). This patch also fixes the `dlv trace` REPL command to behave like the subcommand in certain situations. If the tracepoint is for a function, we now show function arguements and return values properly. Also makes the overall output of the trace subcommand clearer. Fixes #2027

view details

Alessandro Arzilli

commit sha 200994bc8f6108cc441fdf110ddb44e0184c1fe0

proc/*: only load floating point registers when needed (#1981) Changes implementations of proc.Registers interface and the op.DwarfRegisters struct so that floating point registers can be loaded only when they are needed. Removes the floatingPoint parameter from proc.Thread.Registers. This accomplishes three things: 1. it simplifies the proc.Thread.Registers interface 2. it makes it impossible to accidentally create a broken set of saved registers or of op.DwarfRegisters by accidentally calling Registers(false) 3. it improves general performance of Delve by avoiding to load floating point registers as much as possible Floating point registers are loaded under two circumstances: 1. When the Slice method is called with floatingPoint == true 2. When the Copy method is called Benchmark before: BenchmarkConditionalBreakpoints-4 1 4327350142 ns/op Benchmark after: BenchmarkConditionalBreakpoints-4 1 3852642917 ns/op Updates #1549

view details

chainhelen

commit sha e28e3d30d26ab7ade78871dd7cd4a48850bc15f7

[WIP] pkg/proc: avoid target process leaks. (#2018) * pkg/proc: avoid target process leaks. Target process should exit when dlv launch failed. Fix #2017.

view details

Alessandro Arzilli

commit sha 9881edaa992e81c8a26226919247535791970ca2

vendor: remove github.com/pkg/profile dependency (#2053) It is only used in benchmarks and 'go test' now has command line options to enable profiling as appropriate (but maybe it didn't in 2014).

view details

chainhelen

commit sha 237c5026f40e38d2dd6f62a7362de7b25b00c1c7

doc/readme: Remove the Build Status of appveyor (#2055) update #1919

view details

Derek Parker

commit sha 4a9b3419d13abcc850acf80770f5103191d06a1f

*: v1.4.1 (#2059)

view details

polinasok

commit sha 4be75bec5910d17c119acfd79d9017078e8ae3e3

service/dap: Add buildFlags error checking and tests in launch requests (#2056) * service/dap: Add error checking and tests for buildFlags in launch requests * Clarify with comments and better naming * Undo redundant support.go changes * Undo redundant support.go changes (attempt #2) Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>

view details

chainhelen

commit sha 04a0891913bb714245def33fa9a4637e157ee707

cmd/dlv: do not ignore regex when tracing pid (#2069) The trace command line subcommand ignored the regexp argument when the traced process was specified using the '-p' option. Fixes #2023

view details

Alessandro Arzilli

commit sha fecf14bd195878767757a963e5a9a7724aa629e1

terminal: fix nil pointer dereference when printing tracepoints (#2071) This issue causes a failure of TestTracePid that was observed in CI: https://travis-ci.com/github/go-delve/delve/jobs/343053383 I'm not sure what causes it in this particular instance but there are several ways in which a thread stopped at a breakpoint might have a BreakpointInfo == nil field (see variable withBreakpointInfo in debugger.Debugger.Command).

view details

Alessandro Arzilli

commit sha 2d6bc19ad7bb214c5803e5f457a3f34926610f7d

service/api: do not try to convert unreadable goroutines (#2070) When reading truncated core files GoroutinesInfo will sometimes produce some proc.G structs with only the Unreadable field set. These proc.G can not be used for anything, but the service layer will still try to convert them. Since they are not fully initialized parts of the conversion will fail, api.ConvertGoroutine should not try to call methods of unreadable goroutines. Fixes a bug reported on the mailing list. https://groups.google.com/forum/#!msg/delve-dev/gauDqYaD81c/K5YDNBOhAAAJ

view details

Alessandro Arzilli

commit sha 80b5b95182bd9101f6f847e2102261ecaec2f23c

proc/*: move Set/Clear Breakpoint methods to Target (#2064)

view details

Alessandro Arzilli

commit sha 292f5c69f0c769fd32c2e8b1e7153b56e908efd7

proc: step into unexported runtime funcs when already inside runtime (#2061) Normally we don't step into unexported runtime functions because the compiler is free to insert them into the code and they are not relevant to the user, however if we are already stepping through a runtime function we should let step into work normally and step into other runtime functions.

view details

Álex Sáez

commit sha 95e7cafd0c77790d728a6dc6ffc65c2cb29a13c0

terminal/command: Add 'reload' command (#1971) * terminal/command: Add 'reload' command These changes add the 'reload' command, which allows us to rebuild the project and start the debugging session again. Currently, if the project's code is updated while debugging it, Delve shows the new source code, but it's still running the old one. With 'reload', the whole binary is rebuilt, and the process starts again. Fixes #1551 * Remove unnecessary print Changes to be committed: modified: pkg/terminal/command.go * Add tests and refactor the code Changes to be committed: modified: cmd/dlv/cmds/commands.go modified: go.mod modified: pkg/terminal/command.go modified: service/config.go modified: service/debugger/debugger.go modified: service/test/integration2_test.go * Fix typo in the comment Changes to be committed: modified: service/debugger/debugger.go * Fix typo in the name of the variables The variables are local therefore the capitalization is not needed Changes to be committed: modified: cmd/dlv/cmds/commands.go * Call GoTestBuild Also, remove the := to avoid redeclaration * Change the Kind in the tests Change from debugger.ExecutingGeneratedTest to debugger.ExecutingGeneratedFile for consistency. We are generating a real binary instead of a test one so ExecutingGeneratedFile makes more sense here. Changes to be committed: modified: service/test/integration2_test.go * Avoid breakpoints based on addresses Changes to be committed: modified: service/debugger/debugger.go * Update the rebuild behaviour There are a few cases where we can't rebuild the binary because we don't know how it was build. Changes to be committed: modified: service/debugger/debugger.go * Fix typos and update documentation Changes to be committed: modified: Documentation/cli/README.md modified: pkg/terminal/command.go modified: service/config.go modified: service/debugger/debugger.go * Fix typo * Remove variables They were added to the debugger.Config * Rename variable Rename Kind to ExecuteKind to make it more accurate Changes to be committed: modified: cmd/dlv/cmds/commands.go modified: service/debugger/debugger.go modified: service/test/integration2_test.go

view details

Alessandro Arzilli

commit sha a72723433b4d0b3a34d0ec85a2a78d7ccf7ac843

proc: better support for C pointers (#1997) - treat C pointers as arrays - print 'char *' variables as strings

view details

Alessandro Arzilli

commit sha 708eadd5538edd222d8553b08b47c295474f38fa

proc: do not wipe sources list when a plugin is detected (#2075) The list of source files must include all files from all images, not just the files from the last discovered image. Fixes #2074

view details

push time in 2 months

push eventchainhelen/delve

chainhelen

commit sha c016f022534e04fc41298a2cb4d4aa24ee715516

cmd/dlv: fix bug when tracing pid The trace command line subcommand ignored the regexp argument when the traced process was specified using the '-p' option. Fixes #2023

view details

push time in 2 months

push eventchainhelen/delve

chainhelen

commit sha e941ba81dc93a8738c6b51b0c191fc9bc32b6022

cmd/dlv: fix bug when tracing pid The trace command line subcommand ignored the regexp argument when the traced process was specified using the '-p' option. Fixes #2023

view details

push time in 2 months

push eventchainhelen/delve

chainhelen

commit sha aec223a0edf72a227ae3b950f462fe4b92b2f465

cmd/dlv: fix bug when tracing pid The trace command line subcommand ignored the regexp argument when the traced process was specified using the '-p' option. Fixes #2023

view details

push time in 2 months

PR opened go-delve/delve

cmd/dlv: fix bug when tracing pid

regexp are always resolved to "" when tracing pid. And client set breakpoint on all functions.

fix #2023

+71 -12

0 comment

3 changed files

pr created time in 2 months

create barnchchainhelen/delve

branch : trace_pid

created branch time in 2 months

issue commentgo-delve/delve

Error when trying install delve in traditional way

@aarzilli

According to installation doc, Please note you must have Go 1.10 or higher installed in order to compile Delve.
In code, it is MinSupportedVersionOfGoMinor = 12.

Doc need to be changed or I am wrong?

kt1755

comment created time in 2 months

issue commentgo-delve/delve

Confusing --api-version default of 1 and related documentation

According to the comment apiVersion is the requested API version while running headless, it should be efftive on headless mode. I have try those, both ways look like the same result.

polinasok

comment created time in 2 months

issue commentgo-delve/delve

Question: How to prevent the binary file __debug_bin from getting deleted when dlv exits?

dlv just use go build -o ./__debug_bin -gcflags "all=-N -l" main.go to generate binary file.

siddjain

comment created time in 3 months

issue commentgo-delve/delve

how to debug program that has stdin parameters input?

dlv debug -- --DEBUGER=true --CONFIGPATH=/Users/wwts17/Projects/manager-adapter-serv/etc/config.dev.json go run main.go

If you want read parameters from cli, should use flag of golang.

  1. Or from os env, it should be
export DEBUGER=true && export CONFIGPATH=/Users/wwts17/Projects/manager-adapter-serv/etc/config.dev.json && dlv debug
wwts17

comment created time in 3 months

issue commentgo-delve/delve

[bug-report]Failed to set variable

Not terminal. Change the launch.json accroding to Remote Debugging.

{
	"name": "Launch remote",
	"type": "go",
	"request": "launch",
	"mode": "remote",
	"remotePath": "absolute-path-to-the-file-being-debugged-on-the-remote-machine",
	"port": 2345,
	"host": "127.0.0.1",
	"program": "absolute-path-to-the-file-on-the-local-machine",
	"env": {}
}
fwhezfwhez

comment created time in 3 months

issue commentgo-delve/delve

[bug-report]Failed to set variable

No, do not copy this cmd directly. If you want to debug TestFunc, need to use

dlv test --headless --listen=:2345 --log --log-output=rpc  xxx_test.go -- test.run TestFunc
fwhezfwhez

comment created time in 3 months

Pull request review commentgo-delve/delve

*: v1.4.1

 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.4.1] 2020-05-22++### Added

Can we add Support linux/386 (#1884)? As I understand, this is the first time we support 32-bit os.

derekparker

comment created time in 3 months

issue commentgo-delve/delve

[bug-report]Failed to set variable

Can you use Remote Debugging on vscode ? $ dlv debug --headless --listen=:2345 --log --log-output=rpc -- -myArg=123 (Notice --log-output) Then please provide the log.

fwhezfwhez

comment created time in 3 months

pull request commentgo-delve/delve

pkg/proc: Fix crash when LocationExpr is nil

Agree, wait for more information about a small reproducer.

chainhelen

comment created time in 3 months

startedcodenotary/immudb

started time in 3 months

PR opened go-delve/delve

doc/readme: Remove the Build Status of appveyor

update #1919

+0 -1

0 comment

1 changed file

pr created time in 3 months

create barnchchainhelen/delve

branch : removeappveyor

created branch time in 3 months

push eventchainhelen/delve

colinnewell

commit sha 99a0468b9bec9adeff8078701fa1e78dee019cf2

cmd,Documentation: Add some simple examples for the list command to the help (#2034)

view details

chainhelen

commit sha 5b7d764b153e6fb0a7f52eee369c6c77041e3a16

gdbserial/gdbserver: optimize the search of debugserver binary (#2005) Unexport `GetDebugServerAbsolutePath` and avoid unnecessary repeated calls. Remove `os.Stat` because `Exec.LookPath` has already used `os.Stat`.And Fix some comments.

view details

Alessandro Arzilli

commit sha 0f83fa66f5ebc17be9349ac51951f78454a1269b

cmd/dlv: make core command limitations more prominent (#2031) Fixes #2026

view details

Alessandro Arzilli

commit sha f559c3c421dcb0777896114673f2f270a2895290

gobuild: pass-through stdout to 'go' command invocation (#2044) When trying to compile tests in a package that does not contain tests 'go' emits an error message on stdout instead of stderr. Let the 'go' command write to stdout too. Fixes #2042

view details

Anders Kaare

commit sha 71a460fc0fe578cc81dab152e3dd2515a9304da1

config: add option for printfile() line count (#2043) The option is "source-list-line-count". It defaults to 5, which was previously hardcoded in printfile(), but now you can change it dynamically, for instance: $ config source-list-line-count 20 $ list

view details

polinasok

commit sha f92afb9c17c49b0b585af4d95d84bcfc1fceef14

service/dap: Adds launch request support for program args (#2040) * Adds launch request support for program args * Combine types of function parameters Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>

view details

Alessandro Arzilli

commit sha a33be4466fda916604c638b1ceffd6bd10521f86

vendor: update logrus dependency (#2048) Fixes #2037

view details

push time in 3 months

push eventchainhelen/delve

Derek Parker

commit sha f96663a243ac3d844a3e43731d7eaf5b1bf3dfab

cmd/dlv: Fix trace output (#2038) * cmd/dlv,debugger: Improve dlv trace and trace command output This patch improves the `dlv trace` subcommand output by reducing the noise that is generated and providing clearer more concise information. Also adds new tests closing a gap in our testing (we previously never really tested this subcommand). This patch also fixes the `dlv trace` REPL command to behave like the subcommand in certain situations. If the tracepoint is for a function, we now show function arguements and return values properly. Also makes the overall output of the trace subcommand clearer. Fixes #2027

view details

Alessandro Arzilli

commit sha 200994bc8f6108cc441fdf110ddb44e0184c1fe0

proc/*: only load floating point registers when needed (#1981) Changes implementations of proc.Registers interface and the op.DwarfRegisters struct so that floating point registers can be loaded only when they are needed. Removes the floatingPoint parameter from proc.Thread.Registers. This accomplishes three things: 1. it simplifies the proc.Thread.Registers interface 2. it makes it impossible to accidentally create a broken set of saved registers or of op.DwarfRegisters by accidentally calling Registers(false) 3. it improves general performance of Delve by avoiding to load floating point registers as much as possible Floating point registers are loaded under two circumstances: 1. When the Slice method is called with floatingPoint == true 2. When the Copy method is called Benchmark before: BenchmarkConditionalBreakpoints-4 1 4327350142 ns/op Benchmark after: BenchmarkConditionalBreakpoints-4 1 3852642917 ns/op Updates #1549

view details

chainhelen

commit sha e28e3d30d26ab7ade78871dd7cd4a48850bc15f7

[WIP] pkg/proc: avoid target process leaks. (#2018) * pkg/proc: avoid target process leaks. Target process should exit when dlv launch failed. Fix #2017.

view details

Alessandro Arzilli

commit sha 9881edaa992e81c8a26226919247535791970ca2

vendor: remove github.com/pkg/profile dependency (#2053) It is only used in benchmarks and 'go test' now has command line options to enable profiling as appropriate (but maybe it didn't in 2014).

view details

chainhelen

commit sha 0c36bca267170461fdff1e4d6b9f84f141d6f313

pkg/proc: Fix crash when LocationExpr is nil Add nil check for v.LocationExpr Fix #2049

view details

push time in 3 months

more