[PATCH V3 0/3] eBPF support

Simon Marchi simark@simark.ca
Sun Jul 5 03:20:23 GMT 2020


On 2020-07-04 11:12 p.m., Daniel Xu wrote:
> Sorry if this is a silly question, but how do I build `sim` support into
> gdb?
> 
> I've tried running the following against the top-level configure script:
> 
> ```
> $ ../configure --enable-sim --enable-unit-tests --enable-maintainer-mode
> $ make -j4
> $ make -C gdb run
> make: Entering directory '/home/daniel/dev/gdb/build/gdb'
> [...]
> 
> (gdb) target sim
> Undefined target command: "sim".  Try "help target".

The sim is built when GDB & co are configured with a suitable --target (a target for
which there is a sim).  If you look at Jose's patches, they modify the configure.tgt
files of gdb/ and sim/ to recognize target triplets of the form `bpf-*-*`.  According
to this:

  https://lwn.net/Articles/800606/

the triplet to use is `bpf-unknown-none` (and there's even a nice picture!).  So, try
adding `--target=bpf-unknown-none` to your configure line.

Simon


More information about the Gdb-patches mailing list