ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No code visualization


From: Mauro Fiorentino
Subject: No code visualization
Date: Mon, 13 Sep 2004 10:30:13 +0200
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0

Hi ,

I have got a problem with the DDD debugger on a linux machine.
I compiled with the -g option and when I run the ddd I can see just the first 4 lines (commented) of the code I want to inspect. If I try to open the the code from the menu I receive the following message :
" Line 1 of Fitlines.C is it at address 0x804b8c4 but contains no code"

The very same code with the same Makefile works great on Unix machine.

Do you have any suggestions  ? What shall I check ?
Attached is the log file from DDD.

Thanks, Mauro

GNU DDD 3.3.9 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.
Copyright (C) 2001 Universität des Saarlandes, Germany.
Copyright (C) 2001-2004 Free Software Foundation, Inc.

Compiled with GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5), GNU libc 2.3
Requires X11R6, Xt11R6, Motif 2.2.3 (Motif Version 2.2.2)
Includes XPM 3.4.11, Athena Panner (7000002L), DDD core
Built 2004-06-29 by root <address@hidden>.
$  ddd ./fitlines noncentral02.cfg ./SHOWCAT/temp-nll-noncentral.dat 
noncentral02.fits
+  /bin/sh -c 'exec gdb -q -fullname '\''./fitlines'\'' 
'\''noncentral02.cfg'\'' '\''./SHOWCAT/temp-nll-noncentral.dat'\'' 
'\''noncentral02.fits'\'''
#  Hello, world!
#  Opening session "1186ab1de5000109506366800000043330006"...
#  Running GDB (pid 4635, tty /dev/pts/5)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/home/mfiorent/.ddd/vsllib/ddd.vsl"
#  Trying "/usr/local/share/ddd-3.3.9/vsllib/ddd.vsl"
#  Searching "vsllib/ddd.vsl"..."/usr/local/share/ddd-3.3.9/vsllib/ddd.vsl".
2004.09.13 10:21:09
<- "Excess command line arguments ignored. (./SHOWCAT/temp-nll-noncentral.dat 
...)\n"
#  Creating 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/"...
#  Creating 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/"...done.
#  Copying "/home/mfiorent/.ddd/init" to 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/init"...
#  Copying "/home/mfiorent/.ddd/init" to 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/init"...done.
#  Copying "/home/mfiorent/.ddd/history" to 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/history"...
#  Copying "/home/mfiorent/.ddd/history" to 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/history"...done.
#  Saving session in 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/init"...
#  Saving session in 
"/home/mfiorent/.ddd/sessions/1186ab1de5000109506366800000043330006/init"...done.
2004.09.13 10:21:09
<- 
"\"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/noncentral02.cfg\"
 is not a core dump: File format not recognized\n"
   "(gdb) "
2004.09.13 10:21:09
-> "set prompt (gdb) \n"
2004.09.13 10:21:09
<- "(gdb) "
2004.09.13 10:21:09
-> "set height 0\n"
2004.09.13 10:21:09
<- "(gdb) "
2004.09.13 10:21:09
-> "set width 0\n"
2004.09.13 10:21:09
<- "(gdb) "
2004.09.13 10:21:09
-> "set annotate 1\n"
2004.09.13 10:21:09
<- "(gdb) "
2004.09.13 10:21:09
-> " set verbose off\n"
2004.09.13 10:21:09
<- "(gdb) "
2004.09.13 10:21:09
-> "info line\n"
2004.09.13 10:21:09
<- "No line number information available.\n"
   "(gdb) "
2004.09.13 10:21:09
-> "list\n"
2004.09.13 10:21:09
<- "46\t//   // especially make the box narrower to match a slit\n"
   "47\t\n"
   "48\t//   // holder for \264s\264 flag: \"(1 / fit-sigma) as 
weight-output\"\n"
   "49\t//   sflags\n"
   "50\t/*************************************************************/\n"
   "51\t\n"
   "52\t\n"
   "53\t  //get number of files and their types (i.e. cfg file , dat file 
control file). \n"
   "54\t  struct FilesInfo InputFiles, *Input;\n"
   "55\t  Input =&InputFiles; \n"
   "(gdb) "
2004.09.13 10:21:09
-> "info line\n"
2004.09.13 10:21:09
<- "Line 55 of \"fitlines.C\" starts at address 0x804b8d8 <main+20> and ends at 
0x804b8e4 <main+32>.\n"
   
"\032\032/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C:55:1652:beg:0x804b8d8\n"
   "(gdb) "
2004.09.13 10:21:09
-> "output 4711\n"
2004.09.13 10:21:09
<- "4711(gdb) "
2004.09.13 10:21:09
-> "show language\n"
2004.09.13 10:21:09
<- "The current source language is \"auto; currently c++\".\n"
   "(gdb) "
2004.09.13 10:21:09
-> "show version\n"
2004.09.13 10:21:09
<- "GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)\n"
   "Copyright 2003 Free Software Foundation, Inc.\n"
   "GDB is free software, covered by the GNU General Public License, and you 
are\n"
   "welcome to change it and/or distribute copies of it under certain 
conditions.\n"
   "Type \"show copying\" to see the conditions.\n"
   "There is absolutely no warranty for GDB.  Type \"show warranty\" for 
details.\n"
   "This GDB was configured as \"i386-redhat-linux-gnu\".\n"
   "(gdb) "
2004.09.13 10:21:09
-> "pwd\n"
2004.09.13 10:21:09
<- "Working directory 
/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal.\n"
   "(gdb) "
2004.09.13 10:21:09
-> "info breakpoints\n"
2004.09.13 10:21:09
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2004.09.13 10:21:09
-> "show history filename\n"
2004.09.13 10:21:09
<- "The filename in which to record the command history is 
\"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/.gdb_history\".\n"
   "(gdb) "
2004.09.13 10:21:09
-> "show history size\n"
2004.09.13 10:21:09
<- "The size of the command history is 256.\n"
   "(gdb) "
#  Reading file 
"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C"...
#  Reading file 
"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C"...done.
#  File 
"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C"
 185 lines, 6241 characters
#  Setting buttons...
#  Setting buttons...done.
2004.09.13 10:21:10
-> "set confirm off\n"
2004.09.13 10:21:10
<- "(gdb) "
2004.09.13 10:21:10
-> "source /tmp/dddmECuGp\n"
2004.09.13 10:21:10
<- "The target architecture is set automatically (currently i386)\n"
   "The target endianness is set automatically (currently little endian)\n"
   "(gdb) "
2004.09.13 10:21:10
-> "info breakpoints\n"
2004.09.13 10:21:10
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "info source\n"
2004.09.13 10:21:10
<- "Current source file is fitlines.C\n"
   "Compilation directory is 
/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal\n"
   "Located in 
/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C\n"
   "Contains 185 lines.\n"
   "Source language is c++.\n"
   "Compiled with DWARF 2 debugging format.\n"
   "Does not include preprocessor macro info.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "# reset\n"
2004.09.13 10:21:10
<- "(gdb) "
2004.09.13 10:21:10
-> "info breakpoints\n"
2004.09.13 10:21:10
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "display\n"
2004.09.13 10:21:10
<- "(gdb) "
2004.09.13 10:21:10
-> "info display\n"
2004.09.13 10:21:10
<- "There are no auto-display expressions now.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "set environment TERM dumb\n"
2004.09.13 10:21:10
<- "(gdb) "
2004.09.13 10:21:10
-> "info files\n"
2004.09.13 10:21:10
<- "Symbols from 
\"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines\".\n"
   "Local exec file:\n"
   
"\t`/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines\',
 file type elf32-i386.\n"
   "\tEntry point: 0x804b814\n"
   "\t0x08048114 - 0x08048127 is .interp\n"
   "\t0x08048128 - 0x08048148 is .note.ABI-tag\n"
   "\t0x08048148 - 0x08048870 is .hash\n"
   "\t0x08048870 - 0x080498a0 is .dynsym\n"
   "\t0x080498a0 - 0x0804a506 is .dynstr\n"
   "\t0x0804a506 - 0x0804a70c is .gnu.version\n"
   "\t0x0804a70c - 0x0804a7dc is .gnu.version_r\n"
   "\t0x0804a7dc - 0x0804abec is .rel.dyn\n"
   "\t0x0804abec - 0x0804afec is .rel.plt\n"
   "\t0x0804afec - 0x0804b003 is .init\n"
   "\t0x0804b004 - 0x0804b814 is .plt\n"
   "\t0x0804b814 - 0x080eeb30 is .text\n"
   "\t0x080eeb30 - 0x080eeb4b is .fini\n"
   "\t0x080eeb60 - 0x08103e00 is .rodata\n"
   "\t0x08103e00 - 0x08104034 is .eh_frame_hdr\n"
   "\t0x08104034 - 0x08105038 is .eh_frame\n"
   "\t0x08105038 - 0x081050e1 is .gcc_except_table\n"
   "\t0x08106100 - 0x08107590 is .data\n"
   "\t0x08107590 - 0x08107678 is .dynamic\n"
   "\t0x08107678 - 0x081076a0 is .ctors\n"
   "\t0x081076a0 - 0x081076a8 is .dtors\n"
   "\t0x081076a8 - 0x081076ac is .jcr\n"
   "\t0x081076ac - 0x08107ab8 is .got\n"
   "\t0x08107ac0 - 0x0817b6e0 is .bss\n"
   "(gdb) "
2004.09.13 10:21:10
-> "info program\n"
2004.09.13 10:21:10
<- "The program being debugged is not being run.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help detach\n"
2004.09.13 10:21:10
<- "Detach a process or file previously attached.\n"
   "If a process, it is no longer traced, and it continues its execution.  If\n"
   "you were debugging a file, the file is closed and gdb no longer accesses 
it.\n"
   "(gdb) "
#  Opening session "1186ab1de5000109506366800000043330006"...done.
#  Welcome to DDD 3.3.9 "Perky" (i686-pc-linux-gnu)
2004.09.13 10:21:10
-> "help run\n"
2004.09.13 10:21:10
<- "Start debugged program.  You may specify arguments to give it.\n"
   "Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n"
   "Input and output redirection with \">\", \"<\", or \">>\" are also 
allowed.\n"
   "\n"
   "With no arguments, uses arguments last specified (with \"run\" or \"set 
args\").\n"
   "To cancel previous arguments and run with no arguments,\n"
   "use \"set args\" without arguments.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help step\n"
2004.09.13 10:21:10
<- "Step program until it reaches a different source line.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help stepi\n"
2004.09.13 10:21:10
<- "Step one instruction exactly.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help next\n"
2004.09.13 10:21:10
<- "Step program, proceeding through subroutine calls.\n"
   "Like the \"step\" command as long as subroutine calls do not happen;\n"
   "when they do, the call is treated as one instruction.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help nexti\n"
2004.09.13 10:21:10
<- "Step one instruction, but proceed through subroutine calls.\n"
   "Argument N means do this N times (or till program stops for another 
reason).\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help until\n"
2004.09.13 10:21:10
<- "Execute until the program reaches a source line greater than the current\n"
   "or a specified location (same args as break command) within the current 
frame.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help finish\n"
2004.09.13 10:21:10
<- "Execute until selected stack frame returns.\n"
   "Upon return, the value returned is printed and put in the value history.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help cont\n"
2004.09.13 10:21:10
<- "Continue program being debugged, after signal or breakpoint.\n"
   "If proceeding from breakpoint, a number N may be used as an argument,\n"
   "which means to set the ignore count of that breakpoint to N - 1 (so that\n"
   "the breakpoint won\'t break until the Nth time it is reached).\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help signal\n"
2004.09.13 10:21:10
<- "Continue program giving it signal specified by the argument.\n"
   "An argument of \"0\" means continue program without giving it a signal.\n"
   "(gdb) "
2004.09.13 10:21:10
-> "help kill\n"
2004.09.13 10:21:10
<- "Kill execution of program being debugged.\n"
   "(gdb) "
2004.09.13 10:21:11
-> "help up\n"
2004.09.13 10:21:11
<- "Select and print stack frame that called this one.\n"
   "An argument says how many frames up to go.\n"
   "(gdb) "
2004.09.13 10:21:11
-> "help down\n"
2004.09.13 10:21:11
<- "Select and print stack frame called by this one.\n"
   "An argument says how many frames down to go.\n"
   "(gdb) "
#  Retrieving Command Definitions...
2004.09.13 10:21:22
-> "help user-defined\n"
2004.09.13 10:21:22
<- "User-defined commands.\n"
   "The commands in this class are those defined by the user.\n"
   "Use the \"define\" command to define a command.\n"
   "\n"
   "List of commands:\n"
   "\n"
   "\n"
   "Type \"help\" followed by command name for full documentation.\n"
   "Command name abbreviations are allowed if unambiguous.\n"
2004.09.13 10:21:22
<- "(gdb) "
#  Retrieving Command Definitions...done.
2004.09.13 10:21:22
-> "set args noncentral02.cfg ./SHOWCAT/temp-nll-noncentral.dat \n"
2004.09.13 10:21:22
<- "(gdb) "
2004.09.13 10:21:22
-> "info breakpoints\n"
2004.09.13 10:21:22
<- "No breakpoints or watchpoints.\n"
2004.09.13 10:21:22
<- "(gdb) "
#  Getting sources...
2004.09.13 10:21:29
-> "info sources\n"
2004.09.13 10:21:29
<- "Source files for which symbols have been read in:\n"
   "\n"
   "fitlines.C, cost.h, fits.h, cmath, streambuf, iostream\n"
   "\n"
   "Source files for which symbols will be read in on demand:\n"
   "\n"
   
"/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crtn.S,
 InputFiles.C, 2-3Dmemalloc.C, cagmath.C, fits.C, rwfile.C, vecmat4.C, 
echmat.C, cost.C, 
/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S,
 init.c, ../sysdeps/i386/elf/start.S\n"
   "(gdb) "
#  Getting sources...done.
#  Open Source is an idea whose time has finally come.  See 
http://www.opensource.org/.
2004.09.13 10:21:29
-> "info files\n"
2004.09.13 10:21:29
<- "Symbols from 
\"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines\".\n"
   "Local exec file:\n"
   
"\t`/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines\',
 file type elf32-i386.\n"
   "\tEntry point: 0x804b814\n"
   "\t0x08048114 - 0x08048127 is .interp\n"
   "\t0x08048128 - 0x08048148 is .note.ABI-tag\n"
   "\t0x08048148 - 0x08048870 is .hash\n"
   "\t0x08048870 - 0x080498a0 is .dynsym\n"
   "\t0x080498a0 - 0x0804a506 is .dynstr\n"
   "\t0x0804a506 - 0x0804a70c is .gnu.version\n"
   "\t0x0804a70c - 0x0804a7dc is .gnu.version_r\n"
   "\t0x0804a7dc - 0x0804abec is .rel.dyn\n"
   "\t0x0804abec - 0x0804afec is .rel.plt\n"
   "\t0x0804afec - 0x0804b003 is .init\n"
   "\t0x0804b004 - 0x0804b814 is .plt\n"
   "\t0x0804b814 - 0x080eeb30 is .text\n"
   "\t0x080eeb30 - 0x080eeb4b is .fini\n"
   "\t0x080eeb60 - 0x08103e00 is .rodata\n"
   "\t0x08103e00 - 0x08104034 is .eh_frame_hdr\n"
   "\t0x08104034 - 0x08105038 is .eh_frame\n"
   "\t0x08105038 - 0x081050e1 is .gcc_except_table\n"
   "\t0x08106100 - 0x08107590 is .data\n"
   "\t0x08107590 - 0x08107678 is .dynamic\n"
   "\t0x08107678 - 0x081076a0 is .ctors\n"
   "\t0x081076a0 - 0x081076a8 is .dtors\n"
   "\t0x081076a8 - 0x081076ac is .jcr\n"
   "\t0x081076ac - 0x08107ab8 is .got\n"
   "\t0x08107ac0 - 0x0817b6e0 is .bss\n"
   "(gdb) "
2004.09.13 10:21:29
-> "info program\n"
2004.09.13 10:21:29
<- "The program being debugged is not being run.\n"
   "(gdb) "
2004.09.13 10:21:30
-> "output G\n"
2004.09.13 10:21:30
<- "No symbol \"G\" in current context.\n"
   "(gdb) "
#  Getting sources...
2004.09.13 10:21:33
-> "info sources\n"
2004.09.13 10:21:33
<- "Source files for which symbols have been read in:\n"
   "\n"
   "fitlines.C, cost.h, fits.h, cmath, streambuf, iostream\n"
   "\n"
   "Source files for which symbols will be read in on demand:\n"
   "\n"
   
"/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crtn.S,
 InputFiles.C, 2-3Dmemalloc.C, cagmath.C, fits.C, rwfile.C, vecmat4.C, 
echmat.C, cost.C, 
/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S,
 init.c, ../sysdeps/i386/elf/start.S\n"
   "(gdb) "
#  Getting sources...done.
#  Fitlines.C
2004.09.13 10:21:35
-> "info line fitlines.C:1\n"
2004.09.13 10:21:35
<- "Line 1 of \"fitlines.C\" is at address 0x804b8c4 <main> but contains no 
code.\n"
   
"\032\032/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C:1:0:beg:0x804b8c4\n"
   "(gdb) "
#  Reading file 
"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C"...
#  Reading file 
"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C"...done.
#  File 
"/home/mfiorent/WORK/STIS/STIS_Anneal/start_add_ima3/test_Mauro/SimplifiedAnneal/fitlines.C"
 185 lines, 6241 characters

reply via email to

[Prev in Thread] Current Thread [Next in Thread]