aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2019-07-23 09:19:09 -0700
committerPaul Eggert2019-07-23 09:23:20 -0700
commit8dd5b6ea56c38669bc98104ee2d6b31496624d28 (patch)
tree3c0f5d0259478f97052fd21585cb24d5d105437c /src
parent29a7d73d195761e8309a4fe23872888758436d1e (diff)
downloademacs-8dd5b6ea56c38669bc98104ee2d6b31496624d28.tar.gz
emacs-8dd5b6ea56c38669bc98104ee2d6b31496624d28.zip
Improve pdumper doc; say unexec is deprecated
Say that pdumping cannot redump unless -batch is used. Say that the traditional unexec dumping method is by default not available, and is deprecated. Don't call dump files "portable", as dump files are not any more portable than the Emacs executables themselves. Just call them "dump files". Similar, prefer "portable dumper" (since the dumper code is portable) to "portable dumping" (since the dump file is not). Be more systematic about calling them "dump files" instead of "dumped images" or whatnot.
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c4
-rw-r--r--src/emacs.c6
-rw-r--r--src/minibuf.c2
-rw-r--r--src/pdumper.c10
-rw-r--r--src/pdumper.h4
-rw-r--r--src/unexaix.c2
6 files changed, 14 insertions, 14 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 5d8003ffb5c..f256ff71b07 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4531,9 +4531,9 @@ mark_maybe_object (Lisp_Object obj)
4531 4531
4532 void *po = XPNTR (obj); 4532 void *po = XPNTR (obj);
4533 4533
4534 /* If the pointer is in the dumped image and the dump has a record 4534 /* If the pointer is in the dump image and the dump has a record
4535 of the object starting at the place where the pointer points, we 4535 of the object starting at the place where the pointer points, we
4536 definitely have an object. If the pointer is in the dumped image 4536 definitely have an object. If the pointer is in the dump image
4537 and the dump has no idea what the pointer is pointing at, we 4537 and the dump has no idea what the pointer is pointing at, we
4538 definitely _don't_ have an object. */ 4538 definitely _don't_ have an object. */
4539 if (pdumper_object_p (po)) 4539 if (pdumper_object_p (po))
diff --git a/src/emacs.c b/src/emacs.c
index ad661a081b5..cc5818393a3 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -686,7 +686,7 @@ dump_error_to_string (enum pdumper_load_result result)
686} 686}
687 687
688/* Find a path (absolute or relative) to the Emacs executable. 688/* Find a path (absolute or relative) to the Emacs executable.
689 Called early in initialization by portable dump loading code, so we 689 Called early in initialization by portable dumper loading code, so we
690 can't use lisp and associated machinery. On success, *EXENAME is 690 can't use lisp and associated machinery. On success, *EXENAME is
691 set to a heap-allocated string giving a path to the Emacs 691 set to a heap-allocated string giving a path to the Emacs
692 executable or to NULL if we can't determine the path immediately. 692 executable or to NULL if we can't determine the path immediately.
@@ -801,12 +801,12 @@ load_pdump (int argc, char **argv)
801 ; 801 ;
802 802
803 /* TODO: maybe more thoroughly scrub process environment in order to 803 /* TODO: maybe more thoroughly scrub process environment in order to
804 make this use case (loading a pdumper image in an unexeced emacs) 804 make this use case (loading a dump file in an unexeced emacs)
805 possible? Right now, we assume that things we don't touch are 805 possible? Right now, we assume that things we don't touch are
806 zero-initialized, and in an unexeced Emacs, this assumption 806 zero-initialized, and in an unexeced Emacs, this assumption
807 doesn't hold. */ 807 doesn't hold. */
808 if (initialized) 808 if (initialized)
809 fatal ("cannot load pdumper image in unexeced Emacs"); 809 fatal ("cannot load dump file in unexeced Emacs");
810 810
811 /* Look for an explicitly-specified dump file. */ 811 /* Look for an explicitly-specified dump file. */
812 const char *path_exec = PATH_EXEC; 812 const char *path_exec = PATH_EXEC;
diff --git a/src/minibuf.c b/src/minibuf.c
index d9a6e15b05d..8920f37827d 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1885,7 +1885,7 @@ init_minibuf_once_for_pdumper (void)
1885 PDUMPER_IGNORE (minibuf_prompt_width); 1885 PDUMPER_IGNORE (minibuf_prompt_width);
1886 1886
1887 /* We run this function on first initialization and whenever we 1887 /* We run this function on first initialization and whenever we
1888 restore from a pdumper image. pdumper doesn't try to preserve 1888 restore from a dump file. pdumper doesn't try to preserve
1889 frames, windows, and so on, so reset everything related here. */ 1889 frames, windows, and so on, so reset everything related here. */
1890 Vminibuffer_list = Qnil; 1890 Vminibuffer_list = Qnil;
1891 minibuf_level = 0; 1891 minibuf_level = 0;
diff --git a/src/pdumper.c b/src/pdumper.c
index cda8b40be4c..84147353e85 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -333,8 +333,8 @@ dump_fingerprint (char const *label,
333 fprintf (stderr, "%s: %.*s\n", label, hexbuf_size, hexbuf); 333 fprintf (stderr, "%s: %.*s\n", label, hexbuf_size, hexbuf);
334} 334}
335 335
336/* Format of an Emacs portable dump file. All offsets are relative to 336/* Format of an Emacs dump file. All offsets are relative to
337 the beginning of the file. An Emacs portable dump file is coupled 337 the beginning of the file. An Emacs dump file is coupled
338 to exactly the Emacs binary that produced it, so details of 338 to exactly the Emacs binary that produced it, so details of
339 alignment and endianness are unimportant. 339 alignment and endianness are unimportant.
340 340
@@ -3990,7 +3990,7 @@ dump_drain_deferred_symbols (struct dump_context *ctx)
3990DEFUN ("dump-emacs-portable", 3990DEFUN ("dump-emacs-portable",
3991 Fdump_emacs_portable, Sdump_emacs_portable, 3991 Fdump_emacs_portable, Sdump_emacs_portable,
3992 1, 2, 0, 3992 1, 2, 0,
3993 doc: /* Dump current state of Emacs into portable dump file FILENAME. 3993 doc: /* Dump current state of Emacs into dump file FILENAME.
3994If TRACK-REFERRERS is non-nil, keep additional debugging information 3994If TRACK-REFERRERS is non-nil, keep additional debugging information
3995that can help track down the provenance of unsupported object 3995that can help track down the provenance of unsupported object
3996types. */) 3996types. */)
@@ -5470,14 +5470,14 @@ pdumper_record_wd (const char *wd)
5470 5470
5471DEFUN ("pdumper-stats", Fpdumper_stats, Spdumper_stats, 0, 0, 0, 5471DEFUN ("pdumper-stats", Fpdumper_stats, Spdumper_stats, 0, 0, 0,
5472 doc: /* Return statistics about portable dumping used by this session. 5472 doc: /* Return statistics about portable dumping used by this session.
5473If this Emacs sesion was started from a portable dump file, 5473If this Emacs session was started from a dump file,
5474the return value is an alist of the form: 5474the return value is an alist of the form:
5475 5475
5476 ((dumped-with-pdumper . t) (load-time . TIME) (dump-file-name . FILE)) 5476 ((dumped-with-pdumper . t) (load-time . TIME) (dump-file-name . FILE))
5477 5477
5478where TIME is the time in seconds it took to restore Emacs state 5478where TIME is the time in seconds it took to restore Emacs state
5479from the dump file, and FILE is the name of the dump file. 5479from the dump file, and FILE is the name of the dump file.
5480Value is nil if this session was not started using a portable dump file.*/) 5480Value is nil if this session was not started using a dump file.*/)
5481 (void) 5481 (void)
5482{ 5482{
5483 if (!dumped_with_pdumper_p ()) 5483 if (!dumped_with_pdumper_p ())
diff --git a/src/pdumper.h b/src/pdumper.h
index ab2f426c1e9..5d1e9c3aea3 100644
--- a/src/pdumper.h
+++ b/src/pdumper.h
@@ -35,7 +35,7 @@ INLINE_HEADER_BEGIN
35 variables to which the Lisp heap points. It doesn't know anything 35 variables to which the Lisp heap points. It doesn't know anything
36 about other C variables. The functions below allow code from other 36 about other C variables. The functions below allow code from other
37 parts of Emacs to tell the portable dumper about other bits of 37 parts of Emacs to tell the portable dumper about other bits of
38 information to preserve in dumped images. 38 information to preserve in dump files.
39 39
40 These memory-records are themselves preserved in the dump, so call 40 These memory-records are themselves preserved in the dump, so call
41 the functions below only on the !initialized init path, just 41 the functions below only on the !initialized init path, just
@@ -44,7 +44,7 @@ INLINE_HEADER_BEGIN
44 There are no special functions to preserve a global Lisp_Object. 44 There are no special functions to preserve a global Lisp_Object.
45 You should just staticpro these. */ 45 You should just staticpro these. */
46 46
47/* Remember the value of THING in dumped images. THING must not 47/* Remember the value of THING in dump files. THING must not
48 contain any pointers or Lisp_Object variables: these values are not 48 contain any pointers or Lisp_Object variables: these values are not
49 valid across dump and load. */ 49 valid across dump and load. */
50#define PDUMPER_REMEMBER_SCALAR(thing) \ 50#define PDUMPER_REMEMBER_SCALAR(thing) \
diff --git a/src/unexaix.c b/src/unexaix.c
index 349d3653830..c95486cf72a 100644
--- a/src/unexaix.c
+++ b/src/unexaix.c
@@ -1,4 +1,4 @@
1/* Dump an executable image. 1/* Dump an executable file.
2 Copyright (C) 1985-1988, 1999, 2001-2019 Free Software Foundation, 2 Copyright (C) 1985-1988, 1999, 2001-2019 Free Software Foundation,
3 Inc. 3 Inc.
4 4