2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 24 Jul 2013 19:50:32 +0000 (19:50 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Wed, 24 Jul 2013 19:50:32 +0000 (19:50 +0000)
commit25f9533e5145c7d1f41649536b710e12f3a1fcd9
tree39c61fb54a54ee205ffe3d5f5fac735959a57535
parentdf71cb5cbfa26ad79e5cf674056205f0505e229d
2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>

* breakpoint.c (create_longjmp_master_breakpoint): Check if probe
interface can evaluate arguments.  Fallback to the old mode if it
cannot.
(create_exception_master_breakpoint): Likewise.
* elfread.c (elf_can_evaluate_probe_arguments): New function.
(struct sym_probe_fns elf_probe_fns): Export function above to the
probe interface.
* probe.c (can_evaluate_probe_arguments): New function.
* probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
function pointer.
(can_evaluate_probe_arguments): New function prototype.
* solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
probe interface can evaluate arguments.  Fallback to the old mode
if it cannot.
* stap-probe.c (stap_get_probe_argument_count): Check if probe
interface can evaluate arguments.  Warning the user if it cannot.
(stap_can_evaluate_probe_arguments): New function.
(struct probe_ops stap_probe_ops): Export function above to the
probe interface.
* symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
New function pointer.
gdb/ChangeLog
gdb/breakpoint.c
gdb/elfread.c
gdb/probe.c
gdb/probe.h
gdb/solib-svr4.c
gdb/stap-probe.c
gdb/symfile.h