Hi,
Uboot prints syntax error and restarts. To get line no. and file name when syntax error happens, I did
#ifdef BOARD_DVP1
#ifdef __U_BOOT__
#undef __U_BOOT__
#endif
seeing these lines in common/hush.c
#ifdef __U_BOOT__
static void syntax_err(void) {
printf("syntax error\n");
}
#else
static void __syntax(char *file, int line) {
error_msg("syntax error %s:%d", file, line);
}
#define syntax() __syntax(__FILE__, __LINE__)
#endif
But during compilation, i git thsi error "fatal error: ctype.h: No such file or directory". what is the correct way to enable file no. and line no.?
Regards,
Gangadhar