This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] gdb_disassemble_driver: "thread" not "threads"
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] gdb_disassemble_driver: "thread" not "threads"
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Tue, 28 Aug 2001 15:21:54 -0700 (PDT)
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