2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 17 Apr 2000 15:59:56 +0000 (15:59 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 17 Apr 2000 15:59:56 +0000 (15:59 +0000)
symfile.c: (symbol_file_command): Remove support for rombug, to
  simplify code.

gdb/ChangeLog
gdb/symfile.c

index f5eee3acccda736948f2236467829eefa1abb5e8..e5be57e8dced320a496a4d25d509879e0205aa93 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-17  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+
+       symfile.c: (symbol_file_command): Remove support for rombug, to
+       simplify code.
+
 2000-04-17  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * symfile.c (add_symbol_file_command): Rewrite the arguments
index c3dc12286be1851fc5c98dde0f3c80e028d7c74c..5d847f0a8e2a63c1290b02577b378b76d4f90dd4 100644 (file)
@@ -993,6 +993,10 @@ symbol_file_add (name, from_tty, addrs, mainline, flags)
    used in GDB (perhaps "set mapped on", "set readnow on" would be
    better), (3) the order of options matters, which is contrary to GNU
    conventions (because it is confusing and inconvenient).  */
+/* Note: ezannoni 2000-04-17. This function used to have support for
+   rombug (see remote-os9k.c). It consisted of a call to target_link()
+   (target.c) to get the address of the text segment from the target,
+   and pass that to symbol_file_add(). This is no longer supported. */
 
 void
 symbol_file_command (args, from_tty)
@@ -1001,7 +1005,6 @@ symbol_file_command (args, from_tty)
 {
   char **argv;
   char *name = NULL;
-  CORE_ADDR text_relocation = 0;       /* text_relocation */
   struct cleanup *cleanups;
   int flags = OBJF_USERLOADED;
 
@@ -1026,9 +1029,7 @@ symbol_file_command (args, from_tty)
 
       symfile_objfile = NULL;
       if (from_tty)
-       {
          printf_unfiltered ("No symbol file now.\n");
-       }
 #ifdef HPUXHPPA
       RESET_HP_UX_GLOBALS ();
 #endif
@@ -1043,56 +1044,26 @@ symbol_file_command (args, from_tty)
       while (*argv != NULL)
        {
          if (STREQ (*argv, "-mapped"))
-           {
-             flags |= OBJF_MAPPED;
-           }
-         else if (STREQ (*argv, "-readnow"))
-           {
+           flags |= OBJF_MAPPED;
+         else 
+           if (STREQ (*argv, "-readnow"))
              flags |= OBJF_READNOW;
-           }
-         else if (**argv == '-')
-           {
-             error ("unknown option `%s'", *argv);
-           }
-         else
-           {
-             char *p;
-
-             name = *argv;
-
-             /* this is for rombug remote only, to get the text relocation by
-                using link command */
-             p = strrchr (name, '/');
-             if (p != NULL)
-               p++;
+           else 
+             if (**argv == '-')
+               error ("unknown option `%s'", *argv);
              else
-               p = name;
-
-             target_link (p, &text_relocation);
-
-             if (text_relocation == (CORE_ADDR) 0)
-               return;
-             else if (text_relocation == (CORE_ADDR) -1)
                {
+                  name = *argv;
                  symbol_file_add (name, from_tty, NULL, 1, flags);
 #ifdef HPUXHPPA
                  RESET_HP_UX_GLOBALS ();
 #endif
-               }
-             else
-               {
-                 struct section_addr_info section_addrs;
-                 memset (&section_addrs, 0, sizeof (section_addrs));
-                 section_addrs.text_addr = (CORE_ADDR) text_relocation;
-                 symbol_file_add (name, from_tty, &section_addrs, 0, flags);
-               }
+                 /* Getting new symbols may change our opinion about
+                    what is frameless.  */
+                 reinit_frame_cache ();
 
-             /* Getting new symbols may change our opinion about what is
-                frameless.  */
-             reinit_frame_cache ();
-
-             set_initial_language ();
-           }
+                 set_initial_language ();
+               }
          argv++;
        }
 
This page took 0.029961 seconds and 4 git commands to generate.