Commit Graph

109 Commits

Author SHA1 Message Date
5c080a64f9 bind info to reacord instead of alias 2018-03-21 11:04:15 +01:00
0d332dbb41 channel access to info fields 2018-03-02 13:31:18 +01:00
Michael Davidsaver
38be82a154 missing include 2017-05-02 18:22:57 -04:00
Michael Davidsaver
27cd9fd051 ioc/dbStatic: dbFreeBase() don't double free alias'd records
dbFreeBase() has been broken since alias() was introduced.

Traversal of recList in the function assumed that dbDeleteRecord()
remove only the current dbRecordNode.  However, dbDeleteRecord()
called dbDeleteAliases() which removes alias dbRecordNode s.
If this happens (as it often does) to be the node immediately
after the real node, dbFreeBase() will then iterate using
a ellDelete()d node.
2017-05-02 18:04:06 -04:00
Michael Davidsaver
1ffce72a38 ioc/dbStatic: plug leak in dbFreeBase() 2017-05-02 18:02:05 -04:00
Michael Davidsaver
dcac64d50f ioc/dbStatic: whitespace 2017-05-02 18:01:39 -04:00
Andrew Johnson
f4a16a1e1e Remaining Revision-Id keywords in source 2016-05-22 05:43:09 +02:00
Michael Davidsaver
106fae3b26 dbStatic: prevent overflow in dbPutString()
The bounds check should be before the string
copy.  Also zero the last element out of
paranoia (should already be zero).

Fix lp:1563191
2016-03-29 17:36:39 +09:00
Andrew Johnson
54381b7bf9 Fix DB file parser crashes 2015-10-13 12:03:32 -05:00
Andrew Johnson
9014ca899d dbStatic: Fix invalid memory read 2015-07-30 11:57:50 -05:00
Andrew Johnson
ca46bf70b7 Fixes to attribute handling in dbStaticLib
From Peter Leban of i-tech (Libera)
2015-06-23 17:06:54 -05:00
Andrew Johnson
804aeafaa7 Fix dbVerify()'s postfix buffer size 2015-02-18 16:44:07 -06:00
Michael Davidsaver
2623c2f46f dbStaticLib.c: clean pdbbase after free 2015-02-17 11:01:49 -05:00
Andrew Johnson
2d3a828acd Fixed read-back of TSEL link
Reading back a .TSEL field that was originally pointed to
another record's .TIME field was exposing internal details
that didn't need to be made visible. This commit hides the
.TIME => .VAL change completely, and allows a .TSEL link
field to be saved and restored properly using autosave.
2013-09-13 11:57:18 -05:00
Andrew Johnson
593e313fab dbStatic: More commands accept "" or "*" to mean 'all'
dbDumpRecordType, dbDumpMenu and dbDumpRecord commands improved.
2013-05-09 15:48:49 -05:00
Andrew Johnson
146520d035 dbStatic: Fix dbReportDeviceConfig() overflow.
Reported by Hinko Kocevar.
2012-05-21 15:43:03 -05:00
Andrew Johnson
3b268475d3 Fix some warnings reported by Clang. 2011-11-29 16:14:19 -06:00
Andrew Johnson
fbda9f3280 RCS keyword updates for Bazaar
Replaced $Id$ and $Header$ keywords with $Revision-Id$
Deleted $Log$ keywords and any log messages
2010-10-05 14:27:37 -05:00
f1ba442133 Store original INP/OUT text in link in case DTYP changes later. 2010-06-22 17:35:48 -05:00
Ralph Lange
60be4921c8 Fix: Replaced C++ reserved word 'new' as variable name. 2010-06-16 15:58:00 -04:00
Andrew Johnson
1a2fa1bc86 Some cleanup, mostly spacing. 2009-08-03 22:22:45 +00:00
Andrew Johnson
f5f1c51b80 make dbMalloc and dbCalloc macros 2009-04-23 21:56:22 +00:00
Andrew Johnson
31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Andrew Johnson
acb1bf9b29 Add epicsShareAPI to match header. 2009-04-09 17:20:05 +00:00
Ralph Lange
990ba62e0b Added support for new MSI and MSS link flags 2009-04-03 20:54:00 +00:00
Andrew Johnson
ed4a2972d6 Long string support:
In dbStatic, split record and field search to make parsing easier.
  In dbAccess, '$' field name suffix makes field an array of DBF_CHAR.
2009-03-25 23:02:28 +00:00
Andrew Johnson
c5fd57e5ae Make getpMessage() clear the message string rather than requiring caller to. 2009-01-28 19:57:11 +00:00
Andrew Johnson
9ca9a3c2e2 Added dbGetNAliases() function, to complete the aliases API. 2009-01-19 18:57:02 +00:00
Andrew Johnson
e155dd411e Added dynamic parts of record alias implementation. 2009-01-16 20:50:40 +00:00
Andrew Johnson
a723ea357e Added record aliases. 2009-01-09 18:00:00 +00:00
Andrew Johnson
a4948d15fd Fix to Mantis #250, support escaped characters in record field values. 2006-11-15 23:33:31 +00:00
Andrew Johnson
7dc2eec5aa Permit breakpoint tables to run any direction as long as the slope doesn't
change sign. Reduced memory requirement by making the table a contiguous
array rather than an array of pointers to intervals. Improved error reporting.
2006-10-26 16:05:23 +00:00
Andrew Johnson
73e3411beb Fixed off-by-one error in dbFindField(). 2006-05-12 15:34:04 +00:00
Andrew Johnson
6ca51a8f52 Improve error messages for CALC expressions. 2006-04-03 21:47:34 +00:00
Andrew Johnson
225f816f0e epicsShare macro fixes from Mark Rivers (copied from the main trunk). 2005-12-12 21:25:17 +00:00
Andrew Johnson
12727edb36 Extended Device Support interface. 2005-10-31 20:54:10 +00:00
Andrew Johnson
12eca66b80 Oops, dsxt stuff not committed yet, undone part of last change. 2005-10-28 18:08:08 +00:00
Andrew Johnson
fe1a5f35ae Include pdsxt in dbDumpDevice output. 2005-10-28 17:57:12 +00:00
Andrew Johnson
414511890d Added a dbFindDriver() routine, to look up drvet's by name. 2005-10-28 16:15:12 +00:00
W. Eric Norum
4f731caf14 Add os-independent epicsStrtod() routine. 2004-10-11 18:22:12 +00:00
Marty Kraimer
b4f40d0011 epicsStdioRedirect 2004-08-27 16:20:09 +00:00
Marty Kraimer
6cb83962d0 fprintf(stdout => printf 2004-07-09 18:47:33 +00:00
Marty Kraimer
77b28ee777 changes for reports 2004-07-08 14:43:45 +00:00
Marty Kraimer
31c88f6044 make dbReportDeviceConfig work if report is null 2004-04-05 19:06:03 +00:00
Andrew Johnson
af97e702d1 Added function() keyword handling to dbd files again, works properly now.
Also moved the code from the generated app_registerRecordDeviceDriver.cpp
file to iocsh/registryCommon.*
2004-03-30 21:56:26 +00:00
Andrew Johnson
35bd1a76d1 Removed string calculation engine, only needed by Tim Mooney's recordtypes. 2003-09-12 19:13:54 +00:00
Andrew Johnson
b0d5f21a87 Modify DBD variable keyword to allow both int and double variables. 2003-07-23 21:53:20 +00:00
Andrew Johnson
e13dafb8af dbGetInfoPointer should return void*, not const char*
Short-circuit return in dbGetInfo if no item
2003-07-18 14:58:40 +00:00
Andrew Johnson
da56d5e2b8 Added support for new variable dbd keyword, integers only so far. 2003-07-16 18:35:26 +00:00
Ralph Lange
8e44835903 Fixed/suppressed HP-UX (GNU) warnings 2003-04-23 15:22:56 +00:00