~ubuntu-support-team/binutils/+git/binutils-gdb:users/roland/ar-qL

Last commit made on 2021-07-15
Get this branch:
git clone -b users/roland/ar-qL https://git.launchpad.net/~ubuntu-support-team/binutils/+git/binutils-gdb

Branch merges

Branch information

Name:
users/roland/ar-qL
Repository:
lp:~ubuntu-support-team/binutils/+git/binutils-gdb

Recent commits

684ad84... by Roland McGrath <email address hidden>

New L modifier for ar q operation to flatten archives.

binutils/
 * doc/binutils.texi (ar cmdline): Document L modifier for q operation.
 * NEWS: Mention that.
 * ar.c (flatten_archives): New variable.
 (usage): Describe L.
 (decode_options): Parse L.
 (replace_members): Use L.

e22be21... by Libor Bukata <email address hidden>

[gdb/procfs.c] Fix build failure in find_stop_signal

It fixes a regression caused by commit
1edb66d856c82c389edfd7610143236a68c76846 where thread_info::suspend was
made private.

The public thread_info API has to be used to get stop signal and avoid
build failures.

gdb/ChangeLog:

2021-07-14 Libor Bukata <email address hidden>

  * gdb/procfs.c (find_stop_signal): Use thread_info API.

Change-Id: I53bc57a05cd0eca5f28ef0726d6faeeb306e7904

600ac5b... by GDB Administrator <email address hidden>

Automatic date update in version.in

154b353... by "H.J. Lu" <email address hidden>

x86: Add int1 as one byte opcode 0xf1

Also change the x86 disassembler to disassemble 0xf1 as int1, instead of
icebp.

gas/

 PR gas/28088
 * testsuite/gas/i386/opcode.s: Add int1.
 * testsuite/gas/i386/x86-64-opcode.s: Add int1, int3 and int.
 * testsuite/gas/i386/opcode-intel.d: Updated.
 * testsuite/gas/i386/opcode-suffix.d: Likewise.
 * testsuite/gas/i386/opcode.d: Likewise.
 * testsuite/gas/i386/x86-64-opcode.d: Likewise.

opcodes/

 PR gas/28088
 * i386-dis.c (dis386): Replace icebp with int1.
 * i386-opc.tbl: Add int1.
 * i386-tbl.h: Regenerate.

9cce9fa... by Alan Modra

gas: default TC_VALIDATE_FIX_SUB to 0

gas/write.c provides a fallback TC_VALIDATE_FIX_SUB define that can be
a problem for some targets, the problem being that a non-zero
definition of TC_VALIDATE_FIX_SUB says that some uses of fx_subsy are
OK, in effect that the target will handle fx_subsy in md_apply_fix
and/or tc_gen_reloc. A lot of targets don't have the necessary
md_apply_fix and tc_gen_reloc support. So a safer default is to
disallow fx_subsy by default.

I've had a good look over target usage of fx_subsy, and think I've
caught all the cases where targets need TC_VALIDATE_FIX_SUB. Possible
failures would be limited to alpha, microblaze, ppc and s390 (the
targets that define UNDEFINED_DIFFERENCE_OK), or targets that generate
fixups with BFD_RELOC_GPREL32/16 and use a syntax explicitly showing
a difference expression.

 * write.c (TC_VALIDATE_FIX_SUB): Default to 0.
 * config/tc-hppa.h (TC_VALIDATE_FIX_SUB): Define.
 * config/tc-microblaze.h (TC_VALIDATE_FIX_SUB): Define.
 * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define for ECOFF.
 * config/tc-ppc.h (TC_VALIDATE_FIX_SUB): Don't define for ELF.
 Do define for XCOFF.

51d29b8... by =?utf-8?q?Cl=C3=A9ment_Chigot?= <email address hidden>

objdump: add DWARF support for AIX

DWARF sections have special names on AIX which need be handled
by objdump in order to correctly print them.
This patch also adds the correlation in bfd for future uses.

bfd/
 * libxcoff.h (struct xcoff_dwsect_name): Add DWARF name.
 * coff-rs6000.c (xcoff_dwsect_names): Update.
 * coffcode.h (sec_to_styp_flags): Likewise.
 (coff_new_section_hook): Likewise.
binutils/
 * dwarf.h (struct dwarf_section): Add XCOFF name.
 * dwarf.c (struct dwarf_section_display): Update.
 * objdump.c (load_debug_section): Add XCOFF name handler.
 (dump_dwarf_section): Likewise.
gas/
 * config/tc-ppc.c (ppc_change_debug_section): Update to
 match new name's field.

be36c6e... by Tom de Vries <email address hidden>

[gdb/testsuite] Fix gdb.base/gold-gdb-index.exp

When running test-case gdb.base/gold-gdb-index.exp on openSUSE Tumbleweed,
I run into:
...
FAIL: gdb.base/gold-gdb-index.exp: maint info symtabs
...

This is due to a dummy .gdb_index:
...
Contents of the .gdb_index section:

Version 7

CU table:

TU table:

Address table:

Symbol table:
...

The dummy .gdb_index is ignored when loading the symbols, and instead partial
symbols are used. Consequently, we get the same result as if we'd removed
-Wl,--gdb-index from the compilation.

Presumably, gold fails to generate a proper .gdb_index because it lacks
DWARF5 support.

Anyway, without a proper .gdb_index we can't test the gdb behaviour we're
trying to excercise. Fix this by detecting whether we actually used a
.gdb_index for symbol loading.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-07-14 Tom de Vries <email address hidden>

 * lib/gdb.exp (have_index): New proc.
 * gdb.base/gold-gdb-index.exp: Use have_index.

90d7916... by Tom de Vries <email address hidden>

[gdb/testsuite] Add missing skip_tui_tests

When building gdb with --disable-tui, we run into:
...
(gdb) frame apply all -- -^M
Undefined command: "-". Try "help".^M
(gdb) ERROR: Undefined command "frame apply all -- -".
UNRESOLVED: gdb.base/options.exp: test-frame-apply: frame apply all -- -
...

Fix this by detecting whether tui is supported, and skipping the tui-related
tests otherwise. Same in some gdb.tui test-cases.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-07-13 Tom de Vries <email address hidden>

 * gdb.base/options.exp: Skip tui-related tests when tui is not
 supported.
 * gdb.python/tui-window-disabled.exp: Same.
 * gdb.python/tui-window.exp: Same.

fac3b6a... by GDB Administrator <email address hidden>

Automatic date update in version.in

9e8dfa0... by Lancelot SIX <email address hidden>

Use /bin/sh as shebang in gdb/make-init-c

While testing the NixOS[1] packaging for gdb-11.0.90.tar.xz, IĀ got the
following error:

  [...]
  CXX aarch32-tdep.o
  CXX gdb.o
  GEN init.c
  /nix/store/26a78ync552m8j4sbjavhvkmnqir8c9y-bash-4.4-p23/bin/bash: ./make-init-c: /usr/bin/env: bad interpreter: No such file or directory
  make[2]: *** [Makefile:1866: stamp-init] Error 126
  make[2]: *** Waiting for unfinished jobs....
  make[2]: Leaving directory '/build/gdb-11.0.90/gdb'
  make[1]: *** [Makefile:9814: all-gdb] Error 2
  make[1]: Leaving directory '/build/gdb-11.0.90'
  make: *** [Makefile:903: all] Error 2
  builder for '/nix/store/xs8my3rrc3l4kdlbpx0azh6q0v0jxphr-gdb-gdb-11.0.90.drv' failed with exit code 2
  error: build of '/nix/store/xs8my3rrc3l4kdlbpx0azh6q0v0jxphr-gdb-gdb-11.0.90.drv' failed

In the nix build environment, /usr/bin/env is not present, only /bin/sh
is. This patch makes sure that gdb/make-init-c uses '/bin/sh' as
interpreter as this is the only one available on this platform.

I do not think this change will cause regressions on any other
configuration.

[1] https://nixos.org/

gdb/Changelog

 * make-init-c: Use /bin/sh as shebang.