aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-09-24 13:54:42 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-09-24 13:54:42 +0000
commit4721dc182386f8071324ed3106493cf2797344c1 (patch)
tree97573085ba128b180d27accdb52f386c5649149f /gdb
parenta61d6db83d94b3956816f5e1f8c3837ac514fc27 (diff)
downloadgdb-4721dc182386f8071324ed3106493cf2797344c1.zip
gdb-4721dc182386f8071324ed3106493cf2797344c1.tar.gz
gdb-4721dc182386f8071324ed3106493cf2797344c1.tar.bz2
Code cleanup: rename variable
gdb/ 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com> Code cleanup. * probe.c (parse_probes): Rename variable objfile_name to objfile_namestr.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/probe.c14
2 files changed, 13 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3f3c720..6dbb51d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Code cleanup.
+ * probe.c (parse_probes): Rename variable objfile_name to
+ objfile_namestr.
+
+2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
Remove solib-sunos.c.
* Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
* config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
diff --git a/gdb/probe.c b/gdb/probe.c
index c313c38..4d8b92b 100644
--- a/gdb/probe.c
+++ b/gdb/probe.c
@@ -41,7 +41,7 @@ struct symtabs_and_lines
parse_probes (char **argptr, struct linespec_result *canonical)
{
char *arg_start, *arg_end, *arg;
- char *objfile_name = NULL, *provider = NULL, *name, *p;
+ char *objfile_namestr = NULL, *provider = NULL, *name, *p;
struct cleanup *cleanup;
struct symtabs_and_lines result;
struct objfile *objfile;
@@ -92,7 +92,7 @@ parse_probes (char **argptr, struct linespec_result *canonical)
{
/* This is `-p objfile:provider:name'. */
*p = '\0';
- objfile_name = arg;
+ objfile_namestr = arg;
provider = hold;
name = p + 1;
}
@@ -102,7 +102,7 @@ parse_probes (char **argptr, struct linespec_result *canonical)
error (_("no probe name specified"));
if (provider && *provider == '\0')
error (_("invalid provider name"));
- if (objfile_name && *objfile_name == '\0')
+ if (objfile_namestr && *objfile_namestr == '\0')
error (_("invalid objfile name"));
ALL_PSPACES (pspace)
@@ -115,9 +115,9 @@ parse_probes (char **argptr, struct linespec_result *canonical)
if (!objfile->sf || !objfile->sf->sym_probe_fns)
continue;
- if (objfile_name
- && FILENAME_CMP (objfile->name, objfile_name) != 0
- && FILENAME_CMP (lbasename (objfile->name), objfile_name) != 0)
+ if (objfile_namestr
+ && FILENAME_CMP (objfile->name, objfile_namestr) != 0
+ && FILENAME_CMP (lbasename (objfile->name), objfile_namestr) != 0)
continue;
probes = objfile->sf->sym_probe_fns->sym_get_probes (objfile);
@@ -155,7 +155,7 @@ parse_probes (char **argptr, struct linespec_result *canonical)
{
throw_error (NOT_FOUND_ERROR,
_("No probe matching objfile=`%s', provider=`%s', name=`%s'"),
- objfile_name ? objfile_name : _("<any>"),
+ objfile_namestr ? objfile_namestr : _("<any>"),
provider ? provider : _("<any>"),
name);
}