[PATCH] gdb: move lm_info to solib in dsbt_current_sos
Simon Marchi
simon.marchi@efficios.com
Thu May 16 15:33:24 GMT 2024
On 2024-05-15 15:28, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
>
> Simon> Commit 8971d2788e79 ("gdb: link so_list using intrusive_list")
> Simon> mistakenly removed the line that moves the lm_info unique pointer to
> Simon> sop-> lm_info, probably due to a bad conflict resolution. Restore that
> Simon> line.
>
> Seems reasonable to me.
>
> Approved-By: Tom Tromey <tom@tromey.com>
Thanks, will push.
> Simon> Unfortunately, this code is only used for TI C66, which is not widely
> Simon> tested (if used at all).
>
> I do wonder how much dead-in-practice code we're carting around.
Yeah it's always the same question. Support for c6x has been removed
from Linux in 2021:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a579fcfa8e49cc77ad59211bb18bc5004133e6a0
This means that after some time, tic6x-linux-tdep.c would become
obsolete, and solib-dsbt.c too.
As for the c6x architecture itself, I find some threads that are not too
old of people trying to debug their bare metal program with GDB (through
JTAG or emulation or otherwise), for instance:
https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/665959/ccs-debugging-c66-with-host-gdb
Simon
More information about the Gdb-patches
mailing list