remote_gdb.cc (5105:511fe87ea24c) | remote_gdb.cc (5498:2af99511ded4) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 440 unchanged lines hidden (view full) --- 449 if (vaddr < 10) { 450 DPRINTF(GDBRead, "read: reading memory location zero!\n"); 451 vaddr = lastaddr + lastsize; 452 } 453 454 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 455 456#if FULL_SYSTEM | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 440 unchanged lines hidden (view full) --- 449 if (vaddr < 10) { 450 DPRINTF(GDBRead, "read: reading memory location zero!\n"); 451 vaddr = lastaddr + lastsize; 452 } 453 454 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 455 456#if FULL_SYSTEM |
457 VirtualPort *port = context->getVirtPort(context); | 457 VirtualPort *port = context->getVirtPort(); |
458#else 459 TranslatingPort *port = context->getMemPort(); 460#endif 461 port->readBlob(vaddr, (uint8_t*)data, size); 462#if FULL_SYSTEM 463 context->delVirtPort(port); 464#endif 465 --- 28 unchanged lines hidden (view full) --- 494 if (DTRACE(GDBExtra)) { 495 char buf[1024]; 496 mem2hex(buf, data, size); 497 DPRINTFNR(": %s\n", buf); 498 } else 499 DPRINTFNR("\n"); 500 } 501#if FULL_SYSTEM | 458#else 459 TranslatingPort *port = context->getMemPort(); 460#endif 461 port->readBlob(vaddr, (uint8_t*)data, size); 462#if FULL_SYSTEM 463 context->delVirtPort(port); 464#endif 465 --- 28 unchanged lines hidden (view full) --- 494 if (DTRACE(GDBExtra)) { 495 char buf[1024]; 496 mem2hex(buf, data, size); 497 DPRINTFNR(": %s\n", buf); 498 } else 499 DPRINTFNR("\n"); 500 } 501#if FULL_SYSTEM |
502 VirtualPort *port = context->getVirtPort(context); | 502 VirtualPort *port = context->getVirtPort(); |
503#else 504 TranslatingPort *port = context->getMemPort(); 505#endif 506 port->writeBlob(vaddr, (uint8_t*)data, size); 507#if FULL_SYSTEM 508 context->delVirtPort(port); 509#else 510 delete port; --- 513 unchanged lines hidden --- | 503#else 504 TranslatingPort *port = context->getMemPort(); 505#endif 506 port->writeBlob(vaddr, (uint8_t*)data, size); 507#if FULL_SYSTEM 508 context->delVirtPort(port); 509#else 510 delete port; --- 513 unchanged lines hidden --- |