URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 221 |
Rev 261 |
Line 35... |
Line 35... |
void set_insnbrkpoint(unsigned long addr)
|
void set_insnbrkpoint(unsigned long addr)
|
{
|
{
|
struct mem_entry *entry;
|
struct mem_entry *entry;
|
addr &= 0xfffffffc; /* 32-bit aligned */
|
addr &= 0xfffffffc; /* 32-bit aligned */
|
|
|
if (verify_memoryarea(addr) && cur_area->getentry && (entry = cur_area->getentry(addr)))
|
if (verify_memoryarea(addr))
|
if (entry->brk) {
|
if (has_breakpoint (addr)) {
|
entry->brk = 0;
|
remove_breakpoint (addr);
|
printf("\nBreakpoint at 0x%.8lx cleared.\n", addr);
|
printf("\nBreakpoint at 0x%.8lx cleared.\n", addr);
|
} else {
|
} else {
|
entry->brk = 1;
|
add_breakpoint (addr);
|
printf("\nBreakpoint at 0x%.8lx set.\n", addr);
|
printf("\nBreakpoint at 0x%.8lx set.\n", addr);
|
}
|
}
|
else
|
else
|
printf("ERROR: Can't set this breakpoint out of memory.\n");
|
printf("ERROR: Can't set this breakpoint out of memory.\n");
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.