public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug tui/30325] [gdb/tui] Stray '[' before insn adddress Date: Fri, 07 Apr 2023 14:25:10 +0000 [thread overview] Message-ID: <bug-30325-4717-Yye1ailBo6@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30325-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30325 --- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- Tentative patch: ... diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 52a0f7af00f..16badd6dbe4 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -666,7 +666,8 @@ tui_source_window_base::update_exec_info (bool refresh_p) for (int i = 0; i < m_content.size (); i++) { struct tui_source_element *src_element = &m_content[i]; - char element[TUI_EXECINFO_SIZE] = " "; + /* Add 1 for terminating '\0'. Init to TUI_EXECINFO_SIZE spaces. */ + char element[TUI_EXECINFO_SIZE + 1] = " "; /* Now update the exec info content based upon the state of each line as indicated by the source content. */ diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h index 7370ae95d8b..bce9097ee41 100644 --- a/gdb/tui/tui-winsource.h +++ b/gdb/tui/tui-winsource.h @@ -58,6 +58,7 @@ DEF_ENUM_FLAGS_TYPE (enum tui_bp_flag, tui_bp_flags); #define TUI_BP_HIT_POS 0 #define TUI_BP_BREAK_POS 1 #define TUI_EXEC_POS 2 +#define TUI_SPACE_POS 3 #define TUI_EXECINFO_SIZE 4 /* Elements in the Source/Disassembly Window. */ ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-04-07 14:25 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-04-07 9:10 [Bug tui/30325] New: " vries at gcc dot gnu.org 2023-04-07 9:13 ` [Bug tui/30325] " vries at gcc dot gnu.org 2023-04-07 9:55 ` vries at gcc dot gnu.org 2023-04-07 12:27 ` tromey at sourceware dot org 2023-04-07 14:25 ` vries at gcc dot gnu.org [this message] 2023-04-07 16:13 ` vries at gcc dot gnu.org 2023-04-11 8:24 ` vries at gcc dot gnu.org 2023-04-12 22:18 ` cvs-commit at gcc dot gnu.org 2023-04-12 22:18 ` cvs-commit at gcc dot gnu.org 2023-04-12 22:19 ` vries at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-30325-4717-Yye1ailBo6@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).