Commit Graph

44801 Commits

Author SHA1 Message Date
pierre
6ce8aeed27 + mips/mipsel libraries need PIC
git-svn-id: trunk@29752 -
2015-02-18 13:53:20 +00:00
lacak
2a2078e7f7 fcl-db: odbc: implements RefreshLastInsertID for autoincrementing columns.
Bug #16076

git-svn-id: trunk@29751 -
2015-02-18 11:02:07 +00:00
nickysn
a861bbc5ae - removed last_breakpoint_number from the gdb/mi interface. It didn't work in
older GDB versions and code in fpdebug.pas should no longer use it. Instead,
  it should use BreakpointInsert or WatchpointInsert for adding a breakpoint or
  watchpoint and getting its ID.

git-svn-id: trunk@29750 -
2015-02-18 05:47:49 +00:00
nickysn
c754fa35d2 * fixed the passing of the breakpoint number to the DoSelectSourceLine method,
in the gdb/mi interface, which fixes various features, such as showing a
  popup window with the old and new value of the variable, when stopping on a
  watch, etc.

git-svn-id: trunk@29749 -
2015-02-18 01:02:53 +00:00
nickysn
9f31c26996 * handle properly stopping on a watchpoint in the gdb/mi debugger
git-svn-id: trunk@29748 -
2015-02-17 23:07:23 +00:00
nickysn
186e86b353 * compilation of gdbcon.pp fixed after r29746
git-svn-id: trunk@29747 -
2015-02-17 23:02:02 +00:00
nickysn
df234bd7fe + added method WatchpointInsert to TGDBController, with a gdb/mi implementation
* all breakpoint and watchpoint adding now go through TGDBController and use
  the proper gdb/mi commands when compiled with the gdb/mi debugger

git-svn-id: trunk@29746 -
2015-02-17 22:49:31 +00:00
florian
d6e4af8279 + applied remaining patches of Torsten Grundke: adds gather instructions of avx2
git-svn-id: trunk@29745 -
2015-02-17 21:43:46 +00:00
nickysn
4f8b8da879 + added method BreakpointInsert to gdbcon, which supports the gdb/mi command for
adding breakpoints.
* use the new method for adding the breakpoint to FPC_BREAK_ERROR

git-svn-id: trunk@29744 -
2015-02-17 21:17:02 +00:00
florian
726a78be08 * fix possible range check errors, resolves #27461
git-svn-id: trunk@29743 -
2015-02-17 21:14:47 +00:00
florian
0dfbba86f3 * properly firstpass nodes when inc(...) is converted into ...:=...+x, resolves #27471
git-svn-id: trunk@29742 -
2015-02-17 21:14:45 +00:00
florian
aafec52a52 * allow multiple passes on as nodes
git-svn-id: trunk@29741 -
2015-02-17 21:14:43 +00:00
nickysn
eb6c73c3df * the common code to all "-exec" gdb/mi commands moved to a single method
git-svn-id: trunk@29740 -
2015-02-17 20:12:32 +00:00
pierre
f56990ee29 Revert aligntoptr to RTTIAlign rename
git-svn-id: trunk@29739 -
2015-02-17 07:35:31 +00:00
nickysn
44fb01eae6 + implemented get_current_frame and set_current_frame for gdb/mi
git-svn-id: trunk@29738 -
2015-02-17 02:03:18 +00:00
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