Skip to content

Commit

Permalink
Fix inline GDB pretty printer on Android toolchains using the
Browse files Browse the repository at this point in the history
technique from ned14/outcome#308
  • Loading branch information
ned14 committed Nov 19, 2024
1 parent 38c6187 commit d414da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/status-code/status_code.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,13 +716,13 @@ namespace traits
SYSTEM_ERROR2_NAMESPACE_END

#ifndef SYSTEM_ERROR2_DISABLE_INLINE_GDB_PRETTY_PRINTERS
#if defined(__ELF__) && !defined(__ANDROID__)
#if defined(__ELF__)
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Woverlength-strings"
#endif
__asm__(
".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n"
".pushsection \".debug_gdb_scripts\", \"MS\",%progbits,1\n"
".ascii \"\\4gdb.inlined-script.SYSTEM_ERROR2_INLINE_GDB_PRETTY_PRINTERS_H\\n\"\n"
".ascii \"import gdb.printing\\n\"\n"
".ascii \"import gdb\\n\"\n"
Expand Down

0 comments on commit d414da8

Please sign in to comment.