Add a symbol's value to the computed frag offset, rather than overwriting it.
[deliverable/binutils-gdb.git] / gdb / m68k-stub.c
index 3915fda7ce1aeb8105ac30a534864a745db52cec..84c61a13aa59e3a8bd45de52d3f204af59dc9721 100644 (file)
@@ -791,7 +791,7 @@ void handle_exception(int exceptionVector)
                 mem2hex((char*) registers, remcomOutBuffer, NUMREGBYTES);
                 break;
       case 'G' : /* set the value of the CPU registers - return OK */
-                hex2mem(&ptr, (char*) registers, NUMREGBYTES);
+                hex2mem(ptr, (char*) registers, NUMREGBYTES);
                 strcpy(remcomOutBuffer,"OK");
                 break;
       
This page took 0.0232 seconds and 4 git commands to generate.