diff options
author | Eugene Tarassov | 2015-05-12 21:30:50 +0000 |
---|---|---|
committer | Eugene Tarassov | 2015-05-12 21:30:50 +0000 |
commit | e0448b84d5a1da1219b2d7ac4330582ff3640a67 (patch) | |
tree | 899c9c4af26265295affa76cecb6c94dba7853bb | |
parent | bbd2827bca71555f84eb129991bad944cbc4d7c1 (diff) | |
download | org.eclipse.tcf.agent-e0448b84d5a1da1219b2d7ac4330582ff3640a67.tar.gz org.eclipse.tcf.agent-e0448b84d5a1da1219b2d7ac4330582ff3640a67.tar.xz org.eclipse.tcf.agent-e0448b84d5a1da1219b2d7ac4330582ff3640a67.zip |
TCF Agent: better error message when all hardware breakpoints are already in use
-rw-r--r-- | agent/machine/x86_64/tcf/cpudefs-mdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/machine/x86_64/tcf/cpudefs-mdep.c b/agent/machine/x86_64/tcf/cpudefs-mdep.c index 0f99eadb..c745d96e 100644 --- a/agent/machine/x86_64/tcf/cpudefs-mdep.c +++ b/agent/machine/x86_64/tcf/cpudefs-mdep.c @@ -1128,6 +1128,8 @@ int cpu_bp_plant(ContextBreakpoint * bp) { for (i = 0; i < MAX_HW_BPS && n > 0; i++) { if (bps->hw_bps[i] == bp) bps->hw_bps[i] = NULL; } + set_errno(ERR_UNSUPPORTED, "All hardware breakpoints are already in use"); + return -1; } } errno = ERR_UNSUPPORTED; |