diff options
author | Marek Vrbka <marek.vrbka@codasip.com> | 2023-08-31 08:30:37 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-09-08 22:01:59 +0000 |
commit | d41a204d8224dad66265e694e5ccf3379de0d494 (patch) | |
tree | d7370f230ee82fb224259b7b2ea4a48f395c8a11 /src/server/gdb_server.c | |
parent | 62f76b2169302b9500deea737a017168271824ac (diff) | |
download | riscv-openocd-d41a204d8224dad66265e694e5ccf3379de0d494.zip riscv-openocd-d41a204d8224dad66265e694e5ccf3379de0d494.tar.gz riscv-openocd-d41a204d8224dad66265e694e5ccf3379de0d494.tar.bz2 |
image: fix binary detection for small files
Previously, if the image file was less than 9 bytes long,
it was assumed to be an error when it could be a binary
image file. This patch makes OpenOCD detect these cases
as binary files.
Change-Id: I5b4dad2b547786246887812ac75907378fe58671
Signed-off-by: Marek Vrbka <marek.vrbka@codasip.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7880
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/server/gdb_server.c')
0 files changed, 0 insertions, 0 deletions