From: Kaushik Phatak <Kaushik.Phatak@kpitcummins.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: "Jayant R. Sonar" <Jayant.Sonar@kpitcummins.com>,
Prafulla Thakare <Prafulla.Thakare@kpitcummins.com>
Subject: [Patch] CR16 Simulator fix for gdb 7.4
Date: Thu, 10 May 2012 14:24:00 -0000 [thread overview]
Message-ID: <C6CA53A2A46BA7469348BDBD663AB65834AB01D8@KCHJEXMB01.kpit.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
Hi,
The latest version of gdb seems to break the CR16 simulator which had been
working till version 7.2.
I am not able to figure out the reason why the attached hunk (nltvals.def) has
been removed from the sources, maybe regenerate missed it out.
The original patch was posted in 2008 and this hunk was part of 7.2 sources.
http://sourceware.org/ml/gdb-patches/2008-02/msg00385.html
I have attached a patch that places the original code. Please let me know if
this is OK.
We are also working on adding gdb and gdbserver support to this target and
plan to post the patches soon. Parts of the simulator have been modified to
add breakpoint support. These will be posted separately.
Thanks & Best Regards,
Kaushik Phatak
[-- Attachment #2: cr16sim.diff --]
[-- Type: application/octet-stream, Size: 1695 bytes --]
--- ./gdb-7.4.1_orig/sim/common/nltvals.def 2012-05-10 18:28:29.000000000 +0530
+++ ./gdb-7.4.1/sim/common/nltvals.def 2012-05-10 18:11:17.000000000 +0530
@@ -216,32 +216,37 @@
#endif
#ifdef NL_TARGET_cr16
#ifdef sys_defs
-/* from syscall.h */
-/* begin cr16 sys target macros */
- { "SYS_argc", 22 },
- { "SYS_argn", 24 },
- { "SYS_argnlen", 23 },
- { "SYS_argv", 13 },
- { "SYS_argvlen", 12 },
- { "SYS_chdir", 14 },
- { "SYS_chmod", 16 },
- { "SYS_close", 3 },
- { "SYS_exit", 1 },
- { "SYS_fstat", 10 },
- { "SYS_getpid", 8 },
- { "SYS_gettimeofday", 19 },
- { "SYS_kill", 9 },
- { "SYS_link", 21 },
- { "SYS_lseek", 6 },
- { "SYS_open", 2 },
- { "SYS_read", 4 },
- { "SYS_reconfig", 25 },
- { "SYS_stat", 15 },
- { "SYS_time", 18 },
- { "SYS_times", 20 },
- { "SYS_unlink", 7 },
- { "SYS_utime", 17 },
- { "SYS_write", 5 },
+ /* from syscall.h */
+ /* begin cr16 sys target macros */
+ { "SYS_ARG", 24 },
+ { "SYS_chdir", 12 },
+ { "SYS_chmod", 15 },
+ { "SYS_chown", 16 },
+ { "SYS_creat", 8 },
+ { "SYS_execv", 11 },
+ { "SYS_execve", 59 },
+ /*{ "SYS_exit", 1 }, REVISIT*/
+ { "SYS_fork", 2 },
+ { "SYS_fstat", 22 },
+ { "SYS_getpid", 20 },
+ { "SYS_isatty", 21 },
+ { "SYS_kill", 60 },
+ { "SYS_link", 9 },
+ { "SYS_mknod", 14 },
+ { "SYS_pipe", 42 },
+ { "SYS_open", 0x401 },
+ { "SYS_close", 0x402 },
+ { "SYS_read", 0x403 },
+ { "SYS_write", 0x404 },
+ { "SYS_lseek", 0x405 },
+ { "SYS_rename", 0x406 },
+ { "SYS_unlink", 0x407 },
+ { "SYS_exit", 0x410 },
+ { "SYS_stat", 38 },
+ { "SYS_time", 0x300 },
+ { "SYS_utime", 201 },
+ { "SYS_wait", 202 },
+ { "SYS_wait4", 7 },
/* end cr16 sys target macros */
#endif
#endif
next reply other threads:[~2012-05-10 14:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 14:24 Kaushik Phatak [this message]
2012-05-10 14:39 ` Tom Tromey
2012-05-13 19:06 ` Mike Frysinger
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=C6CA53A2A46BA7469348BDBD663AB65834AB01D8@KCHJEXMB01.kpit.com \
--to=kaushik.phatak@kpitcummins.com \
--cc=Jayant.Sonar@kpitcummins.com \
--cc=Prafulla.Thakare@kpitcummins.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