Discussion:
[ddbg] Full source?
TomD
2008-07-15 07:42:06 UTC
Permalink
Hi Jascha,
I was trying to compile ddbg from sources, but it looks like the
win32 directory is somewhat underpopulated. I guess you cannot
add things like "winnt.d" for copyright reasons, but maybe you can describe
how you created them?

Ciao
Tom
Bill Baxter
2008-07-15 09:44:53 UTC
Permalink
Post by TomD
Hi Jascha,
I was trying to compile ddbg from sources, but it looks like the
win32 directory is somewhat underpopulated. I guess you cannot
add things like "winnt.d" for copyright reasons, but maybe you can describe
how you created them?
Ciao
Tom
Maybe the win32 bindings from the
http://www.dsource.org/projects/bindings will do the trick?

--bb
TomD
2008-07-15 11:19:11 UTC
Permalink
Bill Baxter Wrote:

[...]
Post by Bill Baxter
Maybe the win32 bindings from the
http://www.dsource.org/projects/bindings will do the trick?
--bb
Not completely:
dbgthread.d(43): Error: undefined identifier GetThreadPriorityBoost
dbgthread.d(43): Error: function expected before (), not GetThreadPriorityBoost of type int
dbgthread.d(49): Error: undefined identifier GetThreadTimes
dbgthread.d(49): Error: function expected before (), not GetThreadTimes of type int
debugger.d(29): module expression_apd cannot read file 'expression\expression_apd.d'
debugger.d(29): module expression_apd cannot read file 'expression\expression_apd.d'
minidump.d(67): Error: undefined identifier CreateFileMapping
minidump.d(67): Error: function expected before (), not CreateFileMapping of type int
minidump.d(67): Error: cannot implicitly convert expression (CreateFileMapping(this.file,null,2u,0,0,null)) of type int to HANDLE
minidump.d(70): Error: undefined identifier MapViewOfFile
minidump.d(70): Error: function expected before (), not MapViewOfFile of type int
minidump.d(70): Error: cannot implicitly convert expression (MapViewOfFile(this.fileMapping,4u,0,0,0)) of type int to void*
minidump.d(139): Error: undefined identifier UnmapViewOfFile
minidump.d(139): Error: function expected before (), not UnmapViewOfFile of type int
util.d(622): Error: undefined identifier GetLongPathName
util.d(622): Error: function expected before (), not GetLongPathName of type int

There seem to be some static if's not defined

Also, it is not quite clear how to get from
expression/expression.apd to expression/expression_apd.d

Ciao
Tom
Extrawurst
2008-07-15 15:48:56 UTC
Permalink
Did u build with the correct win32 version ? look at win32.windows.d to
see what possible versions u could set.
Post by TomD
[...]
Post by Bill Baxter
Maybe the win32 bindings from the
http://www.dsource.org/projects/bindings will do the trick?
--bb
dbgthread.d(43): Error: undefined identifier GetThreadPriorityBoost
dbgthread.d(43): Error: function expected before (), not GetThreadPriorityBoost of type int
dbgthread.d(49): Error: undefined identifier GetThreadTimes
dbgthread.d(49): Error: function expected before (), not GetThreadTimes of type int
debugger.d(29): module expression_apd cannot read file 'expression\expression_apd.d'
debugger.d(29): module expression_apd cannot read file 'expression\expression_apd.d'
minidump.d(67): Error: undefined identifier CreateFileMapping
minidump.d(67): Error: function expected before (), not CreateFileMapping of type int
minidump.d(67): Error: cannot implicitly convert expression (CreateFileMapping(this.file,null,2u,0,0,null)) of type int to HANDLE
minidump.d(70): Error: undefined identifier MapViewOfFile
minidump.d(70): Error: function expected before (), not MapViewOfFile of type int
minidump.d(70): Error: cannot implicitly convert expression (MapViewOfFile(this.fileMapping,4u,0,0,0)) of type int to void*
minidump.d(139): Error: undefined identifier UnmapViewOfFile
minidump.d(139): Error: function expected before (), not UnmapViewOfFile of type int
util.d(622): Error: undefined identifier GetLongPathName
util.d(622): Error: function expected before (), not GetLongPathName of type int
There seem to be some static if's not defined
Also, it is not quite clear how to get from
expression/expression.apd to expression/expression_apd.d
Ciao
Tom
%u
2009-02-20 21:53:34 UTC
Permalink
Post by TomD
Also, it is not quite clear how to get from
expression/expression.apd to expression/expression_apd.d
There hasn't be new release for a long time, not sure what's the status of this
project.

Looks like expression/expression.apd is input to some kind of home-made parser
generator, but the parser generator is not provided. I would suggested add the
generator binary as part of the source distribution.
Lars Ivar Igesund
2009-02-22 00:31:49 UTC
Permalink
Post by %u
Post by TomD
Also, it is not quite clear how to get from
expression/expression.apd to expression/expression_apd.d
There hasn't be new release for a long time, not sure what's the status of
this project.
Looks like expression/expression.apd is input to some kind of home-made
parser generator, but the parser generator is not provided. I would
suggested add the generator binary as part of the source distribution.
The generator is apaged.
--
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
Denis Koroskin
2009-02-22 01:10:13 UTC
Permalink
Post by Lars Ivar Igesund
Post by %u
Post by TomD
Also, it is not quite clear how to get from
expression/expression.apd to expression/expression_apd.d
There hasn't be new release for a long time, not sure what's the status of
this project.
Looks like expression/expression.apd is input to some kind of home-made
parser generator, but the parser generator is not provided. I would
suggested add the generator binary as part of the source distribution.
The generator is apaged.
Of course it's apaged. But last time I tried it I spend like 3 hours and couldn't figure out how to generate the grammar as well.
%u
2009-02-22 02:08:32 UTC
Permalink
I tried download Latest release APaGeD 0.4.2 beta (2007-12-27) from:
http://apaged.mainia.de/releases.html

fixed build.bat wrong path to:
dmd -Itdfa/src -Isrc -Jsrc -release -O -ofbin\apaged -odobj src/main.d
src/parser.d src/glr.d tdfa/src/regexp.d tdfa/src/tnfa.d tdfa/src/container.d
tdfa/src/charclass.d tdfa/src/tdfa.d

Then in the ddbg\src\expression dir:

ddbg\src\expression>..\..\..\apaged-0.4.2-beta\bin\apaged.exe expression.apd
expression_apd.d
APaGeD v0.4.2 beta - Attributed Parser Generator for D
Copyright (c) 2007 Jascha Wetzel

Error: expression.apd(1:0): found "/", expected "APDProperties", "import", "APDD
eclaration", "APDLexemes" or "[a-zA-Z_][a-zA-Z0-9_]*"

It does not even recognize comments!
Post by Denis Koroskin
Post by Lars Ivar Igesund
Post by %u
Post by TomD
Also, it is not quite clear how to get from
expression/expression.apd to expression/expression_apd.d
There hasn't be new release for a long time, not sure what's the status of
this project.
Looks like expression/expression.apd is input to some kind of home-made
parser generator, but the parser generator is not provided. I would
suggested add the generator binary as part of the source distribution.
The generator is apaged.
Of course it's apaged. But last time I tried it I spend like 3 hours and
couldn't figure out how to generate the grammar as well.

Jascha Wetzel
2008-07-16 21:10:36 UTC
Permalink
you should have an embedded checkout of the win32 bindings when checking
out ddbg. i'm using r244 of that repository
(http://svn.dsource.org/projects/bindings/trunk/win32).
maybe they did some updates that broke ddbg.
Post by TomD
Hi Jascha,
I was trying to compile ddbg from sources, but it looks like the
win32 directory is somewhat underpopulated. I guess you cannot
add things like "winnt.d" for copyright reasons, but maybe you can describe
how you created them?
Ciao
Tom
Loading...