public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb_disassemble_driver: "thread" not "threads"
@ 2001-08-28 15:22 Keith Seitz
  0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2001-08-28 15:22 UTC (permalink / raw)
  To: Insight Maling List

Hi,

This patch changes one of the criteria for debugging a child process from
looking for "threads" in the target's shortname to "thread" in the name.

This should fix disassembly problems on multi-threaded linux applications.

Keith

ChangeLog
2001-08-28  Keith Seitz  <keiths@redhat.com>

	* generic/gdbtk-cmds.c (gdb_disassemble_driver): We should be
	looking for "thread", not "threads" to determine if we have
	a multi-threaded child process.

Patch
Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.38
diff -u -p -r1.38 gdbtk-cmds.c
--- gdbtk-cmds.c	2001/08/20 17:55:31	1.38
+++ gdbtk-cmds.c	2001/08/28 22:21:40
@@ -2130,7 +2130,7 @@ gdb_disassemble_driver (low, high, mixed
       if (strcmp (target_shortname, "child") == 0
           || strcmp (target_shortname, "procfs") == 0
           || strcmp (target_shortname, "vxprocess") == 0
-	  || strstr (target_shortname, "threads") != NULL)
+	  || strstr (target_shortname, "thread") != NULL)
 	/* It's a child process, read inferior mem */
         disassemble_from_exec = 0;
       else

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-28 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-28 15:22 [PATCH] gdb_disassemble_driver: "thread" not "threads" Keith Seitz

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).