Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stephen Smith <ischis2@home.com>
To: Elena Zannoni <ezannoni@cygnus.com>
Cc: Andrew Cagney <ac131313@cygnus.com>,
	GDB patches <gdb-patches@sourceware.cygnus.com>,
	Kevin Buettner <kevinb@cygnus.com>
Subject: Re: shared libraries and a remote target
Date: Thu, 19 Jul 2001 22:12:00 -0000	[thread overview]
Message-ID: <3B57BDE9.82F6B5EB@home.com> (raw)
In-Reply-To: <15191.36790.456922.418332@krustylu.cygnus.com>

Elena Zannoni wrote:

> Looks much better thanks.
>
>  > I didn't change the call to symbol_file_add instead of add_symbol_file_command since that
>  > would mean inserting duplicate code into gdb to do the parsing of the input string.
>  >
>
> Actually, I assume you added the qLibraries packet, so you can control
> the format of the response, right? Can it be changed?  The command
> line functions (*_command) should be used only from the CLI.  The
> grand plan is to separate all the CLI code and put it into the cli
> subdirectory, where it won't be accessible from other parts of gdb.
> So, it would be better if you could manipulate the response to be
> better suited for the symbol_file_add command.  Actually you can see
> how that function is invoked from the shared libraries files, and
> maybe do something similar as well.

Actually, some of my internal co-workers are so allergic to changes in gdbserver
that I would rather do something in the patch. [Thinking out load].  Adding more
overhead to the traffic over the wire cause a couple of other developers heartburn.  It
would also mean writing code to do essentially the same thing as the *_command
function because it already parses the string and then calls symbol_file_add.  Since calling
that function isn't what is wanted from an architectural perspective, why don't I "copy" the
code to remote.c (renaming the function in the process) and then then symfile patches
won't be needed and the code should be about the same size.

> I still wonder about the need for startup options, though. The code
> would be simpler if there was a command to enable/disable this
> feature.  Since this feature works only for remote targets, it
> wouldn't make sense if one is running GDB natively. I think of startup
> options as something that is always going to work.

Ok, I can agree.  Now that you have convinced me, how do I do it.  The reason that I
coded the switch was because I couldn't figure out how to add a command that would only
get used in the remote code.



  reply	other threads:[~2001-07-19 22:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18 10:54 Stephen Smith
2001-07-18 11:44 ` Elena Zannoni
2001-07-18 12:13   ` Stephen Smith
2001-07-19 10:31   ` Stephen Smith
2001-07-19 15:18   ` Resubmital of: " Stephen Smith
2001-07-19 17:57     ` Elena Zannoni
2001-07-19 22:12       ` Stephen Smith [this message]
2001-07-20 12:02         ` Elena Zannoni
2001-07-20 17:26         ` Andrew Cagney
2001-07-20  9:52     ` Improved patch: " Stephen Smith
2001-07-20 11:10       ` Kevin Buettner
2001-07-20 17:17       ` Re-submit: " Stephen Smith
2001-07-20 17:52         ` Andrew Cagney
2001-07-23  0:22           ` Stephen Smith

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=3B57BDE9.82F6B5EB@home.com \
    --to=ischis2@home.com \
    --cc=ac131313@cygnus.com \
    --cc=ezannoni@cygnus.com \
    --cc=gdb-patches@sourceware.cygnus.com \
    --cc=kevinb@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