Commit graph

491 commits

Author SHA1 Message Date
Ian Lance Taylor
fb38844dcb addr2line.c contributed by Ulrich Lauther
<Ulrich.Lauther@zfe.siemens.de>:
	* addr2line.c: New file.
	* Makefile.in: Rebuild dependencies.
 	(ADDR2LINE_PROG): New variable.
	(MANPAGES): Add addr2line.
	(PROGS): Add $(ADDR2LINE_PROG).
	(CFILES): Add addr2line.c.
	($(ADDR2LINE_PROG)): New target.
	* binutils.texi: Document addr2line.
	* addr2line.1: New file.
1997-03-27 21:35:00 +00:00
Ian Lance Taylor
6d17c8eb26 * version.c (print_version): Update copyright date. 1997-03-27 21:03:14 +00:00
Jeff Law
1afd299b8f * size.c (usage): Make definition match its prototype.
(display_bfd, lprint_number, rprint_number): Likewise.
        (print_berkeley_format, sysv_internal_printer): Likewise.
        (print_sysv_format): Likewise.
        * nm.c (set_print_radix, set_output_format): Likewise.
        * objcopy.c (filter_bytes): Likewise.
1997-03-21 04:28:24 +00:00
Ian Lance Taylor
e0742b2400 * Makefile.in: Rebuild dependencies. 1997-03-18 16:37:42 +00:00
Ian Lance Taylor
9793039fc6 Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
* objdump.c: Include "demangle.h".
	(do_demangle): New static variable.
	(usage): Mention -C/--demangle.
	(long_options): Add "demangle".
	(objdump_print_symname): New static function.
	(objdump_print_addr_with_sym): Use objdump_print_symname.
	(disassemble_bytes): Likewise.
	(dump_reloc_set): Likewise.
	(dump_symbols): Demangle symbol name.
	(main): Handle -C.
	* binutils.texi, objdump.1: Document -C/--demangle.
1997-03-15 21:50:56 +00:00
Ian Lance Taylor
5c59269f50 * objdump.c (usage): Mention --no-show-raw-insn.
(long_options): Add "no-show-raw-insn".
	(disassemble_bytes): Handle --no-show-raw-insn.
	* binutils.texi, objdump.1: Document --no-show-raw-insn.
1997-03-15 20:37:45 +00:00
Michael Meissner
b185d567f5 Use change-log-mode, not indented-text-mode 1997-02-27 18:45:17 +00:00
Ian Lance Taylor
f2566b6114 * arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
than malloc.
1997-02-14 01:18:32 +00:00
Ian Lance Taylor
dd199a3ef7 * objdump.c (disassemble_data): Correct VMA argument to
find_symbol_for_address.  Improve handling of code with no symbol
	followed by code with a symbol.
1997-02-12 21:13:06 +00:00
Ian Lance Taylor
0988ea9f3e Wed Feb 12 12:16:47 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_bytes): Make output of raw instructions
	work better for non-standard values of bytes_per_chunk and
	bytes_per_line.

I also fixed the spacing in the last patch.
1997-02-12 17:18:38 +00:00
Martin Hunt
33a795ddf3 Thu Feb 6 14:14:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
* objdump.c (disassemble_bytes): Added code to allow some control
 	over the way raw instructions are displayed.
1997-02-06 22:22:37 +00:00
Ian Lance Taylor
20bf2b0a01 * stabs.c (struct bincl_file): Add next_stack field.
(push_bincl): Put the new file on both bincl_list and
	bincl_stack.  Clear the file_types field.
	(pop_bincl): Use the next_stack field when popping the stack.
	Don't put the file on bincl_list.
	(find_excl): Include the file name when warning about an unfound
	N_EXCL.

	* debug.c (debug_type_samep): Don't crash if we are passed NULL.
PR 11465.
1997-02-06 17:46:46 +00:00
Ian Lance Taylor
70dce6775f Thu Feb 6 11:54:24 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
* objcopy.1: Add missing space after .B.
1997-02-06 16:55:10 +00:00
Ian Lance Taylor
8275482ce0 Fri Jan 31 10:33:07 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_data): Initialize `aux.require_sec'.
1997-01-31 15:34:12 +00:00
Ian Lance Taylor
51b8c41677 * objdump.c (objdump_print_value): Add skip_zeroes parameter.
Change all callers.
	(objdump_print_addr_with_sym): Likewise.  Call objdump_print_value
	to print address.
	(objdump_print_addr): New static function.
	(objdump_print_address): Just call objdump_print_addr.
	(disassemble_bytes): Print real address, not function offset.
	Skip a certain number of leading zeroes.

	* objdump.c (disassemble_zeroes): New static variable.
	(usage): Mention --disassemble-zeroes.
	(long_options): Add "disassemble-zeroes".
	(disassemble_bytes): Check disassemble_zeroes.
Changes requested by LSI.
1997-01-29 18:58:04 +00:00
Ian Lance Taylor
b4aabb244e * objdump.c (disassemble_bytes): Don't skip zeroes if the
disassembler has told us that we are in a branch delay slot.
1997-01-28 21:47:52 +00:00
Ian Lance Taylor
a6a7e138bf * size.c (berkeley_sum): Rewrite. Skip sections which are not
SEC_ALLOC.  Count SEC_READONLY sections as text.
1997-01-20 20:05:33 +00:00
Ian Lance Taylor
6ded661565 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE. 1996-12-31 20:43:28 +00:00
Ian Lance Taylor
d4dd7795d9 * configure.in: Work around bug in AC_FUNC_VFORK in autoconf 2.12.
* configure: Rebuild.
1996-12-27 16:20:58 +00:00
Stan Shebs
51cd0ae7db * mpw-make.sed: Use NewFolderRecursive for installation. 1996-12-19 19:29:38 +00:00
Ian Lance Taylor
9a442fe8a5 Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:
* objcopy.c (OPTION_WEAKEN): Define.
	(copy_options): Add "weaken".
	(copy_usage): Mention --weaken.
	(weaken): New static variable.
	(filter_symbols): Handle weaken.
	(copy_object): Call filter_symbols if weaken.
	(copy_main): Handle OPTION_WEAKEN.
	* binutils.texi, objcopy.1: Document --weaken.
PR 11272.
1996-12-19 18:16:45 +00:00
Ian Lance Taylor
e763bd6fad * ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
warning about uninitialized variable.
	(ieee_read_cxx_class): Likewise, for pf.
	(ieee_enum_type): Likewise, for i.
1996-12-06 22:22:52 +00:00
Ian Lance Taylor
a1e48de01d * objdump.c (disassemble_data): Don't crash if there is no
symbol.
1996-11-25 21:54:02 +00:00
Angela Marie Thomas
ff0bc27973 finally remove errant mentions of Sanitize 1996-11-18 03:13:31 +00:00
Ian Lance Taylor
fbc3fbe587 * stabs.c (struct stab_handle): Add bincl_list field.
(parse_stab): Pass value to push_bincl.  Call find_excl for
	N_EXCL.
	(struct bincl_file): Add hash, file and file_types fields.
	(push_bincl): Add hash parameter.  Save it in the new hash field.
	Save the file number in the new file field.
	(pop_bincl): Put the bincl_file on bincl_list, rather than freeing
	it.  Save the file types in the new file_types field.
	(find_excl): New static function.
PR 10980.
1996-11-01 03:06:49 +00:00
Ian Lance Taylor
0098633432 * ieee.c (ieee_lineno): Don't compare line number addresses to
info->highaddr (undo part of October 28 patch).
1996-11-01 02:21:50 +00:00
Ian Lance Taylor
af9168428d * objdump.c (objdump_print_value): Don't print the empty string
for zero.
1996-10-29 21:41:28 +00:00
Ian Lance Taylor
0788224594 * stabs.c (struct stab_handle): Add function_end field.
(start_stab): Initialize function_end.
	(finish_stab): Pass info->function_end to debug_end_function.
	(parse_stab): If info->function_end is set, use it as the address
	which ends a function.
1996-10-28 22:17:52 +00:00
Ian Lance Taylor
9720a1a70f * ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
that are up to 0x1000 bytes apart, not just 64.
	(ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
	than 0x100 bytes.
	(ieee_lineno): Only emit line numbers that are less than
	info->highaddr.
1996-10-28 22:01:06 +00:00
Ian Lance Taylor
653735e1ba * objdump.c (disassemble_bytes): Let the disassembler override the
number of bytes printed on a line.
1996-10-25 16:14:40 +00:00
Ian Lance Taylor
e32ded5231 * rddbg.c (read_section_stabs_debugging_info): Preserve the
backslash when concatenating multiple stabs strings.
1996-10-24 20:43:23 +00:00
David Edelsohn
e39174c3f8 * dlltool.c (scan_open_obj_file): Fix loop exit test.
Add missing parameter to def_exports.
1996-10-10 18:47:46 +00:00
Ian Lance Taylor
d39bedb220 * Makefile.in (LEX_OPTIONS): Set to empty string. -I -Cem is the
default for flex, and is not recognized by lex.
PR 10819.
1996-10-08 16:07:23 +00:00
Ian Lance Taylor
55311d1cf1 * binutils.texi (Target Selection): Document that you can now
specify targets using configuration triplets.
1996-10-03 21:43:00 +00:00
Jason Molenda
42ad648437 * Makefile.in (clean): Remove config.log. 1996-10-03 06:38:49 +00:00
Ian Lance Taylor
f57e938fd5 Wed Oct 2 15:49:16 1996 Klaus Kaempf <kkaempf@progis.de>
* makefile.vms: Bump version date.
1996-10-02 19:50:19 +00:00
Ian Lance Taylor
7f924d5516 * version.c (print_version): New function.
* bucomm.h (print_version): Declare.
	* ar.c (program_version): Don't declare.
	(do_show_version): Remove.
	(usage): Add help parameter.  Print bug report address.
	(main): Set is_ranlib at start.  Check for --help and --version.
	Call print_version, not do_show_version.
	* nlmconv.c (program_version): Don't declare.
	(main): Call print_version.
	(show_usage): Print bug report address.
	* nm.c (program_version, print_version): Don't declare.
	(usage): Print bug report address.
	(main): Call print_version.
	* objcopy.c (program_version): Don't declare.
	(copy_usage): Print bug report address.
	(strip_usage): Likewise.
	(strip_main): Call print_version.
	(copy_main): Likewise.
	* objdump.c (program_version): Don't declare.
	(usage): Print bug report address.
	(main): Call print_version.
	* size.c (program_version): Don't declare.
	(usage): Print bug report address.
	(main): Call print_version.
	* strings.c (program_version): Don't declare.
	(main): Call print_version.
	(usage): Print bug report address.
	* Makefile.in: Update dependencies.
1996-10-01 19:10:40 +00:00
Ian Lance Taylor
81530f93ef * ieee.c (struct ieee_write_type): Add reflocalp field.
(ieee_pointer_type): Set reflocalp after pushing type.
	(ieee_function_type): If reflocalp is set, make this type local.
	(ieee_range_type, ieee_array_type, ieee_set_type): Likewise.
	(ieee_const_type, ieee_volatile_type): Likewise.
	(ieee_struct_field, ieee_class_baseclass): Likewise.
PR 10638.
1996-09-16 21:45:01 +00:00
Ian Lance Taylor
0dcbbb6029 * ieee.c (struct ieee_info): Add global_types field.
(parse_ieee_bb): When starting a BB1, initialize the types field
	to the global_types field.
	(parse_ieee_be): When ending a BB2, copy the types field to the
	global_types field.
1996-09-16 19:33:04 +00:00
Ian Lance Taylor
decf286508 * objcopy.c (change_leading_char): New static variable.
(OPTION_CHANGE_LEADING_CHAR): Define.
	(copy_options): Add "change-leading-char".
	(copy_usage): Mention --change-leading-char.
	(filter_symbols): Add obfd parameter.  Change all callers.
	Implement change_leading_char.
	(copy_object): Call filter_symbols if change_leading_char.
	(copy_main): Handle OPTION_CHANGE_LEADING_CHAR.
	* binutils.texi, objcopy.1: Document --change-leading-char.
1996-09-13 21:34:08 +00:00
Ian Lance Taylor
93f66767b9 * objdump.c (L_tmpnam): Never define.
(display_target_list): Use choose_temp_base instead of tmpnam.
	(display_info_table): Likewise.
PR 10482.
1996-08-29 15:30:19 +00:00
Ian Lance Taylor
48d94633c6 * wrstabs.c (struct string_hash_entry): Add next field.
(struct stab_write_handle): Change strings to a pointer to
	string_hash_entry.  Add last_strings field.  Remove strings_alloc
	field.
	(string_hash_newfunc): Initialize next field.
	(stab_write_symbol): Copy string into hash table rather than into
	buffer.  Keep a list of hash table entries.
	(write_stabs_in_sections_debugging_info): Initialize last_string.
	Copy strings from list of hash table entries in memory.
	(stab_modify_type): If the entry on the stack is a definition,
	make a new definition rather than failing an assert.
	(stab_array_type): The size is only zero if high is strictly less
	than low.
PR 10377.
1996-08-23 04:00:43 +00:00
Ian Lance Taylor
d8fc141a56 * prdbg.c (pr_fix_visibility): Don't abort on
DEBUG_VISIBILITY_IGNORE.
1996-08-23 03:27:47 +00:00
Ian Lance Taylor
f110739b39 * debug.c (debug_name_type): Correct error message. 1996-08-23 03:26:59 +00:00
Ian Lance Taylor
b69f18f103 * configure.in: Substitute HLDENV.
* configure: Rebuild.
	* Makefile.in (HLDENV): New variable.  Use it whenever linking a
	program.
1996-08-23 00:09:01 +00:00
Ian Lance Taylor
f0bbf79aea Wed Aug 7 14:27:33 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
	* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
	(NEED_DECLARATION_SBRK): New macro.
	* configure, config.in: Rebuild.
	* bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
	(sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.
1996-08-07 18:30:39 +00:00
Ian Lance Taylor
d24728a8b8 * objdump.c (disassemble_data): Set disasm_info.flavour from
abfd.
1996-07-26 18:07:33 +00:00
Ian Lance Taylor
64564077fd * dlltool.c (secdata): In non DLLTOOL_PPC case, change alignment
of .text section to 2.
1996-07-23 18:04:35 +00:00
Stu Grossman
18f39dfa12 * objdump.c (dump_section_stabs): Fix test for stabs sections
ending with numbers.  This fixes a problem with .stab being
	confused with .stab.index.
1996-07-22 15:49:34 +00:00
Ian Lance Taylor
7bcb64e019 * stabs.c (stab_demangle_fund_type): Return a void * for a
template, rather than simply aborting.
1996-07-10 17:35:33 +00:00