unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* GDB-multiarch
@ 2023-08-27 18:51 Ekaitz Zarraga
  2023-08-28 11:04 ` GDB-multiarch 宋文武
  0 siblings, 1 reply; 3+ messages in thread
From: Ekaitz Zarraga @ 2023-08-27 18:51 UTC (permalink / raw)
  To: guix-devel\@gnu.org

Hi all,

As you might know I'm talking part on the RISC-V bootstrapping efforts in Guix.
This makes me need a multi-architecture GDB. So I made this simple package:

``` scheme
(define-module (gdb)
  #:use-module (gnu packages)
  #:use-module (gnu packages gdb)
  #:use-module ((guix licenses) #:select (gpl3+))
  #:use-module (guix packages)
  #:use-module (guix utils))

(define-public gdb-multiarch-12
  (package
    (inherit gdb/pinned)
    (name "gdb-multiarch")
    (version "12.1")
    (arguments
     `(#:configure-flags
       (list "--enable-targets=all")
       ,@(package-arguments gdb-12)))
    (properties '())))

(define-public gdb-multiarch gdb-multiarch-12)
```

We could think about upstreaming it, probably replacing the output `gdb` binary
with `gdb-multiarch` as I think Debian does.

I think this might be interesting for many others.

WDYT?


ElenQ Technology
Ethical Innovation



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GDB-multiarch
  2023-08-27 18:51 GDB-multiarch Ekaitz Zarraga
@ 2023-08-28 11:04 ` 宋文武
  2023-08-28 11:08   ` GDB-multiarch Ekaitz Zarraga
  0 siblings, 1 reply; 3+ messages in thread
From: 宋文武 @ 2023-08-28 11:04 UTC (permalink / raw)
  To: Ekaitz Zarraga; +Cc: guix-devel@gnu.org

Ekaitz Zarraga <ekaitz@elenq.tech> writes:

> Hi all,
>
> As you might know I'm talking part on the RISC-V bootstrapping efforts in Guix.
> This makes me need a multi-architecture GDB. So I made this simple package:
>
> ``` scheme
> (define-module (gdb)
>   #:use-module (gnu packages)
>   #:use-module (gnu packages gdb)
>   #:use-module ((guix licenses) #:select (gpl3+))
>   #:use-module (guix packages)
>   #:use-module (guix utils))
>
> (define-public gdb-multiarch-12
>   (package
>     (inherit gdb/pinned)
>     (name "gdb-multiarch")
>     (version "12.1")
>     (arguments
>      `(#:configure-flags
>        (list "--enable-targets=all")
>        ,@(package-arguments gdb-12)))
>     (properties '())))
>
> (define-public gdb-multiarch gdb-multiarch-12)
> ```
>
> We could think about upstreaming it, probably replacing the output `gdb` binary
> with `gdb-multiarch` as I think Debian does.
>
> I think this might be interesting for many others.
>
> WDYT?
>
>
> ElenQ Technology
> Ethical Innovation

Hello, I have pushed one 'gdb-multiarch' into master as commit ceff14b7cd4.

It have different arguments, which I copied from other places..

+(define-public gdb-multiarch
+  (package/inherit gdb-12
+    (name "gdb-multiarch")
+    (arguments
+     `(#:configure-flags
+       (list "--enable-targets=all"
+             "--enable-multilib"
+             "--enable-interwork"
+             "--enable-languages=c,c++"
+             "--disable-nls")
+       ,@(package-arguments gdb-12)))
+    (synopsis "The GNU debugger (with all architectures enabled)")))


Does it works for you?  Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GDB-multiarch
  2023-08-28 11:04 ` GDB-multiarch 宋文武
@ 2023-08-28 11:08   ` Ekaitz Zarraga
  0 siblings, 0 replies; 3+ messages in thread
From: Ekaitz Zarraga @ 2023-08-28 11:08 UTC (permalink / raw)
  To: 宋文武; +Cc: guix-devel\@gnu.org





ElenQ Technology
Ethical Innovation


------- Original Message -------
On Monday, August 28th, 2023 at 11:04 AM, 宋文武 <iyzsong@envs.net> wrote:


> Ekaitz Zarraga ekaitz@elenq.tech writes:
> 
> > Hi all,
> > 
> > As you might know I'm talking part on the RISC-V bootstrapping efforts in Guix.
> > This makes me need a multi-architecture GDB. So I made this simple package:
> > 
> > ``` scheme
> > (define-module (gdb)
> > #:use-module (gnu packages)
> > #:use-module (gnu packages gdb)
> > #:use-module ((guix licenses) #:select (gpl3+))
> > #:use-module (guix packages)
> > #:use-module (guix utils))
> > 
> > (define-public gdb-multiarch-12
> > (package
> > (inherit gdb/pinned)
> > (name "gdb-multiarch")
> > (version "12.1")
> > (arguments
> > `(#:configure-flags
> > (list "--enable-targets=all")
> > ,@(package-arguments gdb-12)))
> > (properties '())))
> > 
> > (define-public gdb-multiarch gdb-multiarch-12)
> > ```
> > 
> > We could think about upstreaming it, probably replacing the output `gdb` binary
> > with `gdb-multiarch` as I think Debian does.
> > 
> > I think this might be interesting for many others.
> > 
> > WDYT?
> > 
> > ElenQ Technology
> > Ethical Innovation
> 
> 
> Hello, I have pushed one 'gdb-multiarch' into master as commit ceff14b7cd4.
> 
> It have different arguments, which I copied from other places..
> 
> +(define-public gdb-multiarch
> + (package/inherit gdb-12
> + (name "gdb-multiarch")
> + (arguments
> + `(#:configure-flags
> + (list "--enable-targets=all"
> + "--enable-multilib"
> + "--enable-interwork"
> + "--enable-languages=c,c++"
> + "--disable-nls")
> + ,@(package-arguments gdb-12)))
> + (synopsis "The GNU debugger (with all architectures enabled)")))
> 
> 
> Does it works for you? Thanks.

Yeah, sure!
Thanks a lot!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-28 11:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-27 18:51 GDB-multiarch Ekaitz Zarraga
2023-08-28 11:04 ` GDB-multiarch 宋文武
2023-08-28 11:08   ` GDB-multiarch Ekaitz Zarraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).