]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb, amd-dbgapi-target: split wave_coordinates::to_string
authorTankut Baris Aktemur <tankutbaris.aktemur@amd.com>
Mon, 6 Jul 2026 10:33:04 +0000 (05:33 -0500)
committerTankut Baris Aktemur <tankutbaris.aktemur@amd.com>
Mon, 6 Jul 2026 10:46:40 +0000 (05:46 -0500)
commit57f5450b760afbc0c0cdf70f602cf02a513123d3
tree828f0a23a90d05230340449c578395fa06af5f13
parent443989d2b0ea08fc85767c11be7515f3728a8023
gdb, amd-dbgapi-target: split wave_coordinates::to_string

wave_coordinates::to_string() produces a string in the following format:

  AMDGPU Wave a:q:d:w (x,y,z)/i

Split the method into smaller pieces:

  a:q:d:w   : hierarchy_str
  (x,y,z)   : workgroup_coord_str
  (x,y,z)/i : dispatch_pos_str

This is a refactoring to allow reusing pieces and also to let the code
document itself better.  Currently the reuse opportunity exists in the
downstream debugger.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
Approved-by: Lancelot Six <lancelot.six@amd.com> (amdgpu)
gdb/amd-dbgapi-target.c