integrate readline with gbdb

...for better interactive debugging with history.

Also, make commands return error codes so that only commands that
execute successfully will be added to the command history.
This commit is contained in:
2018-09-08 21:33:30 -07:00
parent b22fc6f44a
commit 5675aedc91
2 changed files with 90 additions and 68 deletions

View File

@@ -11,7 +11,7 @@ CCFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L
CCFLAGS += -I$(SRC_DIR)
CCFLAGS += -I/usr/include/glib-2.0/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
LDFLAGS += -lglib-2.0
LDFLAGS += -lglib-2.0 -lreadline
CCFLAGS += $(CCFLAGS_EXTRA)
LDFLAGS += $(LDFLAGS_EXTRA)