]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.3-readnever-20050907.patch
- update to 6.8.91.20090930-1 from fedora
[packages/gdb.git] / gdb-6.3-readnever-20050907.patch
1 2004-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
10 2004-11-18  Andrew Cagney  <cagney@gnu.org>
11
12         * gdb.texinfo (File Options): Document --readnever.
13
14 Index: gdb-6.8.50.20090811/gdb/doc/gdb.texinfo
15 ===================================================================
16 --- gdb-6.8.50.20090811.orig/gdb/doc/gdb.texinfo        2009-08-13 10:14:15.000000000 +0200
17 +++ gdb-6.8.50.20090811/gdb/doc/gdb.texinfo     2009-08-13 10:14:18.000000000 +0200
18 @@ -991,6 +991,12 @@ Read each symbol file's entire symbol ta
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
31 Index: gdb-6.8.50.20090811/gdb/main.c
32 ===================================================================
33 --- gdb-6.8.50.20090811.orig/gdb/main.c 2009-08-13 10:14:15.000000000 +0200
34 +++ gdb-6.8.50.20090811/gdb/main.c      2009-08-13 10:14:18.000000000 +0200
35 @@ -382,6 +382,7 @@ captured_main (void *data)
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},
43 @@ -1030,6 +1031,7 @@ Options:\n\n\
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\
51 Index: gdb-6.8.50.20090811/gdb/symfile.c
52 ===================================================================
53 --- gdb-6.8.50.20090811.orig/gdb/symfile.c      2009-08-13 10:14:15.000000000 +0200
54 +++ gdb-6.8.50.20090811/gdb/symfile.c   2009-08-13 10:14:18.000000000 +0200
55 @@ -79,6 +79,7 @@ static void clear_symtab_users_cleanup (
56  
57  /* Global variables owned by this file */
58  int readnow_symbol_files;      /* Read full symbols immediately */
59 +int readnever_symbol_files;    /* Never read full symbols.  */
60  
61  /* External variables and functions referenced. */
62  
63 Index: gdb-6.8.50.20090811/gdb/dwarf2read.c
64 ===================================================================
65 --- gdb-6.8.50.20090811.orig/gdb/dwarf2read.c   2009-08-13 10:14:15.000000000 +0200
66 +++ gdb-6.8.50.20090811/gdb/dwarf2read.c        2009-08-13 10:14:29.000000000 +0200
67 @@ -53,6 +53,7 @@
68  #include "jv-lang.h"
69  #include "vec.h"
70  #include "block.h"
71 +#include "top.h"
72  
73  #include <fcntl.h>
74  #include "gdb_string.h"
75 @@ -1245,7 +1246,8 @@ dwarf2_has_info (struct objfile *objfile
76  
77        bfd_map_over_sections (objfile->obfd, dwarf2_locate_sections, NULL);
78      }
79 -  return (dwarf2_per_objfile->info.asection != NULL
80 +  return !readnever_symbol_files
81 +      && (dwarf2_per_objfile->info.asection != NULL
82           && dwarf2_per_objfile->abbrev.asection != NULL);
83  }
84  
85 Index: gdb-6.8.50.20090811/gdb/top.h
86 ===================================================================
87 --- gdb-6.8.50.20090811.orig/gdb/top.h  2009-01-03 06:57:53.000000000 +0100
88 +++ gdb-6.8.50.20090811/gdb/top.h       2009-08-13 10:14:18.000000000 +0200
89 @@ -59,6 +59,7 @@ extern void set_prompt (char *);
90  
91  /* From random places.  */
92  extern int readnow_symbol_files;
93 +extern int readnever_symbol_files;
94  
95  /* Perform _initialize initialization */
96  extern void gdb_init (char *);
This page took 0.033609 seconds and 3 git commands to generate.