diff options
| author | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-11-08 15:43:56 +0000 |
|---|---|---|
| committer | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-11-08 15:43:56 +0000 |
| commit | 34a5a0e5a28a0c35706ea570ac0e32e281ffc123 (patch) | |
| tree | b18f09b398244f31888edfe3ed1a96c71c4a87e6 /packages/gdbint | |
| parent | c4c4e3ebce361be43cdfbc97d635a3f1d7db4dc0 (diff) | |
| download | fpc-34a5a0e5a28a0c35706ea570ac0e32e281ffc123.tar.gz | |
* Extract implicit libraries from ifdef NotImplemented
to enable use of gdblib.inc file without addition of these
implicit libraries
* Add win64 library list
* Increase jmp_buf size to 16*sizeof(longint), value used in mingw headers
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16315 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/gdbint')
| -rw-r--r-- | packages/gdbint/src/gdbint.pp | 79 |
1 files changed, 68 insertions, 11 deletions
diff --git a/packages/gdbint/src/gdbint.pp b/packages/gdbint/src/gdbint.pp index 6068a15ffa..60d651e4b5 100644 --- a/packages/gdbint/src/gdbint.pp +++ b/packages/gdbint/src/gdbint.pp @@ -194,8 +194,8 @@ interface {$endif i386} {$endif Solaris} -{$ifdef NotImplemented} {$ifdef go32v2} +{$ifdef NotImplemented} {$undef NotImplemented} {$LINKLIB gdb} {$ifdef GDB_HAS_SIM} @@ -218,11 +218,13 @@ interface {$ifndef GDB_DISABLE_INTL} {$LINKLIB intl} {$endif ndef GDB_DISABLE_INTL} +{$endif NotImplemented} {$LINKLIB dbg} {$LINKLIB c} {$endif go32v2} {$ifdef linux} +{$ifdef NotImplemented} {$undef NotImplemented} {$LINKLIB libgdb.a} {$ifdef GDB_HAS_SIM} @@ -243,6 +245,7 @@ interface {$LINKLIB python} {$endif GDB_USES_LIBPYTHON} {$LINKLIB ncurses} +{$endif NotImplemented} {$LINKLIB m} {$LINKLIB dl} {$LINKLIB c} @@ -250,6 +253,7 @@ interface {$endif linux} {$ifdef freebsd} +{$ifdef NotImplemented} {$ifdef FreeBSD5} //5.4+ ? {$linklib kvm} {$endif} @@ -280,11 +284,13 @@ interface {$ifdef GDB_USES_LIBPYTHON} {$LINKLIB python} {$endif GDB_USES_LIBPYTHON} +{$endif NotImplemented} {$LINKLIB c} {$LINKLIB gcc} {$endif freebsd} {$ifdef netbsd} +{$ifdef NotImplemented} {$undef NotImplemented} {$LINKLIB gdb} {$ifdef GDB_HAS_SIM} @@ -309,11 +315,13 @@ interface {$LINKLIB python} {$endif GDB_USES_LIBPYTHON} { does not seem to exist on netbsd LINKLIB dl} +{$endif NotImplemented} {$LINKLIB c} {$LINKLIB gcc} {$endif netbsd} {$ifdef solaris} +{$ifdef NotImplemented} {$undef NotImplemented} {$LINKLIB gdb} {$ifdef GDB_HAS_SIM} @@ -337,6 +345,7 @@ interface {$ifdef GDB_USES_LIBPYTHON} {$LINKLIB python} {$endif GDB_USES_LIBPYTHON} +{$endif NotImplemented} {$LINKLIB dl} {$LINKLIB socket} {$LINKLIB nsl} @@ -344,6 +353,7 @@ interface {$endif solaris} {$ifdef openbsd} +{$ifdef NotImplemented} {$undef NotImplemented} {$LINKLIB gdb} {$ifdef GDB_HAS_SIM} @@ -370,11 +380,13 @@ interface {$LINKLIB python} {$endif GDB_USES_LIBPYTHON} { does not seem to exist on netbsd LINKLIB dl} +{$endif NotImplemented} {$LINKLIB c} {$LINKLIB gcc} {$endif netbsd} {$ifdef win32} +{$ifdef NotImplemented} {$undef NotImplemented} {$LINKLIB libgdb.a} {$ifdef GDB_HAS_SIM} @@ -387,13 +399,6 @@ interface {$LINKLIB libiberty.a} {$ifdef USE_MINGW_GDB} - {$LINKLIB libm.a} - {$LINKLIB libmoldname.a} - {$LINKLIB libgcc.a} - {$LINKLIB libws2_32.a} - {$LINKLIB libmingwex.a} - {$LINKLIB libmingw32.a} - {$LINKLIB libmsvcrt.a} {$LINKLIB libdecnumber.a} {$ifdef GDB_USES_LIBDECNUMBER} {$LINKLIB decnumber} @@ -416,6 +421,17 @@ interface {$ifdef GDB_USES_LIBPYTHON} {$LINKLIB python} {$endif GDB_USES_LIBPYTHON} + {$endif not USE_MINGW_GDB} +{$endif NotImplemented} + {$ifdef USE_MINGW_GDB} + {$LINKLIB libm.a} + {$LINKLIB libmoldname.a} + {$LINKLIB libgcc.a} + {$LINKLIB libws2_32.a} + {$LINKLIB libmingwex.a} + {$LINKLIB libmingw32.a} + {$LINKLIB libmsvcrt.a} + {$else not USE_MINGW_GDB} {$LINKLIB gcc} {$LINKLIB cygwin} { alias of libm.a and libc.a } {$LINKLIB libintl.a} @@ -425,7 +441,45 @@ interface {$LINKLIB user32} {$endif win32} +{$ifdef win64} +{$ifdef NotImplemented} + {$undef NotImplemented} + {$LINKLIB libgdb.a} + {$ifdef GDB_HAS_SIM} + {$LINKLIB libsim.a} + {$endif GDB_HAS_SIM} + {$LINKLIB libbfd.a} + {$LINKLIB libreadline.a} + {$LINKLIB libopcodes.a} + {$LINKLIB libhistory.a} + {$LINKLIB libiberty.a} + {$LINKLIB libintl.a} + + {$LINKLIB libdecnumber.a} + {$ifdef GDB_USES_LIBDECNUMBER} + {$LINKLIB decnumber} + {$endif GDB_USES_LIBDECNUMBER} + {$ifdef GDB_USES_EXPAT_LIB} + {$LINKLIB expat} + {$endif GDB_USES_EXPAT_LIB} + {$ifdef GDB_USES_LIBPYTHON} + {$LINKLIB python} + {$endif GDB_USES_LIBPYTHON} +{$endif NotImplemented} + {$LINKLIB libm.a} + {$LINKLIB libmoldname.a} + {$LINKLIB libws2_32.a} + {$LINKLIB libmingwex.a} + {$LINKLIB libmingw32.a} + {$LINKLIB libmsvcrt.a} + {$LINKLIB libgcc.a} + {$LINKLIB libws2_32.a} + {$LINKLIB kernel32} + {$LINKLIB user32} +{$endif win64} + {$ifdef beos} +{$ifdef NotImplemented} { still need some work... stollen from netbsd} {$undef NotImplemented} {$LINKLIB gdb} @@ -451,13 +505,13 @@ interface {$ifdef GDB_USES_LIBPYTHON} {$LINKLIB python} {$endif GDB_USES_LIBPYTHON} +{$endif NotImplemented} { does not seem to exist on netbsd LINKLIB dl} { $ LINKLIB c} // This is libroot under BeOS, and always linked {$LINKLIB debug} {$LINKLIB gcc} {$endif beos} -{$endif NotImplemented} {$ifdef go32v2} {$define supportexceptions} @@ -767,7 +821,8 @@ type case byte of 0 : { greatest value found in cygwin machine/setjmp.h for i386 } - (unknown_field : array [1..13] of longint;); + { mingw uses int[16] C type for i386 } + (unknown_field : array [1..15] of longint;); 1 : (eax,ebx,ecx,edx : longint; esi,edi,ebp,esp,eip : longint;); @@ -2785,7 +2840,9 @@ end; procedure tgdbinterface.EndSession(code:longint); begin Debuggee_started:=false; - inferior_ptid.pid:=0; + { inferior_ptid.pid:=0; + This leads to an assertion failure + from generic_mount_inferior } DoEndSession(code); if assigned(signal_name) then strdispose(signal_name); |
