From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20279 invoked by alias); 24 Aug 2009 19:03:47 -0000 Received: (qmail 20270 invoked by uid 22791); 24 Aug 2009 19:03:47 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout4.012.net.il (HELO mtaout3.012.net.il) (84.95.2.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Aug 2009 19:03:41 +0000 Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KOW00N00A8F2000@i_mtaout3.012.net.il> for gdb-patches@sourceware.org; Mon, 24 Aug 2009 22:03:38 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.180.85]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KOW00KLIAA1S200@i_mtaout3.012.net.il>; Mon, 24 Aug 2009 22:03:38 +0300 (IDT) Date: Mon, 24 Aug 2009 19:14:00 -0000 From: Eli Zaretskii Subject: Re: [RFA/RFC Prec] Add process record skip 6/6 (doc) In-reply-to: To: Hui Zhu Cc: gdb-patches@sourceware.org, msnyder@vmware.com, green@moxielogic.com Reply-to: Eli Zaretskii Message-id: <83fxbhdofo.fsf@gnu.org> References: <837hwzir3w.fsf@gnu.org> <8363cefkkp.fsf@gnu.org> 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: 2009-08/txt/msg00392.txt.bz2 > From: Hui Zhu > Date: Mon, 24 Aug 2009 16:49:42 +0800 > Cc: gdb-patches@sourceware.org, msnyder@vmware.com, green@moxielogic.com > > Because the change of each function is special, function > record_skip_entry_create need a special record function pointer for > each function that want to skip. For example, in > "5-skip-record-i386-linux.txt". > + record_skip_entry_create (gdbarch, "printf", > + i386_linux_process_record_simple_function); > + record_skip_entry_create (gdbarch, "memset", > + i386_linux_process_record_memset); > + record_skip_entry_create (gdbarch, "memcpy", > + i386_linux_process_record_memset); > > i386_linux_process_record_simple_function is for printf. > i386_linux_process_record_memset is for memset and memcpy. So we currently support record skip of only 3 functions, the ones mentioned above, is that right? In that case, we should document those functions in the manual, I think. > Without the skip, to record a function, it need record all the insn change: > 1. It need step by step. Speed is low. > 2. It need record the change of each insn, it will need a lot of memory. > > With the skip, to record a function, it just record the change in the > begin of function, after that, continue. > 1. It doesn't need step by step. Speed is hight. > 2. it doesn't need record the each insn, it will not need a lot of memory. Do we lose any information because of skip? If not, why don't we do that always, why do we need an option to enable and disable that?