Re: Getting rid of duplicate .debug_ranges

2012-01-23 Thread Mark Wielaard
On Fri, 2012-01-20 at 14:31 -0800, Cary Coutant wrote: > >> Is there a way to detect that basic blocks have the same range even > >> though they have different block numbers? Or am I not looking/thinking > >> about this issue correctly? > > I may be oversimplifying this, but it seems that > gen_in

Re: Getting rid of duplicate .debug_ranges

2012-01-20 Thread Cary Coutant
>> Is there a way to detect that basic blocks have the same range even >> though they have different block numbers? Or am I not looking/thinking >> about this issue correctly? I may be oversimplifying this, but it seems that gen_inlined_subroutine_die generates a DW_AT_ranges list, then calls decl

Re: Getting rid of duplicate .debug_ranges

2012-01-19 Thread Mark Wielaard
On Sun, 2012-01-15 at 19:42 +0100, Mark Wielaard wrote: > I noticed that when you generate dwarf for an inlined function it often > comes with duplicate range lists for both the DW_TAG_inlined_subroutine > and the child DW_TAG_lexical_block DIE. I filed a bug report for it with some additional sta