I/O error when setting breakpoints
Jonathan Hills
bluemooseking@gmail.com
Fri May 30 12:54:00 GMT 2008
Hi,
I've created a DLL that I'm trying to debug in GDB. I get an error
however when I try to set a breakpoint.It's some kind of I/O Error,
but I don't know what the cause of it is. Below is a transcript of the
problem. Any ideas how I can find out more about this Input/Output
error I'm having???
btw... I'm using gdb (and gcc) in MinGW (on WinXP)
Jon
=======================================================
$ gdb --args tclsh tclsource
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-pc-mingw32"...
(no debugging symbols found)
(gdb) dll-symbols app_dll_test.dll
(gdb) break Keypressloop_Init
Breakpoint 1 at 0x69e0118c: file app_dll_main.c, line 43.
(gdb) list Keypressloop_Init
38 int RedirectAfterCommand(Tcl_Interp *interp);
39 int RestoreAfterCommand(Tcl_Interp *interp);
40
41 EXTERN_C int DECLSPEC_EXPORT
42 Keypressloop_Init(Tcl_Interp* interp)
43 {
44
45 #ifdef USE_TCL_STUBS
46 Tcl_InitStubs(interp, "8.4", 0);
47 #endif
(gdb) warning: Source file is more recent than executable.
set debug target 2
(gdb) run
Starting program: c:\Tcl\bin/tclsh.exe tclsource
[New thread 3804.0xb10]
(gdb) target_terminal_inferior ()
target_terminal_ours ()
target_wait (-1, status) = 2832, status->kind = spurious
target_fetch_registers (eip) = 6506817c 0x7c810665 2088830565
target_terminal_inferior ()
target_resume (-1, continue, 0)
target_terminal_ours ()
target_wait (-1, status) = 2832, status->kind = loaded
target_terminal_ours_for_output ()
child:target_xfer_partial (10, (null), 0x10509e0, 0x0, 0x0, 4095) =
118, bytes =
3c 6c 69 62 72 61 72 79 2d 6c 69 73 74 3e 0a 3c
6c 69 62 72 61 72 79 20 6e 61 6d 65 3d 22 43 3a
5c 57 49 4e 44 4f 57 53 5c 73 79 73 74 65 6d 33
32 5c 6e 74 64 6c 6c 2e 64 6c 6c 22 3e 3c 73 65
67 6d 65 6e 74 20 61 64 64 72 65 73 73 3d 22 30
78 37 63 39 30 31 30 30 30 22 2f 3e 3c 2f 6c 69
62 72 61 72 79 3e 3c 2f 6c 69 62 72 61 72 79 2d
6c 69 73 74 3e 0a
child:target_xfer_partial (10, (null), 0x1050a56, 0x0, 0x76, 3977) = 0
target_fetch_registers (eip) = 6506817c 0x7c810665 2088830565
target_memory_map ()
child:target_xfer_partial (2, (null), 0x22f45b, 0x0, 0x69e0118c, 1) = 0
child:target_xfer_partial (2, (null), 0x22f3ff, 0x0, 0x69e0118c, 1) = 0
child:target_xfer_partial (2, (null), 0x22f45b, 0x0, 0x69e0118c, 1) = 0
child:target_xfer_partial (2, (null), 0x22f45a, 0x0, 0x69e0118c, 1) = 0
child:target_xfer_partial (2, (null), 0x22f43f, 0x0, 0x69e0118c, 10) = 0
child:target_xfer_partial (2, (null), 0x22f45a, 0x0, 0x69e0118c, 1) = 0
child:target_xfer_partial (2, (null), 0x22f45a, 0x0, 0x69e0118c, 1) = 0
target_terminal_inferior ()
child:target_xfer_partial (2, (null), 0xc5050c, 0x0, 0x69e0118c, 1) = 0
target_insert_breakpoint (0x69e0118c, xxx) = 5
target_terminal_ours_for_output ()
target_terminal_ours ()
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x69e0118c: Input/output error.
More information about the Gdb
mailing list