I cannot see current function name for threads, because DDD is removing everything from the first parenthesis til the last one:
From http://lists.gnu.org/archive/html/bug-ddd/2001-10/msg00023.html...
So, for example, if the
output of "info threads" from GDB was:
- 2 thread 2 (MIPS CPU 1) 0xa00249d0 in __sprint (fp=0x801ff8c0, uio=0x0) at
../../../../../newlib-1.9.0/newlib/libc/stdio/vfprintf.c:193
1 thread 1 (MIPS CPU 0) 0xa0024c44 in _vfprintf_r (data=0xa002b2b8,
fp=0x800ff8c0, fmt0=0x1 "\b\200", ap=0x800fffcc) at
../../../../../newlib-1.9.0/newlib/libc/stdio/vfprintf.c:441
then the threads window displayed:
2 thread 2 () at vfprintf.c:193
1 thread 1 () at vfprintf.c:441
When user would expect something like:
2 thread 2 __sprint() at vfprintf.c:193
1 thread 1 _vfprintf_r() at vfprintf.c:441
The following change was proposed there:
--- SourceView.C~ Thu Apr 26 04:08:06 2001
+++ SourceView.C Tue Oct 23 15:41:07 2001
@@ -6962,5 +6962,5 @@
static regex rxarglist("[(][^0-9][^)]*[)]");
#endif
- int start = index(line, rxarglist, "(");
+ int start = index(line, rxarglist, "(", -1);
if (start > 0)
{
|