summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-September/018675.html
blob: 144d8f6e7a261a0c97093d0034967e256fe71aad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] How to install a debug package with its	dependencies?
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20How%20to%20install%20a%20debug%20package%20with%20its%0A%09dependencies%3F&In-Reply-To=%3CCAC_Q1P3yVOdWaKiVtvdLAKU5q4tGLmEVBkdb7VH4aFLnP0W_fQ%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="018658.html">
   <LINK REL="Next"  HREF="018655.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] How to install a debug package with its	dependencies?</H1>
    <B>Phoenix Guo</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20How%20to%20install%20a%20debug%20package%20with%20its%0A%09dependencies%3F&In-Reply-To=%3CCAC_Q1P3yVOdWaKiVtvdLAKU5q4tGLmEVBkdb7VH4aFLnP0W_fQ%40mail.gmail.com%3E"
       TITLE="[Mageia-dev] How to install a debug package with its	dependencies?">phoenix.guo at gmail.com
       </A><BR>
    <I>Fri Sep 14 16:07:42 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="018658.html">[Mageia-dev] How to install a debug package with its dependencies?
</A></li>
        <LI>Next message: <A HREF="018655.html">[Mageia-dev] [Bug 7049] Update candidate for phonon-gstreamer
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#18675">[ date ]</a>
              <a href="thread.html#18675">[ thread ]</a>
              <a href="subject.html#18675">[ subject ]</a>
              <a href="author.html#18675">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>2012/9/14 Guillaume Rousse &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">guillomovitch at gmail.com</A>&gt;:
&gt;<i> Le 13/09/2012 18:06, Phoenix Guo a &#233;crit :
</I>&gt;<i>
</I>&gt;&gt;<i> Hi All,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Could someone kindly tell me that how to install a debug package with
</I>&gt;&gt;<i> its dependencies?
</I>&gt;<i>
</I>&gt;<i> There is not dependencies between debug packages, in the sense of 'debug
</I>&gt;<i> package X need debug package Y to be used'.
</I>&gt;<i>
</I>&gt;<i>
</I>
Thanks for your explaination.


&gt;&gt;<i> For example, I install the firefox-debug-10.0.7-1.mga2.x86_64 package
</I>&gt;&gt;<i> for debugging the firefox. While gdb load the firefox core dump file,
</I>&gt;&gt;<i> gdb cannot read debugging symbols from other debug packages as they
</I>&gt;&gt;<i> are not installed at the same time. Although they are needed for
</I>&gt;&gt;<i> debugging.
</I>&gt;<i>
</I>&gt;<i> I don't know if there an easy way to do it. Usually, tough, the name of the
</I>&gt;<i> function where the crash does occurs is enough to tell wich debug package is
</I>&gt;<i> needed exactly.
</I>&gt;<i>
</I>&gt;<i> That could be an interesting urpmi feature, tough, to be able to
</I>&gt;<i> automatically install all those packages at once.
</I>&gt;<i> --
</I>&gt;<i> BOFH excuse #350:
</I>&gt;<i>
</I>&gt;<i> paradigm shift...without a clutch
</I>
Yes. Because while debugging a program in RHEL or Fedora, a command
named 'debuginfo-install' which is provided by yum-utils can be used
to automatically install all needed debug information packages. For
example, to install the debuginfo package of bash:

#debuginfo-install bash
Loaded plugins: fastestmirror, refresh-packagekit, remove-with-leaves
enabling epel-debuginfo
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * epel: ftp.riken.jp
 * epel-debuginfo: ftp.riken.jp
 * extras: mirrors.btte.net
 * nux-dextop: mirror.li.nux.ro
 * updates: mirrors.163.com
Checking for new repos for mirrors
Could not find debuginfo pkg for dependency package
ncurses-libs-5.7-3.20090208.el6.x86_64
--&gt; Running transaction check
---&gt; Package bash-debuginfo.x86_64 0:4.1.2-9.el6_2 will be installed
---&gt; Package glibc-debuginfo.x86_64 0:2.12-1.80.el6_3.5 will be installed
--&gt; Processing Dependency: glibc-debuginfo-common = 2.12-1.80.el6_3.5
for package: glibc-debuginfo-2.12-1.80.el6_3.5.x86_64
---&gt; Package yum-plugin-auto-update-debug-info.noarch 0:1.1.30-14.el6
will be installed
--&gt; Running transaction check
---&gt; Package glibc-debuginfo-common.x86_64 0:2.12-1.80.el6_3.5 will be installed
--&gt; Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================
 Package                                              Arch
         Version                                Repository
   Size
======================================================================================================================================================
Installing:
 bash-debuginfo                                       x86_64
         4.1.2-9.el6_2                          debug
  1.3 M
 glibc-debuginfo                                      x86_64
         2.12-1.80.el6_3.5                      debug
  8.7 M
 yum-plugin-auto-update-debug-info                    noarch
         1.1.30-14.el6                          base
   22 k
Installing for dependencies:
 glibc-debuginfo-common                               x86_64
         2.12-1.80.el6_3.5                      debug
  8.2 M

Transaction Summary
======================================================================================================================================================
Install       4 Package(s)

Total download size: 18 M
Installed size: 105 M
Is this ok [y/N]:


For developer and Testing Engineer, the easier to obtain full debug
information about a package, the easier to find out defects or bugs.

Besides the debuginfo package, I think the kexec package is important
to generate a vmcore if the kernel panic occurs. I repackage the
kexec-tools of Mandriva for Mageia and currently testing on my laptop.

BTW, the gdb in the mageia2 still cannot tell which debug packages
should be installed while debugging. And it seems that the work-around
~~~
<A HREF="https://bugs.mageia.org/show_bug.cgi?id=3417#c19">https://bugs.mageia.org/show_bug.cgi?id=3417#c19</A>
~~~
does not works...

Should I recompile the latest gdb package on Mageia to make it work?

Many thanks!!

Best Regards,
--
chgurusky
</PRE>




























<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="018658.html">[Mageia-dev] How to install a debug package with its dependencies?
</A></li>
	<LI>Next message: <A HREF="018655.html">[Mageia-dev] [Bug 7049] Update candidate for phonon-gstreamer
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#18675">[ date ]</a>
              <a href="thread.html#18675">[ thread ]</a>
              <a href="subject.html#18675">[ subject ]</a>
              <a href="author.html#18675">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>