English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 14 January 2024, 15:29   #1
Warty
Registered User
 
Join Date: Aug 2018
Location: Minneapolis, USA
Posts: 301
Newer VBCC and LINE DEBUG file paths?

I updated my VBCC build from something from 2018, to the latest from phoenix.owl.de/downloads/vbcc.tar.gz (etc). I noticed that now the debug information in the HUNK files includes the full UNIX path of each source file, and not just the filename. When I try to debug in SAS/C CPR tool, it can't find the files, because the UNIX paths don't work of course.

Peeking in the hunk file, older tool produces something like this:
LINElich_king.c

New one like this:
LINE/Users/micahbly/dev/bbedit-workspace-amiga/LichKing-Amiga/lich_king.c

I confirmed by recompiling same code with my older version of VBCC, that the paths don't get written. I tried adding -strip-paths, but that doesn't produce a noticeable difference. Is there a new switch I should be using?

New build versions:
vbcc V0.9h (c) in 1995-2022 by Volker Barthelmann
vasm 1.9f (c) in 2002-2023 Volker Barthelmann
vlink V0.17a (c)1997-2022 by Frank Wille

Old build versions:
vbcc V0.9h pre (c) in 1995-2020 by Volker Barthelmann
vlink V0.16a (c)1997-2017 by Frank Wille
vasm 1.8c (c) in 2002-2018 Volker Barthelmann
Warty is offline  
Old 14 January 2024, 18:54   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
Quote:
Originally Posted by Warty View Post
debug information in the HUNK files includes the full UNIX path of each source file, and not just the filename. When I try to debug in SAS/C CPR tool, it can't find the files, because the UNIX paths don't work of course.
I guess I switched to the full absolute path to make debugging on the Amiga work from any directory. Otherwise you have to start your debugger from the project's compilation directory.

But for cross-compiling I admit that this is not ideal. A command line option might be the solution.

Quote:
I tried adding -strip-paths, but that doesn't produce a noticeable difference.
This is not a vbcc problem. vbcc still writes the source file name from the command line into the assembler output. I changed vasm:
Code:
- 1.8e (28.12.18)
(...)
o output-hunk: Always try to include the full absolute source-path when
  writing LINE debug hunks (-linedebug option).
Quote:
Is there a new switch I should be using?
With tomorrow's vasm source snapshot you may use
-noabspath
.
This option should probably go into the non-native vbcc config files, when working as expected.
phx is offline  
Old 14 January 2024, 19:52   #3
Warty
Registered User
 
Join Date: Aug 2018
Location: Minneapolis, USA
Posts: 301
Very cool. Will test whenever it's ready.
Warty is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
INI file and relative paths? Macca support.WinUAE 18 20 January 2021 14:46
Debug: evaluate a variable built with vbcc prb28 Coders. C/C++ 20 18 May 2019 12:32
WinUAE command line / debug switches jotd support.WinUAE 2 13 January 2019 22:43
Config file directory paths hexaae support.WinUAE 6 24 June 2018 17:28
vbcc multiple include paths krustur Coders. C/C++ 2 20 October 2014 23:46

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:47.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07520 seconds with 15 queries