# GDB for OS/2

This is the patched version of GDB v4.16 of emx v0.9d-fix04 to support binaries generated by kLIBC toolchains.

# History

* gdb v4.16-k1 (2026/06/01)
    * Added support of binaries generated by kLIBC toolchains

# How to build

1. Prepare EMX v0.9d-fix04 build environment
2. Add `-t` to `EMXOPT` env. var.
2. Set `SWITCHAR` to `-`
3. Set `MAKESTARTUP` to the fully qualified path of `etc\dmake.ini` in this repo
4. Run `mk.cmd`

For example, if your git repo is `x:\path\to\gdb-os2.git`, then

```
SET EMXOPT=-t
SET SWITCHAR=-
SET MAKESTARTUP=x:\path\to\gdb-os2.git\etc\dmake.ini
cd x:\path\to\gdb-os2.git
mk.cmd
```

You can use your own `dmake.ini` instead of the one in this repo.

# Donation

If you are satisfied with this program and want to donate to me, please visit
the following URL.

https://www.os2.kr/komh/os2factory/

Or, please click the Ads in the following blog.

https://lvzuufx.blogspot.com/

# Contact

Please use the issue tracker of github:

https://github.com/komh/gdb-os2/issues

KO Myung-Hun
