public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: George Barrett <bob@bob131.so>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2] guile: fix smob exports
Date: Mon, 9 Aug 2021 21:02:00 -0400	[thread overview]
Message-ID: <71573a38-0f83-124e-237b-89f076b140ce@polymtl.ca> (raw)
In-Reply-To: <itwced05tk-4qx881p8o0tbl.g_l9m5s-qsuwkh_bo_x2rvltv91@mail.bob131.so>

On 2021-06-06 2:49 p.m., George Barrett via Gdb-patches wrote:
> Before Guile v2.1[1], calls to `scm_make_smob_type' implicitly
> added the created class to the exports list of (oop goops); v2.1+ does
> not implicitly create bindings in any modules. This means that the GDB
> manual subsection documenting exported types is not quite right when
> GDB is linked against Guile <v2.1 (types are exported from (oop
> goops)) instead of (gdb)) and incorrect when linked against Guile
> v2.1+ (types are not bound to any variables at all!).
> 
> This commit makes a small change to GDB's smob registration machinery
> to make sure registered smobs get exported from the current
> module. This will likely cause warnings to the user about conflicting
> exports if they load both (gdb) and (oop goops) from a GDB linked
> against Guile v2.0, but it shouldn't impact functionality (and seemed
> preferable to trying to un-export bindings from (oop goops) if v2.0
> was detected).
> 
> [1]: This changed with Guile commit
>      28d0871b553a3959a6c59e2e4caec1c1509f8595

Since nobody reviewed this, I'll go ahead.  I won't pretend that I am
able to verify everything you claim above, but I trust that you know
what you are talking about :).  I didn't understand though from your
explanation what consequence the bad behavior has.  What did it prevent
a Guile user to do?

I'm fine with you merging the patch.  If some other Guile-knowledgeable
person would like to take a look (even after it is merged), they are
more than welcome to.

Simon

  parent reply	other threads:[~2021-08-10  1:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-06 18:49 George Barrett
2021-07-28 23:23 ` [PING] " George Barrett
2021-08-09 22:19   ` [PING**2] " George Barrett
2021-08-10  1:02 ` Simon Marchi [this message]
2021-08-10  3:04   ` George Barrett
2021-08-10  3:21     ` Simon Marchi

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=71573a38-0f83-124e-237b-89f076b140ce@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=bob@bob131.so \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).