Commit graph

33 commits

Author SHA1 Message Date
Rosen Penev
525b8f0650 gdb: Update to 8.1
Tested on Turris Omnia (mvebu).

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-06-07 09:05:32 +02:00
Alexander Couzens
c61a239514
add PKG_CPE_ID ids to package and tools
CPE ids helps to tracks CVE in packages.
https://cpe.mitre.org/specification/

Thanks to swalker for CPE to package mapping and
keep tracking CVEs.

Acked-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2017-11-17 02:24:35 +01:00
Stijn Tintel
1d7042231b gdb: bump to 8.0.1
Add -static-libstdc++ to TARGET_LDFLAGS to avoid a hard dependency on
libstdc++, and -Wl,--gc-sections to further reduce the size on platforms
that support it.

Fixes CVE-2017-9778.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2017-09-29 06:33:39 +03:00
Alexandru Ardelean
079d57b0f2 gdb: disable simulator ; it's broken on ppc
Error is:
```
ompile-loc2c.o compile-c-support.o inflow.o    init.o \
	  ../sim/ppc/libsim.a -lreadline ../opcodes/libopcodes.a ../bfd/libbfd.a -L./../zlib -lz  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lncurses -lm     ../libiberty/libiberty.a  build-gnulib/import/libgnu.a  -ldl -Wl,--dynamic-list=./proc-service.list
../sim/ppc/libsim.a(idecode.o): In function `update_time_from_event':
idecode.c:(.text+0x170): undefined reference to `error'
../sim/ppc/libsim.a(idecode.o): In function `event_queue_tick':
idecode.c:(.text+0x1cc): undefined reference to `error'
idecode.c:(.text+0x28c): undefined reference to `error'
idecode.c:(.text+0x318): undefined reference to `error'
../sim/ppc/libsim.a(idecode.o): In function `cpu_halt.constprop.6':
idecode.c:(.text+0x398): undefined reference to `error'
../sim/ppc/libsim.a(idecode.o):idecode.c:(.text+0x4e4): more undefined references to `error' follow
collect2: error: ld returned 1 exit status
Makefile:1420: recipe for target 'gdb' failed
make[5]: *** [gdb] Error 1
```

Seems others are running into this as well.
The problem seems to be that some code may be built
as C++ and not C, which may explain the linker error.

On this thread reply:
   https://sourceware.org/ml/gdb/2016-11/msg00045.html
it mentions that the simulator should not call GDB's
"error" function directly, but rather use the "host_callback"
struct.

I have no idea about the use of the GDB simulator within
the OpenWrt/LEDE community.

So, I took the easier route, which is to disable the simulator.
(Also suggested here: https://sourceware.org/ml/gdb/2016-11/msg00047.html )

If needed, I can make an effort to fix the simulator for PPC.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-06-07 18:31:10 +02:00
Alexandru Ardelean
ab485383fa gdb: remove Build/Compile rule ; default one works
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-06-07 18:31:10 +02:00
Yousong Zhou
46e390322a gdb: fix invalid sigprocmask call
Fixes FS#637

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-03-24 11:10:22 +08:00
Felix Fietkau
9827c3e9b9 gdb: update to version 7.12.1, fix glibc 2.25 build issues
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-02-11 20:34:33 +01:00
Hauke Mehrtens
4061c8eb53 Revert "gdb: fix build with gcc 4.1.2 as host compiler"
Support for such old gcc version is not needed.

This reverts commit 2694d43b05.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-01-07 19:53:36 +01:00
Felix Fietkau
720b99215d treewide: clean up download hashes
Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-12-16 22:39:22 +01:00
Hannu Nyman
785cdc3cf2 package/devel/gdb: Update to 7.11.1
Update gdb to version 7.11.1 to match the version in toolchain.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-08-15 15:32:37 +02:00
Hauke Mehrtens
2694d43b05 gdb: fix build with gcc 4.1.2 as host compiler
The additional warnings are causing compile errors on gcc version 4.1.2
as a host compiler.

cc -c  -Wall -Wdeclaration-after-statement -Wpointer-arith
-Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-
style-definition -Wformat-nonliteral  -I. -I. -I./../../include
filter_host.c
cc1: error: unrecognized command line option "-Wempty-body"
cc1: error: unrecognized command line option "-Wmissing-parameter-type"
cc1: error: unrecognized command line option "-Wold-style-declaration"
cc1: error: unrecognized command line option "-Wempty-body"
cc1: error: unrecognized command line option "-Wmissing-parameter-type"
cc1: error: unrecognized command line option "-Wold-style-declaration"

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-08-01 22:25:54 +02:00
Alexey Brodkin
1f0a9715d2 package/devel/gdb-arc: Add target GDB for ARC
ARC port of GDB is not yet upstream so we need to use
sources from Synopsys GitHub repo.

Given Synopys' commitment to upstream ARC support in GDB
in the nearest future it might be simpler to add a separate
package for ARC GDB instead of patching generic GDB package.
This way once ARC GDB stuff gets uptreamed we'll only need
to remove that new "gdb-arc" package.

Note 1 very minor change in generic gdb package was done -
it now depends on !arc (while "gdb-arc" depends on "arc").

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2016-06-13 22:51:42 +02:00
John Crispin
f63aae81c2 package/devel/gdb: Update to 7.11
Update gdb to version 7.11

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 48990
2016-03-10 19:11:46 +00:00
Felix Fietkau
09997e41ae gdb: fix powerpc build issues with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48731
2016-02-16 21:30:20 +00:00
John Crispin
b750ea8568 package/devel/gdb: update to 7.10.1
Minor bugfix update, released in Dec 2015
https://www.gnu.org/software/gdb/news/

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 48709
2016-02-12 08:31:11 +00:00
Felix Fietkau
55a76c19b1 gdb: update to the latest version, fixes a build error with gcc 5.2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46775
2015-09-03 13:14:50 +00:00
Steven Barth
e71141ef23 gdb: fix compilation for x86_64 with musl
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 46249
2015-07-07 17:30:08 +00:00
Nicolas Thill
47e0c28153 gdb: disable liblzma explictly
* fix build failure when gdb is build after liblzma
 * bump release number

Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 45745
2015-05-24 19:15:54 +00:00
Felix Fietkau
5d9eeab64a build: remove obsolete references to cris and avr32
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44965
2015-03-24 10:07:40 +00:00
John Crispin
74a3a77bcd license info - revert r43155
turns out that r43155 adds duplicate info.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43167
2014-11-03 09:56:44 +00:00
John Crispin
c10d97484a Add more license tags with SPDX identifiers
Note, that licensing stuff is a nightmare: many packages does not clearly
state their licenses, and often multiple source files are simply copied
together - each with different licensing information in the file headers.

I tried hard to ensure, that the license information extracted into the OpenWRT's
makefiles fit the "spirit" of the packages, e.g. such small packages which
come without a dedicated source archive "inherites" the OpenWRT's own license
in my opinion.

However, I can not garantee that I always picked the correct information
and/or did not miss license information.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 43155
2014-11-03 08:01:08 +00:00
Steven Barth
bec9d38fa4 Add a few SPDX tags
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43151
2014-11-02 12:20:54 +00:00
Nicolas Thill
7e2e5ff675 gdb: fix build failure on arm
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 43042
2014-10-24 11:19:29 +00:00
Felix Fietkau
338892ddf8 gdb: update to version 7.8, fix musl build
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42979
2014-10-19 22:49:42 +00:00
Florian Fainelli
a2abc43104 gdb: do not depend on libthread-db when using musl libc
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 35809
2013-02-26 16:39:59 +00:00
Florian Fainelli
e5effc8c4c gdb: recategorize from utils to devel in menuconfig
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34291
2012-11-21 20:26:51 +00:00
Florian Fainelli
8ca4fd7ad1 gdb: fix debugging of MIPS(el) applications
GDB previously failed with the following:

root@OpenWrt:/# gdb busybox
[snip]
(gdb) r
Starting program: /bin/busybox
GDB bug: target.c (gdb_signal_from_host): unrecognized real-time signal

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34258
2012-11-19 14:38:02 +00:00
Florian Fainelli
3c1642a9e1 gdb: add missing zlib dependency
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34256
2012-11-19 14:37:22 +00:00
Felix Fietkau
f0634ee32b gdb: depend on zlib if zlib is selected
gdb can read debug informations in produced binaries with compressed debug sections if gdb is compiled with `zlib'.

Signed-off-by: Jiri Slachta <slachta@cesnet.cz>

SVN-Revision: 34007
2012-10-30 00:45:51 +00:00
Felix Fietkau
e6474b72fd gdb: use the libthread-db package instead of throwing the lib into the gdbserver package
SVN-Revision: 34000
2012-10-29 19:25:34 +00:00
Felix Fietkau
bf9f43e912 gdb: update to version 7.5
SVN-Revision: 33998
2012-10-29 19:25:26 +00:00
Florian Fainelli
c0030384e5 gdb: fix patch directory after r33706
git-svn did not properly track this move, thanks to swalker for noticing.

SVN-Revision: 33745
2012-10-13 17:46:37 +00:00
Felix Fietkau
5bb789340e gdb: move to package/devel/
SVN-Revision: 33706
2012-10-10 13:27:10 +00:00