This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Re-instating an annotation.
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: gdb-patches at sourceware dot org
- Date: Tue, 4 Jul 2006 11:22:02 +1200
- Subject: [PATCH] Re-instating an annotation.
Having removed many of the annotations in Level 3, I'd like to put one back.
Just in case anyone is interested, one reason I want it back because for some
reason GDB prints out the frame details _before_ the stopped annotation.
I would really like to call the "--annotate=3" option "--emacs" to discourage
others from using it. In any case adding one annotation shouldn't break
a front end because it should just ignore it.
OK to commit?
--
Nick http://www.inet.net.nz/~nickrob
2006-07-04 Nick Roberts <nickrob@snap.net.nz>
* annotate.c (annotate_frame_begin): Re-instate frame-begin
annotation for level 3 annotations.
--- annotate.c 20 Jun 2006 08:48:51 +1200
*************** annotate_source (char *filename, int lin
*** 430,436 ****
void
annotate_frame_begin (int level, CORE_ADDR pc)
{
! if (annotation_level == 2)
{
printf_filtered (("\n\032\032frame-begin %d 0x"), level);
deprecated_print_address_numeric (pc, 0, gdb_stdout);
--- 430,436 ----
void
annotate_frame_begin (int level, CORE_ADDR pc)
{
! if (annotation_level > 1)
{
printf_filtered (("\n\032\032frame-begin %d 0x"), level);
deprecated_print_address_numeric (pc, 0, gdb_stdout);