From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by sourceware.org (Postfix) with ESMTPS id EB89D3952000 for ; Tue, 12 May 2020 21:07:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EB89D3952000 Received: by mail-qv1-xf30.google.com with SMTP id r3so7217590qvm.1 for ; Tue, 12 May 2020 14:07:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hiQ5ewRLuudIzHGYr0d83pbnbZGPVHJJ69VhubX+3d4=; b=LBJEyr6JCdf5d499XosPWHFhIfSyUg2ScTHfPKqFOsSQ2MbaEgfqhIJKmqTwbVNdRo KfjRBPyRsMdnGba+C3SZUbJRT01/ir2vaVVkqkixUD4cHh7fo6HQ2unr4YmKtft9ybLk VEdLZYSculL3e+R617YoJ92GYapMH9DfHSYhGA6CA0P6GeB9YnllY+3hs+43pV/jEzeH D26QrM6W7ScymFAFE4WhFII6PpU/vIY7/u6ZX2AdqtAojDWyC/7rsT/DDAfsD1VJKDF/ Plv9PnVhbEw26okrHmG4UMmjRFcbRfLUy5iePmwIPDPEb9jphuRJ7K3V2pldyUB0OjLc knGA== X-Gm-Message-State: AGi0PubyBWG8ZWLNCIwTxXp8eOXnuJniCi8Bh2D4oNgRprIK1lT+r1ZQ TSwEWH/2wteHN27LIn9q0QUzReO31I+J3CA9XSHit/b5 X-Google-Smtp-Source: APiQypKBHP5K1gEdmDZ2F27nmV4pz9A7FfmENxNxYQA2XpCAupNCJKqzV3/d/9RXnj4rAviltCjLE3pR8YDyuKcxF8s= X-Received: by 2002:a05:6214:13ce:: with SMTP id cg14mr13219238qvb.103.1589317668261; Tue, 12 May 2020 14:07:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6214:323:0:0:0:0 with HTTP; Tue, 12 May 2020 14:07:47 -0700 (PDT) Received: by 2002:a05:6214:323:0:0:0:0 with HTTP; Tue, 12 May 2020 14:07:47 -0700 (PDT) In-Reply-To: <20200512202240.GC2242921@embecosm.com> References: <20200512202240.GC2242921@embecosm.com> From: Kunal Chauhan Date: Wed, 13 May 2020 02:37:47 +0530 Message-ID: Subject: Re: Help: debug binary To: Andrew Burgess Cc: gdb@sourceware.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 21:07:50 -0000 Is gdb binary core.file this can be run or developement system ? Means is it necessary to run on target board On 13 May 2020 1:52 a.m., "Andrew Burgess" wrote: > * Kunal Chauhan via Gdb [2020-05-13 01:05:32 +0530]: > > > Hi Team > > As I am new to core files and gdb > > >> How core file looks like in unix ? > > >>Can we use gdb to findout crash from core files? at development > > system. > > You don't really need to know the details of the core file format, you > just need the core file and the corresponding binary and you can debug > this with GDB. See: > > https://sourceware.org/gdb/current/onlinedocs/gdb/ > Invoking-GDB.html#Invoking-GDB > > Basically you want: > > $ gdb application.exe core.file > > Then you should be able to investigate the state of the target at the > time it produced the core file. > > Good luck, > Andrew > > > > > > > > On Tue, May 12, 2020 at 8:54 AM Kunal Chauhan > > wrote: > > > > > Hi Team > > > > > > I am new to the stuff of debugging and do not know any memory tools. > > > > > > 1. I have logs of binary and have only development machine. I searched > my > > > logs and prints shows something like. > > > > > > Void f1() > > > { > > > F1() > > > > > > } > > > > > > 1.F1: returns the int val and after that binary crash . > > > 2. In f1 some memory allocation and deallocation done for char* > > > > > > > > > How can i check that particular function and file for memory crash . > As i > > > have develoment system where i can only compile my binary.? > > > > > > Please suggest some useful steps > > > > > > > > > Thanks > > > Kunal > > > > > > > > > > > > > -- > > *Thanks with Regards!* > > > > *Kunal Chauhan* > > *Mob:09813614826* > > *Mob:08860397903* > > > > *E-mail:atkunalchauhan@gmail.com * >