You are not logged in.

#1 2009-08-11 05:44:47

DrMikeDuke
Member
From: Australia
Registered: 2008-05-12
Posts: 79
Website

[Solved] using GDB

Hey,

I hope this is in the right place. Anyhow, I'm trying to help find out more about a bug in pacman I posted on bug-track. But I'm not sure how to get GDB to do what I want it to do (and yes I've man'd and looked about..:P) Anyhow. What im trying to do is to run pacman in GDB and wait for it to segfault (it will) and do a backtrace. Trouble is I cant seem to get GDB to RUN it.

Any ideas?

Thanks!!

Last edited by DrMikeDuke (2009-08-11 11:23:51)


Workstation: Core i7 2600k | Asus PBZ68-V/GEN3 | 8GB DDR3-2000 | Gainward GLH GTX570 | Velociraptor 300 | AntecSS 850W | Essence ST | Corsair 800D | Win7x64 Pro/Arch LinuxX64
Server: 2x Six-Core AMD Opteron Processor 8439 SE, 64GB DDR2 ECC, Tyan S2932-SI, Areca ARC-1230 Raid, PCP&C 1Kw PSU, LSi FusionMPT Ultra320 SCSI/Tandberg LTO4 Autoloader
Laptop: Alienware M14xR3

Offline

#2 2009-08-11 06:16:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Solved] using GDB

If it's an operation like -Suy that needs to be run as root, make sure that you log in as root first. Then:

gdb pacman

At the prompt:

run -Suy

Offline

#3 2009-08-11 11:22:30

DrMikeDuke
Member
From: Australia
Registered: 2008-05-12
Posts: 79
Website

Re: [Solved] using GDB

skottish wrote:

If it's an operation like -Suy that needs to be run as root, make sure that you log in as root first. Then:

gdb pacman

At the prompt:

run -Suy

thanks a lot mate. worked like a charm. very easy when you know how big_smile hard when you dont smile


Workstation: Core i7 2600k | Asus PBZ68-V/GEN3 | 8GB DDR3-2000 | Gainward GLH GTX570 | Velociraptor 300 | AntecSS 850W | Essence ST | Corsair 800D | Win7x64 Pro/Arch LinuxX64
Server: 2x Six-Core AMD Opteron Processor 8439 SE, 64GB DDR2 ECC, Tyan S2932-SI, Areca ARC-1230 Raid, PCP&C 1Kw PSU, LSi FusionMPT Ultra320 SCSI/Tandberg LTO4 Autoloader
Laptop: Alienware M14xR3

Offline

Board footer

Powered by FluxBB