gdbtk: Patch for updating filename Combobox

Roland Schwingel Roland.Schwingel@onevision.de
Wed May 28 08:43:00 GMT 2003


Hi Keith....

 > On Fri, 2003-05-23 at 06:53, Roland Schwingel wrote:
 > > Here is a very small patch to fix an update problem for the filename
 > > combobox of gdbtk.
 > > It appears that after dynamic loads the combobox is not updated 
with the
 > > filenames of  the dynamically loaded objects.
 >
 > The real problem is, of course, that there is no event notification
 > telling us this has happened.
 >
 > Hmm. Well, I just took a look at some of the code. Something is broken.
 > It should work (as long as gdb is calling the post_add_symbol_hook). See
 > gdbtk_post_add_symbol in interface.tcl.
 >
 > Can you verify that this hook is/is not being called when the load
 > happens?
I just checked it by adding a printf() to gdb/generic/gdbtk-hooks.c
in gdbtk_post_add_symbol() and you are right it appears that this method
is not called.
Filling of the filename combobox appears to be broken since gdb 5.1 for me.
I can remember it worked with 5.0 but no longer since then. So I made my
"solution" I posted here last week. (which is not a real solution just a
workaround if there is another mechanism which should take care about this.)

Roland



More information about the Insight mailing list