Bug 190554 - drkonqi should use "bt full" instead of "bt" to capture values of local variables.
Summary: drkonqi should use "bt full" instead of "bt" to capture values of local varia...
Status: RESOLVED NOT A BUG
Alias: None
Product: drkonqi
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-24 21:40 UTC by Rouslan Solomakhin
Modified: 2020-01-15 12:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rouslan Solomakhin 2009-04-24 21:40:34 UTC
Version:           4.2.2-0ubuntu1 (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

I wish to change item (1) to item (2) in kdebase/drkonqi/backtrace.cpp:

(1)  ::write(handle, "bt\n", 3); // this is the command for a backtrace

(1)  ::write(handle, "bt full\n", 8); // this is the command for a backtrace
Comment 1 Dario Andres 2009-08-08 05:43:03 UTC
In DrKonqi2 (KDE4.3) you can customize the commands GDB will use in a simple way:

- Open with an editor the file: "$KDEDIR/share/apps/drkonqi/debuggers/gdbrc"  ($KDEDIR is the path where KDE is installed)
- Modify the last line of the file to set the custom commands.

The default line is:
"BacktraceCommand=set width 200\nthread\nthread apply all bt"

If you modify it to :
"BacktraceCommand=set width 200\nthread\nthread apply all bt full"
you will get the full backtrace.

Thanks
Comment 2 Jekyll Wu 2013-01-19 03:46:28 UTC
Well, there are some issues to solve/consider prior to this "bt full" change, if it is ever going to happen.

1. DrKonqi now uses GdbHightligheter class to highlight backtrace obtained from gdb, and that means switching to "bt full" makes drkonqi itself crash for me when showing the backtrace.

2. using "bt full" will significantly increase the size of the backtrace and thus the report, which makes bug 248807 more likely to be triggered. 

3. For searching duplicate, I don't think using "bt full"  is a good news.

In general, I'm skeptical of the benefit of using "bt full" as default. Maybe drkonqi can ask gdb to generate two backtraces, and send the "bt full" one as one additional attachment.
Comment 3 Harald Sitter 2020-01-15 12:02:04 UTC
I'm with Jekyll on this one. What's more, bt full will not necessarily yield all that much information on release builds because the compiler will optimize a lot of stuff out anyway. And of the stuff that remains there's a reaallly good chance it will leak passwords by accident.