public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode
Date: Mon, 15 Sep 2014 02:09:00 -0000	[thread overview]
Message-ID: <87r3zd4p2f.fsf@codesourcery.com> (raw)
In-Reply-To: <87ha0a6x95.fsf@igel.home> (Andreas Schwab's message of "Sun, 14	Sep 2014 17:24:22 +0200")

Andreas Schwab <schwab@linux-m68k.org> writes:

> (gdb) p main_label 
> $1 = {<text variable, no debug info>} 0x100004e0 <.main+12>

How about getting the offset by 'p main_label - main'?  It also fixes the
zero-offset problem you pointed out in another mail.

-- 
Yao (齐尧)

  reply	other threads:[~2014-09-15  2:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-14 11:31 Andreas Schwab
2014-09-14 14:37 ` Yao Qi
2014-09-14 15:24   ` Andreas Schwab
2014-09-15  2:09     ` Yao Qi [this message]
2014-09-15  8:57       ` Andreas Schwab
  -- strict thread matches above, loose matches on Subject: below --
2014-09-03  1:23 Yao Qi
2014-09-03 17:51 ` Doug Evans
2014-09-05 11:08   ` Yao Qi
2014-09-14  9:35 ` Yao Qi
2014-09-15 12:29   ` Yao Qi
2014-09-22 13:52     ` Yao Qi
2014-09-30 14:04       ` Yao Qi
2014-10-07 14:03         ` Yao Qi
2014-10-08 15:21     ` Doug Evans

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=87r3zd4p2f.fsf@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=schwab@linux-m68k.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).