473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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(argc, argv, options);

if (!input_filename)
show_help();

if (display_disable) {
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_BITS=64 -
D_LARGEFILE_SOURCE -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 2323
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(argc, argv, options);

if (!input_filename)
show_help();

if (display_disable) {
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
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...
5
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) {...
1
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...
1
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...
1
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':...
5
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...
47
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...
3
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...
0
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 ***...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.