Skip to content

Commit 4cb5441

Browse files
committed
Revert "[Backtracing][Linux] Temporarily add a default addressWidth."
This reverts commit 0d7c45d.
1 parent 450011e commit 4cb5441

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

stdlib/public/Backtracing/BacktraceFormatter.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public struct BacktraceFormatter {
523523
///
524524
/// @result An array of strings, one per column.
525525
public func formatColumns(frame: Backtrace.Frame,
526-
addressWidth: Int = 64,
526+
addressWidth: Int,
527527
index: Int? = nil) -> [String] {
528528
let pc: String
529529
var attrs: [String] = []
@@ -563,7 +563,7 @@ public struct BacktraceFormatter {
563563
///
564564
/// @result An array of table rows.
565565
public func formatRows(frame: Backtrace.Frame,
566-
addressWidth: Int = 64,
566+
addressWidth: Int,
567567
index: Int? = nil) -> [TableRow] {
568568
return [.columns(formatColumns(frame: frame,
569569
addressWidth: addressWidth,
@@ -578,7 +578,7 @@ public struct BacktraceFormatter {
578578
///
579579
/// @result A `String` containing the formatted data.
580580
public func format(frame: Backtrace.Frame,
581-
addressWidth: Int = 64,
581+
addressWidth: Int,
582582
index: Int? = nil) -> String {
583583
let rows = formatRows(frame: frame,
584584
addressWidth: addressWidth,
@@ -593,7 +593,7 @@ public struct BacktraceFormatter {
593593
///
594594
/// @result A `String` containing the formatted data.
595595
public func format(frames: some Sequence<Backtrace.Frame>,
596-
addressWidth: Int = 64) -> String {
596+
addressWidth: Int) -> String {
597597
var rows: [TableRow] = []
598598

599599
var n = 0
@@ -734,7 +734,7 @@ public struct BacktraceFormatter {
734734
///
735735
/// @result An array of strings, one per column.
736736
public func formatColumns(frame: SymbolicatedBacktrace.Frame,
737-
addressWidth: Int = 64,
737+
addressWidth: Int,
738738
index: Int? = nil) -> [String] {
739739
let pc: String
740740
var attrs: [String] = []
@@ -851,7 +851,7 @@ public struct BacktraceFormatter {
851851
///
852852
/// @result An array of table rows.
853853
public func formatRows(frame: SymbolicatedBacktrace.Frame,
854-
addressWidth: Int = 64,
854+
addressWidth: Int,
855855
index: Int? = nil,
856856
showSource: Bool = true) -> [TableRow] {
857857
let columns = formatColumns(frame: frame,
@@ -880,7 +880,7 @@ public struct BacktraceFormatter {
880880
///
881881
/// @result A `String` containing the formatted data.
882882
public func format(frame: SymbolicatedBacktrace.Frame,
883-
addressWidth: Int = 64,
883+
addressWidth: Int,
884884
index: Int? = nil,
885885
showSource: Bool = true) -> String {
886886
let rows = formatRows(frame: frame, addressWidth: addressWidth,
@@ -902,7 +902,7 @@ public struct BacktraceFormatter {
902902
///
903903
/// @result A `String` containing the formatted data.
904904
public func format(frames: some Sequence<SymbolicatedBacktrace.Frame>,
905-
addressWidth: Int = 64) -> String {
905+
addressWidth: Int) -> String {
906906
var rows: [TableRow] = []
907907
var sourceLocationsShown = Set<SymbolicatedBacktrace.SourceLocation>()
908908

@@ -982,7 +982,7 @@ public struct BacktraceFormatter {
982982
///
983983
/// @result An array of strings, one per column.
984984
public func formatColumns(image: Backtrace.Image,
985-
addressWidth: Int = 64) -> [String] {
985+
addressWidth: Int) -> [String] {
986986
let addressRange = "\(hex(image.baseAddress, width: addressWidth))\(hex(image.endOfText, width: addressWidth))"
987987
let buildID: String
988988
if let bytes = image.buildID {
@@ -1011,7 +1011,7 @@ public struct BacktraceFormatter {
10111011
///
10121012
/// @result A string containing the formatted data.
10131013
public func format(images: some Sequence<Backtrace.Image>,
1014-
addressWidth: Int = 64) -> String {
1014+
addressWidth: Int) -> String {
10151015
let rows = images.map{
10161016
TableRow.columns(
10171017
formatColumns(image: $0,

0 commit comments

Comments
 (0)