From: John S. Kallal <jskallal@home.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com,
Michael Snyder <msnyder@cygnus.com>,
Mark Kettenis <kettenis@science.uva.nl>
Subject: Re: [RFC] Making target layers into a real stack
Date: Tue, 10 Jul 2001 12:16:00 -0000 [thread overview]
Message-ID: <01071015192100.00894@CyberMax> (raw)
In-Reply-To: <3B3C0E2E.7040508@cygnus.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2634 bytes --]
On Friday 29 June 2001 01:12, Andrew Cagney wrote:
> > Andrew Cagney,
> >
> > In message http://sources.redhat.com/ml/gdb/2001-06/msg00015.html you
> > indicated interest in changes that start converting the target layers
> > into a real stack.
> >
> > How about the following patch that use a mix of macros and subroutines
> > in files target.h and target.c. How to use the macros in shown by
> > changing the files lin-lwp.c and thread-db.c to using the macros.
> >
> > If you think that this is the way to make the target layers into
> > something more stack-like you can apply the patch. If you think
> > that another way should be used, can you please give me some
> > pointer as to how to stack should be redesigned?
>
> I need to think about this and come up with a decent description as to
> how I think it should be done, sorry. The change I have in mind is more
> fundamental than this. Very briefly, each layer of the stack (if it is
> called that) would have its own local context (no global variables) and
> each layer would communicate with the layer above/below asynchronously.
> Each layer would be directly coupled to the event loop.
You are looking for a lot a work. If you can not give me more detailed
design information or example system to work from that would meet you
received your OK, any work by me is just a waste ofpÂÂïtime.
>
> This is a long way from what we have now :-/
>
> I suspect that the best thing to do is to address the immediate problems
> in lin-lwp.c and then, later the more fundamental change can follow.
My target layers patch was trying to address the immediate problems of
the lin-lwp.c! For me the major problem is lin-lwp.c functions making direct
calls to the child_target functions even when the child_target is not
currently installed in the target stack.
You can see the problems in the currently gdb snapshots by loading a
LinuxThreads program in gdb then set gdb to the remote target. Most user
command that follow will then be directed to the child_target functions even
while though the child_target is inactive.
> PS: In general macro's are bad and make the developers life hard. This
> is why gdbarch.[hc] was generated from gdbarch.sh.
Depends on your point of view. For programmers that are skilled with shell
programming, gdbarch.sh may make life better. I do very little UNIX shell
programming. For me gdbarch.sh just adds one more non-C source code file
to understand, modify, etc., of non-C code to the gdb source files.
Therefore, for me creating gdbarch[hc] from gdbarch.sh just makes working
with the gdb sources harder.
next prev parent reply other threads:[~2001-07-10 12:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-20 14:01 John S. Kallal
[not found] ` <3B3C0E2E.7040508@cygnus.com>
2001-07-10 12:16 ` John S. Kallal [this message]
2001-07-10 12:42 ` Andrew Cagney
2001-07-12 17:29 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01071015192100.00894@CyberMax \
--to=jskallal@home.com \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@science.uva.nl \
--cc=msnyder@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox