]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/remote.c
start change to progspace independence
[thirdparty/binutils-gdb.git] / gdb / remote.c
index 8e9ef64e3d37ee6d67b9e544a5bb87ccf4a8d72e..e03d3bf988a01e8308c09e9c128a4cc4a49506cb 100644 (file)
@@ -3701,6 +3701,8 @@ remote_check_symbols (void)
 
   while (strncmp (reply, "qSymbol:", 8) == 0)
     {
+      struct bound_minimal_symbol sym;
+
       tmp = &reply[8];
       end = hex2bin (tmp, (gdb_byte *) msg, strlen (tmp) / 2);
       msg[end] = '\0';
@@ -3710,7 +3712,7 @@ remote_check_symbols (void)
       else
        {
          int addr_size = gdbarch_addr_bit (target_gdbarch ()) / 8;
-         CORE_ADDR sym_addr = MSYMBOL_VALUE_ADDRESS (sym.minsym);
+         CORE_ADDR sym_addr = BMSYMBOL_VALUE_ADDRESS (sym);
 
          /* If this is a function address, return the start of code
             instead of any data function descriptor.  */