From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: sergiodj@redhat.com
Cc: gdb-patches@sourceware.org, tromey@redhat.com
Subject: Re: [PATCH 2/3] Implement new features needed for handling SystemTap probes
Date: Sat, 10 Mar 2012 16:56:00 -0000 [thread overview]
Message-ID: <201203101655.q2AGte2M019374@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <m3pqclbjla.fsf@redhat.com> (message from Sergio Durigan Junior on Fri, 09 Mar 2012 17:33:21 -0300)
> From: Sergio Durigan Junior <sergiodj@redhat.com>
> Date: Fri, 09 Mar 2012 17:33:21 -0300
>
> This is the second patch. It implements a bunch of new things needed to
> support SystemTap probes, for both arch-dependent and independent bits.
> There are new variables and methods for gdbarch, new files
> (stap-probe.[ch]), new methods for reading and handling SystemTap probes
> on elfread.c, adaptations on breakpoint.c to make the `break' command
> understand the `-p' and `-probe' arguments, and so on. It also includes
> documentation and testcases inclusions.
>
> Is this OK?
>
> gdb/ChangeLog
> 2012-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
> Tom Tromey <tromey@redhat.com>
>
> * Makefile.in (SFILES): Add `stap-probe'.
> (COMMON_OBS): Likewise.
> (HFILES_NO_SRCDIR): Likewise.
> * NEWS: Mention support for SystemTap probes.
> * amd64-linux-tdep.c (amd64_linux_init_abi): Initializing proper
> fields used by SystemTap probes' arguments parser.
> * arm-linux-tdep.c: Including headers needed to perform the parsing
> of SystemTap probes' arguments.
> (arm_stap_is_single_operand): New function.
> (arm_stap_parse_special_token): Likewise.
> (arm_linux_init_abi): Initializing proper fields used by SystemTap
> probes' arguments parser.
> * ax-gdb.c (require_rvalue): Removing static declaration.
> (gen_expr): Likewise.
> * ax-gdb.h (gen_expr): Declaring function.
> (require_rvalue): Likewise.
> * breakpoint.c: Include `gdb_regex.h' and `stap-probe.h'.
> (bkpt_stap_probe_breakpoint_ops): New variable.
> (modify_semaphore): New function.
> (insert_bp_location): Call `modify_semaphore'.
> (remove_breakpoint_1): Likewise.
> (momentary_breakpoint_from_master): Use the `semaphore' value.
> (add_location_to_breakpoint): Likewise.
> (break_command_1): Using proper breakpoint_ops according to the
> argument passed by user in the command line.
> (bkpt_stap_probe_create_sals_from_address): New function.
> (bkpt_stap_probe_decode_linespec): Likewise.
> (initialize_breakpoint_ops): Initializing breakpoint_ops from
> SystemTap probes.
> * breakpoint.h (struct bp_location) <semaphore>: New field.
> (modify_semaphore): New function.
> * cli-utils.c (skip_spaces_const): New function.
> (extract_arg): Likewise.
> * cli-utils.h (skip_spaces_const): Likewise.
> (extract_arg): Likewise.
> * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
> * dbxread.c (aout_sym_fns): Likewise.
> * elfread.c: Include `stap-probe.h' and `arch-utils.h'.
> (stap_probe_key): New variable.
> (struct stap_probe_per_objfile): New struct.
> (handle_probe): New function.
> (STAP_BASE_SECTION_NAME): New define.
> (get_base_address_1): New function.
> (get_base_address): Likewise.
> (elf_get_probes): Likewise.
> (elf_get_probe_argument_count): Likewise.
> (elf_evaluate_probe_argument): Likewise.
> (elf_compile_to_ax): Likewise.
> (elf_symfile_relocate_probe): Likewise.
> (stap_probe_key_free): Likewise.
> (elf_probe_fns): New variable.
> (elf_sym_fns): Add `sym_probe_fns' value.
> (elf_sym_fns_lazy_psyms): Likewise.
> (elf_sym_fns_gdb_index): Likewise.
> (_initialize_elfread): Initialize objfile cache for SystemTap
> probes.
> * gdbarch.c: Regenerate.
> * gdbarch.h: Regenerate.
> * gdbarch.sh (stap_integer_prefix): New variable.
> (stap_integer_suffix): Likewise.
> (stap_register_prefix): Likewise.
> (stap_register_suffix): Likewise.
> (stap_register_indirection_prefix): Likewise.
> (stap_register_indirection_suffix): Likewise.
> (stap_gdb_register_prefix): Likewise.
> (stap_gdb_register_suffix): Likewise.
> (stap_is_single_operand): New function.
> (stap_parse_special_token): Likewise.
> (struct stap_parse_info): Forward declaration.
> * i386-linux-tdep.c (i386_linux_init_abi): Initializing proper
> fields used by SystemTap probes' arguments parser.
> * i386-tdep.c: Including headers needed to perform the parsing
> of SystemTap probes' arguments.
> (i386_stap_is_single_operand): New function.
> (i386_stap_parse_special_token): Likewise.
> * i386-tdep.h (i386_stap_is_single_operand): Likewise.
> (i386_stap_parse_special_token): Likewise.
As far as I can tell SystemTap is Linux-specific. So I'd think its
support should go completely in Linux-specific -tdep.c files.
next prev parent reply other threads:[~2012-03-10 16:56 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 20:29 [PATCH 0/3] Implement support for SystemTap probes on userspace Sergio Durigan Junior
2012-03-09 20:32 ` [PATCH 1/3] Refactor internal variable mechanism Sergio Durigan Junior
2012-03-09 21:03 ` Tom Tromey
2012-03-10 4:02 ` Sergio Durigan Junior
2012-03-09 20:34 ` [PATCH 3/3] Use longjmp and exception probes when available Sergio Durigan Junior
2012-03-09 20:34 ` [PATCH 2/3] Implement new features needed for handling SystemTap probes Sergio Durigan Junior
2012-03-10 8:38 ` Eli Zaretskii
2012-03-10 16:56 ` Mark Kettenis [this message]
2012-03-12 15:11 ` Tom Tromey
2012-03-13 8:58 ` Mark Kettenis
2012-03-13 16:06 ` Sergio Durigan Junior
2012-03-15 20:44 ` Tom Tromey
2012-03-16 14:52 ` Mark Kettenis
2012-03-16 18:17 ` Tom Tromey
2012-03-10 19:22 ` Jan Kratochvil
2012-03-12 20:37 ` Tom Tromey
2012-03-12 23:15 ` Jan Kratochvil
2012-03-15 15:40 ` Pedro Alves
2012-03-15 15:36 ` Pedro Alves
2012-03-15 20:50 ` Tom Tromey
2012-03-09 21:15 ` [PATCH 0/3] Implement support for SystemTap probes on userspace Tom Tromey
2012-03-10 3:51 ` Sergio Durigan Junior
2012-03-10 7:55 ` Eli Zaretskii
2012-03-10 8:55 ` Jan Kratochvil
2012-03-10 9:06 ` Eli Zaretskii
2012-03-10 15:52 ` Sergio Durigan Junior
2012-03-12 19:59 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201203101655.q2AGte2M019374@glazunov.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=sergiodj@redhat.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox