public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] I'm debugging https://github.com/helix-editor/helix.git@63dcaae1b9083396fb3faaef9eaa2421f7e48fb9, which is a editor implemented with rust lang. When I type gdb command below: (gdb) b pars gdb dumped. I got:   m_match = 0x7fffd8173cc7 "parse::h3bbecc5bbd82b347"   m_ignored_ranges = {     first = 0x7fffd8173cbb "<impl str>::parse::h3bbecc5bbd82b347",     second = 0x7fffd8173cc5 "::parse::h3bbecc5bbd82b347" }
@ 2023-01-02 12:43 Zheng Zhan Liang
  2023-01-05 20:24 ` Tom Tromey
  0 siblings, 1 reply; 10+ messages in thread
From: Zheng Zhan Liang @ 2023-01-02 12:43 UTC (permalink / raw)
  To: gdb-patches; +Cc: Zheng Zhan

From: Zheng Zhan <zzlossdev@163.com>

---
 gdb/completer.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gdb/completer.h b/gdb/completer.h
index 8b4ad8ec4d4..b1faa1b2d71 100644
--- a/gdb/completer.h
+++ b/gdb/completer.h
@@ -163,8 +163,11 @@ class completion_match_for_lcd
 	const char *prev = m_match;
 	for (const auto &range : m_ignored_ranges)
 	  {
-	    m_finished_storage.append (prev, range.first);
-	    prev = range.second;
+            if (prev < range.first)
+              {
+                m_finished_storage.append (prev, range.first);
+                prev = range.second;
+              }
 	  }
 	m_finished_storage.append (prev);
 
-- 
2.38.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-20 16:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-02 12:43 [PATCH] I'm debugging https://github.com/helix-editor/helix.git@63dcaae1b9083396fb3faaef9eaa2421f7e48fb9, which is a editor implemented with rust lang. When I type gdb command below: (gdb) b pars gdb dumped. I got: m_match = 0x7fffd8173cc7 "parse::h3bbecc5bbd82b347" m_ignored_ranges = { first = 0x7fffd8173cbb "<impl str>::parse::h3bbecc5bbd82b347", second = 0x7fffd8173cc5 "::parse::h3bbecc5bbd82b347" } Zheng Zhan Liang
2023-01-05 20:24 ` Tom Tromey
2023-01-06  3:01   ` linuxmaker
2023-01-06 15:53     ` Andrew Burgess
2023-01-07  8:58       ` Zheng
2023-01-12 19:06         ` Andrew Burgess
2023-01-13  5:24           ` Zheng
2023-01-13 14:46             ` Andrew Burgess
2023-03-20 13:56           ` Tom Tromey
2023-03-20 16:08             ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).