Author Topic: std::vector in the debugger: i don't understand the previous topic  (Read 13562 times)

Offline 21did21

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #15 on: May 05, 2011, 12:11:11 am »
thank you for your help

The vector<vector<double>> doesn't work because you have not correctly commented out the function RegisterTypes(driver) function.

i have already comment this but i have an error when i comment this (you can see attached item)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13242
    • Travis build status
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #16 on: May 05, 2011, 12:39:40 am »
Comment only the content of the function. C::B is calling it, bug you've removed it.


And please don't attach images to the forum because the space is limited and when there is no more space left, the admins delete attachments at random.
Use some image paste like site -> imageshank, photobucket and the like.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline 21did21

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #17 on: May 05, 2011, 10:53:22 pm »
Comment only the content of the function. C::B is calling it, bug you've removed it.

i do this. Double and vector works but i can't see the content of vector < vector < double > > .... :)

http://img836.imageshack.us/i/debugg.jpg/


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13242
    • Travis build status
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #18 on: May 06, 2011, 01:16:06 am »
As far as I can tell the gdb_types.script is not disabled, still.
I don't know what you've done but it isn't.

Code
[size] = 3
[capacity]=4
[element type] = ......
is printed by this (gdb_types.script) script.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline 21did21

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #19 on: May 06, 2011, 03:11:29 am »
As far as I can tell the gdb_types.script is not disabled, still.
I don't know what you've done but it isn't.

Code
[size] = 3
[capacity]=4
[element type] = ......
is printed by this (gdb_types.script) script.

Ok, thank you. I think my i did not save the script when i modify then....
now it's OK i think:

http://imageshack.us/photo/my-images/822/debugg.jpg/

http://imageshack.us/photo/my-images/718/scriptxp.jpg/


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5341
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #20 on: May 06, 2011, 07:08:12 am »
it works here, see the image:

and I think the debug parser has some bug to parse the gdb logs.  :D, OBF can look at it.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline 21did21

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #21 on: May 06, 2011, 09:53:45 am »
ok, i don't know why i can't see the same thing...

perhaps i have to modify this:

http://imageshack.us/photo/my-images/638/debugg.jpg/


?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13242
    • Travis build status
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #22 on: May 06, 2011, 11:13:11 am »
21did21: OllyDbg is using C::B from debugger's branch, that's why it looks different.
OllyDbg: I know. I don't think, I'll fix it soon.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline 21did21

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #23 on: May 06, 2011, 05:23:56 pm »
21did21: OllyDbg is using C::B from debugger's branch, that's why it looks different.

to watch this i do: right click on my vector and "watch"

that is the command to have the "debbuger's branch" ?

thank you for your help  :wink:

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13242
    • Travis build status
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #24 on: May 06, 2011, 05:49:34 pm »
This is not a command but improved version of C::B...
There is a nightly for it here: http://forums.codeblocks.org/index.php/topic,14470.0.html
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline 21did21

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: std::vector in the debugger: i don't understand the previous topic
« Reply #25 on: May 06, 2011, 06:23:06 pm »
This is not a command but improved version of C::B...
There is a nightly for it here: http://forums.codeblocks.org/index.php/topic,14470.0.html

OKkkkk  :roll:
it's too difficult for me all this thing....

Thank you for your help  :D
Now i can watch vector, it's already good