public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vimacs.hacks at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug mi/27770] crash with interpreter-exec Date: Thu, 14 Dec 2023 06:37:47 +0000 [thread overview] Message-ID: <bug-27770-4717-8yxdIpp4Cw@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-27770-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=27770 --- Comment #3 from vimacs.hacks at gmail dot com <vimacs.hacks at gmail dot com> --- I seem to know why this can crash. In the following code: std::unique_ptr<mi_ui_out> mi_out_new (const char *mi_version) { if (streq (mi_version, INTERP_MI4) || streq (mi_version, INTERP_MI)) return std::make_unique<mi_ui_out> (4); if (streq (mi_version, INTERP_MI3)) return std::make_unique<mi_ui_out> (3); if (streq (mi_version, INTERP_MI2)) return std::make_unique<mi_ui_out> (2); return nullptr; } Different MI version makes a different mi_ui_out, so when -interpreter-exec gives a different version than the one in command line, the ui_out object cannot be found. -- You are receiving this mail because: You are on the CC list for the bug.
prev parent reply other threads:[~2023-12-14 6:37 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-23 15:22 [Bug mi/27770] New: " tromey at sourceware dot org 2022-08-12 18:26 ` [Bug mi/27770] " tromey at sourceware dot org 2023-05-16 6:04 ` vimacs.hacks at gmail dot com 2023-12-14 6:37 ` vimacs.hacks at gmail dot com [this message]
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-27770-4717-8yxdIpp4Cw@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).