From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23205 invoked by alias); 22 Oct 2008 16:17:48 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 23178 invoked by uid 9514); 22 Oct 2008 16:17:47 -0000 Date: Wed, 22 Oct 2008 16:17:00 -0000 Message-ID: <20081022161747.23163.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-pmuldoon-exception-rewind: Only cleanup breakpoint if it was created. X-Git-Refname: refs/heads/archer-pmuldoon-exception-rewind X-Git-Reftype: branch X-Git-Oldrev: 13774f62ebfc5012886fed8b10f42d2eca0cdcf6 X-Git-Newrev: 537fb5a0965f39d439bba69275191463e041118b X-SW-Source: 2008-q4/txt/msg00036.txt.bz2 List-Id: The branch, archer-pmuldoon-exception-rewind has been updated via 537fb5a0965f39d439bba69275191463e041118b (commit) from 13774f62ebfc5012886fed8b10f42d2eca0cdcf6 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 537fb5a0965f39d439bba69275191463e041118b Author: Phil Muldoon Date: Wed Oct 22 17:17:16 2008 +0100 Only cleanup breakpoint if it was created. ----------------------------------------------------------------------- Summary of changes: gdb/infcall.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) First 500 lines of diff: diff --git a/gdb/infcall.c b/gdb/infcall.c index 5749d20..ece57ba 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -691,10 +691,12 @@ call_function_by_hand (struct value *function, int nargs, struct value **args) if (unwind_on_terminating_exception_p) { tm = lookup_minimal_symbol ("std::terminate()", NULL, NULL); - if (tm != NULL) - terminate_bp = set_momentary_breakpoint_at_pc - (SYMBOL_VALUE_ADDRESS (tm), bp_breakpoint); - make_cleanup_delete_breakpoint (terminate_bp); + if (tm != NULL) + { + terminate_bp = set_momentary_breakpoint_at_pc + (SYMBOL_VALUE_ADDRESS (tm), bp_breakpoint); + make_cleanup_delete_breakpoint (terminate_bp); + } } /* Execute a "stack dummy", a piece of code stored in the stack by hooks/post-receive -- Repository for Project Archer.