This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem with symbol file


Hi,
 I am working on providing support in gdb  for a new thread
library(libuthread). When i start running the executable, gdb loads the
symbols of all the shared objects used by the exectable. At this time gdb
is unable to load the symbols from  libuthread.so(the shared object of my
multithreaded library) and i get the following error message:
 Error while reading shared library symbols:

This is backtrace when i get the error:
(top-gdb) bt
#0  catcher (func=0x80ceb24 <do_catch_errors>, func_uiout=0x8237bb8,
    func_args=0xbfffebf8, func_val=0xbfffebf0, func_caught=0xbfffebf4,
    errstring=0x81a9f40 "Error while reading shared library symbols:\n"
mask=6) at top.c:422
#1  0x080ceb6c in catch_errors (func=0x80aa7fc <symbol_add_stub>,
    func_args=0x8250518,
    errstring=0x81a9f40 "Error while reading shared library symbols:\n"
mask=6) at top.c:503
#2  0x080aaaf9 in solib_add (pattern=0x0, from_tty=0, target=0x0,
    readsyms=1) at solib.c:568
#3  0x080948ef in handle_inferior_event (ecs=0xbfffed10)
    at infrun.c:2439
#4  0x08093576 in wait_for_inferior () at infrun.c:1241
#5  0x08093392 in proceed (addr=4294967295, siggnal=TARGET_SIGNAL_0,
    step=0) at infrun.c:1037
#6  0x080b8011 in find_default_create_inferior (
    exec_file=0x82402e8 "/users/satya/thesis/thread-lib/test/testbasic"
allargs=0x82461c8 "", env=0x8224488) at target.c:1216
#7  0x08090b76 in run_command (args=0x0, from_tty=1) at infcmd.c:463
#8  0x0812458a in do_cfunc (c=0x8224138, args=0x0, from_tty=1)
    at ./cli/cli-decode.c:50
#9  0x080ceebc in execute_command (p=0x821a1a9 "", from_tty=1)
    at top.c:715
#10 0x0809c071 in command_handler (command=0x821a1a8 "")
    at event-top.c:504
#11 0x0809c6a9 in command_line_handler (rl=0x8237e38 "рг#\b")
    at event-top.c:800
#12 0x08177dac in rl_callback_read_char () at callback.c:114
#13 0x0809ba1b in rl_callback_read_char_wrapper (client_data=0x0)
    at event-top.c:168
#14 0x0809bf52 in stdin_event_handler (error=0, client_data=0x0)
    at event-top.c:418
#15 0x080e100c in handle_file_event (event_file_desc=0)
    at event-loop.c:714
#16 0x080e0ae4 in process_event () at event-loop.c:335
#17 0x080e0b29 in gdb_do_one_event (data=0x0) at event-loop.c:372
#18 0x080ceb32 in do_catch_errors (uiout=0x8237bb8, data=0xbffff0b8)
    at top.c:491
#19 0x080cea0e in catcher (func=0x80ceb24 <do_catch_errors>,
    func_uiout=0x8237bb8, func_args=0xbffff0b8, func_val=0xbffff0b0,
    func_caught=0xbffff0b4, errstring=0x81be740 "", mask=6)
    at top.c:423
#20 0x080ceb6c in catch_errors (func=0x80e0b00 <gdb_do_one_event>,
    func_args=0x0, errstring=0x81be740 "", mask=6) at top.c:503
#21 0x080e0b67 in start_event_loop () at event-loop.c:416
#22 0x0807281a in captured_command_loop (data=0x0) at main.c:94
#23 0x080ceb32 in do_catch_errors (uiout=0x8237bb8, data=0xbffff228)
    at top.c:491
#24 0x080cea0e in catcher (func=0x80ceb24 <do_catch_errors>,
    func_uiout=0x8237bb8, func_args=0xbffff228, func_val=0xbffff220,
    func_caught=0xbffff224, errstring=0x818f36d "", mask=6)
    at top.c:423
#25 0x080ceb6c in catch_errors (
    func=0x8072800 <captured_command_loop>, func_args=0x0,
    errstring=0x818f36d "", mask=6) at top.c:503
#26 0x08073213 in captured_main (data=0xbffff4f0) at main.c:723
#27 0x080ceb32 in do_catch_errors (uiout=0x81fbc40, data=0xbffff4c8)
    at top.c:491
#28 0x080cea0e in catcher (func=0x80ceb24 <do_catch_errors>,
    func_uiout=0x81fbc40, func_args=0xbffff4c8, func_val=0xbffff4c0,
    func_caught=0xbffff4c4, errstring=0x818f36d "", mask=6)
    at top.c:423
#29 0x080ceb6c in catch_errors (func=0x8072848 <captured_main>,
    func_args=0xbffff4f0, errstring=0x818f36d "", mask=6) at top.c:503
---Type <return> to continue, or q <return> to quit---bt
#30 0x0807323f in main (argc=1, argv=0xbffff564) at main.c:734
#31 0x400ad316 in __libc_start_main (main=0x8073218 <main>, argc=1,
    ubp_av=0xbffff564, init=0x8071c20 <_init>, fini=0x818f240 <_fini>,
    rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbffff55c)
    at ../sysdeps/generic/libc-start.c:129

==========================================================================

Could some one help me figure out what the problem could be.

Thanks,
Satya


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]