From: Yue Lu <hacklu.newborn@gmail.com>
To: gdb@sourceware.org
Cc: Luis Machado <lgustavo@codesourcery.com>,
Thomas Schwinge <thomas@codesourcery.com>
Subject: How to share code between [gdb]/gnu-nat.c with [gdb]/gdbserver/gnu-hurd-low.c?
Date: Mon, 12 Aug 2013 08:36:00 -0000 [thread overview]
Message-ID: <CAB8fV=jzv_rPHP3-HQVBA-pCNZNat6PNbh+OJEU7tZgQdKX3+w@mail.gmail.com> (raw)
Hi all,
When I working with porting gdbserver to GNU/Hurd I found I alway need
to duplicate code from [gdb]/gnu-nat.c to my new file
[gdb]/gdb/server/gnu-hurd.low.c. There are too many functions and
structures can be shared between the two file only need a little
change or even without any change.
I don't have good ideal to share the code, can you give me any
suggestions? Thank you.
--
Yue Lu (陆岳)
next reply other threads:[~2013-08-12 8:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-12 8:36 Yue Lu [this message]
2013-08-12 12:25 ` Luis Machado
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='CAB8fV=jzv_rPHP3-HQVBA-pCNZNat6PNbh+OJEU7tZgQdKX3+w@mail.gmail.com' \
--to=hacklu.newborn@gmail.com \
--cc=gdb@sourceware.org \
--cc=lgustavo@codesourcery.com \
--cc=thomas@codesourcery.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