public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-fedora14: cherry-pick [patch] save gdb-index user interface fixups f48d0e90918786c7bcda729ec069271531312f87
@ 2010-07-22 17:07 jkratoch
  0 siblings, 0 replies; only message in thread
From: jkratoch @ 2010-07-22 17:07 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-fedora14 has been updated
       via  c793bbfe31f3572e9ab563c5e9bea651c2603425 (commit)
       via  10ce8e49e33df9c89f17ec0f331fdbb46baafa52 (commit)
      from  202f4d0e3af8d8a8d7c0b408d9e0a8cb69f912b6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit c793bbfe31f3572e9ab563c5e9bea651c2603425
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Jul 22 19:07:21 2010 +0200

    cherry-pick
    [patch] save gdb-index user interface fixups
    f48d0e90918786c7bcda729ec069271531312f87
    
    gdb/
    	* dwarf2read.c: Include completer.h.
    	(save_gdb_index_command): Use matching usage command name.
    	(_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
    	Set filename_completer for it.
    
    Conflicts:
    
    	gdb/ChangeLog

commit 10ce8e49e33df9c89f17ec0f331fdbb46baafa52
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Jul 22 19:05:54 2010 +0200

    cherry-pick
    Re: [0/4] RFC: add DWARF index support
    2b73877481047f917a170b928b48cef2edabf85b
    
    	* dwarf2read.c (create_debug_types_hash_table): Set objfile on
    	type signature's per-CU data.
    
    Conflicts:
    
    	gdb/ChangeLog

-----------------------------------------------------------------------

Summary of changes:
 gdb/dwarf2read.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 31a7d83..e286f4c 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -53,6 +53,7 @@
 #include "psympriv.h"
 #include "exceptions.h"
 #include "gdb_stat.h"
+#include "completer.h"
 
 #include <fcntl.h>
 #include "gdb_string.h"
@@ -2687,6 +2688,7 @@ create_debug_types_hash_table (struct objfile *objfile)
       type_sig->signature = signature;
       type_sig->offset = offset;
       type_sig->type_offset = type_offset;
+      type_sig->per_cu.objfile = objfile;
 
       slot = htab_find_slot (types_htab, type_sig, INSERT);
       gdb_assert (slot != NULL);
@@ -14409,7 +14411,7 @@ save_gdb_index_command (char *arg, int from_tty)
   struct objfile *objfile;
 
   if (!arg || !*arg)
-    error (_("usage: maintenance save-gdb-index DIRECTORY"));
+    error (_("usage: save gdb-index DIRECTORY"));
 
   ALL_OBJFILES (objfile)
   {
@@ -14454,6 +14456,8 @@ void _initialize_dwarf2_read (void);
 void
 _initialize_dwarf2_read (void)
 {
+  struct cmd_list_element *c;
+
   dwarf2_objfile_data_key
     = register_objfile_data_with_cleanup (NULL, dwarf2_per_objfile_free);
 
@@ -14502,7 +14506,8 @@ The value is the maximum depth to print."),
 			    NULL,
 			    &setdebuglist, &showdebuglist);
 
-  add_cmd ("gdb-index", class_files, save_gdb_index_command,
-	   _("Save a .gdb-index file"),
-	   &save_cmdlist);
+  c = add_cmd ("gdb-index", class_files, save_gdb_index_command,
+	       _("Save a .gdb-index file"),
+	       &save_cmdlist);
+  set_cmd_completer (c, filename_completer);
 }


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-22 17:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-22 17:07 [SCM] archer-jankratochvil-fedora14: cherry-pick [patch] save gdb-index user interface fixups f48d0e90918786c7bcda729ec069271531312f87 jkratoch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).