diff --git a/README b/README-GDB similarity index 100% rename from README rename to README-GDB diff --git a/README.md b/README.md new file mode 100644 index 0000000..65bf0f3 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# gdb-msvc + +gdb-msvc is a series of patches for GDB (and bfd) for easier debugging of Microsoft Visual C++ (MSVC) binaries. + +## Main features + +The main features in this patchset are: + +* MSVC demangling support (using [LLVM](https://llvm.org/)) +* PDB debug symbol loading (using [radare2](https://github.com/radareorg/radare2)'s libr) + +(Note: we can't currently use LLVM for PDB loading as LLVM doesn't yet expose its PDB functions as a C API and bfd is written in C, not C++.) + +## Building + +* `mkdir build && cd build` +* `../configure --target=i686-w64-mingw32 ` +* `make` (and `make install`) + +Packages: + +* Arch Linux: [gdb-msvc-git](https://aur.archlinux.org/packages/gdb-msvc-git/) (AUR) + +## License + +Most of the code is available under the terms of the [GNU GPLv3 license](/gdb/COPYING). See [the original README](/README-GDB) and license notices in source files for details. + +By contributing you agree to make your code available under the same license. diff --git a/bfd/pdb.c b/bfd/pdb.c index 39fa3ac..fc756ef 100644 --- a/bfd/pdb.c +++ b/bfd/pdb.c @@ -1,5 +1,9 @@ /* PDB support for BFD. */ +/* Includes code from radare2: + radare - LGPL - Copyright 2014 - inisider + (https://github.com/radareorg/radare2) */ + #include "pdb.h" /* Called when the BFD is being closed to do any necessary cleanup. */