diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-19 15:24:55 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-19 15:24:55 +0000 |
commit | 51a5cd9059b96a2ac33cf149d369db12b891fd96 (patch) | |
tree | f5e5827454ba1b61f62888034c4832bc0c37b182 /gdb/linux-tdep.c | |
parent | a993366103a671e95f5721e5517f8a68149d4d0a (diff) | |
download | gdb-51a5cd9059b96a2ac33cf149d369db12b891fd96.zip gdb-51a5cd9059b96a2ac33cf149d369db12b891fd96.tar.gz gdb-51a5cd9059b96a2ac33cf149d369db12b891fd96.tar.bz2 |
Cast result of obstack_base to gdb_byte * in a couple spots.
obstack_base returns char *. Need to cast to gdb_byte * in a couple spots.
gdb/
2013-04-19 Pedro Alves <palves@redhat.com>
* c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
gdb_byte *.
* linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
Diffstat (limited to 'gdb/linux-tdep.c')
-rw-r--r-- | gdb/linux-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 9623d19..bfb6404 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -993,8 +993,8 @@ linux_make_mappings_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, if (mapping_data.file_count != 0) { /* Write the count to the obstack. */ - pack_long (obstack_base (&data_obstack), long_type, - mapping_data.file_count); + pack_long ((gdb_byte *) obstack_base (&data_obstack), + long_type, mapping_data.file_count); /* Copy the filenames to the data obstack. */ obstack_grow (&data_obstack, obstack_base (&filename_obstack), |