Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #228

cant get gdb to list src or single step

From Cat 22 <cat22@invalid.org>
Newsgroups comp.os.linux.development.apps
Subject cant get gdb to list src or single step
Followup-To comp.os.linux.development.apps
Date 2011-07-31 14:31 -0700
Organization Daddy, why doesn't this magnet pick up this floppy disk?
Message-ID <j14hjh$8fs$1@dont-email.me> (permalink)

Followups directed to: comp.os.linux.development.apps

Show all headers | View raw


I am having trouble getting gdb to work properly.
I did try installing the package it wants and that makes
the err msg go way but i still cant debug like i should be able to 
e.g listing src single stepping etc.
I'm using a 2.6.38 kernel not the Mandriva kernel, but I dont think 
gdb cares? (I dont think gdb relies on some integration with the 
kernel does it?)

My make file uses these flags:
   -Wall -O0 -g3 -Werror

A typical session is shown below
Any ideas?
Thanks,
Cat22

$ gdb --directory=${PWD} b_opt
GNU gdb 6.8-7mdv2010.0 (Mandriva Linux release 2010.0)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
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-mandriva-linux-gnu"...
(gdb) b main
Breakpoint 1 at 0x400808
(gdb) r
Starting program: /home/xxx/YYY/zzzz_zz/b_opt

Breakpoint 1, 0x0000000000400808 in main ()
Missing debug package(s), you should install: glibc-
debug-2.10.1-6.7mnb2.x86_64
(gdb) l
1       rtld.c: No such file or directory.
        in rtld.c
(gdb) l main
No line number known for main.
(gdb)

Back to comp.os.linux.development.apps | Previous | NextNext in thread | Find similar


Thread

cant get gdb to list src or single step Cat 22 <cat22@invalid.org> - 2011-07-31 14:31 -0700
  Re: cant get gdb to list src or single step Roy Strachan <rd@bj.com> - 2011-08-04 21:22 +0000
    Re: cant get gdb to list src or single step Cat22 <oops@invalid.org> - 2011-08-05 19:14 -0700
      Re: cant get gdb to list src or single step Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2011-08-06 10:58 +0300
        Re: cant get gdb to list src or single step Cat22 <oops@invalid.org> - 2011-08-09 04:37 -0700
      Re: cant get gdb to list src or single step jacob navia <jacob@spamsink.net> - 2011-08-06 09:59 +0200
        Re: Pay-for software versus for free software quality jt@toerring.de (Jens Thoms Toerring) - 2011-08-07 00:23 +0000
  Re: cant get gdb to list src or single step pacman@kosh.dhis.org (Alan Curry) - 2011-08-06 10:38 +0000

csiph-web