kopia lustrzana https://gitlab.com/sane-project/website
135 wiersze
5.4 KiB
HTML
135 wiersze
5.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: trouble using gdb</TITLE>
|
|
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@Wolfsburg.DE)">
|
|
<META NAME="Subject" CONTENT="Re: trouble using gdb">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: trouble using gdb</H1>
|
|
<!-- received="Fri Dec 29 10:17:07 2000" -->
|
|
<!-- isoreceived="20001229181707" -->
|
|
<!-- sent="Fri, 29 Dec 2000 19:31:22 +0100" -->
|
|
<!-- isosent="20001229183122" -->
|
|
<!-- name="Oliver Rauch" -->
|
|
<!-- email="oliver.rauch@Wolfsburg.DE" -->
|
|
<!-- subject="Re: trouble using gdb" -->
|
|
<!-- id="3A4CD87A.B5D884AF@wolfsburg.de" -->
|
|
<!-- inreplyto="20001229151222.A3113@wanadoo.fr" -->
|
|
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@Wolfsburg.DE?Subject=Re:%20trouble%20using%20gdb&In-Reply-To=<3A4CD87A.B5D884AF@wolfsburg.de>"><EM>oliver.rauch@Wolfsburg.DE</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Fri Dec 29 2000 - 10:31:22 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0310.html">Henning Meier-Geinitz: "Re: trouble using gdb"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0308.html">Oliver Rauch: "Re: astra 3400"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0306.html">stef: "trouble using gdb"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0313.html">stef: "Re: trouble using gdb"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0310.html">Henning Meier-Geinitz: "Re: trouble using gdb"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0313.html">stef: "Re: trouble using gdb"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#309">[ date ]</A>
|
|
<A HREF="index.html#309">[ thread ]</A>
|
|
<A HREF="subject.html#309">[ subject ]</A>
|
|
<A HREF="author.html#309">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
stef wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Hello,
|
|
</EM><BR>
|
|
<EM>> I am trying to write a sane backend for my scanner, and I just can't debug
|
|
</EM><BR>
|
|
<EM>> it with gdb. When I set a breakpoint in my buggy function, the stack seems ok,
|
|
</EM><BR>
|
|
<EM>> but I can't access local variables. Parameters are available. I forced static
|
|
</EM><BR>
|
|
<EM>> build of scanimage by adding '-all-static' to libtool in the Makefile.
|
|
</EM><BR>
|
|
<EM>> Here's a sample of what I get when debugging scanimage:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Breakpoint 2, sane_get_parameters (h=0x806b568, parms=0xbfff73d4) at dll-s.c:40
|
|
</EM><BR>
|
|
<EM>> 40 return ENTRY(get_parameters) (h, parms);
|
|
</EM><BR>
|
|
<EM>> (gdb) s
|
|
</EM><BR>
|
|
<EM>> sane_dll_get_parameters (handle=0x806b568, params=0xbfff73d4) at dll.c:820
|
|
</EM><BR>
|
|
<EM>> 820 DBG(3, "get_parameters(handle=%p,params=%p)\n", handle, params);
|
|
</EM><BR>
|
|
<P>Hi Stef,
|
|
<BR>
|
|
<P>I think you expected that the breakpoint was set in your program and not
|
|
<BR>
|
|
in sane_dll_*
|
|
<BR>
|
|
<P>All backends use the same function names sane_open, sane_start, ...
|
|
<BR>
|
|
so the function names for backends are renamed and you get the only one
|
|
<BR>
|
|
with the name sane_get_parameters that is visible from the frontend
|
|
<BR>
|
|
and that are the functions from sane_dll.
|
|
<BR>
|
|
<P>Ther are two possibilities:
|
|
<BR>
|
|
1) do not use sane-dll, link the frontend (scanimage) directly against your backend
|
|
<BR>
|
|
2) define the breakpoint with sourcode:linenumber. May be you can find out the function
|
|
<BR>
|
|
names of your backend but I don`t know how this is generated.
|
|
<BR>
|
|
<P>Bye
|
|
<BR>
|
|
Oliver
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Homepage: <A HREF="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</A>
|
|
sane-umax: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-umax.html">http://www.wolfsburg.de/~rauch/sane/sane-umax.html</A>
|
|
xsane: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-xsane.html">http://www.wolfsburg.de/~rauch/sane/sane-xsane.html</A>
|
|
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@Wolfsburg.DE?Subject=Re:%20trouble%20using%20gdb&In-Reply-To=<3A4CD87A.B5D884AF@wolfsburg.de>">Oliver.Rauch@Wolfsburg.DE</A>
|
|
<P>--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20trouble%20using%20gdb&In-Reply-To=<3A4CD87A.B5D884AF@wolfsburg.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0310.html">Henning Meier-Geinitz: "Re: trouble using gdb"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0308.html">Oliver Rauch: "Re: astra 3400"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0306.html">stef: "trouble using gdb"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0313.html">stef: "Re: trouble using gdb"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0310.html">Henning Meier-Geinitz: "Re: trouble using gdb"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0313.html">stef: "Re: trouble using gdb"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#309">[ date ]</A>
|
|
<A HREF="index.html#309">[ thread ]</A>
|
|
<A HREF="subject.html#309">[ subject ]</A>
|
|
<A HREF="author.html#309">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Fri Dec 29 2000 - 11:22:07 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|