[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: [PATCH] Function pointer var problem
From: Vladimir Prus <ghost () cs ! msu ! su>
Date: 2005-07-18 8:36:40
Message-ID: dbfpmo$aee$1 () sea ! gmane ! org
[Download RAW message or body]
Vladimir Prus wrote:
> The problem is that gdb returns this when
> asked about the value:
>
> $1 = {int (int)} 0xb7ee6e9c <__DTOR_END__+4>
...
> I can change the logic so that we check if
> there's '}' as last character, and if not, removing the {}-delimited part
> at the beginning, just like is not done with leading "(unsigned int*)" for
> pointers. The attached patch fixes the problem and still shows structures
> and arrays fine.
>
> Comments?
>
> At the same time, I've asked on gdb mailing list why braces, and not
> parenthesis, is used in that case. But even if a change is made, it will
> be a long time before kdevelop can expect that gdb behaves sensibly.
The gdb people did not find extra '{}' to be a problem, even though it's
unconditionally output in all cases, even in MI mode. So fixing this on
KDevelop side is the only option.
Patch committed in revision 435790.
- Volodya
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic