aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-11-04 00:46:46 +0000
committerKevin Buettner <kevinb@redhat.com>2000-11-04 00:46:46 +0000
commit74f832daf0e6d104b3283160fcffe5b387905c13 (patch)
tree79fe9339108787f22d432a6b6888a89c3f53d8c6 /gdb
parenta275699e3adcd25657fb93e3075c3cda0c378541 (diff)
downloadgdb-74f832daf0e6d104b3283160fcffe5b387905c13.zip
gdb-74f832daf0e6d104b3283160fcffe5b387905c13.tar.gz
gdb-74f832daf0e6d104b3283160fcffe5b387905c13.tar.bz2
Protoization.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/utils.c24
2 files changed, 14 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index db8a843..9a7e367 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2000-11-03 Kevin Buettner <kevinb@redhat.com>
+ * utils.c (add_continuation, add_intermediate_continuation,
+ printchar): Protoize.
+
+2000-11-03 Kevin Buettner <kevinb@redhat.com>
+
* dwarf2read.c (new_symbol): Relocate address of symbol by the
base address of the section it is in rather than always using
the base address of the .text section.
diff --git a/gdb/utils.c b/gdb/utils.c
index 0046e09..79ca40c 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -407,12 +407,11 @@ null_cleanup (void *arg)
{
}
-/* Add a continuation to the continuation list, the gloabl list
+/* Add a continuation to the continuation list, the global list
cmd_continuation. The new continuation will be added at the front.*/
void
-add_continuation (continuation_hook, arg_list)
- void (*continuation_hook) (struct continuation_arg *);
- struct continuation_arg *arg_list;
+add_continuation (void (*continuation_hook) (struct continuation_arg *),
+ struct continuation_arg *arg_list)
{
struct continuation *continuation_ptr;
@@ -472,9 +471,9 @@ discard_all_continuations (void)
/* Add a continuation to the continuation list, the global list
intermediate_continuation. The new continuation will be added at the front.*/
void
-add_intermediate_continuation (continuation_hook, arg_list)
- void (*continuation_hook) (struct continuation_arg *);
- struct continuation_arg *arg_list;
+add_intermediate_continuation (void (*continuation_hook)
+ (struct continuation_arg *),
+ struct continuation_arg *arg_list)
{
struct continuation *continuation_ptr;
@@ -1351,15 +1350,10 @@ parse_escape (char **string_ptr)
be call for printing things which are independent of the language
of the program being debugged. */
-static void printchar (int c, void (*do_fputs) (const char *, struct ui_file*), void (*do_fprintf) (struct ui_file*, const char *, ...), struct ui_file *stream, int quoter);
-
static void
-printchar (c, do_fputs, do_fprintf, stream, quoter)
- int c;
- void (*do_fputs) (const char *, struct ui_file *);
- void (*do_fprintf) (struct ui_file *, const char *, ...);
- struct ui_file *stream;
- int quoter;
+printchar (int c, void (*do_fputs) (const char *, struct ui_file *),
+ void (*do_fprintf) (struct ui_file *, const char *, ...),
+ struct ui_file *stream, int quoter)
{
c &= 0xFF; /* Avoid sign bit follies */