2009-05-04 16:53:01 +00:00
|
|
|
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
|
|
|
|
|
* dwarf2read.c: Include "top.c".
|
|
|
|
(dwarf2_has_info): Check for readnever_symbol_files.
|
|
|
|
* symfile.c (readnever_symbol_files): Define.
|
|
|
|
* top.h (readnever_symbol_files): Declare.
|
|
|
|
* main.c (captured_main): Add --readnever option.
|
|
|
|
(print_gdb_help): Ditto.
|
|
|
|
|
|
|
|
2004-11-18 Andrew Cagney <cagney@gnu.org>
|
|
|
|
|
|
|
|
* gdb.texinfo (File Options): Document --readnever.
|
|
|
|
|
2017-05-01 01:04:39 +00:00
|
|
|
Index: gdb-7.99.90.20170420/gdb/doc/gdb.texinfo
|
2009-05-04 16:53:01 +00:00
|
|
|
===================================================================
|
2017-05-01 01:04:39 +00:00
|
|
|
--- gdb-7.99.90.20170420.orig/gdb/doc/gdb.texinfo 2017-04-20 22:29:39.179740076 +0200
|
|
|
|
+++ gdb-7.99.90.20170420/gdb/doc/gdb.texinfo 2017-04-20 22:29:40.924751096 +0200
|
|
|
|
@@ -1037,6 +1037,12 @@
|
2009-05-04 16:53:01 +00:00
|
|
|
the default, which is to read it incrementally as it is needed.
|
|
|
|
This makes startup slower, but makes future operations faster.
|
|
|
|
|
|
|
|
+@item --readnever
|
|
|
|
+@cindex @code{--readnever}
|
|
|
|
+Do not read each symbol file's symbolic debug information. This makes
|
|
|
|
+startup faster but at the expense of not being able to perform
|
|
|
|
+symbolic debugging.
|
|
|
|
+
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@node Mode Options
|
2017-05-01 01:04:39 +00:00
|
|
|
Index: gdb-7.99.90.20170420/gdb/main.c
|
2009-05-04 16:53:01 +00:00
|
|
|
===================================================================
|
2017-05-01 01:04:39 +00:00
|
|
|
--- gdb-7.99.90.20170420.orig/gdb/main.c 2017-04-20 22:29:39.182740095 +0200
|
|
|
|
+++ gdb-7.99.90.20170420/gdb/main.c 2017-04-20 22:29:40.925751103 +0200
|
|
|
|
@@ -615,6 +615,7 @@
|
2016-01-14 17:05:52 +00:00
|
|
|
{"tui", no_argument, 0, OPT_TUI},
|
2009-05-04 16:53:01 +00:00
|
|
|
{"dbx", no_argument, &dbx_commands, 1},
|
|
|
|
{"readnow", no_argument, &readnow_symbol_files, 1},
|
|
|
|
+ {"readnever", no_argument, &readnever_symbol_files, 1},
|
|
|
|
{"r", no_argument, &readnow_symbol_files, 1},
|
|
|
|
{"quiet", no_argument, &quiet, 1},
|
|
|
|
{"q", no_argument, &quiet, 1},
|
2017-05-01 01:04:39 +00:00
|
|
|
@@ -1254,6 +1255,7 @@
|
2013-09-11 13:42:29 +00:00
|
|
|
--se=FILE Use FILE as symbol file and executable file.\n\
|
|
|
|
--symbols=SYMFILE Read symbols from SYMFILE.\n\
|
2009-05-04 16:53:01 +00:00
|
|
|
--readnow Fully read symbol files on first access.\n\
|
|
|
|
+ --readnever Do not read symbol files.\n\
|
2013-09-11 13:42:29 +00:00
|
|
|
--write Set writing into executable and core files.\n\n\
|
2009-05-04 16:53:01 +00:00
|
|
|
"), stream);
|
|
|
|
fputs_unfiltered (_("\
|
2017-05-01 01:04:39 +00:00
|
|
|
Index: gdb-7.99.90.20170420/gdb/symfile.c
|
2009-05-04 16:53:01 +00:00
|
|
|
===================================================================
|
2017-05-01 01:04:39 +00:00
|
|
|
--- gdb-7.99.90.20170420.orig/gdb/symfile.c 2017-04-20 22:29:39.183740101 +0200
|
|
|
|
+++ gdb-7.99.90.20170420/gdb/symfile.c 2017-04-20 22:29:40.926751109 +0200
|
|
|
|
@@ -79,6 +79,7 @@
|
2009-05-04 16:53:01 +00:00
|
|
|
|
2011-03-10 09:18:25 +00:00
|
|
|
/* Global variables owned by this file. */
|
|
|
|
int readnow_symbol_files; /* Read full symbols immediately. */
|
2009-05-04 16:53:01 +00:00
|
|
|
+int readnever_symbol_files; /* Never read full symbols. */
|
|
|
|
|
2013-07-08 14:47:04 +00:00
|
|
|
/* Functions this file defines. */
|
2009-05-04 16:53:01 +00:00
|
|
|
|
2017-05-01 01:04:39 +00:00
|
|
|
Index: gdb-7.99.90.20170420/gdb/dwarf2read.c
|
2009-05-04 16:53:01 +00:00
|
|
|
===================================================================
|
2017-05-01 01:04:39 +00:00
|
|
|
--- gdb-7.99.90.20170420.orig/gdb/dwarf2read.c 2017-04-20 22:29:39.190740145 +0200
|
|
|
|
+++ gdb-7.99.90.20170420/gdb/dwarf2read.c 2017-04-20 22:29:57.973858766 +0200
|
|
|
|
@@ -73,6 +73,7 @@
|
|
|
|
#include "common/function-view.h"
|
|
|
|
#include "common/gdb_optional.h"
|
|
|
|
#include "common/underlying.h"
|
2009-05-04 16:53:01 +00:00
|
|
|
+#include "top.h"
|
|
|
|
|
|
|
|
#include <fcntl.h>
|
- Use patchlist.pl to merge with gdb-7.9-10.fc22, a rebase to FSF GDB 7.9.
The GDB 7.8 features are:
* Python Scripting
- You can now access frame registers from Python scripts.
- New attribute 'producer' for gdb.Symtab objects.
* New Python-based convenience functions:
- $_caller_is(name [, number_of_frames])
- $_caller_matches(regexp [, number_of_frames])
- $_any_caller_is(name [, number_of_frames])
- $_any_caller_matches(regexp [, number_of_frames])
* New commands
- queue-signal signal-name-or-number
Queue a signal to be delivered to the thread when it is resumed.
* On resume, GDB now always passes the signal the program had stopped
for to the thread the signal was sent to, even if the user changed
threads before resuming. Previously GDB would often (but not
always) deliver the signal to the thread that happens to be current
at resume time.
* Conversely, the "signal" command now consistently delivers the
requested signal to the current thread. GDB now asks for
confirmation if the program had stopped for a signal and the user
switched threads meanwhile.
* "breakpoint always-inserted" modes "off" and "auto" merged.
Now, when 'breakpoint always-inserted mode' is set to "off", GDB
won't remove breakpoints from the target until all threads stop,
even in non-stop mode. The "auto" mode has been removed, and "off"
is now the default mode.
* MI changes
- The -list-thread-groups command outputs an exit-code field for
inferiors that have exited.
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=115
2015-02-25 13:45:10 +00:00
|
|
|
#include <sys/types.h>
|
2017-05-01 01:04:39 +00:00
|
|
|
@@ -2208,7 +2209,8 @@
|
2012-06-16 04:55:29 +00:00
|
|
|
(void *) names);
|
2010-09-06 11:08:41 +00:00
|
|
|
dwarf2_per_objfile->objfile = objfile;
|
2009-08-11 16:28:33 +00:00
|
|
|
}
|
2014-02-10 17:10:42 +00:00
|
|
|
- return (!dwarf2_per_objfile->info.is_virtual
|
|
|
|
+ return !readnever_symbol_files &&
|
|
|
|
+ (!dwarf2_per_objfile->info.is_virtual
|
2016-02-29 19:38:18 +00:00
|
|
|
&& dwarf2_per_objfile->info.s.section != NULL
|
2014-02-10 17:10:42 +00:00
|
|
|
&& !dwarf2_per_objfile->abbrev.is_virtual
|
2016-02-29 19:38:18 +00:00
|
|
|
&& dwarf2_per_objfile->abbrev.s.section != NULL);
|
2017-05-01 01:04:39 +00:00
|
|
|
Index: gdb-7.99.90.20170420/gdb/top.h
|
2009-05-04 16:53:01 +00:00
|
|
|
===================================================================
|
2017-05-01 01:04:39 +00:00
|
|
|
--- gdb-7.99.90.20170420.orig/gdb/top.h 2017-04-20 22:29:39.191740152 +0200
|
|
|
|
+++ gdb-7.99.90.20170420/gdb/top.h 2017-04-20 22:29:40.932751147 +0200
|
|
|
|
@@ -269,6 +269,7 @@
|
2009-05-04 16:53:01 +00:00
|
|
|
|
|
|
|
/* From random places. */
|
|
|
|
extern int readnow_symbol_files;
|
|
|
|
+extern int readnever_symbol_files;
|
|
|
|
|
2011-03-10 09:18:25 +00:00
|
|
|
/* Perform _initialize initialization. */
|
2009-05-04 16:53:01 +00:00
|
|
|
extern void gdb_init (char *);
|