Also mark ELF solib trampoline minimal symbols special
authorMaciej W. Rozycki <macro@codesourcery.com>
Fri, 3 Oct 2014 16:38:39 +0000 (17:38 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Fri, 3 Oct 2014 16:38:39 +0000 (17:38 +0100)
commit9b807e7bbbc55168e91c262c98fd09397482f9c9
treeeed9fe44490f6673bbadb3174051ba97e7e686fb
parent0d5ed1535229b7069757e04766f70a02fa60821c
Also mark ELF solib trampoline minimal symbols special

In installing minimal symbols for ELF shared library trampolines
we "forget" to make individual symbols special where required.  This
leads to problems on the MIPS target using microMIPS SVR4 lazy stubs.
Lacking the special annotation these stubs are treated as standard
MIPS code and this makes GDB insert the wrong software breakpoint
instruction, breaking e.g. single-stepping through these stubs.  This
is not a very frequent scenario as microMIPS SVR4 lazy stubs are
typically only used in shared libraries with the main executable
using PLT, handled elsewhere.  Still it triggers e.g. when a software
watchpoint has been installed.  The symptom is SIGILL or the program
going astray, depending on the endianness.  Disassembly of these stubs
is also wrong.

* elfread.c (elf_symtab_read): Also mark solib trampoline minimal
symbols special.
gdb/ChangeLog
gdb/elfread.c
This page took 0.041771 seconds and 4 git commands to generate.