Problems debugging (gdb) my simple application

From: Clemens Fischer (Clemens.Fischer_at_aon.at)
Date: 05/19/05


Date: Thu, 19 May 2005 15:51:46 +0200

Hi gurus,

i've written a simple C++/"Hello World" application and would like to set a
breakpoint for debugging reasons. The funny thing is that if i set a
breakpoint and instruct gdb to run the application I get an error like this:

Cannot insert breakpoint 1.
Error accessing memory address 0x80486cc: Input/output error.

Aonther observation is that if I code a segmentation fault (that the
heaviest part) the debugger is working fine . I saw lots of similar question
somewhere out there, but no solution for the problem ...

So long,
// Clemens

PS:

gdb --> GNU gdb 6.3
g++ --> g++ (GCC) 3.3.1 (SuSE Linux)
App --> Compiled with "g++ hello.cxx -g -o hello"



Relevant Pages

  • Re: Problems debugging (gdb) my simple application
    ... you coud probably set the NTFS permissions ... >> breakpoint for debugging reasons. ... >> breakpoint and instruct gdb to run the application I get an error like ...
    (comp.os.linux.development.apps)
  • [PATCH 9/21] KGDB: This adds basic support to the MIPS architecture
    ... This patch also adds support for the rs232 early kgdb access for MIPS ... * To enable debugger support, ... * or error conditions to be properly intercepted and reported to gdb. ... a breakpoint needs to be generated to begin communication. ...
    (Linux-Kernel)
  • Re: [Kgdb-bugreport] [PATCH][3/3] Update CVS KGDBs wrt connect / detach
    ... >>If gdb is restarted, kgdb has to remove all breakpoints. ... >>We have to check for gdb connection in putpacket or else following problem ... Once connected and running, ^C/hit breakpoint and ...
    (Linux-Kernel)
  • Re: More trouble with i386 EFLAGS and ptrace
    ... > The reason this happens is that when the inferior hits a breakpoint, ... So GDB does a PTRACE_SINGLESTEP, ... So the single-step completes and returns SIGTRAP to GDB. ... GDB tries to singlestep past the breakpoint - PTRACE_SINGLESTEP, ...
    (Linux-Kernel)
  • Re: [Kgdb-bugreport] [KGDB PATCH][2/7] Serial updates, take 2
    ... >>(i.e. we're trying to send something while gdb wants to break in). ... If you don't break out of put_packet, kgdb will ... > patch) should check to see if the CURRENT cpu is in the kgdb console code ... > The problem is that you are now doing a breakpoint from inside kgdb while ...
    (Linux-Kernel)