]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb-fortran-common-reduce.patch
- up to 7.3.1
[packages/gdb.git] / gdb-fortran-common-reduce.patch
index 3b843b899438605e6b24baa3e5dd59fefd9a04db..fe1199f207305e678375e11cc1155c30b17f5ceb 100644 (file)
@@ -1,8 +1,8 @@
-Index: gdb-7.1.90.20100711/gdb/f-lang.c
+Index: gdb-7.2.50.20110117/gdb/f-lang.c
 ===================================================================
---- gdb-7.1.90.20100711.orig/gdb/f-lang.c      2010-06-03 00:41:55.000000000 +0200
-+++ gdb-7.1.90.20100711/gdb/f-lang.c   2010-07-13 00:24:04.000000000 +0200
-@@ -56,20 +56,6 @@ typedef struct saved_bf_symnum SAVED_BF,
+--- gdb-7.2.50.20110117.orig/gdb/f-lang.c      2011-01-07 20:36:16.000000000 +0100
++++ gdb-7.2.50.20110117/gdb/f-lang.c   2011-01-17 15:56:07.000000000 +0100
+@@ -57,20 +57,6 @@ typedef struct saved_bf_symnum SAVED_BF,
  /* Local functions */
  
  extern void _initialize_f_language (void);
@@ -23,7 +23,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
  
  static void f_printchar (int c, struct type *type, struct ui_file * stream);
  static void f_emit_char (int c, struct type *type,
-@@ -458,185 +444,7 @@ _initialize_f_language (void)
+@@ -461,185 +447,7 @@ _initialize_f_language (void)
    add_language (&f_language_defn);
  }
  
@@ -73,14 +73,14 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -static SAVED_BF_PTR saved_bf_list = NULL;     /* Ptr to (.bf,function) 
 -                                                 list */
 -static SAVED_BF_PTR saved_bf_list_end = NULL; /* Ptr to above list's end */
--static SAVED_BF_PTR current_head_bf_list = NULL;      /* Current head of above list
--                                                       */
+-static SAVED_BF_PTR current_head_bf_list = NULL;    /* Current head of
+-                                                     above list.  */
 -
 -static SAVED_BF_PTR tmp_bf_ptr;       /* Generic temporary for use 
--                                 in macros */
+-                                 in macros */
 -
 -/* The following function simply enters a given common block onto 
--   the global common block chain */
+-   the global common block chain */
 -
 -static void
 -add_common_block (char *name, CORE_ADDR offset, int secnum, char *func_stab)
@@ -91,7 +91,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -  /* If the COMMON block we are trying to add has a blank 
 -     name (i.e. "#BLNK_COM") then we set it to __BLANK
 -     because the darn "#" character makes GDB's input 
--     parser have fits. */
+-     parser have fits.  */
 -
 -
 -  if (strcmp (name, BLANK_COMMON_NAME_ORIGINAL) == 0
@@ -111,7 +111,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -  tmp->name = xmalloc (strlen (name) + 1);
 -
 -  /* local_copy_func_stab is a stabstring, let us first extract the 
--     function name from the stab by NULLing out the ':' character. */
+-     function name from the stab by NULLing out the ':' character.  */
 -
 -
 -  c = NULL;
@@ -148,7 +148,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -#endif
 -
 -/* The following function simply enters a given common entry onto 
--   the "current_common" block that has been saved away. */
+-   the "current_common" block that has been saved away.  */
 -
 -#if 0
 -static void
@@ -160,7 +160,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -
 -  /* The order of this list is important, since 
 -     we expect the entries to appear in decl.
--     order when we later issue "info common" calls */
+-     order when we later issue "info common" calls */
 -
 -  tmp = allocate_common_entry_node ();
 -
@@ -185,7 +185,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -}
 -#endif
 -
--/* This routine finds the first encountred COMMON block named "name" */
+-/* This routine finds the first encountred COMMON block named "name" */
 -
 -#if 0
 -static SAVED_F77_COMMON_PTR
@@ -208,8 +208,8 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -#endif
  
  /* This routine finds the first encountred COMMON block named "name" 
-    that belongs to function funcname */
-@@ -659,193 +467,3 @@ find_common_for_function (char *name, ch
+    that belongs to function funcname */
+@@ -662,193 +470,3 @@ find_common_for_function (char *name, ch
      }
    return (NULL);
  }
@@ -226,7 +226,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -{
 -  COMMON_ENTRY_PTR entry;
 -
--  blk->offset = offset;               /* Keep this around for future use. */
+-  blk->offset = offset;               /* Keep this around for future use.  */
 -
 -  entry = blk->entries;
 -
@@ -244,7 +244,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -   blocks occur with relative infrequency, we simply do a linear scan on
 -   the name.  Eventually, the best way to do this will be a
 -   hashed-lookup.  Secnum is the section number for the .bss section
--   (which is where common data lives). */
+-   (which is where common data lives).  */
 -
 -static void
 -patch_all_commons_by_name (char *name, CORE_ADDR offset, int secnum)
@@ -282,7 +282,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -   #line pragmas sometimes cause line ranges to get messed up 
 -   we simply create a linear list.  This list can then be searched 
 -   first by a queueing algorithm and upon failure fall back to 
--   a linear scan. */
+-   a linear scan.  */
 -
 -#if 0
 -#define ADD_BF_SYMNUM(bf_sym,fcn_sym) \
@@ -311,7 +311,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -                 }
 -#endif
 -
--/* This function frees the entire (.bf,function) list */
+-/* This function frees the entire (.bf,function) list */
 -
 -#if 0
 -static void
@@ -342,7 +342,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -  int nprobes = 0;
 -
 -  /* First use a simple queuing algorithm (i.e. look and see if the 
--     item at the head of the queue is the one you want)  */
+-     item at the head of the queue is the one you want).  */
 -
 -  if (saved_bf_list == NULL)
 -    internal_error (__FILE__, __LINE__,
@@ -361,7 +361,7 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -
 -  /* If the above did not work (probably because #line directives were 
 -     used in the sourcefile and they messed up our internal tables) we now do
--     the ugly linear scan */
+-     the ugly linear scan */
 -
 -  if (global_remote_debug)
 -    fprintf_unfiltered (gdb_stderr, "\ndefaulting to linear scan\n");
@@ -403,10 +403,10 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.c
 -  saved_function_list = NULL;
 -}
 -#endif
-Index: gdb-7.1.90.20100711/gdb/f-lang.h
+Index: gdb-7.2.50.20110117/gdb/f-lang.h
 ===================================================================
---- gdb-7.1.90.20100711.orig/gdb/f-lang.h      2010-07-12 23:07:33.000000000 +0200
-+++ gdb-7.1.90.20100711/gdb/f-lang.h   2010-07-13 00:24:04.000000000 +0200
+--- gdb-7.2.50.20110117.orig/gdb/f-lang.h      2011-01-17 15:47:37.000000000 +0100
++++ gdb-7.2.50.20110117/gdb/f-lang.h   2011-01-17 15:54:14.000000000 +0100
 @@ -76,14 +76,9 @@ typedef struct saved_f77_common SAVED_F7
  typedef struct common_entry COMMON_ENTRY, *COMMON_ENTRY_PTR;
  
@@ -422,10 +422,10 @@ Index: gdb-7.1.90.20100711/gdb/f-lang.h
  #define BLANK_COMMON_NAME_ORIGINAL "#BLNK_COM"        /* XLF assigned  */
  #define BLANK_COMMON_NAME_MF77     "__BLNK__" /* MF77 assigned  */
  #define BLANK_COMMON_NAME_LOCAL    "__BLANK"  /* Local GDB */
-Index: gdb-7.1.90.20100711/gdb/f-valprint.c
+Index: gdb-7.2.50.20110117/gdb/f-valprint.c
 ===================================================================
---- gdb-7.1.90.20100711.orig/gdb/f-valprint.c  2010-07-12 23:07:33.000000000 +0200
-+++ gdb-7.1.90.20100711/gdb/f-valprint.c       2010-07-13 00:24:25.000000000 +0200
+--- gdb-7.2.50.20110117.orig/gdb/f-valprint.c  2011-01-17 15:47:37.000000000 +0100
++++ gdb-7.2.50.20110117/gdb/f-valprint.c       2011-01-17 15:54:36.000000000 +0100
 @@ -35,10 +35,6 @@
  #include "command.h"
  #include "block.h"
@@ -437,12 +437,12 @@ Index: gdb-7.1.90.20100711/gdb/f-valprint.c
  extern void _initialize_f_valprint (void);
  static void info_common_command (char *, int);
  static void list_all_visible_commons (char *);
-@@ -601,67 +597,6 @@ info_common_command (char *comname, int 
+@@ -604,67 +600,6 @@ info_common_command (char *comname, int 
                     comname, funname);
  }
  
 -/* This function is used to determine whether there is a
--   F77 common block visible at the current scope called 'comname'. */
+-   F77 common block visible at the current scope called 'comname'.  */
 -
 -#if 0
 -static int
@@ -459,7 +459,7 @@ Index: gdb-7.1.90.20100711/gdb/f-valprint.c
 -  fi = get_selected_frame (_("No frame selected"));
 -
 -  /* The following is generally ripped off from stack.c's routine 
--     print_frame_info() */
+-     print_frame_info() */
 -
 -  func = find_pc_function (fi->pc);
 -  if (func)
@@ -476,7 +476,7 @@ Index: gdb-7.1.90.20100711/gdb/f-valprint.c
 -         up with a larger address for the function use that instead.
 -         I don't think this can ever cause any problems; there shouldn't
 -         be any minimal symbols in the middle of a function.
--         FIXME:  (Not necessarily true.  What about text labels) */
+-         FIXME:  (Not necessarily true.  What about text labels?)  */
 -
 -      struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (fi->pc);
 -
This page took 0.042507 seconds and 4 git commands to generate.