bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying structure members named like C keywords.


From: Emilio Lopes
Subject: Re: Displaying structure members named like C keywords.
Date: Thu, 21 Aug 2014 17:48:20 +0200

> I could not reproduce the problem here.  Would you mind providing the
> structure declaration, or at least a reproducer?

Hello Sergio,

thank you very much for your prompt answer!

Here is the declaration of the structure:

  typedef struct param_t {
    const char*  name;
    type_t type;
    short not_available : 1;
    short rlevel : 4;
    short wlevel : 4;
    union {
      struct {
        void* get_fct;
        void* set_fct;
        void* gsv_fct;
        int32_t polling_default;
        int32_t polling_min;
      } natural;
      struct {
        unsigned short paramc;
        struct param_t* paramv;
      } complex;
      struct {
        void (*cmd_fct)();
        void (*wrap)(void (*cmd_fct)(), p_id cmd, const variant_t*
argv, size_t argc, variant_t* res);
      } cmd;
      struct {
        type_t type;
        struct param_t *link;
      } alias;
    } info;
    struct param_t* parent;
    void* user_data;
  } param_t;

  extern param_t* const g_global_paramv;

Regards

 Emílio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]