diff options
author | Eli Zaretskii <eliz@gnu.org> | 2008-02-09 13:45:33 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2008-02-09 13:45:33 +0000 |
commit | f90c07ac031fd017724d069de5ef13b97e55797b (patch) | |
tree | b569ce37d5638653086781b7d5ec2fd4e628872e /gdb | |
parent | d35a4257276c67643ab55d733e5404bd43e7a2e0 (diff) | |
download | gdb-f90c07ac031fd017724d069de5ef13b97e55797b.zip gdb-f90c07ac031fd017724d069de5ef13b97e55797b.tar.gz gdb-f90c07ac031fd017724d069de5ef13b97e55797b.tar.bz2 |
* corelow.c (core_open): Use IS_ABSOLUTE_PATH.
(filenames.h): New include.
* Makefile.in (corelow.o): Add dependency for filenames.h.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/Makefile.in | 2 | ||||
-rw-r--r-- | gdb/corelow.c | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d936dfd..9d1e255 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> + + * corelow.c (core_open): Use IS_ABSOLUTE_PATH. + (filenames.h): New include. + * Makefile.in (corelow.o): Add dependency for filenames.h. + 2008-02-08 Doug Evans <dje@google.com> * source.c (find_and_open_source): Always rewrite absolute filenames. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index a471f8e..fadd3bf 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1995,7 +1995,7 @@ corelow.o: corelow.c $(defs_h) $(arch_utils_h) $(gdb_string_h) $(frame_h) \ $(inferior_h) $(symtab_h) $(command_h) $(bfd_h) $(target_h) \ $(gdbcore_h) $(gdbthread_h) $(regcache_h) $(regset_h) $(symfile_h) \ $(exec_h) $(readline_h) $(gdb_assert_h) \ - $(exceptions_h) $(solib_h) + $(exceptions_h) $(solib_h) $(filenames_h) core-regset.o: core-regset.c $(defs_h) $(command_h) $(gdbcore_h) \ $(inferior_h) $(target_h) $(regcache_h) $(gdb_string_h) $(gregset_h) cp-abi.o: cp-abi.c $(defs_h) $(value_h) $(cp_abi_h) $(command_h) $(gdbcmd_h) \ diff --git a/gdb/corelow.c b/gdb/corelow.c index be56221..061743b 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -44,6 +44,7 @@ #include "gdb_assert.h" #include "exceptions.h" #include "solib.h" +#include "filenames.h" #ifndef O_LARGEFILE @@ -271,7 +272,7 @@ core_open (char *filename, int from_tty) } filename = tilde_expand (filename); - if (filename[0] != '/') + if (!IS_ABSOLUTE_PATH(filename)) { temp = concat (current_directory, "/", filename, (char *)NULL); xfree (filename); |