From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10436 invoked by alias); 8 May 2013 10:01:53 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 10396 invoked by uid 9514); 8 May 2013 10:01:53 -0000 Date: Wed, 08 May 2013 10:01:00 -0000 Message-ID: <20130508100153.10366.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] pmuldoon/python-backtrace: Fix up review change X-Git-Refname: refs/heads/pmuldoon/python-backtrace X-Git-Reftype: branch X-Git-Oldrev: 9d73782809b88cd95e36ed10004abf2b0a53d9ec X-Git-Newrev: 967deb420c2df1356b914c6319a5dbc93435218b X-SW-Source: 2013-q2/txt/msg00056.txt.bz2 List-Id: The branch, pmuldoon/python-backtrace has been updated via 967deb420c2df1356b914c6319a5dbc93435218b (commit) from 9d73782809b88cd95e36ed10004abf2b0a53d9ec (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 967deb420c2df1356b914c6319a5dbc93435218b Author: Phil Muldoon Date: Wed May 8 11:01:30 2013 +0100 Fix up review change ----------------------------------------------------------------------- Summary of changes: gdb/mi/mi-cmd-stack.c | 7 +++++-- gdb/python/python.c | 9 +++++---- 2 files changed, 10 insertions(+), 6 deletions(-) First 500 lines of diff: diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 07c0510..170c1a8 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -108,10 +108,13 @@ mi_cmd_stack_list_frames (char *command, char **argv, int argc) } } - if ((argc > 3) || (argc == 2 && oind) || (argc == 1 && ! oind)) + /* After the last option is parsed, there should either be low - + high range, or no further arguments. */ + if ((argc - oind != 0) && (argc - oind !=2)) error (_("-stack-list-frames: Usage: [--no-frame-filters] [FRAME_LOW FRAME_HIGH]")); - if (argc == 3 || argc == 2) + /* If there is a range, set it. */ + if (argc - oind == 2) { frame_low = atoi (argv[0 + oind]); frame_high = atoi (argv[1 + oind]); diff --git a/gdb/python/python.c b/gdb/python/python.c index 95d8cf8..3e2a852 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1393,10 +1393,11 @@ free_type_printers (void *arg) { } -int apply_frame_filter (struct frame_info *frame, int flags, - enum py_frame_args args_type, - struct ui_out *out, int frame_low, - int frame_high) +enum py_bt_status +apply_frame_filter (struct frame_info *frame, int flags, + enum py_frame_args args_type, + struct ui_out *out, int frame_low, + int frame_high) { return PY_BT_NO_FILTERS; } hooks/post-receive -- Repository for Project Archer.