[PATCH V3 0/3] eBPF support

Daniel Xu dxu@dxuuu.xyz
Sun Jul 5 03:12:19 GMT 2020


On Sat Jul 4, 2020 at 6:34 PM PDT, Simon Marchi wrote:
> On 2020-07-04 8:27 p.m., Jose E. Marchesi via Gdb-patches wrote:
> > (gdb) target sim
> > (gdb) sim memory-size 4Mb
> > (gdb) load ~/dev/libbpf-rs/target/bpf/runqslower.bpf.o
> > (gdb) file load ~/dev/libbpf-rs/target/bpf/runqslower.bpf.o
>
> You probably meant `file ~/dev/libbpf-rs/target/bpf/runqslower.bpf.o`
> for the last
> command?
>
> You can also save some typing by doing the `file blablabla` first, then
> `load` without
> arguments.
>
> Simon


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".

```

Thanks,
Daniel


More information about the Gdb-patches mailing list