mirror of
https://github.com/rust-lang/rust
synced 2024-10-03 07:14:34 +00:00
Update documentation.
This commit is contained in:
parent
60458b97e7
commit
ab1f8ed2d9
|
@ -53,7 +53,7 @@ pub fn get_or_insert_gdb_debug_scripts_section_global<'ll>(cx: &CodegenCx<'ll, '
|
||||||
let crate_name = cx.tcx.crate_name(LOCAL_CRATE);
|
let crate_name = cx.tcx.crate_name(LOCAL_CRATE);
|
||||||
for (index, visualizer) in visualizers.iter().enumerate() {
|
for (index, visualizer) in visualizers.iter().enumerate() {
|
||||||
// The initial byte `4` instructs GDB that the following pretty printer
|
// The initial byte `4` instructs GDB that the following pretty printer
|
||||||
// is defined inline as opposed to in a file standalone file.
|
// is defined inline as opposed to in a standalone file.
|
||||||
section_contents.extend_from_slice(b"\x04");
|
section_contents.extend_from_slice(b"\x04");
|
||||||
let vis_name = format!("pretty-printer-{}-{}\n", crate_name.as_str(), index);
|
let vis_name = format!("pretty-printer-{}-{}\n", crate_name.as_str(), index);
|
||||||
section_contents.extend_from_slice(vis_name.as_bytes());
|
section_contents.extend_from_slice(vis_name.as_bytes());
|
||||||
|
@ -107,7 +107,7 @@ pub fn needs_gdb_debug_scripts_section(cx: &CodegenCx<'_, '_>) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
CrateType::Rlib => {
|
CrateType::Rlib => {
|
||||||
// As per the above description, embedding visualizers for rlibs could
|
// As per the above description, embedding pretty printers for rlibs could
|
||||||
// lead to ODR violations so we skip this crate type as well.
|
// lead to ODR violations so we skip this crate type as well.
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue