Till Straumann
a2339b9219
- WIN32 can now use default osdFindAddr (until symbol lookup is implemented)
2014-09-10 12:03:04 -07:00
Till Straumann
cc04994d12
- updated copyright info
...
- let epicsFindAddr clear out returned symbol info
- provide epicsFindAddrGetFeatures instead of epicsStackTraceGetFeatures
2014-09-10 12:01:50 -07:00
Till Straumann
fad25a3b11
- cleanup
...
- reduced epicsStackTraceGetFeatures to epicsFindAddrGetFeatures
2014-09-10 12:00:51 -07:00
Till Straumann
438863ebd9
- updated copyright info
2014-09-10 12:00:08 -07:00
strauman
6890166376
- renamed:
...
src/libCom/osi/os/posix/osdBackTrace.c => src/libCom/osi/os/posix/osdExecinfoBackTrace.c
src/libCom/osi/os/posix/osdFindAddr.c => src/libCom/osi/os/posix/osdElfFindAddr.c
not all 'posix' platforms can use the above versions (since the used APIs are not really POSIX)
but a subset can. The platforms which can use either version #include it from 'their'
osdBackTrace.c/osdFindAddr.c.
2014-09-08 23:28:30 -07:00
Till Straumann
51f5a2fc99
- fixed illegal void* pointer arithmetic by casting to char*
2014-09-08 23:09:18 -07:00
Till Straumann
252af56144
- renamed symbol that clashed on solaris
2014-09-08 23:08:33 -07:00
Till Straumann
278a8dac05
- solaris implementation of epicsBackTrace() via walkcontext()
2014-09-08 23:07:51 -07:00
Till Straumann
8477dec61f
- added windows versions of osdBackTrace.c, osdFindAddr.c; the latter
...
does not implement addr->symbol conversion yet.
2014-09-08 22:31:11 -07:00
Till Straumann
8931954d28
- fixed illegal void* pointer arithmetic (by casting to char*)
2014-09-08 22:30:34 -07:00
Till Straumann
954ba66027
- fixed illegal void* pointer arithmetic by casting to char*
...
- removed more unused stuff
2014-09-08 22:29:46 -07:00
Till Straumann
4e1677a38f
- (hopefully) correct usage of sharedLib.h...
2014-09-08 22:28:41 -07:00
strauman
e349b3ab94
- first stab at breaking stack trace facility into separate files
2014-09-08 19:41:06 -07:00
Till Straumann
fa41fcbe40
- use unistd's _POSIX_MAPPED_FILES to determine if a system has mmap.
2014-09-08 08:10:16 -07:00
Till Straumann
9dd130afb6
- forget about backtrace_symbols() -- always use 'dladdr'. (The former
...
is non-standard either and AFAIK always based on the latter.) Always
using dladdr allows us to precisely control the printout formatting
and keep it consistent.
2014-09-05 15:29:32 -07:00
Till Straumann
423709b795
- call first epicsStackTraceRecurseGbl() through function pointer -- clang
...
(darwin) had optimized it away.
2014-09-05 11:17:17 -07:00
Till Straumann
fd9fed2262
- canonicalized printout formatting
...
- added EPICS_STACKTRACE_DYN_SYMBOL
- added USE_DLADDR branch (which is a 'super' of USE_ELF, i.e., the latter
depends on the former)
2014-09-04 10:59:39 -07:00
Till Straumann
68429f03f2
- added EPICS_STACKTRACE_DYN_SYMBOL
2014-09-04 10:58:27 -07:00
Till Straumann
fab9ef6147
- added test case for library symbols
...
- replaced TABs by spaces
2014-09-03 13:23:23 -07:00
Till Straumann
4352a1df59
- replaced TABs by four blanks
2014-09-03 09:39:15 -07:00
Till Straumann
f399b354e6
- replaced TABs by four blanks
2014-09-03 08:13:15 -07:00
Till Straumann
16bef44e5d
- print header message
2014-08-29 15:03:56 -07:00
Till Straumann
f2626442b6
- removed message; if there is no support remain silent
2014-08-29 15:03:04 -07:00
Till Straumann
32c6888e1b
- removed message about a stack trace going to be printed
2014-08-29 15:02:20 -07:00
Till Straumann
0d323db997
- removed obsolete rule (used during development)
2014-08-29 15:00:54 -07:00
Till Straumann
079357c242
- let default (no-op) version of stack trace print informative message
...
that stack traces are not supported.
2014-08-28 15:10:12 -07:00
Till Straumann
768c2c02e7
- paranoia test; errlogFlush; fixed debug messages
...
1) Added a paranoia test to make sure an ill-formatted
ELF string table is not overrun if there is no NULL
char found.
2) Added errlogFlush() before and after stack dump (suggestion
by Michael Davidsaver, thanks).
3) Fixed (out of sync) debug messages.
2014-08-28 11:43:46 -07:00
Till Straumann
47408ed14c
- indentation
2014-08-28 11:43:18 -07:00
Till Straumann
5a06c118c8
- added unit test for epicsStackTrace
2014-08-28 10:50:03 -07:00
Till Straumann
ccb5be72dd
- consistent naming: 'StackTrace' everywhere...
2014-08-28 10:49:22 -07:00
Till Straumann
8b2b03482f
- consistent naming: 'StackTrace' everywhere.
2014-08-28 10:47:59 -07:00
Till Straumann
4459ca0ad8
- merged stacktrace onto current 3.15 tip (Thanks Andrew for his help)
2014-08-27 14:34:05 -07:00
Ralph Lange
f40c25723d
libCom/osi: Fix for MinGW32 builds on Windows
2014-08-26 17:14:35 -07:00
Andrew Johnson
0d33e8a872
epicsStdio.c allow stderr from inside epicsThreadInit()
...
Circular initialization problem that Murali discovered when you
try to fprintf(stderr) from the posix/osdThread.c once() routine.
This change lets the stderr stream through in that case.
2014-08-26 16:40:02 -07:00
Andrew Johnson
83d22ce164
libCom: Darwin has setenv(), use it.
2014-08-26 14:51:18 -07:00
Andrew Johnson
2aea693faf
Merged Jeff's 3.15_libcom_from_cvs_trunk branch.
2014-08-25 16:27:18 -05:00
Andrew Johnson
9079c8aa53
Reverted changes to epicsTime.h and epicsThread.h
2014-08-18 22:55:07 -05:00
Andrew Johnson
c85bd908a3
makeBaseApp tempplate: OPT settings
...
Eric suggested mentioning the HOST_OPT and CROSS_OPT settings
in the application template's configure/CONFIG_SITE file.
2014-08-18 16:16:02 -05:00
Andrew Johnson
5e0bf53fec
epicsTypes.h: Don't use C99 types
...
The __STDC_VERSION__ >= 199901L test never succeeds
in C++, and there were issues with the epicsInt8
definition anyway (int8_t is signed, but char might
not be).
I also removed the epicsBoolean enum which we never use.
2014-08-15 12:24:31 -05:00
Michael Davidsaver
b7e46b8b02
rsrv: better error msg when listen() fails
2014-08-13 14:26:03 -04:00
Andrew Johnson
cafebf2428
Merged Ralph's fix-nan-inf-updates branch.
...
Added a few cosmetic changes en route.
2014-08-05 15:51:52 -05:00
Andrew Johnson
547a9b3ebc
Tweak some dependency rules for correctness
2014-08-05 14:03:37 -05:00
Ralph Lange
e6a883bc5f
std/rec/test: explicitly register test subroutine for subroutine record (fix build on MinGW)
2014-08-05 14:29:14 +02:00
Ralph Lange
fdb21252b0
ioc/db (recGblCheckDeadband): avoid signbit() which does not exist on older MSVC installations
2014-08-05 11:20:23 +02:00
Ralph Lange
130d98463c
ioc/db (recGblCheckDeadband): pull most common case to front
2014-08-05 11:17:29 +02:00
Ralph Lange
ded1f3572d
ioc/db: force isnan()/isinf() to be 1 (instead of non-zero)
2014-08-05 10:42:25 +02:00
Andrew Johnson
cc656981c0
MSI testing
...
When testing the msi program, don't rely on EPICS_HOST_ARCH
to find the binary executable as we may be running the tests
on a cross-arch such as linux-x86-debug.
2014-08-04 15:39:02 -05:00
Michael Davidsaver
fb3314ea45
analogMonitorTest: char array too small
2014-08-04 13:43:37 -04:00
Michael Davidsaver
73a64bc89f
quiet some warnings
...
unused variable iseq
undefined struct dbBase
2014-08-04 13:28:47 -04:00
Michael Davidsaver
96b082d3e4
fix makefile typo
2014-08-04 12:26:31 -04:00