This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Avoid crash when calling warning too early
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Thu, 15 Nov 2018 16:15:57 -0700
- Subject: Re: [PATCH v2] Avoid crash when calling warning too early
- References: <20181031181820.24308-1-tom@tromey.com> <5993d96c-afe2-99b1-af8d-56173ea73e08@redhat.com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> On 10/31/2018 06:18 PM, Tom Tromey wrote:
>> +set save $INTERNAL_GDBFLAGS
>> +set INTERNAL_GDBFLAGS "-nw -nx -data-directory $tname"
>> +
>> +gdb_start
>> +
>> +# Make sure gdb started up.
>> +gdb_test "echo 23\\n" "23"
Pedro> I guess this could also check that the warning was emitted?
I didn't know how to do that.
Modify gdb_start maybe?
Tom