|
|
658b489 |
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
658b489 |
|
|
|
658b489 |
* dwarf2read.c: Include "top.c".
|
|
|
658b489 |
(dwarf2_has_info): Check for readnever_symbol_files.
|
|
|
658b489 |
* symfile.c (readnever_symbol_files): Define.
|
|
|
658b489 |
* top.h (readnever_symbol_files): Declare.
|
|
|
658b489 |
* main.c (captured_main): Add --readnever option.
|
|
|
658b489 |
(print_gdb_help): Ditto.
|
|
|
658b489 |
|
|
|
658b489 |
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
658b489 |
|
|
|
658b489 |
* gdb.texinfo (File Options): Document --readnever.
|
|
|
658b489 |
|
|
Jan Kratochvil |
254f0e9 |
Index: gdb-7.4.50.20111218/gdb/doc/gdb.texinfo
|
|
|
8b1b3fd |
===================================================================
|
|
Jan Kratochvil |
254f0e9 |
--- gdb-7.4.50.20111218.orig/gdb/doc/gdb.texinfo 2011-12-19 02:52:23.000000000 +0100
|
|
Jan Kratochvil |
254f0e9 |
+++ gdb-7.4.50.20111218/gdb/doc/gdb.texinfo 2011-12-19 02:52:25.765407434 +0100
|
|
Jan Kratochvil |
3b55f78 |
@@ -1005,6 +1005,12 @@ Read each symbol file's entire symbol ta
|
|
|
658b489 |
the default, which is to read it incrementally as it is needed.
|
|
|
658b489 |
This makes startup slower, but makes future operations faster.
|
|
|
658b489 |
|
|
|
658b489 |
+@item --readnever
|
|
|
658b489 |
+@cindex @code{--readnever}
|
|
|
658b489 |
+Do not read each symbol file's symbolic debug information. This makes
|
|
|
658b489 |
+startup faster but at the expense of not being able to perform
|
|
|
658b489 |
+symbolic debugging.
|
|
|
658b489 |
+
|
|
|
658b489 |
@end table
|
|
|
658b489 |
|
|
|
8b1b3fd |
@node Mode Options
|
|
Jan Kratochvil |
254f0e9 |
Index: gdb-7.4.50.20111218/gdb/main.c
|
|
|
8b1b3fd |
===================================================================
|
|
Jan Kratochvil |
254f0e9 |
--- gdb-7.4.50.20111218.orig/gdb/main.c 2011-12-19 02:52:23.000000000 +0100
|
|
Jan Kratochvil |
254f0e9 |
+++ gdb-7.4.50.20111218/gdb/main.c 2011-12-19 02:52:36.925364438 +0100
|
|
Jan Kratochvil |
254f0e9 |
@@ -406,6 +406,7 @@ captured_main (void *data)
|
|
|
658b489 |
{"xdb", no_argument, &xdb_commands, 1},
|
|
|
658b489 |
{"dbx", no_argument, &dbx_commands, 1},
|
|
|
658b489 |
{"readnow", no_argument, &readnow_symbol_files, 1},
|
|
|
658b489 |
+ {"readnever", no_argument, &readnever_symbol_files, 1},
|
|
|
658b489 |
{"r", no_argument, &readnow_symbol_files, 1},
|
|
|
658b489 |
{"quiet", no_argument, &quiet, 1},
|
|
|
658b489 |
{"q", no_argument, &quiet, 1},
|
|
Jan Kratochvil |
254f0e9 |
@@ -1072,6 +1073,7 @@ Options:\n\n\
|
|
Jan Kratochvil |
33ff709 |
fputs_unfiltered (_("\
|
|
|
658b489 |
--quiet Do not print version number on startup.\n\
|
|
|
658b489 |
--readnow Fully read symbol files on first access.\n\
|
|
|
658b489 |
+ --readnever Do not read symbol files.\n\
|
|
|
658b489 |
"), stream);
|
|
|
658b489 |
fputs_unfiltered (_("\
|
|
|
658b489 |
--se=FILE Use FILE as symbol file and executable file.\n\
|
|
Jan Kratochvil |
254f0e9 |
Index: gdb-7.4.50.20111218/gdb/symfile.c
|
|
|
8b1b3fd |
===================================================================
|
|
Jan Kratochvil |
254f0e9 |
--- gdb-7.4.50.20111218.orig/gdb/symfile.c 2011-12-15 16:36:55.000000000 +0100
|
|
Jan Kratochvil |
254f0e9 |
+++ gdb-7.4.50.20111218/gdb/symfile.c 2011-12-19 02:52:25.767407426 +0100
|
|
Jan Kratochvil |
254f0e9 |
@@ -82,6 +82,7 @@ static void clear_symtab_users_cleanup (
|
|
|
658b489 |
|
|
Jan Kratochvil |
b0e03f5 |
/* Global variables owned by this file. */
|
|
Jan Kratochvil |
b0e03f5 |
int readnow_symbol_files; /* Read full symbols immediately. */
|
|
|
658b489 |
+int readnever_symbol_files; /* Never read full symbols. */
|
|
|
658b489 |
|
|
Jan Kratochvil |
b0e03f5 |
/* External variables and functions referenced. */
|
|
|
658b489 |
|
|
Jan Kratochvil |
254f0e9 |
Index: gdb-7.4.50.20111218/gdb/dwarf2read.c
|
|
|
8b1b3fd |
===================================================================
|
|
Jan Kratochvil |
254f0e9 |
--- gdb-7.4.50.20111218.orig/gdb/dwarf2read.c 2011-12-19 02:52:23.000000000 +0100
|
|
Jan Kratochvil |
254f0e9 |
+++ gdb-7.4.50.20111218/gdb/dwarf2read.c 2011-12-19 02:52:25.769407418 +0100
|
|
Jan Kratochvil |
254f0e9 |
@@ -59,6 +59,7 @@
|
|
Jan Kratochvil |
e00e5ea |
#include "c-lang.h"
|
|
Jan Kratochvil |
e00e5ea |
#include "valprint.h"
|
|
Jan Kratochvil |
09dd777 |
#include <ctype.h>
|
|
|
407ebe9 |
+#include "top.h"
|
|
|
658b489 |
|
|
|
407ebe9 |
#include <fcntl.h>
|
|
|
407ebe9 |
#include "gdb_string.h"
|
|
Jan Kratochvil |
254f0e9 |
@@ -1405,8 +1406,9 @@ dwarf2_has_info (struct objfile *objfile
|
|
Jan Kratochvil |
3b55f78 |
(void *) names);
|
|
|
dd46ae6 |
dwarf2_per_objfile->objfile = objfile;
|
|
|
e5611bf |
}
|
|
|
e5611bf |
- return (dwarf2_per_objfile->info.asection != NULL
|
|
|
dd46ae6 |
- && dwarf2_per_objfile->abbrev.asection != NULL);
|
|
|
dd46ae6 |
+ return (! readnever_symbol_files
|
|
|
dd46ae6 |
+ && (dwarf2_per_objfile->info.asection != NULL
|
|
|
dd46ae6 |
+ && dwarf2_per_objfile->abbrev.asection != NULL));
|
|
|
658b489 |
}
|
|
|
658b489 |
|
|
Jan Kratochvil |
3b55f78 |
/* When loading sections, we look either for uncompressed section or for
|
|
Jan Kratochvil |
254f0e9 |
Index: gdb-7.4.50.20111218/gdb/top.h
|
|
|
8b1b3fd |
===================================================================
|
|
Jan Kratochvil |
254f0e9 |
--- gdb-7.4.50.20111218.orig/gdb/top.h 2011-12-16 21:29:28.000000000 +0100
|
|
Jan Kratochvil |
254f0e9 |
+++ gdb-7.4.50.20111218/gdb/top.h 2011-12-19 02:52:25.769407418 +0100
|
|
Jan Kratochvil |
254f0e9 |
@@ -61,6 +61,7 @@ extern void set_prompt (const char *s);
|
|
|
658b489 |
|
|
|
658b489 |
/* From random places. */
|
|
|
658b489 |
extern int readnow_symbol_files;
|
|
|
658b489 |
+extern int readnever_symbol_files;
|
|
|
658b489 |
|
|
Jan Kratochvil |
6fa2f55 |
/* Perform _initialize initialization. */
|
|
|
658b489 |
extern void gdb_init (char *);
|