public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gdb doesn't print the output on the terminal
@ 2021-01-08  9:20 Gaetano Buldo
  2021-01-08  9:39 ` Marco Atzeri
  0 siblings, 1 reply; 4+ messages in thread
From: Gaetano Buldo @ 2021-01-08  9:20 UTC (permalink / raw)
  To: cygwin

Hello,
I installed Cygwin for 64bit window, and the following tools in order to
build and debug c programs using eclipse.
gcc 9.3.0-2
make 4.3-1
gdb 9.2-1
It seems like the gdb program doesn't print on the terminal.
When i run gdb --version a get an empty string on the terminal
When i run gdb, i can see the programm running on the task manager, and i
can quit it writing 'q' (even if the string doesn't appear on the terminal).
gcc and make works fine. When i check the version i normally get the
expected output, and i'm also capable to build a C project.
Any suggestion?
Thanks,
Gaetano

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdb doesn't print the output on the terminal
  2021-01-08  9:20 gdb doesn't print the output on the terminal Gaetano Buldo
@ 2021-01-08  9:39 ` Marco Atzeri
       [not found]   ` <CANAK-1QfQkYqE75CfEX1SYgggpfLt0e5bKkVnDS3qTBmWhS2iQ@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2021-01-08  9:39 UTC (permalink / raw)
  To: cygwin

On 08.01.2021 10:20, Gaetano Buldo via Cygwin wrote:
> Hello,
> I installed Cygwin for 64bit window, and the following tools in order to
> build and debug c programs using eclipse.
> gcc 9.3.0-2

why not the version 10 ?

> make 4.3-1
> gdb 9.2-1
> It seems like the gdb program doesn't print on the terminal.

this usually means you are missing some libraries or you have an 
incorrect version of oune of them

These commands can help to identify the issue

$ cygcheck /usr/bin/gdb

$ strace -o /tmp/gdb.strace /usr/bin/gdb --version


> When i run gdb --version a get an empty string on the terminal
> When i run gdb, i can see the programm running on the task manager, and i
> can quit it writing 'q' (even if the string doesn't appear on the terminal).
> gcc and make works fine. When i check the version i normally get the
> expected output, and i'm also capable to build a C project.
> Any suggestion?
> Thanks,
> Gaetano
> --

see also here
> Problem reports:      https://cygwin.com/problems.html

and provide the cygcheck.out as attachment

Regards
Marco


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdb doesn't print the output on the terminal
       [not found]   ` <CANAK-1QfQkYqE75CfEX1SYgggpfLt0e5bKkVnDS3qTBmWhS2iQ@mail.gmail.com>
@ 2021-01-08 13:04     ` Marco Atzeri
  2021-01-08 14:17       ` Gaetano Buldo
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2021-01-08 13:04 UTC (permalink / raw)
  To: Gaetano Buldo; +Cc: cygwin

On 08.01.2021 12:46, Gaetano Buldo wrote:
> Hi Marco,
> i attach the files.
> I a first moment I installed the last versions of all the tools, after 
> that i tried install other version.
> That's why my current version of gcc is 9.3.0-2.
> I removed  some sensitive info, i putted ********.
> Thanks,
> Gaetano
> 

the strace shows a normal exit.

What terminal are you using ?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdb doesn't print the output on the terminal
  2021-01-08 13:04     ` Marco Atzeri
@ 2021-01-08 14:17       ` Gaetano Buldo
  0 siblings, 0 replies; 4+ messages in thread
From: Gaetano Buldo @ 2021-01-08 14:17 UTC (permalink / raw)
  To: Marco Atzeri; +Cc: cygwin

I used cygwin64 terminal (C:\cygwin64\bin\mintty.exe) to generate these
files.
I tried gdb on both  cygwin64 terminal and window command prompt.
I don't get any output on both of them

Il giorno ven 8 gen 2021 alle ore 14:04 Marco Atzeri <marco.atzeri@gmail.com>
ha scritto:

> On 08.01.2021 12:46, Gaetano Buldo wrote:
> > Hi Marco,
> > i attach the files.
> > I a first moment I installed the last versions of all the tools, after
> > that i tried install other version.
> > That's why my current version of gcc is 9.3.0-2.
> > I removed  some sensitive info, i putted ********.
> > Thanks,
> > Gaetano
> >
>
> the strace shows a normal exit.
>
> What terminal are you using ?
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-08 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08  9:20 gdb doesn't print the output on the terminal Gaetano Buldo
2021-01-08  9:39 ` Marco Atzeri
     [not found]   ` <CANAK-1QfQkYqE75CfEX1SYgggpfLt0e5bKkVnDS3qTBmWhS2iQ@mail.gmail.com>
2021-01-08 13:04     ` Marco Atzeri
2021-01-08 14:17       ` Gaetano Buldo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).