listener.startsession(...) returns hresult = DBGSE_WRONGREQ |
|
Hi Folks,
The failure seems to be in open_dbg_session() and it appears to have something to do with parsing a regular expression, but it is not clear to me what is wrong. I have found other posts that indicated that both dbg and dbg-cli need to use the same dbg_net.[ch] and I have done that, but I haven't found anything discussing this parsing problem. Anybody have any ideas? Thanks, |
||||||||||||
_________________ Chris. Life is a journey ... Not a destination. |
|
Hi Folks,
More specifically, it is an open_http_session ... |
||||||||||||
_________________ Chris. Life is a journey ... Not a destination. |
|
Hi Folks,
Regcomp is returning 0 while trying to compile the regular expression during the first invocation. I have NO idea what is wrong with it and I don't seem to be able to step through it, since I apparently don't have my libc compiled with symbols. More to the point, I don't know how to get around this... |
||||||||||||
_________________ Chris. Life is a journey ... Not a destination. |
Site Admin
|
did you compile with regexp library that comes with dbg-cli or with system supplied ? Please check gcc logs.
|
||||||||||||
|
|
I ran "make clean; make > make.log 2>&1" and I investigated.
I see explicit -I../pcre in the compilation lines and I see -L/usr/local/src/dbg-cli-2.11.0/pcre. So I conclude that I am using the supplied code and not the system default code. Does this answer your question sufficiently? I also believe that the error is in regexec, not regcomp, but I am only confident and not certain. I will need to refresh a lot of old knowledge to get a more precise answer, but I am eager to do that. |
||||||||||||
_________________ Chris. Life is a journey ... Not a destination. |
Site Admin
|
right.
well let's trace what's there. open UrlParse.cpp and replace the following code
with
and add the following lines onto the top of this file
|
||||||||||||||||||
|
|
I assumed that in addition to the changes, I needed to define _TRACE, which I did but this exposes a problem. I get an error on line 51 of dbgbase_globales.cpp:
Any help here? |
||||||||||||||||
_________________ Chris. Life is a journey ... Not a destination. |
|
I added #include <iostream> and changed cerr to std::cerr and I was able to complete make. I ran with the following commands:
and I got the following results:
Does this provide any elightnement? |
||||||||||||||||
_________________ Chris. Life is a journey ... Not a destination. |
Site Admin
|
looks like gcc 3.x "feature"...
with 2.96 this code worked for years. |
||||||||||||
|
|
Can you offer any more? For example, what is happening and how do I prevent it or work around it?
|
||||||||||||
_________________ Chris. Life is a journey ... Not a destination. |
Site Admin
|
one guy posted there that he has successfully compiled with system supplied pcre. Please walk through the forums for the post.
|
||||||||||||
|
listener.startsession(...) returns hresult = DBGSE_WRONGREQ |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by