public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [Fwd: QUESTION ON INSIGHT 5.0 (fwd)]
@ 2000-07-11  5:31 Keith Seitz
  2000-07-11  5:53 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Seitz @ 2000-07-11  5:31 UTC (permalink / raw)
  To: insight

Forewarded from someone unable to access this list...
Please remember to reply to the reply-to address.
(BTW, it looks like your mail server is listed in the ORBS database.
This means that the sourceware mailing list server thinks that your mail
server is an open relay, used to spam the internet.)

I'll respond directly to this message's contents in a followup...
-------- Original Message --------
Subject: QUESTION ON INSIGHT 5.0 (fwd)
Date: Mon, 10 Jul 2000 22:33:13 -0700 (PDT)
From: Takis Psarogiannakopoulos <takis@XFree86.Org>
To: kseitz@firetalk.com


Dear Friend,
You are a developer of insight. Can you please forward the
message below to the insight@sourceware.cygnus.com ?
I dont know what is wrong with these lists and they dont 
accept e-mails from public.xfree86.org. 

-----
  The IP number that I'm denying mail from is 204.152.184.37
  The list that you're on is ORBS.  See:
      http://www.orbs.org/verify.cgi?address=204.152.184.37
  for more information about this list and why you are on it.      
----

What he is talking about??? How I am supposed to access the 
insight, gcc, gdb lists? After all the last two are GNU! not
sourceware, cygnus , redhat etc etc etc...

---------- Forwarded message ----------
Date: Mon, 10 Jul 2000 22:20:06 -0700 (PDT)
To: insight@sourceware.cygnus.com
Subject: QUESTION ON INSIGHT 5.0

Hello,

I recenty done a port (well almost) to DG/UX unix of 
gdb-5.0. This port supports threads. The target named
"dgux" (dgux_ops as child_ops for "child" in inftarg.c)
will run as default target in gdb-5.0. I build insight
5.0 with the same files from gdb-5.0. It builds OK.
But the View->Thread list will not work! I put a trap 
printf("HELLO THREADS INSIGHT\n");
in the start of gdb/thread.c/info_thread fucntion and
nothing is coming out. So that means that it doesnt see 
the target DG/UX at all. How can I add a new target? 
The obvious "Select Target..." menu of insight doesnt 
give me any choice of "dgux" target; Only some Cisco etc etc ... 
However if I got out to a gdb console I can clearly see with
info targets the "dgux" target. (or use the command info threads)
I cannt see also (in Target Select) the core file! target. 
How one debugs cores with insight-5.0? (if this is possible).
Lastly gdb-5.0 for DG/UX has some new commands. One is 
"info threads-status"  that will give info for the threads in PID
related with the DG/UX kernel (sched, etc). I want to add
this new commands to insight-5.0 (when is targeted/builds for a DG/UX 
system). I couldnt find any info on how to add a command , or any
automated process in insight that we can do that at runtime.
Please direct me to files that I should look and hack.

Regards,
Takis  

PS:

PLease remove the "-lc" from the Makefiles of tk/unix tcl/unix,
itcl/itk/ ... etc ... IT IS WRONG TO LINK -lc directly. GCC should 
take care of this, depending on the OS flags and options given for each
OS (LIB_SPEC). Please consult the gcc list that is next to you!

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

* Re: [Fwd: QUESTION ON INSIGHT 5.0 (fwd)]
  2000-07-11  5:31 [Fwd: QUESTION ON INSIGHT 5.0 (fwd)] Keith Seitz
@ 2000-07-11  5:53 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2000-07-11  5:53 UTC (permalink / raw)
  To: takis; +Cc: insight

Takis Psarogiannakopoulos wrote:
> 
> I recenty done a port (well almost) to DG/UX unix of
> gdb-5.0. This port supports threads. The target named
> "dgux" (dgux_ops as child_ops for "child" in inftarg.c)
> will run as default target in gdb-5.0. I build insight
> 5.0 with the same files from gdb-5.0. It builds OK.
> But the View->Thread list will not work! I put a trap
> printf("HELLO THREADS INSIGHT\n");
> in the start of gdb/thread.c/info_thread fucntion and
> nothing is coming out. So that means that it doesnt see
> the target DG/UX at all. How can I add a new target?

Ok, threads support in Insight is kinda lame. If threads work with gdb
and you can use the "info threads" command of either the command line
gdb or in Insight's console window, then threads should work. If "info
threads" doesn't work, you've got other problems and I will forward your
message to gdb@sourceware.cygnus.com mailing list.

> The obvious "Select Target..." menu of insight doesnt
> give me any choice of "dgux" target; Only some Cisco etc etc ...
> However if I got out to a gdb console I can clearly see with
> info targets the "dgux" target. (or use the command info threads)

Now, the reason that your target doesn't show up in the target dialog is
because it is a native. Linux targets don't show up, either. They all
show up as "Exec". You will probably need to add your target to
target_is_native () in gdb/gdbtk/generic/gdbtk.c.

> I cannt see also (in Target Select) the core file! target.
> How one debugs cores with insight-5.0? (if this is possible).

I believe this is the same as loading a core file, isn't it? (I have
never used the 'core' target...) You'll need to load the core file from
the command line or the console window. From the command-line, use "gdb
myprog corefile" to get Insight/gdb to load the executable "myprog" and
core file "corefile". Alternatively, if Insight is already running, open
a console window and enter the command "core corefile". This will update
Insight to "debug" the corefile. I think it is a user interface tragedy
that gdb offers the "core" target to the user, and I will never use it.

Unfortunately, Insight was developed mainly with the embedded developer
in mind, so it lacks quite a bit for people using native systems. Sigh.

> Lastly gdb-5.0 for DG/UX has some new commands. One is
> "info threads-status"  that will give info for the threads in PID
> related with the DG/UX kernel (sched, etc). I want to add
> this new commands to insight-5.0 (when is targeted/builds for a DG/UX
> system). I couldnt find any info on how to add a command , or any
> automated process in insight that we can do that at runtime.
> Please direct me to files that I should look and hack.

You simply add your new commands to gdb in the target's tdep file. See,
for example, _initialize_v850ice in v850ice.c, which adds a new command
"ice" to gdb when this target is used.

Keith

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

end of thread, other threads:[~2000-07-11  5:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-11  5:31 [Fwd: QUESTION ON INSIGHT 5.0 (fwd)] Keith Seitz
2000-07-11  5:53 ` 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).