[committed][gdb/testsuite] Add test-case gdb.dwarf2/break-inline-psymtab.exp

Tom de Vries tdevries@suse.de
Thu Apr 2 15:14:16 GMT 2020


On 02-04-2020 16:24, Pedro Alves wrote:
> On 3/18/20 1:48 PM, Tom de Vries wrote:
>> +set sources [list $srcfile $srcfile2]
>> +set opts {debug optimize=-O2}
>> +if { [prepare_for_testing "failed to prepare" ${testfile} $sources $opts] } {
>> +    return -1
>> +}
> 
> Is that -O2 needed to force inlining?
> 
> -O0 and __attribute__((always_inline)) would be better for that.
> 

Ack, thanks for noticing, fixed in commit below, committed.

- Tom


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdb-testsuite-Don-t-use-O2-for-inlining-in-break-inline-psymtab.exp.patch
Type: text/x-patch
Size: 1717 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20200402/d26ca246/attachment.bin>


More information about the Gdb-patches mailing list