This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/23366] segfault during info prog at exec catchpoint with follow-exec-mode new
- From: "zrlw at sina dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 04 Jul 2018 18:29:48 +0000
- Subject: [Bug breakpoints/23366] segfault during info prog at exec catchpoint with follow-exec-mode new
- Auto-submitted: auto-generated
- References: <bug-23366-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23366
Lao Wei <zrlw at sina dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zrlw at sina dot com
--- Comment #3 from Lao Wei <zrlw at sina dot com> ---
Patch for gdb 7.11.1 of SUSE Linux Enterprise 12, maybe suitable for other
7.11.1:
# gdb -v
GNU gdb (GDB; SUSE Linux Enterprise 12) 7.11.1
# cat /usr/src/packages/SOURCES/gdb-7.11.1-follow-exec-mode-new.patch
--- gdb.orig/infcmd.c 2016-06-01 08:36:15.000000000 +0800
+++ gdb/infcmd.c 2018-07-05 01:11:52.476253718 +0800
@@ -2062,7 +2062,9 @@ program_info (char *args, int from_tty)
get_last_target_status (&ptid, &ws);
}
- if (ptid_equal (ptid, null_ptid) || is_exited (ptid))
+ if (ptid_equal (ptid, minus_one_ptid))
+ error (_("No selected thread."));
+ else if (ptid_equal (ptid, null_ptid) || is_exited (ptid))
error (_("Invalid selected thread."));
else if (is_running (ptid))
error (_("Selected thread is running."));
--
You are receiving this mail because:
You are on the CC list for the bug.