Re: Backtrace library [1/3]

2012-09-19 Thread Ryan Mansfield
On 12-09-17 12:39 PM, Ian Lance Taylor wrote: On Thu, Sep 13, 2012 at 1:00 PM, Diego Novillo dnovi...@google.com wrote: On 2012-09-11 18:53 , Ian Lance Taylor wrote: 2012-09-11 Ian Lance Taylor i...@google.com * Initial implementation. OK. Thanks for all the reviews. I have

Re: Backtrace library [1/3]

2012-09-19 Thread Ian Lance Taylor
On Wed, Sep 19, 2012 at 1:56 PM, Ryan Mansfield rmansfi...@qnx.com wrote: I'm hitting the following build issue /bin/sh ./libtool --tag=CC --mode=compile i686-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I ../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I

Re: Backtrace library [1/3]

2012-09-19 Thread Ryan Mansfield
On 12-09-19 06:17 PM, Ian Lance Taylor wrote: On Wed, Sep 19, 2012 at 1:56 PM, Ryan Mansfield rmansfi...@qnx.com wrote: I'm hitting the following build issue /bin/sh ./libtool --tag=CC --mode=compile i686-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I

Re: Backtrace library [1/3]

2012-09-19 Thread Ian Lance Taylor
On Wed, Sep 19, 2012 at 3:31 PM, Ryan Mansfield rmansfi...@qnx.com wrote: $ head config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64.

Re: Backtrace library [1/3]

2012-09-19 Thread Ryan Mansfield
On 12-09-19 06:58 PM, Ian Lance Taylor wrote: Thanks for the additional info. I have committed this patch, which should fix the problem. Bootstrapped and ran libbacktrace tests on x86_64-unknown-linux-gnu. Thanks Ian. This patch fixes the issue. Regards, Ryan Mansfield 2012-09-19 Ian

Re: Backtrace library [1/3]

2012-09-18 Thread Gerald Pfeifer
On Mon, 17 Sep 2012, Ian Lance Taylor wrote: While this should be fixed now, note that it should only arise if i386-unknown-freebsd10.0 does not use ELF. If this is an ELF based system, then we need to discover why it was not recognized as such. What is the output of awk -f

Re: Backtrace library [1/3]

2012-09-18 Thread Gerald Pfeifer
It turns out make bootstrap work now, but make install is still broken on i386-unknown-freebsd10.0: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/scratch2/tmp/gerald/gcc-HEAD/libbacktrace -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition

Re: Backtrace library [1/3]

2012-09-17 Thread Ian Lance Taylor
On Thu, Sep 13, 2012 at 1:00 PM, Diego Novillo dnovi...@google.com wrote: On 2012-09-11 18:53 , Ian Lance Taylor wrote: 2012-09-11 Ian Lance Taylor i...@google.com * Initial implementation. OK. Thanks for all the reviews. I have committed the libbacktrace library to trunk. I

Re: Backtrace library [1/3]

2012-09-17 Thread Gerald Pfeifer
On Mon, 17 Sep 2012, Ian Lance Taylor wrote: Please let me know about any build problems. i386-unknown-freebsd10.0 now fails as follows. Others presumably have not run into this since This source file is compiled if the unwind library is not available.

Re: Backtrace library [1/3]

2012-09-17 Thread Ian Lance Taylor
On Mon, Sep 17, 2012 at 2:00 PM, Gerald Pfeifer ger...@pfeifer.com wrote: On Mon, 17 Sep 2012, Ian Lance Taylor wrote: Please let me know about any build problems. i386-unknown-freebsd10.0 now fails as follows. Others presumably have not run into this since This source file is compiled if

Re: Backtrace library [1/3]

2012-09-17 Thread Ian Lance Taylor
On Mon, Sep 17, 2012 at 2:00 PM, Gerald Pfeifer ger...@pfeifer.com wrote: On Mon, 17 Sep 2012, Ian Lance Taylor wrote: Please let me know about any build problems. i386-unknown-freebsd10.0 now fails as follows. Others presumably have not run into this since This source file is compiled if

Re: Backtrace library [1/3]

2012-09-13 Thread Diego Novillo
On 2012-09-11 18:53 , Ian Lance Taylor wrote: 2012-09-11 Ian Lance Taylor i...@google.com * Initial implementation. OK. Diego.

Re: Backtrace library [1/3]

2012-09-12 Thread Ian Lance Taylor
On Tue, Sep 11, 2012 at 4:36 PM, Lawrence Crowl cr...@googlers.com wrote: On 9/11/12, Ian Lance Taylor i...@google.com wrote: This patch is the interface to and configury of libbacktrace. I've separated these out as the parts of libbacktrace that require the most review. The interface to

Re: Backtrace library [1/3]

2012-09-12 Thread Joseph S. Myers
On Tue, 11 Sep 2012, Ian Lance Taylor wrote: The configury is fairly standard. Note that libbacktrace is built as both a host library (to link into the compilers) and as a target library (to link into libgo and possibly other libraries). Under what circumstances will the library be built for

Re: Backtrace library [1/3]

2012-09-12 Thread Toon Moene
On 09/12/2012 01:08 AM, Ian Lance Taylor wrote: The interface is somewhat constrained in that, on systems that support anonymous mmap, it does not call malloc. That makes it possible to do a symbolic backtrace from a signal handler. It would also make it possible to have a traceback of a

Re: Backtrace library [1/3]

2012-09-12 Thread Lawrence Crowl
On 9/12/12, Ian Lance Taylor i...@google.com wrote: On Sep 11, 2012 Lawrence Crowl cr...@googlers.com wrote: On 9/11/12, Ian Lance Taylor i...@google.com wrote: This patch is the interface to and configury of libbacktrace. I've separated these out as the parts of libbacktrace that

Re: Backtrace library [1/3]

2012-09-12 Thread Ian Lance Taylor
On Wed, Sep 12, 2012 at 9:23 AM, Joseph S. Myers jos...@codesourcery.com wrote: On Tue, 11 Sep 2012, Ian Lance Taylor wrote: The configury is fairly standard. Note that libbacktrace is built as both a host library (to link into the compilers) and as a target library (to link into libgo and

Re: Backtrace library [1/3]

2012-09-12 Thread Ian Lance Taylor
On Wed, Sep 12, 2012 at 10:31 AM, Lawrence Crowl cr...@googlers.com wrote: How about typing it as a pointer to an incomplete struct? extern void *backtrace_create_state (... becomes, e.g., struct backtrace_state; extern backtrace_state *backtrace_create_state (... Yeah, that is probably

Re: Backtrace library [1/3]

2012-09-12 Thread Joseph S. Myers
On Wed, 12 Sep 2012, Ian Lance Taylor wrote: On Wed, Sep 12, 2012 at 9:23 AM, Joseph S. Myers jos...@codesourcery.com wrote: On Tue, 11 Sep 2012, Ian Lance Taylor wrote: The configury is fairly standard. Note that libbacktrace is built as both a host library (to link into the

Re: Backtrace library [1/3]

2012-09-12 Thread Ian Lance Taylor
On Wed, Sep 12, 2012 at 2:04 PM, Joseph S. Myers jos...@codesourcery.com wrote: On Wed, 12 Sep 2012, Ian Lance Taylor wrote: On Wed, Sep 12, 2012 at 9:23 AM, Joseph S. Myers jos...@codesourcery.com wrote: On Tue, 11 Sep 2012, Ian Lance Taylor wrote: The configury is fairly standard.

Backtrace library [1/3]

2012-09-11 Thread Ian Lance Taylor
I have finished the initial implementation of the backtrace library I proposed at http://gcc.gnu.org/ml/gcc/2012-08/msg00317.html . I've separated the work into three patches. These patches only implement the backtrace library itself; actual use of the library will follow in separate patches.

Re: Backtrace library [1/3]

2012-09-11 Thread Gabriel Dos Reis
On Tue, Sep 11, 2012 at 5:53 PM, Ian Lance Taylor i...@google.com wrote: This patch is the interface to and configury of libbacktrace. I've separated these out as the parts of libbacktrace that require the most review. The interface to libbacktrace is in the file backtrace.h. This is what

Re: Backtrace library [1/3]

2012-09-11 Thread Chris Lattner
On Sep 11, 2012, at 3:53 PM, Ian Lance Taylor i...@google.com wrote: I have finished the initial implementation of the backtrace library I proposed at http://gcc.gnu.org/ml/gcc/2012-08/msg00317.html . I've separated the work into three patches. These patches only implement the backtrace

Re: Backtrace library [1/3]

2012-09-11 Thread Ian Lance Taylor
On Tue, Sep 11, 2012 at 4:01 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: On Tue, Sep 11, 2012 at 5:53 PM, Ian Lance Taylor i...@google.com wrote: This patch is the interface to and configury of libbacktrace. I've separated these out as the parts of libbacktrace that require the

Re: Backtrace library [1/3]

2012-09-11 Thread Gabriel Dos Reis
On Tue, Sep 11, 2012 at 6:08 PM, Ian Lance Taylor i...@google.com wrote: On Tue, Sep 11, 2012 at 4:01 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: On Tue, Sep 11, 2012 at 5:53 PM, Ian Lance Taylor i...@google.com wrote: This patch is the interface to and configury of

Re: Backtrace library [1/3]

2012-09-11 Thread Ian Lance Taylor
On Tue, Sep 11, 2012 at 4:07 PM, Chris Lattner clatt...@apple.com wrote: FYI, backtrace is a well-known function provide by glibc (and other libc's). It might be best to pick another name. Good point. Thanks. I renamed it to backtrace_full. I've included the updated backtrace.h here. The

Re: Backtrace library [1/3]

2012-09-11 Thread Lawrence Crowl
On 9/11/12, Ian Lance Taylor i...@google.com wrote: This patch is the interface to and configury of libbacktrace. I've separated these out as the parts of libbacktrace that require the most review. The interface to libbacktrace is in the file backtrace.h. This is what callers will use. The

Re: Backtrace library [1/3]

2012-09-11 Thread Ian Lance Taylor
On Tue, Sep 11, 2012 at 4:36 PM, Lawrence Crowl cr...@googlers.com wrote: On 9/11/12, Ian Lance Taylor i...@google.com wrote: This patch is the interface to and configury of libbacktrace. I've separated these out as the parts of libbacktrace that require the most review. The interface to

Re: Backtrace library [1/3]

2012-09-11 Thread Chris Lattner
On Sep 11, 2012, at 4:24 PM, Ian Lance Taylor i...@google.com wrote: On Tue, Sep 11, 2012 at 4:07 PM, Chris Lattner clatt...@apple.com wrote: FYI, backtrace is a well-known function provide by glibc (and other libc's). It might be best to pick another name. Good point. Thanks. I

Re: Backtrace library [1/3]

2012-09-11 Thread Ian Lance Taylor
On Tue, Sep 11, 2012 at 9:36 PM, Chris Lattner clatt...@apple.com wrote: On Sep 11, 2012, at 4:24 PM, Ian Lance Taylor i...@google.com wrote: On Tue, Sep 11, 2012 at 4:07 PM, Chris Lattner clatt...@apple.com wrote: FYI, backtrace is a well-known function provide by glibc (and other

Re: Backtrace library [1/3]

2012-09-11 Thread Gabriel Dos Reis
On Tue, Sep 11, 2012 at 11:49 PM, Ian Lance Taylor i...@google.com wrote: On Tue, Sep 11, 2012 at 9:36 PM, Chris Lattner clatt...@apple.com wrote: On Sep 11, 2012, at 4:24 PM, Ian Lance Taylor i...@google.com wrote: On Tue, Sep 11, 2012 at 4:07 PM, Chris Lattner clatt...@apple.com wrote: