diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-19 15:10:53 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-19 15:10:53 +0000 |
commit | 001f13d822104158239fe26a05d9154d967cbe56 (patch) | |
tree | 5ac633c07604f6fc9eb615d997bb626d672b8713 /gdb/solib-svr4.c | |
parent | 948f8e3d72fa7047c43a952017ad4a7c9d55ab0d (diff) | |
download | gdb-001f13d822104158239fe26a05d9154d967cbe56.zip gdb-001f13d822104158239fe26a05d9154d967cbe56.tar.gz gdb-001f13d822104158239fe26a05d9154d967cbe56.tar.bz2 |
-Wpointer-sign: gdb_byte -> char.
This is sort of the opposite of the previous patch. Places that
manipulate strings or interfaces that return strings are changed to
use char* instead of gdb_byte*.
gdb/
2013-04-19 Pedro Alves <palves@redhat.com>
* avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
it to get a string view of the byte buffer.
* i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
type to gdb_byte *. Adjust.
* linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
Change local to char *.
* solib-darwin.c (find_program_interpreter): Change return type to
char *. Adjust.
(darwin_solib_get_all_image_info_addr_at_init): Adjust.
* solib-dsbt.c (enable_break2): Change local 'buf' to char *.
* solib-frv.c (enable_break2): Change local 'buf' to char *.
* solib-spu.c (spu_current_sos): Add gdb_byte * cast.
* solib-svr4.c (find_program_interpreter): Change return type to
char *. Adjust.
(enable_break): Change local 'interp_name' to char *.
* spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
* spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
(spu_pseudo_register_write_spu): Use char for string buffer.
Adjust.
(info_spu_event_command, info_spu_signal_command): Add casts to
'char *'.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index bb2a4e9..f3bff6e 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -496,7 +496,7 @@ read_program_header (int type, int *p_sect_size, int *p_arch_size) /* Return program interpreter string. */ -static gdb_byte * +static char * find_program_interpreter (void) { gdb_byte *buf = NULL; @@ -521,7 +521,7 @@ find_program_interpreter (void) if (!buf) buf = read_program_header (PT_INTERP, NULL, NULL); - return buf; + return (char *) buf; } @@ -1446,7 +1446,7 @@ enable_break (struct svr4_info *info, int from_tty) struct minimal_symbol *msymbol; const char * const *bkpt_namep; asection *interp_sect; - gdb_byte *interp_name; + char *interp_name; CORE_ADDR sym_addr; info->interp_text_sect_low = info->interp_text_sect_high = 0; |