Commit Graph

53785 Commits

Author SHA1 Message Date
Vladimir Prus b3296dc54c * hist.h (struct histogram)
(histograms, num_histograms): New.
	* hist.c (find_histogram, find_histogram_for_pc)
	(read_histogram_header): New.
	(s_lowpc, s_highpc, lowpc, highpc, hist_num_bins)
	(hist_sample): Remove.
	(hist_read_rec): Use the above, and handle multiple
	histogram records with disjoint address ranges.
	(hist_write_hist): Support several histogram records.
	(scale_and_align_entries): Adjust for multiple histograms.
	(hist_assign_samples_1): New.
	(hist_assign_samples): Use the above.
	(hist_clip_symbol_address): New.
	* hist.h (hist_check_address)
	(hist_clip_symbol_address): Declare.
	* gmon_io.c (gmon_out_read, gmon_out_write): Adjust handling
	of legacy format for multiple histogram changes.
	* corefile.c (find_call): Check for core_text_space and
	clip symbol address range here.
	* vax.c	(vax_find_call): Don't check for
	core_text_space, or clip the symbol's address range here.
	Use hist_check_address to check call's target address.
	* sparc.c: Likewise.
	* tahoe.c: Likewise.
	* i386.c: Likewise.
	* mips.c: Likewise. Also use core_text_sect->vma as the base
	address for code accesses, just like other machine-specific
	routines do.
	* gprof.texi: Adjust for the new logic.
2007-04-10 07:57:31 +00:00
gdbadmin 8e77c9de92 *** empty log message *** 2007-04-10 00:00:32 +00:00
Alan Modra cc4e0f0dc3 daily update 2007-04-10 00:00:06 +00:00
Kazu Hirata 56dc1f8ac3 * m68k-dis.c (print_insn_m68k): Restore info->fprintf_func and
info->print_address_func if longjmp is called.
2007-04-09 17:09:56 +00:00
Daniel Jacobowitz 9150673628 * src-release (do-proto-toplev): Process the support directories before
the tool directory.

	* Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
	* doc/Makefile.am (DOCFILES): Add bfdver.texi.
	(bfdver.texi): New rule.
	* Makefile.in, doc/Makefile.in: Regenerated.
2007-04-09 15:36:44 +00:00
Daniel Jacobowitz 6eef13555f * dwarf.c (process_debug_info): Do not require DW_AT_frame_base for
DW_TAG_inlined_subroutine.
2007-04-09 14:36:59 +00:00
gdbadmin 3b3acb8bae *** empty log message *** 2007-04-09 00:00:33 +00:00
Alan Modra 3a8f241d20 daily update 2007-04-09 00:00:04 +00:00
Vladimir Prus 65cc4390f1 Pass stderr of program run with "target remote |"
via gdb_stderr.
        * serial.c (serial_open): Set error_fd to -1.
        * serial.h (struct serial): New field error_fd.
        (struct serial_opts): New field avail.
        * ser-pipe.c (pipe_open): Create another pair
        of sockets.  Pass stderr to gdb.
        * ser-mingw.c (pipe_windows_open): Pass
        PEX_STDERR_TO_PIPE to pex_run.  Initialize
        sd->error_fd.
        (pipe_avail): New.
        (_initialize_ser_windows): Hook pipe_avail.
        * ser-base.c (generic_readchar): Check if there's
        anything in stderr channel and route that to gdb_stderr.
2007-04-08 15:20:07 +00:00
gdbadmin 1edf24da1a *** empty log message *** 2007-04-08 00:00:32 +00:00
Alan Modra 4b36751659 daily update 2007-04-08 00:00:05 +00:00
gdbadmin 7332f2633a *** empty log message *** 2007-04-07 00:00:35 +00:00
Alan Modra e62ef0e682 daily update 2007-04-07 00:00:07 +00:00
Matt Thomas 6f7b6869f3 2007-04-06 Matt Thomas <matt@netbsd.org>
* config/tc-vax.c (vax_cons): Added to support %pcrel{8,16,32}(exp)
	to emit pcrel relocations by DWARF2 in non-code sections.  Borrowed
	heavily from tc-sparc.c.  (vax_cons_fix_new): Likewise.
2007-04-06 16:36:48 +00:00
Matt Thomas da6bcfca95 2007-04-03 Matt Thomas <matt@netbsd.org>
* elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
	in a shared object if it is not in a CODE section or if it is against
	a section symbol.  This allows DWARF2 to use pcrel format.
2007-04-06 16:29:32 +00:00
Matt Thomas 5ad507eea3 2007-04-06 Matt Thomas <matt@netbsd.org>
* MAINTAINERS: Add myself as VAX and NetBSD support maintainer.
2007-04-06 16:08:06 +00:00
Joel Brobecker 34d8f01b80 * filename_cmp.c (filename_cmp): Improve documentation. 2007-04-06 06:01:54 +00:00
Alan Modra c4d88c12e6 daily update 2007-04-06 00:00:07 +00:00
gdbadmin 09523abea5 *** empty log message *** 2007-04-06 00:00:03 +00:00
H.J. Lu 9267588cdc bfd/
2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/4304
	* elflink.c (bfd_elf_final_link): Call einfo callback in
	bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
	warning.

ld/testsuite/

2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/4304
	* ld-i386/i386.exp: Run "warn1".

	* ld-i386/warn1.d: New file.
	* ld-i386/warn1.s: Likewise.
2007-04-05 16:16:28 +00:00
H.J. Lu ea9cd3c85b 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
* ld-i386/combreloc.d: Remove #target: i?86-*-*.
	* ld-i386/reloc.d: Likewise.
2007-04-05 13:47:02 +00:00
Alan Modra c1b2796f47 bfd/
* elf32-spu.c (spu_elf_output_symbol_hook): New function.
	(elf_backend_link_output_symbol_hook): Define.
ld/testsuite/
	* ld-spu/ovl2.d: Update.
2007-04-05 07:01:53 +00:00
Alan Modra be26064bad PR binutils/4292
* nm.c (print_value): Cast bfd_vma to unsigned long to suit
	value_format_32bit.
2007-04-05 06:36:35 +00:00
Eric Christopher f5fb443987 2007-04-04 Eric Christopher <echristo@apple.com>
Move from gcc:
        2007-04-04  Zack Weinberg  <zack@mrtock.ucsd.edu>

                * texi2pod.pl: Correct handling of @itemize with no argument.

        2007-02-16  Matthias Klose  <doko@debian.org>

                * texi2pod.pl: Handle @subsubsection, ignore @anchor.

        2007-02-06  Richard Sandiford  <richard@codesourcery.com>

                * texi2pod.pl: Handle @multitable.
2007-04-05 05:55:51 +00:00
Alan Modra e713eb1619 daily update 2007-04-05 00:00:05 +00:00
gdbadmin a5cc7f42e5 *** empty log message *** 2007-04-05 00:00:02 +00:00
Kazu Hirata d0e8669a8d * config/tc-m68k.c (HAVE_LONG_BRANCH): Add fido_a. 2007-04-04 22:10:34 +00:00
Paul Brook 3b8d421e14 2007-04-04 Paul Brook <paul@codesourcery.com>
gas/
	* config/tc-arm.c (do_neon_ext): Enforce immediate range.
	(insns): Use I15 for vext.

	gas/testsute/
	* gas/arm/neon-cov.s: Add new vext test.
	* gas/arm/neon-cov.d: Ditto.
2007-04-04 19:21:24 +00:00
Paul Brook 9fcfe2ed35 2007-04-04 Paul Brook <paul@codesourcery.com>
ld/
	* configure.tgt: Loosen checks for arm uclinux eabi targets.
	gas/
	* configure.tgt: Loosen checks for arm uclinux eabi targets.
2007-04-04 18:02:39 +00:00
Alan Modra e7951e8e63 daily update 2007-04-04 00:00:06 +00:00
gdbadmin d46758fcb6 *** empty log message *** 2007-04-04 00:00:02 +00:00
Pedro Alves e9112110ed * dbxread.c (read_ofile_symtab): Move current_objfile
clearing to after end_stabs.
2007-04-03 00:09:54 +00:00
Alan Modra 497ad96a43 daily update 2007-04-03 00:00:06 +00:00
gdbadmin 8d9a4617bb *** empty log message *** 2007-04-03 00:00:04 +00:00
Bob Wilson a3582eee7b * config/tc-xtensa.c (xtensa_flush_pending_output): Check
outputting_stabs_line_debug.
2007-04-02 20:05:47 +00:00
Denis Chertykov 7b60f4730c * config/tc-avr.c (mcu_types): Add support for at90pwm1, at90usb82,
at90usb162, atmega325p, atmega329p, atmega3250p and atmega3290p
	devices.
	* doc/c-avr.texi: Document new devices.
2007-04-02 18:42:36 +00:00
Bob Wilson 79a6e687bf * gdb.texinfo: Consistently capitalize all significant words in
node names, chapter titles, section titles, and headings.  Update
	cross references to match.
	(Starting and Stopping Trace Experiment): Make node name plural.
	(Breakpoint related warnings): Hyphenate "Breakpoint-related".
2007-04-02 17:31:40 +00:00
Nick Clifton 970ccc7734 PR binutils/4292
* bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
  targets as 64-bit values, even if running on a 64-bit host.
* coffgen.c (coff_print_symbol): Likewise.
* nm.c (value_format): Replace with value_format_32bit and
  value_format_64bit.
  (set_radix): Update setting of value_format.
  (set_print_width): New function.  Compute the address size of a
  given bfd and set the print_width global appropriately.
  (display_archive): Use set_print_width.
  (display_file): Likewise,
  (print_object_filename_sysv): Update use of print_width.
  (print_archive_member_sysv): Likewise.
  (print_symbol_filename_posix): Likewise.
  (print_sumbol_info_bfd, print_symbol_info_sysv): Likewise.
2007-04-02 16:51:13 +00:00
H.J. Lu f856040acc ld/
2007-04-02  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/4090
	* ldexp.h (node_type): Add lineno.
	* ldexp.c: Include "ldlex.h".
	(exp_intop): Set the lineno field from lineno.
	(exp_bigintop): Likewise.
	(exp_relop): Likewise.
	(exp_nameop): Likewise.
	(exp_binop): Set the lineno field from lineno of lhs.
	(exp_trinop): Likewise.
	(exp_unop): Set the lineno field from lineno of child.
	(exp_assop): Set the lineno field from lineno of src.
	(exp_provide): Likewise.
	(exp_assert): Set the lineno field from lineno of exp.
	(exp_get_abs_int): Set lineno from lineno of nonconstant
	expression when report problem.

ld/testsuite/

2007-04-02  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/4090
	* ld-elf/expr1.d: New file.
	* ld-elf/expr1.s: Likewise.
	* ld-elf/expr1.t: Likewise.
2007-04-02 16:32:04 +00:00
Richard Sandiford 0c00074519 gas/
* doc/as.texinfo: Add -mvxworks-pic to the list of MIPS options.
	* doc/c-mips.texi (-KPIC, -mvxworks-pic): Document.
	* config/tc-mips.c (md_show_usage): Mention -mvxworks-pic.
2007-04-02 14:25:27 +00:00
Andreas Schwab 2657faa6af * filename_cmp.c: Include "config.h". 2007-04-02 11:20:52 +00:00
Alan Modra e06c28431c daily update 2007-04-02 00:00:07 +00:00
gdbadmin f4b119d015 *** empty log message *** 2007-04-02 00:00:02 +00:00
Andreas Schwab 7f68ac277b * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
gdbarch instead of current_gdbarch.
2007-04-01 18:24:59 +00:00
Vladimir Prus e55dccf02d * varobj.c (varobj_create): Keep varobj value
NULL when evaluating the type.
2007-04-01 15:44:54 +00:00
Vladimir Prus a73bafbcaa * gdb.mi/mi-var-child.c
(do_children_tests): User char[2] instead of
        char so that automatic printing of pointers to char
        don't give unpredicable result.
        * gdb.mi/var-cmd.c (do_locals_test): Initialize
        local variables.
        * gdb.mi/mi-var-child.exp: Step to right line
        of do_children_tests.
        * gdb.mi/mi2-var-child.exp: Likewise.
        * gdb.mi/mi-var-cmd.exp: Step to right line of
        do_locals_tests.
        (do_children_tests): User char[2] instead of
        char so that automatic printing of pointers to char
        don't give unpredicable result.
        * gdb.mi/mi2-var-cmd.exp: Likewise.
        * lib/mi-support.exp (mi_continue_to_line):
        Pass test name to mi_wait_for_stop.
2007-04-01 15:27:26 +00:00
Alan Modra 30dc3ae378 daily update 2007-04-01 00:00:05 +00:00
gdbadmin 917db39e7c *** empty log message *** 2007-04-01 00:00:04 +00:00
Christian Groessler 46a1babec9 * gas/z8k/calr.d: Fix for 64bit bfd.
* gas/z8k/djnz.d: Likewise.
	* gas/z8k/inout.d: Likewise.
	* gas/z8k/jmp-cc.d: Likewise.
	* gas/z8k/jr-back.d: Likewise.
	* gas/z8k/jr-forw.d: Likewise.
	* gas/z8k/reglabel.d: Likewise.
	* gas/z8k/ctrl-names.d: Fix name.  Fix for 64bit bfd.
	* gas/z8k/ret-cc.d: Likewise.
2007-03-31 22:28:06 +00:00
Pedro Alves 7c9634853f * NEWS: Mention new Windows CE support. 2007-03-31 10:42:22 +00:00