Commit Graph

38958 Commits

Author SHA1 Message Date
michael
95a0d01d0d ForeachCall needs to be pubic
git-svn-id: trunk@23142 -
2012-12-14 10:55:48 +00:00
lacak
722193d643 fcl-db: sqlite: increase max allowed column length. Fix for existing test TestStringLargerThen8192.
git-svn-id: trunk@23141 -
2012-12-14 09:54:02 +00:00
lacak
7566c9c685 fcl-db: postgresql: correct message for unpreparation.
(note: if preparation of one statement failed and there are other already prepared statements (f.e. selects), then when Rollback used CloseDatasets is called which lead to Unpreparation of all datasets, which fails with : "current transaction is aborted, commands ignored until end of transaction block" ...)

git-svn-id: trunk@23140 -
2012-12-14 09:33:43 +00:00
lacak
7e2627f047 fcl-db: formatting (char case)
git-svn-id: trunk@23139 -
2012-12-14 07:00:39 +00:00
lacak
ecd81ed514 fcl-db: postgresql: do not clear result of PQexec if result set is returned (PGRES_TUPLES_OK) + test
simplify error handling

git-svn-id: trunk@23138 -
2012-12-14 06:22:05 +00:00
lacak
66a6b15efe fcl-db: switch from usage of [stSelect, stExecProcedure] to FSelectable to determine if there is result set.
(see also previous commit)

git-svn-id: trunk@23137 -
2012-12-13 11:26:45 +00:00
lacak
6a9c3a6061 fcl-db: introduce FSelectable as new TSQLCursor class field. Update sql connectors to set it after Preparation or Execution of sql statement to signal if there will be or is result set. This change is neutral. In next commit I will use FSelectable to determine if allow Open or raise SErrNoSelectStatement.
(motivation is that there are many various statements, that are not stSelect nor stExecProcedure, which also return result set)

git-svn-id: trunk@23136 -
2012-12-13 11:16:25 +00:00
michael
11a531ab62 * Fixed bug #23477
git-svn-id: trunk@23135 -
2012-12-12 15:21:28 +00:00
reiniero
50f1ab686a * fcl-db tests: clarified TTestBufDatasetDBBasics.TestIndexEditRecord error messages/description
git-svn-id: trunk@23134 -
2012-12-11 13:39:39 +00:00
nickysn
ca61631524 * fixed the key codes of the Shift-Key combinations in the X11 console
git-svn-id: trunk@23133 -
2012-12-10 21:44:09 +00:00
florian
db68214e88 + support setpeoptflags directive, resolves #23447
git-svn-id: trunk@23132 -
2012-12-10 19:17:25 +00:00
Jonas Maebe
d180d6f241 * fixed size of movzx/movsx with 64bit operand in x86-64 Intel asm reader
git-svn-id: trunk@23131 -
2012-12-09 22:42:52 +00:00
Jonas Maebe
14b1c8a99c * moved fpc_threadvar_relocate_proc from systemh.inc to thread.inc
and gave it the correct type (TRelocateThreadVarHandler)
  * changed parameter type of InitThread also to TRelocateThreadVarHandler

git-svn-id: trunk@23130 -
2012-12-09 22:42:46 +00:00
florian
2ea6979277 * handle Movzl/Op/Mov optimization correctly, resolves #23431
git-svn-id: trunk@23128 -
2012-12-09 21:27:05 +00:00
sergei
00ca4a74a3 * Reworked/fixed TExeSymbol.State behavior:
* Added symstate_undefweak for undefined symbols having only weak references to them, this state is removed when a normal reference to symbol is seen.
  * Use a separate boolean property to determine if ExeSymbol is referenced.
  * Use a separate property TExeOutput.AllowUndefinedSymbols to suppress error messages when linking dynamic shared objects.
  * Don't issue InternalError when an undefined symbol is encountered during unused section removal.

git-svn-id: trunk@23127 -
2012-12-09 08:02:58 +00:00
sergei
a771d68685 * Fixed a bug introduced in r23077: relative_reloc_count must be increased only once per GOT entry, not every time a relocation to that entry is seen.
git-svn-id: trunk@23126 -
2012-12-09 06:39:43 +00:00
reiniero
4ab7c432c0 * fcl-db tests: cosmetic: updated readme
git-svn-id: trunk@23125 -
2012-12-08 14:54:04 +00:00
sergei
a7eab8ff67 * TElfObjInput: Factored section creation code into separate method which can be called by CPU-specific routines.
+ Load SHT_INIT_ARRAY,SHT_FINI_ARRAY,SHT_PREINIT_ARRAY section types.

git-svn-id: trunk@23124 -
2012-12-08 11:26:38 +00:00
reiniero
7c128f6556 * fcl-db sqldb: cosmetic; added info to readme.txt
git-svn-id: trunk@23123 -
2012-12-07 15:26:17 +00:00
reiniero
9cb8438cca * fcl-db tests: cosmetic: test using constants instead of manually assigned values that happen to be the same
git-svn-id: trunk@23122 -
2012-12-07 11:24:13 +00:00
lacak
bc25c4b297 fcl-db: tests: starting from rev.23113 is AutoCommit OFF by default for TODBCConnection. So we does not need set it explicitly (reverts my previous commit in rev.23075)
git-svn-id: trunk@23121 -
2012-12-07 11:12:14 +00:00
lacak
fb3a6f9054 fcl-db: odbc: map 'call' to stExecProcedure.
(revealed by test TestOpenStoredProc for MySQL ODBC)

git-svn-id: trunk@23120 -
2012-12-07 07:58:45 +00:00
sergei
59593f86a7 + Some more ELF definitions (related to symbol versioning).
git-svn-id: trunk@23119 -
2012-12-06 18:24:44 +00:00
sergei
36859068f5 * Propagate AS_NEEDED flag further into Load_DynamicObject and handle it properly: shared objects marked with AS_NEEDED are added to dependencies only if they actually resolve some symbol.
* Dropped TObjInput.newObjData method. Instead, TObjData instances are created directly in ReadObjData, this gives possibility to create a different type of TObjData based on file header.
- Dropped TObjInput destructor, it does nothing except calling inherited.

git-svn-id: trunk@23118 -
2012-12-06 18:19:19 +00:00
Jonas Maebe
29095e9dd3 * fixed if-simplication for C-style booleans by considering all values
different from 0 to be "true", instead of only 1 (patch by Jeppe Johansen,
    mantis #23436)

git-svn-id: trunk@23117 -
2012-12-06 15:18:58 +00:00
sergei
7d19a6d551 * Propagate AS_NEEDED flag down the expression tree an assign it to TStaticLibrary objects.
git-svn-id: trunk@23116 -
2012-12-05 16:05:16 +00:00
sergei
67a41e1e94 * Fixed 2 bugs introduced in r22951:
* Require symbol table presence only in dynamic objects; relocatable objects may not contain one (example is crtn.o).
  * Attempt to write relocations from dynreloclist regardless of relative_reloc_count, the latter is typically 0 in executables.

git-svn-id: trunk@23115 -
2012-12-05 15:49:45 +00:00
lacak
7524b9219c fcl-db: odbc: map MONEY columns to TCurrencyField instead of TFloatField (test TestSupportCurrencyFields)
git-svn-id: trunk@23114 -
2012-12-05 08:17:01 +00:00
michael
b63bd2c749 * Autocommit OFF by default, bug ID #23429
git-svn-id: trunk@23113 -
2012-12-04 19:54:03 +00:00
lacak
a49dc1d262 fcl-db: tests: improve TestSQLInterval + comments
(MySQL ODBC driver does not correctly handles TIME values >= '100:00:00')

git-svn-id: trunk@23112 -
2012-12-04 12:18:59 +00:00
ludob
b36aa216e5 TDataset: fixed daAbort TDataAction behavior (was not aborting). Fixed TDataset.Delete calling OnDeleteError instead of OnPostError.
git-svn-id: trunk@23111 -
2012-12-04 10:00:43 +00:00
florian
8e5bd14e3a * overleft newline fix
git-svn-id: trunk@23110 -
2012-12-03 21:56:01 +00:00
florian
1ea8a397e5 * use membar only for sparcv9(+)
git-svn-id: trunk@23109 -
2012-12-03 21:55:51 +00:00
florian
e6863aeb80 * typo fixed, patch by Mark Morgan Lloyd
git-svn-id: trunk@23108 -
2012-12-03 21:55:09 +00:00
florian
69d96d9bf9 * modified patch by Mark Morgan Lloyd to pass cpu type to the assembler, resolves #23390
git-svn-id: trunk@23107 -
2012-12-03 21:54:37 +00:00
michael
2642345c1b * Make find* methods virtual (bug ID 23422)
git-svn-id: trunk@23106 -
2012-12-03 08:57:50 +00:00
Jonas Maebe
35e6b1a3aa * enabled commented out test
git-svn-id: trunk@23096 -
2012-12-02 16:58:21 +00:00
Jonas Maebe
9804fd527b * don't add a thousands separator in FormatFloat if there are no digits
before it because the value is too small, regardless of what the format
   pattern sepcifies (patch by Bart Broersma, mantis #13076)

git-svn-id: trunk@23095 -
2012-12-02 16:57:41 +00:00
sergei
c4d8396158 * Function RelocName made a member of TElfTarget, so it can be used outside of TElfExeOutput class.
* Methods ReportNonDSOReloc and ReportRelocOverflow moved to TElfExeOutput, they are applicable to all target-specific descendants.

git-svn-id: trunk@23094 -
2012-12-02 13:05:53 +00:00
svenbarth
5adb28a935 m68k/aasmcpu.pas, taicpu.spilling_get_operation_type:
+ NEGX is a readwrite instruction

git-svn-id: trunk@23093 -
2012-12-02 11:48:57 +00:00
michael
053fd43324 * Small observer demo from Graeme Geldenhuys (bug ID 23329)
git-svn-id: trunk@23092 -
2012-12-02 11:24:42 +00:00
michael
5419d06a96 * Speed optimization similar to tpersist and tlist
git-svn-id: trunk@23091 -
2012-12-02 11:19:20 +00:00
sergei
d79761c607 * Changed TElfTarget from class to record, so it can contain data members while remaining statically allocated.
* Moved target-dependent constants into ElfTarget records, eliminates a lot of $ifdef's in ogelf.pas.
+ Added TElfTarget.loadsection hook and pass unknown sections to it.

git-svn-id: trunk@23090 -
2012-12-02 11:15:35 +00:00
michael
66553a253e * Applied and expanded patch from Luiz Americo to implement faster notifyobservers (bug ID 23419)
git-svn-id: trunk@23089 -
2012-12-02 11:14:49 +00:00
michael
e3b48d6eb2 * Simplified observer/observed GUIDs, patch from Luiz Americo (Bug ID 23420)
git-svn-id: trunk@23088 -
2012-12-02 11:09:51 +00:00
sergei
006d795797 * Moved TElfsechdr into interface and cleaned up some ugliness in TElfObjInput code caused by TElfsechdr being not publicly available. Providing target-specific section loading becomes easier now as well.
git-svn-id: trunk@23087 -
2012-12-02 10:02:21 +00:00
sergei
8688f5e7b9 * Moved ELF definitions into a separate unit, which can be reused by CPU back-end units.
git-svn-id: trunk@23086 -
2012-12-02 09:50:15 +00:00
sergei
eb13da9355 * ognlm.pas cleanup:
- removed redundant assigned() checks before .Free
  - removed DataPos_ExeSection method which only calls inherited
  - removed all references to RelocSections variable, it's safe because TExeOutput doesn't handle it since r21971.

git-svn-id: trunk@23085 -
2012-12-01 15:25:34 +00:00
sergei
73030ddb57 + Support smart-linked .rdata section with external linker for Windows targets after r23025.
git-svn-id: trunk@23084 -
2012-12-01 15:04:23 +00:00
sergei
129d737523 + Allow TObjRelocation to be created without a symbol, such relocations are being used to tag specific positions on non-x86 targets.
* Write relocation format dependent dynamic tags based on actual sh_type of dynamic relocation sections, instead of global relocs_use_addend flag.
* Don't write DT_REL[A]COUNT tag if .rel[a].dyn section is not present.

git-svn-id: trunk@23083 -
2012-12-01 13:38:28 +00:00