Explorar o código

* Add relocate_gdb_directory to avoid loading of main.o from libgdb.a

git-svn-id: trunk@20649 -
pierre %!s(int64=13) %!d(string=hai) anos
pai
achega
5262fbc77c
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      packages/gdbint/src/gdbint.pp

+ 7 - 0
packages/gdbint/src/gdbint.pp

@@ -2629,6 +2629,13 @@ end;
 {$endif not GDB_NOTIFY_BREAKPOINT_ARG_IS_BREAKPOINT_PTR}
 {$endif def GDB_HAS_OBSERVER_NOTIFY_BREAKPOINT_CREATED}
 
+{ Avoid loading of main.o object by providing a
+  stripped down version of relocate_gdb_directory function }
+function relocate_gdb_directory(path : pchar) : pchar; cdecl; public;
+begin
+  relocate_gdb_directory:=path;
+end;
+
 {*****************************************************************************
                                  tgdbinterface
 *****************************************************************************}