]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.3-readnever-20050907.patch
- added devel deps for gdb-lib
[packages/gdb.git] / gdb-6.3-readnever-20050907.patch
CommitLineData
3a58abaf
AM
12004-11-18 Andrew Cagney <cagney@gnu.org>
2
3 * dwarf2read.c: Include "top.c".
4 (dwarf2_has_info): Check for readnever_symbol_files.
5 * symfile.c (readnever_symbol_files): Define.
6 * top.h (readnever_symbol_files): Declare.
7 * main.c (captured_main): Add --readnever option.
8 (print_gdb_help): Ditto.
9
102004-11-18 Andrew Cagney <cagney@gnu.org>
11
12 * gdb.texinfo (File Options): Document --readnever.
13
6ed6bacf 14Index: gdb-7.2.90.20110411/gdb/doc/gdb.texinfo
3a58abaf 15===================================================================
6ed6bacf
AM
16--- gdb-7.2.90.20110411.orig/gdb/doc/gdb.texinfo 2011-04-11 19:11:55.000000000 +0200
17+++ gdb-7.2.90.20110411/gdb/doc/gdb.texinfo 2011-04-11 19:15:51.000000000 +0200
18@@ -1007,6 +1007,12 @@ Read each symbol file's entire symbol ta
3a58abaf
AM
19 the default, which is to read it incrementally as it is needed.
20 This makes startup slower, but makes future operations faster.
21
22+@item --readnever
23+@cindex @code{--readnever}
24+Do not read each symbol file's symbolic debug information. This makes
25+startup faster but at the expense of not being able to perform
26+symbolic debugging.
27+
28 @end table
29
30 @node Mode Options
6ed6bacf 31Index: gdb-7.2.90.20110411/gdb/main.c
3a58abaf 32===================================================================
6ed6bacf
AM
33--- gdb-7.2.90.20110411.orig/gdb/main.c 2011-04-11 19:11:56.000000000 +0200
34+++ gdb-7.2.90.20110411/gdb/main.c 2011-04-11 19:15:51.000000000 +0200
35@@ -398,6 +398,7 @@ captured_main (void *data)
3a58abaf
AM
36 {"xdb", no_argument, &xdb_commands, 1},
37 {"dbx", no_argument, &dbx_commands, 1},
38 {"readnow", no_argument, &readnow_symbol_files, 1},
39+ {"readnever", no_argument, &readnever_symbol_files, 1},
40 {"r", no_argument, &readnow_symbol_files, 1},
41 {"quiet", no_argument, &quiet, 1},
42 {"q", no_argument, &quiet, 1},
6ed6bacf 43@@ -1064,6 +1065,7 @@ Options:\n\n\
3a58abaf
AM
44 fputs_unfiltered (_("\
45 --quiet Do not print version number on startup.\n\
46 --readnow Fully read symbol files on first access.\n\
47+ --readnever Do not read symbol files.\n\
48 "), stream);
49 fputs_unfiltered (_("\
50 --se=FILE Use FILE as symbol file and executable file.\n\
6ed6bacf 51Index: gdb-7.2.90.20110411/gdb/symfile.c
3a58abaf 52===================================================================
6ed6bacf
AM
53--- gdb-7.2.90.20110411.orig/gdb/symfile.c 2011-03-23 19:23:55.000000000 +0100
54+++ gdb-7.2.90.20110411/gdb/symfile.c 2011-04-11 19:15:51.000000000 +0200
55@@ -81,6 +81,7 @@ static void clear_symtab_users_cleanup (
3a58abaf 56
6ed6bacf
AM
57 /* Global variables owned by this file. */
58 int readnow_symbol_files; /* Read full symbols immediately. */
3a58abaf
AM
59+int readnever_symbol_files; /* Never read full symbols. */
60
6ed6bacf 61 /* External variables and functions referenced. */
3a58abaf 62
6ed6bacf 63Index: gdb-7.2.90.20110411/gdb/dwarf2read.c
3a58abaf 64===================================================================
6ed6bacf
AM
65--- gdb-7.2.90.20110411.orig/gdb/dwarf2read.c 2011-04-11 19:11:55.000000000 +0200
66+++ gdb-7.2.90.20110411/gdb/dwarf2read.c 2011-04-11 19:16:01.000000000 +0200
67@@ -58,6 +58,7 @@
68 #include "c-lang.h"
69 #include "valprint.h"
70 #include <ctype.h>
3a58abaf
AM
71+#include "top.h"
72
73 #include <fcntl.h>
74 #include "gdb_string.h"
6ed6bacf 75@@ -1351,8 +1352,9 @@ dwarf2_has_info (struct objfile *objfile
7566401a 76 bfd_map_over_sections (objfile->obfd, dwarf2_locate_sections, NULL);
51a5ef0f 77 dwarf2_per_objfile->objfile = objfile;
7566401a
ER
78 }
79- return (dwarf2_per_objfile->info.asection != NULL
51a5ef0f
PS
80- && dwarf2_per_objfile->abbrev.asection != NULL);
81+ return (! readnever_symbol_files
82+ && (dwarf2_per_objfile->info.asection != NULL
83+ && dwarf2_per_objfile->abbrev.asection != NULL));
3a58abaf
AM
84 }
85
51a5ef0f 86 /* When loading sections, we can either look for ".<name>", or for
6ed6bacf 87Index: gdb-7.2.90.20110411/gdb/top.h
3a58abaf 88===================================================================
6ed6bacf
AM
89--- gdb-7.2.90.20110411.orig/gdb/top.h 2011-01-01 16:33:18.000000000 +0100
90+++ gdb-7.2.90.20110411/gdb/top.h 2011-04-11 19:15:51.000000000 +0200
51a5ef0f 91@@ -61,6 +61,7 @@ extern void set_prompt (char *);
3a58abaf
AM
92
93 /* From random places. */
94 extern int readnow_symbol_files;
95+extern int readnever_symbol_files;
96
6ed6bacf 97 /* Perform _initialize initialization. */
3a58abaf 98 extern void gdb_init (char *);
This page took 0.043264 seconds and 4 git commands to generate.