* symtab.h (enum address_class): Remove LOC_INDIRECT and
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 22 May 2008 16:58:02 +0000 (16:58 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 22 May 2008 16:58:02 +0000 (16:58 +0000)
LOC_HP_THREAD_LOCAL_STATIC.

* findvar.c (symbol_read_needs_frame, read_var_value): Do not
handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
(read_var_value): Likewise.
* buildsym.c (finish_block): Likewise.
* objfiles.c (objfile_relocate): Likewise.
* printcmd.c (address_info): Likewise.
* symmisc.c (print_symbol, print_partial_symbols): Likewise.
* tracepoint.c (scope_info): Likewise.

gdb/ChangeLog
gdb/buildsym.c
gdb/findvar.c
gdb/objfiles.c
gdb/printcmd.c
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h
gdb/tracepoint.c

index 18e7ba11de5fde9ea53dbcb078635ec899f95876..299f3fefeed3f3fa42a5470ca2ad58d243edebe0 100644 (file)
@@ -1,3 +1,17 @@
+2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * symtab.h (enum address_class): Remove LOC_INDIRECT and
+       LOC_HP_THREAD_LOCAL_STATIC.
+
+       * findvar.c (symbol_read_needs_frame, read_var_value): Do not
+       handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
+       (read_var_value): Likewise.
+       * buildsym.c (finish_block): Likewise.
+       * objfiles.c (objfile_relocate): Likewise.
+       * printcmd.c (address_info): Likewise.
+       * symmisc.c (print_symbol, print_partial_symbols): Likewise.
+       * tracepoint.c (scope_info): Likewise.
+
 2008-05-21 Markus Deuling  <deuling@de.ibm.com>
           Maxim Grigoriev  <maxim2405@gmail.com>
 
index 282dc4ec244490e50af8ab5bbbe3ab53e577fc19..e9d5d0fcdf22b6090f5c7593787e10059b2be5fa 100644 (file)
@@ -297,7 +297,6 @@ finish_block (struct symbol *symbol, struct pending **listhead,
                case LOC_UNDEF:
                case LOC_CONST:
                case LOC_STATIC:
-               case LOC_INDIRECT:
                case LOC_REGISTER:
                case LOC_LOCAL:
                case LOC_TYPEDEF:
@@ -340,7 +339,6 @@ finish_block (struct symbol *symbol, struct pending **listhead,
                    case LOC_UNDEF:
                    case LOC_CONST:
                    case LOC_STATIC:
-                   case LOC_INDIRECT:
                    case LOC_REGISTER:
                    case LOC_LOCAL:
                    case LOC_TYPEDEF:
index 69fb6fbbd9458117afb700dfa4f359750b36bc59..1f853b397c41bf72a11e2a8aa9dc3f5149de2575 100644 (file)
@@ -362,13 +362,11 @@ symbol_read_needs_frame (struct symbol *sym)
     case LOC_LOCAL_ARG:
     case LOC_BASEREG:
     case LOC_BASEREG_ARG:
-    case LOC_HP_THREAD_LOCAL_STATIC:
       return 1;
 
     case LOC_UNDEF:
     case LOC_CONST:
     case LOC_STATIC:
-    case LOC_INDIRECT:
     case LOC_TYPEDEF:
 
     case LOC_LABEL:
@@ -457,24 +455,6 @@ read_var_value (struct symbol *var, struct frame_info *frame)
        addr = SYMBOL_VALUE_ADDRESS (var);
       break;
 
-    case LOC_INDIRECT:
-      {
-       /* The import slot does not have a real address in it from the
-          dynamic loader (dld.sl on HP-UX), if the target hasn't
-          begun execution yet, so check for that. */
-       CORE_ADDR locaddr;
-       struct value *loc;
-       if (!target_has_execution)
-         error (_("\
-Attempt to access variable defined in different shared object or load module when\n\
-addresses have not been bound by the dynamic loader. Try again when executable is running."));
-
-       locaddr = SYMBOL_VALUE_ADDRESS (var);
-       loc = value_at (lookup_pointer_type (type), locaddr);
-       addr = value_as_address (loc);
-       break;
-      }
-
     case LOC_ARG:
       if (frame == NULL)
        return 0;
@@ -509,7 +489,6 @@ addresses have not been bound by the dynamic loader. Try again when executable i
 
     case LOC_BASEREG:
     case LOC_BASEREG_ARG:
-    case LOC_HP_THREAD_LOCAL_STATIC:
       {
        struct value *regval;
 
index 2b30b6c432ae6921a627d1b699154de434e349ed..235f8ffcb4d00eb0f6bfc5a6dba3ba1abb39d160 100644 (file)
@@ -597,8 +597,7 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
                 But I'm leaving out that test, on the theory that
                 they can't possibly pass the tests below.  */
              if ((SYMBOL_CLASS (sym) == LOC_LABEL
-                  || SYMBOL_CLASS (sym) == LOC_STATIC
-                  || SYMBOL_CLASS (sym) == LOC_INDIRECT)
+                  || SYMBOL_CLASS (sym) == LOC_STATIC)
                  && SYMBOL_SECTION (sym) >= 0)
                {
                  SYMBOL_VALUE_ADDRESS (sym) +=
index 44fb2e1fd722a50a1c5f6964e0a24a4ebc5574d0..d698a83908beaf824a914cebd3ca925ac3813a13 100644 (file)
@@ -1150,20 +1150,6 @@ address_info (char *exp, int from_tty)
        }
       break;
 
-    case LOC_INDIRECT:
-      printf_filtered (_("external global (indirect addressing), at address *("));
-      fputs_filtered (paddress (load_addr = SYMBOL_VALUE_ADDRESS (sym)),
-                     gdb_stdout);
-      printf_filtered (")");
-      if (section_is_overlay (section))
-       {
-         load_addr = overlay_unmapped_address (load_addr, section);
-         printf_filtered (_(",\n -- loaded at "));
-         fputs_filtered (paddress (load_addr), gdb_stdout);
-         printf_filtered (_(" in overlay section %s"), section->name);
-       }
-      break;
-
     case LOC_REGPARM:
       printf_filtered (_("an argument in register %s"),
                         gdbarch_register_name (current_gdbarch, val));
@@ -1241,12 +1227,6 @@ address_info (char *exp, int from_tty)
       }
       break;
 
-    case LOC_HP_THREAD_LOCAL_STATIC:
-      printf_filtered (_("\
-a thread-local variable at offset %ld from the thread base register %s"),
-                      val, gdbarch_register_name (current_gdbarch, basereg));
-      break;
-
     case LOC_OPTIMIZED_OUT:
       printf_filtered (_("optimized out"));
       break;
index bb5f6e3ba4fcc3358be88249cb320b8f48de1e0b..d2306acf8983e339c614f163dfc9bb0bc9e57a9c 100644 (file)
@@ -642,12 +642,6 @@ print_symbol (void *args)
                               SYMBOL_BFD_SECTION (symbol)));
          break;
 
-       case LOC_INDIRECT:
-         fprintf_filtered (outfile, "extern global at *(");
-         fputs_filtered (paddress (SYMBOL_VALUE_ADDRESS (symbol)), outfile);
-         fprintf_filtered (outfile, "),");
-         break;
-
        case LOC_REGISTER:
          fprintf_filtered (outfile, "register %ld", SYMBOL_VALUE (symbol));
          break;
@@ -832,9 +826,6 @@ print_partial_symbols (struct partial_symbol **p, int count, char *what,
        case LOC_STATIC:
          fputs_filtered ("static", outfile);
          break;
-       case LOC_INDIRECT:
-         fputs_filtered ("extern global", outfile);
-         break;
        case LOC_REGISTER:
          fputs_filtered ("register", outfile);
          break;
index 4e2b2a5043e982ba7d67103ebeb6533abe1de3a3..d4f3bfe30405bbf0272fdb9db23cea04fa1b7b00 100644 (file)
@@ -1116,7 +1116,6 @@ fixup_symbol_section (struct symbol *sym, struct objfile *objfile)
     {
     case LOC_STATIC:
     case LOC_LABEL:
-    case LOC_INDIRECT:
       addr = SYMBOL_VALUE_ADDRESS (sym);
       break;
     case LOC_BLOCK:
@@ -1151,7 +1150,6 @@ fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile)
     {
     case LOC_STATIC:
     case LOC_LABEL:
-    case LOC_INDIRECT:
     case LOC_BLOCK:
       addr = SYMBOL_VALUE_ADDRESS (psym);
       break;
index 3bbc3930bc2cf6e058cbe98bfbefce21364f9e44..3b4350ac0ebd57299c8f676f9cb79d3c5ab29aee 100644 (file)
@@ -524,26 +524,11 @@ enum address_class
 
   LOC_UNRESOLVED,
 
-  /* Value is at a thread-specific location calculated by a
-     target-specific method. This is used only by hppa.  */
-
-  LOC_HP_THREAD_LOCAL_STATIC,
-
   /* The variable does not actually exist in the program.
      The value is ignored.  */
 
   LOC_OPTIMIZED_OUT,
 
-  /* The variable is static, but actually lives at * (address).
-   * I.e. do an extra indirection to get to it.
-   * This is used on HP-UX to get at globals that are allocated
-   * in shared libraries, where references from images other
-   * than the one where the global was allocated are done
-   * with a level of indirection.
-   */
-
-  LOC_INDIRECT,
-
   /* The variable's address is computed by a set of location
      functions (see "struct symbol_ops" below).  */
   LOC_COMPUTED,
index 40e3c0fa59073aeb7e0d2146071326835fb384f1..255d0b75d1517b37177a0f6d5e16adb029bd9d22 100644 (file)
@@ -2520,13 +2520,6 @@ scope_info (char *args, int from_tty)
            case LOC_OPTIMIZED_OUT:
              printf_filtered ("optimized out.\n");
              continue;
-           case LOC_HP_THREAD_LOCAL_STATIC:
-             printf_filtered ("HP thread local static ");
-             break;
-           case LOC_INDIRECT:
-             printf_filtered ("extern (local indirect) at address ");
-             printf_filtered ("%s", paddress (SYMBOL_VALUE_ADDRESS (sym)));
-             break;
            case LOC_COMPUTED:
            case LOC_COMPUTED_ARG:
              SYMBOL_OPS (sym)->describe_location (sym, gdb_stdout);
This page took 0.030741 seconds and 4 git commands to generate.