[Qt-creator] Remote GDB debugging.

Tim Hutt tdhutt at gmail.com
Tue Jun 17 13:40:39 CEST 2014


Localhost is correct because the Segger GDB server is running on my desktop
(and talks to the hardware via SWD (which is similar to JTAG)).

It is a qbs project. Could you perhaps post a screenshot of your debug
settings?

Cheers,

Tim


On 17 June 2014 12:38, Orgad Shaneh <orgads at gmail.com> wrote:

>
>
>
> On Tue, Jun 17, 2014 at 1:58 PM, Tim Hutt <tdhutt at gmail.com> wrote:
>
>> I'm not using a remote build server.
>>
>> [image: Inline images 3]
>>
>
> Is localhost correct here? Do you run Qt Creator on the target device?
>>
>>
>
>
>> [image: Inline images 4]
>>
>>
> Is this a qbs project? I'm not familiar with it. My project uses qmake,
> and TARGET defines the executable, which is automatically resolved in Run
> Settings.
>
> - Orgad
>
>
> On Tue, Jun 17, 2014 at 1:58 PM, Tim Hutt <tdhutt at gmail.com> wrote:
>
>> I'm not using a remote build server.
>>
>> The device type is Bare Metal. (Ignore the compiler setting below - I've
>> overridden it in my build file; I'll fix this at some point.)
>>
>> [image: Inline images 1]
>> [image: Inline images 2]
>> [image: Inline images 3]
>> [image: Inline images 4]
>>
>>
>>
>> On 17 June 2014 11:41, Orgad Shaneh <orgads at gmail.com> wrote:
>>
>>> On Tue, Jun 17, 2014 at 1:28 PM, Tim Hutt <tdhutt at gmail.com> wrote:
>>>
>>>> break-insert -f "\"main.cpp\":53"
>>>
>>>
>>> Do you have a valid source mapping in Tools -> Options -> Debugger ->
>>> General? If you use a remote build server, you must map the directory on
>>> that server to your local copy.
>>>
>>>
>>>>
>>>
>>> Yeah because when I do it tries to run the .out file as a local
>>>> executable, and never connects to the remote GDB server. See the previous
>>>> very long email with the GDB commands for what happens when I do that.
>>>>
>>>> Cheers,
>>>>
>>>> Tim
>>>>
>>>>
>>>> On 17 June 2014 10:50, Tim Sander <tim at krieglstein.org> wrote:
>>>>
>>>>> Hi Tim
>>>>>
>>>>> It seems to me that you are not using the debug-button on the left
>>>>> sidebar?
>>>>> Is there a reason why?
>>>>>
>>>>> Best regards
>>>>> Tim
>>>>> _______________________________________________
>>>>> Qt-creator mailing list
>>>>> Qt-creator at qt-project.org
>>>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Qt-creator mailing list
>>>> Qt-creator at qt-project.org
>>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>>>
>>>>
>>> What's the device type in the active kit?
>>>
>>> - Orgad
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140617/0dceda38/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 51960 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140617/0dceda38/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 26266 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140617/0dceda38/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 42033 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140617/0dceda38/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 42345 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140617/0dceda38/attachment-0003.png>


More information about the Qt-creator mailing list