Commit Graph

15000 Commits

Author SHA1 Message Date
Jeff Law ed3b618d8d * infptrace.c (initialize_infptrace): Move function out of
#ifdef conditional; put code within the function inside an
        #ifdef conditional.
1996-01-08 19:02:08 +00:00
Michael Meissner 979c3c25fd Latest cagney update 1996-01-08 18:01:17 +00:00
Jeff Law 436d414327 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
arguments.  Sorting is now dependent on OBJF_REORDERED.  All
        callers/references changed.
        * dbxread.c (read_ofile_symtab): Correctly determine value for
        last_source_start_addr for reordered executables.
        (process_one_symbol): Handle N_FUN with no name as an end of
        function marker.
        * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
        is the high text address for a psymtab.
        (case N_SO): Likewise.
        (case N_FUN): Handle N_FUN with no name as an end of function
        marker.
        * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
        at the same address rather than a random subset of them.
        * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
        * elfread.c (elf_symfile_init): Similarly.
        * somread.c (som_symfile_init): Similarly.
        * xcoffread.c (xcoff_symfile_init): Similarly.

Support for debugging reordered executables.  Remaining mentor vm
changes.
1996-01-08 17:55:25 +00:00
Michael Meissner 01082eaf19 Make all-gdb include all-tcl/all-tk unless gdbtk is not built. 1996-01-06 12:33:59 +00:00
Gordon Irlam 5f917df14d Change guile directory structure. 1996-01-06 03:43:59 +00:00
Stu Grossman 5351b2a08a * stack.c (print_stack_frame print_frame_info) symmisc.c
(dump_symtab):  Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
	that catch_errors doesn't get blindsided by QUIT and lose the
	cleanup chain.  This fixes a problem where ^C while in a
	user-defined command sometimes leaves instream NULL and causes a
	segfault in command_loop.
1996-01-06 01:58:07 +00:00
Steve Chamberlain d42799374f * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
sort using right pointer.
1996-01-05 22:09:43 +00:00
Brendan Kehoe 127841e484 * configure.in, configure: Add `-ldl -lw' for Solaris linking. 1996-01-05 22:00:32 +00:00
Steve Chamberlain 6b4fe21d5e * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
	srec.o renamed to dsrec.o.
1996-01-05 20:05:36 +00:00
Michael Meissner 3cf013f81b Fix tlb for PowerPC 1996-01-05 17:46:25 +00:00
Michael Meissner 9dee2948a2 Move creating section begin/end labels to compiler crt{i,n}.o 1996-01-05 17:27:39 +00:00
Stu Grossman 2f4973f852 Update copyrights. Add copyright notice to configure.in. 1996-01-05 17:11:45 +00:00
Fred Fish 3b0addb61f Remove the pile of "Update copyright to ..." that I'd put in, and
the one from sac.
1996-01-05 15:20:05 +00:00
Fred Fish 767f22d543 * config.bfd (i[345]86-*-freebsd*): Add target.
* configure.in (i386freebsd_vec): Add vec.
	* configure: Regenerate.
	* Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
	(BFD32_BACKENDS_CFILES): Add i386freebsd.c.
	Rebuild dependencies..
	* freebsd.h: New file.
	* i386freebsd.c: New file.
	* targets.c (i386freebsd_vec): Declare.
	(bfd_target_vector): Add i386freebsd_vec.
	* i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
	* i386netbsd.c (SEGMENT_SIZE):  Define as TARGET_PAGE_SIZE
1996-01-05 05:44:27 +00:00
Ian Lance Taylor e61e7bcbfe * ieee.h (enum ieee_record): Add ieee_asn_record_enum,
ieee_at_record_enum, ieee_ty_record_enum, ieee_atn_record_enum,
	ieee_bb_record_enum, and ieee_be_record_enum.
1996-01-05 05:02:15 +00:00
Stu Grossman d039321cf3 Oops, forgot to sanitize the gdbtk enabling comment... 1996-01-05 01:11:44 +00:00
Stu Grossman 0fe1522ad0 * breakpoint.c (remove_breakpoint): Change error to warning so
that hardware watchpoint removal problems won't leave breakpoint
	traps in the target.
	* configure configure.in:  Make --enable-gdbtk be the default.
	* remote-e7000.c (e7000_insert_breakpoint,
	e7000_remove_breakpoint):  Use e7000 based breakpoints, not memory
	breakpoints.
	* (e7000_wait):  Adjust PC back by two when we see a breakpoint to
	compensate for e7000 maladjustment.
	* sparcl-tdep.c (sparclite_check_watch_resources):  Fix logic bug
	which prevented hardware watchpoints from working.
1996-01-05 00:42:36 +00:00
Ian Lance Taylor ed1f99e770 * configure.host: Change existing Linux HOSTING_CRT0 to be used
for a.out only, and put in appropriate HOSTING_CRT0 and
	HOSTING_LIBS values for Linux ELF.
1996-01-04 22:10:00 +00:00
Ian Lance Taylor f516798679 * ieee.c: New file with code to read IEEE debugging information.
* budbg.h (parse_ieee): Declare.
	* rddbg.c (read_debugging_info): Handle IEEE flavour files.
	(read_ieee_debugging_info): New static function.
	* Makefile.in: Rebuild dependencies.
	(CFILES): Add ieee.c.
	(OBJDUMP_OBJS): Add ieee.o.
1996-01-04 21:35:04 +00:00
Ian Lance Taylor f8254a3cc5 * ieee.c (ieee_slurp_debug): New static function.
(ieee_object_p): Call it.
	(ieee_slurp_section_data): Skip debugging sections.
	(ieee_get_reloc_upper_bound): Likewise.
	(ieee_get_section_contents): Likewise.
	(ieee_canonicalize_reloc): Likewise.
	(ieee_write_section_part): Likewise.
	(ieee_write_debug_part): Likewise.
	(ieee_write_data_part): Likewise.
	(init_for_output): Likewise.
1996-01-04 21:30:09 +00:00
Fred Fish 4b2dd77883 * gdb.base/corefile.exp: When generating a core, discard any
error messages about ulimit not found and the "core dumped"
	message from the shell that runs the coredumper.
1996-01-04 21:12:12 +00:00
Fred Fish 7531f36e8e Changes to hexdump "struct user" for child process on some configurations
that use ptrace().  This is not as useful as doing a full dump in a
human readable format, but is better than nothing when you are trying
to verify what is actually in the user struct.

	* infptrace.c (udot_info): New function.
	(PT_*): Define each individually if that one is not defined.
	Update copyright to 1996.
	* rs6000-nat.c (kernel_u_size): New function
	Include <sys/user.h> for "struct user"
	Update copyright to 1996.
	* alpha-nat.c (kernel_u_size): New function.
	Include <sys/user.h> for "struct user"
	Update copyright to 1996.
	* sparc-nat.c (kernel_u_size): New function.
	Include <sys/user.h> for "struct user"
	Update copyright to 1996.
	* i386b-nat.c (kernel_u_size): New function.
	Update copyright to 1996.
	* i386v-nat.c (kernel_u_size): New function.
	Update copyright to 1996.
	* config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
	(kernel_u_size): Declare.
	Update copyright to 1996.
	* config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
	(kernel_u_size): Declare.
	Update copyright to 1996.
	* config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
	(kernel_u_size): Declare.
	Update copyright to 1996.
	* config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
	(kernel_u_size): Declare.
	Update copyright to 1996.
	* config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
	(kernel_u_size): Declare.
	Update copyright to 1996.
1996-01-04 21:09:59 +00:00
David Edelsohn 5c5e420c9b * scripttempl/h8300.sc: Use all 64K for ram.
* scripttempl/h8300h.sc: Define 256K ram size.
1996-01-04 20:03:03 +00:00
Steve Chamberlain 1750a5ef21 * mdebugread.c (mylookup_symbol): enum namespace becomes
enum_namespace 	type.
	* symfile.c (add_psymbol_to_list)
	(add_psymbol_addr_to_list): Ditto.
	* symtab.c (lookup_partial_symbol): Ditto.
	(lookup_symbol): Ditto.
	(lookup_block_symbol): Ditto.
	* win32-nat.c (handle_load_dll): Use incoming dll base.
	(child_wait): Catch DLL load errors.
	(create_child_inferior): Translated between paths correctly.
1996-01-04 19:07:28 +00:00
Michael Meissner 3389dfdcc0 Pentium Pro changes from John Hassey 1996-01-04 18:37:42 +00:00
Fred Fish e33aefba5a * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
from NUM_REGS to get number of general registers that we care about.
	Update copyright to 1996.
	* config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
	of number of general regs and number of floating point regs.
	Update copyright to 1996.
1996-01-04 07:23:24 +00:00
Steve Chamberlain 1aa2655747 srec.c->dsrec.c 1996-01-04 05:44:58 +00:00
Steve Chamberlain a3b64bf964 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
(SKIP_TRAMPOLINE_CODE): New.
	* config/i386/xm-win32.h (CANT_FORK): Deleted.
	(SLASH*) Changed to use unix style slash.
1996-01-04 04:30:38 +00:00
Steve Chamberlain e02a2ad9d4 * symtab.h (namespace enum): becomes typedef to avoid namespace
collision in C++.
	* infcmd.c (path_command): Use empty string if PATH name not set.
	* i386-tdep.c (skip_trampoline_code): New function.
	* srec.c: Renamed dsrec.c to avoid filename collision.
	* Makefile.in: Cope with renaming.
	Update copyrights to 1996.
1996-01-04 04:21:57 +00:00
Ian Lance Taylor 9e64063e1c * gas/mips/ulh-svr4pic.d: Update for tc-mips.c load_address
change.
1996-01-04 03:57:43 +00:00
Steve Chamberlain a06a83b637 * readline.c, display.c, complete.c: Add _MSC_VER to list of
things which can't do most things.
1996-01-04 02:48:20 +00:00
David Edelsohn 4c0b7ebc0f * Makefile.in (newlib.tar.gz): Delete building of newlib's info files. 1996-01-04 01:56:05 +00:00
Michael Meissner 07a159dbd4 Make @GOT relocations work 1996-01-04 00:44:32 +00:00
Fred Fish ef4d61874b * symmisc.c (print_objfile_statistics): Print memory use statistics
for objfile psymbol, symbol, and type obstacks.
	Update copyright to 1996.
1996-01-03 22:00:45 +00:00
Fred Fish 655492f4ff * obstack.h: Update copyright to 1996.
(_obstack_memory_used): Declare.
	(obstack_memory_used): Define macro.
1996-01-03 21:58:13 +00:00
Ian Lance Taylor d812945a9a * coffcode.h (coff_write_object_contents): If we don't know the
section of the entry point for an XCOFF executable, always set the
	entry address to -1.
1996-01-03 20:07:39 +00:00
Michael Meissner 1d935cf62c Add Pentium Pro support 1996-01-03 16:51:46 +00:00
Jeff Law 978be38ec2 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
I hate skipping tests, but these seem pretty broken on the PA...
1996-01-03 08:33:24 +00:00
Jeff Law 0069d9a02a * gdb.stabs/weird.exp: Use ${target_triplet} to determine
which sed script to run.  Expect failure for v_comb test
        on PA targets too.
Should get weird-stabs tests running on supported targets again.

I'd also expect most (if not all) stabs targets to fail v_comb...
1996-01-03 08:28:42 +00:00
Rob Savoye f9ac2066da Add a "\n" to the "go" command so it'll start right away. 1996-01-02 23:59:48 +00:00
Ian Lance Taylor e1c145993e Implement generic debugging support. Implement a stabs reader and
a generic printer.
	* budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
	* objdump.c: Include "debug.h" and "budbg.h".
	(dump_debugging): New global variable.
	(usage): Mention --debugging.
	(long_options): Add "debugging".
	(display_bfd): Handle --debugging.
	* Makefile.in (OBJDUMP_OBJS): New variable.
	($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
	* binutils.texi, objdump.1: Document --debugging.
1996-01-02 22:48:58 +00:00
Ian Lance Taylor cd46af111e * Makefile.in: Add targets to automatically rebuild dependencies.
Remove targets which just listed dependencies of .o files.
	(DEP): New variable.
	(HFILES, GENERATED_HFILES): New variables.
	(CFILES, GENERATED_CFILES): New variables.
	(underscore.c): Don't do anything, just depend upon stamp-under.
	(stamp-under): New target; do what underscore.c used to do.
	(nlmconv.o): Depend upon sym.h and ecoff.h.
	(.dep, .dep1, dep.sed, dep, dep-in): New targets.
	(stage1, stage2, stage3, against, comparison): Remove.
	(de-stage1, de-stage2, de-stage3): Remove.
	(clean, distclean): Remove stamp-under and dep.sed.
	* dep-in.sed: New file.

	* Makefile.in (OBJDUMP_OBJS): New variable.
	($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
1996-01-02 22:48:13 +00:00
Stan Shebs 54b8b5c342 keep nm-irix5.h 1996-01-02 21:59:11 +00:00
Stan Shebs 543a9face4 Keep 1995 ChangeLog 1996-01-02 21:57:59 +00:00
Stan Shebs d1856a18a3 Last year's changes to its own file. 1996-01-02 21:56:00 +00:00
Stan Shebs 2d7bc1e59c * config/mips/nm-irix5.h: Restore.
(TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
	from Lee Iverson <leei@ai.sri.com>.
	* config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
	* config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
1996-01-02 21:55:10 +00:00
Jim Wilson 10c8c95ec0 For SH port, make relocation overflow an error instead of a warning. 1996-01-02 20:45:49 +00:00
Michael Meissner 3a56d0b427 Add support for .note sections 1996-01-02 19:17:17 +00:00
Ian Lance Taylor c4406e5068 * elf32-ppc.c: Remove trailing newline from calls to
_bfd_error_handler.
	(ppc_elf_merge_private_bfd_data): Only warn about endianness
	difference if target endianness is known.
1996-01-02 18:06:55 +00:00
Brendan Kehoe d4cf72b3cc * configure.in (noconfigdirs): Put ld or gas in this early, if the
user specifically used --with-gnu-ld=no or --with-gnu-as=no.
1996-01-02 03:06:56 +00:00