You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,13 @@ Or add a breakpoint to `add_error` in gdb and print the line number using:
109
109
110
110
```
111
111
p loc->m_line
112
+
p loc->m_filename->m_buffer
113
+
```
114
+
115
+
To print a debug representation of a tree:
116
+
117
+
```c
118
+
debug_tree(expr);
112
119
```
113
120
114
121
To get the `rustc` command to run in `gdb`, add the `--verbose` flag to `cargo build`.
@@ -134,4 +141,5 @@ To get the `rustc` command to run in `gdb`, add the `--verbose` flag to `cargo b
134
141
* Set `linker='-Clinker=m68k-linux-gcc'`.
135
142
* Set the path to the cross-compiling libgccjit in `gcc_path`.
136
143
* Disable the 128-bit integer types if the target doesn't support them by using `let i128_type = context.new_type::<i64>();` in `context.rs` (same for u128_type).
144
+
* Comment the line: `context.add_command_line_option("-masm=intel");` in src/base.rs.
137
145
* (might not be necessary) Disable the compilation of libstd.so (and possibly libcore.so?).
0 commit comments