gdb breakpoint for a map
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: gdb breakpoint for a map

  1. #1
    Join Date
    May 2015
    Posts
    94

    gdb breakpoint for a map

    Hi,

    Any idea, how we can put a gdb watch on a map. I am seeing that only one member is added to map.
    But somehow at final debugging I see there are two members.
    Watch comes out of scope on debugging.

    Not sure how i can proceed further, please help

    thanks,
    Pdk

  2. #2
    Join Date
    Feb 2017
    Posts
    147

    Re: gdb breakpoint for a map

    Quote Originally Posted by pdk5 View Post
    Not sure how i can proceed further, please help
    A map (and all STL data structures really) are low level and preferably hidden inside application specific classes as implementation detail.

    With such a design it's much easier to trace accesses to an implementation data structure since all accesses to the data structure take place by way of a specific class interface and aren't strewn all over the application.

    So my advice is that you increase the abstraction level of your application. There will be fewer bugs and they will be easier to find.
    Last edited by wolle; August 31st, 2017 at 11:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)