public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@cygnus.com>
To: Insight List <insight@sourceware.cygnus.com>
Subject: three notes on setting breakpoints
Date: Fri, 07 Apr 2000 15:05:00 -0000	[thread overview]
Message-ID: <87itxtk1fz.fsf@cygnus.com> (raw)

Today I'm an Insight bug-reporting machine.  I'm using it to debug gcj
(the Java front end to gcc), and sometimes stubs I'm generating from
gcj, both of which are fairly nasty tests.

Hey, Jim -- don't feel like you have to reply to all of these
messages.  I'm assuming you're noting them for the happy day that you
can spend doing Insight hacking.

(First, I noticed that Insight saves my command-line arguments between
sessions.  This is cool!  I wish it saved them based on the exec file,
though, because I have a different set of arguments when I debug the
other program I'm working on today.  This is note #1.)

gcj has two files named "expr.c" -- gcc/expr.c and gcc/java/expr.c.  I
want to set a breakpoint on `build_jni_stub', my new function in
gcc/java/expr.c.  I decided to try, this time, to live without the
console if I could.

So, I went to the source window and used the combobox in the lower
left to show expr.c.  It shows the "wrong" (for my purposes) expr.c.
There is apparently no way to convince it to show the right one.  That
means I can't find the function I want to set a breakpoint on it.

Ideally I'd like to see "expr.c" and "java/expr.c" in the combobox.
Even seeing "expr.c" twice would be ok.  ISTR that getting the right
information out of gdb here is a pain though.  (Note #2.)

Also, I noticed that the contents of the function combobox are not
sorted alphabetically.  They almost are.  I don't understand what I'm
seeing, because they also aren't in the order they appear in the
source file.  They are sorted from clear_pending_stack_adjust to
use_regs, and then sorted from clear_by_pieces to var_rtx.  Weird.
(Note #3.)

The breakpoint window doesn't provide me with a way to set an
arbitrary breakpoint.  So in my case I seem to be forced to use the
Console window -- which I understand isn't all that well supported :-(
(Ok, note #4, which I didn't mention in the subject.)

Tom

             reply	other threads:[~2000-04-07 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-07 15:05 Tom Tromey [this message]
2000-04-07 17:39 ` James Ingham
2000-04-07 17:47   ` Tom Tromey
2000-04-09 15:33   ` Steven Johnson

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=87itxtk1fz.fsf@cygnus.com \
    --to=tromey@cygnus.com \
    --cc=insight@sourceware.cygnus.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).