discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to run gdb with gnuradio 3.8 ?


From: Jeff Long
Subject: Re: how to run gdb with gnuradio 3.8 ?
Date: Mon, 31 Aug 2020 19:34:19 -0400

If the console window in GRC were interactive, then you could debug right there, using gdb as the interpreter. I spent a grand total of 5 minutes looking into this, so maybe this is already possible. There's no particular advantage to doing it this way, though, since we assume that the user is fairly advanced if they're debugging an OOT ... the usual reason for not wanting to leave the GRC environment doesn't apply.

On Mon, Aug 31, 2020 at 7:20 PM Marcus Müller <mmueller@gnuradio.org> wrote:
Interact in which way, enabling what? Maybe I / we have some hints :)

On 31.08.20 22:52, Jeff Long wrote:
> You can run the python interpreter under gdb, outside GRC, and that should
> capture library errors. Another stranger idea would be to change the
> "interpreter" under GRC options/advanced to run your program under GDB. I
> got this to work using something along the lines of:
>
>   gdb {python} -ex "run -u {filename}"
>
> but didn't figure out how to interact with GDB afterward if that were to be
> necessary.
>
> On Mon, Aug 31, 2020 at 4:30 PM Tom McDermott <tom.n5eg@gmail.com> wrote:
>
>> I am trying to debug an OOT in gnuradio 3.8 using gdb.  It's a problem
>> with double free()
>> that seems to have popped up with 3.8.2
>>
>> I rebuilt my OOT with debug symbols.  WIthout gdb, it all runs, but of
>> course tells me about the double free() when it shuts down.
>>
>> 1. I've altered the top_block.py to stop and wait after printing the
>> process id before continuing,
>> then enter to continue.  This starts up the flowgraph GUI.
>>
>> 2. In a different terminal window:
>> $ sudo gdb -p the_process_id
>> This makes the gui disappear, and   'System Problem Detected' window
>> appears asking
>> if I want to report the problem.
>>
>> I still have the gdb window, but because I was not able to shut down my
>> GUI, the
>> backtrace does not let me look at the shutdown error I am getting.
>>
>> -- Tom, N5EG
>>
>>
>>
>>
>>
>>
>>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]