remote_gdb.cc (3536:89aa06409e4d) remote_gdb.cc (3550:515e876568b4)
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;

--- 557 unchanged lines hidden (view full) ---

566 if (--hbp->refcount == 0) {
567 delete hbp;
568 hardBreakMap.erase(i);
569 }
570
571 return true;
572}
573
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;

--- 557 unchanged lines hidden (view full) ---

566 if (--hbp->refcount == 0) {
567 delete hbp;
568 hardBreakMap.erase(i);
569 }
570
571 return true;
572}
573
574void
575BaseRemoteGDB::setTempBreakpoint(Addr bkpt)
576{
577 DPRINTF(GDBMisc, "setTempBreakpoint: addr=%#x\n", bkpt);
578 insertHardBreak(bkpt, sizeof(TheISA::MachInst));
579}
580
581void
582BaseRemoteGDB::clearTempBreakpoint(Addr &bkpt)
583{
584 DPRINTF(GDBMisc, "setTempBreakpoint: addr=%#x\n", bkpt);
585 removeHardBreak(bkpt, sizeof(TheISA::MachInst));
586 bkpt = 0;
587}
588
574const char *
575BaseRemoteGDB::break_type(char c)
576{
577 switch(c) {
578 case '0': return "software breakpoint";
579 case '1': return "hardware breakpoint";
580 case '2': return "write watchpoint";
581 case '3': return "read watchpoint";

--- 403 unchanged lines hidden ---
589const char *
590BaseRemoteGDB::break_type(char c)
591{
592 switch(c) {
593 case '0': return "software breakpoint";
594 case '1': return "hardware breakpoint";
595 case '2': return "write watchpoint";
596 case '3': return "read watchpoint";

--- 403 unchanged lines hidden ---