Skip to content

Instantly share code, notes, and snippets.

@ottob
Last active January 3, 2016 02:49
Show Gist options
  • Save ottob/8397804 to your computer and use it in GitHub Desktop.
Save ottob/8397804 to your computer and use it in GitHub Desktop.
golang support for gdb
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index c92b530..acb1c6b 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -197,6 +197,9 @@ static const mach_o_section_name_xlat dwarf_section_names_xlat[] =
{ ".debug_macro", "__debug_macro",
SEC_DEBUGGING, BFD_MACH_O_S_REGULAR,
BFD_MACH_O_S_ATTR_DEBUG, 0},
+ { ".debug_gdb_scripts", "__debug_gdb_scri",
+ SEC_DEBUGGING, BFD_MACH_O_S_REGULAR,
+ BFD_MACH_O_S_ATTR_DEBUG, 0},
{ NULL, NULL, 0, 0, 0, 0}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment