debugger is its own part and not part of GUI
This commit is contained in:
parent
6a3617b960
commit
ef5c9ba171
10 changed files with 16 additions and 14 deletions
10
Makefile
10
Makefile
|
@ -47,9 +47,9 @@ DOTOS = src/main.o \
|
||||||
src/x48.o
|
src/x48.o
|
||||||
|
|
||||||
ifeq ($(WITH_DEBUGGER), yes)
|
ifeq ($(WITH_DEBUGGER), yes)
|
||||||
DOTOS += src/x48_debugger.o \
|
DOTOS += src/debugger.o \
|
||||||
src/x48_debugger_disasm.o \
|
src/debugger_disasm.o \
|
||||||
src/x48_debugger_rpl.o
|
src/debugger_rpl.o
|
||||||
CFLAGS += $(shell pkg-config --cflags readline) -DWITH_DEBUGGER=1
|
CFLAGS += $(shell pkg-config --cflags readline) -DWITH_DEBUGGER=1
|
||||||
LIBS += $(shell pkg-config --libs readline)
|
LIBS += $(shell pkg-config --libs readline)
|
||||||
endif
|
endif
|
||||||
|
@ -75,9 +75,11 @@ dist/x48ng: $(DOTOS)
|
||||||
clean:
|
clean:
|
||||||
rm -f src/*.o src/tools/*.o
|
rm -f src/*.o src/tools/*.o
|
||||||
|
|
||||||
clean-all: clean
|
mrproper: clean
|
||||||
rm -f dist/mkcard dist/checkrom dist/dump2rom dist/x48ng
|
rm -f dist/mkcard dist/checkrom dist/dump2rom dist/x48ng
|
||||||
|
|
||||||
|
clean-all: mrproper
|
||||||
|
|
||||||
# Formatting
|
# Formatting
|
||||||
pretty-code:
|
pretty-code:
|
||||||
clang-format -i src/*.c src/*.h
|
clang-format -i src/*.c src/*.h
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include "romio.h"
|
#include "romio.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "x48.h" /* for exit_x48() */
|
#include "x48.h" /* for exit_x48() */
|
||||||
#include "x48_debugger.h"
|
#include "debugger.h"
|
||||||
#include "x48_resources.h"
|
#include "x48_resources.h"
|
||||||
|
|
||||||
#define MAX_ARGS 16
|
#define MAX_ARGS 16
|
|
@ -25,7 +25,7 @@ extern int step_instruction( void );
|
||||||
extern char* str_nibbles( word_20 addr, int n );
|
extern char* str_nibbles( word_20 addr, int n );
|
||||||
|
|
||||||
/*************************/
|
/*************************/
|
||||||
/* x48_debugger_disasm.h */
|
/* debugger_disasm.h */
|
||||||
/*************************/
|
/*************************/
|
||||||
|
|
||||||
/* #ifndef _DISASM_H */
|
/* #ifndef _DISASM_H */
|
||||||
|
@ -46,7 +46,7 @@ extern word_20 disassemble( word_20 addr, char* out );
|
||||||
/* #endif /\* !_DISASM_H *\/ */
|
/* #endif /\* !_DISASM_H *\/ */
|
||||||
|
|
||||||
/*************************/
|
/*************************/
|
||||||
/* x48_debugger_rpl.h */
|
/* debugger_rpl.h */
|
||||||
/*************************/
|
/*************************/
|
||||||
|
|
||||||
/* #ifndef _RPL_H */
|
/* #ifndef _RPL_H */
|
|
@ -3,7 +3,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "hp48.h"
|
#include "hp48.h"
|
||||||
#include "x48_debugger.h"
|
#include "debugger.h"
|
||||||
|
|
||||||
#define TAB_SKIP 8
|
#define TAB_SKIP 8
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "hp48.h"
|
#include "hp48.h"
|
||||||
#include "hp48emu.h"
|
#include "hp48emu.h"
|
||||||
#include "romio.h"
|
#include "romio.h"
|
||||||
#include "x48_debugger.h"
|
#include "debugger.h"
|
||||||
|
|
||||||
/* #ifndef _HP48CHAR_H */
|
/* #ifndef _HP48CHAR_H */
|
||||||
/* #define _HP48CHAR_H 1 */
|
/* #define _HP48CHAR_H 1 */
|
|
@ -7,7 +7,7 @@
|
||||||
#include "x48.h"
|
#include "x48.h"
|
||||||
|
|
||||||
#if defined( WITH_DEBUGGER )
|
#if defined( WITH_DEBUGGER )
|
||||||
#include "x48_debugger.h" /* enter_debugger, TRAP_INSTRUCTION, ILLEGAL_INSTRUCTION */
|
#include "debugger.h" /* enter_debugger, TRAP_INSTRUCTION, ILLEGAL_INSTRUCTION */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int throttle;
|
extern int throttle;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "x48.h"
|
#include "x48.h"
|
||||||
|
|
||||||
#if defined( WITH_DEBUGGER )
|
#if defined( WITH_DEBUGGER )
|
||||||
#include "x48_debugger.h" /* in_debugger, enter_debugger */
|
#include "debugger.h" /* in_debugger, enter_debugger */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int interrupt_called = 0;
|
static int interrupt_called = 0;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#include "x48_resources.h"
|
#include "x48_resources.h"
|
||||||
|
|
||||||
#if defined( WITH_DEBUGGER )
|
#if defined( WITH_DEBUGGER )
|
||||||
#include "x48_debugger.h" /* enter_debugger, USER_INTERRUPT, exec_flags, emulate_debug, debug */
|
#include "debugger.h" /* enter_debugger, USER_INTERRUPT, exec_flags, emulate_debug, debug */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined( GUI_IS_X11 )
|
#if defined( GUI_IS_X11 )
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include "romio.h"
|
#include "romio.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "x48_debugger.h" /* used for in_debugger */
|
#include "debugger.h" /* used for in_debugger */
|
||||||
|
|
||||||
typedef struct x48_timer_t {
|
typedef struct x48_timer_t {
|
||||||
word_1 run;
|
word_1 run;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include "x48_resources.h"
|
#include "x48_resources.h"
|
||||||
|
|
||||||
#if defined( WITH_DEBUGGER )
|
#if defined( WITH_DEBUGGER )
|
||||||
#include "x48_debugger.h" /* `disassembler_mode` & `CLASS_MNEMONICS` */
|
#include "debugger.h" /* `disassembler_mode` & `CLASS_MNEMONICS` */
|
||||||
#else
|
#else
|
||||||
#define HP_MNEMONICS 0
|
#define HP_MNEMONICS 0
|
||||||
#define CLASS_MNEMONICS 1
|
#define CLASS_MNEMONICS 1
|
||||||
|
|
Loading…
Reference in a new issue