Issue 132597
Summary [MLIR] It takes too much time to display stack information when I debug `toyc-ch7` by gdb
Labels mlir
Assignees
Reporter CQUEE
    My version: 8dfdcc7b7 (grafted, tag: llvmorg-15.0.7, origin/release/15.x, release/15.x) 

# Description:
I build a debug version to debug and learn MLIR

When I debug `toyc-ch7` by GDB, I found it will take too much time to show stack information using gdb command `breakpoint`

# Steps to reproduce
## 1. build debug version mlir
## 2. add `source /your path/utils/gdb-scripts/prettyprinters.py` to ~/.gdbinit
## 3. reproduce command
- gdb binary
```bash
 gdb  /you path/bin/toyc-ch7
```

- in gdb environment
```bash

set args /your path/llvm-project/mlir/test/Examples/Toy/Ch7/struct-ast.toy -emit=mlir --mlir-disable-threading
b StructTypeStorage::StructTypeStorage
r
bt
```
- When I run bt command two times, it will take much time to show stack information


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to