Fix issues with multiple inferiors
authorLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 15 Jan 2020 02:14:13 +0000 (18:14 -0800)
committerLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 15 Jan 2020 06:24:57 +0000 (22:24 -0800)
commitf6044a4be7f6f04e96f145ba045608e75e1e852b
tree0f2021ff7e14c7565bb4144ec519bd84a53e388c
parentd16c467a501547e37b111f775396e28f8bf27c1e
Fix issues with multiple inferiors

Issue #1:
Thread 3 "bit_extract_kernel" hit Breakpoint 1, bit_extract_kernel ()
(gdb) add-inferior
[New inferior 2]
Added inferior 2 on connection 1 (native)
(gdb) info threads
amd_dbgapi_wave_list failed (rc=-14)

An inferior may not have yet been attached when update_thread_list is
called. The inferior should be skipped if its process_id is null.

Issue #2:
Thread 3 "bit_extract_kernel" hit Breakpoint 1, bit_extract_kernel ()
(gdb) add-inferior -exec /bin/ls
[New inferior 2]
Added inferior 2 on connection 1 (native)
Reading symbols from /bin/ls...
(No debugging symbols found in /bin/ls)
(gdb) inferior 2
[Switching to inferior 2 [<null>] (/bin/ls)]
(gdb) run
Starting program: /bin/ls
Warning:
Cannot insert breakpoint -8.
Cannot access memory at address 0x7fffedaa265b

Internal ROCgdbapi breakpoints should not be re-evaluated for new
inferiors. They are inserted for a specific process_id, and removed
when the process is detached.

gdb/ChangeLog:
        * gdb/rocm-tdep.c: Skip inferiors without process_ids. Override
        breakpoint_ops::re_set for rocm internal breakpoints to
        disable re-evaluation.

Change-Id: Icb0be93b74aae1cf80c7f1657cf6d01e16eb8efb
gdb/rocm-tdep.c
This page took 0.025434 seconds and 4 git commands to generate.