X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Frust-lang.h;h=6c627ae71c859720f8289e495765d55202a03993;hb=03c85b11b07452f2d7341b405a7fe70c74226505;hp=70da69f14456699efd378223d4d2fed0486bf86c;hpb=73dceb99fa57b79e83a6ed80aaad49d0e3e7da66;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/rust-lang.h b/gdb/rust-lang.h index 70da69f144..6c627ae71c 100644 --- a/gdb/rust-lang.h +++ b/gdb/rust-lang.h @@ -35,10 +35,9 @@ extern int rust_tuple_type_p (struct type *type); /* Return true if TYPE is a tuple struct type; otherwise false. */ extern int rust_tuple_struct_type_p (struct type *type); -/* Given a block, find the name of the block's crate. The name must - be freed by the caller. Returns NULL if no crate name can be - found. */ -extern char *rust_crate_for_block (const struct block *block); +/* Given a block, find the name of the block's crate. Returns an empty + stringif no crate name can be found. */ +extern std::string rust_crate_for_block (const struct block *block); /* Create a new slice type. NAME is the name of the type. ELT_TYPE is the type of the elements of the slice. USIZE_TYPE is the Rust