X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Message-ID: <53E55CC7.1000905@gmx.de> Date: Sat, 09 Aug 2014 01:27:03 +0200 From: Juan Manuel Guerrero User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: gdb 7.8 no longer works with DJGPP. References: <53E51B98 DOT 1080807 AT gmx DOT de> <834mxmn3vi DOT fsf AT gnu DOT org> In-Reply-To: <834mxmn3vi.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Jsf3dExA6P7Kp+4Mywwp1MxrhMv3VwpO3vOKpexsD23ZvPdPuFF KW0iBSUhQHwfobW73C52i41V7V8SDqLPdzoW+wJccRxai6ovpnBGNCI2leUlKqx7c/q/2Z8 RqPoUW0FVC2pSjFO9b8RYMI/sKECZOockWMQPWk6TtfY1LN81tV1pndlK6RtilHOg7U3i0k uVbrSBRpMv6UhjJKNIFLQ== X-UI-Out-Filterresults: notjunk:1; Reply-To: djgpp AT delorie DOT com Am 08.08.2014 22:05, schrieb Eli Zaretskii: >> Date: Fri, 08 Aug 2014 20:48:56 +0200 >> From: Juan Manuel Guerrero >> >> Starting program: g:/t/a.exe >> Warning: >> Cannot insert breakpoint 1. >> Cannot access memory at address 0x1ef8 >> >> (gdb) >> >> >> Both versions fail in exactly the same way. >> Has someone followed the gdb mailing so he can give me a pointer >> what they may have changed so that the DJGPP support has become >> completely broken? > I read the GDB mailing list, but I have no idea what broke the DJGPP > build. > > Does the problem happen with both COFF and DWARF2 debug info? Yes, both versions fail in the same way if the test program is compiled either with COFF or DWARF2 format. > > Does GDB 7.7.1 work with DJGPP? Yes, both 2.03 and 2.04 port versions of GDB 7.7.1 work flawlessly with DJGPP. I use them almost every day and I have never experienced any difficulties. > >> Has the DJGPP support been dropped? > No. Good to know. This is the output created by the version compiled with djdev203, gcc473 and bnu224br2. It is the same hello-world program. It has been compiled with DWARF2 format. I do not understand why the breakpoints are decremented (negative). H:\l\bins\bin>gdb a.exe GNU gdb (GDB) 7.8 Copyright (C) 2014 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 "--host=i586-pc-msdosdjgpp --target=djgpp". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from a.exe...done. (gdb) b main Breakpoint 1 at 0x1e04 (gdb) r Starting program: h:/l/bins/bin/a.exe Warning: Cannot insert breakpoint 1. Cannot access memory at address 0x1e04 (gdb) n Single stepping until exit from function start, which has no line number information. Warning: Cannot insert breakpoint 1. Cannot access memory at address 0x1e04 Cannot insert breakpoint -2. Cannot access memory at address 0x60b0 (gdb) n Single stepping until exit from function start, which has no line number information. Warning: Cannot insert breakpoint 1. Cannot access memory at address 0x1e04 Cannot insert breakpoint -3. Cannot access memory at address 0x60b0 (gdb) Anyway, more research need to be done. I hope that gdb can be debugged using gdb. Regards, Juan M. Guerrero