From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26853 invoked by alias); 3 May 2008 06:23:48 -0000 Received: (qmail 26844 invoked by uid 22791); 3 May 2008 06:23:47 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 03 May 2008 06:23:26 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw1.br.ibm.com (Postfix) with ESMTP id EB47D32C09B for ; Sat, 3 May 2008 02:59:57 -0300 (BRST) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m436NOVL3580088 for ; Sat, 3 May 2008 03:23:24 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m436NN6Y025397 for ; Sat, 3 May 2008 03:23:23 -0300 Received: from [9.18.201.233] ([9.18.201.233]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m436NMbC025392 for ; Sat, 3 May 2008 03:23:22 -0300 Subject: [commit/obvious] various minor fixes From: Thiago Jung Bauermann To: GDB Patches Content-Type: text/plain Date: Sat, 03 May 2008 15:25:00 -0000 Message-Id: <1209795586.7034.83.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00125.txt.bz2 Hi, I just committed the following. I checked out the insight module and checked if show_stack_frame was used there, just in case. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center 2008-05-03 Thiago Jung Bauermann * breakpoint.c (create_exception_catchpoint): Remove prototype for already deleted function. * breakpoint.h (ep_is_exception_catchpoint): Likewise. * frame.h (show_stack_frame): Remove prototype. * stack.c (show_stack_frame): Remove empty, unused function. * source.c (symtab_to_fullname, print_source_lines): Small fix in comment. * value.c (show_values): Update comments to mention "show values" command instead of "info history". === modified file 'gdb/breakpoint.c' --- gdb/breakpoint.c 2008-05-03 05:20:48 +0000 +++ gdb/breakpoint.c 2008-05-03 05:33:04 +0000 @@ -188,10 +188,6 @@ static char *ep_parse_optional_if_clause static char *ep_parse_optional_filename (char **arg); -static void create_exception_catchpoint (int tempflag, char *cond_string, - enum exception_event_kind ex_event, - struct symtab_and_line *sal); - static void catch_exception_command_1 (enum exception_event_kind ex_event, char *arg, int tempflag, int from_tty); === modified file 'gdb/breakpoint.h' --- gdb/breakpoint.h 2008-05-03 05:20:48 +0000 +++ gdb/breakpoint.h 2008-05-03 05:33:04 +0000 @@ -684,8 +684,6 @@ extern void breakpoint_re_set (void); extern void breakpoint_re_set_thread (struct breakpoint *); -extern int ep_is_exception_catchpoint (struct breakpoint *); - extern struct breakpoint *set_momentary_breakpoint (struct symtab_and_line, struct frame_id, enum bptype); === modified file 'gdb/frame.h' --- gdb/frame.h 2008-05-03 05:20:48 +0000 +++ gdb/frame.h 2008-05-03 05:33:04 +0000 @@ -645,8 +645,6 @@ extern void show_and_print_stack_frame ( extern void print_stack_frame (struct frame_info *, int print_level, enum print_what print_what); -extern void show_stack_frame (struct frame_info *); - extern void print_frame_info (struct frame_info *, int print_level, enum print_what print_what, int args); === modified file 'gdb/source.c' --- gdb/source.c 2008-04-21 16:12:57 +0000 +++ gdb/source.c 2008-05-03 05:33:05 +0000 @@ -1046,11 +1046,11 @@ open_source_file (struct symtab *s) /* Finds the fullname that a symtab represents. - If this functions finds the fullname, it will save it in ps->fullname + If this functions finds the fullname, it will save it in s->fullname and it will also return the value. If this function fails to find the file that this symtab represents, - NULL will be returned and ps->fullname will be set to NULL. */ + NULL will be returned and s->fullname will be set to NULL. */ char * symtab_to_fullname (struct symtab *s) { @@ -1421,7 +1421,7 @@ print_source_lines_base (struct symtab * } /* Show source lines from the file of symtab S, starting with line - number LINE and stopping before line number STOPLINE. If this is the + number LINE and stopping before line number STOPLINE. If this is not the command line version, then the source is shown in the source window otherwise it is simply printed */ === modified file 'gdb/stack.c' --- gdb/stack.c 2008-05-03 05:20:48 +0000 +++ gdb/stack.c 2008-05-03 05:33:05 +0000 @@ -738,14 +738,6 @@ print_frame (struct frame_info *frame, i do_cleanups (old_chain); } -/* Show the frame info. If this is the tui, it will be shown in the - source display otherwise, nothing is done. */ - -void -show_stack_frame (struct frame_info *frame) -{ -} - /* Read a frame specification in whatever the appropriate format is from FRAME_EXP. Call error(), printing MESSAGE, if the === modified file 'gdb/value.c' --- gdb/value.c 2008-05-03 05:20:48 +0000 +++ gdb/value.c 2008-05-03 05:33:05 +0000 @@ -665,14 +665,14 @@ show_values (char *num_exp, int from_tty if (num_exp) { - /* "info history +" should print from the stored position. - "info history " should print around value number . */ + /* "show values +" should print from the stored position. + "show values " should print around value number . */ if (num_exp[0] != '+' || num_exp[1] != '\0') num = parse_and_eval_long (num_exp) - 5; } else { - /* "info history" means print the last 10 values. */ + /* "show values" means print the last 10 values. */ num = value_history_count - 9; } @@ -687,12 +687,12 @@ show_values (char *num_exp, int from_tty printf_filtered (("\n")); } - /* The next "info history +" should start after what we just printed. */ + /* The next "show values +" should start after what we just printed. */ num += 10; /* Hitting just return after this command should do the same thing as - "info history +". If num_exp is null, this is unnecessary, since - "info history +" is not useful after "info history". */ + "show values +". If num_exp is null, this is unnecessary, since + "show values +" is not useful after "show values". */ if (from_tty && num_exp) { num_exp[0] = '+';