projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change how DWARF index writer finds address map
[deliverable/binutils-gdb.git]
/
gdb
/
corefile.c
diff --git
a/gdb/corefile.c
b/gdb/corefile.c
index 1586e9f175a0476e3a141f33378bcc88b7483607..4ddcc06ec96cd0f2b48aceee482b4a038fab9c29 100644
(file)
--- a/
gdb/corefile.c
+++ b/
gdb/corefile.c
@@
-1,6
+1,6
@@
/* Core dump and executable file functions above target vector, for GDB.
/* Core dump and executable file functions above target vector, for GDB.
- Copyright (C) 1986-202
0
Free Software Foundation, Inc.
+ Copyright (C) 1986-202
1
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-88,8
+88,8
@@
specify_exec_file_hook (void (*hook) (const char *))
}
/* Grow the hook array by one and add the new hook to the end.
}
/* Grow the hook array by one and add the new hook to the end.
-
Yes, it's inefficient to grow it by one each time but since
-
this is hardly ever called it's not a big deal. */
+ Yes, it's inefficient to grow it by one each time but since
+ this is hardly ever called it's not a big deal. */
exec_file_hook_count++;
new_array = (hook_type *)
xrealloc (exec_file_extra_hooks,
exec_file_hook_count++;
new_array = (hook_type *)
xrealloc (exec_file_extra_hooks,
@@
-108,11
+108,11
@@
reopen_exec_file (void)
struct stat st;
/* Don't do anything if there isn't an exec file. */
struct stat st;
/* Don't do anything if there isn't an exec file. */
- if (
exec_bfd
== NULL)
+ if (
current_program_space->exec_bfd ()
== NULL)
return;
/* If the timestamp of the exec file has changed, reopen it. */
return;
/* If the timestamp of the exec file has changed, reopen it. */
- std::string filename = bfd_get_filename (
exec_bfd
);
+ std::string filename = bfd_get_filename (
current_program_space->exec_bfd ()
);
res = stat (filename.c_str (), &st);
if (res == 0
res = stat (filename.c_str (), &st);
if (res == 0
@@
-132,11
+132,13
@@
reopen_exec_file (void)
void
validate_files (void)
{
void
validate_files (void)
{
- if (
exec_bfd
&& core_bfd)
+ if (
current_program_space->exec_bfd ()
&& core_bfd)
{
{
- if (!core_file_matches_executable_p (core_bfd, exec_bfd))
+ if (!core_file_matches_executable_p (core_bfd,
+ current_program_space->exec_bfd ()))
warning (_("core file may not match specified executable file."));
warning (_("core file may not match specified executable file."));
- else if (bfd_get_mtime (exec_bfd) > bfd_get_mtime (core_bfd))
+ else if (bfd_get_mtime (current_program_space->exec_bfd ())
+ > bfd_get_mtime (core_bfd))
warning (_("exec file is newer than core file."));
}
}
warning (_("exec file is newer than core file."));
}
}
This page took
0.024348 seconds
and
4
git commands to generate.