bug-ddd
[Top][All Lists]
Advanced

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

Should detabify 8-character tabs.


From: Lachlan Andrew
Subject: Should detabify 8-character tabs.
Date: Sat, 14 Jul 2001 18:13:59 +1000 (EST)

Greetings,

It seems that DDD's treats 8-character tabs as width-1 characters when
the mouse pointer is used to select text or display a value.

This seems puzzling, since this case is singled out in tabs.h as the
only case which is not "detabified".  I would think that the simplest
fix is just to detabify this case as well.  (Use  tabs.H  below
instead of  tabs.h  from 3.3.1, downloaded 14 July 2001)  Unfortunately,
I haven't yet been able to get  ./configure  to finish, so I haven't
tested this patch, but it looks pretty safe...

This is a **fantastic** program -- for ages while I was using  xxgdb
I kept wishing for something like this!  Keep up the good work!

Regards,
Lachlan

__________________________________________________________________________
____That people will be as willing  to pay more taxes for a better society
"Impossible dream"|     as they are to pay more money for a better car
__________________________________________________________________________
Lachlan Andrew  lha@ee.mu.oz.au  Phone: +613 8344-3816 Fax: +613 8344-3821
Department of Electrical and Electronic Engineering
University of Melbourne, Victoria, 3010    AUSTRALIA



diff -c tabs.h tabs.H
*** tabs.h      Thu Aug 19 21:28:58 1999
--- tabs.H      Sat Jul 14 17:41:44 2001
***************
*** 45,51 ****
  // Same, but untabify only for non-standard settings
  inline void untabify_if_needed(string& str, int tab_width = 8, int indent = 0)
  {
!     if (tab_width != 8 || indent % tab_width != 0)
        untabify(str, tab_width, indent);
  }
  
--- 45,51 ----
  // Same, but untabify only for non-standard settings
  inline void untabify_if_needed(string& str, int tab_width = 8, int indent = 0)
  {
! //    if (tab_width != 8 || indent % tab_width != 0)
        untabify(str, tab_width, indent);
  }







*** configuration ***
GNU DDD 3.3 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universit?t Braunschweig, Germany.
Copyright (C) 1999-2001 Universit?t Passau, Germany.

Compiled with GCC 2.95.3 20010125 (prerelease), GNU libc 2.2
Requires X11R6, Xt11R6, Motif 1.2 (GNU/LessTif Version 1.2 Release 0.92.6)
Includes XPM 3.4.11, Athena Panner, License, News, DDD core
Built 2001-02-24 by J.H.M. Dassen (Ray)  <jdassen@debian.org>.



*** log ***
GNU DDD 3.3 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universit?t Braunschweig, Germany.
Copyright (C) 1999-2001 Universit?t Passau, Germany.

Compiled with GCC 2.95.3 20010125 (prerelease), GNU libc 2.2
Requires X11R6, Xt11R6, Motif 1.2 (GNU/LessTif Version 1.2 Release 0.92.6)
Includes XPM 3.4.11, Athena Panner, License, News, DDD core
Built 2001-02-24 by J.H.M. Dassen (Ray)  <jdassen@debian.org>.
$  ddd stratGibbs
+  /bin/sh -c 'exec gdb -q -fullname '\''stratGibbs'\'''
#  Hello, world!
#  Opening session "1180fa5048000099509611600000004860082"...
#  Enabling core dumps...
#  Enabling core dumps...done.
#  Running GDB (pid 12117, tty /dev/pts/8)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/elec/z/lha/.ddd/vsllib/ddd.vsl"
#  Trying "/usr/share/ddd-3.3/vsllib/ddd.vsl"
#  Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3/vsllib/ddd.vsl".
<- "(gdb) "
-> "set prompt (gdb) \n"
#  Creating 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/"...
#  Creating 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/"...done.
#  Copying "/elec/z/lha/.ddd/init" to 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/init"...
#  Copying "/elec/z/lha/.ddd/init" to 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/init"...done.
#  Copying "/elec/z/lha/.ddd/history" to 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/history"...
#  Copying "/elec/z/lha/.ddd/history" to 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/history"...done.
#  Saving session in 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/init"...
#  Searching "ddd/Ddd"...
#  Trying "/elec/z/lha/.ddd/ddd/Ddd"
#  Trying "/usr/share/ddd-3.3/ddd/Ddd"
#  Searching "ddd/Ddd"..."/usr/share/ddd-3.3/ddd/Ddd".
#  Saving session in 
"/elec/z/lha/.ddd/sessions/1180fa5048000099509611600000004860082/init"...done.
<- "(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"
<- "410\t\n"
   "411\t    long total1, total2;\n"
   "412\t    struct rusage warmup, start, now;\n"
   "413\t    \n"
   "414\t    // initPoisson (load, state.channels);\n"
   "415\t\n"
   "416\t#ifdef RAND_SEED\n"
   "417\t    srandom (RAND_SEED);\n"
   "418\t#else\n"
   "419\t    srandom (4);\n"
   "(gdb) "
-> "info line\n"
<- "Line 419 of \"stratGibbs.cc\" starts at address 0x80494de <main+22> and 
ends at 0x80494e8 <main+32>.\n"
   
"\032\032/elec/z/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs.cc:419:11727:beg:0x80494de\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 19990928\n"
   "Copyright 1998 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 \"i686-pc-linux-gnu\".\n"
   "(gdb) "
-> "pwd\n"
<- "Working directory 
/elec/b/davide/lha/rsrch/wdm/fgs_journal/res/vs_trunking.\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 
\"/elec/b/davide/lha/rsrch/wdm/fgs_journal/res/vs_trunking/.gdb_history\".\n"
   "(gdb) "
-> "show history size\n"
<- "The size of the command history is 256.\n"
   "(gdb) "
#  Reading file 
"/elec/z/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs.cc"...
#  Reading file 
"/elec/z/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs.cc"...done.
#  File "/elec/z/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs.cc" 781 
lines, 22899 characters
#  Setting buttons...
#  Setting buttons...done.
-> "info source\n"
<- "Current source file is stratGibbs.cc\n"
   "Compilation directory is 
/elec/z/lha/rsrch/wdm/fgs_journal/res/vs_trunking/\n"
   "Located in 
/elec/z/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs.cc\n"
   "Contains 781 lines.\n"
   "Source language is c++.\n"
   "Compiled with stabs debugging format.\n"
   "(gdb) "
-> "info files\n"
<- "Symbols from 
\"/elec/b/davide/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs\".\n"
   "Local exec file:\n"
   "\t`/elec/b/davide/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs\', 
file type elf32-i386.\n"
   "\tEntry point: 0x8048a40\n"
   "\t0x080480f4 - 0x08048107 is .interp\n"
   "\t0x08048108 - 0x08048128 is .note.ABI-tag\n"
   "\t0x08048128 - 0x08048260 is .hash\n"
   "\t0x08048260 - 0x080484d0 is .dynsym\n"
   "\t0x080484d0 - 0x080486d5 is .dynstr\n"
   "\t0x080486d6 - 0x08048724 is .gnu.version\n"
   "\t0x08048724 - 0x08048774 is .gnu.version_r\n"
   "\t0x08048774 - 0x08048784 is .rel.got\n"
   "\t0x08048784 - 0x08048794 is .rel.bss\n"
   "\t0x08048794 - 0x08048864 is .rel.plt\n"
   "\t0x08048864 - 0x08048889 is .init\n"
   "\t0x0804888c - 0x08048a3c is .plt\n"
   "\t0x08048a40 - 0x0804a3a0 is .text\n"
   "\t0x0804a3a0 - 0x0804a3bc is .fini\n"
   "\t0x0804a3c0 - 0x0804c5b8 is .rodata\n"
   "\t0x0804d5c0 - 0x0804d900 is .data\n"
   "\t0x0804d900 - 0x0804dc04 is .eh_frame\n"
   "\t0x0804dc04 - 0x0804dc3c is .gcc_except_table\n"
   "\t0x0804dc3c - 0x0804dc44 is .ctors\n"
   "\t0x0804dc44 - 0x0804dc4c is .dtors\n"
   "\t0x0804dc4c - 0x0804dcc8 is .got\n"
   "\t0x0804dcc8 - 0x0804dd78 is .dynamic\n"
   "\t0x0804dd80 - 0x0804f570 is .bss\n"
   "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
   "(gdb) "
-> "set confirm off\n"
<- "(gdb) "
-> "source /tmp/fileh1voWN\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\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 files\n"
<- "Symbols from 
\"/elec/b/davide/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs\".\n"
   "Local exec file:\n"
   "\t`/elec/b/davide/lha/rsrch/wdm/fgs_journal/res/vs_trunking/stratGibbs\', 
file type elf32-i386.\n"
   "\tEntry point: 0x8048a40\n"
   "\t0x080480f4 - 0x08048107 is .interp\n"
   "\t0x08048108 - 0x08048128 is .note.ABI-tag\n"
   "\t0x08048128 - 0x08048260 is .hash\n"
   "\t0x08048260 - 0x080484d0 is .dynsym\n"
   "\t0x080484d0 - 0x080486d5 is .dynstr\n"
   "\t0x080486d6 - 0x08048724 is .gnu.version\n"
   "\t0x08048724 - 0x08048774 is .gnu.version_r\n"
   "\t0x08048774 - 0x08048784 is .rel.got\n"
   "\t0x08048784 - 0x08048794 is .rel.bss\n"
   "\t0x08048794 - 0x08048864 is .rel.plt\n"
   "\t0x08048864 - 0x08048889 is .init\n"
   "\t0x0804888c - 0x08048a3c is .plt\n"
   "\t0x08048a40 - 0x0804a3a0 is .text\n"
   "\t0x0804a3a0 - 0x0804a3bc is .fini\n"
   "\t0x0804a3c0 - 0x0804c5b8 is .rodata\n"
   "\t0x0804d5c0 - 0x0804d900 is .data\n"
   "\t0x0804d900 - 0x0804dc04 is .eh_frame\n"
   "\t0x0804dc04 - 0x0804dc3c is .gcc_except_table\n"
   "\t0x0804dc3c - 0x0804dc44 is .ctors\n"
   "\t0x0804dc44 - 0x0804dc4c is .dtors\n"
   "\t0x0804dc4c - 0x0804dcc8 is .got\n"
   "\t0x0804dcc8 - 0x0804dd78 is .dynamic\n"
   "\t0x0804dd80 - 0x0804f570 is .bss\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) "
#  Opening session "1180fa5048000099509611600000004860082"...done.
#  Welcome to DDD 3.3 "Blues by Night" (i686-pc-linux-gnu)
-> "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) "
-> "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) "
-> "help until\n"
<- "Execute until the program reaches a source line greater than the current\n"
   "or a specified line or address or function (same args as break command).\n"
   "Execution will also stop upon exit from the current stack 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) "
-> "output state\n"
<- "No symbol \"state\" in current context.\n"
<- "(gdb) "
-> "output total1\n"
<- "No symbol \"total1\" in current context.\n"
<- "(gdb) "
-> "output prBlockThis\n"
<- "No symbol \"prBlockThis\" in current context.\n"
<- "(gdb) "
-> "output total2\n"
<- "No symbol \"total2\" in current context.\n"
<- "(gdb) "
#  Deleting session "1180fa5048000099509611600000004860082"...
#  Current session is [none].
#  Deleting session "1180fa5048000099509611600000004860082"...done.
-> "quit\n"
#  Running GDB (pid 12117, tty /dev/pts/8)...Exit 0.
#  Saving history in "/elec/z/lha/.ddd/history"...
#  Saving history in "/elec/z/lha/.ddd/history"...done.
#  Thanks for using DDD 3.3!



*** output of  gdb --version  ***
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".




reply via email to

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