Commit graph

115 commits

Author SHA1 Message Date
Ryan Burns
f609e8290d
Merge pull request #112455 from baloo/baloo/gdb/debuginfod
gdb: add support for debuginfod
2021-10-07 01:04:37 -07:00
lsix
43b96f66ef
gdb: 10.2 -> 11.1 (#137628)
See https://sourceware.org/pipermail/gdb/2021-September/049719.html for
release information.
2021-09-20 18:08:36 +01:00
Arthur Gautier
581cff2136 gdb: adds support for debuginfod
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
2021-08-27 04:11:38 +00:00
Lancelot SIX
8a859eca1f gdb: Add source-highlight dependency. 2021-08-12 18:13:48 +01:00
Lancelot SIX
279192c950 gdb: 10.1 -> 10.2
See https://sourceware.org/pipermail/gdb/2021-April/049400.html for
release announcement
2021-04-27 10:06:24 +01:00
sternenseemann
e75c5353bb gdb: always set --program-prefix and pass --target
This makes the targetPrefix always conform to nixpkgs' expectations
instead of relying on the autotools build system to figure it out
correctly (which is also inconsistent across versions).

See also ca9be0511b.
2021-04-16 22:56:39 +02:00
Jörg Thalheim
aaae419aac
gdb: fix musl build
fixes #104133

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
2021-02-24 09:05:34 +01:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Lancelot SIX
6d2cad8a4e
gdb: 9.2 -> 10.1
See https://lists.gnu.org/archive/html/info-gnu/2020-10/msg00009.html
for release announcement
2020-10-24 19:22:36 +01:00
Pamplemousse
91aed208f5 gdb: Give it a pname
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
2020-08-21 11:06:13 -07:00
Lancelot SIX
3d2010311f gdb: 9.1 -> 9.2
See https://lists.gnu.org/archive/html/info-gnu/2020-05/msg00008.html
for release information
2020-06-04 18:19:40 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Lancelot SIX
4e08586690 gdb: 8.3.1 -> 9.1
See https://www.gnu.org/software/gdb/download/ANNOUNCEMENT for release
information
2020-03-06 07:04:07 +01:00
tollb
ad337f7f3a
gdb: Fix abort w/NIX_DEBUG_INFO_DIRS patch (#80929)
The current gdb patch to support NIX_DEBUG_INFO_DIRS fails if
the user attempts to change the debug file directory to a
value other than the default. For instance:

(gdb) set debug-file-directory /run/booted-system/sw/lib/debug

results in:

munmap_chunk(): invalid pointer
Aborted (core dumped)

To fix this issue, the debug_file_directory is allocated
with xstrdup so that a subsequent call to xfree will succeed.
2020-02-25 01:18:09 +00:00
John Ericson
7ee98d8bb3 gdb: Fix safe path for cross 2019-12-01 17:13:24 -05:00
Viktor Vilhelm Sonesten
2c50bd3984
gdb: prepend default safe paths
Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
2019-11-25 20:48:28 +01:00
Tmplt
75348fafae gdb: use a safePaths parameter instead 2019-11-20 18:14:54 +01:00
Tmplt
a3e008420e gdb: configure a safe path instead of wrapping 2019-11-19 21:40:16 +01:00
Tmplt
6cff4ce58b gdb: don't propagate unwrapped gdb 2019-11-19 16:48:40 +01:00
Tmplt
800f280696 gdb: wrap, making libstdc++ plugin safe to load 2019-11-17 18:51:54 +01:00
Orivej Desh
e675e2763e gdb: build with libipt
This adds support for "record btrace pt" command.
2019-09-22 21:34:32 +00:00
Will Dietz
d1f7bb2ad9
gdb: 8.3 -> 8.3.1
https://lists.gnu.org/archive/html/info-gnu/2019-09/msg00006.html
2019-09-21 02:51:02 -05:00
Robin Gloster
4e60b0efae
treewide: update globin's maintained drvs 2019-08-20 19:36:05 +02:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Matthew Bauer
80b51d983a gdb: patch to use mach-o.h instead of bfd/mach-o.h
For unclear reasons, this doesn’t seem to work anymore. bfd/mach-o.h
is not accessible but mach-o.h is.

https://hydra.nixos.org/build/94542582
2019-06-09 23:56:08 -04:00
Matthew Bauer
cb385daf95 gdb: remove applied patch for darwin
This patch is no longer needed. The commit was included in this
release.

https://hydra.nixos.org/build/94447561
2019-06-07 15:52:14 -04:00
jhaasdijk
78bd2e82cc gdb: 8.2.1 -> 8.3 2019-05-15 17:46:14 +02:00
Will Dietz
dcfabd82e2
Merge pull request #52730 from dtzWill/update/gdb-8.2.1
gdb: 8.2 -> 8.2.1
2018-12-29 15:47:07 -06:00
Will Dietz
617ac0403c gdb: 8.2 -> 8.2.1
https://lists.gnu.org/archive/html/info-gnu/2018-12/msg00013.html
2018-12-23 11:01:08 -06:00
Jörg Thalheim
e4556c275c
gdb: fix cross-build 2018-12-12 08:00:15 +00:00
Frederik Rietdijk
a510aa2672 Merge master into staging-next 2018-12-03 12:18:43 +01:00
c0bw3b
0498ccd076 Treewide: use HTTPS on GNU domains
HTTP -> HTTPS for :
- http://gnu.org/
- http://www.gnu.org/
- http://elpa.gnu.org/
- http://lists.gnu.org/
- http://gcc.gnu.org/
- http://ftp.gnu.org/ (except in fetchurl mirrors)
- http://bugs.gnu.org/
2018-12-02 15:51:59 +01:00
Jörg Thalheim
5afbdde38c
gdb: switch to python3 by default 2018-12-01 14:13:46 +00:00
Orivej Desh
471f1be718 gdb: 8.1.1 -> 8.2 (#50444) 2018-11-16 07:31:05 +00:00
John Ericson
0828e2d8c3 treewide: Remove usage of remaining redundant platform compatability stuff
Want to get this out of here for 18.09, so it can be deprecated
thereafter.
2018-08-30 17:20:32 -04:00
Jörg Thalheim
9efffe0135 hurd: cleanup unmaintained target
This has been not touched in 6 years. Let's remove it to cause less
problems when adding new cross-compiling infrastructure.
This also simplify gcc significantly.
2018-08-28 22:18:02 +01:00
Will Dietz
64423342c3 gdb: 8.1 -> 8.1.1
https://www.gnu.org/software/gdb/download/ANNOUNCEMENT
2018-08-06 13:29:57 -05:00
Andrew Childs
4c76a21aae gdb: Flexible target matching for darwin
Outside of the nix-build the target is `x86_64-apple-darwin17.4.0`,
while inside the target is `x86_64-apple-darwin`. This difference
causes the fallback target configuration for darwin, which disables
gdb. Add a patch to make the target matching more flexible.
2018-03-07 11:46:55 +09:00
Tuomas Tynkkynen
33e744a5b4 gdb: 8.0.1 -> 8.1 2018-02-02 18:47:01 +02:00
John Ericson
f8741c38cd binutils, gdb: Do not expose libbfd or libopcodes, and be multitarget
There are separate derivations for these libraries and we don't want
conflict. Multitarget is generally more useful, and will eventually
speed up cross builds, so why not?!
2017-11-13 08:46:15 -05:00
Eelco Dolstra
30a1b94926
gdb: Remove --with-separate-debug-dir
We don't need this anymore since NixOS now sets $NIX_DEBUG_INFO_DIRS.
2017-10-10 12:05:00 +02:00
Lancelot SIX
653cad7a3c gdb: 8.0 -> 8.0.1
See http://lists.gnu.org/archive/html/info-gnu/2017-09/msg00005.html
for release information.
2017-09-08 17:51:23 +02:00
Daiderd Jordan
8932357e04
gdb: remove CPP workaround 2017-08-16 21:38:40 +02:00
Daiderd Jordan
bc5160eacd
gdb: fix clang build 2017-08-09 08:41:48 +02:00
Eelco Dolstra
5c5b71df5e
Add a setup hook to fill NIX_DEBUG_INFO_DIRS
This setup hook is propagated by gdb. Thus, a typical use is:

  $ nix-shell -p gdb nix nix.debug sqlite.debug ...

and gdb will be able find the debug symbols of nix etc. automatically.
2017-07-28 16:38:26 +02:00
Eelco Dolstra
5b09152898
gdb: Look for .build-id files in NIX_DEBUG_INFO_DIRS
This allows us to provide a setup hook that makes debug outputs
findable by gdb.
2017-07-28 16:38:22 +02:00
John Ericson
95c8277701 misc pkgs: Remove unneeded *Platform == *Platform comparisons
PR #26007 used these to avoid causing a mass rebuild. Now that we know
things work, we do that to clean up.
2017-06-30 10:09:31 -04:00
Daiderd Jordan
ca490a6290
gdb: disable format warnings
Fixes #26145
2017-06-11 14:10:49 +02:00
Lancelot SIX
1b32055a35
gdb: 7.12.1 -> 8.0
See http://lists.gnu.org/archive/html/info-gnu/2017-06/msg00002.html
for release announcement.
2017-06-06 09:14:56 +02:00