dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / sgs / liblddbg / common / args.c
blob4e0559adf79addd3c6fabe46e9348bf1e822e99b
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
26 #include <debug.h>
27 #include "_debug.h"
28 #include "msg.h"
30 void
31 Dbg_args_option(Lm_list *lml, int ndx, int c, char *optarg)
33 if (DBG_NOTCLASS(DBG_C_ARGS))
34 return;
36 if (optarg)
37 dbg_print(lml, MSG_INTL(MSG_ARG_OPTARG), ndx, c, optarg);
38 else
39 dbg_print(lml, MSG_INTL(MSG_ARG_OPTION), ndx, c);
42 void
43 Dbg_args_str2chr(Lm_list *lml, int ndx, const char *opt, int c)
45 if (DBG_NOTCLASS(DBG_C_ARGS))
46 return;
48 dbg_print(lml, MSG_INTL(MSG_ARG_STR2CHR), ndx, opt, c);
51 void
52 Dbg_args_Wldel(Lm_list *lml, int ndx, const char *opt)
54 if (DBG_NOTCLASS(DBG_C_ARGS))
55 return;
57 dbg_print(lml, MSG_INTL(MSG_ARG_WLDEL), ndx, opt);
60 void
61 Dbg_args_file(Lm_list *lml, int ndx, char *file)
63 if (DBG_NOTCLASS(DBG_C_ARGS))
64 return;
66 dbg_print(lml, MSG_INTL(MSG_ARG_FILE), ndx, file);
71 * Report unrecognized item provided to '-z guidance' option.
73 void
74 Dbg_args_guidance_unknown(Lm_list *lml, const char *item)
76 if (DBG_NOTCLASS(DBG_C_ARGS))
77 return;
79 dbg_print(lml, MSG_INTL(MSG_ARG_NG_UNKNOWN), item);