Files
binutils-gdb/gdbsupport
Tom de Vries 5a74a1a528 [gdbsupport] Workaround data race in get_print_cell
Data race between:
...
  Write of size 4 at 0x00000324eb60 by thread T2:
    #0 get_print_cell() gdbsupport/print-utils.cc:35 (gdb+0x1c032c7)
    #1 hex_string(long) gdbsupport/print-utils.cc:230 (gdb+0x1c03bc2)
    #2 sect_offset_str gdb/gdbtypes.h:82 (gdb+0x81b333)
    #3 process_queue_item gdb/dwarf2/read.c:7581 (gdb+0x831645)
...
and:
...
  Previous read of size 4 at 0x00000324eb60 by thread T3:
    #0 get_print_cell() gdbsupport/print-utils.cc:35 (gdb+0x1c032b4)
    #1 hex_string(long) gdbsupport/print-utils.cc:230 (gdb+0x1c03bc2)
    #2 sect_offset_str gdb/gdbtypes.h:82 (gdb+0x81b333)
    #3 process_queue_item gdb/dwarf2/read.c:7581 (gdb+0x831645)
...

For now, just do a malloc in get_print_cell to work around the data race.
2022-07-21 15:06:40 +02:00
..
2022-01-18 10:14:42 -07:00
2022-03-03 13:06:50 -08:00
2022-01-18 10:14:43 -07:00
2022-07-21 15:06:39 +02:00

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.