public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Short gdb question.
@ 2012-05-03 20:47 eric_justin_allan
  2012-05-03 21:01 ` Ryan Johnson
  2012-05-04  2:21 ` Reid Thompson
  0 siblings, 2 replies; 10+ messages in thread
From: eric_justin_allan @ 2012-05-03 20:47 UTC (permalink / raw)
  To: cygwin

Is this the right place to suggest that gdb be upgraded for cygwin. If 
not where could I suggest that? If this is an acceptable place then can 
I add here that if you guys do upgrade gdb that I was hoping you could 
make it a bit more detailed maybe make it to show a bit more information 
about crashes. An example is that I m working with a linked list and 
when the program crashes gdb prints out and only prints out the words 
below this text. I am left clueless about the error.

Program received signal SIGABRT, Aborted.
0x7ffe0304 in ?? ()

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Short gdb question.
  2012-05-03 20:47 Short gdb question eric_justin_allan
@ 2012-05-03 21:01 ` Ryan Johnson
  2012-05-04  2:21 ` Reid Thompson
  1 sibling, 0 replies; 10+ messages in thread
From: Ryan Johnson @ 2012-05-03 21:01 UTC (permalink / raw)
  To: cygwin

On 03/05/2012 7:47 PM, eric_justin_allan@cfl.rr.com wrote:
> Is this the right place to suggest that gdb be upgraded for cygwin. If 
> not where could I suggest that? If this is an acceptable place then 
> can I add here that if you guys do upgrade gdb that I was hoping you 
> could make it a bit more detailed maybe make it to show a bit more 
> information about crashes. An example is that I m working with a 
> linked list and when the program crashes gdb prints out and only 
> prints out the words below this text. I am left clueless about the error.
>
> Program received signal SIGABRT, Aborted.
> 0x7ffe0304 in ?? ()
This happens only with SIGABRT, AFAIK. You can work around it by setting 
a breakpoint on "_abort" which will catch the problem before the stack 
gets lost in windows-land.

For SIGSEGV (usually an unintentional error), gdb usually does the right 
thing and gives you the offending stack trace.

Ryan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Short gdb question.
  2012-05-03 20:47 Short gdb question eric_justin_allan
  2012-05-03 21:01 ` Ryan Johnson
@ 2012-05-04  2:21 ` Reid Thompson
  2012-05-04  3:11   ` Christopher Faylor
  1 sibling, 1 reply; 10+ messages in thread
From: Reid Thompson @ 2012-05-04  2:21 UTC (permalink / raw)
  To: cygwin

On 5/3/2012 7:47 PM, eric_justin_allan@cfl.rr.com wrote:
> Is this the right place to suggest that gdb be upgraded for cygwin. If 
> not where could I suggest that? If this is an acceptable place then 
> can I add here that if you guys do upgrade gdb that I was hoping you 
> could make it a bit more detailed maybe make it to show a bit more 
> information about crashes. An example is that I m working with a 
> linked list and when the program crashes gdb prints out and only 
> prints out the words below this text. I am left clueless about the error.
>
> Program received signal SIGABRT, Aborted.
> 0x7ffe0304 in ?? ()
>
>
Just...
download, configure, make, make install
http://ftp.gnu.org/gnu/gdb/

$ /opt/removethis/bin/gdb.exe --version
GNU gdb (GDB) 7.4
Copyright (C) 2012 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/>.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Short gdb question.
  2012-05-04  2:21 ` Reid Thompson
@ 2012-05-04  3:11   ` Christopher Faylor
  2012-05-04  4:44     ` eric_justin_allan
  0 siblings, 1 reply; 10+ messages in thread
From: Christopher Faylor @ 2012-05-04  3:11 UTC (permalink / raw)
  To: cygwin

On Thu, May 03, 2012 at 10:21:07PM -0400, Reid Thompson wrote:
>On 5/3/2012 7:47 PM, eric_justin_allan@cfl.rr.com wrote:
>> Is this the right place to suggest that gdb be upgraded for cygwin. If 
>> not where could I suggest that? If this is an acceptable place then 
>> can I add here that if you guys do upgrade gdb that I was hoping you 
>> could make it a bit more detailed maybe make it to show a bit more 
>> information about crashes. An example is that I m working with a 
>> linked list and when the program crashes gdb prints out and only 
>> prints out the words below this text. I am left clueless about the error.
>>
>> Program received signal SIGABRT, Aborted.
>> 0x7ffe0304 in ?? ()
>>
>>
>Just...
>download, configure, make, make install
>http://ftp.gnu.org/gnu/gdb/
>
>$ /opt/removethis/bin/gdb.exe --version
>GNU gdb (GDB) 7.4
>Copyright (C) 2012 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/>.

...and find out that the above behavior will not change in any way in the
new version of gdb.

Incidentally, I just resigned as the gdb maintainer for Windows.

Anyone else want to take on the mantle?

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Short gdb question.
  2012-05-04  3:11   ` Christopher Faylor
@ 2012-05-04  4:44     ` eric_justin_allan
  2012-05-04 14:37       ` Reid Thompson
  0 siblings, 1 reply; 10+ messages in thread
From: eric_justin_allan @ 2012-05-04  4:44 UTC (permalink / raw)
  To: cygwin

Christopher Faylor wrote:
> On Thu, May 03, 2012 at 10:21:07PM -0400, Reid Thompson wrote:
>> On 5/3/2012 7:47 PM, eric_justin_allan@cfl.rr.com wrote:
>>> Is this the right place to suggest that gdb be upgraded for cygwin. If
>>> not where could I suggest that? If this is an acceptable place then
>>> can I add here that if you guys do upgrade gdb that I was hoping you
>>> could make it a bit more detailed maybe make it to show a bit more
>>> information about crashes. An example is that I m working with a
>>> linked list and when the program crashes gdb prints out and only
>>> prints out the words below this text. I am left clueless about the error.
>>>
>>> Program received signal SIGABRT, Aborted.
>>> 0x7ffe0304 in ?? ()
>>>
>>>
>> Just...
>> download, configure, make, make install
>> http://ftp.gnu.org/gnu/gdb/
>>
>> $ /opt/removethis/bin/gdb.exe --version
>> GNU gdb (GDB) 7.4
>> Copyright (C) 2012 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/>.
> ...and find out that the above behavior will not change in any way in the
> new version of gdb.
>
> Incidentally, I just resigned as the gdb maintainer for Windows.
>
> Anyone else want to take on the mantle?
>
> cgf
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>
Alright if I download and compile it can I just mv gdb.exe into /bin and 
overwrite gdb.exe?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Short gdb question.
  2012-05-04  4:44     ` eric_justin_allan
@ 2012-05-04 14:37       ` Reid Thompson
  2012-05-04 14:40         ` Reid Thompson
  2012-05-05 20:30         ` eric_justin_allan
  0 siblings, 2 replies; 10+ messages in thread
From: Reid Thompson @ 2012-05-04 14:37 UTC (permalink / raw)
  To: eric_justin_allan; +Cc: Reid Thompson, cygwin

On Fri, 2012-05-04 at 00:45 -0700, eric_justin_allan@cfl.rr.com wrote:
> Alright if I download and compile it can I just mv gdb.exe into /bin
> and 
> overwrite gdb.exe?
> 

use
./configure --prefix=/
make
make install

and it should end up in the right place




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

* Re: Short gdb question.
  2012-05-04 14:37       ` Reid Thompson
@ 2012-05-04 14:40         ` Reid Thompson
  2012-05-04 14:47           ` Ryan Johnson
  2012-05-05 20:30         ` eric_justin_allan
  1 sibling, 1 reply; 10+ messages in thread
From: Reid Thompson @ 2012-05-04 14:40 UTC (permalink / raw)
  To: eric_justin_allan; +Cc: Reid Thompson, cygwin

On Fri, 2012-05-04 at 14:37 +0000, Reid Thompson wrote:
> On Fri, 2012-05-04 at 00:45 -0700, eric_justin_allan@cfl.rr.com wrote:
> > Alright if I download and compile it can I just mv gdb.exe into /bin
> > and 
> > overwrite gdb.exe?
> > 
> 
> use
> ./configure --prefix=/
> make
> make install
> 
> and it should end up in the right place
> 

I actually usually use

./configure --prefix=/usr


and everything ends up in the correct place



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

* Re: Short gdb question.
  2012-05-04 14:40         ` Reid Thompson
@ 2012-05-04 14:47           ` Ryan Johnson
  0 siblings, 0 replies; 10+ messages in thread
From: Ryan Johnson @ 2012-05-04 14:47 UTC (permalink / raw)
  To: cygwin

On 04/05/2012 8:39 AM, Reid Thompson wrote:
> On Fri, 2012-05-04 at 14:37 +0000, Reid Thompson wrote:
>> On Fri, 2012-05-04 at 00:45 -0700, eric_justin_allan@cfl.rr.com wrote:
>>> Alright if I download and compile it can I just mv gdb.exe into /bin
>>> and
>>> overwrite gdb.exe?
>>>
>> use
>> ./configure --prefix=/
>> make
>> make install
>>
>> and it should end up in the right place
>>
> I actually usually use
>
> ./configure --prefix=/usr
>
>
> and everything ends up in the correct place
I always put stuff like this in ~/apps/$APP_NAME-$VERSION and add the 
appropriate bits to PATH, LD_LIBRARY_PATH and MANPATH... then later when 
I decide to upgrade/change/revert it's a simple matter of changing 
environment veriables...

Ryan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Short gdb question.
  2012-05-04 14:37       ` Reid Thompson
  2012-05-04 14:40         ` Reid Thompson
@ 2012-05-05 20:30         ` eric_justin_allan
  2012-05-06  3:24           ` Earnie Boyd
  1 sibling, 1 reply; 10+ messages in thread
From: eric_justin_allan @ 2012-05-05 20:30 UTC (permalink / raw)
  To: Cygwin Mailing List

Reid Thompson wrote:
> On Fri, 2012-05-04 at 00:45 -0700, eric_justin_allan@cfl.rr.com wrote:
>> Alright if I download and compile it can I just mv gdb.exe into /bin
>> and
>> overwrite gdb.exe?
>>
> use
> ./configure --prefix=/
> make
> make install
>
> and it should end up in the right place
>
>
>
Yea all I did was get install errors after a very long compilation. 
here's a copy of the errors:
$ make install
make[1]: Entering directory `/usr/src/gdb-7.4.1'
/bin/sh ./mkinstalldirs /  /
make[2]: Entering directory `/usr/src/gdb-7.4.1/bfd'
make  install-recursive
make[3]: Entering directory `/usr/src/gdb-7.4.1/bfd'
Making install in doc
make[4]: Entering directory `/usr/src/gdb-7.4.1/bfd/doc'
test -z "//share/info" || /usr/bin/mkdir -p "//share/info"
/usr/bin/mkdir: cannot create directory `//share': Read-only file system
Makefile:661: recipe for target `install-info-am' failed
make[4]: *** [install-info-am] Error 1
make[4]: Leaving directory `/usr/src/gdb-7.4.1/bfd/doc'
Making install in po
make[4]: Entering directory `/usr/src/gdb-7.4.1/bfd/po'
if test -r .././../mkinstalldirs; then \
   .././../mkinstalldirs //share; \
else \
   ../mkinstalldirs //share; \
fi
mkdir -p -- //share
mkdir: cannot create directory `//share': Read-only file system
Makefile:507: recipe for target `install-data-yes' failed
make[4]: *** [install-data-yes] Error 1
make[4]: Leaving directory `/usr/src/gdb-7.4.1/bfd/po'
make[4]: Entering directory `/usr/src/gdb-7.4.1/bfd'
make[5]: Entering directory `/usr/src/gdb-7.4.1/bfd'
make[5]: Nothing to be done for `install-exec-am'.
test -z "//include" || /usr/bin/mkdir -p "//include"
/usr/bin/mkdir: cannot create directory `//include': Read-only file system
Makefile:1564: recipe for target `install-bfdincludeHEADERS' failed
make[5]: *** [install-bfdincludeHEADERS] Error 1
make[5]: Leaving directory `/usr/src/gdb-7.4.1/bfd'
Makefile:1734: recipe for target `install-am' failed
make[4]: *** [install-am] Error 2
make[4]: Leaving directory `/usr/src/gdb-7.4.1/bfd'
Makefile:1591: recipe for target `install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/usr/src/gdb-7.4.1/bfd'
Makefile:1728: recipe for target `install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory `/usr/src/gdb-7.4.1/bfd'
Makefile:2579: recipe for target `install-bfd' failed
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory `/usr/src/gdb-7.4.1'
Makefile:2082: recipe for target `install' failed
make: *** [install] Error 2




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Short gdb question.
  2012-05-05 20:30         ` eric_justin_allan
@ 2012-05-06  3:24           ` Earnie Boyd
  0 siblings, 0 replies; 10+ messages in thread
From: Earnie Boyd @ 2012-05-06  3:24 UTC (permalink / raw)
  To: cygwin

On Sat, May 5, 2012 at 7:31 PM, eric_justin_allan wrote:
> Reid Thompson wrote:
>>
>> On Fri, 2012-05-04 at 00:45 -0700, eric_justin_allan@cfl.rr.com wrote:
>>>
>>> Alright if I download and compile it can I just mv gdb.exe into /bin
>>> and
>>> overwrite gdb.exe?
>>>
>> use
>> ./configure --prefix=/

It has already been stated that the configure prefix should be stated
as --prefix='' to avoid

> test -z "//share/info" || /usr/bin/mkdir -p "//share/info"
> /usr/bin/mkdir: cannot create directory `//share': Read-only file system

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2012-05-06  3:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-03 20:47 Short gdb question eric_justin_allan
2012-05-03 21:01 ` Ryan Johnson
2012-05-04  2:21 ` Reid Thompson
2012-05-04  3:11   ` Christopher Faylor
2012-05-04  4:44     ` eric_justin_allan
2012-05-04 14:37       ` Reid Thompson
2012-05-04 14:40         ` Reid Thompson
2012-05-04 14:47           ` Ryan Johnson
2012-05-05 20:30         ` eric_justin_allan
2012-05-06  3:24           ` Earnie Boyd

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).