This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/rules
Renuka Manavalan 76bf5a0bc4 [build]: Added debug symbols to many debug dockers. (#3098)
* Added debug symbols to many debug dockers.

* For debug images *only*:
1) Archive source files into debug image
2) Archived source is copied into /src
3) Created an empty dir /debug
4) Mount both /src as ro & /debug as rw into every docker
5) Login banner will give some details on /src & /debug
6) Devs can copy core file into /debug and view it from inside a container.
7) Dev may create all gdb logs and other data directly into /debug.

* Dropped redundant REDIS_TOOLS per review comments.

* Added debug symbols to frr package and hence FRR based BGP docker.

* 1) Moved dbg_files.sh to scripts/
2) Src directories to archive are now collected from individual Makefiles.
3) Added few more debug symbols
4) Added few more debug dockers.

Here after no more changes except per review comments.

To debug:
Install required version of debug image in Switch or VM.
Copy core file into /debug of host
Get into Docker
gdb /usr/bin/<daemon> -c /debug/<your core file>
set directory /src/... <-- inside gdb to get the source

For non-in-depth debugging:

Download corresponding debug Docker image (docker-...-dbg.gz) to your VM
Load the image
Run image with entrypoint as 'bash' with dir containing core mapped in.
Run gdb on the core.
2019-07-03 22:13:55 -07:00
..
asyncsnmp-py3.mk Move platform-specific hardware plugin base packages to sonic-platform-common submodule (#1301) 2018-01-17 17:11:31 -08:00
bash.mk Fix for bash's memory-leak (#1879) 2018-07-27 17:46:33 -07:00
config [build]: Upgrade docker to 18.09 in stretch slave (#3049) 2019-06-20 09:19:33 -07:00
dbsyncd-py2.mk [swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' (#445) 2017-03-30 11:51:05 -07:00
docker-base-stretch.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-base.mk [docker-base]: Install gdbserver if INSTALL_DEBUG_TOOLS=y (#2448) 2019-01-15 15:29:52 -08:00
docker-config-engine-stretch.mk [build]: make sonic-slave-stretch as the default build docker (#2921) 2019-05-27 15:50:51 -07:00
docker-config-engine.mk Introduce ConfigDB (#808) 2017-08-01 19:02:00 -07:00
docker-database.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-dhcp-relay.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-fpm-frr.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-fpm-gobgp.mk [build]: Adding support for Free-Range-Routing stack. (#510) 2017-04-20 09:12:27 -07:00
docker-fpm-quagga.mk [installer] Copy old config files rather than only minigraph (#730) 2017-06-21 11:02:25 -07:00
docker-fpm.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-lldp-sv2.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-orchagent.mk [services] Restart SwSS service upon unexpected critical process exit (#2845) 2019-05-01 08:02:38 -07:00
docker-platform-monitor.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-ptf.mk [docker-ptf]: move docker-ptf to stretch (#2954) 2019-05-29 18:26:52 -07:00
docker-router-advertiser.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-snmp-sv2.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-sonic-mgmt.mk [sonic-mgmt]: move sonic-mgmt docker build into sonic-slave (#819) 2017-07-19 08:10:45 -07:00
docker-teamd.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-telemetry.mk [build]: Makefile: Extend to build debug docker images for all stretch dockers (#2789) 2019-04-19 18:49:21 -07:00
frr.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
functions [rules/functions][slave.mk]: Refine build output (#838) 2017-07-25 09:49:39 +03:00
gobgp.mk Add bgp container with gobgp (#358) 2017-03-02 11:33:46 -08:00
hiredis.mk Remove unnecessary build dependencies for hiredis (#91) 2016-12-07 07:26:07 -08:00
initramfs-tools.mk [baseimage]: update make file for initramfs-tools (#1967) 2018-08-22 13:04:58 -07:00
iproute2.mk [vs]: add vlan configuration support in virtual switch (#1200) 2017-11-30 14:59:25 -08:00
isc-dhcp.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
ixgbe.mk [vs]: build sonic vs kvm image (#2269) 2018-11-20 22:32:40 -08:00
libnl3.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
libteam.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
libyang.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
linux-kernel.mk [submodule] update sonic-linux-kernel to 4.9.168-1+deb9u3 (#3034) 2019-06-19 14:20:38 -07:00
lldpd.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
lm-sensors.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
mpdecimal.mk [mpdecimal]: upgrade mpdecimal to 2.4.2-2 (#2783) 2019-04-13 22:43:27 -07:00
ptf.mk Integrate ptf into buildimage (#111) 2016-12-08 09:24:48 -08:00
python3.mk Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
python-click.mk [build]: put stretch debian packages under target/debs/stretch/ (#2519) 2019-02-04 22:06:37 -08:00
quagga.mk [quagga]: collect quagga-dbg debian package (#2575) 2019-02-16 11:08:06 -08:00
radvd.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
redis-dump-load-py2.mk Build patched redis-dump-load (#2277) 2018-11-20 19:27:56 -08:00
redis.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
sairedis.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
scripts.mk [services] Restart SwSS service upon unexpected critical process exit (#2845) 2019-05-01 08:02:38 -07:00
smartmontools.mk [docker-platform-monitor]: Add smartmontools 6.6-1 (#2703) 2019-04-10 21:55:54 -07:00
snmpd.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
socat.mk [socat]: build socat with readline (#1919) 2018-08-13 01:12:58 -07:00
sonic-config.mk Introduce ConfigDB (#808) 2017-08-01 19:02:00 -07:00
sonic-daemon-base.mk [sonic-daemon-base] Create DaemonBase class for all daemons (#2570) 2019-03-06 08:55:43 +02:00
sonic-device-data.mk [build]: put stretch debian packages under target/debs/stretch/ (#2519) 2019-02-04 22:06:37 -08:00
sonic-ledd.mk Move platform-specific hardware plugin base packages to sonic-platform-common submodule (#1301) 2018-01-17 17:11:31 -08:00
sonic-platform-common.mk Move platform-specific hardware plugin base packages to sonic-platform-common submodule (#1301) 2018-01-17 17:11:31 -08:00
sonic-psud.mk [docker-platform-monitor] add psud daemon to Pmon (#2423) 2019-01-15 21:24:47 -08:00
sonic-syseepromd.mk [Pmon] Add new daemon "syseepromd" to pmon docker (#2866) 2019-06-18 11:02:24 -07:00
sonic-utilities.mk Move platform-specific hardware plugin base packages to sonic-platform-common submodule (#1301) 2018-01-17 17:11:31 -08:00
sonic-xcvrd.mk [docker-platform-monitor] make file and supervisord conf change for new xcvrd deamon (#1840) 2018-08-03 16:33:56 -07:00
supervisor.mk [docker-base]: Upgrade supervisord to 3.3.3 and fix supervisord.conf (#1390) 2018-02-14 09:40:26 +08:00
swig.mk [FRR]: Update frr to frr-7.0.1 (#2899) 2019-05-16 10:59:12 -07:00
swss-common.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
swss.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
swsssdk-py2.mk [swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' (#445) 2017-03-30 11:51:05 -07:00
swsssdk-py3.mk [swsssdk]: Update nomenclature: 'sswsdk' -> 'swsssdk' (#445) 2017-03-30 11:51:05 -07:00
tacacs.mk [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
telemetry.mk [telemetry]: SONiC system telemetry Support (#1526) 2018-03-27 13:39:04 -07:00
thrift.mk [dockers] Upgrade Mellanox syncd docker to stretch (#2640) 2019-03-12 21:38:25 -07:00