gdb: rename c_printchar as language_defn::printchar

This commit removes the global function c_printchar and moves the
implementation into language_defn::printchar.

There should be no user visible changes after this commit.

gdb/ChangeLog:

	* c-lang.c (c_printchar): Rename to...
	(language_defn::printchar): ...this.
	* c-lang.h (c_printchar): Delete declaration.
	* language.c (language_defn::printchar): Delete this
	implementation.  Is now implemented in c-lang.c.
This commit is contained in:
Andrew Burgess 2020-10-20 13:33:36 +01:00
parent 2c75ccb24c
commit c5ee319e6c
4 changed files with 12 additions and 12 deletions

View File

@ -1,3 +1,11 @@
2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
* c-lang.c (c_printchar): Rename to...
(language_defn::printchar): ...this.
* c-lang.h (c_printchar): Delete declaration.
* language.c (language_defn::printchar): Delete this
implementation. Is now implemented in c-lang.c.
2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
* dwarf2/read.c (dwarf2_compute_name): Call methods on C++

View File

@ -153,8 +153,11 @@ c_emit_char (int c, struct type *type,
generic_emit_char (c, type, stream, quoter, encoding);
}
/* See language.h. */
void
c_printchar (int c, struct type *type, struct ui_file *stream)
language_defn::printchar (int c, struct type *type,
struct ui_file * stream) const
{
c_string_type str_type;

View File

@ -95,8 +95,6 @@ extern struct value *evaluate_subexp_c (struct type *expect_type,
int *pos,
enum noside noside);
extern void c_printchar (int, struct type *, struct ui_file *);
extern void c_printstr (struct ui_file * stream,
struct type *elttype,
const gdb_byte *string,

View File

@ -677,15 +677,6 @@ language_defn::emitchar (int ch, struct type *chtype,
/* See language.h. */
void
language_defn::printchar (int ch, struct type *chtype,
struct ui_file * stream) const
{
c_printchar (ch, chtype, stream);
}
/* See language.h. */
void
language_defn::printstr (struct ui_file *stream, struct type *elttype,
const gdb_byte *string, unsigned int length,