|
|
26bbde |
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
26bbde |
|
|
|
26bbde |
* dwarf2read.c: Include "top.c".
|
|
|
26bbde |
(dwarf2_has_info): Check for readnever_symbol_files.
|
|
|
26bbde |
* symfile.c (readnever_symbol_files): Define.
|
|
|
26bbde |
* top.h (readnever_symbol_files): Declare.
|
|
|
26bbde |
* main.c (captured_main): Add --readnever option.
|
|
|
26bbde |
(print_gdb_help): Ditto.
|
|
|
26bbde |
|
|
|
26bbde |
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
26bbde |
|
|
|
26bbde |
* gdb.texinfo (File Options): Document --readnever.
|
|
|
26bbde |
|
|
|
26bbde |
Index: gdb-7.9.50.20150520/gdb/doc/gdb.texinfo
|
|
|
26bbde |
===================================================================
|
|
|
26bbde |
--- gdb-7.9.50.20150520.orig/gdb/doc/gdb.texinfo 2015-05-31 16:34:58.436379663 +0200
|
|
|
26bbde |
+++ gdb-7.9.50.20150520/gdb/doc/gdb.texinfo 2015-05-31 16:35:03.452416381 +0200
|
|
|
26bbde |
@@ -1032,6 +1032,12 @@ Read each symbol file's entire symbol ta
|
|
|
26bbde |
the default, which is to read it incrementally as it is needed.
|
|
|
26bbde |
This makes startup slower, but makes future operations faster.
|
|
|
26bbde |
|
|
|
26bbde |
+@item --readnever
|
|
|
26bbde |
+@cindex @code{--readnever}
|
|
|
26bbde |
+Do not read each symbol file's symbolic debug information. This makes
|
|
|
26bbde |
+startup faster but at the expense of not being able to perform
|
|
|
26bbde |
+symbolic debugging.
|
|
|
26bbde |
+
|
|
|
26bbde |
@end table
|
|
|
26bbde |
|
|
|
26bbde |
@node Mode Options
|
|
|
26bbde |
Index: gdb-7.9.50.20150520/gdb/main.c
|
|
|
26bbde |
===================================================================
|
|
|
26bbde |
--- gdb-7.9.50.20150520.orig/gdb/main.c 2015-05-31 16:34:58.439379685 +0200
|
|
|
26bbde |
+++ gdb-7.9.50.20150520/gdb/main.c 2015-05-31 16:35:20.547541518 +0200
|
|
|
26bbde |
@@ -604,6 +604,7 @@ captured_main (void *data)
|
|
|
26bbde |
{"tui", no_argument, 0, OPT_TUI},
|
|
|
26bbde |
{"dbx", no_argument, &dbx_commands, 1},
|
|
|
26bbde |
{"readnow", no_argument, &readnow_symbol_files, 1},
|
|
|
26bbde |
+ {"readnever", no_argument, &readnever_symbol_files, 1},
|
|
|
26bbde |
{"r", no_argument, &readnow_symbol_files, 1},
|
|
|
26bbde |
{"quiet", no_argument, &quiet, 1},
|
|
|
26bbde |
{"q", no_argument, &quiet, 1},
|
|
|
26bbde |
@@ -1253,6 +1254,7 @@ Selection of debuggee and its files:\n\n
|
|
|
26bbde |
--se=FILE Use FILE as symbol file and executable file.\n\
|
|
|
26bbde |
--symbols=SYMFILE Read symbols from SYMFILE.\n\
|
|
|
26bbde |
--readnow Fully read symbol files on first access.\n\
|
|
|
26bbde |
+ --readnever Do not read symbol files.\n\
|
|
|
26bbde |
--write Set writing into executable and core files.\n\n\
|
|
|
26bbde |
"), stream);
|
|
|
26bbde |
fputs_unfiltered (_("\
|
|
|
26bbde |
Index: gdb-7.9.50.20150520/gdb/symfile.c
|
|
|
26bbde |
===================================================================
|
|
|
26bbde |
--- gdb-7.9.50.20150520.orig/gdb/symfile.c 2015-05-31 16:34:58.440379692 +0200
|
|
|
26bbde |
+++ gdb-7.9.50.20150520/gdb/symfile.c 2015-05-31 16:35:03.454416395 +0200
|
|
|
26bbde |
@@ -80,6 +80,7 @@ static void clear_symtab_users_cleanup (
|
|
|
26bbde |
|
|
|
26bbde |
/* Global variables owned by this file. */
|
|
|
26bbde |
int readnow_symbol_files; /* Read full symbols immediately. */
|
|
|
26bbde |
+int readnever_symbol_files; /* Never read full symbols. */
|
|
|
26bbde |
|
|
|
26bbde |
/* Functions this file defines. */
|
|
|
26bbde |
|
|
|
26bbde |
Index: gdb-7.9.50.20150520/gdb/dwarf2read.c
|
|
|
26bbde |
===================================================================
|
|
|
26bbde |
--- gdb-7.9.50.20150520.orig/gdb/dwarf2read.c 2015-05-31 16:34:58.446379736 +0200
|
|
|
26bbde |
+++ gdb-7.9.50.20150520/gdb/dwarf2read.c 2015-05-31 16:35:03.459416432 +0200
|
|
|
26bbde |
@@ -69,6 +69,7 @@
|
|
|
26bbde |
#include "source.h"
|
|
|
26bbde |
#include "filestuff.h"
|
|
|
26bbde |
#include "build-id.h"
|
|
|
26bbde |
+#include "top.h"
|
|
|
26bbde |
|
|
|
26bbde |
#include <fcntl.h>
|
|
|
26bbde |
#include <sys/types.h>
|
|
|
26bbde |
@@ -2050,7 +2051,8 @@ dwarf2_has_info (struct objfile *objfile
|
|
|
26bbde |
(void *) names);
|
|
|
26bbde |
dwarf2_per_objfile->objfile = objfile;
|
|
|
26bbde |
}
|
|
|
26bbde |
- return (!dwarf2_per_objfile->info.is_virtual
|
|
|
26bbde |
+ return !readnever_symbol_files &&
|
|
|
26bbde |
+ (!dwarf2_per_objfile->info.is_virtual
|
|
|
26bbde |
&& dwarf2_per_objfile->info.s.asection != NULL
|
|
|
26bbde |
&& !dwarf2_per_objfile->abbrev.is_virtual
|
|
|
26bbde |
&& dwarf2_per_objfile->abbrev.s.asection != NULL);
|
|
|
26bbde |
Index: gdb-7.9.50.20150520/gdb/top.h
|
|
|
26bbde |
===================================================================
|
|
|
26bbde |
--- gdb-7.9.50.20150520.orig/gdb/top.h 2015-05-31 16:34:58.448379751 +0200
|
|
|
26bbde |
+++ gdb-7.9.50.20150520/gdb/top.h 2015-05-31 16:35:03.459416432 +0200
|
|
|
26bbde |
@@ -67,6 +67,7 @@ extern void set_prompt (const char *s);
|
|
|
26bbde |
|
|
|
26bbde |
/* From random places. */
|
|
|
26bbde |
extern int readnow_symbol_files;
|
|
|
26bbde |
+extern int readnever_symbol_files;
|
|
|
26bbde |
|
|
|
26bbde |
/* Perform _initialize initialization. */
|
|
|
26bbde |
extern void gdb_init (char *);
|