aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-10-27 14:57:18 +0000
committerPedro Alves <palves@redhat.com>2015-10-27 15:06:04 +0000
commit709b551853919f47b58aafbb95fd00a98bcaf76c (patch)
tree9203e4e244e5dc09fb0c65ba1df3a32a471746e1
parente0d13cbd4bcec3e8136925a3a07f85e58187da06 (diff)
downloadgdb-709b551853919f47b58aafbb95fd00a98bcaf76c.zip
gdb-709b551853919f47b58aafbb95fd00a98bcaf76c.tar.gz
gdb-709b551853919f47b58aafbb95fd00a98bcaf76c.tar.bz2
psymtab.c: Add casts
... as needed for C++. gdb/ChangeLog: 2015-10-27 Pedro Alves <palves@redhat.com> * psymtab.c (dump_psymtab_addrmap_1): Add casts.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/psymtab.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d7554a1..6c81a9f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-27 Pedro Alves <palves@redhat.com>
+
+ * psymtab.c (dump_psymtab_addrmap_1): Add casts.
+
2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
* ctf.c (SET_ENUM_FIELD): New macro.
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 6f7fec6..fa1181b 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1904,9 +1904,10 @@ struct dump_psymtab_addrmap_data
static int
dump_psymtab_addrmap_1 (void *datap, CORE_ADDR start_addr, void *obj)
{
- struct dump_psymtab_addrmap_data *data = datap;
+ struct dump_psymtab_addrmap_data *data
+ = (struct dump_psymtab_addrmap_data *) datap;
struct gdbarch *gdbarch = get_objfile_arch (data->objfile);
- struct partial_symtab *addrmap_psymtab = obj;
+ struct partial_symtab *addrmap_psymtab = (struct partial_symtab *) obj;
const char *psymtab_address_or_end = NULL;
QUIT;