From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22537 invoked by alias); 22 Jun 2010 02:17:08 -0000 Received: (qmail 22528 invoked by uid 22791); 22 Jun 2010 02:17:07 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_VC X-Spam-Check-By: sourceware.org Received: from mail-px0-f169.google.com (HELO mail-px0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Jun 2010 02:17:03 +0000 Received: by pxi17 with SMTP id 17so756395pxi.0 for ; Mon, 21 Jun 2010 19:17:01 -0700 (PDT) Received: by 10.143.24.29 with SMTP id b29mr4392560wfj.348.1277173021294; Mon, 21 Jun 2010 19:17:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.32.8 with HTTP; Mon, 21 Jun 2010 19:16:41 -0700 (PDT) In-Reply-To: References: <4C181DF2.7030604@vmware.com> From: Hui Zhu Date: Tue, 22 Jun 2010 02:17:00 -0000 Message-ID: Subject: Re: [PATCH] record.c: make prec can save the execution log to a pic file To: gdb-patches ml Cc: Michael Snyder Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2010-06/txt/msg00468.txt.bz2 Checked in. On Fri, Jun 18, 2010 at 15:30, Hui Zhu wrote: > This is the new patch that just did some small words change. > > Following is a vcg file that got from record pic: > > graph: {title: "GDB process record" > node: {title: "[BEGIN]"} > node: {title: "1.c:21 main 0x80483c1 c:1"} > node: {title: "main 22 0x80483c8 c:1"} > node: {title: "main 25 0x80483cf c:1"} > node: {title: "main 26 0x80483f3 c:2"} > node: {title: "1.c:9 cool 0x8048391 c:1"} > node: {title: "cool 10 0x8048397 c:1"} > node: {title: "cool 13 0x80483a4 c:1"} > node: {title: "1.c:4 cool2 0x8048374 c:1"} > node: {title: "cool2 5 0x804837a c:1"} > node: {title: "cool2 6 0x804838f c:1"} > node: {title: "1.c:15 cool 0x80483a9 c:1"} > node: {title: "cool 16 0x80483ae c:1"} > node: {title: "main 27 0x80483fb c:1"} > node: {title: "main 30 0x804841f c:1"} > node: {title: "main 31 0x8048423 c:1"} > node: {title: "main 32 0x8048447 c:1"} > node: {title: "main 33 0x8048454 c:1"} > node: {title: "main 34 0x8048478 c:1"} > node: {title: "main 35 0x804847d c:1"} > node: {title: "/build/buildd/glibc-2.7/build-tree/i386-libc/csu/crti.S:41 > _fini 0x804852c c:1"} > node: {title: "_fini 42 0x804852d c:1"} > node: {title: "_fini 43 0x804852f c:1"} > node: {title: "_fini 44 0x8048530 c:1"} > node: {title: "_fini 45 0x8048533 c:1"} > node: {title: "_fini 47 0x8048538 c:1"} > node: {title: "_fini 48 0x8048539 c:1"} > node: {title: "_fini 21 0x8048544 c:1"} > node: {title: "_fini 22 0x8048545 c:1"} > node: {title: "_fini 23 0x8048546 c:1"} > node: {title: "_fini 24 0x8048547 c:1"} > nearedge: {color:red sourcename: "[BEGIN]" targetname: "1.c:21 main > 0x80483c1 c:1"} > nearedge: {sourcename: "1.c:21 main 0x80483c1 c:1" targetname: "main > 22 0x80483c8 c:1" label: "c:1"} > nearedge: {sourcename: "main 22 0x80483c8 c:1" targetname: "main 25 > 0x80483cf c:1" label: "c:1"} > nearedge: {sourcename: "main 25 0x80483cf c:1" targetname: "main 26 > 0x80483f3 c:2" label: "c:1"} > edge: {color:red sourcename: "main 26 0x80483f3 c:2" targetname: > "1.c:9 cool 0x8048391 c:1" label: "c:1"} > nearedge: {sourcename: "1.c:9 cool 0x8048391 c:1" targetname: "cool 10 > 0x8048397 c:1" label: "c:1"} > nearedge: {sourcename: "cool 10 0x8048397 c:1" targetname: "cool 13 > 0x80483a4 c:1" label: "c:1"} > edge: {color:red sourcename: "cool 13 0x80483a4 c:1" targetname: > "1.c:4 cool2 0x8048374 c:1" label: "c:1"} > nearedge: {sourcename: "1.c:4 cool2 0x8048374 c:1" targetname: "cool2 > 5 0x804837a c:1" label: "c:1"} > nearedge: {sourcename: "cool2 5 0x804837a c:1" targetname: "cool2 6 > 0x804838f c:1" label: "c:1"} > edge: {color:blue sourcename: "cool2 6 0x804838f c:1" targetname: > "1.c:15 cool 0x80483a9 c:1" label: "c:1"} > nearedge: {sourcename: "1.c:15 cool 0x80483a9 c:1" targetname: "cool > 16 0x80483ae c:1" label: "c:1"} > edge: {color:blue sourcename: "cool 16 0x80483ae c:1" targetname: > "main 26 0x80483f3 c:2" label: "c:1"} > nearedge: {sourcename: "main 26 0x80483f3 c:2" targetname: "main 27 > 0x80483fb c:1" label: "c:1"} > nearedge: {sourcename: "main 27 0x80483fb c:1" targetname: "main 30 > 0x804841f c:1" label: "c:1"} > nearedge: {sourcename: "main 30 0x804841f c:1" targetname: "main 31 > 0x8048423 c:1" label: "c:1"} > nearedge: {sourcename: "main 31 0x8048423 c:1" targetname: "main 32 > 0x8048447 c:1" label: "c:1"} > nearedge: {sourcename: "main 32 0x8048447 c:1" targetname: "main 33 > 0x8048454 c:1" label: "c:1"} > nearedge: {sourcename: "main 33 0x8048454 c:1" targetname: "main 34 > 0x8048478 c:1" label: "c:1"} > nearedge: {sourcename: "main 34 0x8048478 c:1" targetname: "main 35 > 0x804847d c:1" label: "c:1"} > edge: {color:red sourcename: "main 35 0x804847d c:1" targetname: > "/build/buildd/glibc-2.7/build-tree/i386-libc/csu/crti.S:41 _fini > 0x804852c c:1" label: "c:1"} > nearedge: {sourcename: > "/build/buildd/glibc-2.7/build-tree/i386-libc/csu/crti.S:41 _fini > 0x804852c c:1" targetname: "_fini 42 0x804852d c:1" label: "c:1"} > nearedge: {sourcename: "_fini 42 0x804852d c:1" targetname: "_fini 43 > 0x804852f c:1" label: "c:1"} > nearedge: {sourcename: "_fini 43 0x804852f c:1" targetname: "_fini 44 > 0x8048530 c:1" label: "c:1"} > nearedge: {sourcename: "_fini 44 0x8048530 c:1" targetname: "_fini 45 > 0x8048533 c:1" label: "c:1"} > nearedge: {sourcename: "_fini 45 0x8048533 c:1" targetname: "_fini 47 > 0x8048538 c:1" label: "c:1"} > nearedge: {sourcename: "_fini 47 0x8048538 c:1" targetname: "_fini 48 > 0x8048539 c:1" label: "c:1"} > nearedge: {sourcename: "_fini 48 0x8048539 c:1" targetname: "_fini 21 > 0x8048544 c:1" label: "c:1"} > nearedge: {sourcename: "_fini 21 0x8048544 c:1" targetname: "_fini 22 > 0x8048545 c:1" label: "c:1"} > nearedge: {sourcename: "_fini 22 0x8048545 c:1" targetname: "_fini 23 > 0x8048546 c:1" label: "c:1"} > nearedge: {sourcename: "_fini 23 0x8048546 c:1" targetname: "_fini 24 > 0x8048547 c:1" label: "c:1"} > node: {title: "[END]"} > nearedge: {color:red sourcename: "_fini 23 0x8048546 c:1" targetname: "[E= ND]" } > } > > > Thanks, > Hui > > 2010-06-18 =A0Hui Zhu =A0 > > =A0 =A0 =A0 =A0* record.c (set_record_pic_cmdlist, > =A0 =A0 =A0 =A0show_record_pic_cmdlist): New variables. > =A0 =A0 =A0 =A0(set_record_pic_command, > =A0 =A0 =A0 =A0show_record_pic_command): New functions. > =A0 =A0 =A0 =A0(record_pic_function, record_pic_line, record_pic_enum, > =A0 =A0 =A0 =A0set_record_pic_type, record_pic_hide_nofunction, > =A0 =A0 =A0 =A0record_pic_hide_nosource, record_pic_hide_same): New varia= bles. > =A0 =A0 =A0 =A0(record_pic_fputs): New function. > =A0 =A0 =A0 =A0(node_list, edge_list): New struct. > =A0 =A0 =A0 =A0(node_list, edge_list): New variables. > =A0 =A0 =A0 =A0(record_pic_cleanups, record_pic_node, > =A0 =A0 =A0 =A0record_pic_edge, cmd_record_pic): New functions. > =A0 =A0 =A0 =A0(_initialize_record): Add new commands for record pic. > > 2010-06-18 =A0Hui Zhu =A0 > > =A0 =A0 =A0 =A0* gdb.texinfo: (Process Record and Replay): Add documentat= ion > =A0 =A0 =A0 =A0for command "record pic". >