PDP11: Add new debug API support to VT11 device, fix broken build
This commit is contained in:
parent
6263378df4
commit
1d22b488a9
1 changed files with 2 additions and 2 deletions
|
@ -144,9 +144,9 @@ extern "C" {
|
||||||
int vt11_debug;
|
int vt11_debug;
|
||||||
|
|
||||||
#if defined(VM_PDP11)
|
#if defined(VM_PDP11)
|
||||||
extern void _sim_debug (unsigned int dbits, DEVICE* dptr, const char* fmt, ...);
|
extern void _sim_debug_device (unsigned int dbits, DEVICE* dptr, const char* fmt, ...);
|
||||||
|
|
||||||
#define DEBUGF(...) _sim_debug (vt11_dbit, vt11_dptr, ## __VA_ARGS__)
|
#define DEBUGF(...) _sim_debug_device (vt11_dbit, vt11_dptr, ## __VA_ARGS__)
|
||||||
#else /* DEBUG_VT11 */
|
#else /* DEBUG_VT11 */
|
||||||
#define DEBUGF(...) do {if (vt11_debug & DBG_CALL) { printf(## __VA_ARGS__); fflush(stdout); };} while (0)
|
#define DEBUGF(...) do {if (vt11_debug & DBG_CALL) { printf(## __VA_ARGS__); fflush(stdout); };} while (0)
|
||||||
#endif /* defined(DEBUG_VT11) || defined(VM_PDP11) */
|
#endif /* defined(DEBUG_VT11) || defined(VM_PDP11) */
|
||||||
|
|
Loading…
Add table
Reference in a new issue