Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » gdb integration improvement
gdb integration improvement [message #19390] Sun, 30 November 2008 13:19
cocob is currently offline  cocob
Messages: 156
Registered: January 2008
Experienced Member
I have made some improvement with printing values with gdb.
These are examples and they must me completed, corrected and optimized. (I'm not at ease with strings...)

Now when i have a pointer in watches, I get the pointer value and the pointed value :

int b=3;
int *a = &b;
=> a = (int*)0x12345678 -> 3


When i have a tab i can print several values with comma operator

double tab[3];
tab[0] = 1.0;
tab[1] = 1.5;
tab[2] = 2.0;
=> tab,3 = 0=1.000000 , 1=1.500000 , 2=2.000000


I can use overloaded operators like * and []

std::vector<int> vec;
Upp::Vector<int> uppVec;
vec.push_back(1);
vec.push_back(2);
std::vector<int> iterator iter = vec.begin();
uppVec.Add(5);
uppVec.Add(6);
=> uppVec[vec[0]] = 6
=> *iter = 1


For the moment the expression conversion is made by a map on the code

	bindTabOperator.Add("struct vector", "_Vector_base._M_impl._M_start");
bindStarOperator.Add("struct __normal_iterator", "_M_current");


But for example it would be nice to allow the user to add some expression.

What do you think about it ?


  • Attachment: gdb.tar.gz
    (Size: 6.41KB, Downloaded 353 times)

[Updated on: Tue, 02 December 2008 09:25]

Report message to a moderator

Previous Topic: debug externally with MSC
Next Topic: Platform architecture flag
Goto Forum:
  


Current Time: Wed Nov 25 23:36:04 CET 2020

Total time taken to generate the page: 0.01702 seconds