Re: How to port this GCC assembly to gdc?

2019-10-24 Thread drug via D.gnu
24.10.2019 22:51, Iain Buclaw пишет: On Thu, 24 Oct 2019 at 19:20, drug via D.gnu wrote: On 10/24/19 8:01 PM, Iain Buclaw wrote: You can do the following: void somefunc() { asm { "990: nop" ~ ".pushsection .note.stapsdt,\"?\",\"

Re: How to port this GCC assembly to gdc?

2019-10-24 Thread drug via D.gnu
On 10/24/19 8:01 PM, Iain Buclaw wrote: You can do the following: void somefunc() { asm { "990: nop" ~ ".pushsection .note.stapsdt,\"?\",\"note\"" ~ ".balign 4" ~ ".4byte 992f-991f, 994f-993f, 3" ~ "991: .asciz \"stapsdt\"" ~ "992: .balign

Re: How to port this GCC assembly to gdc?

2019-10-24 Thread drug via D.gnu
On 10/24/19 5:41 PM, Iain Buclaw wrote: It looks like this is a top-level inline asslembler declaration? D doesn't support top-level inline assembler, however I think this would be a useful feature to allow. As for the syntax, it's `asm { ... }` This is in fact DTrace probe generated by usi

How to port this GCC assembly to gdc?

2019-10-24 Thread drug via D.gnu
Hello! I have the following assebly: ```C __asm__ __volatile__ ( "990: nop\n" \ ".pushsection .note.stapsdt,\"?\",\"note\"\n"\ ".balign 4\n"\ ".4byte 992

Re: Does gdb support D enums?

2015-10-21 Thread drug via D.gnu
21.10.2015 21:04, Iain Buclaw via D.gnu пишет: I meant enum : MyStruct { ... } I guess DMD does not support emitting enums to debug then. I see. Thanks!

Re: Does gdb support D enums?

2015-10-21 Thread drug via D.gnu
21.10.2015 18:22, Johannes Pfau пишет: Am Wed, 21 Oct 2015 11:45:58 +0300 schrieb drug : Using gdb `print` instead of enum value I see `incomplete type`. Did I miss something? (I use gdb 7.10 from ttp://ftp.gnu.org/gnu/gdb/) Thanks Which gdc branch/version? And please provide a testcase as I

Re: Does gdb support D enums?

2015-10-21 Thread drug via D.gnu
21.10.2015 19:31, Iain Buclaw via D.gnu пишет: On 21 October 2015 at 10:45, drug via D.gnu mailto:d.gnu@puremagic.com>> wrote: Using gdb `print` instead of enum value I see `incomplete type`. Did I miss something? (I use gdb 7.10 from ttp://ftp.gnu.org/gnu/gdb/ <http://ft

Does gdb support D enums?

2015-10-21 Thread drug via D.gnu
Using gdb `print` instead of enum value I see `incomplete type`. Did I miss something? (I use gdb 7.10 from ttp://ftp.gnu.org/gnu/gdb/) Thanks

Re: does gdc recognize @nogc?

2015-04-27 Thread drug via D.gnu
On 27.04.2015 17:57, Iain Buclaw via D.gnu wrote: I'm not sure, but I checked it double. I downloaded here https://packages.debian.org/jessie/gdc-4.9 https://packages.debian.org/sid/gdc-4.9 https://packages.debian.org/experimental/gdc-4.9 the same result That's the debian package, which would b

Re: does gdc recognize @nogc?

2015-04-27 Thread drug via D.gnu
On 27.04.2015 16:43, Iain Buclaw via D.gnu wrote: On 27 April 2015 at 15:15, drug via D.gnu wrote: I download gdc from official gdc downloading page but it give me error compiling this code: ``` class Foo { this(long timestamp) nothrow @nogc { ... } } ``` the error

does gdc recognize @nogc?

2015-04-27 Thread drug via D.gnu
I download gdc from official gdc downloading page but it give me error compiling this code: ``` class Foo { this(long timestamp) nothrow @nogc { ... } } ``` the error message is ``` error: user defined attributes cannot appear as postfixes ``` Looks like gdc doesn't know what