Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stan@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: Re: duplicated code in gdb and gdbserver
Date: Fri, 07 Jan 2011 17:17:00 -0000	[thread overview]
Message-ID: <4D274AB7.3080304@codesourcery.com> (raw)
In-Reply-To: <4D272FF6.3070402@codesourcery.com>

On 1/7/11 7:23 AM, Yao Qi wrote:
> I noticed that sharing code of GDB and GDBServer is discussed in 2010
> GCC Summit.
> http://sourceware.org/gdb/wiki/2010_GCC_Summit_BoF

I think everybody generally agrees that sharing code is good, and we 
should take opportunities to do so.

Where it's likely to get complicated is in areas like stop handling.  
GDB's native code can make casual references into breakpoint 
definitions, set/show variables, which is no big deal when you're in the 
same address space, but GDBserver needs to be either be preloaded with 
that information or pass the buck to GDB.

One thing that we could be doing in addition to moving code is to 
scrutinize gdb/*-nat.c and friends, and abstract out some API for any 
in-GDB-itself assumptions.  Hopefully that will help to minimize the 
need for #ifdef GDBSERVER hacks as we refactor the code.

Stan


      parent reply	other threads:[~2011-01-07 17:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 15:23 Yao Qi
2011-01-07 16:37 ` Doug Evans
2011-01-08  3:34   ` Yao Qi
2011-01-08  5:17     ` Joel Brobecker
2011-01-10 13:39   ` Frank Ch. Eigler
2011-01-10 14:09     ` Joel Brobecker
2011-01-10 15:10       ` Frank Ch. Eigler
2011-01-10 15:50       ` Paul Koning
2011-01-10 15:51     ` Doug Evans
2011-01-10 15:54       ` Frank Ch. Eigler
2011-01-10 16:35         ` Doug Evans
2011-01-10 19:02           ` Frank Ch. Eigler
2011-01-11 23:35             ` Joel Brobecker
2011-01-11 23:38           ` Joel Brobecker
2011-01-12  0:30             ` Frank Ch. Eigler
2011-01-12 17:54               ` Doug Evans
2011-01-12 18:06                 ` Doug Evans
2011-01-12 18:43                   ` Paul Koning
2011-01-12 19:04                     ` Doug Evans
2011-01-12 20:09                 ` Joel Brobecker
2011-01-12 20:48                 ` Frank Ch. Eigler
2011-01-14 17:04                   ` Doug Evans
2011-01-12 15:47           ` Tom Tromey
2011-01-07 17:17 ` Stan Shebs [this message]

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=4D274AB7.3080304@codesourcery.com \
    --to=stan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    /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