This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: next/step after main() function's return


On Wed, 29 Dec 2010 03:49:40 +0100, Joel Brobecker wrote:
> > It can be, depending on the OS:
> [...]
> > fedora-release-14-1.noarch
> > glibc-debuginfo-2.12.90-21.x86_64
> 
> Indeed! Does glic come with debug info by default on Fedora?

Not in a default installation but `debuginfo-install glibc' will provide it.
In fact `debuginfo-install any package' will always provide also glibc due to
the obvious package dependencies.

Also in Fedora GDB there is a rpm-specific patch
	http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-6.6-buildid-locate-rpm.patch;hb=master
on top of
	[patch 1/2] build id
	http://sourceware.org/ml/gdb-patches/2010-11/msg00353.html
providing a suggestion:
	gdb-7.2-26.fc14.x86_64
	$ echo 'main(){}' | gcc -x c -; gdb -q ./a.out -ex start
	Temporary breakpoint 1, 0x0000000000400478 in main ()
	Missing separate debuginfos, use: debuginfo-install glibc-2.12.90-21.x86_64
	(gdb) _
and therefore I guess users may have it commonly installed.


Thanks,
Jan


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