aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2021-02-25 00:30:49 +0000
committerLancelot SIX <lsix@lancelotsix.com>2021-02-27 14:29:39 +0000
commitbb3a4efe13c0bd9a7b15ecd02ddb966870a03bd0 (patch)
tree2fba83defaddb1b33723dd84e7c3276a5c3c2603 /sim/m32c
parent573dc0cc43f2c3ce4d28ec1aa1bf05fc43810cda (diff)
downloadbinutils-bb3a4efe13c0bd9a7b15ecd02ddb966870a03bd0.zip
binutils-bb3a4efe13c0bd9a7b15ecd02ddb966870a03bd0.tar.gz
binutils-bb3a4efe13c0bd9a7b15ecd02ddb966870a03bd0.tar.bz2
[PR gdb/27393] set directories: handle empty dirs.
As reported in gdb/27393, the 'directory' and 'set directories' commands fail when parsing an empty dir name: (gdb) set directories "" /home/lsix/dev/gnu/binutils-gdb/gdbsupport/pathstuff.cc:132: internal-error: gdb::unique_xmalloc_ptr<char> gdb_abspath(const char*): Assertion `path != NULL && path[0] != '\0'' failed. or (gdb) dir : /home/lsix/dev/gnu/binutils-gdb/gdbsupport/pathstuff.cc:132: internal-error: gdb::unique_xmalloc_ptr<char> gdb_abspath(const char*): Assertion `path != NULL && path[0] != '\0'' failed. This patch fixes this issue by ignoring any attempt to add an empty name to the source directories list. 'set dir ""' will reset the directories list the same way 'set dir' would do it. Tested on x86_64.
Diffstat (limited to 'sim/m32c')
0 files changed, 0 insertions, 0 deletions