mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Comment
This commit is contained in:
parent
b0cf0e8c06
commit
71d7e561bd
10
Readme.md
10
Readme.md
@ -172,6 +172,16 @@ debug_gimple_stmt(gimple_struct)
|
||||
|
||||
To get the `rustc` command to run in `gdb`, add the `--verbose` flag to `cargo build`.
|
||||
|
||||
To have the correct file paths in `gdb` instead of `/usr/src/debug/gcc/libstdc++-v3/libsupc++/eh_personality.cc`, TODO
|
||||
|
||||
Maybe by calling the following at the beginning of gdb:
|
||||
|
||||
```
|
||||
set substitute-path /usr/src/debug/gcc /home/bouanto/Ordinateur/Programmation/Projets/gcc-repo/gcc
|
||||
```
|
||||
|
||||
TODO: but that's not what I remember I was doing.
|
||||
|
||||
### How to use a custom-build rustc
|
||||
|
||||
* Build the stage2 compiler (`rustup toolchain link debug-current build/x86_64-unknown-linux-gnu/stage2`).
|
||||
|
@ -1210,6 +1210,14 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
|
||||
fn cleanup_landing_pad(&mut self, _ty: Type<'gcc>, pers_fn: RValue<'gcc>) -> RValue<'gcc> {
|
||||
self.set_personality_fn(pers_fn);
|
||||
|
||||
/*
|
||||
* Matching GCC exception handling with LLVM:
|
||||
*
|
||||
* GCC LLVM
|
||||
* CATCH_EXPR landing pad catch clause
|
||||
* TRY_FINALLY_EXPR cleanup
|
||||
*/
|
||||
|
||||
self.cleanup_blocks.borrow_mut().insert(self.block);
|
||||
|
||||
// FIXME: we're probably not creating a real cleanup pad here.
|
||||
|
Loading…
Reference in New Issue
Block a user