vppinfra: Make program counter printing more portable 68/40268/2
authorTom Jones <thj@freebsd.org>
Fri, 26 Jan 2024 15:16:57 +0000 (15:16 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 13 Feb 2024 16:24:45 +0000 (16:24 +0000)
commit7d2978dab920b86b28f2f7f1c8823a4b28e68dd1
treedec0584ca7f8414a2ce1befc4c48e4be388f2cfc
parent249f0dcdf6d0f1656a1a5d4178c3315b8ea520c0
vppinfra: Make program counter printing more portable

Finding the program counter in the ucontext struct is platform and
architecture specific, place the Linux checks inside an #ifdef and add a
look up for the FreeBSD amd64 specific naming.

Type: improvement
Change-Id: I42fcef5f20227c23d84acee336e37c4870146bb4
Signed-off-by: Tom Jones <thj@freebsd.org>
src/vppinfra/unix-formats.c