Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kaushik Phatak <Kaushik.Phatak@kpitcummins.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	Yao Qi	<yao@codesourcery.com>, Pedro Alves <palves@redhat.com>
Subject: RE: [RFC] New GDB Port CR16
Date: Mon, 24 Sep 2012 12:55:00 -0000	[thread overview]
Message-ID: <C6CA53A2A46BA7469348BDBD663AB65845B2DB0E@KCHJEXMB03.kpit.com> (raw)
In-Reply-To: <CAJaTeTrxiEeCFrn0Le5FqMLz0tC_cCPRODYgczmoggs9SyqZEw@mail.gmail.com>

>> so the fix would be to change this file to include the header.

Yes, I agree. I have added the prototypes to the header file and the patch below
should fix this issue,

include/opcode/ChangeLog:
	* cr16.h: Add prototypes for cr16-dis.c

	
--- ./gdb_src.orig/include/opcode/cr16.h        2010-04-15 15:56:09.000000000 +0530
+++ ./gdb_src/include/opcode/cr16.h     2012-09-12 10:44:09.000000000 +0530
@@ -435,4 +435,8 @@ extern const inst *instruction;
 typedef long long int LONGLONG;
 typedef unsigned long long ULONGLONG;

+/* Prototypes for function in cr16-dis.c  */
+void make_instruction (void);
+int match_opcode (void);
+
 #endif /* _CR16_H_ */


Additionally, I was working on couple of issues as mentioned in the post below,
http://sourceware.org/ml/gdb-patches/2012-09/msg00152.html
Issue 1 is sorted out by migrating my gdbserver sources to the latest 7.5 release
version. I was earlier working on a much older branch and had only migrated the
host side gdb to 7.5.

Issue 2 is related to the -fPIC option which causes my global data to be placed
at an offset causing the host side gdb to query incorrect addresses for global
variables. Any comments on my proposed patch/hack ?
http://sourceware.org/ml/gdb-patches/2012-09/msg00152/gdb_core_fpic_suspect.diff

Thanks & Best Regards,
Kaushik Phatak



  reply	other threads:[~2012-09-24 12:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27  6:37 Kaushik Phatak
2012-08-27 16:21 ` Yao Qi
2012-08-28 14:47   ` Kaushik Phatak
2012-08-29 22:14     ` Mike Frysinger
2012-08-30  5:23       ` Kaushik Phatak
2012-08-30  6:10         ` Mike Frysinger
2012-09-03  9:31         ` Pedro Alves
2012-09-04  3:52           ` Mike Frysinger
2012-09-04  6:50             ` Kaushik Phatak
2012-09-07 17:47               ` Pedro Alves
2012-09-11 13:16                 ` Kaushik Phatak
2012-09-11 19:02                   ` Mike Frysinger
2012-09-24 12:55                     ` Kaushik Phatak [this message]
2012-09-11 19:00               ` Mike Frysinger
2012-08-27 21:10 ` Mike Frysinger
2012-08-28 16:24 ` Pedro Alves
2012-08-30  4:49   ` Kaushik Phatak
2012-08-30  5:14     ` Yao Qi

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=C6CA53A2A46BA7469348BDBD663AB65845B2DB0E@KCHJEXMB03.kpit.com \
    --to=kaushik.phatak@kpitcummins.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=vapier@gentoo.org \
    --cc=yao@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