mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
* 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:
@ -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);
|
||||
|
Reference in New Issue
Block a user