Compare commits

...

64 Commits

Author SHA1 Message Date
Adhemerval Zanella
140bf80050 Sync proc_service definition with GLIBC
GLIBC BZ#20311 [1] proc_service.h install patch also remove 'const'
attributes from ps_get_thread_area and comment #15 discuss why to remove
the const attribute (basically since it a callback with the struct
ps_prochandle owned by the client it should be able to modify it if
it the case).

On default build this is not the issue and current g++ does not trigger
any issue with this mismatch declaration.  However, on some bootstrap
build configuration where gdbserver is build with gcc instead this
triggers:

error: conflicting types for 'ps_get_thread_area'

This patch fixes it by syncing the declaration with GLIBC.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=20311

gdb/ChangeLog:

2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>

	* aarch64-linux-nat.c (ps_get_thread_area): Remove const from
	struct ps_prochandle.
	* amd64-linux-nat.c (ps_get_thread_area): Likewise.
	* arm-linux-nat.c (ps_get_thread_area): Likewise.
	* gdb_proc_service.h (ps_get_thread_area): Likewise.
	* i386-linux-nat.c (ps_get_thread_area): Likewise.
	* m68klinux-nat.c (ps_get_thread_area): Likewise.
	* mips-linux-nat.c (ps_get_thread_area): Likewise.
	* nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
	* nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
	* xtensa-linux-nat.c (ps_get_thread_area): Likewise.

gdb/gdbserver/ChangeLog:

2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>

	PR server/20491
	* gdb_proc_service.h (ps_get_thread_area): Remove const from struct
	ps_prochandle.
	* linux-aarch64-low.c (ps_get_thread_area): Likewise.
	* linux-arm-low.c (ps_get_thread_area): Likewise.
	* linux-crisv32-low.c (ps_get_thread_area): Likewise.
	* linux-m68k-low.c (ps_get_thread_area): Likewise.
	* linux-mips-low.c (ps_get_thread_area): Likewise.
	* linux-nios2-low.c (ps_get_thread_area): Likewise.
	* linux-tic6x-low.c (ps_get_thread_area): Likewise.
	* linux-x86-low.c (ps_get_thread_area): Likewise.
	* linux-xtensa-low.c (ps_get_thread_area): Likewise.
2016-08-25 08:55:27 +01:00
GDB Administrator
a24d79337a Automatic date update in version.in 2016-08-01 00:00:46 +00:00
GDB Administrator
3641b87bb3 Automatic date update in version.in 2016-07-31 00:00:37 +00:00
GDB Administrator
f45f23581d Automatic date update in version.in 2016-07-30 00:00:43 +00:00
GDB Administrator
d05b4da510 Automatic date update in version.in 2016-07-29 00:00:42 +00:00
GDB Administrator
39b3a9c03d Automatic date update in version.in 2016-07-28 00:00:48 +00:00
GDB Administrator
7bba4eda9b Automatic date update in version.in 2016-07-27 00:00:40 +00:00
GDB Administrator
a6a337aa5d Automatic date update in version.in 2016-07-26 00:00:45 +00:00
GDB Administrator
0df4861916 Automatic date update in version.in 2016-07-25 00:00:50 +00:00
GDB Administrator
fea9c4e99f Automatic date update in version.in 2016-07-24 00:00:43 +00:00
GDB Administrator
0450cb4c12 Automatic date update in version.in 2016-07-23 00:00:44 +00:00
GDB Administrator
a5b36d81f4 Automatic date update in version.in 2016-07-22 00:00:43 +00:00
GDB Administrator
08c323e0aa Automatic date update in version.in 2016-07-21 00:00:46 +00:00
GDB Administrator
ae3b10d332 Automatic date update in version.in 2016-07-20 00:00:42 +00:00
GDB Administrator
3ff1532648 Automatic date update in version.in 2016-07-19 00:00:49 +00:00
GDB Administrator
c89c600e54 Automatic date update in version.in 2016-07-18 00:00:41 +00:00
GDB Administrator
8918391142 Automatic date update in version.in 2016-07-17 00:01:07 +00:00
GDB Administrator
f5d297795e Automatic date update in version.in 2016-07-16 00:00:40 +00:00
GDB Administrator
755d1c64f1 Automatic date update in version.in 2016-07-15 00:00:43 +00:00
GDB Administrator
cf1f0237da Automatic date update in version.in 2016-07-14 00:00:46 +00:00
GDB Administrator
41c26f2357 Automatic date update in version.in 2016-07-13 00:00:44 +00:00
GDB Administrator
3ac8affdb2 Automatic date update in version.in 2016-07-12 00:00:38 +00:00
GDB Administrator
5c22e1653b Automatic date update in version.in 2016-07-11 00:00:47 +00:00
GDB Administrator
5573899330 Automatic date update in version.in 2016-07-10 00:00:45 +00:00
GDB Administrator
06bdb21b58 Automatic date update in version.in 2016-07-09 00:00:39 +00:00
GDB Administrator
a4a48b0202 Automatic date update in version.in 2016-07-08 00:00:40 +00:00
GDB Administrator
b3b745979a Automatic date update in version.in 2016-07-07 00:00:44 +00:00
GDB Administrator
685513db7e Automatic date update in version.in 2016-07-06 00:00:42 +00:00
GDB Administrator
1675c7b119 Automatic date update in version.in 2016-07-05 00:00:46 +00:00
GDB Administrator
72ac5d4872 Automatic date update in version.in 2016-07-04 00:00:47 +00:00
GDB Administrator
1212a99999 Automatic date update in version.in 2016-07-03 00:00:47 +00:00
GDB Administrator
114aba2a1b Automatic date update in version.in 2016-07-02 00:00:48 +00:00
GDB Administrator
ac89e2b449 Automatic date update in version.in 2016-07-01 00:00:40 +00:00
GDB Administrator
c162d40365 Automatic date update in version.in 2016-06-30 00:00:39 +00:00
GDB Administrator
a883f555dd Automatic date update in version.in 2016-06-29 00:00:50 +00:00
GDB Administrator
8734056eb3 Automatic date update in version.in 2016-06-28 00:00:39 +00:00
GDB Administrator
e4c56047d1 Automatic date update in version.in 2016-06-27 00:00:41 +00:00
GDB Administrator
93251b2582 Automatic date update in version.in 2016-06-26 00:00:42 +00:00
GDB Administrator
5f6f783569 Automatic date update in version.in 2016-06-25 00:00:43 +00:00
GDB Administrator
b75502d688 Automatic date update in version.in 2016-06-24 00:00:31 +00:00
GDB Administrator
94c00c89b8 Automatic date update in version.in 2016-06-23 00:00:43 +00:00
GDB Administrator
9efcc30df2 Automatic date update in version.in 2016-06-22 00:00:35 +00:00
GDB Administrator
80ac4f860e Automatic date update in version.in 2016-06-21 00:00:41 +00:00
GDB Administrator
40a096b712 Automatic date update in version.in 2016-06-20 00:00:46 +00:00
GDB Administrator
f78dabd46d Automatic date update in version.in 2016-06-19 00:00:43 +00:00
GDB Administrator
92daecde7b Automatic date update in version.in 2016-06-18 00:00:42 +00:00
GDB Administrator
3d46859944 Automatic date update in version.in 2016-06-17 00:00:44 +00:00
GDB Administrator
cde9626de3 Automatic date update in version.in 2016-06-16 00:00:47 +00:00
GDB Administrator
c0dcd9b17d Automatic date update in version.in 2016-06-15 00:00:40 +00:00
GDB Administrator
9a6eed2b8a Automatic date update in version.in 2016-06-14 00:00:41 +00:00
GDB Administrator
53772f1187 Automatic date update in version.in 2016-06-13 00:00:43 +00:00
GDB Administrator
977b73d46b Automatic date update in version.in 2016-06-12 00:00:36 +00:00
GDB Administrator
1384e9fbca Automatic date update in version.in 2016-06-11 00:00:36 +00:00
GDB Administrator
88a50af29c Automatic date update in version.in 2016-06-10 00:00:41 +00:00
GDB Administrator
ac66deee69 Automatic date update in version.in 2016-06-09 00:00:37 +00:00
GDB Administrator
c6546914c8 Automatic date update in version.in 2016-06-08 00:00:39 +00:00
GDB Administrator
e5b1e1ad43 Automatic date update in version.in 2016-06-07 00:00:36 +00:00
GDB Administrator
8477a10c46 Automatic date update in version.in 2016-06-06 00:00:42 +00:00
GDB Administrator
8e6238ad28 Automatic date update in version.in 2016-06-05 00:00:48 +00:00
GDB Administrator
345aa62eb8 Automatic date update in version.in 2016-06-04 00:00:37 +00:00
GDB Administrator
4ae84c7de1 Automatic date update in version.in 2016-06-03 00:00:42 +00:00
GDB Administrator
bd343abed5 Automatic date update in version.in 2016-06-02 00:00:41 +00:00
Joel Brobecker
d03dfbf669 Bump GDB version number to 7.11.1.DATE-git.
gdb/ChangeLog:

	* version.in: Set GDB version number to 7.11.1.DATE-git.
2016-05-31 17:53:47 -07:00
Joel Brobecker
afc7295f99 Document the GDB 7.11.1 release in gdb/ChangeLog
gdb/ChangeLog:

	GDB 7.11.1 released.
2016-05-31 17:49:43 -07:00
24 changed files with 59 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
#define BFD_VERSION_DATE 20160601
#define BFD_VERSION_DATE 20160801
#define BFD_VERSION @bfd_version@
#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@
#define REPORT_BUGS_TO @report_bugs_to@

View File

@@ -1,3 +1,25 @@
2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* aarch64-linux-nat.c (ps_get_thread_area): Remove const from
struct ps_prochandle.
* amd64-linux-nat.c (ps_get_thread_area): Likewise.
* arm-linux-nat.c (ps_get_thread_area): Likewise.
* gdb_proc_service.h (ps_get_thread_area): Likewise.
* i386-linux-nat.c (ps_get_thread_area): Likewise.
* m68klinux-nat.c (ps_get_thread_area): Likewise.
* mips-linux-nat.c (ps_get_thread_area): Likewise.
* nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
* nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
* xtensa-linux-nat.c (ps_get_thread_area): Likewise.
2016-06-01 Joel Brobecker <brobecker@adacore.com>
* version.in: Set GDB version number to 7.11.1.DATE-git.
2016-06-01 Joel Brobecker <brobecker@adacore.com>
GDB 7.11.1 released.
2016-06-01 Joel Brobecker <brobecker@adacore.com>
* version.in: Set GDB version number to 7.11.1.

View File

@@ -457,7 +457,7 @@ aarch64_linux_new_fork (struct lwp_info *parent, pid_t child_pid)
storage (or its descriptor). */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
int is_64bit_p

View File

@@ -245,7 +245,7 @@ amd64_linux_store_inferior_registers (struct target_ops *ops,
a request for a thread's local storage address. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (gdbarch_bfd_arch_info (target_gdbarch ())->bits_per_word == 32)

View File

@@ -477,7 +477,7 @@ supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp)
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -124,7 +124,7 @@ extern pid_t ps_getpid (struct ps_prochandle *);
/* Fetch the special per-thread address associated with the given LWP.
This call is only used on a few platforms (most use a normal register).
The meaning of the `int' parameter is machine-dependent. */
extern ps_err_e ps_get_thread_area (const struct ps_prochandle *,
extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
lwpid_t, int, psaddr_t *);

View File

@@ -1,3 +1,18 @@
2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
PR server/20491
* gdb_proc_service.h (ps_get_thread_area): Remove const from struct
ps_prochandle.
* linux-aarch64-low.c (ps_get_thread_area): Likewise.
* linux-arm-low.c (ps_get_thread_area): Likewise.
* linux-crisv32-low.c (ps_get_thread_area): Likewise.
* linux-m68k-low.c (ps_get_thread_area): Likewise.
* linux-mips-low.c (ps_get_thread_area): Likewise.
* linux-nios2-low.c (ps_get_thread_area): Likewise.
* linux-tic6x-low.c (ps_get_thread_area): Likewise.
* linux-x86-low.c (ps_get_thread_area): Likewise.
* linux-xtensa-low.c (ps_get_thread_area): Likewise.
2016-04-15 Pedro Alves <palves@redhat.com>
* linux-low.c (check_stopped_by_breakpoint): Rename to ...

View File

@@ -107,7 +107,7 @@ extern pid_t ps_getpid (struct ps_prochandle *);
/* Fetch the special per-thread address associated with the given LWP.
This call is only used on a few platforms (most use a normal register).
The meaning of the `int' parameter is machine-dependent. */
extern ps_err_e ps_get_thread_area (const struct ps_prochandle *,
extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
lwpid_t, int, psaddr_t *);

View File

@@ -421,7 +421,7 @@ aarch64_stopped_by_watchpoint (void)
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
return aarch64_ps_get_thread_area (ph, lwpid, idx, base,

View File

@@ -269,7 +269,7 @@ get_next_pcs_read_memory_unsigned_integer (CORE_ADDR memaddr,
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -309,7 +309,7 @@ cris_stopped_data_address (void)
}
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -152,7 +152,7 @@ m68k_breakpoint_at (CORE_ADDR pc)
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -637,7 +637,7 @@ mips_stopped_data_address (void)
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -145,7 +145,7 @@ nios2_breakpoint_at (CORE_ADDR where)
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -274,7 +274,7 @@ tic6x_breakpoint_at (CORE_ADDR where)
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -236,7 +236,7 @@ is_64bit_tdesc (void)
/* Called by libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
#ifdef __x86_64__

View File

@@ -177,7 +177,7 @@ xtensa_breakpoint_at (CORE_ADDR where)
/* Called by libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
xtensa_elf_gregset_t regs;

View File

@@ -603,7 +603,7 @@ i386_linux_store_inferior_registers (struct target_ops *ops,
storage (or its descriptor). */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
unsigned int base_addr;

View File

@@ -508,7 +508,7 @@ m68k_linux_store_inferior_registers (struct target_ops *ops,
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) < 0)

View File

@@ -152,7 +152,7 @@ mips64_linux_register_addr (struct gdbarch *gdbarch, int regno, int store)
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)

View File

@@ -205,7 +205,7 @@ aarch64_siginfo_from_compat_siginfo (siginfo_t *to, compat_siginfo_t *from)
storage (or its descriptor). */
ps_err_e
aarch64_ps_get_thread_area (const struct ps_prochandle *ph,
aarch64_ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base,
int is_64bit_p)
{

View File

@@ -122,7 +122,7 @@ void aarch64_linux_prepare_to_resume (struct lwp_info *lwp);
void aarch64_linux_new_thread (struct lwp_info *lwp);
ps_err_e aarch64_ps_get_thread_area (const struct ps_prochandle *ph,
ps_err_e aarch64_ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base,
int is_64bit_p);

View File

@@ -1 +1 @@
7.11.1
7.11.1.DATE-git

View File

@@ -286,7 +286,7 @@ xtensa_linux_store_inferior_registers (struct target_ops *ops,
/* Called by libthread_db. */
ps_err_e
ps_get_thread_area (const struct ps_prochandle *ph,
ps_get_thread_area (struct ps_prochandle *ph,
lwpid_t lwpid, int idx, void **base)
{
xtensa_elf_gregset_t regs;