Print this page
4054 dis sometimes decides random symbols are functions

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dis/dis_main.c
          +++ new/usr/src/cmd/dis/dis_main.c
↓ open down ↓ 105 lines elided ↑ open up ↑
 106  106  {
 107  107          dis_buffer_t db = { 0 };
 108  108          char buf[BUFSIZE];
 109  109          char symbuf[BUFSIZE];
 110  110          const char *symbol;
 111  111          const char *last_symbol;
 112  112          off_t symoffset;
 113  113          int i;
 114  114          int bytesperline;
 115  115          size_t symsize;
 116      -        int isfunc;
      116 +        int isfunc = 0;
 117  117          size_t symwidth = 0;
 118  118  
 119  119          db.db_tgt = tgt;
 120  120          db.db_data = data;
 121  121          db.db_addr = addr;
 122  122          db.db_size = datalen;
 123  123  
 124  124          dis_set_data(dhp, &db);
 125  125  
 126  126          if ((bytesperline = dis_max_instrlen(dhp)) > 6)
↓ open down ↓ 594 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX