Commit Graph
759 Commits
Author SHA1 Message Date
Michael Davidsaver db67227a96 dbScan one more NUM_TIME_EVENTS 2026-06-21 09:27:55 -07:00
Michael Davidsaver 45a1edcfac minor 2026-06-21 09:27:55 -07:00
mdavidsaver 4b03e97d7b Embed GDB helper
* Add GDB helper script

Pretty printing of some common argument types

Need to add a line to ~/.gdbinit

> add-auto-load-safe-path /path/to/base/checkout/

afterwards verify at GDB shell with

> info auto-load python-scripts
> info pretty-printer

Tested with GDB 16.3 circa Debian 13

Add $rcast(dbCommon) to up-cast
Add $record("name") to lookup record
Add $elln(ELLLIST,#) to index into list
2026-06-21 07:18:08 -07:00
Abdalla Al-Dalleh 678092d033 biRecord.c/boRecord.c: Fix gcc -Wsizeof-pointer-memaccess (#887)
../rec/biRecord.c:191:42: warning: argument to ‘sizeof’ in ‘strncpy’
call is the same expression as the source; did you mean to use the
size of the destination? [-Wsizeof-pointer-memaccess]
  191 |         strncpy(pstring,prec->znam,sizeof(prec->znam));
      |                                          ^

Use memcpy instead of snprintf.

STATIC_ASSERT is added to ensure znam and onam are sized enough.
2026-06-10 09:53:31 -05:00
Torsten Bögershausen 87ee088728 dbAccess.c: Improve logging of illegal field_type
Debugging a problem and looking at the message

recGblDbaddrError: dbPut: Request type is 0 Illegal Database Request Type...
does not help very much: request type 0 is a legal value.

Improve the message to show the field type as well:
recGblDbaddrError: dbPut: dbrType = 0 field_type = DBF_INLIK (14)...

Do the same for both dbPut and dbGet.
2026-05-27 09:52:14 -05:00
Michael Davidsaver 8bfe89b57d doc dbBase.h
document dbBase list node types
2026-05-12 18:50:54 -07:00
Andrew Johnson b5434c1e6b Error message fixes/improvements 2026-04-15 10:09:52 -05:00
Michael Davidsaver ef48298294 dbCa: iocInit wait for all conditions
After connectCallback, need to wait for up to three
concurrent actions.  Native and string subscriptions,
as well as GET of metadata.

Complicated because event_handler_args does not identify
the evid.

see 717d69e1fc
2026-04-15 10:05:07 -05:00
Michael Davidsaver 77e499ae84 doc dbProcess() 2026-04-10 19:47:56 -07:00
Edmund Blomley c9817fa591 Add AFTC flag for bi record and fix mbbi AFTC bug (#817)
* Add AFTC feature to bi record with tests.

* Fix broken AFTC handling for mbbi record, also fix bug in COSV and LALM handling.

* Add release notes and update record docs.
2026-04-01 11:53:39 -05:00
ronaldomercado 2d8a6f91a9 Use consistent language for string termination (#806)
Avoid hyphen, prefer space: "null terminated"
2026-03-18 10:45:25 -05:00
Irie Railton f4ccf7bc8c iocsh command dbCreateRecord (#812)
* skeleton for implementation of dbCreateRecord iocsh exposure

* Add functionality of dbCreateRecordCallFunc
Includes adding dependancy to iocInit.h and a new error type in dbStaticLib.h

* Fix error message for case when adding record to IOC post init

* add new error message for when no record name is passed and check for empty strings

* add release note for dbCreateRecord IOC shell command

* fix issues from codeql in release notes

* fix documentation md based on codacy styling
2026-03-10 12:48:05 -05:00
Andrew Johnson 01e1073163 Fix editorconfig failure 2026-03-10 12:42:18 -05:00
ReBarsotti-HZB 5b23dcb466 Added Doxygen annotations to iocInit.h (#804)
Doxygen annotations for iocInit.h
2026-03-05 11:43:14 -06:00
ronaldomercado c7b899dca3 Annotate dbbase (#815)
* add doxygen tags

* add dbBase to be processed by sphinx
2026-03-03 18:13:52 -06:00
Michael Davidsaver d44ddf441a configure: ensure output file only updated on success
eg. After running "false > $@", the output file modification
time will be updated.  So a despite failure, a repeated
"make" will not re-run.

Handle this by accumulating output to "$@.tmp", then
move to $@ as a final step.
2026-02-27 16:17:53 +00:00
Michael Davidsaver 717d69e1fc dbCa: iocInit wait for local CA links to connect 2026-02-27 13:01:27 +00:00
Michael Davidsaver c41210c008 whitespace 2026-02-27 11:45:42 +00:00
ReBarsotti-HZB 976ef26381 Added Doxygen annotations to dbLock.h 2026-02-27 11:28:00 +00:00
ReBarsotti-HZB 06ec85be80 Added @file to dbExtractArray
File was already annotated but missing the @file declaration.
2026-02-27 11:25:15 +00:00
zimoch db693d4930 enable trim_trailing_whitespace 2026-02-18 10:34:08 -06:00
zimoch cd36c03da4 Enforce consistent space indent style 2026-02-18 10:34:08 -06:00
zimoch 8c9dd71f6e Fix gcc warning 'stringop-truncation' 2026-02-18 10:06:26 -06:00
zimoch fe39a007d8 Allow percentages for callbackParallelThreads count 2026-02-18 09:50:03 -06:00
zimoch e66bb87909 document change in epicsThreadGetCPUs 2026-02-18 09:50:03 -06:00
Jakub Wlodek 4fe5f75387 Fixing minor memory leak when dbPutConvertJSON call fails 2026-02-08 08:15:44 -08:00
Simon Rose 7e3255ff8e Add release notes and macros to (generated) header files 2026-02-04 10:15:24 -06:00
Henrique Silva 51c5b8f1ee Post NORD update event during record process for subArray 2026-02-04 10:15:24 -06:00
Henrique Silva 64011ba0f3 Remove NORD post event from subArray device support layer 2026-02-04 10:15:24 -06:00
Henrique Silva 5d1f572cea Remove NORD post event from device support layer
Fixes #280
This event will only be posted in the record support layer, specifically
in the process function.
2026-02-04 10:15:24 -06:00
Henrique Silva aff74638bd Post NORD update event during record process for aai and aao
Applying the same change as #263 did for waveform records
2026-02-04 10:15:24 -06:00
Bruce Hill fc8319ad10 Use NUM_TIME_EVENTS instead of hard constants for dbScan.c event code. 2026-02-04 09:50:44 -06:00
Hugo Slepicka 005e36258d Add error number to rsrv mcast loopback error msg. 2026-02-04 09:50:44 -06:00
Michael Davidsaver 84d4627987 more doc dbEvent.h 2026-01-21 09:55:13 -06:00
Michael Davidsaver 839e7f4959 move dbUnitTest discussion to dbUnitTest.h 2026-01-21 09:55:13 -06:00
Michael Davidsaver d724461f1c doc: remove @page directions
readthedocs build does not include these.
2026-01-21 09:55:13 -06:00
Michael Davidsaver b2ed8bb98d doc dbEvent.h 2026-01-07 09:54:41 -06:00
Michael Davidsaver 71e4635d34 fix testdbCaWaitForEvent()
sync with CA context thread(s) as well as dbCa worker.
2026-01-01 19:07:10 -08:00
zimoch 6d85a36397 remove needless pointer casts 2025-12-17 16:34:58 -08:00
zimoch ef2260f433 gcc < 5 does not know #pragma GCC diagnostic push
But it also does not know warning -Wformat-security.
2025-12-15 16:16:53 -08:00
Andrew Johnson 3f24e1800e Replace UNRELEASED => 7.0.10 2025-12-15 16:39:00 -06:00
Edmund Blomley 7d6ef32502 Docs: Mention that pva is supported for JSON links 2025-12-12 18:05:08 -06:00
Michael Davidsaver c2140ad0f3 doc clarify callbackRequestDelayed() timer allocation 2025-12-03 18:09:10 -08:00
Michael Davidsaver 186106cd33 process doc comments in callback.h
Also change doxygen annotation style from '\' to '@'
2025-12-03 17:23:11 -08:00
Michael Davidsaver baa4cb5495 doc and callbackSetQueueSize sanity check 2025-12-03 17:14:10 -08:00
zimoch 90a727c901 Fix spelling errors
Most errors found with:

codespell -L cach,thst,odly,aslo,parm,parms,inpu,ges,prset,pevent,ptd,pring,valu,noo,noe,ned,inout,ro,siz,froms,nd,fo,singl,sart,multy,tthe,allong,ment,inate,nodel,tring,alse,ture,thi,wille,numer

Some more manually found (its -> it's)

c++20: Do not use apostrophe (e.g. can't) in unquoted #error message
2025-12-01 19:00:04 -08:00
Michael Davidsaver 1f4b39cd08 ascheck cleanup 2025-11-23 14:03:47 -08:00
Jerzy Jamroz 84b4a5f63c Doc: Fix array field descriptions
* fix(aao, aai): change VAL field type from DOUBLE[] to FTVL[]

* fix(aSub): change 'Input Value Fields' type from FT[A–U] to FT[A–U][NOA–NOU]

* fix(aSub): change 'Output Value Fields' type from FTV[A–U] to FTV[A–U][NOVA–NOVU]

* fix(waveform): change VAL field type from FTVL to FTVL[NELM]

* fix(aai): remove 'analog' from the record name

* fix(aao): remove 'analog' from the record name

* fix(aai,aao): remove 'Analog' from the record names
2025-11-19 10:47:23 -06:00
zimoch 88bfd6f378 Allow hex and octal strings in dbPut and dbGet
Setting EPICS_DB_CONVERT_DECIMAL_ONLY to YES/yes change the dbPut() and dbGet()
string to integer conversions to the original decimal only policy.
2025-11-05 10:11:06 -06:00
Jerzy Jamroz d58d1420b8 docs: clarify Drive Limits behavior in aoRecord 2025-11-05 09:36:49 -06:00