Always define Elf32_auxv_t and Elf64_auxv_t instead of include elf.h

Always define two structs Elf32_auxv_t and Elf64_auxv_t even though
they are recently defined in elf.h.  The problem is that elf.h
include sys/exec_elf.h which has inconsistent definition of Elf64_Half:
32-bit vs. 16-bit in linux/elf.h.  Recent elf.h update in bionic replaces
kernel's elf dependencies with NetBSD's a6a3ac59243d8c95c94c3069e9332051f785c05f,
but it doesn't define elf_gregset_t and ELF_NGREG needed here.

Change-Id: I25fe816dd4232f28a81335c3084b223e54c5f3f2
Fix ELF support when gdb build is configured with plugins

Replace hardcoded -ldl with lt_cv_dlopen_libs which is set to -ldl only when
dlfcn.h is found.
To be upstreamed.

Change-Id: I569ebe134f07a882b87a591c951419eb062f08a3
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Upgrade Python to 2.7.4, search for standalone toolchain layout.
Initial checkin of gdb 7.6.

Change-Id: I8b195e72f1d8fac2f5a9a28247950b93b5ac7495
[7.6] Ignore first entry in linker map for dynamic program.

Upstream bug filed at http://sourceware.org/bugzilla/show_bug.cgi?id=15507

Change-Id: I6f0171cde6c162601800c1b5fdde2af93dd6c15e
[7.6] Define Elf32_auxv_t and Elf64_auxv_t for Android.

Change-Id: I97aa2eb06826e7789ffd1326c21da804c15d1bc9
Use Python 2.7.5
[7.6] Fix data structure size mismatch for instruction recording.

Upstream bug filed at
http://sourceware.org/bugzilla/show_bug.cgi?id=15518

With this patch reverse debugging is working in ARM mode.

Change-Id: I488262b50eef85e0c2447a3a31551ea95a0409d9
Merge "[7.6] Fix data structure size mismatch for instruction recording."
Revert "[7.6] Ignore first entry in linker map for dynamic program."

This reverts commit b995e1b68c93c143dd0eeb8bf1c7bf79dbb2e076.

A better fix from upstream will be backported:
http://sourceware.org/ml/gdb-cvs/2013-06/msg00065.html
Merge "Revert "[7.6] Ignore first entry in linker map for dynamic program.""
[7.6] Backport gdbserver fix from mainline.

Fix compatibility with Android Bionic.
* linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
it is not empty.

http://sourceware.org/ml/gdb-cvs/2013-06/msg00065.html

Change-Id: I192ccc36ec0567c72613917681b510a89dce7be8
[7.6] Fix type mismatch.

gdb/gdb-7.6/gdb/gdbserver/thread-db.c: In function 'thread_db_load_search':
gdb/gdb-7.6/gdb/gdbserver/thread-db.c:561:30: error:
assignment from incompatible pointer type [-Werror]

Change-Id: I4471b99aa2b6d2804bcac3e198c0a972d36d75a3
Merge "[7.6] Fix type mismatch."
[7.6] Apply gdbserver patch to work under the NDK environment.

Change-Id: I070b8930640d7b1b8a72489b074181d7ccf810bb
Fix MIPS gdbserver build

Since 3955f0de839d4bc65b4ff0605d3033f6f0168ece which correctly places
$STDLIBS after conftest.c, gdb/gdbserver/configure can discover
pread64() (not exposed in NDK header) in MIPS's libc.a and define
HAVE_PREAD64.

Add prototype for pread64() otherwise -Werror may fail compilation

Change-Id: I47f475d25daa67ebfd9789983e1698d51f09aaf4
Fix MIPS gdbserver to look for DT_MIPS_RLD_MAP instead of DT_DEBUG

Backport of fixes

    2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>

	* linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.

    2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>

	* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
	if the platform doesn't know about it.

See http://www.sourceware.org/ml/gdb-patches/2012-04/msg00055.html

Change-Id: I83fa3e0d60095bac4cbd9c784a846f0189008474
Fix GDB crash when library list is empty

Change-Id: I5cabe9b9db6b53f25aa2471a46ff22a9204909bd
Merge "Fix MIPS gdbserver to look for DT_MIPS_RLD_MAP instead of DT_DEBUG"
Merge "Fix GDB crash when library list is empty"