This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4] gdb: ADI support


    
    > +/* Per-process ADI stat info.  */
    > +
    > +struct sparc64_adi_info
    > +{
    > +  /* The process identifier.  */
    > +  pid_t pid;
    > +
    > +  /* The ADI stat.  */
    > +  struct adi_stat_t stat;
    > +
    > +  /* Linked list.  */
    > +  struct sparc64_adi_info *next;
    > +};
    
    Use C++ STL list.  I suggested it on the v3 review.

General question: what's wrong with using a simple linked list of
structs if that is the developer's preference, and/or it follows the
current style of the surrounding code?  (Not saying it is in this case,
that's up to Weimin to say.)

As far as I can see the usage of STL is not mandated by the GDB coding
standards (as documented in the wiki) and developers may want to avoid
them in many circumstances.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]