• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gdb/7.10.1/0006-Sync-proc_service-definition-with-GLIBC.patch
Thomas PetazzoniThomas Petazzoni committed ed5996ffbfb05 Apr 2018
Raw file
Source viewDiff to previous
@@ -778,7 +778,7 @@ supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp)
 
1
From ccc18e0b2dc77a6619df31fd4fadfb3a37401616 Mon Sep 17 00:00:00 2001
2
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
3
Date: Sun, 26 Mar 2017 23:06:45 +0200
4
Subject: [PATCH] Sync proc_service definition with GLIBC
5
​
6
GLIBC BZ#20311 [1] proc_service.h install patch also remove 'const'
7
attributes from ps_get_thread_area and comment #15 discuss why to remove
8
the const attribute (basically since it a callback with the struct
9
ps_prochandle owned by the client it should be able to modify it if
10
it the case).
11
​
12
On default build this is not the issue and current g++ does not trigger
13
any issue with this mismatch declaration.  However, on some bootstrap
14
build configuration where gdbserver is build with gcc instead this
15
triggers:
16
​
17
error: conflicting types for 'ps_get_thread_area'
18
​
19
This patch fixes it by syncing the declaration with GLIBC.
20
​
21
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=20311
22
​
23
gdb/ChangeLog:
24
​
25
2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26
​
27
    * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
28
    struct ps_prochandle.
29
    * amd64-linux-nat.c (ps_get_thread_area): Likewise.
30
    * arm-linux-nat.c (ps_get_thread_area): Likewise.
31
    * gdb_proc_service.h (ps_get_thread_area): Likewise.
32
    * i386-linux-nat.c (ps_get_thread_area): Likewise.
33
    * m68klinux-nat.c (ps_get_thread_area): Likewise.
34
    * mips-linux-nat.c (ps_get_thread_area): Likewise.
35
    * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
36
    * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
37
    * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
38
​
39
gdb/gdbserver/ChangeLog:
40
​
41
2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
42
​
43
    PR server/20491
44
    * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
45
    ps_prochandle.
46
    * linux-aarch64-low.c (ps_get_thread_area): Likewise.
47
    * linux-arm-low.c (ps_get_thread_area): Likewise.
48
    * linux-crisv32-low.c (ps_get_thread_area): Likewise.
49
    * linux-m68k-low.c (ps_get_thread_area): Likewise.
50
    * linux-mips-low.c (ps_get_thread_area): Likewise.
51
    * linux-nios2-low.c (ps_get_thread_area): Likewise.
52
    * linux-tic6x-low.c (ps_get_thread_area): Likewise.
53
    * linux-x86-low.c (ps_get_thread_area): Likewise.
54
    * linux-xtensa-low.c (ps_get_thread_area): Likewise.
55
​
56
(cherry picked from commit 140bf80050b34f0947b34dba93b830ea2bfc5040)
57
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
58
---
59
 gdb/aarch64-linux-nat.c           | 2 +-
60
 gdb/amd64-linux-nat.c             | 2 +-
61
 gdb/arm-linux-nat.c               | 2 +-
62
 gdb/gdb_proc_service.h            | 2 +-
63
 gdb/gdbserver/gdb_proc_service.h  | 2 +-
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.