From: Yedidya Feldblum Date: Fri, 13 Oct 2017 23:14:37 +0000 (-0700) Subject: Style fixes for folly/experimental/gdb/README.md X-Git-Tag: v2017.10.16.00~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=371636e9c158a7ec8e95cd3d88129083718d97b6;p=folly.git Style fixes for folly/experimental/gdb/README.md Summary: [Folly] Style fixes for `folly/experimental/gdb/README.md`. Should have no effect on Github rendering, but should affect PHabricator rendering. Reviewed By: Orvid, kennyyu Differential Revision: D6055017 fbshipit-source-id: 54204a2b77beeb884cdc486207809f78ac80afe2 --- diff --git a/folly/experimental/gdb/README.md b/folly/experimental/gdb/README.md index 91a05a5d..d4bc1345 100644 --- a/folly/experimental/gdb/README.md +++ b/folly/experimental/gdb/README.md @@ -8,7 +8,7 @@ These scripts use the [gdb extension Python API](https://sourceware.org/gdb/curr To run the scripts, fire up `gdb` and load a script with `source -v`. Example: -```bash +```lang=bash $ gdb -p 123456 (gdb) source -v ./folly/experimental/gdb/deadlock.py Type "deadlock" to detect deadlocks. @@ -24,7 +24,7 @@ Found deadlock! Consider the following program that always deadlocks: -```cpp +```lang=cpp void deadlock3() { std::mutex m1, m2, m3; folly::Baton<> b1, b2, b3; @@ -59,7 +59,7 @@ void deadlock3() { The `deadlock.py` script introduces a new `deadlock` command that can help us identify the threads and mutexes involved with the deadlock. -```bash +```lang=bash $ gdb -p 2174496 (gdb) source -v ./folly/experimental/gdb/deadlock.py Type "deadlock" to detect deadlocks.