Handle Windows drives in rbreak paths
Fixes this testsuite fail on Windows: FAIL: gdb.base/fullpath-expand.exp: rbreak XXX/fullpath-expand-func.c:func If the found colon is actually part of a Windows drive, look for another. gdb/ChangeLog: 2020-06-14 Hannes Domani <ssbssa@yahoo.de> * symtab.c (rbreak_command): Ignore Windows drive colon.
This commit is contained in:
parent
efe30057d2
commit
2c074f4902
|
@ -1,3 +1,7 @@
|
|||
2020-06-14 Hannes Domani <ssbssa@yahoo.de>
|
||||
|
||||
* symtab.c (rbreak_command): Ignore Windows drive colon.
|
||||
|
||||
2020-06-12 Simon Marchi <simon.marchi@efficios.com>
|
||||
|
||||
* NEWS: Mention removed GDBserver host support.
|
||||
|
|
|
@ -5196,6 +5196,11 @@ rbreak_command (const char *regexp, int from_tty)
|
|||
{
|
||||
const char *colon = strchr (regexp, ':');
|
||||
|
||||
/* Ignore the colon if it is part of a Windows drive. */
|
||||
if (HAS_DRIVE_SPEC (regexp)
|
||||
&& (regexp[2] == '/' || regexp[2] == '\\'))
|
||||
colon = strchr (STRIP_DRIVE_SPEC (regexp), ':');
|
||||
|
||||
if (colon && *(colon + 1) != ':')
|
||||
{
|
||||
int colon_index;
|
||||
|
|
Loading…
Reference in New Issue