This is the mail archive of the gdb@sources.redhat.com 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]

gdbinit problem


the following:

define break_foo_bar
  break foo
  commands
    print x
  end
  break bar
  commands
    print y
  end
end

does not work because, apparently, the first "end" closes both
"commands" and "define" and there is no file loaded at this time, so I
get this error:
.gdbinit:97: Error in sourced command file:
No symbol table is loaded.  Use the "file" command.

Is there a way around this problem?

Is there a push to modernize gdb's extension language?
(like using guile or at least a bash-like syntax)


-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
Live Lisp and prosper.


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