diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-02-22 16:38:30 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-24 11:04:28 +0000 |
commit | e7dd0666bd464756cf72fb1bedf70482b95ec819 (patch) | |
tree | 14f05f3ffa14e6ca29ed614b5a0092f8724f24bb /meta/recipes-devtools/gdb/gdb/0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch | |
parent | eb6b28bfe173d00db54b7001d60a7039ba29a450 (diff) | |
download | poky-e7dd0666bd464756cf72fb1bedf70482b95ec819.tar.gz |
gdb: Upgrade to 13.1
Add patch to fix typo for build on musl
GDB 13.1 includes the following changes and enhancements:
* Support for the following new targets has been added in both
GDB and GDBserver:
** GNU/Linux/LoongArch (gdbserver) loongarch*-*-linux*
** GNU/Linux/CSKY (gdbserver) csky*-*linux*
* The Windows native target now supports target async.
* FreeBSD:
** Arm and AArch64: Support for Thread Local Storage (TLS) variables
** Hardware watchpoint support on AArch64 FreeBSD
* Floating-point support has now been added on LoongArch GNU/Linux.
* New commands:
** set print nibbles [on|off]
show print nibbles
This controls whether the 'print/t' command will display binary values
in groups of four bits, known as "nibbles". The default is 'off'.
** Various styling-related commands. See the gdb/NEWS file for more
details (see link at the bottom).
** Various maintenance commands. These are normally aimed at GDB
experts or developers. See the gdb/NEWS file for more details
(see link at the bottom).
* Python API improvements:
** New Python API for instruction disassembly.
The new attribute 'locations' of gdb.Breakpoint returns a list of
gdb.BreakpointLocation objects specifying the locations where the
breakpoint is inserted into the debuggee.
** New Python type gdb.BreakpointLocation.
** New function gdb.format_address(ADDRESS, PROGSPACE, ARCHITECTURE)
that formats ADDRESS as 'address <symbol+offset>'
** New function gdb.current_language that returns the name of the
current language. Unlike gdb.parameter('language'), this will
never return 'auto'.
** New function gdb.print_options that returns a dictionary of the
prevailing print options, in the form accepted by gdb.Value.format_string.
** New method gdb.Frame.language that returns the name of the
frame's language.
** gdb.Value.format_string now uses the format provided by 'print',
if it is called during a 'print' or other similar operation.
** gdb.Value.format_string now accepts the 'summary' keyword. This
can be used to request a shorter representation of a value, the
way that 'set print frame-arguments scalars' does.
** The gdb.register_window_type method now restricts the set of
acceptable window names. The first character of a window's name
must start with a character in the set [a-zA-Z], every subsequent
character of a window's name must be in the set [-_.a-zA-Z0-9].
* GDB/MI changes:
** MI version 1 is deprecated, and will be removed in GDB 14.
** The async record stating the stopped reason 'breakpoint-hit' now
contains an optional field locno.
* Miscellaneous improvements:
** gdb now supports zstd compressed debug sections (ELFCOMPRESS_ZSTD) for ELF.
** New convenience variable $_inferior_thread_count contains the number
of live threads in the current inferior.
** New convenience variables $_hit_bpnum and $_hit_locno, set to
the breakpoint number and the breakpoint location number of
the breakpoint last hit.
** The "info breakpoints" now displays enabled breakpoint locations
of disabled breakpoints as in the "y-" state.
** The format of 'disassemble /r' and 'record instruction-history /r'
has changed to match the layout of GNU objdump when disassembling.
A new format "/b" has been introduce to provide the old behavior
of "/r".
** The TUI no longer styles the source and assembly code highlighted
by the current position indicator by default. You can however
re-enable styling using the new "set style tui-current-position"
command.
** It is now possible to use the "document" command to document
user-defined commands.
** Support for memory tag data for AArch64 MTE.
* Support Removal notices:
** DBX mode has been removed.
** Support for building against Python version 2 has been removed.
It is now only possible to build GDB against Python 3.
** Support for the following commands has been removed:
set debug aix-solib on|off
show debug aix-solib
set debug solib-frv on|off
show debug solib-frv
Use the "set/show debug solib" commands instead.
For a complete list and more details on each item, please see the gdb/NEWS
file, available at [1]:
[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-13.1-release
(From OE-Core rev: 87a8c2af735e06338463414a2cbcd3224b9ea112)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb/0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch b/meta/recipes-devtools/gdb/gdb/0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch index 3e29327613..566b910648 100644 --- a/meta/recipes-devtools/gdb/gdb/0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch +++ b/meta/recipes-devtools/gdb/gdb/0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch | |||
@@ -1,11 +1,11 @@ | |||
1 | From 48906e1038e469b429aa35d0f967730a929c3880 Mon Sep 17 00:00:00 2001 | 1 | From e649db1664af981cc87f966aef6c5365ae234547 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 15 Jan 2023 00:16:25 -0800 | 3 | Date: Sun, 15 Jan 2023 00:16:25 -0800 |
4 | Subject: [PATCH 8/8] Define alignof using _Alignof when using C11 or newer | 4 | Subject: [PATCH] Define alignof using _Alignof when using C11 or newer |
5 | 5 | ||
6 | WG14 N2350 made very clear that it is an UB having type definitions | 6 | WG14 N2350 made very clear that it is an UB having type definitions |
7 | within "offsetof" [1]. This patch enhances the implementation of macro | 7 | within "offsetof" [1]. This patch enhances the implementation of macro |
8 | alignof_slot to use builtin "_Alignof" to avoid undefined behavior on | 8 | alignof to use builtin "_Alignof" to avoid undefined behavior on |
9 | when using std=c11 or newer | 9 | when using std=c11 or newer |
10 | 10 | ||
11 | clang 16+ has started to flag this [2] | 11 | clang 16+ has started to flag this [2] |
@@ -15,14 +15,10 @@ Fixes build when using -std >= gnu11 and using clang16+ | |||
15 | Older compilers gcc < 4.9 or clang < 8 has buggy _Alignof even though it | 15 | Older compilers gcc < 4.9 or clang < 8 has buggy _Alignof even though it |
16 | may support C11, exclude those compilers too | 16 | may support C11, exclude those compilers too |
17 | 17 | ||
18 | gnulib needs this fix and then it will be applied to downstream packages | ||
19 | like gdb [3] | ||
20 | |||
21 | [1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm | 18 | [1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm |
22 | [2] https://reviews.llvm.org/D133574 | 19 | [2] https://reviews.llvm.org/D133574 |
23 | [3] https://public-inbox.org/bug-gnulib/20230114232744.215167-1-raj.khem@gmail.com/T/#u | ||
24 | 20 | ||
25 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=2d404c7dd974cc65f894526f4a1b76bc1dcd8d82] | 21 | Upstream-Status: Pending |
26 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 22 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
27 | --- | 23 | --- |
28 | libiberty/sha1.c | 10 ++++++++++ | 24 | libiberty/sha1.c | 10 ++++++++++ |
@@ -50,6 +46,3 @@ index 504f06d3b9b..790ada82443 100644 | |||
50 | # define UNALIGNED_P(p) (((size_t) p) % alignof (sha1_uint32) != 0) | 46 | # define UNALIGNED_P(p) (((size_t) p) % alignof (sha1_uint32) != 0) |
51 | if (UNALIGNED_P (buffer)) | 47 | if (UNALIGNED_P (buffer)) |
52 | while (len > 64) | 48 | while (len > 64) |
53 | -- | ||
54 | 2.39.0 | ||
55 | |||