<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 07/02/2013 07:14, Michael Ring
wrote:<br>
</div>
<blockquote cite="mid:5113544C.1060707@michael-ring.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
One more thing, do you know why ExecuteCommand is defined as
protected and not public in GDBMIDebugger? I need to send some
extra commands to GDB to make the remote connection, using
ExecuteCommand is an elegant way to do this. But the method is
invisible in my class because it is protected. Can the
ExecuteCommand methods be made public or is this a no-go?<br>
</blockquote>
They (the ones in GDBMIDebugger, not the ones in
TGDBMIDebuggerCommand) should be deprecated and removed.<br>
<br>
All commands must go via TGDBMIDebuggerCommand. This is because GDB
may need to be set into the correct state (select thread/stack). <br>
The ones in TGDBMIDebugger are left overs from long ago. They do
work, because they do actually encapsulate the command in a
TGDBMIDebuggerCommand<br>
<br>
I have plans to change this and introduce a new "inner" queue, that
will automatically da the necessary thread/stack selection.<br>
<br>
Then also the TGDBMIDebuggerCommand should be changed, so they do
not expect a result from a gdb command, but assign an event, and get
called back. So ProcessMessages will no longer be needed.<br>
But that is still some time to go.<br>
<br>
---<br>
As for you, You should be able to inherit from
TGDBMIDebuggerCommand?<br>
<br>
Also I do not understand why you do not see a protected class. You
do inherit from TGDBMIDebugger? And if you have helper objects, then
you can create a public wrapper in your main class.<br>
<br>
<br>
<blockquote cite="mid:5113544C.1060707@michael-ring.org" type="cite">
<br>
Which GDB version is your prefered version for debugging
FreePascal? <br>
</blockquote>
I run the testcase for gdb 6.3 to 7.5. So the IDE can communicate
with all of those. <br>
<br>
On Mac, apple provides a modified 6.3.5<br>
<br>
On Windows (at least 32 bit) I recommend 7.2. 7.3 up has some
regressions
<a class="moz-txt-link-freetext" href="http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Bugs_in_GDB">http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Bugs_in_GDB</a><br>
Win64 I am not sure<br>
<br>
On Linux any 7.x should be fine <br>
<br>
</body>
</html>