This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Decode function entry mask on VAXen
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jan-Benedict Glaw <jbglaw at microdata-pos dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 8 Mar 2005 22:44:00 +1030
- Subject: Re: Decode function entry mask on VAXen
- References: <20050308031430.A2959@microdata-pos.de>
objdump already breaks up calls to disassemble_bytes into the pieces of
a section between two defined symbols (possibly validated by a target
symbol_is_valid function). So if the only symbols in vax code are those
at the beginning of a function, your idea of using last_symbol_address
will work. However, I think it would be better to pass
"asymbol *last_symbol" instead, which gives your backend disassembler_fn
a chance to deal with non-function symbols that might appear in code.
Note that gdb also uses the disassembler, so it would be a good idea to
see how your ideas fit in with gdb too.
--
Alan Modra
IBM OzLabs - Linux Technology Centre