473,795 Members | 3,122 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

gdb doesn't find symbols

I'm trying to debug with gdb but I can read only some symbol.

This is my main:

/* Called from the main */
int main(int argc, char **argv)
{
int flags;

/* register all codecs, demux and protocols */
av_register_all ();

parse_options(a rgc, argv, options);

if (!input_filenam e)
show_help();

if (display_disabl e) {
video_disable = 1;
}
.......

I set a breakpoint to parse_option. When I try to print flags I get:

(gdb) print flags
No symbol "flags" in current context.

I compiled with -g option and I didn't strip symbols:

gcc -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-
switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-
pointer-sign -O3
-I"/home/nicola/devel/FFplay/trunk" -I"/home/nicola/devel/FFplay/
trunk" -I"/home/nicola/devel/FFplay/trunk"/libavutil -I"/home/nicola/
devel/FFplay/trunk"/
libavcodec -I"/home/nicola/devel/FFplay/trunk"/libavformat -I"/home/
nicola/devel/FFplay/trunk"/libswscale -D_FILE_OFFSET_B ITS=64 -
D_LARGEFILE_SOU RCE -D_ISO
C9X_SOURCE -DHAVE_AV_CONFIG _H -I/usr/include/SDL -D_GNU_SOURCE=1 -
D_REENTRANT -c -o ffplay.o ffplay.c
file ffplay:
ffplay: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped

Aug 1 '07 #1
2 2348
br*******@gmail .com wrote:
I'm trying to debug with gdb but I can read only some symbol.
Try a gcc/gdb forum, you'll have more luck there.

--
Ian Collins.
Aug 1 '07 #2
On 2007-08-01 10:32, br*******@gmail .com wrote:
I'm trying to debug with gdb but I can read only some symbol.

This is my main:

/* Called from the main */
int main(int argc, char **argv)
{
int flags;

/* register all codecs, demux and protocols */
av_register_all ();

parse_options(a rgc, argv, options);

if (!input_filenam e)
show_help();

if (display_disabl e) {
video_disable = 1;
}
......

I set a breakpoint to parse_option. When I try to print flags I get:

(gdb) print flags
No symbol "flags" in current context.

I compiled with -g option and I didn't strip symbols:

gcc -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-
switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-
pointer-sign -O3
These kinds of questions are off-topic here, use gnu.gcc.help in the
future. By the way, debugging and optimisations don't play nicely
together in my experience (flags could be completely optimised away) so
skip the -O3 when building for debugging purposes.

--
Erik Wikström
Aug 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2338
by: Torbak | last post by:
I got some question about symbols in libraries ... In libraries, there is public symbols and "not public" symbols (private, static)... In C when we use the "static" keyword on the declaration of a function, the function is not public in the library. 1- When I use a class, all is symbols are put in the public section of the library. How can I change that. The keyword "private" in a class is only for the langage or does it change (like...
5
2748
by: Gary Mayor | last post by:
Hi, If I have the ' character within the javascript:pick command it doesn't work. Is there some sort of way of escaping these characters like in server side languages. function pick(symbol) { if (window.opener && !window.opener.closed) window.opener.document.create.text1.value = symbol; window.close(); }
1
585
by: aerobar2 | last post by:
When I debug my application I get "no symbols loaded" ================= 'DefaultDomain': Loaded 'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded. 'MHSFire': Loaded 'C:\Documents and Settings\bamason\My Documents\Visual Studio Projects\MHSFire\bin\MHSFire.exe', Symbols loaded. 'MHSFire.exe': Loaded 'c:\winnt\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols...
1
4443
by: asdf | last post by:
Hello, I was enjoying working in VS for half a year without any problems and now I cannot debug anymore. Without any really reason my Studio tells me that the page that I want to debug has - No symbols loaded. I use VS v1.7.3088 and .NET framework v1.1.4322 SP1. I work with ASP.NET using VB and I'm trying to set a breakpoint on the ascx.vb file.
1
8380
by: Sender | last post by:
Everytime I run a form, in the output window I get the following: 'DefaultDomain': Loaded 'c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll', No symbols loaded. 'WindowsApplication5': Loaded 'C:\projects\WindowsApplication5\bin\WindowsApplication5.exe', Symbols loaded.
5
4934
by: Engineerik | last post by:
I have a login form which I want to display with the showdialog method. When I do that the event handler for the load event does not run. If I use the show method the load event handler runs perfectly. I can't find any documentation regarding the load event not firing when a form is displayed using the showdialog method.
47
3371
by: Pierre Barbier de Reuille | last post by:
Please, note that I am entirely open for every points on this proposal (which I do not dare yet to call PEP). Abstract ======== This proposal suggests to add symbols into Python. Symbols are objects whose representation within the code is more important than their actual value. Two symbols needs only to be
3
9739
by: JV | last post by:
Hi All, I am new to C# and I am having trouble compiling and running code. I have the code written (it was just an example that I took) and I run it, it gives me No Symbols loaded error as below. Please let me know what is that I am doing wrong. 'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
0
1220
by: shan | last post by:
*** ERROR: Module load completed but symbols could not be loaded for crystaldecisions.web.dll *** ERROR: Module load completed but symbols could not be loaded for crystalenterpriselib.dll *** ERROR: Module load completed but symbols could not be loaded for crystalreportpluginlib.dll *** ERROR: Module load completed but symbols could not be loaded for crystalinfostorelib.dll
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7541
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.