snapshots getting larger

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

snapshots getting larger

Theo de Raadt
Some of you may notice the new snapshots are quite a big bigger.
This is because we are going to start compiling libraries with
-g (and linking .so libraries with -X instead of -x).

This has some incredibe consequences for developers.  We can
now use gdb to actually see where we are in the libraries, as long
as a modern source tree is in /usr/src

# gdb obj/ls
Starting program: /usr/obj/bin/ls/ls
(gdb) break in write
Breakpoint 1, 0x1c01ac42 in write ()
(gdb) where
#0  0x1c01ac42 in write ()
#1  0x1c01a1f1 in __sflush (fp=0x3c0044f8) at /usr/src/lib/libc/stdio/fflush.c:75
#2  0x1c006775 in __swbuf (c=10, fp=0x3c0044f8) at /usr/src/lib/libc/stdio/wbuf.c:81
#3  0x1c0019f7 in printcol ()
#4  0x1c0010c5 in display ()
#5  0x1c000c41 in traverse ()
#6  0x1c0009a2 in ls_main ()
#7  0x1c001453 in main ()
(gdb) list
81                      if (fflush(fp))
82                              return (EOF);
83              return (c);
84      }
(gdb)

This will make 3.9 take a bit more diskspace, but what the heck, OpenBSD
is really small.

This is really super friendly to developers.

Not commited yet by Mark Kettenis, but it is coming ...

Reply | Threaded
Open this post in threaded view
|

Re: snapshots getting larger

Han Boetes
Theo de Raadt wrote:
> Some of you may notice the new snapshots are quite a big bigger.
> This is because we are going to start compiling libraries with
> -g (and linking .so libraries with -X instead of -x).

Great idea. Now I can finaly send useful backtraces for all the
coredumps I get recently.

If people want to save on diskspace they can strip the libraries
afterwards.

I also noticed it is possible to install the symbols in separate
files. Is that perhaps an option? So to create a symbols39.tgz
package.



# Han
--
Lbh unir whfg ivbyngrq gur Qvtvgny Zvyyraavhz Pbclevtug Npg  ol  oernxvat  gur
cebgrpgvba bs pbclevtugrq zngrevny. Vs lbh ner abg n pvgvmra  be  erfvqrag  bs
gur HFN, lbh evfx orvat vzcevfbarq naq uryq jvgubhg onvy sbe hc gb  gjb  jrrxf
hcba ragel gb gur HFN (c) Copyright 2001 by Hartmann Schaffer (signature only)

Reply | Threaded
Open this post in threaded view
|

Re: snapshots getting larger

Simon Morgan
In reply to this post by Theo de Raadt
Theo de Raadt <deraadt <at> cvs.openbsd.org> writes:
> This will make 3.9 take a bit more diskspace, but what the heck, OpenBSD
> is really small.

Just out of curiosity, any idea roughly how much more?

Reply | Threaded
Open this post in threaded view
|

Re: snapshots getting larger

Han Boetes
Simon Morgan wrote:
> Theo de Raadt <deraadt <at> cvs.openbsd.org> writes:
> > This will make 3.9 take a bit more diskspace, but what the heck, OpenBSD
> > is really small.
>
> Just out of curiosity, any idea roughly how much more?


yafc [hidden email]:/pub/OpenBSD/snapshots/i386> l base38.tgz
total 40343214
-r--r--r--   1 1114     1114     40343214 Dec 06 20:36 base38.tgz
yafc [hidden email]:/pub/OpenBSD/snapshots/i386> l ../../3.8/i386/base38.tgz
total 36790935
-r--r--r--   1 1114     1114     36790935 Sep 16 19:30 base38.tgz



# Han