Re: Help: debug binary

Kunal Chauhan via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CACEFAc1Fsa04Qdi4i5wrFO5YGEgSCmzh_ZEaQcmixwE22a7CyQ@mail.gmail.com>
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" <[email protected]>
wrote:

> * Kunal Chauhan via Gdb <[email protected]> [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 <[email protected]>
> > 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:[email protected] <E-mail%[email protected]>*
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.