This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error while debugging a program using

On 10/29/19 1:12 PM, Nisarg Shah wrote:
> If I run the same program under normal GDB, it works as expected -

That doesn't setup the debugger correctly and it will fail to debug
mulit-threaded binaries.
> $ gdb ./a.out
> GNU gdb (Ubuntu 8.1-0ubuntu3.1)
> Copyright (C) 2018 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <>.
> Find the GDB manual and other documentation resources online at:
> <>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from ./a.out...done.

If doesn't work for you because of the way your system
compiler operates then you will have to follow the manual instructions.

You will debug the application as you did above, but you have to configure
the other settings by hand as documented in the wiki.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]