Skip to content

Commit 5a3e774

Browse files
committed
Addition of sio debug text & fix of jump misdecode in orbmortem
1 parent 128cc3e commit 5a3e774

File tree

8 files changed

+301
-81
lines changed

8 files changed

+301
-81
lines changed

Inc/etmDecoder.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include <stdbool.h>
1313
#include <stdint.h>
14+
#include "generics.h"
1415

1516
#ifdef __cplusplus
1617
extern "C" {
@@ -169,7 +170,7 @@ struct ETMDecoderStats *ETMDecoderGetStats( struct ETMDecoder *i );
169170

170171
void ETMDecodeUsingAltAddrEncode( struct ETMDecoder *i, bool usingAltAddrEncodeSet );
171172

172-
void ETMDecoderPump( struct ETMDecoder *i, uint8_t *buf, int len, etmDecodeCB cb, void *d );
173+
void ETMDecoderPump( struct ETMDecoder *i, uint8_t *buf, int len, etmDecodeCB cb, genericsReportCB report, void *d );
173174

174175
void ETMDecoderInit( struct ETMDecoder *i, bool usingAltAddrEncodeSet );
175176
// ====================================================================================================

Inc/generics.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ extern "C" {
6262
// ====================================================================================================
6363
enum verbLevel {V_ERROR, V_WARN, V_INFO, V_DEBUG, V_MAX_VERBLEVEL};
6464

65+
typedef void ( *genericsReportCB )( enum verbLevel l, const char *fmt, ... );
6566

6667
char *genericsEscape( char *str );
6768
char *genericsUnescape( char *str );

Inc/sio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct SIOInstance;
2727
enum SIOEvent { SIO_EV_NONE, SIO_EV_HOLD, SIO_EV_QUIT, SIO_EV_SAVE, SIO_EV_CONSUMED, SIO_EV_SURFACE, SIO_EV_DIVE, SIO_EV_FOPEN };
2828

2929
/* Types of line (each with their own display mechanism & colours */
30-
enum LineType { LT_SOURCE, LT_ASSEMBLY, LT_NASSEMBLY, LT_MU_SOURCE, LT_EVENT, LT_LABEL, LT_FILE };
30+
enum LineType { LT_SOURCE, LT_ASSEMBLY, LT_NASSEMBLY, LT_MU_SOURCE, LT_EVENT, LT_LABEL, LT_FILE, LT_DEBUG };
3131

3232
/* Definition for a single line...collections of these are what get displayed */
3333
struct line
@@ -49,7 +49,7 @@ void SIOheld( struct SIOInstance *sio, bool isHeld );
4949
enum SIOEvent SIOHandler( struct SIOInstance *sio, bool isTick, uint64_t oldintervalBytes );
5050

5151
void SIOterminate( struct SIOInstance *sio );
52-
struct SIOInstance *SIOsetup( const char *progname, const char *elffile );
52+
struct SIOInstance *SIOsetup( const char *progname, const char *elffile, bool isFile );
5353
// ====================================================================================================
5454

5555
#ifdef __cplusplus

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERBOSE?=0
33
#DEBUG=1
44
SCREEN_HANDLING=1
5-
#MAKE_EXPERIMENTAL=1
5+
MAKE_EXPERIMENTAL=1
66

77
# Set your preferred screen colours here, or create a new palette by copying the file to a new one
88
SCREEN_PALETTE="uicolours_default.h"

0 commit comments

Comments
 (0)