[Bug build/33508] New: [gdb/build] Rename .c files to .cc
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Wed Oct 1 09:10:31 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33508
Bug ID: 33508
Summary: [gdb/build] Rename .c files to .cc
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
[ I found the page of the c++ migration project (
https://sourceware.org/gdb/wiki/cxx-conversion ) but didn't find any mention of
renaming files. ]
On IRC it was noted that having c++ sources in a .c file causes problems in
some development environments that use the file extension to infer the language
and do language-appropriate stuff.
I wonder if there are negative side effects in using git after such a
transition.
Say I do git log gdb/gdb.cc, will it stop at the rename? I googled this and
found that using "git log --follow" could help there, but reading about it it
seems limited to one file. [ Also it doesn't work well on non-linear history,
but that's not a current concern for our codebase. ]
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list