Project

General

Profile

Actions

Bug #12539

closed

mdb: NULL pointer errors

Added by Toomas Soome about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
mdb - modular debugger
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    ../vdsk.c: In function 'vd_dring_entry_walk_init':
    ../vdsk.c:44: error: comparison between pointer and integer

    ../../../../sun4u/modules/unix/unix.c: In function 'httrace_walk_init':
    ../../../../sun4u/modules/unix/unix.c:968: error: comparison between pointer and integer

    ../mdesc.c: In function 'mdhdr':
    ../mdesc.c:71: error: comparison between pointer and integer

    ../ldc.c: In function 'ldc_walk_init':
    ../ldc.c:236: error: comparison between pointer and integer
    ../ldc.c:242: error: comparison between pointer and integer
    ../ldc.c: In function 'ldc_walk_step':
    ../ldc.c:266: error: comparison between pointer and integer
    ../ldc.c: In function 'ldcmhdl':
    ../ldc.c:479: error: comparison between pointer and integer

    ../errh.c: In function 'rq_walk_init':
    ../errh.c:218: error: comparison between pointer and integer
    ../errh.c: In function 'nrq_walk_init':
    ../errh.c:255: error: comparison between pointer and integer
    ../errh.c: In function 'errh_walk_step':
    ../errh.c:292: error: comparison between pointer and integer

    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../oplhwd.c:326 dumpahwd() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../oplhwd.c:609 oplhwd() warn: for statement not indented

    ../unix.c: In function 'ttrace_walk_init':
    ../unix.c:679: error: comparison between pointer and integer
    ../unix.c: In function 'vecint_walk_init':
    ../unix.c:1350: error: comparison between pointer and integer
    ../unix.c: In function 'vecint_walk_step':
    ../unix.c:1381: error: comparison between pointer and integer
    ../unix.c:1383: error: comparison between pointer and integer
    ../unix.c:1387: error: comparison between pointer and integer
    ../unix.c: In function 'softint_walk_init':
    ../unix.c:1446: error: comparison between pointer and integer
    ../unix.c: In function 'softint_walk_step':
    ../unix.c:1474: error: comparison between pointer and integer
    ../unix.c: In function 'mutex_owner_step':
    ../unix.c:1571: error: comparison between pointer and integer

    ../sfmmu.c: In function 'sfmmu_vtop_print_hmeblk':
    ../sfmmu.c:348: error: comparison between pointer and integer
    ../sfmmu.c: In function 'memseg_walk_init':
    ../sfmmu.c:425: error: comparison between pointer and integer
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../sfmmu.c:228 sfmmu_vtop_impl() error: testing array offset 'i' after use.

    ../../../sparc/kmdb/kmdb_kdi_isadep.c: In function 'kdi_xc_one':
    ../../../sparc/kmdb/kmdb_kdi_isadep.c:69: error: passing argument 3 of 'mdb.m_kdi->kdi_mach.mkdi_xc_one' makes integer from pointer without a cast
    ../../../sparc/kmdb/kmdb_kdi_isadep.c:69: note: expected 'uintptr_t' but argument is of type 'void *'
    ../../../sparc/kmdb/kmdb_kdi_isadep.c:69: error: passing argument 4 of 'mdb.m_kdi->kdi_mach.mkdi_xc_one' makes integer from pointer without a cast
    ../../../sparc/kmdb/kmdb_kdi_isadep.c:69: note: expected 'uintptr_t' but argument is of type 'void *'
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../../sparc/kmdb/kmdb_kdi_isadep.c:160 kdi_halt_cpu() warn: inconsistent indenting

    ../../../sparc/kmdb/kmdb_makecontext.c: In function 'kmdb_makecontext':
    ../../../sparc/kmdb/kmdb_makecontext.c:62: error: assignment makes integer from pointer without a cast
    ../../../sparc/kmdb/kmdb_makecontext.c:63: error: assignment makes integer from pointer without a cast

    ../../../sparc/kmdb/kaif.c: In function 'kaif_wapt_reserve':
    ../../../sparc/kmdb/kaif.c:400: error: comparison between pointer and integer
    ../../../sparc/kmdb/kaif.c: In function 'kaif_wapt_release':
    ../../../sparc/kmdb/kaif.c:416: error: assignment makes integer from pointer without a cast
    ../../../sparc/kmdb/kaif.c: In function 'kaif_wapt_set_regs':
    ../../../sparc/kmdb/kaif.c:490: error: passing argument 2 of 'rdasi' makes integer from pointer without a cast
    /code/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/kmdb_asmutil.h:45: note: expected 'uintptr_t' but argument is of type 'void *'
    ../../../sparc/kmdb/kaif.c:493: error: passing argument 2 of 'wrasi' makes integer from pointer without a cast
    /code/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/kmdb_asmutil.h:46: note: expected 'uintptr_t' but argument is of type 'void *'
    ../../../sparc/kmdb/kaif.c: In function 'kaif_wapt_clear_regs':
    ../../../sparc/kmdb/kaif.c:504: error: passing argument 2 of 'rdasi' makes integer from pointer without a cast
    /code/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/kmdb_asmutil.h:45: note: expected 'uintptr_t' but argument is of type 'void *'
    ../../../sparc/kmdb/kaif.c:506: error: passing argument 2 of 'wrasi' makes integer from pointer without a cast
    /code/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/kmdb_asmutil.h:46: note: expected 'uintptr_t' but argument is of type 'void *'
    ../../../sparc/kmdb/kaif.c: In function 'kaif_dump_crumbs':
    ../../../sparc/kmdb/kaif.c:801: error: comparison between pointer and integer

    ../../../sparc/kmdb/kmdb_promif_isadep.c: In function 'kmdb_prom_get_ddi_prop':
    ../../../sparc/kmdb/kmdb_promif_isadep.c:78: error: comparison between pointer and integer

    ../../../sparc/modules/intr/intr.c: In function 'intr_walk_init':
    ../../../sparc/modules/intr/intr.c:67: error: assignment makes integer from pointer without a cast

    ../../../common/modules/sd/sd.c: In function 'ssd_state_walk_init':
    ../../../common/modules/sd/sd.c:336: error: comparison between pointer and integer

    ../../../common/mdb/mdb_cmds.c: In function 'cmd_findsym':
    ../../../common/mdb/mdb_cmds.c:1959: error: comparison between pointer and integer
    ../../../common/mdb/mdb_cmds.c:1966: error: assignment makes integer from pointer without a cast

Actions

Also available in: Atom PDF