remote_gdb.cc (5498:2af99511ded4) | remote_gdb.cc (5499:8bfc7650c344) |
---|---|
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; --- 445 unchanged lines hidden (view full) --- 454 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 455 456#if FULL_SYSTEM 457 VirtualPort *port = context->getVirtPort(); 458#else 459 TranslatingPort *port = context->getMemPort(); 460#endif 461 port->readBlob(vaddr, (uint8_t*)data, size); | 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; --- 445 unchanged lines hidden (view full) --- 454 DPRINTF(GDBRead, "read: addr=%#x, size=%d", vaddr, size); 455 456#if FULL_SYSTEM 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 466#if TRACING_ON 467 if (DTRACE(GDBRead)) { 468 if (DTRACE(GDBExtra)) { 469 char buf[1024]; 470 mem2hex(buf, data, size); 471 DPRINTFNR(": %s\n", buf); 472 } else --- 26 unchanged lines hidden (view full) --- 499 DPRINTFNR("\n"); 500 } 501#if FULL_SYSTEM 502 VirtualPort *port = context->getVirtPort(); 503#else 504 TranslatingPort *port = context->getMemPort(); 505#endif 506 port->writeBlob(vaddr, (uint8_t*)data, size); | 462 463#if TRACING_ON 464 if (DTRACE(GDBRead)) { 465 if (DTRACE(GDBExtra)) { 466 char buf[1024]; 467 mem2hex(buf, data, size); 468 DPRINTFNR(": %s\n", buf); 469 } else --- 26 unchanged lines hidden (view full) --- 496 DPRINTFNR("\n"); 497 } 498#if FULL_SYSTEM 499 VirtualPort *port = context->getVirtPort(); 500#else 501 TranslatingPort *port = context->getMemPort(); 502#endif 503 port->writeBlob(vaddr, (uint8_t*)data, size); |
507#if FULL_SYSTEM 508 context->delVirtPort(port); 509#else | 504#if !FULL_SYSTEM |
510 delete port; 511#endif 512 513 return true; 514} 515 516PCEventQueue *BaseRemoteGDB::getPcEventQueue() 517{ --- 506 unchanged lines hidden --- | 505 delete port; 506#endif 507 508 return true; 509} 510 511PCEventQueue *BaseRemoteGDB::getPcEventQueue() 512{ --- 506 unchanged lines hidden --- |