<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVdtu4zYQ_Rr5hYggU7Y2ftCD145RA7vtokmBvgmUNLK4pUiVlyTu13eGcmI7TbEB1iBkinM7M3M4qk17LB96YBYUPArtWWNacExYYFKzLujGS6NZwvkXY_4K48NxhL3-atqgAA9RsGFPvWx6Jh1ZKNXWCd85E2yDCruNGQahW3fe_lZ_h8Y_CHsAnzbjmOTrJNsm2TopstOKr84LLxvm5D9QefZe9NvJCWJY-7hDMJMt-9HvhGWvPdjRAj7RSyHPr5TXvbcgBhI4b4ePO5_wEazhhHSDZdUOi9sLCrTWYoCqQa8fd1obo1i0k66ycIDnhK9Y8unziz3V5ovEIB43lcJdkr8KZYdhb4cXYAUu9griPwfJ8nOWLLdvArBTEgHLlHPsySCeKx2GahC-6ZE0Sb5lf-x_fUDh1_WfF9HZSxffamdXSlcpdkGpY_V3EEp2Etqo3gnl4NXkbLghXNgtqQ_RHlO9qPDqKohSjwNRLl9vQTu4R9bkG2JtNVr5KDxMwvvjUBu1k1Mfk_yOORAWgbeVi6KqQ5m7cj2V9waVd1K31A93QkIM-J_ESPSmkD8gxftA0M258Rc5nz1NHHhVSu-G0R_xhLRxXUTEGxCsvujORSPxJqR73YL2J9OrNpP0G_bBd1HKE76kKfHt930oFjRFWMwRjx3rTNAtzYyotyFwRK1iUVECH6nHNZ3u2ByfO3JHNjib8vXkm7_FmabpKbFP23eHzy9gY9M8jsZHYaWoIxH4FSpOM0-oJ3F0LEtnbZm3q3wlZiL43tjyuT36bhasKnvvR0e84jtcB-n7UKeNwZGyi3Sc_m5Ga2g04qt0LlCE3TLn89WsL2-77LZueVMs61UOC1h0RZ0XRSHyJm_qVTFTogblSry5hBKeWHRBqS-3s59HIEuecZ7N58t5nme8SBd123DeLMQcWlEsRbLIYBBSpeQnNfYws2V0WYeDQyExzp2Fwjl50AARMCL00iuIH6JWulGJI954Cy4oz0zH4Bma4Ol200XFMRSHN_Vjmvunm-eYil8JdnNDLKcGTV-lxliLaaWzmFUZU_oXcTsZYg>53219</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            The displayed result of executing lldb command "target modules lookup --type"  is incorrect.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          xdytf
      </td>
    </tr>
</table>

<pre>
    The relevant codes are in function "LookupTypeInModule" , which is in lldb/source/Commands/CommandObjectTarget.cpp:
```
static size_t LookupTypeInModule(Target *target,
                                 CommandInterpreter &interpreter, Stream &strm,
                                 Module *module, const char *name_cstr,
                                 bool name_is_regex) {
  TypeList type_list;
  if (module && name_cstr && name_cstr[0]) {
    const uint32_t max_num_matches = UINT32_MAX;
    size_t num_matches = 0;
    bool name_is_fully_qualified = false;

    ConstString name(name_cstr);
    llvm::DenseSet<lldb_private::SymbolFile *> searched_symbol_files;
    module->FindTypes(name, name_is_fully_qualified, max_num_matches,
                      searched_symbol_files, type_list);

    if (type_list.Empty())
      return 0;

    strm.Indent();
    strm.Printf("%" PRIu64 " match%s found in ", (uint64_t)num_matches,
                num_matches > 1 ? "es" : "");
    ...
}
```
Here, the variable "num_matches" is always 0.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNVNtu2zAM_RrnRajhyE6WPPghTRoswG5YO2BvhmzTsTZZ9nRpm339SDltkq7DGgiOJN4OySOWfX3I71pgBhTcC-1Y1ddgmTDApGaN15WTvWYR5x_6_qcf7g4D7PTHvvYK8BIFa_bQyqpl0pKFUnUZ8a3tvalQYbvuu07o2p62n8sfULk7Yfbg4moYonQVJZsoWUXz5LjC0TrhZMWs_A2FY69FX4xOEMPKhR2CGW3Z_35HLDvtwAwG8Ite5vJ0pLxunQHRkcA6073d-YiPYHVHpGssq7ZY3FZQoJUWHRQVen2707LvFQt20hYG9vAY8SWL3l0_2VNt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