]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: improve output format for .gcc_except_table
authorMartin Liška <m.liska@foxlink.cz>
Tue, 9 Dec 2025 08:21:01 +0000 (09:21 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 9 Dec 2025 11:04:49 +0000 (12:04 +0100)
commitcb0d911e7c14004a9d82d95b285aeeb33bbf8269
tree485a1b4f6d03a46fb6c690f21ba6ed9004673de1
parente166014caa2bfdabce58526e5d8cce2a51a29d1f
readelf: improve output format for .gcc_except_table

Before the change:
```
 Call site table: [   0] Call site start:   0x10
        Call site length:  12
        Landing pad:       0x2a
        Action:            3
 [   1] Call site start:   0x1c
        Call site length:  123
        Landing pad:       0
        Action:            0

 Action table: [   0] ar_filter:   1
        ar_disp:     0
 [   1] ar_filter:   2
        ar_disp:    -3    -> [   0]
```

After:
```
 Call site table:
 [   0] Call site start:   0x10
        Call site length:  12
        Landing pad:       0x2a
        Action:            3
 [   1] Call site start:   0x1c
        Call site length:  123
        Landing pad:       0
        Action:            0

 Action table:
 [   0] ar_filter:   1
        ar_disp:     0
 [   1] ar_filter:   2
        ar_disp:    -3    -> [   0]
```

ChangeLog:

* src/readelf.c (print_debug_exception_table): Add newlines.

Signed-off-by: Martin Liska <martin.liska@hey.com>
src/readelf.c