gdb

James Linder jam at tigger.ws
Sun Jan 6 00:38:38 UTC 2019



> On 6 Jan 2019, at 1:00 am, Mojca Miklavec <mojca at macports.org> wrote:
> 
> Dear James,
> 
> I don't quite understand what your question/problem is. Can you please
> be more explicit (ideally on the mailing list).
> 
> Mojca
> 
> On Sat, 5 Jan 2019 at 15:11, James Linder <jam at tigger.ws> wrote:
>> 
>> Hi
>> 
>> can anybody show me mt errant ways
>> 
>> I installed gdb
>> codesigned as per https://sourceware.org/gdb/wiki/BuildingOnDarwin#Giving_gdb_permission_to_control_other_processes
>> I get
>> 
>> [Haycorn] /Users/jam/nodups [510]% ggdb nodups.app/Contents/MacOS/nodups
>> GNU gdb (GDB) 8.0.1
>> Copyright (C) 2017 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>> and "show warranty" for details.
>> This GDB was configured as "x86_64-apple-darwin17.2.0".
>> Type "show configuration" for configuration details.
>> For bug reporting instructions, please see:
>> <http://www.gnu.org/software/gdb/bugs/>.
>> Find the GDB manual and other documentation resources online at:
>> <http://www.gnu.org/software/gdb/documentation/>.
>> For help, type "help".
>> Type "apropos word" to search for commands related to "word"...
>> Reading symbols from nodups.app/Contents/MacOS/nodups...(no debugging symbols found)...done.
>> (gdb) q
>> 
>> [Haycorn] /Users/jam/nodups [511]% port list gdb
>> Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
>> gdb                            @8.0.1          devel/gdb
>> 
>> nodeps IS compiled with -g
>> Anybody please

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_DEPRECATED_WARNINGS -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I/opt/Qt5.12.0/5.12.0/clang_64/lib/QtGui.framework/Headers -I/opt/Qt5.12.0/5.12.0/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/Qt5.12.0/5.12.0/clang_64/mkspecs/macx-clang -F/opt/Qt5.12.0/5.12.0/clang_64/lib -o main.o main.cpp


[Haycorn] /Users/jam/nodups [511]% lldb nodups.app/Contents/MacOS/nodups
(lldb) target create "nodups.app/Contents/MacOS/nodups"
warning: (x86_64) /Users/jam/nodups/nodups.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui empty dSYM file detected, dSYM was created with an executable with no debug info.
warning: (x86_64) /Users/jam/nodups/nodups.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore empty dSYM file detected, dSYM was created with an executable with no debug info.
Current executable set to 'nodups.app/Contents/MacOS/nodups' (x86_64).

But elsewhere this does work:

[Haycorn] /Users/jam/nodups [512]% cat nodups.pro

TEMPLATE = app
TARGET = nodups
INCLUDEPATH += .

CONFIG += debug                        <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< and there IS a -g

DEFINES += QT_DEPRECATED_WARNINGS

# Input
SOURCES += main.cpp


James


More information about the macports-users mailing list