|
|
e1d87d |
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
e1d87d |
|
|
|
e1d87d |
* dwarf2read.c: Include "top.c".
|
|
|
e1d87d |
(dwarf2_has_info): Check for readnever_symbol_files.
|
|
|
e1d87d |
* symfile.c (readnever_symbol_files): Define.
|
|
|
e1d87d |
* top.h (readnever_symbol_files): Declare.
|
|
|
e1d87d |
* main.c (captured_main): Add --readnever option.
|
|
|
e1d87d |
(print_gdb_help): Ditto.
|
|
|
e1d87d |
|
|
|
e1d87d |
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
e1d87d |
|
|
|
e1d87d |
* gdb.texinfo (File Options): Document --readnever.
|
|
|
e1d87d |
|
|
|
e1d87d |
Index: gdb-7.99.90.20170420/gdb/doc/gdb.texinfo
|
|
|
e1d87d |
===================================================================
|
|
|
e1d87d |
--- gdb-7.99.90.20170420.orig/gdb/doc/gdb.texinfo 2017-04-20 22:29:39.179740076 +0200
|
|
|
e1d87d |
+++ gdb-7.99.90.20170420/gdb/doc/gdb.texinfo 2017-04-20 22:29:40.924751096 +0200
|
|
|
e1d87d |
@@ -1037,6 +1037,12 @@
|
|
|
e1d87d |
the default, which is to read it incrementally as it is needed.
|
|
|
e1d87d |
This makes startup slower, but makes future operations faster.
|
|
|
e1d87d |
|
|
|
e1d87d |
+@item --readnever
|
|
|
e1d87d |
+@cindex @code{--readnever}
|
|
|
e1d87d |
+Do not read each symbol file's symbolic debug information. This makes
|
|
|
e1d87d |
+startup faster but at the expense of not being able to perform
|
|
|
e1d87d |
+symbolic debugging.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
@end table
|
|
|
e1d87d |
|
|
|
e1d87d |
@node Mode Options
|
|
|
e1d87d |
Index: gdb-7.99.90.20170420/gdb/main.c
|
|
|
e1d87d |
===================================================================
|
|
|
e1d87d |
--- gdb-7.99.90.20170420.orig/gdb/main.c 2017-04-20 22:29:39.182740095 +0200
|
|
|
e1d87d |
+++ gdb-7.99.90.20170420/gdb/main.c 2017-04-20 22:29:40.925751103 +0200
|
|
|
e1d87d |
@@ -615,6 +615,7 @@
|
|
|
e1d87d |
{"tui", no_argument, 0, OPT_TUI},
|
|
|
e1d87d |
{"dbx", no_argument, &dbx_commands, 1},
|
|
|
e1d87d |
{"readnow", no_argument, &readnow_symbol_files, 1},
|
|
|
e1d87d |
+ {"readnever", no_argument, &readnever_symbol_files, 1},
|
|
|
e1d87d |
{"r", no_argument, &readnow_symbol_files, 1},
|
|
|
e1d87d |
{"quiet", no_argument, &quiet, 1},
|
|
|
e1d87d |
{"q", no_argument, &quiet, 1},
|
|
|
e1d87d |
@@ -1254,6 +1255,7 @@
|
|
|
e1d87d |
--se=FILE Use FILE as symbol file and executable file.\n\
|
|
|
e1d87d |
--symbols=SYMFILE Read symbols from SYMFILE.\n\
|
|
|
e1d87d |
--readnow Fully read symbol files on first access.\n\
|
|
|
e1d87d |
+ --readnever Do not read symbol files.\n\
|
|
|
e1d87d |
--write Set writing into executable and core files.\n\n\
|
|
|
e1d87d |
"), stream);
|
|
|
e1d87d |
fputs_unfiltered (_("\
|
|
|
e1d87d |
Index: gdb-7.99.90.20170420/gdb/symfile.c
|
|
|
e1d87d |
===================================================================
|
|
|
e1d87d |
--- gdb-7.99.90.20170420.orig/gdb/symfile.c 2017-04-20 22:29:39.183740101 +0200
|
|
|
e1d87d |
+++ gdb-7.99.90.20170420/gdb/symfile.c 2017-04-20 22:29:40.926751109 +0200
|
|
|
e1d87d |
@@ -79,6 +79,7 @@
|
|
|
e1d87d |
|
|
|
e1d87d |
/* Global variables owned by this file. */
|
|
|
e1d87d |
int readnow_symbol_files; /* Read full symbols immediately. */
|
|
|
e1d87d |
+int readnever_symbol_files; /* Never read full symbols. */
|
|
|
e1d87d |
|
|
|
e1d87d |
/* Functions this file defines. */
|
|
|
e1d87d |
|
|
|
e1d87d |
Index: gdb-7.99.90.20170420/gdb/dwarf2read.c
|
|
|
e1d87d |
===================================================================
|
|
|
e1d87d |
--- gdb-7.99.90.20170420.orig/gdb/dwarf2read.c 2017-04-20 22:29:39.190740145 +0200
|
|
|
e1d87d |
+++ gdb-7.99.90.20170420/gdb/dwarf2read.c 2017-04-20 22:29:57.973858766 +0200
|
|
|
e1d87d |
@@ -73,6 +73,7 @@
|
|
|
e1d87d |
#include "common/function-view.h"
|
|
|
e1d87d |
#include "common/gdb_optional.h"
|
|
|
e1d87d |
#include "common/underlying.h"
|
|
|
e1d87d |
+#include "top.h"
|
|
|
e1d87d |
|
|
|
e1d87d |
#include <fcntl.h>
|
|
|
e1d87d |
#include <sys/types.h>
|
|
|
e1d87d |
@@ -2208,7 +2209,8 @@
|
|
|
e1d87d |
(void *) names);
|
|
|
e1d87d |
dwarf2_per_objfile->objfile = objfile;
|
|
|
e1d87d |
}
|
|
|
e1d87d |
- return (!dwarf2_per_objfile->info.is_virtual
|
|
|
e1d87d |
+ return !readnever_symbol_files &&
|
|
|
e1d87d |
+ (!dwarf2_per_objfile->info.is_virtual
|
|
|
e1d87d |
&& dwarf2_per_objfile->info.s.section != NULL
|
|
|
e1d87d |
&& !dwarf2_per_objfile->abbrev.is_virtual
|
|
|
e1d87d |
&& dwarf2_per_objfile->abbrev.s.section != NULL);
|
|
|
e1d87d |
Index: gdb-7.99.90.20170420/gdb/top.h
|
|
|
e1d87d |
===================================================================
|
|
|
e1d87d |
--- gdb-7.99.90.20170420.orig/gdb/top.h 2017-04-20 22:29:39.191740152 +0200
|
|
|
e1d87d |
+++ gdb-7.99.90.20170420/gdb/top.h 2017-04-20 22:29:40.932751147 +0200
|
|
|
e1d87d |
@@ -269,6 +269,7 @@
|
|
|
e1d87d |
|
|
|
e1d87d |
/* From random places. */
|
|
|
e1d87d |
extern int readnow_symbol_files;
|
|
|
e1d87d |
+extern int readnever_symbol_files;
|
|
|
e1d87d |
|
|
|
e1d87d |
/* Perform _initialize initialization. */
|
|
|
e1d87d |
extern void gdb_init (char *);
|
|
|
15e4b0 |
--- gdb-8.0.1/gdb/gcore.in-orig 2017-06-04 17:51:26.000000000 +0200
|
|
|
15e4b0 |
+++ gdb-8.0.1/gdb/gcore.in 2017-09-28 19:46:49.335407827 +0200
|
|
|
15e4b0 |
@@ -85,7 +85,7 @@ for pid in $*
|
|
|
15e4b0 |
do
|
|
|
15e4b0 |
# `
|
|
|
15e4b0 |
# available but not accessible as GDB would get stopped on SIGTTIN.
|
|
|
15e4b0 |
- $binary_path/@GDB_TRANSFORM_NAME@
|
|
|
15e4b0 |
+ $binary_path/@GDB_TRANSFORM_NAME@
|
|
|
15e4b0 |
-ex "set pagination off" -ex "set height 0" -ex "set width 0" \
|
|
|
15e4b0 |
-ex "attach $pid" -ex "gcore $name.$pid" -ex detach -ex quit
|
|
|
15e4b0 |
|