public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Restoring breakpoint failed
@ 2001-08-23 15:31 Tom Tromey
  2001-08-23 16:23 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2001-08-23 15:31 UTC (permalink / raw)
  To: Insight List

I saved a session that included a breakpoint with attached commands.
When restoring the session, I got the appended error.

I'm pretty sure I tested this functionality when I wrote it, but to be
honest it is so long ago that it is hard to be certain.  Did something
change in `gdb_cmd' to make multi-line commands no longer work?
If so, how can breakpoint command restoration work?

FWIW for me it is very important that sessions work well.
They are the only feature that reliably separates Insight from using
gdb in Emacs (variable display would be another one, but I've learned
not to use that due to its propensity to provoke gdb crashes).

Tom

Unexpected extra arguments following breakpoint number.

    while executing
"gdb_cmd "commands \$bpnum\n[join $commands \n]""
    (procedure "SESSION_recreate_bps" line 21)
    invoked from within
"SESSION_recreate_bps $values(breakpoints)"
    (procedure "session_load" line 33)
    invoked from within
"session_load /x1/egcs/build/gcc/jc1"
    invoked from within
".srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#file invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tkMenuInvoke" line 29)
    invoked from within
"tkMenuInvoke .srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m#file 1"
    (command bound to event)errorCode is NONE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Restoring breakpoint failed
  2001-08-23 15:31 Restoring breakpoint failed Tom Tromey
@ 2001-08-23 16:23 ` Keith Seitz
  2001-08-23 16:50   ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Keith Seitz @ 2001-08-23 16:23 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Insight List

On 23 Aug 2001, Tom Tromey wrote:

> I saved a session that included a breakpoint with attached commands.
> When restoring the session, I got the appended error.

Yes, I know about this. I think the problem is that gdb doesn't allow you
to do this. I certainly haven't found a way to get gdb to allow me to
specify commands without going through readline...

Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Restoring breakpoint failed
  2001-08-23 16:23 ` Keith Seitz
@ 2001-08-23 16:50   ` Tom Tromey
  2001-08-23 16:56     ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2001-08-23 16:50 UTC (permalink / raw)
  To: Keith Seitz; +Cc: Insight List

>>>>> "Keith" == Keith Seitz <keiths@cygnus.com> writes:

>> I saved a session that included a breakpoint with attached commands.
>> When restoring the session, I got the appended error.

Keith> Yes, I know about this. I think the problem is that gdb doesn't
Keith> allow you to do this. I certainly haven't found a way to get
Keith> gdb to allow me to specify commands without going through
Keith> readline...

I guess the only thing to do is write new C code for gdbtk.
Unfortunately that's enough work that I definitely can't do it.
Would you like me to submit a PR?

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Restoring breakpoint failed
  2001-08-23 16:50   ` Tom Tromey
@ 2001-08-23 16:56     ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2001-08-23 16:56 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Insight List

On 23 Aug 2001, Tom Tromey wrote:

> Keith> Yes, I know about this. I think the problem is that gdb doesn't
> Keith> allow you to do this. I certainly haven't found a way to get
> Keith> gdb to allow me to specify commands without going through
> Keith> readline...
>
> I guess the only thing to do is write new C code for gdbtk.
> Unfortunately that's enough work that I definitely can't do it.
> Would you like me to submit a PR?

Naw... I'll just jot it down in my todo list. When testsuites get the
better of me, I'll implement it. (Which means don't be suprised if you see
something sooner than later.)

Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-23 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-23 15:31 Restoring breakpoint failed Tom Tromey
2001-08-23 16:23 ` Keith Seitz
2001-08-23 16:50   ` Tom Tromey
2001-08-23 16:56     ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).