Mark Kettenis
68b9939aec
* fbsd-nat.c: Include <sys/sysctl.h>.
...
(fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
available. Plug memory leak. Fixes PR gdb/1922.
2005-05-01 10:06:12 +00:00
gdbadmin
5308fd89d5
*** empty log message ***
2005-05-01 00:00:33 +00:00
Alan Modra
2c13bff76d
daily update
2005-05-01 00:00:06 +00:00
Daniel Jacobowitz
1690f9cfba
* gdb.threads/staticthreads.exp: Override signal to check for hppa.
...
Slightly relax "sem_post" name checking.
2005-04-30 19:56:47 +00:00
Mark Kettenis
66aba65dca
* solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
...
(TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
(TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
(TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
* solib.c (solib_data): New variable.
(solib_init, solib_ops): New functions.
(solib_open, solib_map_sections, free_so, update_solib_list)
(solib_add, clear_solib, solib_create_inferior_hook)
(in_solib_dynsym_resolve_code): Call architecture-dependent code
using solib_ops.
(_initialize_solib): Register SOLIB_DATA.
2005-04-30 12:59:57 +00:00
Alan Modra
7b51f1082c
daily update
2005-04-30 00:00:07 +00:00
gdbadmin
9ea0d69021
*** empty log message ***
2005-04-30 00:00:06 +00:00
Kevin Buettner
35e08e031b
Fix bugs related to inferior function calls on FRV using the FDPIC ABI.
2005-04-29 21:48:28 +00:00
Paul Gilliam
5ea106f753
2005-04-29 Paul Gilliam <pgilliam@us.ibm.com>
...
* gdb.base/unload.exp: Use new shared library infrastructure.
2005-04-29 21:08:24 +00:00
Paul Gilliam
bf7234cff8
2005-04-29 Paul Gilliam <pgilliam@us.ibm.com>
...
* gdb.base/so-impl-ld.exp: Use new shared library
infrastructure.
2005-04-29 20:45:32 +00:00
Daniel Jacobowitz
009b6a7aa9
* configure.tgt: Add h8300*-*-rtemscoff.
...
Switch h8300*-*-rtems* to elf.
2005-04-29 18:43:35 +00:00
Daniel Jacobowitz
9a813b7a53
* config.bfd: Add h8300*-*-rtemscoff.
...
Switch h8300*-*-rtems* to elf.
2005-04-29 18:41:45 +00:00
H.J. Lu
7e70f1afa7
2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
...
* hash.c: Undo the last change.
* hash.h: Likewise.
2005-04-29 16:56:12 +00:00
H.J. Lu
cba1200696
2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
...
* bucomm.c: Undo the last change.
* bucomm.h: Likewise.
2005-04-29 16:49:20 +00:00
Paul Brook
33aa0cbb6b
2005-04-29 Paul Brook <paul@codesourcery.com>
...
* common/callback.c (PIPE_BUF): Provide default refinition.
(os_lstat): Use stat if lstat is not available on the host.
(os_ftruncate): Return EINVAL if not available on the host.
(os_truncate): Ditto.
* common/configure.ac: Check for lstat, truncate and ftruncate.
* common/configure: Regenerate.
* common/config.in: Regenerate.
2005-04-29 14:48:03 +00:00
Corinna Vinschen
547b869acd
* gdb.asm/asm-source.exp: Add h8300 to supported targets.
...
* gdb.asm/h8300.inc: New file.
2005-04-29 14:22:28 +00:00
Corinna Vinschen
862ba188ef
* MAINTAINERS: Revert h8300 state to un-deleted.
...
* Makefile.in: Re-add h8300-tdep.o dependencies.
* h8300-tdep.c: Slightly rearrange type definitions and functions.
(struct frame_extra_info): Remove.
(struct h8300_frame_cache): Replace locals with differently defined
uses_fp member.
(h8300_unwind_pc): Simplify.
(h8300_unwind_sp): New function.
(h8300_unwind_dummy_id): Simplify.
(h8300_init_frame_cache): New function.
(h8300_is_argument_spill): Use reworked defines for opcode scanning.
(h8300_skip_prologue): Rewrite.
(h8300_alloc_frame_cache): Remove.
(h8300_analyze_frame_setup): Remove.
(h8300_analyze_register_saves): Remove.
(h8300_analyze_prologue): Rewrite.
(h8300_frame_cache): Use h8300_init_frame_cache instead of
h8300_alloc_frame_cache. Use BINWORD instead of constant 4 to
accomodate 16 bit mode. Fix saved_sp and register offset evaluation.
(h8300_frame_this_id): Correctly calculate this_id using saved stack
pointer instead of base.
(h8300_frame_prev_register): Drop needless braces.
(h8300_frame_base_address): New function.
(h8300_frame_base): New frame_base.
(h8300_push_dummy_call): Return correct CFA value.
(h8300h_extract_return_value): Fix 8 byte value handling.
(h8300_use_struct_convention): New function.
(h8300h_use_struct_convention): New function.
(h8300h_store_return_value): Fix 8 byte value handling.
(h8300_return_value): New function.
(h8300h_return_value): New function.
(h8300_extract_struct_value_address): Remove deprecated functionality.
(h8300_push_dummy_code): Remove.
(h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
set_gdbarch_store_return_value calls by set_gdbarch_return_value.
Remove calls to set_gdbarch_deprecated_fp_regnum,
set_gdbarch_deprecated_extract_struct_value_address,
set_gdbarch_deprecated_use_struct_convention and
set_gdbarch_push_dummy_code.
Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
Slightly rearrange code.
2005-04-29 14:21:22 +00:00
Daniel Jacobowitz
b8c449bfd0
bfd/
...
* doc/Makefile.am: Remove stamp rules. Depend on chew.c
instead of $(MKDOC).
* aclocal.m4, Makefile.in, doc/Makefile.in: Regnerated.
gas/
* doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
of Makefile.
(DISTCLEANFILES): Remove.
(MAINTAINERCLEANFILES): Add asconfig.texi.
* doc/Makefile.in: Regenerated.
2005-04-29 14:03:55 +00:00
Paolo Bonzini
2faa2958b5
2005-04-29 Paolo Bonzini <bonzini@gnu.org>
...
Sync from gcc:
2005-04-22 Bernd Schmidt <bernd.schmidt@analog.com>
* config.sub: Update from master copy.
2005-04-19 Hans-Peter Nilsson <hp@axis.com>
* configure.in <crisv32-*-*, cris-*-*>: New local variable
libgcj_ex_libffi. Have specific match for *-*-linux*. Separate
matches for "*-*-aout" and "*-*-elf". Don't disable libffi for
"*-*-elf" and "*-*-linux*".
* configure: Regenerate.
config:
2005-04-29 Paolo Bonzini <bonzini@gnu.org>
* acx.m4 (ACX_PROG_GNAT): Remove stray break.
2005-04-29 14:00:03 +00:00
Ben Elliston
89b788963f
* more static'ing.
...
* syslex.l (word, number, unit): Remove unused variables.
* nlmheader.y (keyword_tokens): Make static.
* coffdump.c (dump_coff_symbol, coff_dump): Make static.
* coffgrok.c (lofile, last_function_symbol, last_function_type,
last_struct, last_enum, cur_sfile): Make variables static.
* sysdump.c (getCHARS, fillup, getBARRAY, getINT, getBITS,
sysroff_swap_tr_in, sysroff_print_tr_out): Make static.
* sysinfo.y (writecode, it, code, repeat, oldrepeat, name, rdepth,
names, pnames): Likewise.
2005-04-29 01:15:21 +00:00
Ben Elliston
4aac130b28
Missed in earlier check-in.
2005-04-29 00:26:01 +00:00
Ben Elliston
87c245cccc
* Makefile.am (GAS_CFILES): Remove bignum-copy.c.
...
(GENERIC_OBJS): Likewise, remove bignum-copy.o.
(bignum-copy.o): Remove.
* Makefile.in: Regenerate.
* makefile.vms (OBJS): Remove bignum-copy.obj.
* symbols.h (local_symbol_make): Remove declaration.
(verify_symbol_chain_2): Likewise.
* symbols.c (local_symbol_make): Make static.
(max_indent_level): Likewise.
(verify_symbol_chain_2): Remove.
* macro.c (macro_hash): Make static.
* messages.c (fprint_value): Remove.
* read.h (get_absolute_expr): Remove.
(emit_leb128_expr): Likewise.
(do_s_func): Likewise.
* read.c (do_s_func): Make static.
(emit_leb128_expr): Likewise.
(get_absolute_expr): Likewise.
* as.h (as_howmuch): Remove declaration.
(fprint_value): Likewise.
* as.c (myname): Make static.
* input-scrub.c (as_howmuch): Remove.
(as_1_char): Likewise.
* input-file.h (input_file_is_open): Remove.
* input-file.c (input_file_is_open): Likewise.
* expr.h (expr_build_unary): Remove declaration.
(expr_build_binary): Likewise.
* expr.c (expr_build_unary): Remove.
(expr_build_binary): Likewise.
* hash.h (hash_replace): Remove declaration.
(hash_delete): Likewise.
* hash.c (hash_replace): Remove.
(hash_delete): Likewise.
* bignum-copy.c (bignum_copy): Move from here ..
* config/tc-vax.c (bignum_copy): .. to here.
* bignum.h (LOG_TO_BASE_2_OF_10): Remove.
(bignum_copy): Remove extern declaration.
* sb.h (string_count): Remove extern declaration.
(sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
(sb_name): Likewise.
* sb.c (dsize): Replace preprocessor macro with static int.
(string_count): Make static.
(sb_build, sb_add_buffer, sb_print, sb_print_at): Likewise.
(sb_name): Likewise.
* config/obj-coff.c (dim_index): Make static.
* config/tc-i386.c (GOT_symbol): Likewise.
(output_invalid_buf): Likewise.
* doc/internals.texi (Warning and error messages): Remove the
prototype for fprint_value.
2005-04-29 00:22:29 +00:00
Jim Blandy
3a913e29df
* parse.c (namecopy): Change allocation conventions.
...
(namecopy_size): New variable.
(copy_name): Allocate namecopy using xrealloc, instead of assuming
it has adequate space allocated to it.
(parse_exp_1): Don't try to allocate space for namecopy here.
2005-04-29 00:04:06 +00:00
Ben Elliston
85b1c36d31
* ar.c (mri_mode): Make static.
...
* arsup.c (obfd, real_name, outfile): Likewise.
* binemul.c (ar_emul_create): Remove unused function.
(ar_emul_default_create): Likewise.
* binemul.h (ar_emul_create): Remove declaration.
(ar_emul_default_create): Likewise.
(struct bin_emulation_xfer_struct): Remove ar_create member.
* bucomm.c (report): Make static.
* bucomm.h (report): Remove declaration.
* cxxfilt.c (mbuffer): Make static.
(main): Use unsigned ints for some loop control variables.
* readelf.c: Make many global variables static.
* size.c (berkeley_format): Make static.
(long_options): Likewise.
* emul_aix.c (bin_aix_emulation): Remove ar_emul_default_create
structure initialiser.
(bin_aix5_emulation): Likewise.
* emul_vanilla.c (bin_vanilla_emulation): Likewise.
2005-04-29 00:03:33 +00:00
Alan Modra
c7f05afbc5
daily update
2005-04-29 00:00:06 +00:00
gdbadmin
d42d3e2349
*** empty log message ***
2005-04-29 00:00:05 +00:00
Ben Elliston
279e75dcef
* ldgram.y (lang_memory_region_type): Make static.
...
(ldgram_want_filename): Likewise.
* ldemul.c (ld_emulation): Make static.
* ldfile.h (ldfile_find_command_file): Remove extern.
* ldfile.c (ldfile_find_command_file): Make static.
* ldlang.h (unique_section_list): Remove extern declaration.
* ldlang.c (unique_section_list): Make static.
* mri.h (symbol_truncate): Remove extern declaration.
* mri.c (symbol_truncate): Make static.
(order, only_load, address, alias): Likewise.
(alignment, subalignment): Likewise.
2005-04-28 23:54:33 +00:00
Paul Gilliam
f07e55f031
2005-04-19 Paul Gilliam <pgilliam@us.ibm.com>
...
* gdb.base/shlib-call.exp: Change to use new shared library
infrastructure.
2005-04-28 23:21:22 +00:00
Paul Gilliam
3cbba3d1cd
2005-04-28 Paul Gilliam <pgilliam@us.ibm.com>
...
* gdb.base/pending.exp: Change to use new shared library
infrastructure.
2005-04-28 23:04:28 +00:00
Paul Brook
fa0d1caba9
2005-04-28 Paul Brook <paul@codesourcery.com>
...
Merge changes only applied to Makefile.in.
* Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo
(BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
(elfxx-sparc.lo): New rule.
(elf32-sparc.lo): Add elfxx-sparc.h dependency.
(elf64-sparc.lo): Likewise.
2005-04-28 23:02:05 +00:00
Paul Gilliam
ed6df20042
2005-04-28 Paul Gilliam <pgilliam@us.ibm.com>
...
* gdb.base/nodebug.exp: Allow for compiling by IBM's xlc compiler
and use test_compiler_info instead of gcc_compiled.
2005-04-28 22:31:33 +00:00
Eli Zaretskii
a955ca7173
* cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
...
set, use symtab_to_fullname, instead of trying to do its job. Use
xstrprintf instead of malloc and sprintf.
2005-04-28 20:32:42 +00:00
Kevin Buettner
46845f5e98
* remote.c (init_remote_state): Eliminate use of
...
deprecated_register_bytes().
2005-04-28 18:15:16 +00:00
Andrew Cagney
8929e59d3f
2005-04-28 Andrew Cagney <cagney@gnu.org>
...
* valops.c (check_field): Make buffer a bfd_byte.
* value.c (unpack_long, unpack_double, unpack_pointer)
(unpack_field_as_long, modify_field): Ditto.
* value.h: Update declarations.
2005-04-28 16:15:19 +00:00
Paul Brook
cade9e545b
2005-04-28 Paul Brook <paul@codesourcery.com>
...
* exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
2005-04-28 14:07:54 +00:00
Nick Clifton
0291d2913e
Applied this patch for Julian Brown <julian@codesourcery.com>
...
* elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak import.
2005-04-28 10:31:24 +00:00
H.J. Lu
0002be373a
Set BFD_VERSION_DATE to 20050428.
2005-04-28 02:42:22 +00:00
H.J. Lu
4a2afbc126
2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
Use the first SEC_ALLOC section which isn't SEC_READONLY or the
last SEC_ALLOC section if such a section doesn't exist.
2005-04-28 02:41:40 +00:00
gdbadmin
135cba24d5
*** empty log message ***
2005-04-28 00:00:33 +00:00
Paul Gilliam
8c8f4ebeff
2005-04-27 Paul Gilliam <pgilliam@us.ibm.com>
...
* gdb.base/annota1.exp : Deal with messages caused by breakpoints in
shared objects being adjusted and update copyright.
2005-04-27 21:45:16 +00:00
Mark Kettenis
ab576d8501
* solib-svr4.c (_initialize_svr4_solib)
...
[SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
svr4_legacy_fetch_link_map_offsets.
2005-04-27 20:51:52 +00:00
Mark Kettenis
ccf00f2179
* sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
...
(sh_gdbarch_init): Remove redundant prototype.
* sh-linux-tdep.c: New file.
* config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
Remove prototype.
(SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
* config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
solib-legacy.o.
* Makefile.in (sh-linux-tdep.o): New.
2005-04-27 20:48:25 +00:00
Paul Brook
4ec242d7be
2005-04-27 Paul Brook <paul@codesourcery.com>
...
* common/Make-common.in: Add $(EXEEXT) to "run".
2005-04-27 20:38:08 +00:00
H.J. Lu
26c61ae50b
2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
* elf.c (bfd_elf_sym_name): Updated.
(group_signature): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
(ppc64_elf_edit_toc): Likewise.
(ppc64_elf_relocate_section): Likewise.
* elfcode.h (elf_slurp_symbol_table): Likewise.
* elflink.c (elf_link_input_bfd): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Call
bfd_elf_sym_name to get local symbol name when reporting errors.
2005-04-27 20:16:08 +00:00
Nick Clifton
dce669a1fd
Remove spurious spaces added by previous delta
2005-04-27 16:46:23 +00:00
Daniel Jacobowitz
607fbc543c
* ChangeLog: Correct some 2003-01-13 dates.
...
* gdb.base/sigbpt.exp, gdb.base/signull.exp, gdb.cp/bs15503.exp,
gdb.cp/exception.exp, gdb.cp/userdef.cc, gdb.cp/userdef.exp,
gdb.mi/mi-console.exp, gdb.mi/mi2-console.exp,
gdb.trace/collection.exp, gdb.trace/passc-dyn.exp,
gdb.trace/tfind.exp: Update copyright years.
2005-04-27 16:35:15 +00:00
Mark Kettenis
4b188b9f37
* solib-svr4.c: Update copyright year. Include "gdb_assert.h".
...
(SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
defined.
(legacy_fetch_link_map_offsets): Remove prototype.
(fetch_link_map_offsets_gdbarch_data): Remove.
(LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
(first_link_map_member, open_symbol_file_object, svr4_current_sos)
(svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
instead of SVR4_FETCH_LINK_MAP_OFFSETS.
(solib_svr4_data): New variable.
(struct solib_svr4_ops): New.
(solib_svr4_init): New fynction.
(legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
Remove functions.
(svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
using the new `struct solib_svr4_ops'.
(_initialize_svr4_solib): Replace registration of per-architecture
data. Add temporary hack to set
svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
is set.
* Makefile.in (solib-svr4.o): Update dependencies.
2005-04-27 14:30:15 +00:00
H.J. Lu
6fe7699b81
Set BFD_VERSION_DATE to 20050427.
2005-04-27 14:23:48 +00:00
Eli Zaretskii
18999be528
* gdb.texinfo (Backtrace): Describe backtraces with arguments that
...
were optimized away.
2005-04-27 13:02:15 +00:00
Nick Clifton
8c19749adc
(elf_link_input_bfd): Handle the case where a badly formatted input file results
...
in a reloc which has no associated global symbol
2005-04-27 10:09:43 +00:00