diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-31 23:52:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-31 23:52:53 +0000 |
commit | 768b31742994a7270a11f6b0393329b3404b2af0 (patch) | |
tree | 07225e24cd679bcd042f722dc39514fa90ba541c /nuttx/arch | |
parent | e56f12fd3dbddb72e0a3996a1247d27bad227cd5 (diff) | |
download | px4-nuttx-768b31742994a7270a11f6b0393329b3404b2af0.tar.gz px4-nuttx-768b31742994a7270a11f6b0393329b3404b2af0.tar.bz2 px4-nuttx-768b31742994a7270a11f6b0393329b3404b2af0.zip |
Debug NSH on z80sim
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@474 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/z80/src/common/up_exit.c | 4 | ||||
-rw-r--r-- | nuttx/arch/z80/src/common/up_internal.h | 3 | ||||
-rw-r--r-- | nuttx/arch/z80/src/common/up_sigdeliver.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/arch/z80/src/common/up_exit.c b/nuttx/arch/z80/src/common/up_exit.c index 4a4dba532..b7f5e6243 100644 --- a/nuttx/arch/z80/src/common/up_exit.c +++ b/nuttx/arch/z80/src/common/up_exit.c @@ -114,9 +114,13 @@ static void _up_dumponexit(FAR _TCB *tcb, FAR void *arg) struct file_struct *filep = &tcb->streams->sl_streams[i]; if (filep->fs_filedes >= 0) { +#if CONFIG_STDIO_BUFFER_SIZE > 0 lldbg(" fd=%d nbytes=%d\n", filep->fs_filedes, filep->fs_bufpos - filep->fs_bufstart); +#else + lldbg(" fd=%d\n", filep->fs_filedes); +#endif } } } diff --git a/nuttx/arch/z80/src/common/up_internal.h b/nuttx/arch/z80/src/common/up_internal.h index 5e4db68da..d340a5631 100644 --- a/nuttx/arch/z80/src/common/up_internal.h +++ b/nuttx/arch/z80/src/common/up_internal.h @@ -56,7 +56,7 @@ #undef CONFIG_SUPPRESS_TIMER_INTS /* No timer */ #undef CONFIG_SUPPRESS_SERIAL_INTS /* Console will poll */ #undef CONFIG_SUPPRESS_UART_CONFIG /* Do not reconfig UART */ -#define CONFIG_DUMP_ON_EXIT 1 /* Dump task state on exit */ +#undef CONFIG_DUMP_ON_EXIT /* Dump task state on exit */ /* Macros for portability */ @@ -112,6 +112,7 @@ extern FAR chipreg_t *up_decodeirq(uint8 rstno, FAR chipreg_t *regs); extern void up_irqinitialize(void); extern int up_timerisr(int irq, FAR chipreg_t *regs); extern void up_lowputc(char ch) __naked; +extern char up_lowgetc(void) __naked; /* Defined in up_doirq.c */ diff --git a/nuttx/arch/z80/src/common/up_sigdeliver.c b/nuttx/arch/z80/src/common/up_sigdeliver.c index adbc894cb..e9ade9964 100644 --- a/nuttx/arch/z80/src/common/up_sigdeliver.c +++ b/nuttx/arch/z80/src/common/up_sigdeliver.c @@ -140,4 +140,4 @@ void up_sigdeliver(void) #endif } -#endif /* CONFIG_DISABLE_SIGNALS */
\ No newline at end of file +#endif /* CONFIG_DISABLE_SIGNALS */ |