Adjust breakpoint parser to a different syntax.
commit3a03481a15fd1873189317dc8e1164c0d0f0fd31
authorJohannes Sixt <j6t@kdbg.org>
Fri, 23 Nov 2012 21:45:53 +0000 (23 22:45 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Fri, 23 Nov 2012 21:45:53 +0000 (23 22:45 +0100)
treeb3048670fde7fe3122210e994fb39051fa38b406
parent3386c5bea59b9b2cdb523b16ff01401fc2e5158a
Adjust breakpoint parser to a different syntax.

When a new breakpoint is set, GDB's response is used to seed the internal
table of breakpoints with file name and line number information. This is
in turn needed to display the new breakpoint in the source code window.

So far, we have expected that GDB's response is of this kind:

  Breakpoint 1 at 0x400b94: file multibrkpt.cpp, line 9.

But Luka Hranjec reported a case where the response looked like this:

  Breakpoint 4 at 0x804f158: lotto739.cpp:95.

Adjust the parser to accept this alternate syntax. Note that neither of
the two unambiguously identifies the file name and line number. Hence, we
just use the best-effort result that favors the former syntax.
kdbg/gdbdriver.cpp