Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#9779 - rework of assert

Attached to Project: Rockbox
Opened by Yoshihisa Uchida (Uchida) - Sunday, 11 January 2009, 05:01 GMT+2
Task Type Patches
Category Build environment
Status Unconfirmed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

Building Rockbox fails if assert() (in firmware/include/assert.h) is used.

Then, I reworked assert.h.

changes:
When assert() failed, the correction that displayed the file name, the number of lines, and the condition of failing was done.
Moreover, when the log was enabled, the log was output to the file.


Please select the following to make assert() enabled when you make Rockbox.

1) Run tools/configure

2) Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, ...
Select "A"

3) (D)EBUG, (L)ogf, (A)ssert, (S)imulator, (P)rofile, (V)oice
Select "A"

4) make
   assert.patch (12.1 KiB)
 b/apps/codecs.c                           |    5 +++
 b/apps/codecs.h                           |    4 ++
 b/apps/codecs/codecs.make                 |    1 
 b/apps/codecs/lib/codeclib.c              |    7 ++++
 b/apps/codecs/lib/codeclib.h              |    4 ++
 b/apps/codecs/libmad/global.h             |   12 -------
 b/apps/codecs/libmad/layer3.c             |    5 ---
 b/apps/codecs/libmad/libmad.make          |    2 -
 b/apps/codecs/libmad/timer.c              |    6 ---
 b/apps/codecs/libspc/spc_codec.h          |    4 --
 b/apps/main.c                             |   21 ++++++++++++
 b/apps/plugin.c                           |    5 +++
 b/apps/plugin.h                           |   19 +++++++++--
 b/apps/plugins/mpegplayer/SOURCES         |    1 
 b/apps/plugins/mpegplayer/libmad_assert.c |   29 +++++++++++++++++
 b/apps/plugins/sudoku/generator.c         |    2 -
 b/firmware/include/assert.h               |   49 ++++++++++++++++++++----------
 b/tools/configure                         |   11 ++++++
 18 files changed, 136 insertions(+), 51 deletions(-)

This task depends upon

Comment by Yoshihisa Uchida (Uchida) - Wednesday, 17 February 2010, 11:26 GMT+2
patch updates.

changes
-sync r24717
   rb_assert_2.patch (11.1 KiB)
 b/apps/codecs.c                   |    5 +++
 b/apps/codecs.h                   |    4 +++
 b/apps/codecs/codecs.make         |    1 
 b/apps/codecs/lib/codeclib.c      |    7 +++++
 b/apps/codecs/lib/codeclib.h      |    4 +++
 b/apps/codecs/libmad/global.h     |   12 ---------
 b/apps/codecs/libmad/layer3.c     |    5 ---
 b/apps/codecs/libmad/libmad.make  |    2 -
 b/apps/codecs/libmad/timer.c      |    6 ----
 b/apps/codecs/libspc/spc_codec.h  |    4 ---
 b/apps/main.c                     |   21 ++++++++++++++++
 b/apps/plugin.c                   |    5 +++
 b/apps/plugin.h                   |   18 ++++++++++++-
 b/apps/plugins/lua/malloc.c       |    3 ++
 b/apps/plugins/mpegplayer/SOURCES |    1 
 b/apps/plugins/sudoku/generator.c |    2 -
 b/firmware/include/assert.h       |   49 +++++++++++++++++++++++++-------------
 b/tools/configure                 |   11 +++++++-
 18 files changed, 110 insertions(+), 50 deletions(-)

Loading...