diff options
author | Tom Tromey <tromey@redhat.com> | 2014-07-22 10:56:01 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-30 08:02:53 -0600 |
commit | 014f9477f4bdb04ca3accad0a7c986c2dff90e1f (patch) | |
tree | 9f39adfc47d300d5a71c482a15c28631ee58d8c4 /gdb/nto-procfs.c | |
parent | e799154c3bf1aac0bffd869df5eed7a959305d00 (diff) | |
download | gdb-014f9477f4bdb04ca3accad0a7c986c2dff90e1f.zip gdb-014f9477f4bdb04ca3accad0a7c986c2dff90e1f.tar.gz gdb-014f9477f4bdb04ca3accad0a7c986c2dff90e1f.tar.bz2 |
constify to_open
This makes target_ops::to_open take a const string and then fixes the
fallout.
There were a few of these I could not build. However I eyeballed it
and in any case the fixes should generally be trivial.
This is based on the patch to fix up the target debugging for to_open,
because that changes gdb to not directly install to_open as the target
command
2014-07-30 Tom Tromey <tromey@redhat.com>
* bsd-kvm.c (bsd_kvm_open): Constify.
* corelow.c (core_open): Constify.
* ctf.c (ctf_open): Constify.
* dbug-rom.c (dbug_open): Constify.
* exec.c (exec_open): Constify.
* m32r-rom.c (m32r_open, mon2000_open): Constify.
* microblaze-rom.c (picobug_open): Constify.
* nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
Constify.
* ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
* record-btrace.c (record_btrace_open): Constify.
* record-full.c (record_full_core_open_1, record_full_open_1)
(record_full_open): Constify.
* remote-m32r-sdi.c (m32r_open): Constify.
* remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
(rockhopper_open, lsi_open): Constify.
* remote-sim.c (gdbsim_open): Constify.
* remote.c (remote_open, extended_remote_open, remote_open_1):
Constify.
* target.h (struct target_ops) <to_open>: Make "arg" const.
* tracefile-tfile.c (tfile_open): Constify.
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r-- | gdb/nto-procfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 728d6f3..ff8f2af 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -106,7 +106,7 @@ procfs_is_nto_target (bfd *abfd) will be a QNX node string, eg: "/net/some_node". If arg is not a valid QNX node, we will default to local. */ static void -procfs_open_1 (struct target_ops *ops, char *arg, int from_tty) +procfs_open_1 (struct target_ops *ops, const char *arg, int from_tty) { char *nodestr; char *endstr; @@ -1395,7 +1395,7 @@ static struct target_ops *nto_native_ops; /* to_open implementation for "target procfs". */ static void -procfs_open (char *arg, int from_tty) +procfs_open (const char *arg, int from_tty) { procfs_open_1 (&nto_procfs_ops, arg, from_tty); } @@ -1403,7 +1403,7 @@ procfs_open (char *arg, int from_tty) /* to_open implementation for "target native". */ static void -procfs_native_open (char *arg, int from_tty) +procfs_native_open (const char *arg, int from_tty) { procfs_open_1 (nto_native_ops, arg, from_tty); } |