Commit Graph

44736 Commits

Author SHA1 Message Date
nickysn
f4e8c9da33 + added the gdb set commands from gdbint.pp to the gdb/mi interface
git-svn-id: trunk@29737 -
2015-02-17 01:43:39 +00:00
nickysn
a47a810475 + implemented gdb/mi backtraces
git-svn-id: trunk@29736 -
2015-02-17 00:59:39 +00:00
nickysn
88fc22a8a3 * fixed crash when stepping into code where no debug information is available
(can happen when using 'step into instruction' inside the assembly window)
* obtain the PC counter after a breakpoint has been hit (so that the assembly
  window shows the current instruction immediately after hitting a breakpoint)

git-svn-id: trunk@29735 -
2015-02-16 23:20:48 +00:00
nickysn
dc54903e01 * use gdb/mi command for setting tty
git-svn-id: trunk@29734 -
2015-02-16 22:11:25 +00:00
sergei
72315c9bee * Finalize units after printing the runtime error message. Rationale:
* Unit finalization executes arbitrarily large amount of code. Doing it when error occurred can cause
    other errors, overwriting the original error information.
  * Code that prints error message depends on everything and a kitchen sink (most notably, Unicode manager
    and lineinfo unit). Running it after finalizing units can be successful only by coincidence.
  * Last but not least, this sequence (ExitProc -> print RTE -> finalize units) is same as one used in Delphi.

git-svn-id: trunk@29733 -
2015-02-16 22:05:54 +00:00
nickysn
9eeef2581b * use a gdb/mi command for adding source directories
git-svn-id: trunk@29732 -
2015-02-16 21:41:06 +00:00
pierre
68c06ff84d Only print out cygwin DLL too old warning if using a cygwin GDB
git-svn-id: trunk@29731 -
2015-02-16 21:15:37 +00:00
pierre
d0cfebc351 + Use using_cygwin_gdb boolean, to convert path
git-svn-id: trunk@29730 -
2015-02-16 20:50:47 +00:00
pierre
6b1c38537b + Add missing windebug unit dependency for windows
+ Use using_cygwin_gdb boolean, to convert path

git-svn-id: trunk@29729 -
2015-02-16 20:50:15 +00:00
pierre
95f0791b97 + Add (not yet implemented) inferior_pid function to allow compilation of windebug unit
+ Add using_cygwin_gdb boolean, set by parsing version output

git-svn-id: trunk@29728 -
2015-02-16 20:48:38 +00:00
pierre
6e2b97a15c Handle #13#10 line ending for Windows
git-svn-id: trunk@29727 -
2015-02-16 20:45:18 +00:00
pierre
b823ac6755 Regenerate after: also allow GDBMI=1 as make parameter to use gdbmi
git-svn-id: trunk@29726 -
2015-02-16 20:44:28 +00:00
pierre
6c605ca6db Also allow GDBMI=1 as make parameter to use gdbmi
git-svn-id: trunk@29725 -
2015-02-16 20:44:09 +00:00
pierre
c912196ca6 Handle GDBMI conditional in windebug unit
git-svn-id: trunk@29724 -
2015-02-16 20:42:31 +00:00
marco
b42f7bea7a * fix for #27479, caddr_t is a pointer type.
Quoted the P*caddr_t types for now, since they seem redundant.

git-svn-id: trunk@29723 -
2015-02-16 20:32:09 +00:00
nickysn
3deac03582 * use a gdb/mi command when clearing the exe in TDebugController.SetExe
git-svn-id: trunk@29722 -
2015-02-16 20:16:08 +00:00
nickysn
f06731ae4f * TDebugController.SetTBreak (adds a temporary breakpoint, used for things like
'run to cursor') moved to gdbcon.pp and implemented via a GDB/MI command in
  the new GDB/MI interface.

git-svn-id: trunk@29721 -
2015-02-16 19:58:40 +00:00
lacak
1e778468cc fcl-db: odbc: when binding TIMESTAMP parameter set explicitly precision.
It is required by SQL Server Native Client 2008 and later (when not set it raises: Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding.)
I have used precision 3 (milliseconds), which is maximum precision returned by DecodeTime used in handling of TDataTime values.

git-svn-id: trunk@29719 -
2015-02-16 08:57:18 +00:00
nickysn
8f9c062e4d * fixed Run->"Until return" in the GDB/MI debugger
git-svn-id: trunk@29717 -
2015-02-16 02:25:53 +00:00
nickysn
a939ea06b6 + initial implementation of GDB/MI (without LibGDB!) support for the text mode
IDE. Tested under Linux (Fedora 21 - x86_64, GDB 7.8.2). It is still disabled
  by default on all platforms. To enable it, build a snapshot with:
  FPMAKEOPT="--ignoreinvalidoption --GDBMI=1"
  Known issue: the GDB window in the IDE causes crashes, so don't open it :)
  (for debugging purposes, set the environment variable FPIDE_GDBLOG=1 when
  running the IDE and it will log everything in gdblog.txt)

git-svn-id: trunk@29716 -
2015-02-16 01:07:37 +00:00
Károly Balogh
3650991d90 m68k: support LOC_REFERENCE/LOC_CREFERENCE for floating point instructions where possible
git-svn-id: trunk@29714 -
2015-02-15 20:15:21 +00:00
sergei
7666cd5c0e + Overloaded procedure dump_stack that calls CaptureBacktrace, thus encapsulating internals of stack traversing.
* Use this new procedure in heaptrc unit.

git-svn-id: trunk@29713 -
2015-02-15 20:00:24 +00:00
Tomas Hajny
590e2f7977 * fix for bug #16884 for OS/2
git-svn-id: trunk@29712 -
2015-02-15 19:39:53 +00:00
pierre
42cc1d504f Avoid warnings by adding noreturn modifiers to dummy dynamic library manager
git-svn-id: trunk@29711 -
2015-02-15 18:03:11 +00:00
pierre
af883cdcb7 Avoid warning for function not set if noreturn modifier is used
git-svn-id: trunk@29710 -
2015-02-15 18:01:22 +00:00
Károly Balogh
fdb09365ba m68k: instead of trying to mess with LOC_FLAGS, use LOC_REGISTER to return a boolean result of the compare. idea by Florian. fixes several issues with optimizer enabled and also results in better code in some cases.
git-svn-id: trunk@29709 -
2015-02-15 17:15:15 +00:00
Tomas Hajny
7049e40668 * character ASCII 127 should not be treated as invalid result of Unicode to ansistring conversion because it is used as replacement character for characters missing in the target codepage by the native OS/2 Unicode support routines
git-svn-id: trunk@29706 -
2015-02-15 14:31:36 +00:00
Károly Balogh
9693b37c1a m68k: actually,overwrite the resflags with F_E, because only that would be valid after the FSxx/TST combination
git-svn-id: trunk@29705 -
2015-02-15 14:04:11 +00:00
Károly Balogh
c062e55aa2 m68k: after a compare on the FPU, move the condition flags back to the CPU. this should make floating point compare actually working
git-svn-id: trunk@29704 -
2015-02-15 13:41:40 +00:00
Tomas Hajny
46bfe5c1dd * set ShortDateFormat explicitly so that StrToDate behaviour can be tested easily regardless of current locale
git-svn-id: trunk@29703 -
2015-02-15 11:28:17 +00:00
Tomas Hajny
c5c2ac13e2 * TODO updated according to the current status of OS/2 RTL
git-svn-id: trunk@29702 -
2015-02-15 11:21:34 +00:00
Tomas Hajny
41312d44b4 * set DecimalSeparator explicitly so that Format output can be tested easily regardless of current locale
git-svn-id: trunk@29701 -
2015-02-15 11:14:55 +00:00
Tomas Hajny
7e15bf6c2d * ensure passing valid stacksize to emxbind
git-svn-id: trunk@29700 -
2015-02-15 01:56:08 +00:00
Tomas Hajny
e1b37dcc46 * the test made compilable also on other platforms than only Unix and Windows
git-svn-id: trunk@29699 -
2015-02-15 01:34:47 +00:00
Tomas Hajny
90aeabb439 * skip this test under OS/2, because it expects that replacement used for characters not supported in the current codepage must match between compile time ('?' used by FPC) and run-time (ASCII 127 used by OS/2 native Unicode routines)
git-svn-id: trunk@29698 -
2015-02-15 01:31:27 +00:00
Tomas Hajny
fbb6776085 * this test results in a SIGSEGV under OS/2, but I consider it a correct behaviour if a nil pointer for passing a nil as a buffer to BlockWrite
git-svn-id: trunk@29697 -
2015-02-15 01:04:32 +00:00
Tomas Hajny
d2ae1f0ab2 * skip emx too
git-svn-id: trunk@29696 -
2015-02-15 01:01:56 +00:00
Tomas Hajny
60c5f29b5b * add path setting for some previously missing platforms (OS/2, MSDOS)
git-svn-id: trunk@29695 -
2015-02-14 20:46:58 +00:00
marcus
141878978e AmiCommon: Missing UnLockDosList, DiskFree Bugfix
git-svn-id: trunk@29694 -
2015-02-14 20:06:47 +00:00
florian
3ed1a75fcd * write ok on exit for easier testing
git-svn-id: trunk@29693 -
2015-02-14 17:39:32 +00:00
sergei
d93d36e6d3 * Win64: Use separate implementation of CaptureBacktrace that calls RtlCaptureStackBackTrace. This way it does not require non-optimized code to work correctly.
git-svn-id: trunk@29692 -
2015-02-14 11:41:33 +00:00
sergei
438c433c50 * CaptureBacktrace: fixed off-by-one error. Caller's context must be captured if skipframes=0.
git-svn-id: trunk@29691 -
2015-02-14 02:50:03 +00:00
Tomas Hajny
2e2ca8684d * add resolution of DLL name under OS/2
git-svn-id: trunk@29689 -
2015-02-13 22:36:49 +00:00
Tomas Hajny
95c0092a54 * skip test if CPU does not support SSE2 (similarly to test/tshuffle1.pp)
git-svn-id: trunk@29688 -
2015-02-13 22:24:17 +00:00
svenbarth
a7085ea34e Added test for Mantis #25044 which has been fixed in revision 29537.
git-svn-id: trunk@29687 -
2015-02-13 17:02:07 +00:00
Jonas Maebe
071282b286 * add methods of objcprotocols to the list of visible "helper" methods when
loading them from ppu (like was already done when they were initially
    compiler), so they can be called via the "id" type even if no classes are
    in scope that implement them

git-svn-id: trunk@29686 -
2015-02-13 15:43:34 +00:00
svenbarth
04534d5dcf Fix for Mantis #27424.
pgenutil.pas:
  * parse_generic_parameters: a ';' terminates a parameter group, so correctly adjust firstidx in that case

+ added test

git-svn-id: trunk@29685 -
2015-02-13 13:50:47 +00:00
marco
8e2f8d7f3c * for wince use getprocessaddresa, mantis #27450
git-svn-id: trunk@29684 -
2015-02-13 10:23:05 +00:00
marco
6e23f3fc97 * patch from mantis #27453 by Dirk Fellenberg, update fontsize to freetype
lib.

git-svn-id: trunk@29683 -
2015-02-13 10:19:13 +00:00
michael
890b9d37e4 * Patch from Laco: change PChar -> PAnsiChar where appropriate
git-svn-id: trunk@29681 -
2015-02-13 09:23:56 +00:00