diff options
author | Pedro Alves <palves@redhat.com> | 2016-07-21 13:02:34 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-07-21 15:40:44 +0100 |
commit | f515a1d643b599ebb8a23d3d95e9f0dfc8261a11 (patch) | |
tree | 578a6610d4bd335ddf4ce7166ee4a0fb9d487669 /gdb/go32-nat.c | |
parent | c25b7ccef4d6d96ed4af1d27c79d78767dba7161 (diff) | |
download | binutils-gdb-f515a1d643b599ebb8a23d3d95e9f0dfc8261a11.tar.gz |
Fix djgpp gdb build
- A few missing casts required by C++, resulting in:
../../src/gdb/ser-go32.c:795:21: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive]
etc.
- dos_noop has an incompatible prototype with struct serial_ops's
setparity, resulting in:
../../src/gdb/ser-go32.c:874:1: error: invalid conversion from 'int (*)(serial*)' to 'int (*)(serial*, int)' [-fpermissive]
(I thought of calling the ser-base.c default methods, but djgpp
doesn't include ser-base.c in the build.)
gdb/ChangeLog:
2016-07-21 Pedro Alves <palves@redhat.com>
* go32-nat.c (go32_create_inferior): Add cast.
* ser-go32.c (dos_noop): Delete.
(dos_flush_output, dos_setparity, dos_drain_output): New
functions.
(dos_write): Add cast.
(dos_ops): Use dos_flush_output, dos_setparity and
dos_drain_output.
* top.c (do_chdir_cleanup): Add cast.
Diffstat (limited to 'gdb/go32-nat.c')
-rw-r--r-- | gdb/go32-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 91c6d1e5f12..6e608e2e83b 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -677,7 +677,7 @@ go32_create_inferior (struct target_ops *ops, char *exec_file, if (cmdlen > 1024*1024) error (_("Command line too long.")); - cmdline = xmalloc (cmdlen + 4); + cmdline = (char *) xmalloc (cmdlen + 4); strcpy (cmdline + 1, args); /* If the command-line length fits into DOS 126-char limits, use the DOS command tail format; otherwise, tell v2loadimage to pass it |