winaddr2line shows no output

Discussion to talk about software related topics only.
Post Reply
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

winaddr2line shows no output

Post by sulliwk06 »

Has anyone else had a problem with the winaddr2line application showing no results when attempting to decode a program counter? I've seen where it shows the "???" before when it can't find the code to reference, but this is different, the output window is just blank. I'm pointing to the elf file properly and entering the hex address from the trap message, but I get nothing. I tried setting up a default project just to make sure it wasn't something with my project, but that didn't help. I tried on both nndk 2.6.8. and 2.6.7. I know I've used it successfully in the past but I can't think of what might have changed since then.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: winaddr2line shows no output

Post by dciliske »

Oh, at first I thought you were referring to m68k-elf-addr2line (which winaddr2line calls behind the scenes). I've had it where m68k-elf-addr2line fails for some strange reason. The workaround I've used is to use m68k-elf-objdump to disassemble the elf and match up the address in that output. You'll want to use the flags '-dS' for 'disassemble' and 'Source'. Then just grep for the address.

Code: Select all

m68k-elf-objdump -dS ourApp.elf > ourApp.ds
-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply