Ruben I Safir | 14 Apr 04:30 2004

Debugging cdparanoia in C

Hello

i've been working with paranoiaIII in order to make a new interface in GTK for
ripping ogg files from cdda and I'm very stuck on the cdrom interface.

I've tried to compile the program with degugging symbol on from the CVS archive,
both using the make debug command and adding -g and -ggbd into the make files.

Specifically, I wanted to learn the interface to the cdrom discovery routines in 
your libraries, especially cdrom_drive *cdda_find_a_cdrom(int messagedest,char **messages)
in scan_devices.c.  I just can't get a handle on any lines for degugging.  I can't break
on the function, I can't seem to even get main() to give me line numbers for stepping.

I'm a moderate C programmer with some experience, mostly with ANSI business logic,
using programs of my own creation.

when I run:
gdb /home/ruben/paranoia-III/cdparanoia 
I get the following session

----------------------------------------------------------
(gdb) set arg -Q
(gdb) break main
Breakpoint 1 at 0x804904b
(gdb) run 
Starting program: /home/ruben/paranoia-III/cdparanoia -Q

Breakpoint 1, 0x0804904b in main ()
(gdb) step
Single stepping until exit from function main, 
(Continue reading)

Ruben Safir Secretary NYLXS | 16 Apr 03:34 2004

Re: Debugging cdparanoia in C

Is this list monitored?

Ruben
On Tue, Apr 13, 2004 at 10:30:05PM -0400, Ruben Safir wrote:
> Hello
> 
> i've been working with paranoiaIII in order to make a new interface in GTK for
> ripping ogg files from cdda and I'm very stuck on the cdrom interface.
> 
> I've tried to compile the program with degugging symbol on from the CVS archive,
> both using the make debug command and adding -g and -ggbd into the make files.
> 
> Specifically, I wanted to learn the interface to the cdrom discovery routines in 
> your libraries, especially cdrom_drive *cdda_find_a_cdrom(int messagedest,char **messages)
> in scan_devices.c.  I just can't get a handle on any lines for degugging.  I can't break
> on the function, I can't seem to even get main() to give me line numbers for stepping.
> 
> I'm a moderate C programmer with some experience, mostly with ANSI business logic,
> using programs of my own creation.
> 
> when I run:
> gdb /home/ruben/paranoia-III/cdparanoia 
> I get the following session
> 
> ----------------------------------------------------------
> (gdb) set arg -Q
> (gdb) break main
> Breakpoint 1 at 0x804904b
> (gdb) run 
> Starting program: /home/ruben/paranoia-III/cdparanoia -Q
(Continue reading)


Gmane