Re: [Dev-C++] Dynamic allocation vector debug display
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-02-02 21:32:04
|
There's different options: p *vector[i] // Which prints the value of vector i. p *vector[3] disp is another command that can be used. There's a great manual for gdb in PDF format available at gdb documentation site. BTW: I would recommend changing the name from vector to something else, so that you don't confuse the vector C++ class! Fernando Masanori Ashikaga <fm...@te...> wrote: I have a declaration: int *vector; In running time the space is allocated by malloc call. How do I display de content of vector [ i ], for example, in debug display? I know only display the value of address of a pointer vector at this moment :-( Alfred P. Reaud |