This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Dear all, the program load two SO, but i can print the variable value in a SO
- From: "Tedeschi, Walfred" <walfred dot tedeschi at intel dot com>
- To: "yrj1982hp at 163 dot com" <yrj1982hp at 163 dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 10 Jan 2018 09:43:09 +0000
- Subject: RE: Dear all, the program load two SO, but i can print the variable value in a SO
- Authentication-results: sourceware.org; auth=none
- Dlp-product: dlpe-windows
- Dlp-reaction: no-action
- Dlp-version: 11.0.0.116
- References: <-uqkpvs-qld7il-ccttuk-m4rkp6q1zjdnqoihxq7rva2-ge06le2kyf5e2xrnfi-i5f0h5-xp7p7dd86ldu-yk8o5usn5owp-akn9ey-rzbcfm-6vg8wn-v7v5ht-4310fx5cu3to-qzk5o3k1hfl0rnr7cn.1515572461389@email.android.com>
> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of yrj1982hp@163.com
> Sent: Wednesday, January 10, 2018 9:21 AM
> To: gdb@sourceware.org
> Subject: Dear all, the program load two SO, but i can print the variable value in a
> SO
>
> Dear all,
> my gbd version number is 7.11.1
> the program running under gdb load two sharelibrary SO1and SO2, SO1 is the
> same as SO2. I print the variable K in SO by GDB, the variable K 's value of SO1 is
> different with the K's value in SO2, but i can't print the K's value in SO2, even
> stop at the breakpoint in SO2 Would you tell me how to print the variable value
> in SO?
>
> Good luck
Hi,
I have provided a patch in de past that intended to work with this case.
Could you describe a bit more the commands you have tried to use in order to accomplish the task?
Thanks and regards,
/Fred
>
> 发自我的华为手机
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928