* corelow.c (core_open): Use IS_ABSOLUTE_PATH.
(filenames.h): New include. * Makefile.in (corelow.o): Add dependency for filenames.h.
This commit is contained in:
parent
d35a425727
commit
f90c07ac03
3 changed files with 9 additions and 2 deletions
|
@ -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>
|
2008-02-08 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* source.c (find_and_open_source): Always rewrite absolute filenames.
|
* source.c (find_and_open_source): Always rewrite absolute filenames.
|
||||||
|
|
|
@ -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) \
|
$(inferior_h) $(symtab_h) $(command_h) $(bfd_h) $(target_h) \
|
||||||
$(gdbcore_h) $(gdbthread_h) $(regcache_h) $(regset_h) $(symfile_h) \
|
$(gdbcore_h) $(gdbthread_h) $(regcache_h) $(regset_h) $(symfile_h) \
|
||||||
$(exec_h) $(readline_h) $(gdb_assert_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) \
|
core-regset.o: core-regset.c $(defs_h) $(command_h) $(gdbcore_h) \
|
||||||
$(inferior_h) $(target_h) $(regcache_h) $(gdb_string_h) $(gregset_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) \
|
cp-abi.o: cp-abi.c $(defs_h) $(value_h) $(cp_abi_h) $(command_h) $(gdbcmd_h) \
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
#include "gdb_assert.h"
|
#include "gdb_assert.h"
|
||||||
#include "exceptions.h"
|
#include "exceptions.h"
|
||||||
#include "solib.h"
|
#include "solib.h"
|
||||||
|
#include "filenames.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef O_LARGEFILE
|
#ifndef O_LARGEFILE
|
||||||
|
@ -271,7 +272,7 @@ core_open (char *filename, int from_tty)
|
||||||
}
|
}
|
||||||
|
|
||||||
filename = tilde_expand (filename);
|
filename = tilde_expand (filename);
|
||||||
if (filename[0] != '/')
|
if (!IS_ABSOLUTE_PATH(filename))
|
||||||
{
|
{
|
||||||
temp = concat (current_directory, "/", filename, (char *)NULL);
|
temp = concat (current_directory, "/", filename, (char *)NULL);
|
||||||
xfree (filename);
|
xfree (filename);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue