This is the mail archive of the gdb-prs@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]

Re: gdb/1223: GDB internal UI call stack


The following reply was made to PR gdb/1223; it has been noted by GNATS.

From: Andrew Cagney <ac131313@redhat.com>
To: jmiller@incon.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/1223: GDB internal UI call stack
Date: Thu, 22 May 2003 13:27:19 -0400

 >>Number:         1223
 >>Category:       gdb
 >>Synopsis:       GDB internal UI call stack
 >>Confidential:   no
 >>Severity:       serious
 >>Priority:       medium
 >>Responsible:    unassigned
 >>State:          open
 >>Class:          sw-bug
 >>Submitter-Id:   net
 >>Arrival-Date:   Thu May 22 16:18:00 UTC 2003
 >>Closed-Date:
 >>Last-Modified:
 >>Originator:     jmiller@incon.com
 >>Release:        gdb 5.3
 >>Organization:
 >>Environment:
 
 Please try something from the mainline the level problem should be fixed 
 (although since this is via eclipse, it could get interesting).
 
 
 
 >>Description:
 > 
 > I'm running GDB through the Eclipse IDE connected to my target via GDBServer over tcp/ip. As I step through code with the debugger, I get the following message:
 > 
 > ../../insight-5.3/ui-out.c:130: gdb-internal-error: push_level: Assertion
 > `uiout->level >= 0 && uiout->level < MAX_UI_OUT_LEVELS' failed.
 > 
 > I found that they had this problem in the hurd user group and recommneded cranking up MAX_UI_OUT_LEVELS.  Originally set to 5, I raised it to 12, which got me farther along debugging the "HelloWorld" demo, now I've cranked it up to 32.  At this point I'm able to completely step through
 > the entire program, but am SURE that this not the best solution. Hoping to come up with a long term solution.
 > 
 > I set eclipse to output all GDB commands and have attached the output. 
 > 
 > Seems that a linked list would be an appropriate fix, but I'm unsure what this stacks potential for growth is.  Seems like that original assumption "not much" is invalid.  Perhaphs graphical overlays are pushing the intended boundaries.
 > 
 >>How-To-Repeat:
 > 
 > Perhaps this can be simulated without my setup.  Search for MAX_UI_OUT_LEVELS in PR's for others that have had similar problems.
 > 
 >>Fix:
 > 
 > 
 >>Release-Note:
 >>Audit-Trail:
 >>Unformatted:
 > 
 > ----gnatsweb-attachment----
 > Content-Type: text/plain; name="debug.out"
 > Content-Disposition: inline; filename="debug.out"
 > 
 > Startup: using configuration file:/opt/eclipse/workspace/.metadata/.config/platform.cfg
 > Boot URL: file:/opt/eclipse/plugins/org.eclipse.core.boot_2.1.0/boot.jar
 > Startup: splash path = /opt/eclipse/plugins/org.eclipse.platform_2.1.0/splash.bmp
 > Workspace location:
 >    /opt/eclipse/workspace
 > Debug-Options:
 >     file:/opt/eclipse/.options
 > Install URL:
 >     file:/opt/eclipse/
 > [1,053,617,007,657] (gdb) 
 > [1,053,617,007,676] 1-gdb-set confirm off
 > [1,053,617,007,686] 1^done
 > [1,053,617,007,689] (gdb) 
 > [1,053,617,007,691] 2-gdb-set width 0
 > [1,053,617,007,692] 2^done
 > [1,053,617,007,692] (gdb) 
 > [1,053,617,007,693] 3-gdb-set height 0
 > [1,053,617,007,694] 3^done
 > [1,053,617,007,694] (gdb) 
 > [1,053,617,007,695] 4-target-select remote 192.168.1.100:2345
 > [1,053,617,007,794] &"warning: Unable to find dynamic linker breakpoint function.\nGDB will be unabl\
 > e to debug shared library initializers\nand track explicitly loaded dynamic code."
 > [1,053,617,007,796] &"\n"
 > [1,053,617,007,800] 4^connected,thread-id="0",frame={addr="0x30010254",func="??",args=[]}
 > [1,053,617,007,871] (gdb) 
 > [1,053,617,007,918] 5-gdb-set auto-solib-add off
 > [1,053,617,007,919] 5^done
 > [1,053,617,007,919] (gdb) 
 > [1,053,617,007,925] 6-environment-cd /home/lavina/rootfs/opt/hello
 > [1,053,617,007,925] 6^done
 > [1,053,617,007,926] (gdb) 
 > [1,053,617,008,324] 7 info threads
 > [1,053,617,008,326] &"info threads\n"
 > [1,053,617,008,344] ~"  1 Thread 4529  "
 > [1,053,617,008,353] 7^done,frame={addr="0x30010254",func="??",args=[]}
 > [1,053,617,008,354] (gdb) 
 > [1,053,617,008,367] 8-data-list-register-names
 > [1,053,617,008,369] 8^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","\
 > r11","r12","r13","r14","r15","r16","r17","r18","r19","r20","r21","r22","r23","r24","r25","r26","r27"\
 > ,"r28","r29","r30","r31","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12","f13","\
 > f14","f15","f16","f17","f18","f19","f20","f21","f22","f23","f24","f25","f26","f27","f28","f29","f30"\
 > ,"f31","pc","ps","cr","lr","ctr","xer","fpscr","vr0","vr1","vr2","vr3","vr4","vr5","vr6","vr7","vr8"\
 > ,"vr9","vr10","vr11","vr12","vr13","vr14","vr15","vr16","vr17","vr18","vr19","vr20","vr21","vr22","v\
 > r23","vr24","vr25","vr26","vr27","vr28","vr29","vr30","vr31","vscr","vrsave"]
 > [1,053,617,008,371] (gdb) 
 > [1,053,617,008,498] 9-stack-info-depth
 > [1,053,617,008,504] 9^done,depth="1"
 > [1,053,617,008,505] (gdb) 
 > [1,053,617,008,507] 10-stack-list-frames 0 0
 > [1,053,617,008,513] 10^done,stack=[frame={level="0 ",addr="0x30010254",func="??"}]
 > [1,053,617,008,513] (gdb) 
 > [1,053,617,008,527] 11-break-insert -t main
 > [1,053,617,008,542] 11^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x100007\
 > 48",func="main",file="main.cpp",line="7",times="0"}
 > [1,053,617,008,543] (gdb) 
 > [1,053,617,008,547] 12-exec-continue
 > [1,053,617,008,548] 12^running
 > [1,053,617,008,549] (gdb) 
 > [1,053,617,008,826] &"Error while mapping shared library sections:\n"
 > [1,053,617,008,826] &"/usr/lib/libstdc++-libc6.1-2.so.3: No such file or directory.\n"
 > [1,053,617,008,827] &"Error while mapping shared library sections:\n"
 > [1,053,617,008,829] &"/lib/ld.so.1: No such file or directory.\n"
 > [1,053,617,008,903] 12*stopped,thread-id="0",frame={addr="0x10000748",func="main",args=[],file="main\
 > .cpp",line="7"}
 > [1,053,617,008,905] (gdb) 
 > [1,053,617,008,906] 13 info threads
 > [1,053,617,008,907] &"info threads\n"
 > [1,053,617,008,925] ~"  1 Thread 4529  "
 > [1,053,617,008,940] 13^done,frame={func="main",args=[],file="main.cpp",line="7"}
 > [1,053,617,008,941] (gdb) 
 > [1,053,617,008,942] 14-stack-info-depth
 > [1,053,617,009,008] 14^done,depth="2"
 > [1,053,617,009,009] (gdb) 
 > [1,053,617,009,010] 15-stack-list-frames 0 0
 > [1,053,617,009,010] 15^done,stack=[frame={level="0 ",addr="0x10000748",func="main",file="main.cpp",l\
 > ine="7"}]
 > [1,053,617,009,011] (gdb) 
 > [1,053,617,009,012] 16-stack-list-frames 0 1
 > [1,053,617,009,015] 16^done,stack=[frame={level="0 ",addr="0x10000748",func="main",file="main.cpp",l\
 > ine="7"},frame={level="1 ",addr="0x0fe3b298",func="??",from="/lib/libc.so.6"}]
 > [1,053,617,009,018] (gdb) 
 > [1,053,617,009,022] 17-data-list-changed-registers
 > [1,053,617,009,023] 17^error,msg="mi_cmd_data_list_changed_registers: Unable to read register conten\
 > ts."
 > [1,053,617,009,023] (gdb) 
 > [1,053,617,009,333] 18-stack-list-frames 0 1
 > [1,053,617,009,347] 18^done,stack=[frame={level="0 ",addr="0x10000748",func="main",file="main.cpp",l\
 > ine="7"},frame={level="1 ",addr="0x0fe3b298",func="??",from="/lib/libc.so.6"}]
 > [1,053,617,009,348] (gdb) 
 > [1,053,617,009,481] 19-stack-list-arguments 0 0 0
 > [1,053,617,009,482] 19^done,stack-args=[frame={level="0",args=[]}]
 > [1,053,617,009,482] (gdb) 
 > [1,053,617,009,486] 20-stack-list-locals 0
 > [1,053,617,009,488] 20^done,locals=[name="index",name="input"]
 > [1,053,617,009,488] (gdb) 
 > [1,053,617,009,490] 21-var-create - * index
 > [1,053,617,009,509] 21^done,name="var1",numchild="0",type="int"
 > [1,053,617,009,509] (gdb) 
 > [1,053,617,009,517] 22-var-create - * input
 > [1,053,617,009,690] 22^done,name="var2",numchild="0",type="char"
 > [1,053,617,009,690] (gdb) 
 > [1,053,617,009,702] 23-var-evaluate-expression var1
 > [1,053,617,009,703] 23^done,value="267491644"
 > [1,053,617,009,703] (gdb) 
 > [1,053,617,009,706] 24-var-show-attributes var1
 > [1,053,617,009,707] 24^done,attr="editable"
 > [1,053,617,009,708] (gdb) 
 > [1,053,617,009,859] 25-var-evaluate-expression var2
 > [1,053,617,009,859] 25^done,value="127 '\\177'"
 > [1,053,617,009,860] (gdb) 
 > [1,053,617,009,861] 26-var-show-attributes var2
 > [1,053,617,009,861] 26^done,attr="editable"
 > [1,053,617,009,862] (gdb) 
 > [1,053,617,013,130] 27-exec-next
 > [1,053,617,013,134] 27^running
 > [1,053,617,013,135] (gdb) 
 > [1,053,617,013,224] 27*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x10000760",fu\
 > nc="main",args=[],file="main.cpp",line="8"}
 > [1,053,617,013,225] (gdb) 
 > [1,053,617,013,226] 28 info threads
 > [1,053,617,013,227] &"info threads\n"
 > [1,053,617,013,244] ~"  1 Thread 4529  "
 > [1,053,617,013,252] 28^done,frame={func="main",args=[],file="main.cpp",line="8"}
 > [1,053,617,013,253] (gdb) 
 > [1,053,617,013,253] 29-stack-info-depth
 > [1,053,617,013,344] 29^done,depth="2"
 > [1,053,617,013,345] (gdb) 
 > [1,053,617,013,345] 30-stack-list-frames 0 0
 > [1,053,617,013,346] 30^done,stack=[frame={level="0 ",addr="0x10000760",func="main",file="main.cpp",l\
 > ine="8"}]
 > [1,053,617,013,347] (gdb) 
 > [1,053,617,013,347] 31-stack-list-frames 0 1
 > [1,053,617,013,350] 31^done,stack=[frame={level="0 ",addr="0x10000760",func="main",file="main.cpp",l\
 > ine="8"},frame={level="1 ",addr="0x0fe3b298",func="??",from="/lib/libc.so.6"}]
 > [1,053,617,013,353] 32-var-update var1
 > [1,053,617,013,354] (gdb) 
 > [1,053,617,013,380] 32^done,changelist={name="var1",in_scope="true",type_changed="false"}
 > [1,053,617,013,381] (gdb) 
 > [1,053,617,013,383] 33-var-update var2
 > [1,053,617,013,410] 33^done,changelist={}
 > [1,053,617,013,411] (gdb) 
 > [1,053,617,013,412] 34-data-list-changed-registers
 > [1,053,617,013,412] 34^error,msg="mi_cmd_data_list_changed_registers: Unable to read register conten\
 > ts."
 > [1,053,617,013,413] (gdb) 
 > [1,053,617,013,451] 35-stack-list-frames 0 1
 > [1,053,617,013,533] 35^done,stack=[frame={level="0 ",addr="0x10000760",func="main",file="main.cpp",l\
 > ine="8"},frame={level="1 ",addr="0x0fe3b298",func="??",from="/lib/libc.so.6"}]
 > [1,053,617,013,534] (gdb) 
 > [1,053,617,013,616] 36-stack-list-arguments 0 0 0
 > [1,053,617,013,617] &"../../insight-5.3/gdb/ui-out.c:130: gdb-internal-error: push_level: Assertion \
 > `uiout->level >= 0 && uiout->level < MAX_UI_OUT_LEVELS' failed.\n"
 > Start VM: /opt/IBMJava2-14/bin/java
 > -cp /opt/eclipse/./startup.jar org.eclipse.core.launcher.Main
 > -os linux
 > -ws gtk
 > -arch x86
 > -showsplash /opt/eclipse/./eclipse -showsplash 600
 > -debug file:/opt/eclipse/.options 
 > 
 
 


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