ddd
[Top][All Lists]
Advanced

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

Re: DDD Set Value doesn't work


From: Arnaud Desitter
Subject: Re: DDD Set Value doesn't work
Date: Fri, 26 Mar 2004 15:00:25 -0000

Hi,

Would you mind filing a bug on http://sourceforge.net/projects/ddd/ ?
Patch are welcome.

Regards,

----- Original Message ----- 
From: "Iyappan S- CTD, Chennai." <address@hidden>
Newsgroups: gmane.comp.debugging.ddd.general
Sent: Friday, March 26, 2004 10:07 AM
Subject: DDD Set Value doesn't work


Hello,

When I try to set a value into register using the Set button, the following
error is reported,
"A parse error in expression, near `/x $g5 = 0x100'"

When I try to set a value into a memory location using Set button, the
following error is reported,
"Invalid character '`' in expression"

I am using ddd-3.3, gdb-6.0, gcc-2.95.3.  I just tried with simple "Hello
world" C program.

Can anyone please advice me, what's wrong and how to fix this ?

I have attached the ~/.ddd/log file.

Thanks,
Iyappan

GNU DDD 3.3 (sparc-sun-solaris2.8)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.

Compiled with GCC 2.95.3 20010315 (release), libstdc++ 2.8.0
Requires X11R6, Xt11R6, Motif 2.1 (Motif Version 2.1.0)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2004-03-19 by developer <unknown>.
$  /home/iyyappan/usr/ddd-3.3/bin/ddd
+  /bin/sh -c 'exec gdb -q -fullname'
#  Hello, world!
#  Starting GDB...
#  Enabling core dumps...
#  Enabling core dumps...done.
#  Running GDB (pid 8567, tty /dev/pts/14)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/home/iyyappan/.ddd/vsllib/ddd.vsl"
#  Trying "/home/iyyappan/usr/ddd-3.3/share/ddd-3.3/vsllib/ddd.vsl"
#  Searching
"vsllib/ddd.vsl"..."/home/iyyappan/usr/ddd-3.3/share/ddd-3.3/vsllib/ddd.vsl"
.
#  Creating "/home/iyyappan/.ddd/"...
#  Creating "/home/iyyappan/.ddd/"...done.
#  Creating "/home/iyyappan/.ddd/sessions/"...
#  Creating "/home/iyyappan/.ddd/sessions/"...done.
#  Creating "/home/iyyappan/.ddd/themes/"...
#  Creating "/home/iyyappan/.ddd/themes/"...done.
<- "(gdb) "
-> "set prompt (gdb) \n"
<- "(gdb) "
-> "set height 0\n"
<- "(gdb) "
-> "set width 0\n"
<- "(gdb) "
-> "set annotate 1\n"
<- "(gdb) "
-> " set verbose off\n"
<- "(gdb) "
-> "info line\n"
<- "No line number information available.\n"
   "(gdb) "
-> "list\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info line\n"
<- "No line number information available.\n"
   "(gdb) "
-> "output 4711\n"
<- "4711(gdb) "
-> "show language\n"
<- "The current source language is \"auto; currently c\".\n"
   "(gdb) "
-> "show version\n"
<- "GNU gdb 6.0\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 \"sparc-sun-solaris2.8\".\n"
   "(gdb) "
-> "pwd\n"
<- "Working directory /home/iyyappan/example/c.\n"
   "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
-> "show history filename\n"
<- "The filename in which to record the command history is
\"/home/iyyappan/example/c/.gdb_history\".\n"
   "(gdb) "
-> "show history size\n"
<- "The size of the command history is 256.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info sources\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info line main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line MAIN\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info files\n"
<- "(gdb) "
-> "info line main_\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
   "(gdb) "
-> "info line MAIN_\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line main__\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line MAIN__\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line _main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line _MAIN\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line __main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line __MAIN\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line my_main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line the_main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line vxworks_main\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info line main_vxworks\n"
<- "No symbol table is loaded.  Use the \"file\" command.\n"
   "(gdb) "
-> "set confirm off\n"
<- "(gdb) "
-> "source /var/tmp/aaaXFaOUq\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "# reset\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
-> "display\n"
<- "(gdb) "
-> "info display\n"
<- "There are no auto-display expressions now.\n"
   "(gdb) "
-> "set environment TERM dumb\n"
<- "(gdb) "
-> "info source\n"
<- "No current source file.\n"
   "(gdb) "
-> "info files\n"
<- "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
   "(gdb) "
-> "help detach\n"
<- "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) "
-> "help run\n"
<- "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) "
-> "help step\n"
<- "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) "
-> "help stepi\n"
<- "Step one instruction exactly.\n"
   "Argument N means do this N times (or till program stops for another
reason).\n"
   "(gdb) "
-> "help next\n"
<- "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) "
#  Creating options in "/home/iyyappan/.ddd/init"...
#  Creating options in "/home/iyyappan/.ddd/init"...done.
-> "help nexti\n"
<- "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) "
#  Starting GDB...done.
#  Welcome to DDD 3.3 "Blues by Night" (sparc-sun-solaris2.8)
-> "help until\n"
<- "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) "
-> "help finish\n"
<- "Execute until selected stack frame returns.\n"
   "Upon return, the value returned is printed and put in the value
history.\n"
   "(gdb) "
-> "help cont\n"
<- "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) "
-> "help signal\n"
<- "Continue program giving it signal specified by the argument.\n"
   "An argument of \"0\" means continue program without giving it a
signal.\n"
   "(gdb) "
-> "help kill\n"
<- "Kill execution of program being debugged.\n"
   "(gdb) "
-> "help up\n"
<- "Select and print stack frame that called this one.\n"
   "An argument says how many frames up to go.\n"
   "(gdb) "
-> "help down\n"
<- "Select and print stack frame called by this one.\n"
   "An argument says how many frames down to go.\n"
   "(gdb) "
-> "file a.out\n"
<- "(gdb) "
-> "info line\n"
<- "No line number information available.\n"
   "(gdb) "
-> "list\n"
<- "1\t#include <stdio.h>\n"
   "2\t\n"
   "3\tint main(void)\n"
   "4\t{\n"
   "5\t    int i = 10;\n"
   "6\t    printf (\"Hello, world\\n"
   "\");\n"
   "7\t    return 0;\n"
   "8\t}\n"
   "(gdb) "
-> "info line\n"
<- "Line 8 of \"hello.c\" starts at address 0x10588 <main+40> and ends at
0x10590 <Letext>.\n"
   "\032\032/home/iyyappan/example/c/hello.c:8:98:beg:0x10588\n"
   "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
-> "display\n"
<- "(gdb) "
-> "info display\n"
<- "There are no auto-display expressions now.\n"
   "(gdb) "
#  Reading file "/home/iyyappan/example/c/hello.c"...
#  Reading file "/home/iyyappan/example/c/hello.c"...done.
#  File "/home/iyyappan/example/c/hello.c" 8 lines, 104 characters
#  Setting buttons...
#  Setting buttons...done.
-> "info source\n"
<- "Current source file is hello.c\n"
   "Compilation directory is /home/iyyappan/example/c/\n"
   "Located in /home/iyyappan/example/c/hello.c\n"
   "Contains 8 lines.\n"
   "Source language is c.\n"
   "Compiled with stabs debugging format.\n"
   "Does not include preprocessor macro info.\n"
   "(gdb) "
-> "info files\n"
<- "Symbols from \"/home/iyyappan/example/c/a.out\".\n"
   "Local exec file:\n"
   "\t`/home/iyyappan/example/c/a.out\', file type elf32-sparc.\n"
   "\tEntry point: 0x103cc\n"
   "\t0x000100d4 - 0x000100e5 is .interp\n"
   "\t0x000100e8 - 0x0001013c is .hash\n"
   "\t0x0001013c - 0x0001023c is .dynsym\n"
   "\t0x0001023c - 0x00010304 is .dynstr\n"
   "\t0x00010304 - 0x00010324 is .gnu.version\n"
   "\t0x00010324 - 0x00010344 is .gnu.version_r\n"
   "\t0x00010344 - 0x0001035c is .rela.got\n"
   "\t0x0001035c - 0x00010368 is .rela.bss\n"
   "\t0x00010368 - 0x000103b0 is .rela.plt\n"
   "\t0x000103b0 - 0x000103cc is .init\n"
   "\t0x000103cc - 0x000105f4 is .text\n"
   "\t0x000105f4 - 0x00010608 is .fini\n"
   "\t0x00010608 - 0x00010620 is .rodata\n"
   "\t0x00020620 - 0x00020628 is .data\n"
   "\t0x00020628 - 0x0002062c is .eh_frame\n"
   "\t0x0002062c - 0x00020634 is .ctors\n"
   "\t0x00020634 - 0x0002063c is .dtors\n"
   "\t0x0002063c - 0x000206b8 is .plt\n"
   "\t0x000206b8 - 0x000206d8 is .got\n"
   "\t0x000206d8 - 0x00020778 is .dynamic\n"
   "\t0x00020778 - 0x00020798 is .bss\n"
   "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
   "(gdb) "
-> "b main\n"
<- "Breakpoint 1 at 0x10564: file hello.c, line 5.\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x00010564 in main at hello.c:5\n"
   "(gdb) "
-> "set environment TERM dumb\n"
<- "(gdb) "
-> "r\n"
<- "\n"
   "Breakpoint "
<- "1"
<- ", "
<- "main"
<- " ("
<- ")"
<- " at "
<- "hello.c"
<- ":"
<- "5"
<- "\n"
<- "\032\032"
<- "/home/iyyappan/example/c/hello.c:5:37:beg:0x"
<- "10564"
<- "\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "Num"
<- " "
<- "Type"
<- "          "
<- " "
<- "Disp"
<- " "
<- "Enb"
<- " "
<- "Address"
<- "   "
<- " "
<- "What"
<- "\n"
<- "1"
<- "  "
<- " "
<- "breakpoint"
<- "    "
<- " "
<- "keep"
<- " "
<- "y"
<- " "
<- "  "
<- "0x00010564"
<- " "
<- "in "
<- "main"
<- " at "
<- "hello.c"
<- ":"
<- "5"
<- "\n"
<- "\tbreakpoint"
<- " already hit "
<- "1"
<- " time\n"
   "(gdb) "
-> "info registers\n"
<- "g0"
<- "             "
<- "0x0"
<- "\t"
<- "0"
<- "\n"
<- "g1"
<- "             "
<- "0xff3164ac"
<- "\t"
<- "-13540180"
<- "\n"
<- "g2"
<- "             "
<- "0x0"
<- "\t"
<- "0"
<- "\n"
<- "g3"
<- "             "
<- "0x0"
<- "\t"
<- "0"
<- "\n"
<- "g4"
<- "             "
<- "0x0"
<- "\t"
<- "0"
<- "\n"
<- "g5"
<- "             0x0\t0\n"
   "g6             0x0\t0\n"
   "g7             0x0\t0\n"
   "o0             0x0\t0\n"
   "o1             0x0\t0\n"
   "o2             0xff33a5d0\t-13392432\n"
   "o3             0x5\t5\n"
   "o4             0x21a54\t137812\n"
   "o5             0xff29bb84\t-14042236\n"
   "sp             0xffbef748\t4290705224\n"
   "o7             0x103bc\t66492\n"
   "l0             0xc\t12\n"
   "l1             0xff33e10c\t-13377268\n"
   "l2             0xff33a5f0\t-13392400\n"
   "l3             0x0\t0\n"
   "l4             0x0\t0\n"
   "l5             0x0\t0\n"
   "l6             0x0\t0\n"
   "l7             0xff3e2660\t-12704160\n"
   "i0             0x1\t1\n"
   "i1             0xffbef824\t-4261852\n"
   "i2             0xffbef82c\t-4261844\n"
   "i3             0x20778\t132984\n"
   "i4             0x0\t0\n"
   "i5             0x0\t0\n"
   "fp             0xffbef7c0\t4290705344\n"
   "i7             0x10428\t66600\n"
   "y              0x0\t0\n"
   "psr            0xfe400004\t-29360124\ticc:-Z--, pil:0, s:0, ps:0, et:0,
cwp:4\n"
   "wim            0x0\t0\n"
   "tbr            0x0\t0\n"
   "pc             0x10564\t66916\n"
   "npc            0x10568\t66920\n"
   "fpsr           0x0\t0\trd:N, tem:0, ns:0, ver:0, ftt:0, qne:0, fcc:=,
aexc:0, cexc:0\n"
   "cpsr           0x0\t0\n"
   "(gdb) "
-> "output /x $g5\n"
<- "0x0(gdb) "
-> "set variable /x $g5 = 0x100\n"
<- "A parse error in expression, near `/x $g5 = 0x100\'.\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x00010564 in main at hello.c:5\n"
   "\tbreakpoint already hit 1 time\n"
   "(gdb) "
-> "info registers\n"
<- "g0             0x0\t0\n"
   "g1             0xff3164ac\t-13540180\n"
   "g2             0x0\t0\n"
   "g3             0x0\t0\n"
   "g4             0x0\t0\n"
   "g5             0x0\t0\n"
   "g6             0x0\t0\n"
   "g7             0x0\t0\n"
   "o0             0x0\t0\n"
   "o1             0x0\t0\n"
   "o2             0xff33a5d0\t-13392432\n"
   "o3             0x5\t5\n"
   "o4             0x21a54\t137812\n"
   "o5             0xff29bb84\t-14042236\n"
   "sp             0xffbef748\t4290705224\n"
   "o7             0x103bc\t66492\n"
   "l0             0xc\t12\n"
   "l1             0xff33e10c\t-13377268\n"
   "l2             0xff33a5f0\t-13392400\n"
   "l3             0x0\t0\n"
   "l4             0x0\t0\n"
   "l5             0x0\t0\n"
   "l6             0x0\t0\n"
   "l7             0xff3e2660\t-12704160\n"
   "i0             0x1\t1\n"
   "i1             0xffbef824\t-4261852\n"
   "i2             0xffbef82c\t-4261844\n"
   "i3             0x20778\t132984\n"
   "i4             0x0\t0\n"
   "i5             0x0\t0\n"
   "fp             0xffbef7c0\t4290705344\n"
   "i7             0x10428\t66600\n"
   "y              0x0\t0\n"
   "psr            0xfe400004\t-29360124\ticc:-Z--, pil:0, s:0, ps:0, et:0,
cwp:4\n"
   "wim            0x0\t0\n"
   "tbr            0x0\t0\n"
   "pc             0x10564\t66916\n"
   "npc            0x10568\t66920\n"
   "fpsr           0x0\t0\trd:N, tem:0, ns:0, ver:0, ftt:0, qne:0, fcc:=,
aexc:0, cexc:0\n"
   "cpsr           0x0\t0\n"
<- "(gdb) "
-> "display\n"
<- "(gdb) "
-> "frame\n"
<- "#0  main () at hello.c:5\n"
   "\032\032/home/iyyappan/example/c/hello.c:5:37:beg:0x10564\n"
   "(gdb) "
-> "x /xw $pc\n"
<- "0x10564 <main+4>:\t0x9010200a\n"
   "(gdb) "
#  Creating status display...
#  Creating status display...done.
#  Display -1: `x /xw $pc` (enabled)
#  Display -1: `x /xw $pc` (enabled)
#  In display -1: `x /xw $pc` (double-click to hide)
#  In display -1: `x /xw $pc` (double-click to hide)
-> "output `x /xw $pc`\n"
<- "Invalid character \'`\' in expression.\n"
   "(gdb) "
!  Invalid character '`' in expression.
-> "set variable `x /xw $pc` = 1000\n"
<- "Invalid character \'`\' in expression.\n"
   "(gdb) "
-> "info breakpoints\n"
<- "Num Type           Disp Enb Address    What\n"
   "1   breakpoint     keep y   0x00010564 in main at hello.c:5\n"
   "\tbreakpoint already hit 1 time\n"
   "(gdb) "
-> "frame\n"
<- "#0  main () at hello.c:5\n"
   "\032\032/home/iyyappan/example/c/hello.c:5:37:beg:0x10564\n"
   "(gdb) "
-> "x /xw $pc\n"
<- "0x10564 <main+4>:\t0x9010200a\n"
   "(gdb) "
#  Updating status displays...
#  Updating status displays...done.
#  In display -1: `x /xw $pc` (double-click to hide)
-> "quit\n"
#  Running GDB (pid 8567, tty /dev/pts/14)...Exit 0.
#  Saving history in "/home/iyyappan/.ddd/history"...
#  Saving history in "/home/iyyappan/.ddd/history"...done.
#  Thanks for using DDD 3.3!





reply via email to

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