bugDDD - Bugs: bug #33350, Threads window discards function...


bug #33350: Threads window discards function name

Submitter:  None
Submitted:  Thu 19 May 2011 02:54:32 PM UTC
Category:  Gdb integration Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  eickeler
Open/Closed:  Closed Release:  3.3.12
* Mandatory Fields

Add a New Comment Rich Markup

Thu 19 May 2011 02:54:32 PM UTC, original submission:  

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

  1 thread 1 (MIPS CPU 0)  0xa0024c44 in _vfprintf_r (data=0xa002b2b8,
fp=0x800ff8c0, fmt0=0x1 "\b\200", ap=0x800fffcc) at

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][^)]*[)]");
-       int start = index(line, rxarglist, "(");
+       int start = index(line, rxarglist, "(", -1);
        if (start > 0)



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by eickeler (Updated the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-28 eickeler StatusNone Fixed
        Open/ClosedOpen Closed
    2021-01-24 eickeler Assigned toNone eickeler

    Back to the top

    Powered by Savane 3.12