pulp-platform / pulp-riscv-newlib

Other
1 stars 4 forks source link

esp32c3 riscv gdb #1

Open QGB opened 2 years ago

QGB commented 2 years ago
#OK
set substitute-path /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/ C:/test/ESP32/esp32c3/newlib-cygwin/newlib/

# set substitute-path /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/libc/stdio/printf.c C:/test/ESP32/esp32c3/pulp-riscv-newlib/newlib/libc/stdio/printf.c

set substitute-path /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/ C:/test/ESP32/esp32c3/pulp-riscv-newlib/newlib/
set substitute-path /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/ C:/Espressif/frameworks/esp-idf-v4.4/

## not found
##set substitute-path /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/ C:\test\ESP32\esp32c3\pulp-riscv-newlib\newlib\
###set substitute-path /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/ C:\Espressif\frameworks\esp-idf-v4.4\
QGB commented 2 years ago
谀哪...ds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/libc/stdio/vfprintf.c
?  662                 register char *fmt;     /* format string */
?  663                 register int ch;        /* character from fmt */
?  664                 register int n, m;      /* handy integers (short term usage) */
?  665                 register char *cp;      /* handy char pointer (short term usage) */
?  666                 register int flags;     /* flags as above */
?  667                 char *fmt_anchor;       /* current format spec being processed */
?  668         #ifndef _NO_POS_ARGS
?  669                 int N;                  /* arg number */
?  670                 int arg_index;          /* index into args processed directly */
?  671                 int numargs;            /* number of varargs read */
?  672                 char *saved_fmt;        /* saved fmt pointer */
?   673                 union arg_val args[MAX_POS_ARGS];
?   674                 int arg_type[MAX_POS_ARGS];
?  675                 int is_pos_arg;         /* is current format positional? */
?   676                 int old_is_pos_arg;     /* is current format positional? */
?   677         #endif
?   678                 int ret;                /* return value accumulator */
?  679                 int width;              /* width from format (%8d), or 0 */
?  680                 int prec;               /* precision from format (%.3d), or -1 */
?  681                 char sign;              /* sign prefix (' ', '+', '-', or \0) */
?  682         #ifdef _WANT_IO_C99_FORMATS
?  683                                         /* locale specific numeric grouping */
?  684                 char *thousands_sep = NULL;
?  685                 size_t thsnd_len = 0;
?  686                 const char *grouping = NULL;
滥哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
remote Thread 1070149892 In: _vfprintf_r                                                  L689  PC: 0x4201497c
f.c:56
(gdb) p ap
$24 = (va_list) 0x3fc93014
(gdb) x/16xb 0x3fc93014
0x3fc93014:     0x06    0x00    0x00    0x00    0x00    0x00    0x00    0x00
0x3fc9301c:     0x01    0x00    0x00    0x00    0x00    0x00    0x0c    0x60
(gdb) s
_vfprintf_r (data=data@entry=0x3fc93160, fp=0x3fc8d9a4, fmt0=fmt0@entry=0x3c020120 "printf loop %i.\n",
    ap=ap@entry=0x3fc93014)
    at /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/libc/stdio/vfpri
ntf.c:689
(gdb) p fp
$25 = (FILE *) 0x3fc8d9a4
(gdb)