diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-04-12 16:04:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-04-12 16:04:43 +0000 |
commit | 0d18d7205b3ab45b0e44465111e178e83c8555da (patch) | |
tree | 3c9647c017c7aeb21da545a1ccb4144e7081c147 /gdb/remote-sim.c | |
parent | e377ca52199a29a8502389c4d29d8517903b7f2f (diff) | |
download | gdb-0d18d7205b3ab45b0e44465111e178e83c8555da.zip gdb-0d18d7205b3ab45b0e44465111e178e83c8555da.tar.gz gdb-0d18d7205b3ab45b0e44465111e178e83c8555da.tar.bz2 |
gdb: constify remote files_info
The sim and m32r remote targets declare a local "file" variable and only
assign const strings to it before passing it to a printf() func. So add
const markings to avoid gcc warnings like:
gdb/remote-sim.c: In function 'gdbsim_files_info':
gdb/remote-sim.c:789: warning: initialization discards qualifiers
from pointer target type
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 9f1adc7..53f3109 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -793,7 +793,7 @@ gdbsim_xfer_inferior_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, static void gdbsim_files_info (struct target_ops *target) { - char *file = "nothing"; + const char *file = "nothing"; if (exec_bfd) file = bfd_get_filename (exec_bfd); |