aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-08-26 16:47:05 +0000
committerPedro Alves <palves@redhat.com>2010-08-26 16:47:05 +0000
commit331e2f5f988e91f174b9c977879a3aa856e83fc4 (patch)
treed1fb6b5d8f6248488c278c80a2c786c7882a5fb8 /gdb/gdbserver
parente581f2b4a7a47be66f64098c6bb8b2aaf7f34fe2 (diff)
downloadgdb-331e2f5f988e91f174b9c977879a3aa856e83fc4.zip
gdb-331e2f5f988e91f174b9c977879a3aa856e83fc4.tar.gz
gdb-331e2f5f988e91f174b9c977879a3aa856e83fc4.tar.bz2
* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/mem-break.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 897bb2d..ddc6e98 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
2010-08-26 Pedro Alves <pedro@codesourcery.com>
+ * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
+
+2010-08-26 Pedro Alves <pedro@codesourcery.com>
+
* gdbreplay.c (remote_error): New.
(gdbchar): New.
(expect): Use gdbchar. Check for error reading from GDB.
diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c
index 1b08415..687414b 100644
--- a/gdb/gdbserver/mem-break.c
+++ b/gdb/gdbserver/mem-break.c
@@ -20,6 +20,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "server.h"
+#if HAVE_MALLOC_H
+#include <malloc.h>
+#endif
const unsigned char *breakpoint_data;
int breakpoint_len;