2011-07-20 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Wed, 20 Jul 2011 11:01:21 +0000 (11:01 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 20 Jul 2011 11:01:21 +0000 (11:01 +0000)
* tracepoint.c (tracepoint_look_up_symbols): Return upon the first
symbol error.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index 4a9baf6e034166c5b6fff7b7df3af27a36f978ed..5926a790e0286a6953ff61e3219130fe2d4046d8 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-20  Pedro Alves  <pedro@codesourcery.com>
+
+       * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
+       symbol error.
+
 2011-05-31  Pedro Alves  <pedro@codesourcery.com>
 
        * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
index dc1050e4c7412809e3be0ad6f420fa9d5f0bd524..8cfb7730b64f68bc7cf2366862fadd5dd6659e3a 100644 (file)
@@ -320,13 +320,11 @@ maybe_write_ipa_ust_not_loaded (char *buffer)
 void
 tracepoint_look_up_symbols (void)
 {
-  int all_ok;
   int i;
 
   if (all_tracepoint_symbols_looked_up)
     return;
 
-  all_ok = 1;
   for (i = 0; i < sizeof (symbol_list) / sizeof (symbol_list[0]); i++)
     {
       CORE_ADDR *addrp =
@@ -336,11 +334,11 @@ tracepoint_look_up_symbols (void)
        {
          if (debug_threads)
            fprintf (stderr, "symbol `%s' not found\n", symbol_list[i].name);
-         all_ok = 0;
+         return;
        }
     }
 
-  all_tracepoint_symbols_looked_up = all_ok;
+  all_tracepoint_symbols_looked_up = 1;
 }
 
 #endif