bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #33350] Threads window discards function name


From: anonymous
Subject: [bug #33350] Threads window discards function name
Date: Thu, 19 May 2011 14:54:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18pre) Gecko/20110515 Ubuntu/9.10 (karmic) Namoroka/3.6.18pre

URL:
  <http://savannah.gnu.org/bugs/?33350>

                 Summary: Threads window discards function name
                 Project: DDD
            Submitted by: None
            Submitted on: Thu 19 May 2011 02:54:32 PM UTC
                Category: Gdb integration
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.3.12-rc2

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33350>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]