Skip to contentSkip to conversation

OpenRISC gdb port

PATCH New Stafford Horne 3 participants 16 messages May 29, 2017 – Dec 12, 2017

lore
Share & tools
lore
#0 lore raw

v7 cover OpenRISC gdb port

Hello,

This is the openrisc port of GDB that has been in openrisc repositories for a very long time. The main original author was Jeremy Bennett as can be seen in file copyrights. Others should also have copyright assignment in place.

This along with the sim patches are the last of what has not made its way upstream. The patches are based on current gdb git master branch.

I have run the testsuite and results are as follows:

=== gdb Summary ===

# of expected passes            19597
# of unexpected failures        394
# of expected failures          29
# of known failures             54
# of unresolved testcases       2
# of untested testcases         190
# of unsupported tests          290

-Stafford

--

Changes since v6
* Removed the tdesc arbitrary groups patch (split to different series)
* Removed docs suggested by Yao Qi:
- No need to document target remote as all targets have this
- No need to document reggroups as its available via maint print
* Fixed Open vs Free suggestion from Eli

Changes since v5
* Change from using frame_debug to or1k_debug
* Change to use TYPE_*() macros rather than direct access to arg_type fields
* Fixes to docs suggested by Eli
* Fixes suggested by Yao Qi
- Use target_read_code() vs target_read_memory()
- use bool where possible instead of int
- User error over throw_quit
- Fix line widths to 80 characters for comments
- Add some better comments on the analyse functions
- Dynamically allocate arg buffers rather than hard coding size to 4, to allow for dynamic sizes.
- Remote or1k_register_*() functions, handled all in tdesc now
- Change way to define inline or1k_frame_unwind struct
* Add test for gdb.xml/tdesc-regs.exp

Changes since v4
* Fixed issue with gdb_assert causing prologue sniffer to abort gdb
* Fixed issue with step through delay slot possible SEGV
* Cleaned up a few more comments to be GNU style

Changes since v3
* Updates as per Luis's comments
- comment formatting issues (period then 2 spaces)
- remove spurious newlines
- merged configure.tgt clasues to single
- Fixed typos and grammar in gdb.texinfo
- Removed copyright names from source files (in docs)
- Remove curly braces around single statement if's
- (fyi) I left the casts as I think it keeps code readable
- used XCNEW for tdep init
- Added an example XML target descriptor
* Removed newlines

Changes from v2
* Updates as per Yao's comments
- Fix copyrights, jullien embecosm, remove embecosm
- indentation to use gnu style (i.e. && and || on left)
- Fix comments to use gnu style
- Move some includes around
- Remove constant variables, replace with constants
- Remove doxygen on a few calls
- Have only 1 space between type and var name
- remove todo about 4 const
- do fix *buf checks (use buf != NULL)
- BP_MANIPULATION
- Use the builtin types for reg register functions
- or1k_iterate_over_regset_sections - remove no linux, no cores yet
* Remove unimplements pseudo register functions
* Remove spr commands as we can now get those via info reg

Changes from v1
* Merged or1k-tdep.[ch] changes into a single commit
* Futher fixes to change log bringing in history back to 2008
* Fix doc issue on sw_breakpoint_from_kind

--

Franck Jullien (1):
gdb: Add OpenRISC or1k and or1knd target support

Stafford Horne (3):
gdb: testsuite: Add or1k l.nop instruction
gdb: testsuite: Add or1k tdesc-regs.exp test support Add gdb for or1k build

 configure                             |    7 -
 configure.ac                          |    7 -
 gdb/configure.tgt                     |    6 +
 gdb/doc/gdb.texinfo                   |   47 ++
 gdb/features/Makefile                 |    2 +
 gdb/features/or1k-core.xml            |   65 ++
 gdb/features/or1k.c                   |   77 ++
 gdb/features/or1k.xml                 |   12 +
 gdb/or1k-tdep.c                       | 1296 +++++++++++++++++++++++++++++++++
 gdb/or1k-tdep.h                       |   56 ++
 gdb/testsuite/gdb.base/bp-permanent.c |    2 +
 gdb/testsuite/gdb.xml/tdesc-regs.exp  |    3 +
 12 files changed, 1566 insertions(+), 14 deletions(-)
 create mode 100644 gdb/features/or1k-core.xml
 create mode 100644 gdb/features/or1k.c
 create mode 100644 gdb/features/or1k.xml
 create mode 100644 gdb/or1k-tdep.c
 create mode 100644 gdb/or1k-tdep.h
Signature · 1 line
2.9.4
#1 lore raw

PATCH v7 1/4 gdb: Add OpenRISC or1k and or1knd target support

From: Franck Jullien <[email protected]>

This patch prepares the current GDB port of the OpenRISC processor from
https://github.com/openrisc/binutils-gdb for upstream merging.

Testing has been done with a cgen sim provided in a separate patch. This has been tested with 2 toolchains. GCC [1] 5.4.0 from the OpenRISC project with Newlib [2] and GCC 5.4.0 with Musl [3] 1.1.4.

It supports or1knd (no delay slot target).
The default target is or1k (with delay slot).

You can change the target arch with:

(gdb) set architecture or1knd
The target architecture is assumed to be or1knd

[1] https://github.com/openrisc/or1k-gcc
[2] https://github.com/openrisc/newlib
[3] https://github.com/openrisc/musl-cross

gdb/doc/ChangeLog:

2017-04-20 Stafford Horne <[email protected]>
Stefan Wallentowitz <[email protected]> Franck Jullien <[email protected]> Jeremy Bennett <[email protected]>

* gdb.texinfo: Add OpenRISC documentation.

gdb/ChangeLog:

2017-04-20 Stafford Horne <[email protected]>
Stefan Wallentowitz <[email protected]> Stefan Kristiansson <[email protected]> Franck Jullien <[email protected]> Jeremy Bennett <[email protected]>

* configure.tgt: Add targets for or1k and or1knd.
* or1k-tdep.c: New file.
* or1k-tdep.h: New file.
* features/Makefile: Add or1k.xml to build.
* features/or1k.xml: New file.
* features/or1k-core.xml: New file.
* features/or1k.c: Generated.

---
 gdb/configure.tgt          |    6 +
 gdb/doc/gdb.texinfo        |   47 ++
 gdb/features/Makefile      |    2 +
 gdb/features/or1k-core.xml |   65 +++
 gdb/features/or1k.c        |   77 +++
 gdb/features/or1k.xml      |   12 +
 gdb/or1k-tdep.c            | 1296 ++++++++++++++++++++++++++++++++++++++++++++
 gdb/or1k-tdep.h            |   56 ++
 8 files changed, 1561 insertions(+)
 create mode 100644 gdb/features/or1k-core.xml
 create mode 100644 gdb/features/or1k.c
 create mode 100644 gdb/features/or1k.xml
 create mode 100644 gdb/or1k-tdep.c
 create mode 100644 gdb/or1k-tdep.h
gdb/configure.tgt +6 -0
index fdcb7b1..5480c19 100644
@@ -427,6 +427,12 @@ nios2*-*-*)
 	gdb_target_obs="nios2-tdep.o"
 	;;
 
+or1k-*-* | or1knd-*-*)
+	# Target: OpenCores OpenRISC 1000 32-bit implementation bare metal
+	gdb_target_obs="or1k-tdep.o"
+	gdb_sim=../sim/or1k/libsim.a
+	;;
+
 powerpc*-*-freebsd*)
 	# Target: FreeBSD/powerpc
 	gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
gdb/doc/gdb.texinfo +47 -0

77 lines not on this page · raw message

gdb/features/Makefile +2 -0
index 3bc8b5a..d16d5ba 100644
@@ -93,6 +93,7 @@ mips64-expedite = r29,pc
 mips64-dsp-expedite = r29,pc
 microblaze-expedite = r1,rpc
 nios2-linux-expedite = sp,pc
+or1k-expedite = r1,npc
 powerpc-expedite = r1,pc
 rs6000/powerpc-cell32l-expedite = r1,pc,r0,orig_r3,r4
 rs6000/powerpc-cell64l-expedite = r1,pc,r0,orig_r3,r4
@@ -179,6 +180,7 @@ XMLTOC = \
 	nds32.xml \
 	nios2-linux.xml \
 	nios2.xml \
+	or1k.xml \
 	rs6000/powerpc-32.xml \
 	rs6000/powerpc-32l.xml \
 	rs6000/powerpc-403.xml \
gdb/features/or1k-core.xml new file +65 -0

65 lines not on this page · raw message

gdb/features/or1k.c new file +77 -0

77 lines not on this page · raw message

gdb/features/or1k.xml new file +12 -0
new file mode 100644
index 0000000..c138a02
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2016 Free Software Foundation, Inc.
+
+     Copying and distribution of this file, with or without modification,
+     are permitted in any medium without royalty provided the copyright
+     notice and this notice are preserved.  -->
+
+<!DOCTYPE target SYSTEM "gdb-target.dtd">
+<target>
+  <architecture>or1k</architecture>
+  <xi:include href="or1k-core.xml"/>
+</target>
gdb/or1k-tdep.c new file +1296 -0

1,296 lines not on this page · raw message

gdb/or1k-tdep.h new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.9.4
#2 lore raw

PATCH v7 1/4 gdb: Add OpenRISC or1k and or1knd target support

gdb/features/or1k.xml line 2

Quoted 8 lines · Stafford Horne
gdb/features/or1k.xml new file +2 -0
new file mode 100644
index 0000000..c138a02
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2016 Free Software Foundation, Inc.

2017.

gdb/features/or1k.xml line 5

Quoted 3 lines
gdb/features/or1k.xml new file +3 -0
+
+  set_gdbarch_print_insn (gdbarch, print_insn_or1k);
+

Don't need to set gdbarch_print_insn, so remove this line. GDB will use the default one, which selects the right disassembler in opcodes.

Otherwise, patch is good to me.

Signature · 1 line
Yao (齐尧)
#3 lore raw

PATCH v7 1/4 gdb: Add OpenRISC or1k and or1knd target support

Quoted 12 lines · Yao Qi

gdb/features/or1k.xml line 2

Quoted 8 lines · Stafford Horne
gdb/features/or1k.xml new file +2 -0
new file mode 100644
index 0000000..c138a02
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!-- Copyright (C) 2016 Free Software Foundation, Inc.

2017.

Ah, right, will fix.

Quoted 6 lines

gdb/features/or1k.xml line 5

Quoted 3 lines
gdb/features/or1k.xml new file +3 -0
+
+  set_gdbarch_print_insn (gdbarch, print_insn_or1k);
+

Don't need to set gdbarch_print_insn, so remove this line. GDB will use the default one, which selects the right disassembler in opcodes.

I removed it, but all tests start failing after that. I will look into it a bit more.

Quoted 4 lines

Otherwise, patch is good to me.

Signature · 1 line
Yao (齐尧)
#4 lore raw

PATCH v7 1/4 gdb: Add OpenRISC or1k and or1knd target support

Quoted 11 lines · Stafford Horne
Quoted 7 lines · Yao Qi

gdb/or1k-tdep.c line 1166

Quoted 2 lines · Stafford Horne
gdb/or1k-tdep.c new file +2 -0
+  set_gdbarch_print_insn (gdbarch, print_insn_or1k);
+

Don't need to set gdbarch_print_insn, so remove this line. GDB will use the default one, which selects the right disassembler in opcodes.

I removed it, but all tests start failing after that. I will look into it a bit more.

I tried to look into this, but it looks liek we do need
set_gdbarch_print_insn (). If not starting gdb hits this error in
gdbarch.c verify_gdbarch().

...
if (gdbarch->print_insn == 0)

    log.puts ("\n\tprint_insn");

...

if (!log.empty ())

    internal_error (__FILE__, __LINE__,
		    _("verify_gdbarch: the following are invalid ...%s"),
		    log.c_str ());

...

Is the automatic selecting of print_insn something new? My patch is based on yesterdays master branch of http://sourceware.org/git/binutils-gdb.git.

-Stafford

#5 lore raw

PATCH v7 1/4 gdb: Add OpenRISC or1k and or1knd target support

Quoted 7 lines · Stafford Horne

I tried to look into this, but it looks liek we do need
set_gdbarch_print_insn (). If not starting gdb hits this error in
gdbarch.c verify_gdbarch().

...
if (gdbarch->print_insn == 0)

    log.puts ("\n\tprint_insn");

These lines were removed by my commit 39503f82427e22ed8e04d986ccdc8562091ec62e (Delegate opcodes to select disassembler in GDB) on May 24th.

- if (gdbarch->print_insn == 0)
- log.puts ("\n\tprint_insn");
+ /* Skip verify of print_insn, invalid_p == 0 */

Quoted 10 lines

...

if (!log.empty ())

    internal_error (__FILE__, __LINE__,
		    _("verify_gdbarch: the following are invalid ...%s"),
		    log.c_str ());

...

Is the automatic selecting of print_insn something new? My patch is based on yesterdays master branch of http://sourceware.org/git/binutils-gdb.git.

Looks your gdbarch.c is out of date.

Signature · 1 line
Yao (齐尧)
#6 lore raw

PATCH v7 1/4 gdb: Add OpenRISC or1k and or1knd target support

Quoted 26 lines · Yao Qi
Quoted 7 lines · Stafford Horne

I tried to look into this, but it looks liek we do need
set_gdbarch_print_insn (). If not starting gdb hits this error in
gdbarch.c verify_gdbarch().

...
if (gdbarch->print_insn == 0)

    log.puts ("\n\tprint_insn");

These lines were removed by my commit 39503f82427e22ed8e04d986ccdc8562091ec62e (Delegate opcodes to select disassembler in GDB) on May 24th.

(quoted diff) +1 -2
-  if (gdbarch->print_insn == 0)
-    log.puts ("\n\tprint_insn");
+  /* Skip verify of print_insn, invalid_p == 0 */
Quoted 9 lines

...

if (!log.empty ())

    internal_error (__FILE__, __LINE__,
		    _("verify_gdbarch: the following are invalid ...%s"),
		    log.c_str ());

...

Quoted 4 lines
Quoted 2 lines

Is the automatic selecting of print_insn something new? My patch is based on yesterdays master branch of http://sourceware.org/git/binutils-gdb.git.

Looks your gdbarch.c is out of date.

Thanks, I see it now.

-Stafford

#7 lore raw

PATCH v7 2/4 gdb: testsuite: Add or1k l.nop instruction

In reply to Stafford Horne

The test case requires adding a nop instruction. For or1k the instruction is l.nop. This change uses the correct operation.

gdb/testsuite/ChangeLog:

2016-05-11 Stafford Horne <[email protected]>

* gdb.base/bp-permanent.c: Define nop of or1k.

---
 gdb/testsuite/gdb.base/bp-permanent.c | 2 ++
 1 file changed, 2 insertions(+)
gdb/testsuite/gdb.base/bp-permanent.c +2 -0
index acd5be7..d42aafa 100644
@@ -26,6 +26,8 @@
 
 #if defined(__s390__) || defined(__s390x__)
 #define NOP asm("nopr 0")
+#elif defined(__or1k__)
+#define NOP asm("l.nop")
 #else
 #define NOP asm("nop")
 #endif
Signature · 1 line
2.9.4
#8 lore raw

PATCH v7 2/4 gdb: testsuite: Add or1k l.nop instruction

Quoted 3 lines · Stafford Horne

2016-05-11 Stafford Horne <[email protected]>

* gdb.base/bp-permanent.c: Define nop of or1k.

Patch is good to me.

Signature · 1 line
Yao (齐尧)
#9 lore raw

PATCH v7 3/4 gdb: testsuite: Add or1k tdesc-regs.exp test support

In reply to Stafford Horne

gdb/testsuite/ChangeLog:

2017-04-20 Stafford Horne <[email protected]>

* gdb.xml/tdesc-regs.exp: Add or1k support.

---
 gdb/testsuite/gdb.xml/tdesc-regs.exp | 3 +++
 1 file changed, 3 insertions(+)
gdb/testsuite/gdb.xml/tdesc-regs.exp +3 -0
index 70fc0e0..d62ed98 100644
@@ -50,6 +50,9 @@ switch -glob -- [istarget] {
     "nios2-*-*" {
 	set core-regs {nios2-cpu.xml}
     }
+    "or1k-*-*" {
+	set core-regs {or1k-core.xml}
+    }
     "powerpc*-*-*" {
 	set regdir "rs6000/"
 	set core-regs {power-core.xml}
Signature · 1 line
2.9.4
#10 lore raw

PATCH v7 3/4 gdb: testsuite: Add or1k tdesc-regs.exp test support

Quoted 5 lines · Stafford Horne

gdb/testsuite/ChangeLog:

2017-04-20 Stafford Horne <[email protected]>

* gdb.xml/tdesc-regs.exp: Add or1k support.

Patch is good to me.

Signature · 1 line
Yao (齐尧)
#11 lore raw

PATCH v7 4/4 Add gdb for or1k build

In reply to Stafford Horne

* ChangeLog:

2017-02-12 Stafford Horne <[email protected]>

* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
* configure: Regenerate.

Cc gcc-patches at gcc.gnu.org
---
 configure    | 7 -------
 configure.ac | 7 -------
 2 files changed, 14 deletions(-)
configure +0 -7
index be9dd89..0bf47fa 100755
@@ -3632,10 +3632,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -3841,9 +3837,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
configure.ac +0 -7
index 532c5c2..9d16792 100644
@@ -966,10 +966,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -1175,9 +1171,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
Signature · 1 line
2.9.4
#12 lore raw

PATCH v7 4/4 Add gdb for or1k build

Hello,

This patch was sent in May, now everything is in place to commit the OpenRISC gdb port upstream except for the OK from GCC on this patch.

Are there any concerns? Who will commit this to GCC?

Quoted 66 lines · Stafford Horne

* ChangeLog:

2017-02-12 Stafford Horne <[email protected]>

* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
* configure: Regenerate.

Cc gcc-patches at gcc.gnu.org
---
 configure    | 7 -------
 configure.ac | 7 -------
 2 files changed, 14 deletions(-)
configure +0 -7
index be9dd89..0bf47fa 100755
@@ -3632,10 +3632,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -3841,9 +3837,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
configure.ac +0 -8
index 532c5c2..9d16792 100644
@@ -966,10 +966,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -1175,9 +1171,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
--

2.9.4

#13 lore raw

PATCH v7 4/4 Add gdb for or1k build

Hello,

I brought this up on the #gcc chat room. I was asked to check with Jakub and Richi.

This is a small patch to configure/configure.ac to enable gdb to build for the or1k target. I am working on upstreaming the gdb port and have everything OKed and all copyrights in place for the binutils/gdb/sim projects.

Since binutils copies the configure/configure.ac from the gcc project I would like to get this patch incorporated into gcc before committing the binutils/gdb/sim patches.

Please let me know if there are any questions/concerns.

-Stafford

Quoted 74 lines · Stafford Horne

Hello,

This patch was sent in May, now everything is in place to commit the OpenRISC gdb port upstream except for the OK from GCC on this patch.

Are there any concerns? Who will commit this to GCC?

Quoted 66 lines · Stafford Horne

* ChangeLog:

2017-02-12 Stafford Horne <[email protected]>

* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
* configure: Regenerate.

Cc gcc-patches at gcc.gnu.org
---
 configure    | 7 -------
 configure.ac | 7 -------
 2 files changed, 14 deletions(-)
configure +0 -7
index be9dd89..0bf47fa 100755
@@ -3632,10 +3632,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -3841,9 +3837,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
configure.ac +0 -8
index 532c5c2..9d16792 100644
@@ -966,10 +966,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -1175,9 +1171,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
--

2.9.4

#14 lore raw

PATCH v7 4/4 Add gdb for or1k build

Quoted 9 lines · Stafford Horne

Hello,

I brought this up on the #gcc chat room. I was asked to check with Jakub and Richi.

This is a small patch to configure/configure.ac to enable gdb to build for the or1k target. I am working on upstreaming the gdb port and have everything OKed and all copyrights in place for the binutils/gdb/sim projects.

Quoted 5 lines

Since binutils copies the configure/configure.ac from the gcc project I would like to get this patch incorporated into gcc before committing the binutils/gdb/sim patches.

Please let me know if there are any questions/concerns.

Ok.

Thanks,
Richard.

Quoted 79 lines

-Stafford

Quoted 74 lines · Stafford Horne

Hello,

This patch was sent in May, now everything is in place to commit the OpenRISC gdb port upstream except for the OK from GCC on this patch.

Are there any concerns? Who will commit this to GCC?

Quoted 66 lines · Stafford Horne

* ChangeLog:

2017-02-12 Stafford Horne <[email protected]>

* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
* configure: Regenerate.

Cc gcc-patches at gcc.gnu.org
---
 configure    | 7 -------
 configure.ac | 7 -------
 2 files changed, 14 deletions(-)
configure +0 -7
index be9dd89..0bf47fa 100755
@@ -3632,10 +3632,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -3841,9 +3837,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
configure.ac +0 -8
index 532c5c2..9d16792 100644
@@ -966,10 +966,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -1175,9 +1171,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
--

2.9.4

Signature · 2 lines
Richard Biener <[email protected]>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)
#15 lore raw

PATCH v7 4/4 Add gdb for or1k build

Quoted 11 lines · Richard Biener
Quoted 9 lines · Stafford Horne

Hello,

I brought this up on the #gcc chat room. I was asked to check with Jakub and Richi.

This is a small patch to configure/configure.ac to enable gdb to build for the or1k target. I am working on upstreaming the gdb port and have everything OKed and all copyrights in place for the binutils/gdb/sim projects.

Quoted 7 lines
Quoted 5 lines

Since binutils copies the configure/configure.ac from the gcc project I would like to get this patch incorporated into gcc before committing the binutils/gdb/sim patches.

Please let me know if there are any questions/concerns.

Ok.

Thank you,

As discussed you have committed this to the gcc svn.

-Stafford

Quoted 86 lines

Thanks,
Richard.

Quoted 79 lines

-Stafford

Quoted 74 lines · Stafford Horne

Hello,

This patch was sent in May, now everything is in place to commit the OpenRISC gdb port upstream except for the OK from GCC on this patch.

Are there any concerns? Who will commit this to GCC?

Quoted 66 lines · Stafford Horne

* ChangeLog:

2017-02-12 Stafford Horne <[email protected]>

* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
* configure: Regenerate.

Cc gcc-patches at gcc.gnu.org
---
 configure    | 7 -------
 configure.ac | 7 -------
 2 files changed, 14 deletions(-)
configure +0 -7
index be9dd89..0bf47fa 100755
@@ -3632,10 +3632,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -3841,9 +3837,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
configure.ac +0 -8
index 532c5c2..9d16792 100644
@@ -966,10 +966,6 @@ case "${target}" in
     ;;
   *-*-rtems*)
     noconfigdirs="$noconfigdirs target-libgloss"
-    # this is not caught below because this stanza matches earlier
-    case $target in
-      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
-    esac
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)
@@ -1175,9 +1171,6 @@ case "${target}" in
   nvptx*-*-*)
     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
     ;;
-  or1k*-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
   sh-*-*)
     case "${target}" in
       sh*-*-elf)
--

2.9.4

Signature · 2 lines
Richard Biener <[email protected]>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)