mdb_create.c (7c478bd9) mdb_create.c (9c3024a3)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 10 unchanged lines hidden (view full) ---

19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 10 unchanged lines hidden (view full) ---

19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#pragma ident "%Z%%M% %I% %E% SMI"
27/*
28 * Copyright 2018 Joyent, Inc.
29 */
28
29#include <mdb/mdb.h>
30#include <mdb/mdb_conf.h>
31#include <mdb/mdb_module.h>
32
33#include <sys/types.h>
34#include <limits.h>
35

--- 10 unchanged lines hidden (view full) ---

46 if ((mp = mdb_module_load_builtin("mdb_proc")) != NULL)
47 mp->mod_tgt_ctor = mdb_proc_tgt_create;
48
49 if ((mp = mdb_module_load_builtin("mdb_kproc")) != NULL)
50 mp->mod_tgt_ctor = mdb_kproc_tgt_create;
51
52 if ((mp = mdb_module_load_builtin("mdb_raw")) != NULL)
53 mp->mod_tgt_ctor = mdb_rawfile_tgt_create;
30
31#include <mdb/mdb.h>
32#include <mdb/mdb_conf.h>
33#include <mdb/mdb_module.h>
34
35#include <sys/types.h>
36#include <limits.h>
37

--- 10 unchanged lines hidden (view full) ---

48 if ((mp = mdb_module_load_builtin("mdb_proc")) != NULL)
49 mp->mod_tgt_ctor = mdb_proc_tgt_create;
50
51 if ((mp = mdb_module_load_builtin("mdb_kproc")) != NULL)
52 mp->mod_tgt_ctor = mdb_kproc_tgt_create;
53
54 if ((mp = mdb_module_load_builtin("mdb_raw")) != NULL)
55 mp->mod_tgt_ctor = mdb_rawfile_tgt_create;
56
57#ifdef __amd64
58 if ((mp = mdb_module_load_builtin("mdb_bhyve")) != NULL)
59 mp->mod_tgt_ctor = mdb_bhyve_tgt_create;
60#endif
54}
55
56void
57mdb_create_loadable_disasms(void)
58{
59 DIR *dir;
60 struct dirent *dp;
61 char buf[PATH_MAX], *p, *q;

--- 28 unchanged lines hidden ---
61}
62
63void
64mdb_create_loadable_disasms(void)
65{
66 DIR *dir;
67 struct dirent *dp;
68 char buf[PATH_MAX], *p, *q;

--- 28 unchanged lines hidden ---