From f2948209c0292d836ade4dda222c1ffe4aa9abe4 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Wed, 19 Sep 2018 10:28:43 +0200 Subject: [PATCH] GDB: Don't abort if the address size is 3 bytes. * gdb/dwarf2-frame.c (encoding_for_size): Deal with the case where size == 3. --- gdb/dwarf2-frame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 55ab081bff..dfae2aaf97 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -1527,6 +1527,7 @@ encoding_for_size (unsigned int size) { case 2: return DW_EH_PE_udata2; + case 3: case 4: return DW_EH_PE_udata4; case 8: -- 2.11.0