Browse Source

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

git-svn-id: trunk@20649 -
pierre 13 years ago
parent
commit
5262fbc77c
1 changed files with 7 additions and 0 deletions
  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 not GDB_NOTIFY_BREAKPOINT_ARG_IS_BREAKPOINT_PTR}
 {$endif def GDB_HAS_OBSERVER_NOTIFY_BREAKPOINT_CREATED}
 {$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
                                  tgdbinterface
 *****************************************************************************}
 *****************************************************************************}