* AW: insight-5.3
@ 2003-07-10 7:45 Dorwig, Martin
2003-07-10 15:36 ` Keith Seitz
0 siblings, 1 reply; 2+ messages in thread
From: Dorwig, Martin @ 2003-07-10 7:45 UTC (permalink / raw)
To: 'Keith Seitz'; +Cc: Insight mailing list (E-Mail)
-----Ursprüngliche Nachricht-----
Von: Keith Seitz [mailto:keiths@redhat.com]
Gesendet: Mittwoch, 9. Juli 2003 18:09
An: Dorwig, Martin
Cc: Insight "mailing list (E-Mail)
Betreff: Re: insight-5.3
On Wed, 2003-07-09 at 02:48, Dorwig, Martin wrote:
> Hello,
> i have build insight-5.3 on cygwin and added a bdm (M68332) target.
> it works with gdb,
> but with insight the items in the run-control-menu like step ... and the
> buttons are disabled.
This is usually an indication that you forgot to set inferior_ptid to
something non-zero.
Yes, you are right.
I startet with the patch "gdb-5.0-bdm-patches-pi2" i found on the web.
the type for PID's has changed from 'int' to 'ptid_t'
the original bdm_wait-function returnd 0 so i returned a zero ptid.
Another thing is, i would like to adapt the targetselection dialogbox to
display a portlist-Combo
which is filled with the names of all the parallel-ports
'lpt1','lpt2','lpt3' so the user can select a port.
i hacked the targetselection.itb and added
set gdb_target(bdm,pretty-name) "bdm"
set gdb_target(bdm,defbaud) ""
set gdb_target(bdm,baud-rates) {}
set gdb_target(bdm,cmd) "bdm lpt1"
set gdb_target(bdm,runlist) {1 1 1 0}
set gdb_target(bdm,options) ""
set gdb_target(bdm,after_attaching) {}
but that limits me to lpt1
can sone help ?
Thank's
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: AW: insight-5.3
2003-07-10 7:45 AW: insight-5.3 Dorwig, Martin
@ 2003-07-10 15:36 ` Keith Seitz
0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2003-07-10 15:36 UTC (permalink / raw)
To: Dorwig, Martin; +Cc: Insight mailing list (E-Mail)
On Thu, 2003-07-10 at 00:54, Dorwig, Martin wrote:
> Another thing is, i would like to adapt the targetselection dialogbox to
> display a portlist-Combo
> which is filled with the names of all the parallel-ports
> 'lpt1','lpt2','lpt3' so the user can select a port.
> i hacked the targetselection.itb and added
> set gdb_target(bdm,pretty-name) "bdm"
> set gdb_target(bdm,defbaud) ""
> set gdb_target(bdm,baud-rates) {}
> set gdb_target(bdm,cmd) "bdm lpt1"
> set gdb_target(bdm,runlist) {1 1 1 0}
> set gdb_target(bdm,options) ""
> set gdb_target(bdm,after_attaching) {}
> but that limits me to lpt1
As it is right now, there is no way to specify parallel ports -- only
serial. What you could do (and this would be a little hacky) is check
for the target in TargetSelection::change_dialog and if it is "bdm", add
the parallel ports to the port combo box. You'll need to edit a few
functions in targetselection.itb and something in interface.tcl, too, to
swap in the correct parallel ports. You'll be doing exactly what the
serial ports do -- so use that code as a guide.
Someone did this (for some other port) just last week. I encourage you
to look up the discussion.
Keith
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-10 15:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-10 7:45 AW: insight-5.3 Dorwig, Martin
2003-07-10 15:36 ` 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).