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

 
 

bug #33350: Threads window discards function name

Submitted by:  None
Submitted on:  Thu 19 May 2011 02:54:32 PM UTC  
 
Category: Gdb integrationSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 3.3.12-rc2

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

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

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup