Skip to content

fix: avoid overwriting when same job number is present in same file but in different label#286

Merged
HimanshuChoudhary-Xilinx merged 1 commit into
Xilinx:main-gefrom
HimanshuChoudhary-Xilinx:report111
May 8, 2026
Merged

fix: avoid overwriting when same job number is present in same file but in different label#286
HimanshuChoudhary-Xilinx merged 1 commit into
Xilinx:main-gefrom
HimanshuChoudhary-Xilinx:report111

Conversation

@HimanshuChoudhary-Xilinx
Copy link
Copy Markdown
Collaborator

Problem solved by the commit

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

How problem was solved, alternative solutions (if any) and why they were rejected

Risks (if any) associated the changes in the commit

What has been tested and how, request additional testing if necessary

Documentation impact (if any)

…ut in different label

Signed-off-by: Himanshu Choudhary <Himanshu.Choudhary@amd.com>
Copilot AI review requested due to automatic review settings May 8, 2026 08:39
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates debug-report function keying to prevent function entries from being overwritten when identical job identifiers occur in the same source file across different labels/pages.

Changes:

  • Include pagenum in Debug::add_function()’s key so functions from different pages don’t collide in the functions map.
  • Add an explanatory comment alongside the updated key generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


std::string add_function(uint32_t file_idx, const std::string& name, offset_type high_pc, offset_type low_pc, uint32_t col, pageid_type pagenum) {
std::string key = std::to_string(file_idx) + "_" + std::to_string(col) + "_" + name;
// source/file/column/page do not overwrite previously recorded functions.
@HimanshuChoudhary-Xilinx HimanshuChoudhary-Xilinx merged commit 7a82678 into Xilinx:main-ge May 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants