public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/12406] New: Send a more detailed notification on solib events.
@ 2011-01-18 8:57 andre.poenitz at nokia dot com
2011-01-18 8:58 ` [Bug symtab/12406] " andre.poenitz at nokia dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: andre.poenitz at nokia dot com @ 2011-01-18 8:57 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
Summary: Send a more detailed notification on solib events.
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
AssignedTo: unassigned@sourceware.org
ReportedBy: andre.poenitz@nokia.com
Right now the message is rather simple "something happened". It would be nice
if it could e.g. say which shared object triggered the event.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
@ 2011-01-18 8:58 ` andre.poenitz at nokia dot com
2011-01-24 21:17 ` tromey at redhat dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andre.poenitz at nokia dot com @ 2011-01-18 8:58 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
Andre Poenitz <andre.poenitz at nokia dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
2011-01-18 8:58 ` [Bug symtab/12406] " andre.poenitz at nokia dot com
@ 2011-01-24 21:17 ` tromey at redhat dot com
2011-01-25 7:08 ` andre.poenitz at nokia dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at redhat dot com @ 2011-01-24 21:17 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-01-24 21:17:07 UTC ---
Is this for MI or the CLI?
For MI, I think you are supposed to look at the
=library-loaded and =library-unloaded async notifications.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
2011-01-18 8:58 ` [Bug symtab/12406] " andre.poenitz at nokia dot com
2011-01-24 21:17 ` tromey at redhat dot com
@ 2011-01-25 7:08 ` andre.poenitz at nokia dot com
2012-01-11 16:57 ` tromey at redhat dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andre.poenitz at nokia dot com @ 2011-01-25 7:08 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
--- Comment #2 from Andre Poenitz <andre.poenitz at nokia dot com> 2011-01-25 07:08:36 UTC ---
In this particular case it was the non-MI version.
However, I think also the MI version could be a bit more verbose. There is e.g.
(even with auto-solib-add on):
>=library-loaded,id=".../lib/libQtNetworkMyns.so.4",target-name=".../lib/libQtNetworkMyns.so.4",host-name=".../lib/libQtNetworkMyns.so.4",symbols-loaded="0"
Naively, I would have expected symbols-loaded="1", and perhaps the 'From' and
'To' address values that are displayed with 'info shared'.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
` (2 preceding siblings ...)
2011-01-25 7:08 ` andre.poenitz at nokia dot com
@ 2012-01-11 16:57 ` tromey at redhat dot com
2012-01-11 19:30 ` tromey at redhat dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at redhat dot com @ 2012-01-11 16:57 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2012-01-11 16:56:50 UTC ---
(In reply to comment #2)
> Naively, I would have expected symbols-loaded="1", and perhaps the 'From' and
> 'To' address values that are displayed with 'info shared'.
See PR 10693 for information about this.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
` (3 preceding siblings ...)
2012-01-11 16:57 ` tromey at redhat dot com
@ 2012-01-11 19:30 ` tromey at redhat dot com
2012-01-19 19:57 ` tromey at redhat dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tromey at redhat dot com @ 2012-01-11 19:30 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
--- Comment #4 from Tom Tromey <tromey at redhat dot com> 2012-01-11 19:29:18 UTC ---
Somewhat hacky fix for the CLI side.
http://sourceware.org/ml/gdb-patches/2012-01/msg00363.html
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
` (4 preceding siblings ...)
2012-01-11 19:30 ` tromey at redhat dot com
@ 2012-01-19 19:57 ` tromey at redhat dot com
2012-01-24 21:39 ` cvs-commit at gcc dot gnu.org
2012-01-24 21:41 ` tromey at redhat dot com
7 siblings, 0 replies; 9+ messages in thread
From: tromey at redhat dot com @ 2012-01-19 19:57 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware |tromey at redhat dot com
|dot org |
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
` (5 preceding siblings ...)
2012-01-19 19:57 ` tromey at redhat dot com
@ 2012-01-24 21:39 ` cvs-commit at gcc dot gnu.org
2012-01-24 21:41 ` tromey at redhat dot com
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-01-24 21:39 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-01-24 21:39:24 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2012-01-24 21:39:19
Modified files:
gdb : ChangeLog NEWS breakpoint.c breakpoint.h
infrun.c progspace.c progspace.h solib.c
gdb/doc : ChangeLog gdb.texinfo
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.base: break-interp.exp
gdb/testsuite/lib: mi-support.exp
Added files:
gdb/testsuite/gdb.base: catch-load-so.c catch-load.c
catch-load.exp
Log message:
PR symtab/12406:
* solib.c (update_solib_list): Update the program space's
added_solibs and deleted_solibs fields.
* progspace.h (struct program_space) <added_solibs,
deleted_solibs>: New fields.
(clear_program_space_solib_cache): Declare.
* progspace.c (release_program_space): Call
clear_program_space_solib_cache.
(clear_program_space_solib_cache): New function.
* infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
bpstat_stop_status. Use handle_solib_event.
* breakpoint.c: Include gdb_regex.h.
(print_solib_event): New function.
(bpstat_print): Use print_solib_event.
(bpstat_stop_status): Add special case for bp_shlib_event.
(handle_solib_event): New function.
(bpstat_what): Use handle_solib_event.
(struct solib_catchpoint): New.
(dtor_catch_solib, insert_catch_solib, remove_catch_solib)
(breakpoint_hit_catch_solib, check_status_catch_solib)
(print_it_catch_solib, print_one_catch_solib)
(print_mention_catch_solib, print_recreate_catch_solib): New
functions.
(catch_solib_breakpoint_ops): New global.
(catch_load_or_unload, catch_load_command_1)
(catch_unload_command_1): New functions.
(internal_bkpt_check_status): Add special case for
bp_shlib_event.
(internal_bkpt_print_it): Use print_solib_event.
(initialize_breakpoint_ops): Initialize
catch_solib_breakpoint_ops.
(_initialize_breakpoint): Register "catch load" and "catch
unload".
* breakpoint.h (handle_solib_event): Declare.
* NEWS: Add entry for "catch load" and "catch unload".
gdb/doc
* gdb.texinfo (Set Catchpoints): Document "catch load" and "catch
unload".
(Files): Mention new catch commands.
(GDB/MI Async Records): Likewise.
gdb/testsuite
* lib/mi-support.exp (mi_expect_stop): Add special case for
solib-event.
* gdb.base/catch-load-so.c: New file.
* gdb.base/catch-load.exp: New file.
* gdb.base/catch-load.c: New file.
* gdb.base/break-interp.exp (reach_1): Update regexp.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13775&r2=1.13776
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.484&r2=1.485
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.646&r2=1.647
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.h.diff?cvsroot=src&r1=1.172&r2=1.173
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&r1=1.520&r2=1.521
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/progspace.c.diff?cvsroot=src&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/progspace.h.diff?cvsroot=src&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/solib.c.diff?cvsroot=src&r1=1.155&r2=1.156
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1268&r2=1.1269
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.915&r2=1.916
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3036&r2=1.3037
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/catch-load-so.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/catch-load.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/catch-load.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/break-interp.exp.diff?cvsroot=src&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/mi-support.exp.diff?cvsroot=src&r1=1.108&r2=1.109
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug symtab/12406] Send a more detailed notification on solib events.
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
` (6 preceding siblings ...)
2012-01-24 21:39 ` cvs-commit at gcc dot gnu.org
@ 2012-01-24 21:41 ` tromey at redhat dot com
7 siblings, 0 replies; 9+ messages in thread
From: tromey at redhat dot com @ 2012-01-24 21:41 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12406
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |7.5
--- Comment #6 from Tom Tromey <tromey at redhat dot com> 2012-01-24 21:40:36 UTC ---
Fixed.
The remaining MI bits are in the other bug.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-01-24 21:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 8:57 [Bug symtab/12406] New: Send a more detailed notification on solib events andre.poenitz at nokia dot com
2011-01-18 8:58 ` [Bug symtab/12406] " andre.poenitz at nokia dot com
2011-01-24 21:17 ` tromey at redhat dot com
2011-01-25 7:08 ` andre.poenitz at nokia dot com
2012-01-11 16:57 ` tromey at redhat dot com
2012-01-11 19:30 ` tromey at redhat dot com
2012-01-19 19:57 ` tromey at redhat dot com
2012-01-24 21:39 ` cvs-commit at gcc dot gnu.org
2012-01-24 21:41 ` tromey at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).