On 13/02/2020 17:56, Heinz Junkes wrote:

I'm starting an EPICS IOC. Loading works if I don't set RTEMS_DEBUG.
The loaded images are similar in size.
I have not changed anything in the EPICS software. I still have the problem 
that I do not understand
how the freebsd dhcpcd works and therefore wanted to set RTEMS_DEBUG to get 
more detailed output.
Did you check some tests of the RTEMS test suite? Did you enable the stack checker? How many file descriptors did you configure?

Without a debugger I would use the following approach:

* compile libbsd/application with --finstrument-functions,

* enable the event recording,

* dump the event records in base64 encoding in the fatal error handler,

* add support for base64 encoded data to the rtems-record-lttng converter, and

* view the trace with babeltrace or Trace Compass.

__attribute__((__no_instrument_function__)) void __cyg_profile_func_enter(void* this_fn, void* call_site)
{
rtems_record_produce_2(RTEMS_RECORD_CALLER,
                         (rtems_record_data)call_site, RTEMS_RECORD_FUNCTION_ENTRY,
                         (rtems_record_data)this_fn);

}

__attribute__((__no_instrument_function__)) void __cyg_profile_func_exit(void* this_fn, void* call_site)
{
  rtems_record_produce(RTEMS_RECORD_FUNCTION_EXIT, (rtems_record_data)this_fn);
}

_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to