Skip to content

Commit 12cf3f1

Browse files
author
Nicholas Duffek
committed
* Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
(SUBDIR_CLI_SRCS): Add cli/cli-utils.c. (cli_utils_h): New variable. (cli/cli-utils.o): New rule. * cli/cli-utils.c: New file. * cli/cli-utils.h: New file.
1 parent cc533b9 commit 12cf3f1

4 files changed

Lines changed: 72 additions & 2 deletions

File tree

gdb/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2001-01-04 Nicholas Duffek <[email protected]>
2+
3+
* Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
4+
(SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
5+
(cli_utils_h): New variable.
6+
(cli/cli-utils.o): New rule.
7+
* cli/cli-utils.c: New file.
8+
* cli/cli-utils.h: New file.
9+
110
2001-01-04 Nicholas Duffek <[email protected]>
211

312
* config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,

gdb/Makefile.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ INTL_CFLAGS = -I$(INTL_DIR) -I$(INTL_SRC)
141141
# CLI sub directory definitons
142142
#
143143
SUBDIR_CLI_OBS = \
144-
cli-decode.o cli-script.o cli-cmds.o cli-setshow.o
144+
cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-utils.o
145145
SUBDIR_CLI_SRCS = \
146-
cli/cli-decode.c cli/cli-script.c cli/cli-cmds.c cli/cli-setshow.c
146+
cli/cli-decode.c cli/cli-script.c cli/cli-cmds.c cli/cli-setshow.c \
147+
cli/cli-utils.c
147148
SUBDIR_CLI_DEPS =
148149
SUBDIR_CLI_INITS =
149150
SUBDIR_CLI_LDFLAGS=
@@ -604,6 +605,7 @@ cli_decode_h = $(srcdir)/cli/cli-decode.h
604605
cli_cmds_h = $(srcdir)/cli/cli-cmds.h
605606
cli_script_h = $(srcdir)/cli/cli-script.h
606607
cli_setshow_h = $(srcdir)/cli/cli-setshow.h
608+
cli_utils_h = $(srcdir)/cli/cli-utils.h
607609
608610
# Header files that need to have srcdir added. Note that in the cases
609611
# where we use a macro like $(gdbcmd_h), things are carefully arranged
@@ -2079,6 +2081,9 @@ cli-script.o: $(srcdir)/cli/cli-script.c $(cli_script_h) \
20792081
$(defs_h) $(value_h) language.h $(ui_out_h)
20802082
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-script.c
20812083
2084+
cli-utils.o: $(srcdir)/cli/cli-utils.c $(cli_utils_h) $(defs_h)
2085+
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-utils.c
2086+
20822087
#
20832088
# MI dependencies
20842089
#

gdb/cli/cli-utils.c

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* GDB CLI utility library.
2+
Copyright 2001 Free Software Foundation, Inc.
3+
4+
This program is free software; you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation; either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program; if not, write to the Free Software
16+
Foundation, Inc., 59 Temple Place - Suite 330,
17+
Boston, MA 02111-1307, USA. */
18+
19+
#include "defs.h"
20+
#include "cli/cli-utils.h"
21+
22+
/* Write character C to gdb_stdout using GDB's paging mechanism and return C.
23+
May return nonlocally. */
24+
25+
int
26+
putchar_filtered (int c)
27+
{
28+
return fputc_filtered (c, gdb_stdout);
29+
}

gdb/cli/cli-utils.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* Header file for GDB CLI utility library.
2+
Copyright (C) 2001 Free Software Foundation, Inc.
3+
4+
This program is free software; you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation; either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program; if not, write to the Free Software
16+
Foundation, Inc., 59 Temple Place - Suite 330,
17+
Boston, MA 02111-1307, USA. */
18+
19+
#if !defined (CLI_UTILS_H)
20+
# define CLI_UTILS_H 1
21+
22+
/* Write character C to gdb_stdout using GDB's paging mechanism and return C.
23+
May return nonlocally. */
24+
25+
extern int putchar_filtered (int c);
26+
27+
#endif /* !defined (CLI_UTILS_H) */

0 commit comments

Comments
 (0)