This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v8] Add pretty printers for the NPTL lock types


On 06/24/2016 11:04 PM, Martin Galvan wrote:
> Pedro: In our case we need gdb to automatically load the pretty printers
> before doing any testing, which is why I suggested placing a few lines
> in .gdbinit to do so. There's probably a better way to do it (perhaps
> manually copying the printers to some special path gdb can auto-load
> from?), but I thought it was good enough for testing.

You want to test the printers in the source tree, not the system
one's right?  At least by default.

How about:

- add whatever lines those are to a gdb script that lives along
  side the tests.

- have the harness start gdb with:

   gdb -nx -ix /path/to/that/script

No need to manually tweak ~/.gdbinit that way.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]