Print this page
3440 librtld_db demos need warnings gagged

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/librtld_db/demo/common/dis.c
          +++ new/usr/src/cmd/sgs/librtld_db/demo/common/dis.c
↓ open down ↓ 71 lines elided ↑ open up ↑
  72   72          ulong_t         val;
  73   73  
  74   74          if (addr_to_sym(ph, address, &sym, &str) == RET_OK) {
  75   75                  map_info_t      *mip;
  76   76                  ulong_t         pltbase;
  77   77  
  78   78                  if (flags & FLG_PAP_SONAME) {
  79   79                          /*
  80   80                           * Embed SOName in symbol name
  81   81                           */
  82      -                        if (mip = addr_to_map(ph, address)) {
       82 +                        if ((mip = addr_to_map(ph, address)) != 0) {
  83   83                                  (void) strcpy(buf, mip->mi_name);
  84   84                                  (void) strcat(buf, ":");
  85   85                          } else
  86   86                                  (void) sprintf(buf, "0x%08lx:", address);
  87   87                  } else
  88   88                          buf[0] = '\0';
  89   89  
  90   90                  if ((flags & FLG_PAP_PLTDECOM) &&
  91   91                      (pltbase = is_plt(ph, address)) != 0) {
  92   92                          rd_plt_info_t   rp;
↓ open down ↓ 90 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX