[go-nuts] Re: Any way to print a 'struct g' within delve/gdb

2019-11-11 Thread Xiangdong JI
Hi Derek, Say I have the pointer value of a specific G struct, how to convert it to 'struct g' (or any other form) in delve so that I can check the details of its fields? For example (simply utilized runtime.m0.curg to get a pointer value here) (dlv) p (**runtime.g)(0x56a140) Just tried a

[go-nuts] Re: Any way to print a 'struct g' within delve/gdb

2019-11-11 Thread xiangdong...@gmail.com
Hi Derek, Say I have the pointer value of a specific G struct, how to convert it to 'struct g' (or any other form) in delve so that I can check the details of its fields? For example (simply utilized runtime.m0.curg to get a pointer value here) (dlv) p (**runtime.g)(0x56a140) Just tried a

Re: [go-nuts] liteide x36.2 released.

2019-11-11 Thread cg-guy
Hi Is there any update on run as a application rather than running the binary ? or by creating shortcut ? On Saturday, 2 November 2019 20:02:48 UTC+5:30, visualfc wrote: > > Hi, all. > LiteIDE X36.2 released! > This version fix gocode crash bug. Add new image viewer plugins. Folder > view

[go-nuts] Why does this program crash on darwin?

2019-11-11 Thread Saj Goonatilleke
Source: --- 8< --- package main import ( "os" "os/signal" ) func main() { sigs := make(chan os.Signal) signal.Notify(sigs, os.Interrupt) if f := os.NewFile(3, ""); f != nil { f.Close() } <-sigs } --- >8 --- Stack: ---

Re: [go-nuts] Re: What is the correct way to access/modify slice elements concurrently

2019-11-11 Thread robert engels
Again, the issue for the mm is https://github.com/golang/go/issues/5045 but if you read the comments it appears the the de-facto standard is that the atomics do provide “happens before”, but it is not specified that this has to be the case. > On Nov

Re: [go-nuts] Re: What is the correct way to access/modify slice elements concurrently

2019-11-11 Thread burak serdar
On Sun, Nov 10, 2019 at 7:08 AM Lars Seipel wrote: > > On Sat, Nov 09, 2019 at 11:00:04AM -0600, Robert Engels wrote: > >No. Because in the absence on a memory barrier the writes may not be flushed > >meaning you cannot reason about any value ever being changed. atomics > >provide the memory

[go-nuts] Re: Any way to print a 'struct g' within delve/gdb

2019-11-11 Thread Derek Parker
Can you reply with a gist showing the exact Delve commands you are attempting to use and what errors are being returned? There is some more information on the expression parser here . You can also open an issue on the