Equivalent of `info proc mappings` for GDB/MI

235 Views Asked by At

I'm aware of -file-list-exec-sections, but it seems to be unimplemented in GDB 10.2 (the current as of this time). I wanted a GDB/MI command instead of info proc mappings as I wanted a easier way to parse the results, and also because I was wondering if there any alternatives to the -file-list-exec-sections command as it seems like it vanished.

1

There are 1 best solutions below

1
On

Use interpreter directive

-interpreter-exec console "info proc mappings "

you will get parsable output (a bit uglier than mi interpreter but does the job )