summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-11-03 23:30:51 +0000
committerpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-11-03 23:30:51 +0000
commit6ecc83955e6ed489a533ba4a16bfee6e035e92b9 (patch)
tree7444a450dd5aa5e7dd478b647ecb97232dad1b20
parent6ad20932b9a6ac834b92d9c1f5b9bda45bf47089 (diff)
downloadfpc-6ecc83955e6ed489a533ba4a16bfee6e035e92b9.tar.gz
* suppress VarArgs from QueryHook function
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@14031 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--packages/gdbint/src/gdbint.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gdbint/src/gdbint.pp b/packages/gdbint/src/gdbint.pp
index ee0436047b..16098355d7 100644
--- a/packages/gdbint/src/gdbint.pp
+++ b/packages/gdbint/src/gdbint.pp
@@ -2140,7 +2140,7 @@ begin
end;
-function QueryHook(question : pchar; args : array of const) : longint; cdecl;
+function QueryHook(question : pchar; arg : pchar) : longint; cdecl;
begin
if not assigned(curr_gdb) then
QueryHook:=0
@@ -2149,7 +2149,7 @@ begin
if curr_gdb^.reset_command and (pos('Kill',question)>0) then
QueryHook:=1
else if pos('%s',question)>0 then
- QueryHook:=curr_gdb^.Query(question, args[0].vpchar)
+ QueryHook:=curr_gdb^.Query(question, arg)
else
QueryHook:=curr_gdb^.Query(question, nil);
end;