mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
6ba1852136
We found a bug internally where gdb would crash while disassembling a certain instruction. This was tracked down to the handling of %I64d in format_pieces. format_pieces will convert %ll to %I64d on mingw -- so format_pieces should also handle parsing this format. In this patch, I've made the parsing unconditional, since I think it is harmless to accept extra formats. I've also taken the opportunity to convert the length modifier test to a "switch". Tested internally using our failing test case. gdb/ChangeLog 2019-11-21 Tom Tromey <tromey@adacore.com> * gdbsupport/format.c (format_pieces): Parse %I64d. * unittests/format_pieces-selftests.c (test_windows_formats): New function. (run_tests): Call it. Change-Id: If335c7c2fc8d01e629cd55182394a483334d79c7 |
||
---|---|---|
.. | ||
agent.c | ||
agent.h | ||
array-view.h | ||
ax.def | ||
break-common.h | ||
btrace-common.c | ||
btrace-common.h | ||
buffer.c | ||
buffer.h | ||
byte-vector.h | ||
cleanups.c | ||
cleanups.h | ||
common-debug.c | ||
common-debug.h | ||
common-defs.h | ||
common-exceptions.c | ||
common-exceptions.h | ||
common-gdbthread.h | ||
common-inferior.c | ||
common-inferior.h | ||
common-regcache.c | ||
common-regcache.h | ||
common-types.h | ||
common-utils.c | ||
common-utils.h | ||
common.m4 | ||
create-version.sh | ||
def-vector.h | ||
default-init-alloc.h | ||
enum-flags.h | ||
environ.c | ||
environ.h | ||
errors.c | ||
errors.h | ||
fileio.c | ||
fileio.h | ||
filestuff.c | ||
filestuff.h | ||
filtered-iterator.h | ||
format.c | ||
format.h | ||
forward-scope-exit.h | ||
function-view.h | ||
gdb_assert.h | ||
gdb_binary_search.h | ||
gdb_locale.h | ||
gdb_optional.h | ||
gdb_proc_service.h | ||
gdb_ref_ptr.h | ||
gdb_setjmp.h | ||
gdb_signals.h | ||
gdb_splay_tree.h | ||
gdb_string_view.h | ||
gdb_string_view.tcc | ||
gdb_sys_time.h | ||
gdb_tilde_expand.c | ||
gdb_tilde_expand.h | ||
gdb_unique_ptr.h | ||
gdb_unlinker.h | ||
gdb_vecs.c | ||
gdb_vecs.h | ||
gdb_wait.h | ||
gdb-dlfcn.c | ||
gdb-dlfcn.h | ||
hash_enum.h | ||
host-defs.h | ||
job-control.c | ||
job-control.h | ||
netstuff.c | ||
netstuff.h | ||
new-op.c | ||
next-iterator.h | ||
observable.h | ||
offset-type.h | ||
pathstuff.c | ||
pathstuff.h | ||
poison.h | ||
preprocessor.h | ||
print-utils.c | ||
print-utils.h | ||
ptid.c | ||
ptid.h | ||
refcounted-object.h | ||
rsp-low.c | ||
rsp-low.h | ||
run-time-clock.c | ||
run-time-clock.h | ||
safe-iterator.h | ||
safe-strerror.c | ||
scope-exit.h | ||
scoped_fd.h | ||
scoped_mmap.c | ||
scoped_mmap.h | ||
scoped_restore.h | ||
selftest.c | ||
selftest.h | ||
signals-state-save-restore.c | ||
signals-state-save-restore.h | ||
signals.c | ||
symbol.h | ||
tdesc.c | ||
tdesc.h | ||
traits.h | ||
underlying.h | ||
valid-expr.h | ||
version.h | ||
x86-xstate.h | ||
xml-utils.c | ||
xml-utils.h |