From: Tom Tromey <tom@tromey.com>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb] Fix segv in "maint print symbols" for ada exec
Date: Tue, 10 Mar 2020 10:40:17 -0600 [thread overview]
Message-ID: <87o8t4rwni.fsf@tromey.com> (raw)
In-Reply-To: <20200310140825.GA20400@delia> (Tom de Vries's message of "Tue, 10 Mar 2020 15:08:26 +0100")
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> What happens is that dwarf2_evaluate_property gets called and sets the local
Tom> frame variable to the current frame, which happens to be NULL. Subsequently
Tom> the PROP_LOCLIST handling code is executed, where get_frame_address_in_block
Tom> gets called with argument NULL, and the segv is triggered.
Tom> Fix this by handling a NULL frame in the PROP_LOCLIST handling code in
Tom> dwarf2_evaluate_property.
Thank you for doing this. This seems reasonable.
I had one request...
Tom> clean_restart ${testfile}
Tom> +gdb_test_no_output "maint expand-symtabs"
Tom> +gdb_test "set logging redirect on"
Tom> +gdb_test "set logging on"
Tom> +gdb_test "maint print symbols"
Tom> +gdb_test "set logging off"
Tom> +file delete gdb.txt
I think this code should set the logging file to something in the
output directory. This way if other tests do the same thing, there
won't be a possibility of a clash.
After this, there's no real need to delete the file; though it's fine if
you still want to do that.
Tom
prev parent reply other threads:[~2020-03-10 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-10 14:08 Tom de Vries
2020-03-10 16:40 ` Tom Tromey [this message]
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=87o8t4rwni.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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