1 2008-07-10 Grant Edwards <grant.b.edwards@gmail.com>
3 * src/diag.cxx: allow ASCII escape character in printf
6 2007-12-28 Oyvind Harboe <oyvind.harboe@zylin.com>
8 * src/memcpy.cxx: added assert when memory areas for memcpy()
9 overlaps => result is undefined. It is important to catch *all*
10 cases of this if adding an optimisation for unaligned copy.
12 2007-06-28 Gary Thomas <gary@mlbassoc.com>
15 * src/diag.cxx: Add (char *) casts to make GCC 4.2.x happy.
17 2007-05-31 Rutger Hofman <rutger@cs.vu.nl>
19 * src/diag.cxx: when printing a long long, should not truncate
20 its value to a long or int size
22 2006-10-26 Stefan Sommerfeld <sommerfeld@mikrom.com>
24 * include/cyg_types.h: fixed typo, __GNU_PATCHLEVEL__ was checked,
25 should be __GNUC_PATCHLEVEL__ (which is already used later)
26 * include/cyg_types.h: fixed comment for CYGBLD_ATTRIB_USED, wrong
27 GCC version was referenced
29 2006-08-25 Gary Thomas <gary@mlbassoc.com>
32 CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD must be 'data', not 'boolean'
34 2006-05-17 David Vrabel <dvrabel@arcom.com>
36 * include/cyg_type.h: #define CYG_NELEM to calculate the
37 number of elements in a (statically allocated) array.
39 2006-05-08 Sergei Gavrikov <sg@belvok.com>
41 * src/buffer.cxx: Fix the compiler warnings.
43 2005-11-04 Bart Veer <bartv@ecoscentric.com>
45 * tests/cxxsupp.cxx: Fix the compiler warnings.
47 2005-10-16 Andrew Lunn <andrew.lunn@ascom.ch>
50 * cdl/infra.cdl: Count the number of calls to delete when
51 INFRA_DEBUG is enabled. If the threshold is exceeded it probably
52 means the user expects a real delete function, not the empty one.
54 2005-10-12 Laurent Gonzalez <laurent.gonzalez@trango-systems.com>
56 * src/simple.cxx (cyg_check_func_ptr): match the implementation to
57 the prototype. This got forgotten in the last patch.
59 2005-07-29 Andrew Lunn <andrew.lunn@ascom.ch>
61 * include/cyg_ass.h: Fixed a function prototype so that
62 gcc4 does not give warnings. A const void makes no sense.
63 * src/*.cxx (cyg_check_func_ptr): match the implementation to the
66 2005-06-27 Andrew Lunn <andrew.lunn@ascom.ch>
68 * include/cyg_type.h: Added CYGBLD_ATTRIB_USED so that we can
69 indicate to gcc 3.4.4 or above not to throw away a variable or
70 function even when it appears to be not references.
72 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
74 * include/diag.h: Added CYGBLD_ATTRIB_PRINTF_FORMAT where
75 appropriate to get the compiler to do more checking.
76 * src/diag.cxx (diag_dump_buf_with_offset_16bit): Fix compiler warning
77 caused by above change.
79 2005-02-08 Andrew Lunn <andrew.lunn@ascom.ch>
81 * tests/diag_sprintf1.c
82 * tests/diag_sprintf2.c
83 * cdl/infra.cdl: Used the sprintf test from libc to test
86 2005-02-08 Christoph Csebits <Christoph.CSEBITS@frequentis.com>
88 * src/diag.cxx (diag_snprintf): Off by one error could cause the
89 end of the buffer to be overrun.
91 2004-07-12 Gary Thomas <gary@mlbassoc.com>
93 * src/diag.cxx (_vprintf): Fix return length for %%
95 2004-06-30 Gary Thomas <gary@mlbassoc.com>
97 * src/diag.cxx (_vprintf): Returned [length] was wrong for %p
99 2004-04-16 Jonathan Larmour <jifl@eCosCentric.com>
101 * tests/cxxsupp.cxx: Allow inline function to be correctly inlined.
103 2004-04-15 Jonathan Larmour <jifl@eCosCentric.com>
105 * include/cyg_type.h: added CYG_ATTRIB_ALIGN_MAX and
106 CYGBLD_ATTRIB_ALIGNOFTYPE. Inspired by Robert Larice.
108 2004-01-08 Jani Monoses <jani@iv.ro>
110 * src/diag.cxx (diag_check_string): Allow '\t' in format strings.
112 2004-01-05 Gary Thomas <gary@mlbassoc.com>
115 * src/tcdiag.cxx (cyg_assert_msg): 'fconfig' API changed again.
117 2003-12-21 Gary Thomas <gary@mlbassoc.com>
119 * tests/fc_test.c: New test/demonstration of 'fconfig' access.
121 * src/tcdiag.cxx (cyg_assert_msg): Interface to 'fconfig' data
124 2003-10-11 Gary Thomas <gary@mlbassoc.com>
126 * src/tcdiag.cxx (cyg_test_exit):
127 * cdl/infra.cdl: New option CYGSEM_INFRA_RESET_ON_TEST_EXIT which
128 [if defined] indicates that "cyg_test_exit()" should reset the
129 platform instead of the default hang.
131 2003-10-03 Nick Garnett <nickg@balti.calivar.com>
133 * tests/cxxsupp.cxx: Added ifdef to disable this test on H8/300
134 targets. The H8/300 toolchain does not currently have C++ support.
136 2003-07-01 Michael Checky <Michael_Checky@ThermoKing.com>
138 * src/diag.cxx: Added support for the 'z' qualifier in format strings.
140 2003-05-05 Gary Thomas <gary@mlbassoc.com>
142 * cdl/infra.cdl: Add option to control number of times tests run.
144 2003-04-25 Jonathan Larmour <jifl@eCosCentric.com>
146 * tests/cxxsupp.cxx: don't include <pkgconf/kernel.h> as it's not
148 (cyg_start): CYGINT_ISO_MALLOC needs a #if test.
150 2003-04-10 Nick Garnett <nickg@balti.calivar.com>
152 * tests/cxxsupp.cxx: Added this test program to check that basic
153 C++ support is present. It checks that pure virtual functions can
154 be defined, that new and delete are present and functional, and
155 that calls to as-yet undefined inline functions work. Most of
156 these are linker and runtime system issues, so the actual run of
157 the program is almost a non-event.
160 Added CYGFUN_INFRA_DUMMY_ABORT and CYGFUN_INFRA_DUMMY_STRLEN
161 options to control inclusion of dummy abort() and strlen()
162 functions. These are needed to be present by the compiler's C++
163 runtime system, although they should never be called.
164 Added CYGPKG_INFRA_TESTS to define test programs.
165 Added CYGPKG_INFRA_LDFLAGS_REMOVE and CYGPKG_INFRA_LDFLAGS_ADD to
166 modify the linkage options for the infra package
167 tests. Specifically they remove the --gc-sections option and make
168 all linker warning fatal. This is necessary if cxxsupp.cxx is to
169 test what it needs correctly.
171 * src/abort.cxx: Added this dummy implementation of abort() to
172 satisfy references in the C++ runtime system.
174 * src/strlen.cxx: Added this dummy implementation of strlen() to
175 satisfy references in the C++ runtime system.
177 2003-03-27 Bart Veer <bartv@ecoscentric.com>
179 * src/pure.cxx, cdl/infra.cdl: new function __cxa_pure_virtual(),
180 needed when building with g++ v3.x if the code uses pure
183 2003-01-18 Jonathan Larmour <jifl@eCosCentric.com>
185 * include/cyg_ass.h (CYG_CHECK_FUNC_PTRC): Define with const pointer
187 (CYG_CHECK_DATA_PTRC): Ditto.
188 (CYG_CHECK_FUNC_PTR): Ditto.
189 (CYG_CHECK_DATA_PTR): Ditto.
190 * src/null.cxx: Define cyg_check_data/func_ptr() with const args.
191 * src/buffer.cxx: Ditto.
192 * src/fancy.cxx: Ditto.
193 * src/simple.cxx: Ditto.
195 2002-07-18 Gary Thomas <gary@chez-thomas.org>
198 * src/diag.cxx (diag_vdump_buf_with_offset): New function.
200 2002-05-22 Jesper Skov <jskov@redhat.com>
202 * cdl/infra.cdl: Added two options to control CFLAGS.
204 2002-05-17 Martin Buck <martin.buck@ascom.ch>
206 * include/cyg_type.h (CYGBLD_ATTRIB_PRINTF_FORMAT): Add.
208 2002-05-23 Gary Thomas <gthomas@redhat.com>
210 * src/diag.cxx (_vprintf): Mapping of '\n'=>'\r\n' must be done
211 at the _putc() level.
213 2002-04-17 Gary Thomas <gthomas@redhat.com>
215 * src/diag.cxx (diag_dump_buf_with_offset): Fix pad for short lines.
217 2002-04-16 Gary Thomas <gthomas@redhat.com>
219 * src/diag.cxx: Return proper length result for sprintf() functions.
221 2002-04-09 Jonathan Larmour <jlarmour@redhat.com>
223 * include/cyg_type.h: Allow HALs to override certain attrib macros.
225 2002-02-19 Gary Thomas <gthomas@redhat.com>
227 * src/diag.cxx (diag_snprintf):
228 * include/diag.h: Change function signature on diag_snprintf()
229 to match snprintf() found in stdio.
231 2002-02-13 Jonathan Larmour <jlarmour@redhat.com>
233 * include/cyg_trac.h: Make message type of trace functions be
234 const char * to help avoid warnings with callers.
235 * src/null.cxx: Reflect that in actual functions.
236 * src/fancy.cxx: Ditto.
237 * src/simple.cxx: Ditto.
238 * src/buffer.cxx: Ditto.
240 2002-01-31 Hugo Tyson <hmt@redhat.com>
242 * src/tcdiag.cxx (cyg_assert_msg): Enable this function
243 universally; given the extra usefulness it now has (see below)
244 it's worth always having around by default in asserted builds.
245 It can be disabled with CYGDBG_INFRA_DEBUG_ASSERT_MESSAGE = 0.
247 2002-01-30 Hugo Tyson <hmt@redhat.com>
249 * src/tcdiag.cxx (cyg_assert_msg): Collect from RedBoot flash
250 config, whether or not to dump to a specific console.
252 2002-01-28 Gary Thomas <gthomas@redhat.com>
254 * src/diag.cxx (diag_snprintf):
255 * include/diag.h: New function diag_snprintf().
257 2002-01-23 Jonathan Larmour <jlarmour@redhat.com>
259 * include/cyg_type.h: Define CYG_INIT_IO_FS used by filesystems
260 so that they init *after* the devices they depend on.
262 2002-01-21 Jonathan Larmour <jlarmour@redhat.com>
264 * src/tcdiag.cxx (cyg_test_exit): Work around problem with recent
265 SH tools that isn't likely to get fixed soon.
267 2002-01-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
269 * src/diag.cxx (diag_check_string): enlarge valid string length to 2048
271 2001-12-06 Jesper Skov <jskov@redhat.com>
273 * src/diag.cxx: Added functions to do memory dump in 16 and 32 bit
274 units. Based on changes from Warren Jasper <warrenj@bops.com>.
275 * include/diag.h: Function declarations.
277 2001-09-12 Jonathan Larmour <jlarmour@redhat.com>
279 * src/eprintf.c (__eprintf): Tolerate absence of standard ISO C
282 2001-09-11 Jesper Skov <jskov@redhat.com>
284 * src/diag.cxx (diag_check_string): Also accept \b.
286 2001-08-25 Gary Thomas <gthomas@redhat.com>
288 * src/diag.cxx (_vprintf): Fix confusion between signed and unsigned
289 descriptors (only %d is signed).
291 2001-08-24 Gary Thomas <gthomas@redhat.com>
293 * include/diag.h: Export diag_dump_buf_with_offset.
295 * src/diag.cxx (_vprintf): Fix problems with signed/unsigned prints.
296 (diag_dump_buf_with_offset): Export.
298 2001-08-23 Gary Thomas <gthomas@redhat.com>
300 * src/diag.cxx (_vprintf): Restore functionality of %D,%U,%X,%B,%S,%C
301 which were present in old code.
303 2001-08-22 Gary Thomas <gthomas@redhat.com>
307 * cdl/infra.cdl: Restructuring to support more flexible versions
308 of diag_printf() and related functions. Remove old cruft which
309 was workaround for possibly failing compilers [K&R support].
310 These versions of printf(), etc, were part of the RedBoot package
311 and have been moved here (and renamed) to reduce code duplication.
313 2001-08-22 Jonathan Larmour <jlarmour@redhat.com>
315 * src/eprintf.c: New file to implement __eprintf called from libgcc.
316 * cdl/infra.cdl: Build it.
317 * include/cyg_type.h: Provide __THROW default empty throw specifier.
318 * include/cyg_ass.h (cyg_assert_fail): Add __THROW.
319 (cyg_assert_msg): Ditto.
320 * src/buffer.cxx (cyg_assert_fail): Ditto.
321 * src/fancy.cxx (cyg_assert_fail): Ditto.
322 * src/null.cxx (cyg_assert_fail): Ditto (twice).
323 * src/simple.cxx (cyg_assert_fail): Ditto.
324 * src/tcdiag.cxx (cyg_assert_msg): Ditto.
326 2001-08-03 Nick Garnett <nickg@cygnus.co.uk>
328 Imported from a development branch:
330 2001-06-27 Nick Garnett <nickg@cygnus.co.uk>
334 Added use of CYG_HAL_DIAG_LOCK() and CYG_HAL_DIAG_UNLOCK() to
335 diag_printf(), cyg_assert_msg() and cyg_test_output() to prevent
336 messages from different CPUs being mingled.
338 2001-05-22 Nick Garnett <nickg@cygnus.co.uk>
340 * include/cyg_type.h (CYGBLD_ANNOTATE_VARIABLE_*):
341 Added better way of supplying default definitions for these.
343 2001-04-27 Nick Garnett <nickg@cygnus.co.uk>
345 * include/cyg_type.h:
346 Added default variable annotation macros.
348 2001-07-18 Jonathan Larmour <jlarmour@redhat.com>
350 * include/cyg_type.h (CYG_INIT_MEMALLOC): Add.
352 2001-07-13 Jonathan Larmour <jlarmour@redhat.com>
354 * src/diag.cxx (diag_vprintf): Fix long longs (patch from
355 Motoya Kurotsu <kurotsu [at] allied-telesis.co.jp>
357 * cdl/debug.cdl: Make tracing styles be mutually exclusive properly
360 2001-06-14 Jonathan Larmour <jlarmour@redhat.com>
362 * include/clist.hxx (Cyg_DNode_T): Don't qualify constructor or
364 (Cyg_CList_T): Ditto.
366 2001-02-23 Robin Farine <acnrf@dial.eunet.ch>
368 * include/cyg_type.h: Do alignment consistency check.
370 2001-01-05 Nick Garnett <nickg@cygnus.co.uk>
372 * include/clist.hxx: Many changes to make these classes usable in
373 the MLQ scheduler and alarm objects.
375 2000-12-15 Nick Garnett <nickg@cygnus.co.uk>
377 * include/clist.hxx: Added this implementation of simple circular
378 list classes. This is not immediately useful, except to the
379 dynamic loader, but it is intended to simplify the MLQ scheduler
380 with these classes eventually.
382 2000-12-13 Jesper Skov <jskov@redhat.com>
384 * include/cyg_type.h (CYGBLD_ATTRIB_ASM_ALIAS): Mangle assembler
387 2000-09-08 Jonathan Larmour <jlarmour@redhat.com>
389 * include/cyg_type.h (CYGBLD_ATTRIB_SECTION): Don't stringify arg.
391 2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
393 * include/cyg_type.h (CYGARC_ALIGNMENT): Add default of 8
394 (CYGARC_P2ALIGNMENT): Add corresponding default of 3
395 (CYGBLD_ATTRIB_ALIGN): Define to allow alignment
396 * include/cyg_type.inc: As above for CYGARC_ALIGNMENT and
399 2000-07-25 Jonathan Larmour <jlarmour@redhat.co.uk>
401 * include/cyg_type.inc: Create. Used for the equivalent stuff of
402 cyg_type.h in assembler and linker scripts
404 2000-07-19 Jonathan Larmour <jlarmour@redhat.co.uk>
406 * src/pkgstart.cxx (cyg_package_start): Remove POSIX startup option
407 * cdl/startup.cdl: Likewise
409 2000-07-18 Jonathan Larmour <jlarmour@redhat.co.uk>
411 * src/buffer.cxx (increment_buffer_pos): Reset buffer pos *before*
412 we try to print the buffer
413 Thanks to Chris Morrow (cmorrow at YottaYotta.com ) for spotting
416 2000-07-04 Jonathan Larmour <jlarmour@redhat.co.uk>
418 * cdl/infra.cdl: Add CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS option
419 to control presence of empty C++ delete functions
421 * src/delete.cxx: Move comments into above option, and simplify
422 the configuration now that it's more straightforward
424 2000-06-21 Nick Garnett <nickg@cygnus.co.uk>
430 Removed use of CYG_LABEL_NAME() and added extra underscores to
433 * include/cyg_type.h: Changed default for CYG_LABEL_DEFN() to
434 define labels without an extra underscore. This reflects the
435 practice of most of the targets we support.
437 2000-06-19 Nick Garnett <nickg@cygnus.co.uk>
439 * include/cyg_type.h:
440 Added CYGBLD_ATTRIB_SECTION to assign variables to a named
442 Added CYG_LABEL_DEFN() macro for defining labels in asm and linker
443 scripts. This is particularly useful for generating labels in
444 inline assembler fragments.
446 2000-05-02 Jonathan Larmour <jlarmour@redhat.co.uk>
450 Remove CYGSEM_START_ISO_C_COMPATIBILITY: startup is now handled
452 * include/cyg_type.h: Define __externC alternative to externC
454 2000-04-12 Jesper Skov <jskov@redhat.com>
456 * cdl/infra.cdl: Allow build flags to be tweaked.
458 2000-03-31 Nick Garnett <nickg@cygnus.co.uk>
462 Added POSIX startup option.
464 2000-03-28 Jonathan Larmour <jlarmour@redhat.co.uk>
466 * include/cyg_trac.h: Also update internal documentation for below
467 const char * changes (2000-03-27)
469 2000-03-28 John Dallaway <jld@cygnus.co.uk>
473 Adjust documentation URLs.
475 2000-03-27 Gary Thomas <gthomas@redhat.com>
477 * src/tcdiag.cxx: HAL architecture ports may override default
478 behavior for 'cyg_test_exit()'.
480 * src/diag.cxx (diag_vprintf): Add support for %llX modifier, which
481 allows for printing of (long long) operands.
483 2000-03-27 Jonathan Larmour <jlarmour@redhat.co.uk>
485 * include/cyg_trac.h: Use const qualifier on function and file name
486 strings to be compatible with the C++ standard
487 * src/buffer.cxx: likewise
488 * src/fancy.cxx: likewise
489 * src/null.cxx: likewise
491 2000-03-27 Jesper Skov <jskov@redhat.com>
493 * include/cyg_type.h: Make cyg_halbool the same for C and C++
496 * include/cyg_ass.h (CYGDBG_DEFINE_CHECK_THIS): Use cyg_bool
499 2000-03-07 Jesper Skov <jskov@redhat.com>
501 * src/buffer.cxx: Fix some compiler warnings.
503 2000-03-03 Jesper Skov <jskov@redhat.com>
505 * include/cyg_type.h (CYGBLD_ATTRIB_WEAK): disarm bomb for !GCC.
507 2000-03-01 Jesper Skov <jskov@redhat.com>
509 * include/cyg_ass.h: Make cyg_assert_fail a weak symbol.
511 2000-02-28 Gary Thomas <gthomas@cygnus.co.uk>
514 * src/diag.cxx (diag_dump_buf): Add diagnostic "dump buffer" function.
516 2000-02-21 Hugo Tyson <hmt@cygnus.co.uk>
518 * src/tcdiag.cxx (cyg_test_is_simulator): set this true if ugly
519 new cdl_option CYGHWR_TARGET_SIMULATOR_NO_GDB_WORKING is set.
520 This means we cannot diddle the variable using GDB.
522 2000-02-18 Hugo Tyson <hmt@cygnus.co.uk>
524 * src/tcdiag.cxx (cyg_test_exit): Add the facility for a platform
525 HAL to define an action to take at CYG_TEST_EXIT time; this is
526 useful for some simulators that are not (yet) Gdb integrated.
527 The action is CYGHWR_TEST_PROGRAM_EXIT() if defined.
529 * src/simple.cxx (cyg_assert_fail): Add the facility for a
530 platform HAL to define an action to take when an assertion failure
533 * src/fancy.cxx (cyg_assert_fail): Ditto.
535 * src/buffer.cxx (cyg_assert_fail): Ditto.
537 [no change to null.cxx because, well, it's null isn't it]
539 2000-02-08 Jonathan Larmour <jlarmour@redhat.co.uk>
541 * include/cyg_trac.h: Define and document CYG_TRACE_PRINT() and
542 CYG_TRACE_DUMP() macros for outputting buffered trace output, and
543 kernel state dump respectively
545 * cdl/debug.cdl (CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER):
546 replace (incorrect) mention of cyg_trace_output() with CYG_TRACE_PRINT()
549 * src/fancy.cxx (cyg_trace_dump): Add (from buffer.cxx)
550 * src/simple.cxx (cyg_trace_dump): Add (from buffer.cxx)
551 * src/null.cxx (cyg_trace_dump): Add as empty function
553 2000-01-31 Simon FitzMaurice <sdf@cygnus.co.uk>
556 Adjust help URLs in line with new doc layout.
558 2000-01-28 Simon FitzMaurice <sdf@cygnus.co.uk>
561 Adjust help URLs in line with new doc layout.
563 1999-11-26 Gary Thomas <gthomas@cygnus.co.uk>
565 * include/cyg_type.h: Add MLT symbols CYGMEM_REGION_ATTR_R/W.
567 1999-11-23 Hugo Tyson <hmt@cygnus.co.uk>
569 * cdl/debug.cdl: Add "active_if CYGDBG_USE_TRACING" to all tracing
570 only options in the buffered flavour of assert'n'trace. Otherwise
571 enabling asserts but no tracing does not build; oldCDL dealt with
572 this by a string of ifdefs in the header. Active_if is my friend.
573 This also prevents the confusion of having active options that
574 have no effect whatsoever.
575 Aside: the default is buffered assert'n'trace so that the test
576 farm can enable tracing and not get swamped by output.
578 1999-05-14 Hugo Tyson <hmt@cygnus.co.uk>
580 * include/cyg_type.h (CYG_INIT_COMPAT): add a new init priority
581 level for compatibility layers (for uITRON that is, but
582 potentially POSIX also perhaps, after libc anyway).
584 1999-04-14 John Dallaway <jld@cygnus.co.uk>
586 * include/pkgconf/infra.h: Add cdl_package doc attribute.
588 1999-04-12 Jesper Skov <jskov@cygnus.co.uk>
590 * include/cyg_type.h: Added new init priority for IO devices.
594 Use device for diag if configured so.
596 1999-03-19 Gary Thomas <gthomas@cygnus.co.uk>
598 * src/diag.cxx (diag_vprintf): Support '%%' printf modifier.
600 1999-03-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
602 * include/cyg_type.h:
603 Add CYGBLD_ATTRIB_CONST and tidy define indentation
605 1999-03-04 Bart Veer <bartv@cygnus.co.uk>
608 Added a #include for <pkgconf/infra.h> so that the header file
609 can correctly check for CYGDBG_INFRA_DIAG_PRINTF_USE_VARARG
611 1999-02-25 Nick Garnett <nickg@cygnus.co.uk>
613 * include/cyg_type.h:
614 Added CYGBLD_ATTRIB_ASM_ALIAS() macro to supply an alias for a
615 variable while it is being defined.
617 1999-02-24 Jonathan Larmour <jlarmour@cygnus.co.uk>
619 * include/cyg_type.h (CYG_INIT_APPLICATION): Add CYG_INIT_DRIVERS
622 * src/tcdiag.cxx (cyg_test_output): Re-include angle brackets
623 for CYG_TEST_GDBCMD command
625 1999-02-23 Jonathan Larmour <jlarmour@cygnus.co.uk>
627 * include/testcase.h (CYG_TEST_NA):
628 Add call to cyg_test_exit()
630 1999-02-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
632 * include/cyg_type.h:
633 Add CYGBLD_ATTRIB_INIT_PRI/BEFORE/AFTER macros.
634 Remove CYG_INIT_BEFORE/AFTER as they were unusable
636 * include/testcase.h:
638 Add CYGNUM_TEST_NA() macro for not applicable state
639 Don't need to call diag_init() any more from cyg_test_init()
643 Rename diag.c to diag.cxx
644 Add dummy constructor object to do initialization right after the
645 HAL has started. Needed to get asserts working correctly at
646 constructor time, and for CYGNUM_TEST_GDBCMD to work as intended
647 (i.e. before calling CYG_TEST_INIT())
649 1999-02-17 Jonathan Larmour <jlarmour@cygnus.co.uk>
651 * src/tcdiag.cxx (cyg_test_output): Remove angle brackets round
654 1999-02-16 Jonathan Larmour <jlarmour@cygnus.co.uk>
656 * src/fancy.cxx (trim_func):
657 * src/simple.cxx (trim_func):
658 * src/buffer.cxx (trim_func):
659 Don't delete bits before a space as it may not always be a
660 type, if using CYG_FUNCNAME rather than relying on
663 * src/tcdiag.cxx (cyg_test_output):
664 Add new GDBCMD output and do some tidying vis a vis coding standards
667 * include/testcase.h:
668 Do some tidying vis a vis coding standards etc.
670 1999-02-16 Gary Thomas <gthomas@cygnus.co.uk>
672 * include/cyg_type.h (CYGBLD_ATTRIB_CONSTRUCTOR):
673 New macro, used to define a 'C' routine to be run with 'C++'
676 1999-01-26 Bart Veer <bartv@cygnus.co.uk>
678 * include/cyg_type.h (CYGBLD_ATTRIB_NORET):
679 Updated the non-GNUC version of the macro
681 1999-01-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
683 * include/cyg_type.h:
684 Remove all traces of CYG_KERNEL_USE_INIT_PRIORITY option - now
685 compulsory. Consequently can remove include of pkgconf/infra.h.
686 Add CYG_INIT_PREDEFAULT priority for
687 CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG implementation.
688 Change CYGBLD_NORET to CYGBLD_ATTRIB_NORET
689 Add CYGBLD_ATTRIB_ALIAS and CYGBLD_ATTRIB_WEAK_ALIAS macros
693 Change CYGBLD_NORET to CYGBLD_ATTRIB_NORET
696 Split up into smaller files to make GDB happier when debuggin
701 New files with contents originally from startup.cxx
703 1999-01-19 Jonathan Larmour <jlarmour@cygnus.co.uk>
705 * include/cyg_type.h (CYG_REFERENCE_OBJECT):
706 Make this work with no overhead, although it doesn't work with
707 anything other than objects with constructors. I _believe_ this
708 is the only relevant situation though. Bite me.
711 1999-01-14 Jesper Skov <jskov@cygnus.co.uk>
713 * include/cyg_type.h (CYG_REFERENCE_SYMBOL): Added.
715 1999-01-13 Gary Thomas <gthomas@cygnus.co.uk>
717 * include/cyg_type.h: Default handling of 'CYG_DOUBLE_BYTEORDER'
719 1999-01-13 Jesper Skov <jskov@cygnus.co.uk>
721 * include/cyg_type.h (CYG_UNUSED_PARAM): Don't assign to the
722 unused parameter; it might be a macro constant.
724 1999-01-11 Bart Veer <bartv@cygnus.co.uk>
726 * src/tcdiag.cxx (cyg_test_output):
727 * include/testcase.h:
728 Use const where appropriate in cyg_test_output()
730 1999-01-06 Bart Veer <bartv@cygnus.co.uk>
732 * include/cyg_trac.h (CYG_REPORT_FUNCARG8):
733 Removed spurious comma so that the macro actually compiles.
735 1998-12-24 Bart Veer <bartv@cygnus.co.uk>
743 In the assertion support, use const where appropriate.
745 1998-12-24 Bart Veer <bartv@cygnus.co.uk>
748 The prototype for cyg_assert_fail() is now always present.
749 const is used wherever appropriate.
750 A number of additional assertion macros are now defined.
751 Host-specific assertion support has been added.
752 Some minor tweaks for greater consistency in macro usage.
754 1998-12-21 Bart Veer <bartv@cygnus.co.uk>
756 * include/cyg_type.h:
757 Allow for platforms where pointers are not 32 bits wide.
759 1998-12-16 Hugo Tyson <hmt@cygnus.co.uk>
761 * include/testcase.h (cyg_test_is_simulator):
762 * src/tcdiag.cxx (cyg_test_is_simulator):
763 Change the type to int so that all gdb's understand it.
764 (it was impossible to assign to from the prompt as a bool)
766 1998-12-09 Bart Veer <bartv@cygnus.co.uk>
768 * include/testcase.h:
769 Hide a __noreturn__ attribute inside a macro so that the
770 header file can be used for host-side code.
772 1998-11-02 Jesper Skov <jskov@cygnus.co.uk>
774 * src/memset.c (_memset): Use type casted pointer to avoid
777 Mon Oct 26 21:20:13 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
780 Make write_thread_id() conditional on CYGDBG_USE_ASSERTS as that's
781 the only time it is used. This silences a compiler warning
783 Mon Oct 26 19:40:48 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
785 * src/memset.c, src/memcpy.c:
786 Conditionalise out all tracing for now
789 Fri Oct 23 05:42:36 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
791 * include/cyg_ass.h (CYGASSERT_docall):
792 Make a dummy reference to _msg_ argument when
793 CYGDBG_INFRA_DEBUG_ASSERT_MESSAGE is disabled, otherwise we may get
794 "unused variable" warnings
797 1998-10-22 Hugo Tyson <hmt@cygnus.co.uk>
799 * src/buffer.cxx (increment_buffer_pos):
800 Use the correctly named print_trace_buffer() rather than some
802 (cyg_trace_dump): only refer to thread->get_saved_context() if
803 CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT is defined.
805 1998-10-22 Hugo Tyson <hmt@cygnus.co.uk>
807 * src/buffer.cxx (write_thread_id):
808 Make get_tid() be there when used.
810 * include/pkgconf/infra.h:
811 Only enable all the buffered tracing stuff if USE_TRACING is
812 selected; otherwise link errors ensue if only USE_ASSERTS is
815 1998-10-22 Jesper Skov <jskov@cygnus.co.uk>
818 * src/simple.cxx (CYG_NO_THREADID): Set if there is no Kernel
821 1998-10-20 Nick Garnett <nickg@cygnus.co.uk>
824 Removed fix for PR 17471 since the required macros have been moved
827 * include/diag.h (diag_printf):
828 * src/diag.c (diag_printf):
829 Made use of variadic arguments optional in this function.
831 * include/pkgconf/infra.h:
832 Added configury to support buffered tracing.
834 * src/fancy.cxx (trim_func):
839 Added buffer.cxx to implement buffered trace log.
841 Thu Oct 15 21:27:23 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
843 * src/delete.cxx, src/memcpy.c, src/memset.c:
844 Moved here from ecc/kernel/current/src/common, as they should
845 be present even if the kernel is disabled
847 * include/pkgconf/infra.h:
848 Add new config options CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMCPY
849 and CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMSET to support the
850 functionality available in memcpy.c and memset.c
853 build above new files
855 Above changes are required for PR 17229
857 1998-10-14 Nick Garnett <nickg@cygnus.co.uk>
859 * include/cyg_type.h:
860 Moved CYG_LABEL_NAME() macro here from ktypes.h.
862 Wed Oct 14 17:10:12 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
865 Change warning message from previous change to match compiler
868 Tue Oct 13 17:23:37 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
871 Output another warning so that people know that diag.c produces
873 Reformat to 76 columns
874 Change args of diag_printf to be ANSI-style, not K&R to
877 1998-09-25 Bart Veer <bartv@cygnus.co.uk>
880 PR 17471: null.cxx relies on the macro CYG_LABEL_NAME(), which on
881 the mn10300 is defined only if <cyg/kernel/ktypes.h> is included.
882 As a temporary fix this header file is now always included. In the
883 medium term there will have to be proper fixes to ktypes.h and to
886 Wed Sep 16 03:42:16 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
888 * src/startup.cxx, src/dummyxxmain.cxx:
889 Move __main() to a separate dummyxxmain.cxx source file to resolve
890 linking bogosities on some targets
891 Fix for PR 17279 - kudos to Tim Goodwin really
894 Build src/dummyxxmain.cxx
896 Tue Sep 15 19:14:33 1998 David Moore <dsm@keema.cygnus.co.uk>
898 * include/pkgconf/infra.h: Cleaned up comments.
900 Tue Sep 15 14:34:34 1998 David Moore <dsm@cygnus.co.uk>
903 * include/cyg_type.h:
904 CYGBLD_ATTRIB_WEAK moved from src/startup.cxx to
907 Tue Sep 15 12:26:36 1998 Jonathan Larmour <jlarmour@peshwari.cygnus.co.uk>
909 * src/null.cxx, src/simple.cxx, src/fancy.cxx:
910 Change cyg_check_data_ptr() to not compare with _end symbol from
911 linker scripts as this is a bogus thing to do when starting in
912 ROM. Some better magic can be done later with the memory layout
915 * src/simple.cxx (cyg_assert_fail),
916 src/fancy.cxx (cyg_assert_fail):
917 If an assert is thrown, loop forever no matter what the platform
918 rather than resetting the jmr board.
920 Fri Sep 11 12:52:59 1998 Hugo Tyson <hmt@cygnus.co.uk>
924 Remove dependencies on the kernel:
925 o types are available from here, infra.
926 o Diag and its mates are here and the HAL.
928 Thu Sep 10 21:59:09 1998 Hugo Tyson <hmt@cygnus.co.uk>
933 Remove dependencies on the kernel:
934 o interrupt stuff is available from the HAL.
935 o types are available from here, infra.
936 o Diag and its mates are here and the HAL.
937 o Only consider printing thread information if there is a kernel.
939 Thu Sep 10 21:29:55 1998 Hugo Tyson <hmt@cygnus.co.uk>
941 * include/pkgconf/infra.h:
942 Fix CDL descriptions (mainly) resulting from review of
945 Thu Sep 10 17:38:00 1998 Hugo Tyson <hmt@cygnus.co.uk>
948 Add an empty cyg_assert_fail() if not CYGDBG_USE_ASSERTS, so that
949 clib's assert() can use it, in common with but regardless of the
950 internal assert setup. Of course if internal asserts are used,
951 the same routine is used.
953 Thu Sep 3 19:05:29 1998 Hugo Tyson <hmt@cygnus.co.uk>
955 * src/startup.cxx (__main):
956 ...and its mates. Correct the bad usage of the tracing macros - a
957 type was implied when the type was void, so an assert fires.
959 * include/diag.h (diag_printf):
960 Remove 'useful' prototype; this function deliberately has a K&R
961 prototype to avoid having to use varargs, or pad arglists or
962 anything grody like that. Comment to that effect added too.
965 Condition out routines which are only used by tracing system;
966 prevent warnings. Also changed the default widths setup to
967 something more suitable to our long function names; viewing on
968 about a 200 column screen recommended - or use 'simple' instead.
970 Tue Sep 1 19:09:39 1998 Hugo Tyson <hmt@masala.cygnus.co.uk>
972 * include/pkgconf/infra.h:
973 Fancy tracing by default, as I've been requested.
974 Move definition (or not) of CYGDBG_INFRA_DIAG_USE_DEVICE from the
975 kernel, correcting the symbol construction as we go.
977 * include/cyg_type.h:
978 Correct multiple-inclusion protection, remove
979 <dollar>Version<Dollar> nonsense, correct Usage: field, put in
980 definition of CYGBLD_NORET.
983 Correct Usage: field, remove definition of CYGDBG_NORET, correct
984 definition of cyg_assert_fail to use CYGBLD_NORET as intended.
986 * include/cyg_trac.h:
989 * src/PKGconf.mak (COMPILE):
990 Added all the new units below.
995 Moved here from the kernel; comments changed accordingly.
1000 Moved here from the kernel; comments changed accordingly.
1001 Also use config symbol CYGDBG_INFRA_DIAG_USE_DEVICE rather than
1002 (badly named) CYG_DIAG_USE_DEVICE.
1004 Fri Aug 28 15:22:16 1998 Hugo Tyson <hmt@cygnus.co.uk>
1006 * include/pkgconf/infra.h:
1007 Add lots of lovely cdl comments and new, correct, names for the
1008 config options themselves.
1009 * include/cyg_trac.h:
1010 * include/cyg_ass.h:
1011 Use the newly named options.
1013 [KERNEL] see also changes to src/trace/{fancy,null,simple}.cxx
1014 which should soon move into this package instead.
1016 Fri Aug 28 09:57:21 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1018 * include/pkgconf/infra.h:
1019 Add CYGSEM_START_ISO_C_COMPATIBILITY and
1020 CYGSEM_START_UITRON_COMPATIBILITY options, along with some comment.
1022 * src/PKGconf.mak, src/startup.cxx:
1023 Add these two files for the new file startup.cxx that provides the
1024 generic startup mechanism, using new cyg_start() functions. This
1025 is to remove the dependency on main(), which is defined in ISO and
1026 POSIX as having certain properties we wouldn't be able to give it
1029 Tue Aug 25 11:47:58 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1032 Add this to provide new startup method
1034 1998-08-20 Nick Garnett <nickg@cygnus.co.uk>
1036 * include/cyg_type.h:
1037 Moved constructor priority ordering stuff here from
1040 //===========================================================================
1041 //####ECOSGPLCOPYRIGHTBEGIN####
1042 // -------------------------------------------
1043 // This file is part of eCos, the Embedded Configurable Operating System.
1044 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
1046 // eCos is free software; you can redistribute it and/or modify it under
1047 // the terms of the GNU General Public License as published by the Free
1048 // Software Foundation; either version 2 or (at your option) any later version.
1050 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
1051 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
1052 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1053 // for more details.
1055 // You should have received a copy of the GNU General Public License along
1056 // with eCos; if not, write to the Free Software Foundation, Inc.,
1057 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
1059 // As a special exception, if other files instantiate templates or use macros
1060 // or inline functions from this file, or you compile this file and link it
1061 // with other works to produce a work based on this file, this file does not
1062 // by itself cause the resulting work to be covered by the GNU General Public
1063 // License. However the source code for this file must still be made available
1064 // in accordance with section (3) of the GNU General Public License.
1066 // This exception does not invalidate any other reasons why a work based on
1067 // this file might be covered by the GNU General Public License.
1069 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
1070 // at http://sources.redhat.com/ecos/ecos-license/
1071 // -------------------------------------------
1072 //####ECOSGPLCOPYRIGHTEND####
1073 //===========================================================================