Bug 551236 - OSX Mojave - Debug mode - Arguments passed enclosed in single quotes
Summary: OSX Mojave - Debug mode - Arguments passed enclosed in single quotes
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 9.8.1   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-19 03:49 EDT by Danijel Domazet CLA
Modified: 2019-09-20 03:37 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danijel Domazet CLA 2019-09-19 03:49:07 EDT
I am running Eclipse CDT 9.8.1. on OSX Mojave 10.14.6. 

When debugging an application using GDB, the arguments passed to main() seem to be enclosed with single quotes. 

I noticed this when passing filenames to the app, it fails to open files with error "file does not exist". 


One of those bugs that I am ashamed to tell the frends...
Comment 1 Marc-André Laperle CLA 2019-09-19 22:46:17 EDT
Which GDB are you using (Brew, MacPorts, from source)? I think CDT at this point doesn't have much macOS-specific code for the GDB integration so I wonder if it could be seen on Linux too.
Comment 2 Danijel Domazet CLA 2019-09-20 03:37:47 EDT
(In reply to Marc-André Laperle from comment #1)
> Which GDB are you using (Brew, MacPorts, from source)? I think CDT at this
> point doesn't have much macOS-specific code for the GDB integration so I
> wonder if it could be seen on Linux too.

I've installed GDB using Brew, it's /usr/local/Cellar/gdb/8.3.