[PATCH] binutils: testsuite: Fix add2line test cases on Windows.

Project / Subsystem

binutils / binutils

Date

2026-09-13

Proposer

Jan Dubiec <jdx@o2.pl>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Adapting tests for Windows compatibility adds complexity but ensures broader test suite coverage and reliability.
  • • Handling platform-specific behaviors (like path formats or symbol mangling) is necessary for robust cross-platform development.
  • • The choice of test scripting language (e.g., Tcl for `exp` files) affects how platform differences can be programmatically managed.

All attributes

project
binutils
subsystem
binutils
patch_id
—
discussion_id
20260913163802.130948-1-jdx@o2.pl
source_type
public_inbox
title
[PATCH] binutils: testsuite: Fix add2line test cases on Windows.
headline
binutils: testsuite: Fix addr2line test cases on Windows
tldr
Patch fixes addr2line test cases on Windows by addressing path format differences and GCC's symbol naming conventions.
proposer
Jan Dubiec <jdx@o2.pl>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Adapting tests for Windows compatibility adds complexity but ensures broader test suite coverage and reliability.
  • • Handling platform-specific behaviors (like path formats or symbol mangling) is necessary for robust cross-platform development.
  • • The choice of test scripting language (e.g., Tcl for `exp` files) affects how platform differences can be programmatically managed.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • binutils
  • • testing
  • • Windows
  • • cross-platform
  • • patch
bugzilla_url
—
date
2026-09-13T00:00:00.000Z

[PATCH] binutils: testsuite: Fix add2line test cases on Windows.

Jan Dubiec submits a patch to fix failing addr2line test cases on Windows within the Binutils test suite. The failures stem from two main issues: 1) nm on Windows uses DOS-style paths (e.g., C:/), while the test suite expects UNIX-style paths, and 2) certain GCC targets (like h8300-*-elf) prepend an underscore to symbol names, which the tests did not account for. The patch modifies the addr2line.exp test script to handle these platform-specific differences.