From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id DBDC4386F02B for ; Tue, 12 May 2020 20:22:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DBDC4386F02B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x329.google.com with SMTP id u16so25291181wmc.5 for ; Tue, 12 May 2020 13:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pOJV6+KToxX3seWX2A39kCTmLlMGoAHcsY9f2K3CSfY=; b=cumdRd1yauGBULkfBpTbrhnpeSHbg3ncX2e5QPxaAktUsa7zDsaAIicDhG/i6OIaDU BvNffeSlQS3H4lr91sDhHeqr/m7IAY2YC8/QHb/Yq52u83IOGJxcteth787m6KJg6O2q 3l3b3jlYydITZ/1ZrkXVkxr53jDOKBNelUUTwqFDY5PoFsMH/nUPpouwp8eiz9/xE793 Emkf90JCHmeEvEiEsEyaFkRTIae1LOVQH/TFmC8mY+VlcvmGm7yB6PY0T8vEXwJADwFD duaes5xreMjnMVd7CWeCxESvqXAIaCHIvZM2Cj4JKxkdGnfzyvFQQv2KOIUr/icE/LgT ji2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pOJV6+KToxX3seWX2A39kCTmLlMGoAHcsY9f2K3CSfY=; b=X/YtIiFGeKxUd/gxmmIWWK82jwlua4cUJGu+m75nsNUIlHo7UCGpq/H41H2D2U5iQj e51arrUN6mtakQYxbEuzr1lQuKRzdyj774U2TsUpCqo3n94IirXTmNzPzdQfOKLuKULO NPfl8Cb5F5PFjdMnMzfmbhfTcabXDotdPGid7YgGku6WaAeY19zBpTXtYmIZcxW2T9MV V+qpEdarNE/3JQ8xhpoLJaSrn/wgrcZm54Rvdm2pIDNLopxk78swbz27375maSzX9MYY Ih8XdnBUCwDmV6dGol3CmV6APOahyvGLBAtHUvL6nRyn5wYMkBir78ZONUWTG6TWvmU7 /DBA== X-Gm-Message-State: AGi0PuYV3u9/Nkp0TcaRQMEZtj4+HvrAZVncvm5K8ESoTGk6G/HKavJI S7YbN28AH5FQwctjJcvnJV1Dq1Ag3g8= X-Google-Smtp-Source: APiQypJ79whMxMfx8PHksMIYW7PvVfX2YKV+jYVSu3u1XpWVgDFual064HyDPkvcfkpwYXGOciiVkg== X-Received: by 2002:a05:600c:290e:: with SMTP id i14mr9662155wmd.9.1589314961715; Tue, 12 May 2020 13:22:41 -0700 (PDT) Received: from localhost (host81-151-181-184.range81-151.btcentralplus.com. [81.151.181.184]) by smtp.gmail.com with ESMTPSA id y3sm23652051wrt.87.2020.05.12.13.22.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 13:22:41 -0700 (PDT) Date: Tue, 12 May 2020 21:22:40 +0100 From: Andrew Burgess To: Kunal Chauhan Cc: gdb@sourceware.org Subject: Re: Help: debug binary Message-ID: <20200512202240.GC2242921@embecosm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux/5.5.17-200.fc31.x86_64 (x86_64) X-Uptime: 21:18:23 up 22 days, 9:10, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 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 20:22:44 -0000 * 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 *