Commit Graph

10650 Commits

Author SHA1 Message Date
Joel Brobecker 080228b217 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
that was inserted inside a comment.
2004-07-12 17:09:58 +00:00
Randolph Chung c268433a1a 2004-07-10 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
	function.
	(hppa_hpux_push_dummy_code): New function.
	(hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
	Set find_global_pointer method.
2004-07-11 06:51:41 +00:00
Mark Kettenis 71009278ce * NEWS: Mention BSD libkvm interface. 2004-07-10 21:24:01 +00:00
Michael Snyder b2fa5097bf 2004-07-10 Michael Snyder <msnyder@redhat.com>
* symfile.c (generic_load): Comment typo.
        * stack.c (get_selected_block): Ditto.
        * regcache.c (regcache_cooked_read): Ditto.
        * monitor.c (monitor_debug): Ditto.
        * mips-tdep.c (mips_read_pc): Ditto.
        * i386-linux-nat.c (ps_get_thread_area): Ditto.
        * gdb_mbuild.sh: Ditto.
        * gdbarch.sh: Ditto.
        * gdbarch.h: Ditto.
2004-07-10 01:17:53 +00:00
Paul N. Hilfinger c3e5cd34c6 Remove ARI problems:
* ada-exp.y (write_var_from_sym): Reformat to put operator at
beginning of line.

* ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
Add comment.
Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
(MIN_OF_SIZE): Rename min_of_size.  Add comment.
(UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
(UMIN_OF_SIZE): Remove.
(max_of_type): New function to replace orphan macro in gdbtypes.h
(min_of_type): Ditto.
(discrete_type_high_bound): Use max_of_type.
(discrete_type_low_bound): Use min_of_type.
(possible_user_operator_p): Move operator to beginning of line.
(ada_is_variant_part): Ditto.
(ensure_lval): Rewrite to avoid deprecated operations.
(ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
rather than adding DEPRECATED_FUNCTION_START_OFFSET.
(ada_enum_name): Remove assignments in 'if' statements.
(build_ada_types): Add gdbarch parameter.
(_initialize_ada_language): Replace deprecated_register_gdbarch_swap
with gdbarch_data_register_post_init.
Use add_setshow_uinteger_cmd rather than add_set_cmd and
add_show_from_set.

* ada-valprint.c (inspect_it): Remove declaration.
(repeat_count_threshold): Remove declaration.
(ada_print_floating): Remove assignments in 'if' statements.
(print_str): Move operator to beginning of line.
2004-07-09 19:29:56 +00:00
Jim Blandy 61ce229a50 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted. 2004-07-08 23:43:47 +00:00
Bob Rossi 09bcec8017 Fix crash in symtab.c. 2004-07-08 11:18:27 +00:00
Jeff Johnston 31c27f7773 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
* language.h (struct_language_defn): Add new function pointer:
        la_class_name_from_physname.  Also add new prototype for
        language_class_name_from_physname.
        * language.c (language_class_name_from_physname): New function.
        (unk_lang_class_name): Ditto.
        (unknown_language_defn, auto_language_defn): Change
        to add unk_lang_class_name function pointer for
        la_class_name_from_physname.
        (local_language_defn): Ditto.
        * dwarf2read.c (guess_structure_name): Change to call
        language_class_name_from_physname.
        (determine_class_name): Ditto.
        * cp-support.c (class_name_from_physname): Renamed.
        (cp_class_name_from_physname): New name of function.
        * cp-support.h: Ditto.
        * c-lang.c (c_language_defn): Change to add NULL
        for class_name_from_physname function pointer.
        (cplus_language_defn): Change to add cp_class_name_from_physname.
        * jv-lang.c (java_class_name_physname): New function.
        (java_find_last_component): New static routine.
        (java_language_defn): Add java_class_name_from_physname pointer.
        * ada-lang.c (ada_language_defn): Change to add NULL
        for class_name_from_physname function pointer.
        * f-lang.c (f_language_defn): Ditto.
        * m2-lang.c (m2_language_defn): Ditto.
        * objc-lang.c (objc_language_defn): Ditto.
        * p-lang.c (pascal_language_defn): Ditto.
        * scm-lang.c (scm_language_defn): Ditto.
2004-07-06 19:29:31 +00:00
Andrew Cagney ee28ca0fd6 2004-07-06 Andrew Cagney <cagney@gnu.org>
Patch from Bart Robinson.
	* corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
	(O_LARGEFILE): Define to 0, if not defined.
2004-07-06 14:24:06 +00:00
Mark Kettenis cb162ff6d2 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
<machine/pcb.h> and "bsd-kvm.h".
(PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
(m68kbsd_supply_pcb): New function.
(_initialize_m68kbsd_nat): New prototype and function.
* Makefile.in (m68kbsd-nat.o): Update dependencies.
* config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
* config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
2004-07-03 15:14:48 +00:00
Mark Kettenis fdb1bf9d27 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization. 2004-07-03 13:17:33 +00:00
Mark Kettenis 963c417494 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
<sys/proc.h>.
(bsd_kvm_cmdlist): New variable.
(bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
(bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
command and "kvm proc" command.
* Makefile.in (bsd-kvm.o): Update dependencies.
2004-07-03 13:11:39 +00:00
Mark Kettenis 533f1d8fc5 * osabi.c: Update copyright year.
(generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
notes if EI_OSABI is set to ELFOSABI_HPUX.
2004-07-02 21:27:17 +00:00
Joel Brobecker 6e0cdd28ec Fix ChangeLog entry for the last change to i386-cygwin-tdep.c. 2004-07-02 21:09:45 +00:00
Michael Snyder 6780dcde86 2004-07-01 Michael Snyder <msnyder@redhat.com>
* win32-nat.c (core_dll_symbols_add): Re-indent a small section
        that seems to have gotten whacked out of line.
2004-07-01 21:34:02 +00:00
Mark Kettenis 67bebe794b * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
code.
2004-07-01 20:25:54 +00:00
Paul N. Hilfinger 0b5d887791 * ada-lang.c (decode_packed_array): Minor change to comment.
(ada_value_slice_ptr): New function.
(ada_value_slice): New function.
(ada_evaluate_subexp): Remove XVS-suffix code from subscripting
test.  Don't know why it is there.
Change slice code to use ada_value_slice_ptr and ada_value_slice, and
to avoid dereferencing huge arrays from which one is slicing.
(empty_array): Correct to return an array rather than
a subrange value.
* ada-valprint.c (print_optional_low_bound): Don't print lower bound
on empty arrays (let'em use 'FIRST instead).
2004-07-01 10:30:57 +00:00
Paul N. Hilfinger 19c1ef65d7 Address complaints from gdb_ari.sh:
* ada-exp.y: Include gdb_string.h rather than string.h.
(convert_char_literal): Reformat declaration.
* ada-lang.h: Include opaque struct declaration for struct frame_info.
* ada-lex.l: Change use of free to xfree (the macro would do so
anyway, but this is harmless).
Include gdb_string.h rather than string.h.
* ada-valprint.c (ada_val_print_stub): Change PTR => void*.

* ada-lang.c (parse): Remove K&Rism in parameter list.
(is_name_suffix): Correct Linux => GNU/Linux in comment.
2004-07-01 10:11:11 +00:00
Mark Kettenis d81cbc94d2 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
dead code.
2004-06-30 19:44:22 +00:00
Mark Kettenis 076817596d * alphabsd-nat.c: Update copyright year.
(getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2004-06-30 19:23:21 +00:00
Joel Brobecker f7948b5f30 * i386-cygwin-tdep.c (i386-cygwin-tdep.c): New function.
(i386_cygwin_in_solib_call_trampoline): New function.
        (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
        and skip_trampoline_code gdbarch methods.
2004-06-29 18:17:41 +00:00
Jim Blandy 8f113c9aba * Makefile.in (gdb_callback_h): Renamed from callback_h to the
name actually used in the dependency lists.
2004-06-29 17:19:47 +00:00
Randolph Chung 97dc871c11 2004-06-29 Randolph Chung <tausq@debian.org>
* NEWS (New native configurations): Mention GNU/Linux/hppa.
2004-06-29 16:13:07 +00:00
Corinna Vinschen 47216e5118 * win32-nat.c (child_pid_to_exec_file): New function.
(init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
	functionality.
2004-06-29 15:37:31 +00:00
Andrew Cagney f03b584349 fix scrambled changelog 2004-06-29 15:22:28 +00:00
Andrew Cagney e623b5041f 2004-06-28 Andrew Cagney <cagney@gnu.org>
* defs.h (xstrvprintf): Declare.
	* utils.c (xstrvprintf): New function.
	(internal_vproblem, xstrprintf, xasprintf)
	(vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
	* serial.c (serial_printf): Ditto.
	* complaints.c (vcomplaint): Ditto.
2004-06-29 14:57:39 +00:00
Corinna Vinschen 79acc9b3cc * infcmd.c (attach_command): Move call to target_terminal_inferior
behind loading symbol table.
2004-06-29 06:39:06 +00:00
Andrew Cagney 1daf35d984 2004-06-28 Andrew Cagney <cagney@gnu.org>
* rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
	change - add back extern deprecated_ui_loop_hook declaration.
2004-06-29 01:01:32 +00:00
Andrew Cagney b435e160dd 2004-06-26 Andrew Cagney <cagney@gnu.org>
* xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
	xstrprintf.
	* varobj.c (varobj_gen_name, create_child, c_name_of_child)
	(c_value_of_variable): Ditto.
	* utils.c (internal_vproblem): Ditto.
	* solib-aix5.c (build_so_list_from_mapfile): Ditto.
	* remote.c (add_packet_config_cmd): Ditto.
	* remote-rdp.c (rdp_set_command_line): Ditto.
	* regcache.c (regcache_dump): Ditto.
	* frv-tdep.c (new_variant, new_variant): Ditto.
	* fbsd-proc.c (child_pid_to_exec_file): Ditto.
	(fbsd_find_memory_regions): Ditto.
	* breakpoint.c (create_thread_event_breakpoint)
	(create_breakpoints): Ditto.
	* aix-thread.c (aix_thread_pid_to_str): Ditto.
	* ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.

Index: doc/ChangeLog
2004-06-26  Andrew Cagney  <cagney@gnu.org>

	* gdbint.texinfo (Coding): Replace xasprintf with xstrprintf.
2004-06-28 23:59:29 +00:00
Joel Brobecker 06d5cf63af * ada-lang.c: Re-indent file, with some massaging to help indent
a bit when the result is otherwise really too ugly.
2004-06-28 18:59:14 +00:00
Ulrich Weigand 35809fad09 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
code_addr_p and special_addr_p to 'unsigned int'.
2004-06-27 22:26:34 +00:00
Mark Kettenis 40e2047218 * i386v4-nat.c: Update copyright year and tweak comment.
(regmap): Remove trailing comma.
(supply_gregset): Rename local variable i to regnum.  Call
regcache_raw_supply instead of supply_register.
(fill_gregset): Rename argument regno to regnum.  Call
regcache_raw_collect instead of regcache_collect.
2004-06-27 21:52:21 +00:00
Ulrich Weigand 12b0b6deed * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
and special_addr_p.
	(frame_id_build, frame_id_build_special): Update comments.
	(frame_id_build_wild): New prototype.
	* frame.c (frame_id_build, frame_id_build_special): Fill in new
	struct frame_id fields.
	(frame_id_build_wild): New function.
	(frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2004-06-27 20:45:05 +00:00
Mark Kettenis 47b42a3eac * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
hppabsd-tdep.c.
2004-06-27 20:37:36 +00:00
Joel Brobecker 1265e4aaa2 * ada-lang.c: Minor reformatting to conform to GNU coding standards. 2004-06-27 19:28:20 +00:00
Joel Brobecker 76a01679f8 * ada-lang.c: Re-indent file. 2004-06-27 19:06:23 +00:00
Joel Brobecker 7aca490a78 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
(no_symtab_msg): Likewise.
2004-06-27 18:55:48 +00:00
Andreas Schwab 5e9879684c * source.c: Fix whitespace. 2004-06-27 18:36:15 +00:00
Mark Kettenis d15be92637 * configure.in: Include <sys/param.h> for td_pcb test.
* configure: Regenerated.
2004-06-27 16:41:21 +00:00
Mark Kettenis 9062529b14 * i386nbsd-nat.c: New file.
* Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
i386obsd-nat.c and i386obsd-tdep.c.
(i386nbsd-nat.o): New dependency.
* config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
bsd-kvm.o.
(LOADLIBES): New variable.
* config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
bsd-kvm.o.
(LOADLIBES): New variable.
2004-06-27 16:22:43 +00:00
Mark Kettenis 8010310edb * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
2004-06-27 15:59:25 +00:00
Mark Kettenis efe1d7b9b0 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
fetching from BSD_KVM_PADDR.  Correctly lookup address for
"_thread0".
2004-06-27 15:56:20 +00:00
Mark Kettenis 315c4276b1 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
"bsd-kvm.h".
(amd64fbsd_supply_pcb): New funcion.
(_initialize_amd64fbsd_nat): Enable libkvm interface.
2004-06-27 15:44:22 +00:00
David Lecomber 399cfac618 2004-06-27 <david@streamline-computing.com>
Partial fix for PR cli/1056.
	* valarith.c (value_binop): Check for zero in division and
	remainder evaluation.
2004-06-27 07:57:15 +00:00
Mark Kettenis 6235f9c8f2 * i387-tdep.c: Remove excessive whitespace. 2004-06-26 23:20:30 +00:00
Andrew Cagney 2726dafcc9 2004-06-26 Andrew Cagney <cagney@gnu.org>
* gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
	* gdb-events.h, gdb-events.c: Re-generate.
	* tui/tui-hooks.c (tui_install_hooks): Update.
	(tui_remove_hooks): Update.
	* mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2004-06-26 20:37:13 +00:00
Mark Kettenis 35819f5e08 Remove stray CVS conflict marker. 2004-06-26 11:49:19 +00:00
Mark Kettenis cb4610693d * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
(gregset_t, fpregset_t): Remove typedefs.
(REG_OFFSET): Rename argument.
(amd64bsd_r_reg_offset): Rename from reg_offset.
(supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
Remove functions.
(_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
of reg_offset.
* Makefile.in (amd64fbsd-nat.o): Update dependencies.
2004-06-26 11:47:53 +00:00
Mark Kettenis ecba89de44 * amd64-nat.c (amd64_supply_native_gregset): Fix comment. 2004-06-26 10:38:50 +00:00
Mark Kettenis 4cd804765d * vax-tdep.c: Tweak comment. 2004-06-26 10:25:20 +00:00