source: rtems-tools/linkers/rtld-base.ini @ 7ccb6701

4.104.115
Last change on this file since 7ccb6701 was 097f1fd, checked in by Chris Johns <chrisj@…>, on 08/07/14 at 08:15:06

rtms-tld: Refactor the code to match a better configuration format.

  • Property mode set to 100644
File size: 1013 bytes
Line 
1;
2; RTEMS Trace Linker Base configuration.
3;
4; Copyright 2014 Chris Johns <chrisj@rtems.org>
5;
6
7;
8; The default generartor is used if a function set does provide a generator record.
9;
10[default-generator]
11generator = printf-generator
12
13;
14; A printf generator prints to stdout the trace functions.
15;
16[printf-generator]
17map-sym-prefix = rtld_pg__
18headers = printf-generator-headers
19arg-trace = "rtld_pg_print_arg(@ARG_NUM@, @ARG_TYPE@, @ARG_SIZE@, &@ARG_LABEL@);"
20ret-trace = "rtld_pg_print_ret(@RET_TYPE@, @RETG_SIZE@, &@RET_LABEL@);"
21code = <<<CODE
22static inline void rtld_pg_print_arg(int    arg_num,
23                                     const  char* arg_type,
24                                     int    arg_size,
25                                     void*  arg
26{
27  const char* p = arg;
28  int   i;
29  printf (" %2d] %s(%d) = ", arg_num, arg_type, arg_size);
30  for (i = 0; i < arg_size; ++i, ++p) printf ("%02x", (unsigned int) *p);
31  printf ("\n");
32}
33CODE
34
35[printf-generator-headers]
36header = "#include <stdio.h>"
Note: See TracBrowser for help on using the repository browser.