microsoft / MIEngine

The Visual Studio MI Debug Engine ("MIEngine") provides an open-source Visual Studio Debugger extension that works with MI-enabled debuggers such as gdb and lldb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

variables are not being shown in VSCode but GDB is showing them

chimicus opened this issue · comments

the setup is:

  • VSCode running on Windows
  • GDB running on linux
  • the ssh extension is being used
  • process is C/C++

The members of a struct are shown in the variable list but they have no value.

I captured the log of the DAP communication and I can see that the variables are being requested and returned empty:

for example:

{
  "type": "response",
  "request_seq": 58,
  "success": true,
  "command": "variables",
  "body": {
    "variables": [
      {
        "name": "next",
        "value": "",
        "type": "struct cdbtype_ *",
        "evaluateName": "((cdbtype *)0x7408b2eaa3e8)->next",
        "variablesReference": 1012
      },
      {
        "name": "pif_type",
        "value": "",
        "type": "enum pif_types_",
        "evaluateName": "((cdbtype *)0x7408b2eaa3e8)->pif_type",
        "variablesReference": 0
      },

If I check the variables inside GDB I can see their value correctly. Given the DAP shows empty strings I believe the problem might be in OpenDebugAD7.

Happy to collect more info if needed.

Can you get the GDB side logs? You can do that with "logging": { "engineLogging": true } in the VS Code debug config.

I have a log with all the logging enabled (OpenDebug AND MI)... these are the relevant lines (I believe):

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (166910) <-1352-var-list-children --simple-values \"var125\" 0 1000\n"},"seq":20015}
1: (166910) <-1352-var-list-children --simple-values "var125" 0 1000
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (172812) ->1352^done,numchild=\"60\",children=[child={name=\"var125.next\",exp=\"next\",numchild=\"60\",value=\"\",type=\"struct cdbtype_ *\",thread-id=\"1\"},child={name=\"var125.pif_type\",exp=\"pif_type\",numchild=\"0\",value=\"\",type=\"enum pif_types_\",thread-id=\"1\"},child={name=\"var125.ctrlr_type\",exp=\"ctrlr_type\",numchild=\"0\",value=\"\",type=\"uint\",thread-id=\"1\"},child={name=\"var125.applique_type\",exp=\"applique_type\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.if_subtype\",exp=\"if_subtype\",numchild=\"0\",value=\"\",type=\"uint\",thread-id=\"1\"},child={name=\"var125.shelf_id\",exp=\"shelf_id\",numchild=\"0\",value=\"\",type=\"uint\",thread-id=\"1\"},child={name=\"var125.slot\",exp=\"slot\",numchild=\"0\",value=\"\",type=\"uint\",thread-id=\"1\"},child={name=\"var125.subslot\",exp=\"subslot\",numchild=\"0\",value=\"\",type=\"uint\",thread-id=\"1\"},child={name=\"var125.appl_no\",exp=\"appl_no\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.parent_unit\",exp=\"parent_unit\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.index\",exp=\"index\",numchild=\"0\",value=\"\",type=\"uint\",thread-id=\"1\"},child={name=\"var125.encsize\",exp=\"encsize\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.idb_type\",exp=\"idb_type\",numchild=\"0\",value=\"\",type=\"enum IDBTYPE\",thread-id=\"1\"},child={name=\"var125.hw_if_index\",exp=\"hw_if_index\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.cdb_name\",exp=\"cdb_name\",numchild=\"1\",value=\"\",type=\"const char *\",thread-id=\"1\"},child={name=\"var125.cdb_namestring\",exp=\"cdb_namestring\",numchild=\"1\",value=\"\",type=\"char *\",thread-id=\"1\"},child={name=\"var125.cdb_description\",exp=\"cdb_description\",numchild=\"1\",value=\"\",type=\"char *\",thread-id=\"1\"},child={name=\"var125.applique_name\",exp=\"applique_name\",numchild=\"1\",value=\"\",type=\"const char *\",thread-id=\"1\"},child={name=\"var125.cdb_state\",exp=\"cdb_state\",numchild=\"0\",value=\"\",type=\"enum IDB_STATES\",thread-id=\"1\"},child={name=\"var125.state_time\",exp=\"state_time\",numchild=\"1\",type=\"sys_timestamp\",thread-id=\"1\"},child={name=\"var125.context\",exp=\"context\",numchild=\"0\",value=\"\",type=\"void *\",thread-id=\"1\"},child={name=\"var125.reset\",exp=\"reset\",numchild=\"0\",value=\"\",type=\"cdb_reset_t\",thread-id=\"1\"},child={name=\"var125.love_note\",exp=\"love_note\",numchild=\"0\",value=\"\",type=\"cdb_love_note_t\",thread-id=\"1\"},child={name=\"var125.idb_init\",exp=\"idb_init\",numchild=\"0\",value=\"\",type=\"cdb_idb_init_t\",thread-id=\"1\"},child={name=\"var125.clear_counts\",exp=\"clear_counts\",numchild=\"0\",value=\"\",type=\"cdb_clear_counts_t\",thread-id=\"1\"},child={name=\"var125.show_cdb\",exp=\"show_cdb\",numchild=\"0\",value=\"\",type=\"show_cdb_t\",thread-id=\"1\"},child={name=\"var125.send_triggered_alarm\",exp=\"send_triggered_alarm\",numchild=\"0\",value=\"\",type=\"void (*)(struct cdbtype_ *, boolean)\",thread-id=\"1\"},child={name=\"var125.cdb_status\",exp=\"cdb_status\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.nv_gen_before_phy\",exp=\"nv_gen_before_phy\",numchild=\"0\",value=\"\",type=\"boolean\",thread-id=\"1\"},child={name=\"var125.input_throttled\",exp=\"input_throttled\",numchild=\"0\",value=\"\",type=\"boolean\",thread-id=\"1\"},child={name=\"var125.platform_data\",exp=\"platform_data\",numchild=\"0\",value=\"\",type=\"void *\",thread-id=\"1\"},child={name=\"var125.driver_data\",exp=\"driver_data\",numchild=\"0\",value=\"\",type=\"void *\",thread-id=\"1\"},child={name=\"var125.host_data\",exp=\"host_data\",numchild=\"0\",value=\"\",type=\"void *\",thread-id=\"1\"},child={name=\"var125.base_hwidb\",exp=\"base_hwidb\",numchild=\"457\",value=\"\",type=\"struct hwidbtype_ *\",thread-id=\"1\"},child={name=\"var125.maxmtu\",exp=\"maxmtu\",numchild=\"0\",value=\"\",type=\"ushort\",thread-id=\"1\"},child={name=\"var125.user_def_maxmtu\",exp=\"user_def_maxmtu\",numchild=\"0\",value=\"\",type=\"ushort\",thread-id=\"1\"},child={name=\"var125.maxmtu_def\",exp=\"maxmtu_def\",numchild=\"0\",value=\"\",type=\"ushort\",thread-id=\"1\"},child={name=\"var125.max_buffers\",exp=\"max_buffers\",numchild=\"0\",value=\"\",type=\"ushort\",thread-id=\"1\"},child={name=\"var125.buffersize\",exp=\"buffersize\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.user_def_buffersize\",exp=\"user_def_buffersize\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.buffersize_def\",exp=\"buffersize_def\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.max_buffer_size\",exp=\"max_buffer_size\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.user_def_max_buffer_size\",exp=\"user_def_max_buffer_size\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.max_buffer_size_def\",exp=\"max_buffer_size_def\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.cbus_burst_count\",exp=\"cbus_burst_count\",numchild=\"0\",value=\"\",type=\"ushort\",thread-id=\"1\"},child={name=\"var125.mci_txcount\",exp=\"mci_txcount\",numchild=\"0\",value=\"\",type=\"short\",thread-id=\"1\"},child={name=\"var125.mci_txcount_enabled\",exp=\"mci_txcount_enabled\",numchild=\"0\",value=\"\",type=\"boolean\",thread-id=\"1\"},child={name=\"var125.buffer_pool\",exp=\"buffer_pool\",numchild=\"0\",value=\"\",type=\"long\",thread-id=\"1\"},child={name=\"var125.bandwidth_def\",exp=\"bandwidth_def\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.mci_txcount_default\",exp=\"mci_txcount_default\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.mci_txqloc\",exp=\"mci_txqloc\",numchild=\"0\",value=\"\",type=\"int\",thread-id=\"1\"},child={name=\"var125.snmp_if_index\",exp=\"snmp_if_index\",numchild=\"0\",value=\"\",type=\"long\",thread-id=\"1\"},child={name=\"var125.if_index_fea_flag\",exp=\"if_index_fea_flag\",numchild=\"0\",value=\"\",type=\"uchar\",thread-id=\"1\"},child={name=\"var125.acr_info\",exp=\"acr_info\",numchild=\"14\",value=\"\",type=\"struct acr_grp_info_t_ *\",thread-id=\"1\"},child={name=\"var125.acr_state\",exp=\"acr_state\",numchild=\"0\",value=\"\",type=\"boolean\",thread-id=\"1\"},child={name=\"var125.old_cdb_state\",exp=\"old_cdb_state\",numchild=\"0\",value=\"\",type=\"enum IDB_STATES\",thread-id=\"1\"},child={name=\"var125.flags\",exp=\"flags\",numchild=\"0\",value=\"\",type=\"ulong\",thread-id=\"1\"},child={name=\"var125.pg_info\",exp=\"pg_info\",numchild=\"19\",value=\"\",type=\"struct prot_grp_info_t_ *\",thread-id=\"1\"},child={name=\"var125.cdb_state_reason\",exp=\"cdb_state_reason\",numchild=\"0\",value=\"\",type=\"cdb_state_reason_e\",thread-id=\"1\"},child={name=\"var125.cdb_state_setter_fn\",exp=\"cdb_state_setter_fn\",numchild=\"0\",value=\"\",type=\"void *\",thread-id=\"1\"}],has_more=\"0\"\n"},"seq":20017}
1: (172812) ->1352^done,numchild="60",children=[child={name="var125.next",exp="next",numchild="60",value="",type="struct cdbtype_ *",thread-id="1"},child={name="var125.pif_type",exp="pif_type",numchild="0",value="",type="enum pif_types_",thread-id="1"},child={name="var125.ctrlr_type",exp="ctrlr_type",numchild="0",value="",type="uint",thread-id="1"},child={name="var125.applique_type",exp="applique_type",numchild="0",value="",type="int",thread-id="1"},child={name="var125.if_subtype",exp="if_subtype",numchild="0",value="",type="uint",thread-id="1"},child={name="var125.shelf_id",exp="shelf_id",numchild="0",value="",type="uint",thread-id="1"},child={name="var125.slot",exp="slot",numchild="0",value="",type="uint",thread-id="1"},child={name="var125.subslot",exp="subslot",numchild="0",value="",type="uint",thread-id="1"},child={name="var125.appl_no",exp="appl_no",numchild="0",value="",type="int",thread-id="1"},child={name="var125.parent_unit",exp="parent_unit",numchild="0",value="",type="int",thread-id="1"},child={name="var125.index",exp="index",numchild="0",value="",type="uint",thread-id="1"},child={name="var125.encsize",exp="encsize",numchild="0",value="",type="int",thread-id="1"},child={name="var125.idb_type",exp="idb_type",numchild="0",value="",type="enum IDBTYPE",thread-id="1"},child={name="var125.hw_if_index",exp="hw_if_index",numchild="0",value="",type="int",thread-id="1"},child={name="var125.cdb_name",exp="cdb_name",numchild="1",value="",type="const char *",thread-id="1"},child={name="var125.cdb_namestring",exp="cdb_namestring",numchild="1",value="",type="char *",thread-id="1"},child={name="var125.cdb_description",exp="cdb_description",numchild="1",value="",type="char *",thread-id="1"},child={name="var125.applique_name",exp="applique_name",numchild="1",value="",type="const char *",thread-id="1"},child={name="var125.cdb_state",exp="cdb_state",numchild="0",value="",type="enum IDB_STATES",thread-id="1"},child={name="var125.state_time",exp="state_time",numchild="1",type="sys_timestamp",thread-id="1"},child={name="var125.context",exp="context",numchild="0",value="",type="void *",thread-id="1"},child={name="var125.reset",exp="reset",numchild="0",value="",type="cdb_reset_t",thread-id="1"},child={name="var125.love_note",exp="love_note",numchild="0",value="",type="cdb_love_note_t",thread-id="1"},child={name="var125.idb_init",exp="idb_init",numchild="0",value="",type="cdb_idb_init_t",thread-id="1"},child={name="var125.clear_counts",exp="clear_counts",numchild="0",value="",type="cdb_clear_counts_t",thread-id="1"},child={name="var125.show_cdb",exp="show_cdb",numchild="0",value="",type="show_cdb_t",thread-id="1"},child={name="var125.send_triggered_alarm",exp="send_triggered_alarm",numchild="0",value="",type="void (*)(struct cdbtype_ *, boolean)",thread-id="1"},child={name="var125.cdb_status",exp="cdb_status",numchild="0",value="",type="int",thread-id="1"},child={name="var125.nv_gen_before_phy",exp="nv_gen_before_phy",numchild="0",value="",type="boolean",thread-id="1"},child={name="var125.input_throttled",exp="input_throttled",numchild="0",value="",type="boolean",thread-id="1"},child={name="var125.platform_data",exp="platform_data",numchild="0",value="",type="void *",thread-id="1"},child={name="var125.driver_data",exp="driver_data",numchild="0",value="",type="void *",thread-id="1"},child={name="var125.host_data",exp="host_data",numchild="0",value="",type="void *",thread-id="1"},child={name="var125.base_hwidb",exp="base_hwidb",numchild="457",value="",type="struct hwidbtype_ *",thread-id="1"},child={name="var125.maxmtu",exp="maxmtu",numchild="0",value="",type="ushort",thread-id="1"},child={name="var125.user_def_maxmtu",exp="user_def_maxmtu",numchild="0",value="",type="ushort",thread-id="1"},child={name="var125.maxmtu_def",exp="maxmtu_def",numchild="0",value="",type="ushort",thread-id="1"},child={name="var125.max_buffers",exp="max_buffers",numchild="0",value="",type="ushort",thread-id="1"},child={name="var125.buffersize",exp="buffersize",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.user_def_buffersize",exp="user_def_buffersize",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.buffersize_def",exp="buffersize_def",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.max_buffer_size",exp="max_buffer_size",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.user_def_max_buffer_size",exp="user_def_max_buffer_size",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.max_buffer_size_def",exp="max_buffer_size_def",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.cbus_burst_count",exp="cbus_burst_count",numchild="0",value="",type="ushort",thread-id="1"},child={name="var125.mci_txcount",exp="mci_txcount",numchild="0",value="",type="short",thread-id="1"},child={name="var125.mci_txcount_enabled",exp="mci_txcount_enabled",numchild="0",value="",type="boolean",thread-id="1"},child={name="var125.buffer_pool",exp="buffer_pool",numchild="0",value="",type="long",thread-id="1"},child={name="var125.bandwidth_def",exp="bandwidth_def",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.mci_txcount_default",exp="mci_txcount_default",numchild="0",value="",type="int",thread-id="1"},child={name="var125.mci_txqloc",exp="mci_txqloc",numchild="0",value="",type="int",thread-id="1"},child={name="var125.snmp_if_index",exp="snmp_if_index",numchild="0",value="",type="long",thread-id="1"},child={name="var125.if_index_fea_flag",exp="if_index_fea_flag",numchild="0",value="",type="uchar",thread-id="1"},child={name="var125.acr_info",exp="acr_info",numchild="14",value="",type="struct acr_grp_info_t_ *",thread-id="1"},child={name="var125.acr_state",exp="acr_state",numchild="0",value="",type="boolean",thread-id="1"},child={name="var125.old_cdb_state",exp="old_cdb_state",numchild="0",value="",type="enum IDB_STATES",thread-id="1"},child={name="var125.flags",exp="flags",numchild="0",value="",type="ulong",thread-id="1"},child={name="var125.pg_info",exp="pg_info",numchild="19",value="",type="struct prot_grp_info_t_ *",thread-id="1"},child={name="var125.cdb_state_reason",exp="cdb_state_reason",numchild="0",value="",type="cdb_state_reason_e",thread-id="1"},child={name="var125.cdb_state_setter_fn",exp="cdb_state_setter_fn",numchild="0",value="",type="void *",thread-id="1"}],has_more="0"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (172813) 1352: elapsed time 5902\n"},"seq":20021}
1: (172813) 1352: elapsed time 5902
--> R (variables-43): {"type":"response","request_seq":43,"success":true,"command":"variables","body":{"variables":[{"name":"next","value":"","type":"struct cdbtype_ *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->next","variablesReference":1012},{"name":"pif_type","value":"","type":"enum pif_types_","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->pif_type","variablesReference":0},{"name":"ctrlr_type","value":"","type":"uint","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->ctrlr_type","variablesReference":0},{"name":"applique_type","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->applique_type","variablesReference":0},{"name":"if_subtype","value":"","type":"uint","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->if_subtype","variablesReference":0},{"name":"shelf_id","value":"","type":"uint","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->shelf_id","variablesReference":0},{"name":"slot","value":"","type":"uint","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->slot","variablesReference":0},{"name":"subslot","value":"","type":"uint","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->subslot","variablesReference":0},{"name":"appl_no","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->appl_no","variablesReference":0},{"name":"parent_unit","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->parent_unit","variablesReference":0},{"name":"index","value":"","type":"uint","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->index","variablesReference":0},{"name":"encsize","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->encsize","variablesReference":0},{"name":"idb_type","value":"","type":"enum IDBTYPE","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->idb_type","variablesReference":0},{"name":"hw_if_index","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->hw_if_index","variablesReference":0},{"name":"cdb_name","value":"","type":"const char *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cdb_name","variablesReference":1013},{"name":"cdb_namestring","value":"","type":"char *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cdb_namestring","variablesReference":1014},{"name":"cdb_description","value":"","type":"char *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cdb_description","variablesReference":1015},{"name":"applique_name","value":"","type":"const char *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->applique_name","variablesReference":1016},{"name":"cdb_state","value":"","type":"enum IDB_STATES","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cdb_state","variablesReference":0},{"name":"state_time","value":"","type":"sys_timestamp","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->state_time","variablesReference":1017},{"name":"context","value":"","type":"void *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->context","variablesReference":0},{"name":"reset","value":"","type":"cdb_reset_t","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->reset","variablesReference":0},{"name":"love_note","value":"","type":"cdb_love_note_t","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->love_note","variablesReference":0},{"name":"idb_init","value":"","type":"cdb_idb_init_t","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->idb_init","variablesReference":0},{"name":"clear_counts","value":"","type":"cdb_clear_counts_t","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->clear_counts","variablesReference":0},{"name":"show_cdb","value":"","type":"show_cdb_t","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->show_cdb","variablesReference":0},{"name":"send_triggered_alarm","value":"","type":"void (*)(struct cdbtype_ *, boolean)","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->send_triggered_alarm","variablesReference":0},{"name":"cdb_status","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cdb_status","variablesReference":0},{"name":"nv_gen_before_phy","value":"","type":"boolean","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->nv_gen_before_phy","variablesReference":0},{"name":"input_throttled","value":"","type":"boolean","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->input_throttled","variablesReference":0},{"name":"platform_data","value":"","type":"void *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->platform_data","variablesReference":0},{"name":"driver_data","value":"","type":"void *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->driver_data","variablesReference":0},{"name":"host_data","value":"","type":"void *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->host_data","variablesReference":0},{"name":"base_hwidb","value":"","type":"struct hwidbtype_ *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->base_hwidb","variablesReference":1018},{"name":"maxmtu","value":"","type":"ushort","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->maxmtu","variablesReference":0},{"name":"user_def_maxmtu","value":"","type":"ushort","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->user_def_maxmtu","variablesReference":0},{"name":"maxmtu_def","value":"","type":"ushort","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->maxmtu_def","variablesReference":0},{"name":"max_buffers","value":"","type":"ushort","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->max_buffers","variablesReference":0},{"name":"buffersize","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->buffersize","variablesReference":0},{"name":"user_def_buffersize","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->user_def_buffersize","variablesReference":0},{"name":"buffersize_def","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->buffersize_def","variablesReference":0},{"name":"max_buffer_size","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->max_buffer_size","variablesReference":0},{"name":"user_def_max_buffer_size","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->user_def_max_buffer_size","variablesReference":0},{"name":"max_buffer_size_def","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->max_buffer_size_def","variablesReference":0},{"name":"cbus_burst_count","value":"","type":"ushort","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cbus_burst_count","variablesReference":0},{"name":"mci_txcount","value":"","type":"short","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->mci_txcount","variablesReference":0},{"name":"mci_txcount_enabled","value":"","type":"boolean","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->mci_txcount_enabled","variablesReference":0},{"name":"buffer_pool","value":"","type":"long","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->buffer_pool","variablesReference":0},{"name":"bandwidth_def","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->bandwidth_def","variablesReference":0},{"name":"mci_txcount_default","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->mci_txcount_default","variablesReference":0},{"name":"mci_txqloc","value":"","type":"int","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->mci_txqloc","variablesReference":0},{"name":"snmp_if_index","value":"","type":"long","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->snmp_if_index","variablesReference":0},{"name":"if_index_fea_flag","value":"","type":"uchar","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->if_index_fea_flag","variablesReference":0},{"name":"acr_info","value":"","type":"struct acr_grp_info_t_ *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->acr_info","variablesReference":1019},{"name":"acr_state","value":"","type":"boolean","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->acr_state","variablesReference":0},{"name":"old_cdb_state","value":"","type":"enum IDB_STATES","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->old_cdb_state","variablesReference":0},{"name":"flags","value":"","type":"ulong","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->flags","variablesReference":0},{"name":"pg_info","value":"","type":"struct prot_grp_info_t_ *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->pg_info","variablesReference":1020},{"name":"cdb_state_reason","value":"","type":"cdb_state_reason_e","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cdb_state_reason","variablesReference":0},{"name":"cdb_state_setter_fn","value":"","type":"void *","evaluateName":"((cdbtype *)0x7408b2eaa3e8)->cdb_state_setter_fn","variablesReference":0}]},"seq":20023}

and I can see that GDB in MI mode is reporting those variables as empy... this is disappointing... it looks like a GDB bug

on the other side:

1: (486929) 1368: elapsed time 6143
1: (840642) <-1369-interpreter-exec console "complete print"
1: (840643) ->~"print\n"
1: (840643) ->~"print-object\n"
1: (840643) ->~"printf\n"
1: (840643) ->1369^done
1: (840643) ->(gdb)
1: (840643) 1369: elapsed time 1
1: (840983) <-1370-interpreter-exec console "print cdb->pif_type"
1: (841826) ->~"$1 = PIFT_T1\n"
1: (841828) ->1370^done
1: (841828) ->(gdb)
1: (841828) 1370: elapsed time 845

and I can see that GDB in MI mode is reporting those variables as empy... this is disappointing... it looks like a GDB bug

Yep. I believe this would have to be filed at https://sourceware.org/bugzilla/ in order for this to be fixed.

Agreed, thanks - I think this can be closed