This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question, re: gdb.base/label.exp


On Thu, 24 Feb 2011 21:09:39 +0100, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> 
> Jan> The question is if we say this GCC is broken (and XFAIL it or move it to
> Jan> gdb.dwarf2/) or whether GDB should use SYMBOL_VALUE_ADDRESS.
> 
> Jan> I am for the latter, DWARF talks for DW_TAG_label about
> Jan> DW_AT_low_pc and not about DW_AT_decl_line.
> 
> Yes, I also think that makes sense.

Just it will not work on reload of the executable changed underneath where PCs
change as EXPLICIT_PC needs to be in charge.

But it already does not work now for `run':

echo 'main(){l:;}'|gcc -g -x c -;../gdb -nx ./a.out
[...]
(gdb) start
[...]
(gdb) b l
[...]
(gdb) cont
Continuing.
Program exited with code 070.
(gdb) run
Starting program: .../a.out 
Error in re-setting breakpoint 2: Function "l" not defined.

symtab_and_line->symtab is too general, there should be symtab_and_line->block.


Regards,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]