public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 8.2+trunk 0/2] two small rust fixes
@ 2018-08-31 14:53 Tom Tromey
  2018-08-31 14:53 ` [PATCH 8.2+trunk 1/2] Fix a small bug in gdb.rust/simple.rs Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Tromey @ 2018-08-31 14:53 UTC (permalink / raw)
  To: gdb-patches

Hi.

This series fixes a couple of small bugs I noticed while testing gdb
against a version of the Rust compiler that emits DW_TAG_variant_part.
See https://github.com/rust-lang/rust/issues/32920 for details of that.

While doing this I found a couple of bugs.  I'd like to put these on
the 8.2 branch, because all the DW_TAG_variant_part stuff was slated
for 8.2 and this gdb release is timely considering when the Rust
compiler patch will land.

The first patch is obvious and just a test case thinko.

The second patch changes how DW_TAG_variant_part is handled in the
DWARF reader.  I think this is reasonably safe as it is clearly
targeted at just this tag, which currently is only really supported
for Rust (Gnat can emit DW_TAG_variant_part with a special flag but
this is not common and the gdb Ada support for this has not been
implemented).

Let me know what you think.

Tom


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

end of thread, other threads:[~2018-08-31 15:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-31 14:53 [PATCH 8.2+trunk 0/2] two small rust fixes Tom Tromey
2018-08-31 14:53 ` [PATCH 8.2+trunk 1/2] Fix a small bug in gdb.rust/simple.rs Tom Tromey
2018-08-31 14:53 ` [PATCH 8.2+trunk 2/2] Set TYPE_LENGTH on a variant part Tom Tromey
2018-08-31 15:31 ` [PATCH 8.2+trunk 0/2] two small rust fixes Joel Brobecker

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).