This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Include "gdb_string.h" into dsrec.c
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 27 Aug 2003 20:50:57 -0400
- Subject: [ob] Include "gdb_string.h" into dsrec.c
FYI,
My recently added call to strlen() lacked a declaration (but only on
some systems).
committed,
Andrew
2003-08-27 Andrew Cagney <cagney@redhat.com>
* dsrec.c: Include "gdb_string.h".
* Makefile.in (dsrec.o): Update dependencies.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.431
diff -u -r1.431 Makefile.in
--- Makefile.in 20 Aug 2003 20:22:41 -0000 1.431
+++ Makefile.in 28 Aug 2003 00:47:34 -0000
@@ -1701,7 +1701,8 @@
doublest.o: doublest.c $(defs_h) $(doublest_h) $(floatformat_h) \
$(gdb_assert_h) $(gdb_string_h) $(gdbtypes_h)
dpx2-nat.o: dpx2-nat.c $(defs_h) $(gdbcore_h) $(gdb_string_h)
-dsrec.o: dsrec.c $(defs_h) $(serial_h) $(srec_h) $(gdb_assert_h)
+dsrec.o: dsrec.c $(defs_h) $(serial_h) $(srec_h) $(gdb_assert_h) \
+ $(gdb_string_h)
dummy-frame.o: dummy-frame.c $(defs_h) $(dummy_frame_h) $(regcache_h) \
$(frame_h) $(inferior_h) $(gdb_assert_h) $(frame_unwind_h) \
$(command_h) $(gdbcmd_h)
Index: dsrec.c
===================================================================
RCS file: /cvs/src/src/gdb/dsrec.c,v
retrieving revision 1.12
diff -u -r1.12 dsrec.c
--- dsrec.c 12 Aug 2003 19:34:20 -0000 1.12
+++ dsrec.c 28 Aug 2003 00:47:35 -0000
@@ -24,6 +24,7 @@
#include "srec.h"
#include <time.h>
#include "gdb_assert.h"
+#include "gdb_string.h"
extern void report_transfer_performance (unsigned long, time_t, time_t);