public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/2] Fix a crash in go-lang.c
Date: Thu, 16 Feb 2023 18:00:11 -0700	[thread overview]
Message-ID: <20230216-submit-go-unique-ptr-v1-0-73dd8065c6a6@tromey.com> (raw)

This series fixes a crash in go-lang.c, but first it takes a detour to
remove some manual memory management.

---
Tom Tromey (2):
      Avoid manual memory management in go-lang.c
      Fix crash in go_symbol_package_name

 gdb/dwarf2/read.c                   |  2 +-
 gdb/go-exp.y                        |  8 +++----
 gdb/go-lang.c                       | 43 +++++++++++++++++--------------------
 gdb/go-lang.h                       | 11 +++++++---
 gdb/testsuite/gdb.go/no-package.exp | 31 ++++++++++++++++++++++++++
 5 files changed, 64 insertions(+), 31 deletions(-)
---
base-commit: 16b84b6599dba01abc00954d0bc80ddf0c2373e3
change-id: 20230216-submit-go-unique-ptr-5aefe0b36452

Best regards,
-- 
Tom Tromey <tom@tromey.com>


             reply	other threads:[~2023-02-17  1:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17  1:00 Tom Tromey [this message]
2023-02-17  1:00 ` [PATCH 1/2] Avoid manual memory management " Tom Tromey
2023-02-17 22:44   ` Andrew Burgess
2023-02-18  0:01     ` Tom Tromey
2023-02-17  1:00 ` [PATCH 2/2] Fix crash in go_symbol_package_name Tom Tromey
2023-02-17 22:51   ` Andrew Burgess
2023-02-18  0:00     ` Tom Tromey

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=20230216-submit-go-unique-ptr-v1-0-73dd8065c6a6@tromey.com \
    --to=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).