From: Eli Zaretskii <eliz@gnu.org>
To: Christina Schimpe <christina.schimpe@intel.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/1] gdb, breakpoint: add breakpoint location debugging logs
Date: Tue, 21 Feb 2023 14:43:23 +0200 [thread overview]
Message-ID: <83ilfvtcic.fsf@gnu.org> (raw)
In-Reply-To: <20230221090501.1487842-2-christina.schimpe@intel.com> (message from Christina Schimpe via Gdb-patches on Tue, 21 Feb 2023 10:05:01 +0100)
> Date: Tue, 21 Feb 2023 10:05:01 +0100
> From: Christina Schimpe via Gdb-patches <gdb-patches@sourceware.org>
>
> From: Mihails Strasuns <mihails.strasuns@intel.com>
>
> Add new commands:
>
> set debug breakpoints on|off
> show debug breakpoints
>
> This patch introduces new debugging information that prints
> breakpoint location insertion and removal flow.
>
> The debug output looks like:
> ~~~
> (gdb) set debug breakpoints on
> (gdb) disassemble main
> Dump of assembler code for function main:
> 0x0000555555555129 <+0>: endbr64
> 0x000055555555512d <+4>: push %rbp
> 0x000055555555512e <+5>: mov %rsp,%rbp
> => 0x0000555555555131 <+8>: mov $0x0,%eax
> 0x0000555555555136 <+13>: pop %rbp
> 0x0000555555555137 <+14>: ret
> End of assembler dump.
> (gdb) break *0x0000555555555137
> Breakpoint 2 at 0x555555555137: file main.c, line 4.
> [breakpoints] update_global_location_list: UGLL_MAY_INSERT
> (gdb) c
> Continuing.
> [breakpoints] update_global_location_list: UGLL_INSERT
> [breakpoints] insert_bp_location: bp_location (0x562881637fb0) at address 0x555555555137 in main at main.c:4
> [breakpoints] insert_bp_location: bp_location (0x56288179a4f0) at address 0x7ffff7fd37b5 <dl_main+8661>
> [breakpoints] insert_bp_location: bp_location (0x56288179ea60) at address 0x7ffff7fe509e <dl_open_worker+1150>
> [breakpoints] insert_bp_location: bp_location (0x5628817184d0) at address 0x7ffff7fe63f4 <_dl_close_worker+2356>
> [breakpoints] remove_breakpoint_1: bp_location (0x562881637fb0) due to regular remove at address 0x555555555137 in main at main.c:4
> [breakpoints] remove_breakpoint_1: bp_location (0x56288179a4f0) due to regular remove at address 0x7ffff7fd37b5 <dl_main+8661>
> [breakpoints] remove_breakpoint_1: bp_location (0x56288179ea60) due to regular remove at address 0x7ffff7fe509e <dl_open_worker+1150>
> [breakpoints] remove_breakpoint_1: bp_location (0x5628817184d0) due to regular remove at address 0x7ffff7fe63f4 <_dl_close_worker+2356>
>
> Breakpoint 2, 0x0000555555555137 in main () at main.c:4
> 4 }
> ~~~
>
> Co-Authored-By: Christina Schimpe <christina.schimpe@intel.com>
> ---
> gdb/NEWS | 4 +++
> gdb/breakpoint.c | 66 +++++++++++++++++++++++++++++++++++++++++++++
> gdb/doc/gdb.texinfo | 8 ++++++
> 3 files changed, 78 insertions(+)
Thanks, the documentation parts are okay.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
next prev parent reply other threads:[~2023-02-21 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 9:05 [PATCH 0/1] Add " Christina Schimpe
2023-02-21 9:05 ` [PATCH 1/1] gdb, breakpoint: add " Christina Schimpe
2023-02-21 12:43 ` Eli Zaretskii [this message]
2023-03-10 10:01 ` Bruno Larsen
2023-03-09 14:55 ` [PING][PATCH 0/1] Add " Schimpe, Christina
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=83ilfvtcic.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=christina.schimpe@intel.com \
--cc=gdb-patches@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).