public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  pmuldoon/python-backtrace: Fix up review change
@ 2013-05-08 10:01 pmuldoon
  0 siblings, 0 replies; only message in thread
From: pmuldoon @ 2013-05-08 10:01 UTC (permalink / raw)
  To: archer-commits

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 <pmuldoon@redhat.com>
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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-08 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 10:01 [SCM] pmuldoon/python-backtrace: Fix up review change pmuldoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).