aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-06-24 16:06:49 +0100
committerGary Benson <gbenson@redhat.com>2015-06-25 09:31:07 +0100
commita3be80c3c54e9e2c0d8e9a1ff77c931cd8ebeb60 (patch)
tree21d6dbc895dd38aebad7bcfdd748dc0284817e15 /gdb/exec.c
parent53f7371c77f50aea587cf06bf4cc79273ee1382e (diff)
downloadgdb-a3be80c3c54e9e2c0d8e9a1ff77c931cd8ebeb60.zip
gdb-a3be80c3c54e9e2c0d8e9a1ff77c931cd8ebeb60.tar.gz
gdb-a3be80c3c54e9e2c0d8e9a1ff77c931cd8ebeb60.tar.bz2
Remove gdb_sysroot NULL checks
Since fed040c6a50399617d8265cbddc7fd21b3f134ef gdb_sysroot is never NULL. This commit removes all gdb_sysroot NULL checks. gdb/ChangeLog: * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check. * infrun.c (follow_exec): Likewise. * remote.c (remote_filesystem_is_local): Likewise. * solib.c (solib_find_1): Likewise.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 8a4ab6f..3dfc437 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -154,8 +154,7 @@ exec_file_locate_attach (int pid, int from_tty)
/* If gdb_sysroot is not empty and the discovered filename
is absolute then prefix the filename with gdb_sysroot. */
- if (gdb_sysroot != NULL && *gdb_sysroot != '\0'
- && IS_ABSOLUTE_PATH (exec_file))
+ if (*gdb_sysroot != '\0' && IS_ABSOLUTE_PATH (exec_file))
full_exec_path = exec_file_find (exec_file, NULL);
if (full_exec_path == NULL)