This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build failure: src/gdb ChangeLog record.c gcore.c gcore.h


Hi Michael,

If you this way will change the GDB too much.  I think move the
"record save" cmd together with gcore.  I think it can handle this
issue too.

What do you think?

Thanks,
Hui

On Sun, Oct 25, 2009 at 16:41, Hui Zhu <teawater@gmail.com> wrote:
> $ ./gdb ./a.exe
> GNU gdb (GDB) 7.0.50.20091025-cvs
> Copyright (C) 2009 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-cygwin".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /home/hzhu/gdb/bgdbcygwin/gdb/a.exe...done.
> Setting up the environment for debugging gdb.
> Function "internal_error" not defined.
> Make breakpoint pending on future shared library load? (y or [n])
> [answered N; input not from terminal]
> Function "info_command" not defined.
> Make breakpoint pending on future shared library load? (y or [n])
> [answered N; input not from terminal]
> /home/hzhu/gdb/bgdbcygwin/gdb/.gdbinit:8: Error in sourced command file:
> No breakpoint number 0.
> (gdb) start
> Temporary breakpoint 1 at 0x4010b0: file
> /cygdrive/c/study/gcc/gdb/rec/1.c, line 20.
> Starting program: /home/hzhu/gdb/bgdbcygwin/gdb/a.exe
> [New Thread 3820.0x600]
> [New Thread 3820.0x14c]
> [New Thread 3820.0xf94]
>
> Temporary breakpoint 1, main () at /cygdrive/c/study/gcc/gdb/rec/1.c:20
> 20 ? ? ? ? ? ? int ? ? b = 0;
> (gdb) gcore
> Can't create a corefile
> (gdb)
>
> ?/* An external target method must build the notes section. ?*/
> ?note_data = target_make_corefile_notes (obfd, &note_size);
>
> It's target depend.
>
> It just a error output, better than build error.
>
> Thanks,
> Hui
>
>
>
> On Sun, Oct 25, 2009 at 09:19, Michael Snyder <msnyder@vmware.com> wrote:
>> Hui Zhu wrote:
>>>
>>> I try in cygwin with:
>>> configure --disable-sid --disable-rda --disable-binutils --disable-gas
>>> --disable-ld --disable-gprof --enable-targets=all --enable-64-bits-bfd
>>> CFLAGS=-g
>>> configure --disable-sid --disable-rda --disable-binutils --disable-gas
>>> --disable-ld --disable-gprof
>>>
>>> ?Build is OK.
>>>
>>> $ ./gdb
>>> GNU gdb (GDB) 7.0.50.20091025-cvs
>>> Copyright (C) 2009 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-cygwin".
>>> For bug reporting instructions, please see:
>>> <http://www.gnu.org/software/gdb/bugs/>.
>>> Setting up the environment for debugging gdb.
>>> No symbol table is loaded. ?Use the "file" command.
>>> Make breakpoint pending on future shared library load? (y or [n])
>>> [answered N; input not from terminal]
>>> No symbol table is loaded. ?Use the "file" command.
>>> Make breakpoint pending on future shared library load? (y or [n])
>>> [answered N; input not from terminal]
>>> /home/hzhu/gdb/bgdbcygwin/gdb/.gdbinit:8: Error in sourced command file:
>>> No breakpoint number 0.
>>> (gdb)
>>>
>>> I think in gcore.o, there is not some host-special code. ?Just some target
>>> hook.
>>> I suggest mv gcore.o to makefile.in and add code to check return value
>>> in record.o when call gcore function.
>>> What do you think about it?
>>
>> Can't be done. ?gcore depends on some callbacks that
>> are not implemented for cygwin.
>>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]