Gdb Cannot Insert Breakpoint Error Accessing Memory
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack gdb break cannot access memory at address Overflow the company Business Learn more about hiring developers or posting ads with us gdb cannot insert breakpoint 0 Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a
Cannot Insert Breakpoint Cannot Access Memory At Address
community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up After setting a breakpoint in Qt, gdb says: “Error accessing memory address” up vote 5
Error In Re-setting Breakpoint 1: Cannot Access Memory At Address
down vote favorite 1 I wrote a very simple Qt program here: int main(int argc, char* argv[]) { QApplication app(argc, argv); QTableView table(&frame); table.resize(100, 100); table.show(); return app.exec(); } And when I try to set a breakpoint where the table gets clicked, I get this error from gdb: (gdb) symbol-file /usr/lib/libQtGui.so.4.4.3.debug Load new symbol table from "/usr/lib/libQtGui.so.4.4.3.debug"? (y or n) y Reading symbols from /usr/lib/libQtGui.so.4.4.3.debug...done. (gdb) br 'QAbstractItemView::clicked(QModelIndex const&)' Breakpoint 1 warning cannot insert breakpoint 1 at 0x5fc660: file .moc/release-shared/moc_qabstractitemview.cpp, line 313. (gdb) run Starting program: ./qt-test Warning: Cannot insert breakpoint 1. Error accessing memory address 0x5fc660: Input/output error. Does anyone know why the breakpoint can't be inserted? debugging qt qt4 gdb breakpoints share|improve this question edited Jul 14 '09 at 6:19 Quinn Taylor 36.7k1395118 asked May 26 '09 at 21:18 Neil 10k73448 I'm using Ubuntu Intrepid, and I have installed libqt4-dbg, if that helps at all. –Neil May 26 '09 at 21:22 add a comment| 4 Answers 4 active oldest votes up vote 2 down vote accepted If you want to automatically break in main without setting a breakpoint you can also use the start command. If you need to provide any arguments to the program you can use: start argument1 argument2 share|improve this answer edited May 29 '09 at 9:27 answered May 28 '09 at 20:57 Andy 2,4841525 add a comment| up vote 10 down vote Don't use the gdb command symbol-file to load external symbols. The breakpoint addresses will be wrong since they're not relocated. Instead, put a breakpoint in main, run the program, and then set your breakpoint: gdb ./program GNU gdb 6.8-debian blah blah blah (gdb) br main Breakpoint 1 at 0x80489c1 (gdb) run Starting program: ./program Breakpoint 1, 0x0804
last months will be deleted periodically to fight SPAM! Home Help Search
Gdb Cannot Access Memory At Address
Login Register Wiki Code::Blocks » User forums » Help » GDB having problems setting breakpoints. « previous next » Send this topic Print Pages: [1] Go Down Author Topic: GDB having problems setting breakpoints. (Read 8818 times) zalzane Single posting newcomer Posts: 7 GDB having problems setting breakpoints. « on: June http://stackoverflow.com/questions/912808/after-setting-a-breakpoint-in-qt-gdb-says-error-accessing-memory-address 09, 2011, 11:11:08 pm » So what I do is set a breakpoint inside this one constructor, and go to start debug. The full debug console then spews out this info:Code: [Select]PATH=.;G:\Infinita\SDL-1.2.14\include;G:\Infinita\SDL-1.2.14\lib;O:\CodeBlocks\MinGW\bin;E:\Windows\system32;E:\Windows;E:\Windows\System32\Wbem;E:\Windows\System32\WindowsPowerShell\v1.0\
Command-line: O:\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args bin/Debug/Infinita.exe
Working dir : G:\Infinita\
> set prompt >>>>>>cb_gdb:
Reading symbols from http://forums.codeblocks.org/index.php?topic=14847.0 G:\Infinita/bin/Debug/Infinita.exe...done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i686-mingw32".
For bug reporting instructions, please see:
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set new-console on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source O:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory G:/Infinita/
>>>>>>cb_gdb:
> tbreak "G:/Infinita/fileIO.h:39"
warning: (Internal error: pc 0x6b in read in psymtab, but not in symtab.)
warning:
In [x] | Forgot Password Login: [x] Bug9299 - Cannot insert breakpoint 1: Error accessing https://sourceware.org/bugzilla/show_bug.cgi?id=9299 memory address 0x87414: I/O error Summary: Cannot insert breakpoint 1: Error accessing memory address 0x87414: I/O error Status: RESOLVED OBSOLETE Alias: None Product: gdb Classification: Unclassified Component: https://forum.qt.io/topic/12444/creator-2-4-gdb-can-t-set-breakpoints-anymore breakpoints (show other bugs) Version: 5.50 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2006-11-05 cannot insert 00:38 UTC by John David Anglin Modified: 2014-09-12 22:57 UTC (History) CC List: 2 users (show) gdb-prs sergiodj See Also: Host: Target: Build: Last reconfirmed: Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description John David Anglin cannot insert breakpoint 2006-11-05 00:38:01 UTC [Converted from Gnats 2194] # gdb ../../gcc/jc1 GNU gdb 6.5.50.20061104-cvs Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "hppa2.0w-hp-hpux11.11"... (gdb) break main Breakpoint 1 at 0x87414: file ../../gcc/gcc/main.c, line 35. (gdb) r `cat xx.sh` Starting program: /mnt/gnu/gcc/objdir/gcc/jc1 `cat xx.sh` Warning: Cannot insert breakpoint 1. Error accessing memory address 0x87414: I/O error. This possibly has something to do with argument processing: # gdb ../../gcc/jc1 GNU gdb 6.5.50.20061104-cvs Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the cond
download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript). Home Qt Development Tools Creator 2.4: GDB can't set breakpoints anymore Creator 2.4: GDB can't set breakpoints anymore This topic has been deleted. Only users with topic management privileges can see it. Asperamanca last edited by I updated to Creator 2.4, and now I can't debug my application anymore using gdb. I get the error message: "Warning Cannot insert breakpoint 1. Error accessing memory address 0x24d: Input/output error." The debugger settings are all on defaults for the SDK installation. Working on Windows XP. Anything I can do to fix the problem? Reply Quote 0 tobias.hunger Moderators last edited by Try deleting all breakpoints. How did you end up with a breakpoint in such a location in the first place? Reply Quote 0 Asperamanca last edited by Found the reason. It's a breakpoint inside a template class method. That doesn't seem to be supported. I completely forgot about that limitation. Sorry for the scare. Reply Quote 0 Loading More Posts 3 Posts 3203 Views Reply Reply as topic Log in to reply 1 / 1