aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-01-07 17:48:07 +0800
committerYao Qi <yao@codesourcery.com>2014-01-08 10:44:20 +0800
commitd64ad97c6ba5a1deb97788fd015b60459f64a753 (patch)
treeff476b2a06dcd03caf4742376f82c007bb954f42 /gdb/ChangeLog
parentf93ba80c9848d3cf4bd2a3d05d9c1f86239b60ef (diff)
downloadgdb-d64ad97c6ba5a1deb97788fd015b60459f64a753.zip
gdb-d64ad97c6ba5a1deb97788fd015b60459f64a753.tar.gz
gdb-d64ad97c6ba5a1deb97788fd015b60459f64a753.tar.bz2
Pass name to symbol_file_add_from_bfd
This patch fixes the following build error: ../../binutils-gdb/gdb/spu-linux-nat.c:383:5: error: passing argument 2 of ‘symbol_file_add_from_bfd’ makes pointer from integer without a cast [-Werror] In file included from ../../binutils-gdb/gdb/spu-linux-nat.c:29:0: ../../binutils-gdb/gdb/symfile.h:444:24: note: expected ‘const char *’ but argument is of type ‘int’ ../../binutils-gdb/gdb/spu-linux-nat.c:383:5: error: passing argument 3 of ‘symbol_file_add_from_bfd’ makes integer from pointer without a cast [-Werror] In file included from ../../binutils-gdb/gdb/spu-linux-nat.c:29:0: ../../binutils-gdb/gdb/symfile.h:444:24: note: expected ‘int’ but argument is of type ‘void *’ ../../binutils-gdb/gdb/spu-linux-nat.c:383:5: error: passing argument 5 of ‘symbol_file_add_from_bfd’ makes integer from pointer without a cast [-Werror] In file included from ../../binutils-gdb/gdb/spu-linux-nat.c:29:0: ../../binutils-gdb/gdb/symfile.h:444:24: note: expected ‘int’ but argument is of type ‘void *’ ../../binutils-gdb/gdb/spu-linux-nat.c:383:5: error: too few arguments to function ‘symbol_file_add_from_bfd’ Argument 'name' was added to function symbol_file_add_from_bfd by this patch [patchv4 4/5] Keep objfile original filename https://sourceware.org/ml/gdb-patches/2013-09/msg00683.html but caller of symbol_file_add_from_bfd in spu-linux-nat.c wasn't updated. This patch fixes the build error. gdb: 2014-01-08 Yao Qi <yao@codesourcery.com> * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass return value of bfd_get_filename to symbol_file_add_from_bfd.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 152d9eb..e5c7bdc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-08 Yao Qi <yao@codesourcery.com>
+
+ * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
+ return value of bfd_get_filename to symbol_file_add_from_bfd.
+
2014-01-08 Pierre Muller <muller@sourceware.org>
Fix PR16201.