* acconfig.h (_MSE_INT_H): Remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2
3 * acconfig.h (_MSE_INT_H): Remove.
4 * configure.in: Create "Checks for header files" section, and move
5 appropriate tests there. Don't check for objlist.h, wchar.h,
6 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
7 misdetection fix. Also add "Checks for types", "Checks for
8 compiler characteristics" and "Checks for library functions"
9 sections.
10 * config.in, configure: Regenerated.
11
12 * configure.in: Create "Checks for programs" section, and move
13 appropriate tests there.
14
15 2003-01-01 Mark Kettenis <kettenis@gnu.org>
16
17 * configure.in: Create "Checks for libraries" section, and move
18 appropriate tests there. Cleanup check for wctype in libw. Use
19 AC_SEARCH_LIBS to see whether we need libsocket.
20 * configure: Regenerated.
21
22 2002-12-31 Mark Kettenis <kettenis@gnu.org>
23
24 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
25 * config.in, configure: Regenerated.
26
27 2002-12-31 Mark Kettenis <kettenis@gnu.org>
28
29 * gdb_dirent.h: Cleanup and update code to match the example in
30 the Autoconf manual.
31 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
32 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
33 * configure: Regenerated.
34
35 2002-12-30 Adam Fedor <fedor@gnu.org>
36
37 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
38 (yylex): Initialize c to avoid uninitialized warning.
39
40 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
41
42 * doc/fdl.texi: Revert the last change.
43
44 2002-12-29 Mark Kettenis <kettenis@gnu.org>
45
46 * tracepoint.c (ISATTY): Removed.
47
48 2002-12-26 J. Brobecker <brobecker@gnat.com>
49
50 Continuing work to convert the hppa targets to multiarch partil.
51
52 * hppa-tdep.c: Add some missing forward declarations.
53 (frameless_function_invocation): Prefix the function name
54 by "hppa_" to avoid polluting the namespace. Update all calls
55 to use the new function name.
56 (saved_pc_after_call): Ditto.
57 (init_extra_frame_info): Ditto.
58 (frame_chain): Ditto.
59 (push_dummy_frame): Ditto.
60 (target_read_pc): Ditto.
61 (target_write_pc): Ditto.
62 (in_solib_call_trampoline): Ditto.
63 (in_solib_return_trampoline): Ditto.
64 (skip_trampoline_code): Ditto.
65 (hppa_read_fp): New function, renamed from target_read_fp.
66 (hppa_target_read_fp): New function, using hppa_read_fp.
67 This function conforms to the function profile for the
68 READ_FP gdbarch method.
69 (hppa_extract_struct_value_address): New function, extracted
70 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
71 macro.
72 (hppa_frame_num_args): New function.
73 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
74
75 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
76 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
77 for the switch to multiarch partial.
78 Update some of the macros definitions to match some changes
79 described above in the name of the function they are calling.
80 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
81 not be straightforward to convert. Do now wrap it inside
82 "#if !... #endif" to remember that this macro has still not
83 been taken care of.
84 (FIX_CALL_DUMMY): Likewise.
85
86 2002-12-26 J. Brobecker <brobecker@gnat.com>
87
88 Continuing work to convert the hppa targets to multiarch partial.
89
90 * hppa-tdep.c (hppa_register_raw_size): New function replacing
91 the body of macro REGISTER_RAW_SIZE.
92 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
93 config/pa/tm-hppah.h. These functions will be used to initialize
94 the gdbarch structure.
95 (hppa_hpux_pc_in_sigtramp): New function.
96 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
97 (hppa_hpux_frame_base_before_sigtramp): New function.
98 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
99 Add gdbcore.h #include.
100 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
101 of this gdbarch-eligible macro to a call to the new associated
102 function.
103 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
104 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
105 into a call to the new associated function.
106 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
107 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
108 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
109
110 2002-12-24 David Carlton <carlton@math.stanford.edu>
111
112 * config/sparc/tm-sparc.h: Delete duplicate definition of
113 DEPRECATED_PC_IN_CALL_DUMMY.
114
115 2002-12-24 Kevin Buettner <kevinb@redhat.com>
116
117 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
118 $(gdb_assert_h).
119 * configure.tgt: Recognize mips64*-*-linux*.
120 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
121 (supply_32_bit_reg): New function.
122 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
123 (fill_gregset): Use regcache_collect() instead of
124 deprecated_registers[].
125 (register_addr): Change name to mips_linux_register_addr().
126 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
127 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
128 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
129 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
130 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
131 (MIPS64_LINUX_JB_PC): New defines.
132 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
133 (mips64_elf_fpregset_t): New typedefs.
134 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
135 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
136 (mips64_linux_register_addr, set_mips_linux_register_addr)
137 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
138 (init_register_addr_data)
139 New functions.
140 (fetch_core_registers): Add support for core file formats with 64-bit
141 registers.
142 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
143 (register_addr_data): New static global variable.
144 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
145 gdbarch_register_osabi() for each MIPS machine.
146 * config/mips/linux64.mt: New file.
147 * config/mips/tm-linux64.h: New file.
148
149 2002-12-23 Adam Fedor <fedor@gnu.org>
150
151 * maint.c (maintenance_demangle): Add switch to demangle
152 ObjC language symbols as well.
153
154 2002-12-23 Adam Fedor <fedor@gnu.org>
155
156 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
157 last argument from complaint function call.
158
159 2002-12-23 Kevin Buettner <kevinb@redhat.com>
160
161 * exec.c (print_section_info): Add FIXME comments regarding format
162 string choices.
163
164 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
165
166 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
167 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
168
169 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
170
171 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
172
173 2002-12-23 David Carlton <carlton@math.stanford.edu>
174
175 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
176 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
177 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
178 information associated to a minsym, not lookup_symbol.
179
180 2002-12-21 Mark Kettenis <kettenis@gnu.org>
181
182 * x86-64-tdep.h (x86_64_init_abi): New prototype.
183 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
184 (x86_64_init_abi): Make non-static. Set number of pseudo
185 registers to 0.
186 (x86_64_gdbarch_init): Remove function.
187 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
188 Remove code dealing with dissambly.
189 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
190 (_initialize_x86_64_linux_tdep): New function.
191 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
192 i386-tdep.o.
193
194 2002-12-14 Mark Kettenis <kettenis@gnu.org>
195
196 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
197 (struct gdb_osabi_handler): Remove member `arch'. Add member
198 `arch_info'.
199 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
200 construct a `struct bfd_arch_info' and store it in the `struct
201 gdb_osabi_handler' that is created.
202 (gdbarch_init_osabi): Check for compatibility based on machine
203 type and architecture.
204 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
205 comment.
206 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
207 second argument in call to gdbarch_register_osabi.
208 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
209 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
210 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
211 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
212 * arm-tdep.c (_initialize_arm_tdep): Likewise.
213 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
214 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
215 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
216 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
217 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
218 * i386-tdep.c (_initialize_i386_tdep): Likewise.
219 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
220 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
221 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
222 _initialize_i386bsd_tdep and updated likewise.
223 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
224 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
225 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
226 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
227 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
228 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
229 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
230 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
231 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
232 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
233
234 2002-12-20 Kevin Buettner <kevinb@redhat.com>
235
236 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
237 DT_MIPS_RLD_MAP case for 64-bit targets.
238
239 2002-12-20 Kevin Buettner <kevinb@redhat.com>
240
241 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
242 ``temp_saved_regs'', not the pointer or other storage contiguous
243 to this pointer.
244
245 2002-12-20 Kevin Buettner <kevinb@redhat.com>
246
247 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
248 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
249 (mips_linux_get_longjmp_target): Delete declarations.
250 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
251 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
252 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
253 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
254 (mips_linux_get_longjmp_target)
255 (mips_linux_svr4_fetch_link_map_offsets): Make static.
256 (mips_linux_init_abi): New function.
257 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
258
259 2002-12-19 Keith Seitz <keiths@redhat.com>
260
261 patch committed by Elena Zannoni <ezannoni@redhat.com>
262 * thread.c (do_captured_list_thread_ids): Call prune_threads and
263 target_find_new_threads. Fix for PR mi/669.
264
265 2002-12-19 David Carlton <carlton@math.stanford.edu>
266
267 * linespec.c (decode_line_1): Move code into decode_all_digits.
268 (decode_all_digits): New function.
269
270 2002-12-19 Kevin Buettner <kevinb@redhat.com>
271
272 * exec.c (print_section_info): Select a format string to use with
273 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
274
275 2002-12-18 Andrew Cagney <ac131313@redhat.com>
276
277 * frame.c (deprecated_update_current_frame_pc_hack): Replace
278 deprecated_update_current_frame_pc_hack.
279 (deprecated_update_frame_base_hack): New function.
280 * frame.h (deprecated_update_frame_pc_hack): Replace
281 (deprecated_update_frame_base_hack): Declare.
282 * infrun.c (normal_stop): Update.
283
284 2002-12-18 Andrew Cagney <ac131313@redhat.com>
285
286 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
287 frame_extra_info_zalloc.
288 (rs6000_frame_args_address): Use get_frame_extra_info.
289 (frame_get_saved_regs): Use get_frame_saved_regs.
290 (frame_initial_stack_address): Use get_frame_saved_regs and
291 get_frame_extra_info.
292 (frame_initial_stack_address): Use get_frame_extra_info.
293
294 2002-12-17 Kevin Buettner <kevinb@redhat.com>
295
296 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
297 array size.
298 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
299 checks for r3900_regnames[].
300
301 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
302
303 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
304 All uses changed
305 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
306
307 2002-12-17 David Carlton <carlton@math.stanford.edu>
308
309 * symtab.c (lookup_partial_symbol): Don't search past the end of
310 the partial symbols.
311
312 2002-12-17 Andrew Cagney <ac131313@redhat.com>
313
314 * stack.c (frame_info): Use get_frame_saved_regs.
315 * breakpoint.c (until_break_command): Use get_frame_pc.
316
317 2002-12-16 Kevin Buettner <kevinb@redhat.com>
318
319 * buildsym.c (block_end_complaint, anon_block_end_complaint)
320 (innerblock_complaint, innerblock_anon_complaint)
321 (blockvector_complaint): Delete deprecated complaint structs.
322 (finish_block, make_blockvector, end_symtab): Replace calls
323 to complain() with calls to complaint().
324 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
325 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
326 (unexpected_type_complaint, bad_sclass_complaint)
327 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
328 Delete deprecated complaint structs.
329 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
330 Replace calls to complain() with calls to complaint().
331 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
332 (unknown_symtype_complaint, unknown_symchar_complaint)
333 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
334 (lbrac_mismatch_complaint, repeated_header_complaint)
335 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
336 Delete deprecated complaint structs.
337 (unknown_symtype_complaint, lbrac_mismatch_complaint)
338 (repeated_header_complaint)
339 (function_outside_compiliation_unit_complaint): New functions.
340 (add_old_header_file, find_corresponding_bincl_psymtab)
341 (set_namestring, find_stab_function_addr, read_dbx_symtab)
342 (process_one_symbol): Replace calls to complain() with, possibly
343 indirect, calls to complaint().
344 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
345 (unknown_attribute_form, unknown_attribute_length)
346 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
347 (const_ignored, botched_modified_type, op_deref2, op_deref4)
348 (basereg_not_handled, dup_user_type_allocation)
349 (dup_user_type_definition, missing_tag, bad_array_element_type)
350 (subscript_data_items, unhandled_array_subscript_format)
351 (unknown_array_subscript_format, not_row_major)
352 (missing_at_name): Delete deprecated complaint structs.
353 (bad_die_ref_complaint, unknown_attribute_form_complaint)
354 (dup_user_type_definition_complaint)
355 (bad_array_element_type_complaint): New functions.
356 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
357 (decode_subscript_data_item, dwarf_read_array_type)
358 (read_tag_string_type, read_subroutine_type, read_func_scope)
359 (locval, scan_partial_symbols, decode_modified_type)
360 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
361 (attribute_size): Replace calls to complain() with, possibly
362 indirect, calls to complaint().
363 * elfread.c (section_info_complaint, section_info_dup_complaint)
364 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
365 Delete deprecated complaint structs.
366 (elf_symtab_read, elfstab_offset_sections): Replace calls to
367 complain() with calls to complaint().
368 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
369 struct.
370 (stub_noname_complaint): New function.
371 (check_typedef, add_mangled_type): Replace calls to complain()
372 with calls to complaint().
373 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
374 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
375 (hpread_unhandled_type_complaint, hpread_struct_complaint)
376 (hpread_array_complaint, hpread_type_lookup_complaint)
377 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
378 (hpread_unhandled_common_complaint)
379 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
380 struct definitions and declarations.
381 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
382 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
383 Replace calls to complain() with, possibly indirect, calls to
384 complaint().
385 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
386 Likewise.
387 * mdebugread.c (bad_file_number_complaint, index_complaint)
388 (aux_index_complaint, block_index_complaint)
389 (unknown_ext_complaint, unknown_sym_complaint)
390 (unknown_st_complaint, block_overflow_complaint)
391 (basic_type_complaint, unknown_type_qual_complaint)
392 (array_index_type_complaint, bad_tag_guess_complaint)
393 (block_member_complaint, stEnd_complaint)
394 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
395 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
396 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
397 (bad_continued_complaint, bad_rfd_entry_complaint)
398 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
399 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
400 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
401 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
402 complaint structs.
403 (index_complaint, unknown_ext_complaint, basic_type_complaint)
404 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
405 (unexpected_type_code_complaint)
406 (function_outside_compilation_unit_complaint): New functions.
407 (parse_symbol, parse_type, upgrade_type, parse_procedure)
408 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
409 Replace calls to complain() with, possibly indirect calls to
410 complaint().
411 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
412 Delete deprecated complaint structs.
413 (lookup__objc_class, lookup_child_selector): Replace complain()
414 with complaint().
415 * remote-vx.c (cant_contact_target): Delete deprecated complaint
416 struct.
417 (vx_lookup_symbol): Replace complain() with complaint().
418 * stabsread.c (invalid_cpp_abbrev_complaint)
419 (invalid_cpp_type_complaint, member_fn_complaint)
420 (const_vol_complaint, error_type_complaint)
421 (invalid_member_complaint, range_type_base_complaint)
422 (reg_value_complaint, vtbl_notfound_complaint)
423 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
424 (unresolved_sym_chain_complaint, stabs_general_complaint)
425 (lrs_general_complaint, multiply_defined_struct): Delete
426 deprecated complaint structs.
427 (invalid_cpp_abbrev_complaint, ref_value_complaint)
428 (stabs_general_complaint, lrs_general_complaint)
429 (msg_unknown_complaint): New functions.
430 (dbx_lookup_type, read_cfront_baseclasses)
431 (read_cfront_member_functions, resolve_symbol_reference)
432 (define_symbol, resolve_live_range, add_live_range, read_type)
433 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
434 (read_one_struct_field, read_baseclasses, read_tilde_fields)
435 (read_cfront_static_fields, attach_fields_to_type)
436 (complain_about_struct_wipeout, read_range_type)
437 (common_block_start, common_block_end, cleanup_undefined_types)
438 (scan_file_globals): Replace complain() with complaint().
439 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
440 Delete deprecated complaint struct declarations.
441 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
442 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
443 (bf_not_found_complaint, ef_complaint, eb_complaint)
444 (function_outside_compilation_unit_complaint): New functions.
445 (record_include_begin, record_include_end, enter_line_range)
446 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
447 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
448 complain() with complaint().
449
450 2002-12-16 Andrew Cagney <ac131313@redhat.com>
451
452 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
453 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
454 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
455 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
456 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
457 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
458 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
459 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
460 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
461 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
462 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
463 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
464 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
465 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
466 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
467 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
468 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
469 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
470 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
471 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
472 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
473 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
474 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
475 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
476 * config/m88k/xm-dgux.h: Delete.
477 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
478 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
479 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
480 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
481 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
482 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
483 * ch-valprint.c: Delete.
484
485 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
486
487 * infrun.c (handle_inferior_event): Rearrange code to resume if
488 no catchpoint triggers for an event.
489
490 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
491
492 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
493 and TARGET_WAITKIND_VFORKED cases.
494
495 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
496
497 * infrun.c (handle_inferior_event): Assume that catchpoints
498 are not affected by DECR_PC_AFTER_BREAK.
499
500 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
501
502 * target.c (update_current_target): Don't inherit DONT_USE.
503 * target.h (struct target_ops): Remove DONT_USE.
504 (target_next): Remove macro.
505
506 2002-12-15 Mark Kettenis <kettenis@gnu.org>
507
508 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
509
510 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
511
512 * arm-tdep.c (convert_from_extended): New argument to hold the
513 type of floating point result we want to convert to. Make input
514 argument const. Fix all callers.
515 (convert_to_extended): Similarly.
516 (arm_extract_return_value): Now takes a regcache argument. Change
517 code to use regcache accessor functions. Correctly extract
518 smaller-than-word results on big-endian machines.
519 (arm_store_return_value): Now takes a regcache argument. Change
520 code to use regcache accessor functions. Correctly zero/sign extend
521 smaller than word results before storing into r0.
522 (arm_gdbarch_init): Register new-style extract_return_value and
523 store_return_value functions.
524
525 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
526
527 * thread-db.c (thread_from_lwp): Uniquify error msg.
528 (lwp_from_thread): Ditto.
529 (check_event): Ditto.
530 (find_new_threads_callback): Ditto.
531 (thread_db_pid_to_str): Ditto.
532
533 2002-12-13 Andrew Cagney <ac131313@redhat.com>
534
535 * frame.h (get_frame_saved_regs): Declare.
536 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
537 pointer.
538 * frame.c (get_frame_saved_regs): New function.
539 (frame_saved_regs_zalloc): Return the allocated saved_regs.
540
541 2002-12-13 Andrew Cagney <ac131313@redhat.com>
542
543 * frame.c (deprecated_update_current_frame_pc_hack): New
544 function.
545 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
546 * infrun.c (normal_stop): Use said function instead of directly
547 modifying the frame's PC.
548
549 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
550
551 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
552
553 2002-12-13 Kevin Buettner <kevinb@redhat.com>
554
555 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
556 config/mips/tm-irix6.h (NUM_REGS): Delete.
557 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
558 (temp_saved_regs): Declare as a pointer rather than an array.
559 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
560 that ``temp_saved_regs'' has storage allocated to it and that
561 it's the correct size.
562
563 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
564
565 * defs.h (init_last_source_visited): New prototype.
566 (add_path): Ditto.
567 * source.c (add_path): New function that adds to a specified path.
568 (mod_path): Change to call add_path.
569 (init_last_source_visited): New function to allow interfaces to
570 initialize static variable: last_source_visited. Part of fix
571 for PR gdb/741.
572 * Makefile.in: Add support for mi/mi-cmd-env.c.
573
574 2002-12-13 Andrew Cagney <ac131313@redhat.com>
575
576 * frame.h (frame_id_unwind): Declare.
577 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
578 id_unwind_cache.
579 (frame_id_unwind_ftype): Declare.
580 * frame.c (frame_id_unwind): New function.
581 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
582 (create_new_frame, get_prev_frame): Pass id_unwind to
583 set_unwind_by_pc.
584 (frame_saved_regs_id_unwind): New function.
585 (frame_saved_regs_id_unwind): New function.
586 * dummy-frame.c (dummy_frame_id_unwind): New function.
587 (struct dummy_frame): Add field id.
588 (generic_push_dummy_frame): Initialize `id'.
589 * dummy-frame.h (dummy_frame_id_unwind): Declare.
590
591 2002-12-13 Andrew Cagney <ac131313@redhat.com>
592
593 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
594 pass that to set_momentary_breakpoint. Move comments to where they
595 belong.
596 * frame.h (set_current_frame): Delete declaration.
597 * frame.c (set_current_frame): Delete function.
598
599 2002-12-13 Andrew Cagney <ac131313@redhat.com>
600
601 * frame.c (frame_extra_info_zalloc): New function.
602 * frame.h (frame_extra_info_zalloc): Declare.
603
604 2002-12-13 Joel Brobecker <brobecker@gnat.com>
605
606 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
607 in the previous prototype change to set_momentary_breakpoint.
608
609 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
610
611 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
612 and saw_child_exec.
613 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
614 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
615 (stop_stepping): Remove outdated check for child vfork events.
616
617 2002-12-12 Andrew Cagney <ac131313@redhat.com>
618
619 * GDB 5.3 released from gdb_5_3-branch.
620
621 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
622
623 * corelow.c (init_core_ops): Delete references to to_require_attach
624 and to_require_detach.
625 * exec.c (init_exec_ops): Likewise.
626 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
627 hppa_require_detach directly.
628 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
629 * inftarg.c (child_detach): Remove.
630 (child_detach_from_process): Rename to child_detach, remove
631 after_fork argument.
632 (child_attach): Remove.
633 (child_attach_to_process): Rename to child_attach, remove after_fork
634 argument.
635 (init_child_ops): Delete references to to_require_attach
636 and to_require_detach.
637 * infttrace.c (hppa_require_attach): Update comment.
638 * target.c (cleanup_target, update_current_target)
639 (init_dummy_target, setup_target_debug): Delete references to
640 to_require_attach and to_require_detach.
641 (find_default_require_detach, find_default_require_attach)
642 (debug_to_require_attach, debug_to_require_detach): Remove
643 functions.
644 * target.h (struct target_ops): Remove to_require_attach
645 and to_require_detach.
646 (target_require_attach, target_require_detach): Delete macros.
647 (find_default_require_detach, find_default_require_attach): Delete
648 prototypes.
649 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
650
651 2002-12-11 Andrew Cagney <ac131313@redhat.com>
652
653 * frame.c (get_frame_extra_info): New function.
654 * frame.h (get_frame_extra_info): Declare.
655
656 2002-12-11 Andrew Cagney <ac131313@redhat.com>
657
658 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
659 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
660 with `struct frame_id'.
661 (set_longjmp_resume_breakpoint): Ditto.
662 * infrun.c (handle_inferior_event): Update.
663 * breakpoint.c (watch_command_1, until_break_command): Update.
664 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
665 (handle_inferior_event, step_over_function): Update.
666 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
667 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
668 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
669 * infcmd.c (finish_command, run_stack_dummy): Update.
670
671 2002-12-11 Kevin Buettner <kevinb@redhat.com>
672
673 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
674 (dwarf2_non_const_array_bound_ignored)
675 (dwarf2_missing_line_number_section)
676 (dwarf2_statement_list_fits_in_line_number_section)
677 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
678 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
679 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
680 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
681 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
682 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
683 (dwarf2_missing_member_fn_type_complaint)
684 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
685 (dwarf2_const_value_length_mismatch)
686 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
687 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
688 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
689 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
690 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
691 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
692 complaints using deprecated struct..
693 (dwarf2_non_const_array_bound_ignored_complaint)
694 (dwarf2_complex_location_expr_complaint)
695 (dwarf2_unsupported_at_frame_base_complaint)
696 (dwarf2_const_value_length_mismatch_complaint)
697 (dwarf2_macros_too_long_complaint)
698 (dwarf2_macro_malformed_definition_complaint)
699 (dwarf2_invalid_attrib_class_complaint): New functions.
700 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
701 (read_structure_scope, read_array_type, read_common_block)
702 (read_tag_pointer_type, read_base_type, read_partial_die)
703 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
704 (new_symbol, dwarf2_const_value, read_type_die)
705 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
706 (parse_macro_definition, dwarf_decode_macros): Replace calls to
707 complain() with, possibly indirect, calls to complaint().
708
709 2002-12-11 Andrew Cagney <cagney@redhat.com>
710
711 * frame.c (deprecated_get_frame_saved_regs): Rename
712 get_frame_saved_regs.
713 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
714 * sparc-tdep.c: Update.
715 * hppa-tdep.c: Update.
716 * h8500-tdep.c: Update.
717
718 2002-12-11 Kevin Buettner <kevinb@redhat.com>
719
720 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
721 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
722 ``char *'' for return and parameter types.
723 * gdbarch.h, gdbarch.c: Regenerate.
724 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
725 return type from ``char *'' to ``const char *''.
726 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
727 const.
728
729 2002-12-11 Mark Kettenis <kettenis@gnu.org>
730
731 * i386-tdep.c: Include "dummy-frame.h".
732 (i386_frame_chain, i386_frame_saved_pc): Replace
733 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
734 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
735
736 2002-12-10 Andrew Cagney <cagney@redhat.com>
737
738 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
739 Change to a function with predicate.
740 * gdbarch.h, gdbarch.c: Re-generate.
741 * frame.c (get_prev_frame): Update. Test
742 DEPRECATED_INIT_FRAME_PC_P.
743 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
744 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
745 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
746 * alpha-tdep.c (alpha_gdbarch_init): Update.
747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
748 * mips-tdep.c (mips_gdbarch_init): Update.
749 * i386-interix-tdep.c (i386_interix_init_abi): Update.
750 * arm-tdep.c: Update comments.
751 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
752 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
753 * frv-tdep.c (frv_gdbarch_init): Ditto.
754 * x86-64-tdep.c (x86_64_init_abi): Ditto.
755 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
756 * s390-tdep.c (s390_gdbarch_init): Ditto.
757 * v850-tdep.c (v850_gdbarch_init): Ditto.
758 * vax-tdep.c (vax_gdbarch_init): Ditto.
759 * sh-tdep.c (sh_gdbarch_init): Ditto.
760 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
762 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
764 * i386-tdep.c (i386_gdbarch_init): Ditto.
765 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
766 * cris-tdep.c (cris_gdbarch_init): Ditto.
767 * avr-tdep.c (avr_gdbarch_init): Ditto.
768 * arm-tdep.c (arm_gdbarch_init): Ditto.
769 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
770 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
771
772 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
773
774 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
775 CHILD_FOLLOW_FORK.
776 * hppah-nat.c (saved_vfork_pid): Add.
777 (child_post_follow_vfork): Remove.
778 (child_follow_fork): New function.
779 (child_wait): Call detach_breakpoints after receiving the child vfork.
780 Call child_resume directly instead of going through resume ().
781 Make sure we have the exec before reporting the vfork.
782 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
783 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
784 (follow_fork): New function. Call target_follow_fork.
785 (follow_inferior_reset_breakpoints): New function broken out from
786 old follow_inferior_fork.
787 (resume): Remove hack to follow exec after vfork.
788 * inftarg.c (child_post_follow_vfork): Remove.
789 (child_follow_fork): New function.
790 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
791 * target.c (cleanup_target): Replace to_post_follow_vfork with
792 to_follow_fork.
793 (update_current_target): Likewise.
794 (setup_target_debug): Likewise.
795 (debug_to_post_follow_vfork): Remove.
796 (debug_to_follow_fork): New function.
797 * target.h (struct target_ops): Replace to_post_folow_vfork with
798 to_follow_fork.
799 (child_post_follow_vfork): Remove prototype.
800 (child_follow_fork): Add prototype.
801 (target_post_follow_vfork): Remove macro.
802 (target_follow_fork): Add macro.
803
804 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
805
806 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
807 (child_post_follow_vfork): Cancel pending exec event if we follow
808 the parent.
809 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
810 events have been processed. Return a fake TARGET_WAITKIND_EXECD
811 event at the following wait call if necessary.
812 * infrun.c (follow_vfork): Don't follow_exec here.
813 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
814 case about HP/UX 10.20. Remove code pushed down to
815 hppah-nat.c:child_wait.
816 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
817 vfork_in_flight is set.
818
819 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
820
821 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
822 for the parent's fork event.
823 * infrun.c (handle_inferior_event): Only expect one fork event.
824 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
825 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
826
827 2002-12-10 Andrew Cagney <ac131313@redhat.com>
828
829 * PROBLEMS: Delete reference to PR gdb/725.
830
831 * MAINTAINERS (gdb.c++): Add David Carlton.
832
833 2002-12-09 David Carlton <carlton@math.stanford.edu>
834
835 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
836 * cli/cli-cmds.c: Ditto.
837
838 2002-12-09 Andrew Cagney <cagney@redhat.com>
839
840 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
841 function address in <>.
842 * gdbarch.c: Re-generate.
843
844 2002-12-09 David Carlton <carlton@math.stanford.edu>
845
846 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
847
848 2002-12-09 David Carlton <carlton@math.stanford.edu>
849
850 * linespec.c (symtab_from_filename): New function.
851 (decode_line_1): Move code into symtab_from_filename.
852
853 2002-12-09 Kevin Buettner <kevinb@redhat.com>
854
855 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
856
857 2002-12-07 Andrew Cagney <ac131313@redhat.com>
858
859 * f-valprint.c (info_common_command): Use get_frame_pc.
860 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
861 * ax-gdb.c (agent_command): Ditto.
862 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
863 (rs6000_pop_frame): Ditto.
864 (rs6000_frameless_function_invocation): Ditto.
865 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
866 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
867 * macroscope.c (default_macro_scope): Ditto.
868 * stack.c (print_frame_info_base): Ditto.
869 (print_frame, frame_info, print_frame_label_vars): Ditto.
870 (return_command, func_command, get_frame_language): Ditto.
871 * infcmd.c (finish_command): Ditto.
872 * dummy-frame.c (cached_find_dummy_frame): Ditto.
873 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
874 (break_at_finish_at_depth_command_1): Ditto.
875 (break_at_finish_command_1): Ditto.
876 (until_break_command, get_catch_sals): Ditto.
877 * blockframe.c (func_frame_chain_valid): Ditto.
878 (frameless_look_for_prologue): Ditto.
879 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
880
881 2002-12-08 Andrew Cagney <ac131313@redhat.com>
882
883 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
884 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
885
886 2002-12-08 Andrew Cagney <ac131313@redhat.com>
887
888 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
889 to pure functions.
890 * gdbarch.h, gdbarch.c: Re-generate.
891 * frame.c (get_prev_frame): Explictly assign prev's pc with value
892 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
893
894 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
895 declaration to a function returning a CORE_ADDR.
896 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
897 * arch-utils.c (init_frame_pc_noop): Return the PC value.
898 (init_frame_pc_default): Ditto.
899 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
900 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
901 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
902 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
903 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
904 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
905
906 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
907 to init_frame_pc_noop.
908 (i386_interix_init_frame_pc): Delete function.
909 * z8k-tdep.c (init_frame_pc): Delete function.
910 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
911 (INIT_FRAME_PC_FIRST): Ditto.
912 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
913 (INIT_FRAME_PC_FIRST): Ditto.
914 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
915 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
916 init_frame_pc_noop.
917 (INIT_FRAME_PC_FIRST): Convert to an expression.
918 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
919
920 2002-12-08 Andrew Cagney <ac131313@redhat.com>
921
922 * blockframe.c: Use get_frame_base instead of directly accessing
923 the `struct frame_info' member frame.
924 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
925 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
926
927 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
928
929 * Makefile.in (readline_h): Define.
930 (completer.o): Depend on readline_h.
931 (corelow.o): Ditto.
932 (event-top.o): Ditto.
933 (exec.o): Ditto.
934 (solib.o): Ditto.
935 (source.o): Ditto.
936 (symfile.o): Ditto.
937 (symmisc.o): Ditto.
938 (top.o): Ditto.
939 (tracepoint.o): Ditto.
940 (utils.o): Ditto.
941 (cli-dump.o): Ditto.
942 (tui-hooks.o): Ditto.
943 (tuiWin.o): Ditto.
944
945 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
946
947 More cleanup from import of readline 4.3.
948 * completer.h (complete_line, readline_line_completion_function):
949 Update prototypes.
950 (line_completion_function): Removed, not used outside of completer.c.
951 * completer.c (readline_line_completion_function,
952 complete_function, line_completion_function): Use const for first
953 parameter.
954 (line_completion_function): Make static.
955 (filename_completer): filename_completion_function is now called
956 rl_filename_completion_function
957 * corelow.c: Include <readline/readline.h>.
958 * exec.c: Ditto.
959 * solib.c: Ditto.
960 * source.c: Ditto.
961 * symfile.c: Ditto.
962 * symmisc.c: Ditto.
963 * top.c (init_main): No need to coerce
964 readline_line_completion_function anymore.
965 * cli/cli-dump.c: Include <readline/readline.h>.
966
967 2002-12-08 Andrew Cagney <ac131313@redhat.com>
968
969 * stack.c (frame_info): Use get_prev_frame.
970 * blockframe.c (frame_address_in_block): Ditto.
971 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
972 (rs6000_frameless_function_invocation): Ditto.
973 (rs6000_frame_saved_pc): Ditto.
974 (rs6000_frame_chain): Ditto.
975 * arch-utils.c (init_frame_pc_default): Ditto.
976
977 2002-12-08 Andrew Cagney <ac131313@redhat.com>
978
979 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
980 Delete redundant definition.
981
982 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
983
984 Import of readline 4.3:
985 * cli/cli-cmds.c: Include readline/tilde.h.
986 * cli/cli-setshow.c: Ditto.
987 * defs.h: Don't declare tilde_expand anymore, since readline
988 exports it.
989
990 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
991
992 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
993 -Werror on this file.
994
995 2002-12-07 Andrew Cagney <ac131313@redhat.com>
996
997 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
998 the format name.
999 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1000 * gdbarch.c: Regenerate.
1001
1002 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1003
1004 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1005 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1006 provide a default value.
1007 * gdbarch.h, gdbarch.c: Regenerate.
1008 * frame.c (get_prev_frame): Update. Check
1009 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1010 * s390-tdep.c (s390_gdbarch_init): Update.
1011 * mips-tdep.c (mips_gdbarch_init): Update.
1012 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1013 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1014 * alpha-tdep.c (alpha_gdbarch_init): Update.
1015
1016 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1017
1018 * ia64-linux-nat.c: Include gdb_string.h.
1019 * alpha-nat.c: Ditto.
1020 * ppc-linux-nat.c: Ditto.
1021 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1022 Update dependencies.
1023
1024 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1025
1026 * gdbthread.h: Include "frame.h".
1027 (struct thread_info): Replace step_frame_address with
1028 step_frame_id.
1029 * inferior.h: Include "frame.h".
1030 (step_frame_id): Replace external variable step_frame_address.
1031 * gdbthread.h (save_infrun_state): Replace step_frame_address
1032 parameter with step_frame_id parameter.
1033 (load_infrun_state): Ditto.
1034 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1035 * infcmd.c (step_frame_id, step_1, step_once): Update.
1036 * thread.c (load_infrun_state, save_infrun_state): Update.
1037 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1038 (handle_inferior_event, step_over_function): Update.
1039 (normal_stop, context_switch, restore_inferior_status): Update.
1040 (struct inferior_status): Replace step_frame_address with
1041 step_frame_id.
1042
1043 2002-12-05 David Carlton <carlton@math.stanford.edu>
1044
1045 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1046 DW_TAG_member as well as a declaration as being a C++ static data
1047 member.
1048 (read_structure_scope): Combine tests for DW_TAG_member and
1049 DW_TAG_variable.
1050
1051 2002-12-05 David Carlton <carlton@math.stanford.edu>
1052
1053 * linespec.c (decode_compound): New function.
1054 (decode_line_1): Move code into decode_compound.
1055
1056 2002-12-05 David Carlton <carlton@math.stanford.edu>
1057
1058 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1059 argument.
1060 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1061 the static block. See PR gdb/804.
1062
1063 2002-12-05 David Carlton <carlton@math.stanford.edu>
1064
1065 * symtab.c (lookup_symbol_aux_block): New function.
1066 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1067
1068 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1069
1070 * gdbarch.sh: Dump the predicate function and macro values.
1071 (read): Print error on standard error.
1072 * gdbarch.c: Regenerate.
1073
1074 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1075
1076 * Makefile.in (mips_tdep_h): Define.
1077 (mips-tdep.o): Add mips_tdep_h to dependency list.
1078 * mips-tdep.h: New file.
1079 * mips-tdep.c (mips-tdep.h): Include.
1080 (enum mips_abi): Move to mips-tdep.h.
1081 (mips_abi): New function.
1082
1083 2002-12-04 David Carlton <carlton@math.stanford.edu>
1084
1085 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1086
1087 2002-12-04 David Carlton <carlton@math.stanford.edu>
1088
1089 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1090 function.
1091 (lookup_symbol_aux_minsyms): New function.
1092
1093 2002-12-04 J. Brobecker <brobecker@gnat.com>
1094
1095 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1096
1097 2002-12-04 J. Brobecker <brobecker@gnat.com>
1098
1099 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1100 which is an obsolete macro name.
1101
1102 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1103
1104 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1105 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1106
1107 2002-12-03 H.J. Lu (hjl@gnu.org)
1108
1109 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1110 (create_breakpoints): Make sure the addr_string field is not
1111 NULL.
1112
1113 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1114
1115 * sparc-nat.c (fetch_inferior_registers)
1116 (store_inferior_registers): Add comment on problem of LWP vs
1117 threads.
1118
1119 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1120 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1121 (lin_lwp_store_registers): Remove.
1122 (init_lin_lwp_ops): Use fetch_inferior_registers
1123 and store_inferior_registers directly.
1124 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1125 (store_inferior_registers): Likewise.
1126 Fix PR gdb/725.
1127
1128 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1129
1130 * frame.h (get_frame_id): Convert to a function.
1131 (null_frame_id, frame_id_p): Declare.
1132 (frame_id_eq, frame_id_inner): Declare.
1133 (frame_id_build): New function.
1134 * frame.c (get_frame_id): Update. Use null_frame_id.
1135 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1136 frame_id_inner.
1137 (null_frame_id, frame_id_p): Define.
1138 (frame_id_eq, frame_id_inner): Define.
1139 (frame_id_build): New function.
1140 * varobj.c (varobj_create): Update.
1141 (varobj_update): Update.
1142 * valops.c (value_assign): Update.
1143 (new_root_variable): Update.
1144 * infrun.c (save_inferior_status): Update.
1145 * breakpoint.c (watch_command_1): Update.
1146
1147 2002-12-03 J. Brobecker <brobecker@gnat.com>
1148
1149 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1150 (SNAP2): Likewise.
1151
1152 2002-12-03 Andrew Cagney <cagney@redhat.com>
1153
1154 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1155 patch.
1156
1157 * PROBLEMS: Mention PR gdb/725.
1158
1159 2002-12-03 Andreas Schwab <schwab@suse.de>
1160
1161 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1162
1163 2002-12-02 Adam Fedor <fedor@gnu.org>
1164 Klee Dienes <kdienes@apple.com>
1165
1166 * objc-lang.c (objc_printstr): Add width arg to match
1167 printstr prototype.
1168 (compare_selectors): Add 'const' to arg types.
1169 (compare_classes): Likewise.
1170 (find_imps): Cast msym pointer to avoid compiler warning.
1171 (print_object_command): Validate the address before
1172 passing it to the print routine.
1173 (find_objc_msgcall_submethod): Change function argument to
1174 return an int.
1175 * objc-lang.h: Add 'extern' to all function declarations.
1176 (value_nsstring): Add declaration.
1177
1178 2002-12-02 J. Brobecker <brobecker@gnat.com>
1179
1180 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1181 Fixes a build failure on HP/UX.
1182
1183 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1184 failure on HP/UX.
1185 (hpread_has_name): Advance declaration to avoid a compilation warning.
1186 (pst_syms_count): Add missing variable type. By change, the compiler
1187 was defaulting to int, which seems a good choice. Fixes a compilation
1188 warning.
1189 (pst_syms_size): Likewise.
1190
1191 2002-12-02 J. Brobecker <brobecker@gnat.com>
1192
1193 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1194 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1195 later to set the proper gdbarch methods depending on the osabi.
1196 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1197
1198 2002-12-02 J. Brobecker <brobecker@gnat.com>
1199
1200 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1201 * osabi.c (gdb_osabi_name): Add strings images for the two new
1202 enum values.
1203 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1204
1205 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1206
1207 * MAINTAINERS (Java): Global maintainers are responible for Java.
1208 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1209 part Java maintainers.
1210
1211 2002-12-02 J. Brobecker <brobecker@gnat.com>
1212
1213 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1214 Fixes a compilation failure on AiX.
1215
1216 2002-12-02 J. Brobecker <brobecker@gnat.com>
1217
1218 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1219 why aix-thread.o is not listed.
1220
1221 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1222
1223 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1224 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1225 * gdbarch.h, gdbarch.c: Re-generate.
1226 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1227 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1228 * config/pa/tm-hppa.h, frame.h: Update.
1229 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1230 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1231 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1232 * cris-tdep.c, alpha-tdep.c: Update.
1233 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1234 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1235 (get_prev_frame): Ditto.
1236
1237 2002-11-30 Andrew Cagney <cagney@redhat.com>
1238
1239 * exec.c (xfer_memory): Replace boolean with int.
1240 * p-exp.y: Use 0 instead of false.
1241 * corelow.c (gdb_check_format): Change return type to int from
1242 boolean.
1243 * utils.c: Don't include <curses.h> or <term.h> first.
1244
1245 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1246
1247 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1248 (m68hc11_register_byte): Remove.
1249 (m68hc11_gdbarch_init): Don't set the above.
1250
1251 2002-11-29 Andrew Cagney <cagney@redhat.com>
1252
1253 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1254 by calling get_selected_frame.
1255 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1256 set_current_frame, create_new_frame, select_frame and
1257 get_current_frame.
1258 * remote-e7000.c (e7000_start_remote): Ditto.
1259 * remote-mips.c (common_open): Ditto
1260 * remote-rdp.c (remote_rdp_open): Ditto.
1261
1262 2002-11-29 Andreas Schwab <schwab@suse.de>
1263
1264 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1265 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1266 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1267 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1268 read_memory_unsigned_integer instead of read_memory_integer when
1269 dealing with addresses and instruction opcodes.
1270 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1271 (m68k_linux_frame_saved_pc): Likewise.
1272
1273 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1274
1275 * stack.c (selected_frame, select_frame): Move from here ...
1276 * frame.c (selected_frame, select_frame): ... to here. Include
1277 "language.h".
1278 * Makefile.in (frame.o): Update dependencies.
1279 * frame.c (get_selected_frame): New function.
1280 * frame.h (get_selected_frame): Declare.
1281 (deprecated_selected_frame): Rename selected_frame.
1282 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1283 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1284 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1285 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1286 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1287 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1288 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1289 * z8k-tdep.c, cli/cli-cmds.c: Update.
1290
1291 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1292
1293 * frame.h (get_selected_block): Add comments.
1294
1295 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1296
1297 * frame.c (pc_notcurrent): New function.
1298 (find_frame_sal): New function.
1299 * frame.h (find_frame_sal): Declare.
1300 (struct symtab_and_line): Add opaque declaration.
1301 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1302 find_pc_line.
1303 (frame_info): Ditto.
1304 * ada-lang.c (find_printable_frame): Ditto.
1305
1306 2002-11-28 J. Brobecker <brobecker@gnat.com>
1307
1308 * configure.in: Check that the pthdebug library is recent enough
1309 before enabling thread support on native AiX.
1310 * configure: Regenerate.
1311
1312 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1313 from the list of object files as it is now appended by configure
1314 if thread support is enabled.
1315 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1316 if thread support is enabled.
1317
1318 2002-11-28 Andrew Cagney <cagney@redhat.com>
1319
1320 * stack.c (get_selected_block): In-line get_current_block.
1321 * frame.h (get_current_block): Delete declaration.
1322 * blockframe.c (get_current_block): Delete function.
1323
1324 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1325
1326 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1327 USE_GENERIC_DUMMY_FRAMES.
1328 * gdbarch.h, gdbarch.c: Regenerate.
1329 * valops.c, frame.c: Update.
1330 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1331 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1332 * config/pa/tm-hppa.h, blockframe.c: Update.
1333 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1334 * m68k-tdep.c, alpha-tdep.c: Ditto.
1335
1336 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1337 * mips-tdep.c: Ditto.
1338
1339 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1340
1341 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1342 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1343 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1344 * gdbarch.c, gdbarch.h: Re-generate.
1345 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1346 (CALL_DUMMY_LOCATION): Delete macro definition.
1347 (PC_IN_CALL_DUMMY): Delete macro definitions.
1348
1349 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1350 default is already generic_pc_in_call_dummy.
1351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1352 * v850-tdep.c (v850_gdbarch_init): Ditto.
1353 * sh-tdep.c (sh_gdbarch_init): Ditto.
1354 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1355 * mips-tdep.c (mips_gdbarch_init): Ditto.
1356 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1359 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1360 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1361 * avr-tdep.c (avr_gdbarch_init): Ditto.
1362
1363 * arm-tdep.c (arm_gdbarch_init): Do not set
1364 use_generic_dummy_frames, default is already 1.
1365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1366 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1367 * v850-tdep.c (v850_gdbarch_init): Ditto.
1368 * sh-tdep.c (sh_gdbarch_init): Ditto.
1369 * s390-tdep.c (s390_gdbarch_init): Ditto.
1370 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1372 * mips-tdep.c (mips_gdbarch_init): Ditto.
1373 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1375 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1376 * i386-tdep.c (i386_gdbarch_init): Ditto.
1377 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1378 * frv-tdep.c (frv_gdbarch_init): Ditto.
1379 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1380 * cris-tdep.c (cris_gdbarch_init): Ditto.
1381 * avr-tdep.c (avr_gdbarch_init): Ditto.
1382
1383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1384 call_dummy_location, default is already AT_ENTRY_POINT.
1385 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1386 * v850-tdep.c (v850_gdbarch_init): Ditto.
1387 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1388 * sh-tdep.c (sh_gdbarch_init): Ditto.
1389 * s390-tdep.c (s390_gdbarch_init): Ditto.
1390 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1392 * mips-tdep.c (mips_gdbarch_init): Ditto.
1393 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1395 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1396 * i386-tdep.c (i386_gdbarch_init): Ditto.
1397 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1398 * frv-tdep.c (frv_gdbarch_init): Ditto.
1399 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1400 * cris-tdep.c (cris_gdbarch_init): Ditto.
1401 * avr-tdep.c (avr_gdbarch_init): Ditto.
1402 * arm-tdep.c (arm_gdbarch_init): Ditto.
1403 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1404
1405 2002-11-28 Andrew Cagney <cagney@redhat.com>
1406
1407 * frame.h: Update comments on set_current_frame, create_new_frame,
1408 flush_cached_frames, reinit_frame_cache, select_frame and
1409 selected_frame.
1410
1411 2002-11-27 Andrew Cagney <cagney@redhat.com>
1412
1413 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1414 deprecated pc_in_call_dummy function.
1415 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1416 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1417 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1418 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1419 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1420
1421 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1422
1423 * Makefile.in: Remove Tix dependencies.
1424 * acinclude.m4: Ditto.
1425 * aclocal.m4: Ditto.
1426 * configure.in: Ditto.
1427 * configure: Regenerated.
1428
1429 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1430
1431 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1432 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1433 * gdbarch.c: Re-generate.
1434
1435 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1436
1437 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1438 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1439 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1440 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1441 pc_in_call_dummy_at_entry_point.
1442 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1443 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1444 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1445 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1446 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1447 pc_in_call_dummy_on_stack.
1448 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1449 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1450 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1451 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1452 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1453
1454 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1455
1456 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1457 pc_in_call_dummy_before_text_end
1458 (deprecated_pc_in_call_dummy_after_text_end): Rename
1459 pc_in_call_dummy_after_text_end.
1460 (deprecated_pc_in_call_dummy_on_stack): Rename
1461 pc_in_call_dummy_on_stack.
1462 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1463 pc_in_call_dummy_at_entry_point.
1464 * m68k-tdep.c (m68k_gdbarch_init): Update.
1465 * s390-tdep.c (s390_gdbarch_init): Update.
1466 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1467 * vax-tdep.c (vax_gdbarch_init): Update.
1468 * sparc-tdep.c (sparc_gdbarch_init): Update.
1469 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1471 * i386-tdep.c (i386_gdbarch_init): Update.
1472 * frv-tdep.c (frv_gdbarch_init): Update.
1473 * cris-tdep.c (cris_gdbarch_init): Update.
1474 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1475 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1476 (deprecated_pc_in_call_dummy_after_text_end)
1477 (deprecated_pc_in_call_dummy_on_stack)
1478 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1479 * alpha-tdep.c (alpha_gdbarch_init): Update.
1480
1481 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1482
1483 * acconfig.h (HAVE_PREAD64): Add.
1484 * configure.in: Check for pread64.
1485 * config.in: Regenerated.
1486 * configure: Regenerated.
1487 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1488 * linux-proc.c (linux_proc_xfer_memory): New function.
1489 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1490
1491 2002-11-25 David Carlton <carlton@math.stanford.edu>
1492
1493 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1494 pdi's with no name.
1495
1496 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1497
1498 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1499 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1500
1501 2002-11-25 Jim Blandy <jimb@redhat.com>
1502
1503 * symfile.c (init_objfile_sect_indices): New function.
1504 (default_symfile_offsets): Move the section-index-initializing
1505 stuff into init_objfile_sect_indices, and call that.
1506
1507 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1508 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1509
1510 * symfile.c (syms_from_objfile): Adjust indentation.
1511
1512 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1513 || info_verbose isn't true.
1514
1515 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1516
1517 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1518 default to get_frame_base.
1519 * gdbarch.h, gdbarch.c: Regenerate.
1520 * arch-utils.c (default_frame_address): Delete function.
1521 * arch-utils.h (default_frame_address): Delete declaration
1522
1523 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1524
1525 * varobj.c (find_frame_addr_in_frame_chain):
1526 Use get_frame_base instead of FRAME_FP,
1527 obvious fix.
1528
1529 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1530
1531 * frame.h (FRAME_FP): Delete macro.
1532 (get_frame_base): New function declaration.
1533 * frame.c (get_frame_base): New function.
1534 (get_frame_id): Use ->frame.
1535 (frame_find_by_id): Rewrite to use get_frame_id.
1536 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1537 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1538 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1539 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1540 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1541 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1542 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1543
1544 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1545
1546 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1547
1548 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1549
1550 * frame.c (set_unwind_by_pc): Revert change below, use
1551 PC_IN_CALL_DUMMY.
1552 (get_prev_frame): Ditto.
1553
1554 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1555
1556 * dummy-frame.c (pc_in_dummy_frame): New function.
1557 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1558 (find_dummy_frame): Update comment.
1559 (generic_pop_current_frame): Use get_frame_type.
1560 * dummy-frame.h (pc_in_dummy_frame): Declare.
1561 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1562 (create_new_frame): Use pc_in_dummy_frame.
1563 (get_prev_frame): Use pc_in_dummy_frame.
1564 (frame_saved_regs_register_unwind): Use get_prev_frame.
1565 (deprecated_generic_get_saved_register): Use get_prev_frame.
1566
1567 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1568
1569 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1570 from here ...
1571 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1572 (varobj_create): Note that frame ID should be used.
1573 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1574
1575 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1576
1577 * breakpoint.c: Include "gdb_assert.h".
1578 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1579 not being used.
1580 * Makefile.in (breakpoint.o): Update dependencies.
1581 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1582 deprecated_frame_in_dummy.
1583 * stack.c (print_frame_info_base): Ditto.
1584 (frame_info): Ditto.
1585 (print_frame_info_base): Ditto. Delete dead code.
1586
1587 2002-11-23 Andreas Schwab <schwab@suse.de>
1588
1589 * Makefile.in (m68k_tdep_h): Define.
1590 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1591 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1592 * m68k-tdep.c: Move register number enum ...
1593 * m68k-tdep.h: ... to this new file and rename the constants from
1594 E_* to M68K_*. All uses changed.
1595 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1596 * abug-rom.c: Include "m68k-tdep.h". Use
1597 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1598 * cpu32bug-rom.c: Likewise.
1599 * dbug-rom.c: Likewise.
1600 * m68k-tdep.c: Likewise.
1601 * m68klinux-nat.c: Likewise.
1602 * remote-est.c: Likewise.
1603 * rom68k-rom.c: Likewise.
1604 * config/m68k/tm-linux.h: Likewise.
1605
1606 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1607
1608 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1609 dummy frame initialization code.
1610 * mips-tdep.c (mips_gdbarch_init): Ditto.
1611
1612 2002-11-22 Christopher Faylor <cgf@redhat.com>
1613
1614 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1615 attach will hang.
1616
1617 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1618
1619 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1620 to default_frame_address.
1621 * gdbarch.h, gdbarch.c: Re-generate.
1622
1623 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1624 or frame_locals_address to default_frame_address.
1625 * m68k-tdep.c (m68k_gdbarch_init): Update.
1626 * i386-tdep.c (i386_gdbarch_init): Update.
1627 * frv-tdep.c (frv_gdbarch_init): Update.
1628 * sh-tdep.c (sh_gdbarch_init): Update.
1629 * v850-tdep.c (v850_gdbarch_init): Update.
1630 * sparc-tdep.c (sparc_gdbarch_init): Update.
1631 * mips-tdep.c (mips_gdbarch_init): Update.
1632 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1633 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1635
1636 * cris-tdep.c (cris_frame_args_address): Delete function.
1637 (cris_frame_locals_address): Delete function.
1638 (cris_gdbarch_init): Do not set frame_args_address or
1639 frame_locals_address.
1640
1641 2002-11-22 Michael Snyder <msnyder@redhat.com>
1642
1643 * thread-db.c (thread_db_load): Tell the user what's going on
1644 if dlopen fails on libthread_db.
1645
1646 2002-11-23 Andreas Schwab <schwab@suse.de>
1647
1648 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1649 invariant return values.
1650
1651 2002-11-22 Andreas Schwab <schwab@suse.de>
1652
1653 * valops.c (value_slice): Move declaration of `offset' to avoid
1654 warning.
1655
1656 2002-11-22 Christopher Faylor <cgf@redhat.com>
1657
1658 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1659 (struct so_stuff): Add end_addr field.
1660 (register_loaded_dll): Calculate and store end address of loaded dll.
1661 (solib_address): New function.
1662 (child_solib_loaded_library_pathname): Pass carefully constructed
1663 section info to safe_symbol_file_add rather than ignoring it.
1664 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1665 DLL is loaded.
1666 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1667 (child_create_inferior): Fix a compiler warning.
1668 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1669 (solib_address): Declare new function.
1670
1671 2002-11-22 Andreas Schwab <schwab@suse.de>
1672
1673 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1674 and FPS registers.
1675
1676 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1677
1678 * maint.c (_initialize_maint_cmds): Fix typo. From
1679 Francesco Potorti` <pot@gnu.org>.
1680
1681 2002-11-21 Andrew Cagney <cagney@redhat.com>
1682
1683 * mips-tdep.c (mips_dump_tdep): Delete references to
1684 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1685 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1686 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1687 * printcmd.c (build_address_symbolic): Delete calls to
1688 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1689 (address_info): Ditto.
1690 Fix PR gdb/773.
1691
1692 2002-11-19 Klee Dienes <kdienes@apple.com>
1693 Adam Fedor <fedor@gnu.org>
1694
1695 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1696 the ability to explicitly specify the quote characters and word
1697 break characters; if NULL is specified for either, use the old
1698 behavior of using the characters used by the completer.
1699 (skip_chars): New function. Convenience wrapper around
1700 skip_quoted_chars to provide the original skip_chars behavior.
1701 * completer.h (skip_quoted_chars): Add prototype.
1702
1703 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1704
1705 Problems reported by Paul Eggert.
1706 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1707
1708 2002-11-19 Andreas Schwab <schwab@suse.de>
1709
1710 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1711 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1712 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1713 (m68k_linux_frame_saved_pc): Move to ...
1714 * m68klinux-tdep.c: ... here. New file.
1715 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1716 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1717
1718 2002-11-19 Adam Fedor <fedor@gnu.org>
1719
1720 * objc-exp.y: Revert to old skip_quoted usage.
1721
1722 2002-11-19 Adam Fedor <fedor@gnu.org>
1723
1724 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1725 (objc_lang_h): Define.
1726 (YYFILES): Add objc-exp.tab.c.
1727 (local-maintainer-clean): Remove objc-exp.tab.c.
1728 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1729
1730 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1731
1732 * p-exp.y (typecast rule): Add automatic dereference of
1733 pascal classes if needed.
1734 (THIS): Set current_type.
1735 Automatically dereference pascal classes.
1736 (typebase rule): Add ^typebase recognition.
1737
1738 2002-11-18 Adam Fedor <fedor@gnu.org>
1739
1740 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1741 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1742 (op_name): Handle OP_OBJC_SELF.
1743 * Makefile.in (expprint.o): Add additional depends.
1744
1745 2002-11-18 Adam Fedor <fedor@gnu.org>
1746
1747 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1748 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1749 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1750 * objc-exp.y: Likewise.
1751
1752 2002-11-18 Adam Fedor <fedor@gnu.org>
1753
1754 * gdb/parser-defs.h: (struct objc_class_str): New structure
1755 for parsing ObjC classes.
1756
1757 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1758
1759 * stack.c (frame_relative_level): Copy function from here ...
1760 * frame.c (frame_relative_level): ...to here.
1761
1762 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1763
1764 * frame.h (enum frame_type): Define.
1765 (get_frame_type): Declare.
1766 (struct frame_info): Add field `type'. Delete field
1767 signal_handler_caller.
1768 (deprecated_set_frame_signal_handler_caller): Declare.
1769 * frame.c (get_frame_type): New function.
1770 (deprecated_set_frame_type): New function.
1771 (create_new_frame): Set the frame's type.
1772 (get_prev_frame): Similar.
1773 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1774 * s390-tdep.c: Ditto.
1775 * m68klinux-nat.c: Ditto.
1776 * ns32k-tdep.c: Ditto.
1777 * x86-64-linux-tdep.c: Ditto.
1778 * vax-tdep.c: Ditto.
1779 * rs6000-tdep.c: Ditto.
1780 * ppc-linux-tdep.c: Ditto.
1781 * i386-interix-tdep.c: Ditto.
1782 * mips-tdep.c: Ditto.
1783 * m68k-tdep.c: Ditto.
1784 * hppa-tdep.c: Ditto.
1785 * ia64-tdep.c: Ditto.
1786 * cris-tdep.c: Ditto.
1787 * arm-tdep.c: Ditto.
1788 * alpha-tdep.c: Ditto.
1789 * i386-tdep.c: Ditto.
1790 * stack.c: Ditto.
1791 * ada-lang.c: Ditto.
1792 * blockframe.c: Update.
1793 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1794 deprecated_set_frame_type instead of signal_handler_caller.
1795 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1796 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1797 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1798
1799 2002-11-18 Klee Dienes <kdienes@apple.com>
1800
1801 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1802
1803 2002-11-18 Klee Dienes <kdienes@apple.com>
1804
1805 * buildsym.c (pop_context): Add comment.
1806
1807 2002-11-18 Klee Dienes <kdienes@apple.com>
1808
1809 * buildsym.h (pop_context): Convert to function, defined in
1810 buildsym.c.
1811 * buildsym.c: Include gdb_assert.h.
1812 (pop_context): Implement as C function. Add check for stack
1813 underflow.
1814 * dbxread.c (process_one_symbol): Complain and stop processing
1815 that symbol if we are already at the top of the context stack for
1816 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1817 when processing N_RBRAC.
1818
1819 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1820
1821 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1822 define.
1823 (struct target_waitstatus): Add opaque definition.
1824 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1825 * exec.c (init_exec_ops): Likewise.
1826 * fork-child.c (clone_and_follow_inferior): Remove.
1827 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1828 * inferior.h (clone_and_follow_inferior): Remove prototype.
1829 * infrun.c (follow_fork_mode_both): Remove.
1830 (follow_fork_mode_kind_names): Remove commented out "both".
1831 (follow_inferior_fork): Remove follow_fork_mode_both support.
1832 * inftarg.c (child_clone_and_follow_inferior): Remove.
1833 (child_post_follow_inferior_by_clone): Remove.
1834 (init_child_ops): Don't set to_clone_and_follow_inferior
1835 or to_post_follow_inferior_by_clone.
1836 * target.c (default_clone_and_follow_inferior): Remove.
1837 (cleanup_target): Don't set to_clone_and_follow_inferior
1838 or to_post_follow_inferior_by_clone.
1839 (find_default_clone_and_follow_inferior): Remove.
1840 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1841 (debug_to_clone_and_follow_inferior): Remove.
1842 (debug_to_post_follow_inferior_by_clone): Remove.
1843 (setup_target_debug): Don't set to_clone_and_follow_inferior
1844 or to_post_follow_inferior_by_clone.
1845 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1846 and to_post_follow_inferior_by_clone.
1847 (child_clone_and_follow_inferior): Remove prototype.
1848 (child_post_follow_inferior_by_clone): Remove prototype.
1849 (target_clone_and_follow_inferior): Remove macro.
1850 (target_post_follow_inferior_by_clone): Remove macro.
1851 (find_default_clone_and_follow_inferior): Remove prototype.
1852
1853 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1854
1855 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1856 inferior_has_vforked, and inferior_has_execd instead of
1857 target_has_forked, target_has_vforked, and target_has_execd.
1858 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1859 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1860 (CHILD_WAIT): Define.
1861 (child_wait): Add prototype.
1862 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1863 Add prototype.
1864 (hpux_has_vforked): Likewise, from child_has_vforked.
1865 (hpux_has_execd): Likewise, from child_has_execd.
1866 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1867 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1868 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1869 and hpux_has_syscall_event instead of the target hooks.
1870 * infrun.c (inferior_has_forked, inferior_has_vforked)
1871 (inferior_has_execd): New functions.
1872 * inftarg.c (not_same_real_pid): Remove.
1873 (child_wait): Remove references to not_same_real_pid,
1874 target_has_forked, target_has_vforked, target_has_execd,
1875 and target_has_syscall_event.
1876 (child_has_forked, child_has_vforked, child_has_execd)
1877 (child_has_syscall_event): Remove.
1878 (init_child_ops): Remove references to child_has_forked,
1879 child_has_vforked, child_has_execd, and child_has_syscall_event.
1880 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1881 (hpux_has_vforked): Likewise, from child_has_vforked.
1882 (hpux_has_execd): Likewise, from child_has_execd.
1883 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1884 * target.c (cleanup_target): Remove references to
1885 to_has_forked, to_has_vforked, to_has_execd, and
1886 to_has_syscall_event.
1887 (update_current_target): Likewise.
1888 (setup_target_debug): Likewise.
1889 (debug_to_has_forked): Remove.
1890 (debug_to_has_vforked): Remove.
1891 (debug_to_has_execd): Remove.
1892 (debug_to_has_syscall_event): Remove.
1893 * target.h (struct target_ops): Remove to_has_forked.
1894 to_has_vforked, to_has_execd, and to_has_syscall_event.
1895 (child_has_forked, child_has_vforked, child_has_execd)
1896 (child_has_syscall_event): Remove prototypes.
1897 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1898 prototypes.
1899 (target_has_forked, target_has_vforked, target_has_execd)
1900 (target_has_syscall_event): Remove macros.
1901
1902 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1903
1904 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1905 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1906 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1907 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1908 * target.c (cleanup_target): Remove reference to
1909 to_can_follow_vfork_prior_to_exec.
1910 (update_current_target): Likewise.
1911 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1912 (setup_target_debug): Remove reference to
1913 to_can_follow_vfork_prior_to_exec.
1914 * target.h (struct target_ops): Remove
1915 to_can_follow_vfork_prior_to_exec.
1916 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1917 (target_can_follow_vfork_prior_to_exec): Remove definition.
1918 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1919 define.
1920 * infrun.c (follow_vfork_when_exec): Remove.
1921 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1922 (follow_exec): Likewise.
1923 (handle_inferior_event): Likewise.
1924 (keep_going): Likewise.
1925
1926 2002-11-15 Andrew Cagney <cagney@redhat.com>
1927
1928 * frame.c (generic_unwind_get_saved_register): Make static.
1929 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1930 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1931 defaults to generic_unwind_get_saved_register.
1932 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1933 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1934 * frv-tdep.c (frv_gdbarch_init): Ditto.
1935 * i386-tdep.c (i386_gdbarch_init): Ditto.
1936 * s390-tdep.c (s390_gdbarch_init): Ditto.
1937 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1938 * v850-tdep.c (v850_gdbarch_init): Ditto.
1939 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1940 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1941 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1942
1943 2002-11-15 Andrew Cagney <cagney@redhat.com>
1944
1945 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1946 i386-tdep.c.
1947
1948 2002-11-15 Andrew Cagney <cagney@redhat.com>
1949
1950 * frame.h (sigtramp_saved_pc): Delete declaration.
1951 * blockframe.c (sigtramp_saved_pc): Delete function.
1952 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1953 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1954 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1955 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1956
1957 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1958
1959 * frame.c (frame_pc_unwind): New function.
1960 (frame_saved_regs_pc_unwind): New function.
1961 (frame_register_unwind): Pass unwind_cache instead of
1962 register_unwind_cache.
1963 (set_unwind_by_pc): Add unwind_pc parameter, set.
1964 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1965 (get_prev_frame): Ditto.
1966 * frame.h (frame_pc_unwind_ftype): Declare.
1967 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1968 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1969 (frame_pc_unwind): Declare.
1970 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1971 (struct dummy_frame): Add comment mentioning that values are for
1972 previous frame.
1973 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1974 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1975 (generic_file_frame_chain_valid): Ditto.
1976 * stack.c (frame_info): Ditto.
1977
1978 2002-11-15 David Carlton <carlton@math.stanford.edu>
1979
1980 * linespec.c (locate_first_half): New function.
1981 (decode_line_1): Move code into locate_first_half.
1982
1983 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1984
1985 * complaints.h: Add comment explaining how to eliminate a
1986 deprecated_complain call.
1987 * complaints.h: Fix spelling errors.
1988
1989 2002-11-15 David Carlton <carlton@math.stanford.edu>
1990
1991 * printcmd.c: Remove #include "disasm.h".
1992
1993 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1994
1995 * frame.h: Move the most relevant interface functions to the start
1996 of the file.
1997
1998 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1999
2000 * regcache.h (deprecated_registers): Rename registers.
2001 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2002 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2003 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2004 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2005 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2006 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2007 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2008 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2009 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2010 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2011 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2012 * v850ice.c: Update.
2013
2014 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2015
2016 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2017 NULL buffer.
2018
2019 2002-11-13 Andrew Cagney <cagney@redhat.com>
2020
2021 * regcache.h (deprecated_read_register_bytes): Rename
2022 read_register_bytes.
2023 (deprecated_write_register_bytes): Rename write_register_bytes.
2024 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2025 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2026 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2027 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2028 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2029 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2030 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2031 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2032 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2033 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2034 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2035 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2036 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2037 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2038
2039 2002-11-13 Jim Blandy <jimb@redhat.com>
2040
2041 * findvar.c (read_var_value): Doc fix.
2042
2043 2002-11-13 Andrew Cagney <cagney@redhat.com>
2044
2045 * regcache.c (struct regcache): Replace passthough_p with
2046 readonly_p.
2047 (regcache_xmalloc): Initialize readonly_p.
2048 (build_regcache): Initialize readonly_p.
2049 (regcache_save): New function.
2050 (regcache_restore): New function.
2051 (regcache_cpy): Re-implement using regcache_save and
2052 regcache_restore.
2053 (regcache_raw_read): Update.
2054 (regcache_cooked_read): When a read-only cache, checked for cached
2055 pseudo register values.
2056 (regcache_raw_write): Assert that the cache is not read-only.
2057 Remove code handling a non-passthrough cache.
2058 * regcache.h (regcache_save): Declare.
2059 (regcache_restore): Declare.
2060
2061 2002-11-13 Andrew Cagney <cagney@redhat.com>
2062
2063 * regcache.c (struct regcache_descr): Add fields
2064 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2065 (init_legacy_regcache_descr): Compute the size of a cooked
2066 register cache and then assign that to sizeof_raw_registers. Set
2067 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2068 (init_legacy_regcache_descr): Ditto.
2069
2070 2002-11-13 Andrew Cagney <cagney@redhat.com>
2071
2072 * regcache.c (register_buffer): Move to near start of file, update
2073 description.
2074 (regcache_raw_read): Use.
2075 (regcache_raw_write): Use.
2076 (struct regcache): Rename raw_registers to registers and
2077 raw_register_valid_p to register_valid_p.
2078 (regcache_xmalloc): Update.
2079 (regcache_xfree): Update.
2080 (register_buffer): Update.
2081 (regcache_cpy): Update.
2082 (regcache_cpy_no_passthrough): Update.
2083 (regcache_valid_p): Update.
2084 (deprecated_grub_regcache_for_registers): Update.
2085 (deprecated_grub_regcache_for_register_valid): Update.
2086 (set_register_cached): Update.
2087 (regcache_raw_write): Update.
2088
2089 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2090
2091 * p-exp.y (name_not_typename): Use copy_name to
2092 set current_type variable for fields of THIS.
2093
2094 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2095
2096 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2097 * monitor.c (init_base_monitor_ops): Likewise.
2098 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2099 * remote-array.c (init_array_ops): Likewise.
2100 * remote-e7000.c (init_e7000_ops): Likewise.
2101 * remote-es.c (init_es1800_ops): Likewise.
2102 (init_es1800_child_ops): Likewise.
2103 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2104 * remote-sim.c (init_gdbsim_ops): Likewise.
2105 * remote-st.c (init_st2000_ops): Likewise.
2106 * sol-thread.c (init_sol_core_ops): Likewise.
2107 (init_sol_thread_ops): Likewise.
2108 * v850ice.c (init_850ice_ops): Likewise.
2109 * win32-nat.c (init_child_ops): Likewise.
2110 * wince.c (init_child_ops): Likewise.
2111
2112 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2113
2114 * utils.c (gdb_realpath): Make rp a constant pointer.
2115
2116 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2117
2118 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2119 a constant buffer; cannonicalize_file_name(); realpath() with a
2120 pathconf() defined buffer, xstrdup().
2121
2122 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2123
2124 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2125 to hang2.C; hang3.c to hang3.C.
2126
2127 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2128
2129 * findvar.c (read_var_value): Reenable TLS code.
2130
2131 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2132 Jim Blandy <jimb@redhat.com>
2133
2134 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2135 * target.c (update_current_target): Add
2136 to_get_thread_local_address.
2137 * target.h (to_get_thread_local_address): Export.
2138 (target_get_thread_local_address): Define.
2139 (target_get_thread_local_address_p): Define.
2140 * thread-db.c: Include solib-svr4.h.
2141 (td_thr_tls_get_addr_p): Define.
2142 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2143 (thread_db_get_thread_local_address): New function.
2144 (init_thread_db_ops): Initialize to_get_thread_local_address.
2145 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2146 * configure: Regenerate.
2147 * config.in: Regenerate.
2148
2149 2002-11-11 David Carlton <carlton@math.stanford.edu>
2150
2151 * linespec.c (set_flags): New function.
2152 (decode_line_1): Move code into set_flags.
2153
2154 2002-11-11 David Carlton <carlton@math.stanford.edu>
2155
2156 * linespec.c (decode_line_1): Move chunks of code to separate
2157 functions.
2158 (initialize_defaults): New function.
2159 (decode_indirect): New function.
2160
2161 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2162
2163 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2164 instead of void_code_ptr.
2165 (sigtramp_saved_pc): Ditto.
2166
2167 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2168 i386_fp_regnum_p.
2169
2170 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2171
2172 * gdbtypes.h (struct main_type): Move artificial flag out of
2173 loc. New member of ``struct field'' named static_kind. Reduce
2174 overloaded meaning of bitsize.
2175 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2176 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2177 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2178
2179 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2180 new fields.
2181 (template_to_fixed_record_type, template_to_static_fixed_type)
2182 (to_record_with_fixed_variant_part): Likewise.
2183 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2184 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2185 * dwarfread.c (struct_type, enum_type): Likewise.
2186 * hpread.c (hpread_read_enum_type)
2187 (hpread_read_function_type, hpread_read_doc_function_type)
2188 (hpread_read_struct_type): Likewise.
2189 * mdebugread.c (parse_symbol): Likewise.
2190
2191 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2192
2193 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2194 * stack.c (print_frame_info_base): Update.
2195 (print_frame_info_base, frame_info): Update.
2196 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2197 (sparc_frame_saved_pc): Update.
2198 * ada-lang.c (find_printable_frame): Update.
2199 * breakpoint.c (deprecated_frame_in_dummy): Update.
2200
2201 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2202
2203 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2204 defined.
2205 (regmap): Extend to cover all registers.
2206 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2207 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2208 definitions.
2209 (fetch_register, sore_register): Simplify.
2210 (old_fetch_inferior_registers, old_store_inferior_registers):
2211 Remove functions.
2212 (cannot_fetch_register, cannot_store_register): Change
2213 implementation to use regmap array to decide which registers
2214 cannot be fetched/stored. This removes $orig_eax from the
2215 registers that cannot be fetched/stored.
2216 (fetch_inferior_registers): Call fetch_register directly instead
2217 of calling old_fetch_inferior_registers.
2218 (store_inferior_registers): Call store_register directly instead
2219 of calling old_store_inferior_registers.
2220 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2221 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2222 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2223
2224 2002-11-09 Klee Dienes <kdienes@apple.com>
2225
2226 * i387-tdep.c (i387_supply_register): When called with NULL as a
2227 buffer, mark the register as not provided (to mirror the behavior
2228 of supply_register).
2229 (i387_supply_fxsave): Ditto.
2230 (i387_supply_fsave): Ditto (inherits the behavior from
2231 i387_supply_register).
2232
2233 2002-11-09 Klee Dienes <kdienes@apple.com>
2234
2235 * blockframe.c (sigtramp_saved_pc): Use
2236 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2237 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2238 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2239
2240 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2241
2242 * frame.c (get_prev_frame): Test prev_p to identify a previously
2243 unwound frame. Initialize prev_p.
2244 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2245 comment.
2246
2247 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2248
2249 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2250 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2251 more comments. Zap dead code.
2252
2253 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2254
2255 * infcmd.c (print_vector_info, print_float_info): Move code that
2256 checks whether the target has any registers and whether there is a
2257 selected frame up, such that it is also used if a target provides
2258 multi-arch definitions of these functions.
2259
2260 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2261
2262 * Makefile.in (DESTDIR): Define.
2263 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2264 prefix.
2265
2266 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2267 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2268
2269 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2270
2271 * i386-linux-tdep.c: Include "reggroups.h".
2272 (i386_linux_register_reggroup_p): New function.
2273 (i386_linux_init_abi): Set register_reggroup_p to
2274 i386_linux_register_reggroup_p.
2275 * i386-tdep.h (i386_register_reggroup_p): Declare.
2276 * i386-tdep.c: Include "reggroups.h".
2277 (i386_init_reggroups): New function.
2278 (i386_add_reggroups): New function.
2279 (i386_register_reggroup_p): New function.
2280 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2281 (_initialize_i386_tdep): Call i386_init_reggroups.
2282 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2283 specific reggroups.
2284
2285 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2286
2287 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2288 request that's available in *BSD.
2289
2290 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2291
2292 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2293 FDOFF_REGNUM.
2294
2295 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2296
2297 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2298 * dummy-frame.c (find_dummy_frame): Rename
2299 generic_find_dummy_frame, make static. Return the dummy frame
2300 instead of the regcache.
2301 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2302 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2303 (dummy_frame_register_unwind): Rename
2304 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2305 * dummy-frame.h (dummy_frame_register_unwind): Rename
2306 generic_call_dummy_register_unwind.
2307
2308 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2309
2310 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2311 except the inclusion of "i386/tm-i386.h", to...
2312 * config/i386/nm-i386v42mp.h: ...here.
2313 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2314
2315 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2316
2317 * Makefile.in (frame.o): Update dependencies.
2318 * blockframe.c (current_frame, frame_obstack_alloc)
2319 (frame_saved_regs_zalloc, get_current_frame)
2320 (set_current_frame, create_new_frame)
2321 (set_unwind_by_pc, get_next_frame)
2322 (flush_cached_frames, reinit_frame_cache)
2323 (frame_saved_regs_register_unwind)
2324 (deprecated_generic_get_saved_register)
2325 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2326 (_initialize_blockframe): Move frame code from here...
2327 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2328 "annotate.h" and "dummy-frame.h".
2329 (_initialize_frame): New function.
2330
2331 2002-11-08 Jim Blandy <jimb@redhat.com>
2332
2333 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2334 when we finish a function a context.
2335 * buildsym.h (outermost_context_p): New macro.
2336 (Bug analyzed by David Edelsohn.)
2337
2338 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2339
2340 * blockframe.c: Include "dummy-frame.h".
2341 (struct dummy_frame, dummy_frame_stack)
2342 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2343 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2344 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2345 (generic_save_call_dummy_addr, generic_pop_current_frame)
2346 (generic_pop_dummy_frame, generic_fix_call_dummy)
2347 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2348 dummy frame code from here...
2349 * dummy-frame.c: ...to here. New file.
2350 * dummy-frame.h: New file.
2351 (generic_call_dummy_register_unwind): Declare.
2352 (generic_find_dummy_frame): Declare.
2353 * Makefile.in (SFILES): Add dummy-frame.c.
2354 (dummy-frame.o): Specify dependencies.
2355 (dummy_frame_h): Define.
2356 (COMMON_OBS): Add dummy-frame.o.
2357 (blockframe.o): Update dependencies.
2358
2359 2002-11-08 Jim Blandy <jimb@redhat.com>
2360
2361 * dwarf2read.c (read_func_scope): Restore local_symbols and
2362 param_symbols after we finish the function context. (Based on a
2363 patch from David Edelsohn.)
2364
2365 2002-11-08 David Carlton <carlton@math.stanford.edu>
2366
2367 * linespec.c (symbol_found): New function.
2368 (minsym_found): New function.
2369 (decode_line_1): Separate out some code into separate functions.
2370
2371 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2372
2373 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2374 the benefit of the interix target.
2375 * i386-tdep.h (i386_frameless_signal_p): Declare.
2376
2377 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2378
2379 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2380 declaration that snuck in from change below.
2381
2382 2002-11-06 Andrew Cagney <cagney@redhat.com>
2383
2384 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2385 all callers.
2386 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2387 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2388 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2389 (i386_mxcsr_regnum_p): new function. Use instead of
2390 MXCSR_REGNUM_P.
2391 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2392 (i386_sse_regnum_p): Declare.
2393 (i386_mxcsr_regnum_p): Declare.
2394 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2395 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2396 (IS_FP_REGNUM): Update definition.
2397 (IS_FPU_CTRL_REGNUM): Update definition..
2398 (IS_SSE_REGNUM): Update definition..
2399 * i386v-nat.c (register_u_addr): Update.
2400 * go32-nat.c (fetch_register): Update.
2401 (store_register): Update.
2402
2403 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2404
2405 Preparation work to convert the hppa targets to multiarch partial.
2406
2407 * hppa-tdep.c: Add new functions replacing macro bodies from
2408 config/pa/tm-hppa.h. These function will be used to initialize
2409 the gdbarch structure. Import some comments from tm-hppa.h,
2410 and place them where appropriate, to avoid loosing them when
2411 we cleanup this file.
2412 (hppa_reg_struct_has_addr): New function.
2413 (hppa_inner_than): New function.
2414 (hppa_stack_align): New function.
2415 (hppa_pc_requires_run_before_use): New function.
2416 (hppa_instruction_nullified): New function.
2417 (hppa_register_byte): New function.
2418 (hppa_register_virtual_type): New function.
2419 (hppa_store_struct_return): New function.
2420 (hppa_cannot_store_register): New function.
2421 (hppa_frame_args_address): New function.
2422 (hppa_frame_locals_address): New function.
2423 (hppa_smash_text_address): New function.
2424 (hppa_coerce_float_to_double): New function. Requires the inclusion
2425 of "language.h".
2426
2427 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2428
2429 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2430 gdbarch-eligible macro to a call to the new associated function
2431 created in hppa-tdep.c.
2432 (INNER_THAN): Likewise.
2433 (STACK_ALIGN): Likewise.
2434 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2435 (INSTRUCTION_NULLIFIED): Likewise.
2436 (REGISTER_BYTE): Likewise.
2437 (REGISTER_VIRTUAL_TYPE): Likewise.
2438 (STORE_STRUCT_RETURN): Likewise.
2439 (CANNOT_STORE_REGISTER): Likewise.
2440 (FRAME_ARGS_ADDRESS): Likewise.
2441 (FRAME_LOCALS_ADDRESS): Likewise.
2442 (SMASH_TEXT_ADDRESS): Likewise.
2443 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2444 (ABOUT_TO_RETURN): Delete, as no longer used.
2445
2446 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2447
2448 * printcmd.c (disassemble_command): Remove obsolete function.
2449 (_initialize_printcmd): Do not create disassemble command here.
2450 * cli/cli-cmds.c (disassemble_command): New function. Implements
2451 disassemble command.
2452 (init_cli_cmds): Create disassemble command here instead.
2453
2454 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2455
2456 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2457
2458 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2459
2460 * regcache.h (regcache_cooked_read_using_offset_hack)
2461 (regcache_cooked_write_using_offset_hack): Delete declarations.
2462 (register_changed): Delete declaration.
2463 * regcache.c (regcache_cooked_read_using_offset_hack)
2464 (regcache_cooked_write_using_offset_hack): Delete functions.
2465 (cooked_xfer_using_offset_hack): Delete function.
2466 (register_changed): Delete function.
2467
2468 2002-11-07 Jim Blandy <jimb@redhat.com>
2469
2470 * macroscope.c: #include "complaints.h".
2471 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2472 but not in the macro table.
2473 * Makefile.in (macroscope.o): Record dependency.
2474
2475 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2476
2477 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2478
2479 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2480
2481 * regcache.c (deprecated_registers_fetched): Update.
2482 * regcache.h (deprecated_registers_fetched): Rename
2483 registers_fetched.
2484 * remote-vxsparc.c (vx_read_register): Update.
2485 * remote-vxmips.c (vx_read_register): Update.
2486 * remote-vx68.c (vx_read_register): Update.
2487 * irix5-nat.c (fetch_core_registers): Update.
2488 * mipsm3-nat.c (fetch_inferior_registers): Update.
2489 * sun3-nat.c (fetch_inferior_registers): Update.
2490 * symm-nat.c (fetch_inferior_registers): Update.
2491 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2492 (fetch_core_registers): Update.
2493 (fetch_kcore_registers): Update.
2494 * mips-nat.c (fetch_inferior_registers): Update.
2495 * corelow.c (get_core_registers): Update.
2496 * a68v-nat.c (fetch_inferior_registers): Update.
2497
2498 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2499
2500 Put in place the framework necessary for multiarching the hppa targets.
2501 * hppa-tdep.c (hppa_gdbarch_init): New function.
2502 (hppa_dump_tdep): New function.
2503 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2504 tdep structure dumper.
2505 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2506 until the multi-arching conversion has partially been completed.
2507
2508 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2509
2510 * valops.c (value_assign): Merge lval_register case into
2511 lval_reg_frame_relative. Use frame_register and
2512 regcache_cooked_write instead of get_saved_register and
2513 write_register_bytes. After flushing the register cache, try to
2514 re-select the selected frame.
2515
2516 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2517
2518 * regcache.h (deprecated_register_valid): Rename register_valid.
2519 * regcache.c: Update.
2520 * ia64-aix-nat.c: Update.
2521 * i386gnu-nat.c: Update.
2522 * alpha-nat.c: Update.
2523 * sparc-nat.c: Update.
2524 * lynx-nat.c: Update.
2525 * remote-mips.c: Update.
2526
2527 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2528
2529 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2530 to end of file, to be more consistent with the pratice followed
2531 by other targets.
2532
2533 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2534
2535 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2536 (print_float_info): Print registers in float_reggroup.
2537 (print_vector_info): Print registers in vector_reggroup.
2538 (default_print_registers_info): When all, print registers in
2539 all_reggroup. Otherwize, print registers in general_reggroup.
2540 (registers_info): Rewrite. Add support for register groups.
2541 Eliminate a goto.
2542
2543 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2544
2545 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2546 ages.
2547 (symtab_symbol_info): Remove eons old ifdeffed out code.
2548 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2549 command.
2550
2551 2002-11-06 Theodore A. Roth <troth@openavr.org>
2552
2553 * c-exp.y: Add missing semi-colons.
2554 * f-exp.y: Add missing semi-colons.
2555 * m2-exp.y: Add missing semi-colons.
2556 * p-exp.y: Add missing semi-colons.
2557 Add empty action to start rule to avoid a type clash error when
2558 building with bison >= 1.50.
2559
2560 2002-11-06 Jim Blandy <jimb@redhat.com>
2561
2562 * macrotab.h (struct macro_source_file): Doc fix.
2563
2564 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2565
2566 * varobj.c (child_exists, cplus_number_of_children): Change
2567 STREQ macro references to strcmp.
2568 (cplus_name_of_child): Change code to handle the fact that
2569 fields are not necessarily contiguous with regards to their
2570 access control. This is a fix for PR gdb/792.
2571
2572 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2573
2574 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2575 * gdbarch.h, gdbarch.c: Regnerate.
2576 * frame.h (frame_register): Declare.
2577 * frame.c (frame_register): New function.
2578 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2579 GET_SAVED_REGISTER, otherwize call
2580 generic_unwind_get_saved_register.
2581 (frame_register_read): Use frame_register instead of
2582 get_saved_register.
2583
2584 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2585
2586 From Jim Ingham <jingham@apple.com>:
2587 * event-top.c (gdb_disable_readline): New function.
2588 (_initialize_event_loop): Move comment.
2589
2590 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2591
2592 * event-loop.c (start_event_loop): Add comment.
2593 Update copyright.
2594
2595 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2596
2597 * infcmd.c (default_print_registers_info): Do not call
2598 PRINT_REGISTER_HOOK.
2599
2600 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2601
2602 * sparc-tdep.c (sparc_print_register_hook): Make static.
2603 (sparc_print_registers_info): New function.
2604 (sparc_do_registers_info): New function.
2605 (sparclet_print_registers_info): New function.
2606 (sparclet_do_registers_info): New function.
2607 (do_sparc_print_registers_info): New function.
2608 (sparc_print_registers): New static function, clone of infcmd.c's
2609 default_print_registers_info.
2610 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2611 (sparclet_do_registers_info): Declare.
2612 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2613 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2614 Re-define.
2615 (sparc_do_registers_info): Declare.
2616 (PRINT_REGISTER_HOOK): Delete macro.
2617 (sparc_print_register_hook): Delete declaration.
2618
2619 2002-11-05 David Carlton <carlton@math.stanford.edu>
2620
2621 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2622 functions.
2623 (lookup_symbol_aux_local): New function.
2624 (lookup_symbol_aux_symtabs): New function.
2625 (lookup_symbol_aux_psymtabs): New function.
2626
2627 2002-11-05 David Carlton <carlton@math.stanford.edu>
2628
2629 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2630 previous values of 'objfile' and 'block'.
2631
2632 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2633
2634 * values.c (value_change_enclosing_type): Set
2635 enclosing_type field correctly also for the case where
2636 more memory needs to be allocated.
2637
2638 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2639
2640 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2641 of puts_filtered.
2642
2643 * i387-tdep.c (i387_print_float_info): Replace calls to
2644 register_read and deprecated_read_register_gen with calls to
2645 frame_register_read, and make the necessary adjustments to the
2646 surrounding code.
2647
2648 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2649
2650 * gdbarch.sh (register_reggroup_p): Allow default value.
2651 * gdbarch.h, gdbarch.c: Regenerate.
2652
2653 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2654
2655 * regcache.h: Add coment indicating replacements for deprecated
2656 functions.
2657
2658 2002-11-02 Andrew Cagney <cagney@redhat.com>
2659
2660 * reggroups.h, reggroups.c: New files.
2661 * regcache.c: Include "reggroups.h".
2662 (enum regcache_dump_what): Add `regcache_dump_groups'.
2663 (regcache_dump): Contract size of the "Type" column. When
2664 specified, dump the register's groups.
2665 (maintenance_print_register_groups): New function.
2666 (_initialize_regcache): Add command `maint print register-groups'.
2667 * Makefile.in (COMMON_OBS): Add reggroups.o
2668 (SFILES): Add reggroups.c.
2669 (reggroups_h): Define.
2670 (regcache.o, gdbarch.o): Update dependencies.
2671 (reggroups.o): Specify dependencies.
2672 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2673 Add opaque declaration for `struct reggroup' in generated .h file.
2674 Include "reggroups.h" in generated .c file.
2675 gdbarch.h, gdbarch.c: Re-generate.
2676
2677 2002-11-02 Andrew Cagney <cagney@redhat.com>
2678
2679 * regcache.h (deprecated_read_register_gen): Rename
2680 read_register_gen.
2681 (deprecated_write_register_gen): Rename write_register_gen.
2682 * i387-tdep.c: Update.
2683 * x86-64-linux-nat.c: Update
2684 * wince.c: Update.
2685 * thread-db.c: Update.
2686 * win32-nat.c: Update.
2687 * mips-tdep.c: Update.
2688 * d10v-tdep.c: Update.
2689 * cris-tdep.c: Update.
2690 * remote-sim.c: Update.
2691 * remote-rdi.c: Update.
2692 * remote-rdp.c: Update.
2693 * frame.c: Update.
2694 * target.c: Update.
2695 * blockframe.c: Update.
2696 * x86-64-tdep.c: Update.
2697 * xstormy16-tdep.c: Update.
2698 * sh-tdep.c: Update.
2699 * s390-tdep.c: Update.
2700 * rs6000-tdep.c: Update.
2701 * sparc-tdep.c: Update.
2702 * i386-tdep.c: Update.
2703 * dwarf2cfi.c: Update.
2704 * regcache.c: Update.
2705
2706 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2707
2708 New interix-specific files:
2709 * config/i386/nm-interix.h: New file.
2710 * config/i386/interix.mh: New file.
2711 * config/i386/interix.mt: New file.
2712 * i386-interix-nat.c: New file.
2713 * i386-interix-tdep.c: New file.
2714
2715 2002-11-01 Andrew Cagney <cagney@redhat.com>
2716
2717 * frame.h (deprecated_generic_get_saved_register): Rename
2718 generic_get_saved_register.
2719 * blockframe.c (deprecated_generic_get_saved_register): Update.
2720 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2721 (xstormy16_frame_saved_register): Update.
2722 * sh-tdep.c (sh_gdbarch_init): Update.
2723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2724 * ia64-tdep.c (ia64_get_saved_register): Update.
2725 * cris-tdep.c (cris_gdbarch_init): Update.
2726 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2727 * arm-tdep.c (arm_gdbarch_init): Update.
2728
2729 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2730
2731 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2732
2733 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2734
2735 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2736 trampolines in sigaction.
2737
2738 2002-10-31 Andrew Cagney <cagney@redhat.com>
2739
2740 * h8300-tdep.c: Include "gdb_assert.h".
2741 (h8300_print_register): Add gdbarch, file and frame parameters.
2742 Use frame_read_unsigned_register to read the register's value.
2743 Use fprintf_filtered to display output.
2744 (h8300_print_registers_info): Replace h8300_do_registers_info.
2745 (h8300_gdbarch_init): Set print_registers_info.
2746
2747 2002-10-31 Andrew Cagney <cagney@redhat.com>
2748
2749 * frame.c (frame_read_unsigned_register): New function.
2750 (frame_read_signed_register): New function.
2751 * frame.h (frame_read_unsigned_register): Declare.
2752 (frame_read_signed_register): Declare.
2753
2754 2002-10-31 Andrew Cagney <cagney@redhat.com>
2755
2756 * h8500-tdep.c (h8500_print_registers_info): New static function,
2757 clone of infcmd.c's default_print_registers_info.
2758 (h8500_do_registers_info): New funtion.
2759 (h8500_print_register_hook): Rename print_register_hook, make
2760 static.
2761
2762 * config/h8500/tm-h8500.h: Update copyright.
2763 (DEPRECATED_DO_REGISTERS_INFO): Define.
2764 (h8500_do_registers_info: Declare.
2765 (PRINT_REGISTER_HOOK): Delete macro.
2766 (print_register_hook): Delete function.
2767
2768 2002-10-31 Andrew Cagney <cagney@redhat.com>
2769
2770 * z8k-tdep.c (z8k_print_register_hook): Make static.
2771 (z8k_print_registers_info): New static function, clone of
2772 infcmd.c's default_print_registers_info.
2773 (z8k_do_registers_info): New function. Wrap
2774 z8k_print_registers_info.
2775 * config/z8k/tm-z8k.h: Update copyright.
2776 (PRINT_REGISTER_HOOK): Delete macro.
2777 (z8k_print_register_hook): Delete declaration.
2778 (DEPRECATED_DO_REGISTERS_INFO): Define.
2779 (z8k_do_registers_info): Declare.
2780
2781 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2782
2783 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2784 as this is already provided by value.h, and was actually causing
2785 a compilation error because of a conflict in parameter type
2786 declaration due to a missing const keyword.
2787 (low_text_segment_addres): Fix a compilation warning.
2788
2789 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2790
2791 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2792 registers without a name.
2793 (mips_linux_cannot_store_register): Don't store registers without
2794 a name.
2795
2796 2002-10-28 David Carlton <carlton@math.stanford.edu>
2797
2798 * symtab.c (find_addr_symbol): Delete. (It was already commented
2799 out.)
2800 * symtab.h: Delete prototype for find_addr_symbol.
2801
2802 2002-10-26 Andrew Cagney <cagney@redhat.com>
2803
2804 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2805 DO_REGISTERS_INFO.
2806 gdbarch.h, gdbarch.c: Re-generate.
2807 * infcmd.c (default_print_registers_info): Update reference.
2808 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2809 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2810 * sh-tdep.c (sh_gdbarch_init): Ditto.
2811 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2812 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2813
2814 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2815
2816 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2817 cfi_init_extra_frame_info.
2818 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2819 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2820
2821 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2822 target where necessary. Add more comments and remove the ones
2823 that don't provide any useful information.
2824
2825 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2826 deprecated_read_register_dummy with
2827 frame_unwind_unsigned_register.
2828
2829 * i386-tdep.c (i386_extract_struct_value_address): Use
2830 regcache_raw_read_unsigned instead of
2831 regcache_cooked_read_unsigned since we know that the register
2832 we're reading isn't a pseudo register. Rename variable 'val' into
2833 the more descriptive 'addr'.
2834
2835 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2836 (x86_64_push_return_address): Add comment.
2837 (x86_64_pop_frame): Make static.
2838 (examine_argument): Clarify comment.
2839 (x86_64_skip_prologue): Make prolog_expact variable static.
2840
2841 * dwarf2cfi.c: Fix some formatting problems.
2842 (context_cpy, read_encoded_pointer): Clarify comments.
2843
2844 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2845 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2846 i386 target back into x86_64_gdbarch_init. Add some comments and
2847 remove meaningless ones.
2848
2849 2002-10-25 Andrew Cagney <cagney@redhat.com>
2850
2851 * complaints.h (struct deprecated_complaint): Rename `struct
2852 complaint'.
2853 * complaints.c (complain): Update.
2854 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2855 incorrect comment indicating that "symfile.h" was being included
2856 for the `struct complaint' definition.
2857 * remote-vx.c: Update.
2858 * objc-lang.c: Update.
2859 * xcoffread.c: Update.
2860 * hpread.c: Update.
2861 * mdebugread.c: Update.
2862 * stabsread.c: Update.
2863 * dwarf2read.c: Update.
2864 * dwarfread.c: Update.
2865 * elfread.c: Update.
2866 * coffread.c: Update.
2867 * stabsread.h: Update.
2868 * dbxread.c: Update.
2869 * buildsym.c: Update.
2870 * gdbtypes.c: Update.
2871 * macrotab.c: Update.
2872
2873 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2874
2875 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2876 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2877 (x86_64_init_abi): ...new function.
2878
2879 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2880 * i386v-nat.c: Include "i386-tdep.h".
2881
2882 2002-10-25 Andrew Cagney <cagney@redhat.com>
2883
2884 * gdbtypes.c (address_space_name_to_int): Update.
2885 (address_space_int_to_name): Update.
2886 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2887 multi-arch predicate.
2888 (address_class_name_to_type_flags): Ditto.
2889 * gdbarch.h, gdbarch.c: Re-generate.
2890
2891 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2892
2893 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2894
2895 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2896
2897 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2898
2899 * symtab.h (INIT_SAL): Delete macro.
2900 (init_sal): Export.
2901 * symtab.c (init_sal): New function.
2902
2903 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2904 to init_sal function call.
2905 (find_sal_from_funcs_and_line): Ditto.
2906 (all_sals_for_line): Ditto.
2907 * breakpoint.c (create_internal_breakpoint): Ditto.
2908 (create_fork_vfork_event_catchpoint): Ditto.
2909 (create_exec_event_catchpoint): Ditto.
2910 (parse_breakpoint_sals): Ditto.
2911 (watch_command_1): Ditto.
2912 (handle_gnu_4_16_catch_command): Ditto.
2913 (clear_command): Ditto.
2914 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2915 * infcmd.c (run_stack_dummy): Ditto.
2916 * infrun.c (process_event_stop_test): Ditto.
2917 (check_sigtramp2): Ditto.
2918 (step_over_function): Ditto.
2919 * linespec.c (decode_line_2): Ditto.
2920 (decode_line_1): Ditto.
2921 * source.c (line_info): Ditto.
2922 * symtab.c (find_pc_sect_line): Ditto.
2923
2924 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2925
2926 * dwarf2cfi.c (struct context)
2927 (struct context_reg): Moved to dwarf2cfi.h
2928 (context_alloc, frame_state_alloc, context_cpy):
2929 Made extern instead of static, removed prototypes.
2930 * dwarf2cfi.h (struct context)
2931 (struct context_reg): New, moved from dwarf2cfi.c
2932 (context_alloc, frame_state_alloc, context_cpy):
2933 New prototypes.
2934 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2935 Changed from static to extern.
2936 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2937 (LINUX_SIGCONTEXT_FP_OFFSET)
2938 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2939 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2940 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2941 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2942 set_gdbarch_*() calls now use x86-64 specific functions
2943 instead of DWARF2 CFI ones.
2944 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2945 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2946 (x86_64_init_extra_frame_info): New prototypes.
2947
2948 2002-10-23 David Carlton <carlton@math.stanford.edu>
2949
2950 * linespec.c: #include "parser-defs.h".
2951 Delete prototype for find_template_name_end.
2952 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2953
2954 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2955
2956 * NEWS: add recent mi fixes.
2957 * varobj.c (struct varobj): Add new "updated" flag.
2958 (new_variable): Default "updated" flag to 0.
2959 (varobj_set_value): Set "updated" flag to 1 if value
2960 changes.
2961 (varobj_update): Check varobj "updated" flag before
2962 comparing old and refreshed values. Fix for
2963 PR gdb/702.
2964
2965 2002-10-23 David Carlton <carlton@math.stanford.edu>
2966
2967 * parse.c (parse_exp_1): Use BLOCK_START.
2968 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2969 SYMBOL_BLOCK_VALUE.
2970 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2971
2972 2002-10-23 David Carlton <carlton@math.stanford.edu>
2973
2974 * symtab.c: Delete cplusplus_hint.
2975 Delete prototype for find_template_name_end.
2976
2977 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2978
2979 * symtab.h: Update comment.
2980
2981 2002-10-23 Michael Snyder <msnyder@redhat.com>
2982
2983 * printcmd.c (address_info): Restore quotes in output.
2984 * valops.c (value_of_local): Restore quotes in error message.
2985
2986 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2987
2988 * symtab.c (symbol_demangled_name): New function.
2989 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2990 turning most of it into a function.
2991 (symbol_demangled_name): Export.
2992
2993 2002-10-23 Michael Snyder <msnyder@redhat.com>
2994
2995 * valops.c (value_of_local): Restore quotes in error message.
2996
2997 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2998
2999 * symtab.c (symbol_init_language_specific): New function.
3000 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3001 turning most of it into a function.
3002 (symbol_init_language_specific): Export.
3003
3004 2002-10-23 David Carlton <carlton@math.stanford.edu>
3005
3006 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3007 (dwarf_attr_name): Ditto.
3008 (dwarf_type_encoding_name): Ditto.
3009 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3010 (process_die): Handle DW_TAG_namespace,
3011 DW_TAG_imported_declaration, DW_TAG_imported_module.
3012 (read_namespace): New function.
3013
3014 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3015
3016 * configure.in: Define NEW_PROC_API on Interix too.
3017 * configure: Regenerate.
3018
3019 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3020
3021 * configure: Regenerate using the proper version of autoconf.
3022
3023 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3024
3025 * findvar.c (read_var_value): Temporarily disable TLS code, until
3026 complete TLS support is added.
3027
3028 2002-10-21 Jim Blandy <jimb@redhat.com>
3029 Elena Zannoni <ezannoni@redhat.com>
3030
3031 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3032 for thread local storage locations.
3033 (struct symbol): Add objfile field.
3034 (SYMBOL_OBJFILE): Define.
3035 * dwarf2read.c (is_thread_local): New static variable.
3036 (new_symbol): If variable is in thread local fill in address class
3037 and objfile appropriately.
3038 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3039 stack operation.
3040 * printcmd.c (address_info): Print the information for thread
3041 local storage variable.
3042 * findvar.c (read_var_value): In case of thread local variable,
3043 defer to the target vector code to compute address.
3044
3045 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3046
3047 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3048 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3049
3050 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3051
3052 * symtab.h (address_class): Rename
3053 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3054 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3055 * printcmd.c (address_info): Ditto.
3056 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3057
3058 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3059
3060 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3061 DBREG_DRX macro to acces debug registers.
3062
3063 * Makefile.in (i386obsd-tdep.o): New target.
3064
3065 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3066 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3067
3068 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3069 * config/i386/obsd.mt: New file.
3070 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3071 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3072 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3073 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3074 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3075 * i386obsd-tdep.c: New file.
3076
3077 2002-10-19 Adam Fedor <fedor@gnu.org>
3078
3079 * objc-exp.y (name_not_typename): Fix invalid comment.
3080
3081 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3082
3083 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3084 to allocate partial syms and macro byte caches.
3085
3086 2002-10-18 David Carlton <carlton@math.stanford.edu>
3087
3088 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3089
3090 2002-10-18 Adam Fedor <fedor@gnu.org>
3091
3092 * stabsread.c (find_name_end): New function.
3093 (define_symbol): Use it.
3094
3095 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3096
3097 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3098 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3099 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3100 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3101
3102 2002-10-17 David Carlton <carlton@math.stanford.edu>
3103
3104 * symfile.h: Add opaque declaration for struct obstack.
3105 Declare obsavestring to take a const char *.
3106 * symfile.c (obsavestring): Make first argument a const char *.
3107
3108 2002-10-16 Adam Fedor <fedor@gnu.org>
3109
3110 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3111 names when matching breakpoints in current file.
3112
3113 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3114
3115 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3116 (read_tag_pointer_type): Add address class support.
3117 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3118 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3119 New methods.
3120 * gdbarch.h, gdbarch.c: Regenerate.
3121 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3122 (make_type_with_address_space, recursive_type_dump): Add address
3123 class support.
3124 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3125 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3126 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3127
3128 2002-10-16 Klee Dienes <kdienes@apple.com>
3129
3130 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3131 to get the last character of a char[] buffer, not
3132 name[sizeof(vptr_name)-1].
3133
3134 2002-10-14 Adam Fedor <fedor@gnu.org>
3135
3136 * symtab.h: New objc_specific struct.
3137 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3138 (SYMBOL_DEMANGLED_NAME): Likewise.
3139
3140 2002-10-14 Adam Fedor <fedor@gnu.org>
3141
3142 * symfile.c (init_filename_language_table): Add ObjC file extension.
3143
3144 2002-10-14 Adam Fedor <fedor@gnu.org>
3145
3146 * utils.c (puts_filtered_tabular): New function.
3147 (fprintf_symbol_filtered): Get ObjC demangled name.
3148 * defs.h (puts_filtered_tabular): Declared.
3149
3150 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3151
3152 * c-lang.h (c_type_print_varspec_prefix): Delete.
3153 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3154 ``need_post_space'' parameter. Adjust all callers.
3155
3156 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3159 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3160 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3161 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3162
3163 2002-10-13 Adam Fedor <fedor@gnu.org>
3164
3165 * source.c (print_source_lines): Update comments.
3166
3167 2002-10-13 Adam Fedor <fedor@gnu.org>
3168
3169 * valops.c (value_of_local): New function.
3170 (value_of_this): Use it.
3171 * value.h (value_of_local): Declared.
3172
3173 2002-10-13 Adam Fedor <fedor@gnu.org>
3174
3175 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3176 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3177
3178 2002-10-12 Adam Fedor <fedor@gnu.org>
3179
3180 * language.c (binop_result_type): Add language_objc to case.
3181 (integral_type): Likewise.
3182 (character_type): Likewise.
3183 (string_type): Likewise.
3184 (boolean_type): Likewise.
3185 (structured_type): Likewise.
3186 (binop_type_check): Likewise.
3187
3188 2002-10-11 Adam Fedor <fedor@gnu.org>
3189
3190 * printcmd.c (address_info): Print 'self' for ObjC.
3191
3192 2002-10-11 Adam Fedor <fedor@gnu.org>
3193
3194 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3195 OP_SELF.
3196
3197 2002-10-11 Adam Fedor <fedor@gnu.org>
3198
3199 * language.h (CAST_IS_CONVERSION): Add language_objc.
3200
3201 2002-10-11 Adam Fedor <fedor@gnu.org>
3202
3203 * defs.h (enum language): Add language_objc.
3204
3205 2002-10-11 Klee Dienes <kdienes@apple.com>
3206
3207 * corefile.c (read_memory_typed_address): New function.
3208 * gdbcore.h (read_memory_typed_address): Add prototype.
3209 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3210 to read a value destined for a CORE_ADDR, not read_memory_integer.
3211 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3212 (f77_get_dynamic_lowerbound): Ditto.
3213
3214 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3215
3216 * utils.c (string_to_core_addr): After turning string into
3217 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3218 which will do necessary sign-extension, etc.
3219
3220 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3221
3222 * c-exp.y (THIS): Delete token and grammar rule.
3223 (yylex): Don't return THIS.
3224 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3225 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3226 * demangle.c (cplus_markers): Update comment. Put '$'
3227 first. Remove CPLUS_MARKER.
3228 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3229 * jv-exp.y (THIS): Delete token and grammar rule.
3230 (yylex): Don't return THIS.
3231 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3232 * objc-exp.y (THIS): Delete token and grammar rule.
3233 (yylex): Don't return THIS.
3234 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3235 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3236 (read_member_functions): Likewise for opname.
3237 (read_tilde_fields): Use is_cplus_marker.
3238
3239 * defs.h (CPLUS_MARKER): Don't define.
3240 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3241 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3242 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3243 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3244 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3245
3246 * config/i386/tm-i386v4.h: Delete file.
3247 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3248 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3249 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3250 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3251 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3252 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3253 * config/i386/i386v4.mt (TM_FILE): Likewise.
3254 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3255
3256 2002-10-10 Marko Mlinar <markom@opencores.org>
3257
3258 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3259 accidentially not commited 2002-10-09
3260 * gdbarch.h, gdbarch.c: Re-generate.
3261
3262 2002-10-09 Marko Mlinar <markom@opencores.org>
3263
3264 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3265 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3266 * gdbarch.h, gdbarch.c: Re-generate.
3267
3268 2002-10-08 Petr Sorfa <petrs@caldera.com>
3269
3270 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3271
3272 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3273 so we can work on more than one compilation unit at a time. This
3274 helps prepare GDB to handle inter-CU die references.
3275 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3276 the code to be defined before struct comp_unit_head.
3277 (comp_unit_head): Added new members - offset, cu_head,
3278 begin_die, next and dwarf2_abbrevs.
3279 (dwarf2_abbrevs): Removed single static var; now member of
3280 struct comp_unit_head.
3281 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3282 members.
3283 (psymtab_to_symtab_1): Changed to work with the new
3284 struct comp_unit_head.
3285 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3286 constructs the dwarf2_abbrevs[] inside the cu_header.
3287 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3288 dwarf2_abbrev table to clean up.
3289 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3290 handling of dwarf2_abbrevs inside the cu_header.
3291 (read_partial_die): Now supports the call to the new
3292 dwarf2_lookup_abbrev.
3293 (read_full_die): Now supports the call to the new
3294 dwarf2_lookup_abbrev.
3295
3296 2002-10-06 Christopher Faylor <cgf@redhat.com>
3297
3298 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3299 insure that shell variables, such as "transformed_name" are propagated
3300 to later shell statements in rule.
3301
3302 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3303
3304 * config/i386/nm-i386sco.h: Add protection against
3305 multiple-inclusion. Include "i386/nm-i386v.h".
3306 (REGISTER_U_ADDR): Remove define.
3307 (i386_register_u_addr): Remove prototype.
3308
3309 2002-10-04 Michael Snyder <msnyder@redhat.com>
3310
3311 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3312 before treating it as a single-step event.
3313
3314 2002-10-03 Adam Fedor <fedor@gnu.org>
3315
3316 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3317 (objc_demangle): Remove assignment in if statements, Replace
3318 free with xfree.
3319 (add_msglist): Likewise.
3320 (end_msglist): Likewise.
3321 (complare_selectors): Likewise.
3322 (selectors_info): Likewise.
3323 (compare_classes): Likewise.
3324 (classes_info): Likewise.
3325 (print_object_command): Likewise.
3326 (find_objc_msgcall_submethod): Replace PTR with void *.
3327 * objc-lang.h: Remove check for __STDC__.
3328
3329 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3330
3331 * ui-out.h (ui_out_field_fmt_int): New prototype.
3332 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3333 of field width and alignment.
3334 * stack.c (print_frame_info_base): When printing frame level, use
3335 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3336 PR gdb/192
3337
3338 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3339
3340 * MAINTAINERS: Add self to Write After Approval list.
3341
3342 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3343
3344 * infcmd.c (interrupt_target_command_wrapper): Delete.
3345 (interrupt_target_command): Make non static.
3346 (nofp_registers_info): Make static.
3347 * stack.c (return_command_wrapper): Delete.
3348 (return_command): Make non static.
3349
3350 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3351
3352 * event-top.c (gdb_setup_readline): New function. Code moved from
3353 _initialize_event_loop().
3354 (_initialize_event_loop): Call gdb_setup_readline().
3355
3356 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3357
3358 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3359 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3360 * gdbarch.h, gdbarch.c: Re-generate.
3361
3362 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3363
3364 Fix PR gdb/778
3365 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3366 before recursing.
3367 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3368 of fill_in_vptr_fieldno.
3369
3370 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3371
3372 * inferior.h (registers_info, stepi_command, nexti_command,
3373 continue_command, interrupt_target_command): Export from infcmd.c.
3374 * frame.h (args_info, selected_frame_level_changed_hook,
3375 return_command): Export from stack.c.
3376 * v850ice.c (stepi_command, nexti_command, continue_command): use
3377 prototypes from inferior.h.
3378 * tracepoint.c (registers_info, args_info, locals_info): Use
3379 prototypes from frame.h and inferior.h.
3380 * Makefile.in (mi-main.o): Add dependency on frame.h.
3381
3382 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3383
3384 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3385 value in register 3 adjusted by ppc_gp0_regnum.
3386
3387 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3388
3389 2002-10-02 Marko Mlinar <markom@opencores.org>
3390
3391 * MAINTAINERS: Add myself to the Write After Approval list.
3392
3393 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3394
3395 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3396 of the section for the N64 ABI, fixed.
3397
3398 * config/mips/tm-irix6.h: Include solib.h.
3399
3400 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3401
3402 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3403 GNU operators.
3404
3405 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3406
3407 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3408 and that "mi0" syntax has been removed.
3409
3410 2002-09-30 David Carlton <carlton@math.stanford.edu>
3411
3412 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3413 * ppc-sysv-tdep.c: #include "gdb_string.h".
3414 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3415 pacify GCC.
3416
3417 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3418
3419 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3420 "vrsave"'s register number.
3421
3422 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3423
3424 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3425 use frame_unwind_signed_register to obtain the PC.
3426 (mips_frame_chain): Handle a generic dummy frame.
3427 (mips_init_extra_frame_info): When a generic dummy frame, don't
3428 re-compute the frame base.
3429 (mips_pop_frame): Handle generic dummy frames.
3430 (mips_gdbarch_init): When generic dummy frames, set
3431 use_generic_dummy_frames, push_dummy_frame to
3432 generic_push_dummy_frame, pc_in_call_dummy to
3433 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3434 generic_save_dummy_frame_tos.
3435
3436 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3437
3438 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3439 against TOP when TOP was explictly set.
3440 (generic_push_dummy_frame): Set TOP to zero.
3441
3442 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3443
3444 * event-loop.c (start_event_loop): Rename variable 'result' to
3445 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3446
3447 2002-09-30 Keith Seitz <keiths@redhat.com>
3448
3449 * gdb-events.sh (selected_thread_changed): New event.
3450 * gdb-events.c: Regenerated.
3451 * gdb-events.h: Regenerated.
3452
3453 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3454
3455 * MAINTAINERS: Add self to Write After Approval list.
3456
3457 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3458
3459 * disasm.c: New file.
3460 * disasm.h: New file.
3461 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3462 (compare_lines): Ditto.
3463 (dump_insns): Ditto.
3464 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3465 argument.
3466 (do_assembly_only): Ditto.
3467 (do_disassembly): Renamed to gdb_disassembly and moved to
3468 disasm.c. Sdded uiout argument.
3469 * Makefile.in: Add new files. Reorder SFILES list. Update
3470 dependencies. Include libgdb.a later in the insight executable.
3471
3472 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3473
3474 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3475 bfd/elf64-alpha-fbsd.c.
3476
3477 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3478
3479 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3480 i386gnu-tdep.c.
3481
3482 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3483
3484 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3485 __FUNCTION__.
3486 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3487 function name.
3488 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3489 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3490 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3491 (S_msg_sig_post_reply): Ditto.
3492
3493 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3494
3495 * sh-tdep.c (sh_use_struct_convention): Use definition according
3496 to ABI.
3497 (sh_push_arguments): Store in register with correct endianess.
3498 (sh_default_store_return_value): Ditto.
3499 (sh_gdbarch_init): Set sizeof long double to 8.
3500
3501 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3502
3503 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3504 Fix some whitespace problems.
3505
3506 2002-09-27 David Carlton <carlton@math.stanford.edu>
3507
3508 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3509 (mcore-tdep.o): Ditto.
3510 (ns32k-tdep.o): Ditto.
3511 (ns32knbsd-tdep.o): Ditto.
3512 (sh3-rom.o): Ditto.
3513 (vax-tdep.o): Ditto.
3514 * cris-tdep.c: #include "gdb_string.h"
3515 * mcore-tdep.c: Ditto.
3516 * ns32k-tdep.c: Ditto.
3517 * ns32knbsd-tdep.c: Ditto.
3518 * sh3-rom.c: Ditto.
3519 * vax-tdep.c: Ditto.
3520
3521 2002-09-27 David Carlton <carlton@math.stanford.edu>
3522
3523 * config/djgpp/fnchange.lst: Add entries for
3524 gdb/testsuite/gdb.c++/m-static files.
3525
3526 2002-09-27 Jim Wilson <wilson@redhat.com>
3527
3528 * MAINTAINERS: Add myself to the Write After Approval list.
3529
3530 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3531
3532 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3533
3534
3535 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3536
3537 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3538 frame.
3539
3540 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3541
3542 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3543 (rs6000_struct_return_address): Delete variable.
3544 (rs6000_store_struct_return): Update.
3545 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3546 deprecated_extract_struct_value_address.
3547 (rs6000_frame_align): New function.
3548 (rs6000_gdbarch_init): Set frame_align.
3549
3550 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3551
3552 From Grace Sainsbury <graces@redhat.com>:
3553 * Makefile.in (gdbtk-main.o): New target.
3554 (gdb.o): New target.
3555 (main_h): Define.
3556 (main.o): Update dependencies.
3557 (gdb$(EXEEXT)): Add gdb.o.
3558 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3559 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3560 (SUBDIR_GDBTK_CLEAN): Set.
3561 (install-gdbtk): Install the insight binary.
3562 (uninstall-gdbtk): New target.
3563 (all-gdbtk, clean-gdbtk): New rule.
3564 * top.c (use_windows): Default to zero.
3565 * main.c: Include "main.h".
3566 (main): Delete.
3567 (struct captured_main_args): Delete.
3568 (gdb_main): New function.
3569 * main.h: New file.
3570 * gdb.c: New File.
3571
3572 2002-09-25 Andrew Cagney <cagney@redhat.com>
3573
3574 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3575 (frame_map_regnum_to_name): New function.
3576 (frame_map_name_to_regnum): New function.
3577 * frame.h (frame_map_name_to_regnum): Declare.
3578 (frame_map_regnum_to_name): Declare.
3579 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3580 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3581 * parse.c: Do not include "builtin-regs.h".
3582 (target_map_name_to_register): Delete function.
3583 (write_dollar_variable): Use frame_map_name_to_regnum.
3584 * parser-defs.h (target_map_name_to_register): Delete declaration.
3585 * expprint.c: Include "frame.h".
3586 (print_subexp): Use frame_map_regnum_to_name.
3587 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3588 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3589
3590 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3591
3592 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3593 wasn't saved, and the next innermost frame is a dummy, return the
3594 dummy frame's link register.
3595
3596 2002-09-24 Jim Blandy <jimb@redhat.com>
3597
3598 Fix from Paul Breed:
3599 * main.c (captured_main): Add a `break' after the case for 'b'.
3600
3601 2002-09-24 Keith Seitz <keiths@redhat.com>
3602
3603 * varobj.c (c_type_of_child): Use get_target_type instead
3604 of TYPE_TARGET_TYPE.
3605
3606 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3607
3608 * source.c (get_current_or_default_source_symtab_and_line): Remove
3609 function.
3610 (set_default_source_symtab_and_line): New function. Attempts to
3611 determine a source file to list lines from if one is not currently
3612 defined.
3613 (get_current_source_symtab_and_line): Initialize sal.pc and
3614 sal.end fields.
3615 (set_current_source_symtab_and_line): Mark argument as const.
3616 * source.h: Update declarations and comments.
3617 * linespec.c (decode_line_1): Replace call to removed routine above.
3618 * stack.c (print_frame_info_base): Ditto.
3619 * cli/cli-cmds.c (edit_command): Ditto.
3620 (list_command): Ditto.
3621
3622 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3623
3624 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3625 sal.pc and sal.end fields.
3626 (get_current_or_default_source_symtab_and_line): Ditto.
3627 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3628 so we do not cause a new source symtab to be searched for (reverting an
3629 unintentional change from the 2002-09-20 patch).
3630 * scm-lang.c (scm_unpac): Ditto.
3631
3632 2002-09-21 Andrew Cagney <cagney@redhat.com>
3633
3634 * complaints.c (symfile_explanations): Remove new-line from
3635 ``isolated_message''.
3636 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3637 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3638
3639 2002-09-20 Nick Clifton <nickc@redhat.com>
3640
3641 * NEWS: Announce that V850EA ISA is no longer supported.
3642 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3643
3644 2002-09-20 David Carlton <carlton@math.stanford.edu>
3645
3646 * Makefile.in (c-lang.o): Correct dependencies.
3647 (utils.o): Gather dependencies.
3648 (charset.o): Move.
3649 * c-lang.c: #include "gdb_string.h"
3650
3651 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3652
3653 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3654 * cli/cli-cmds.c (list_command): New function. Implements the new
3655 cli edit command.
3656 (_init_cli_cmds): Add new command definition.
3657 * gdb.1: Document edit command.
3658 * doc/gdb.texinfo: Document edit command.
3659
3660 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3661
3662 * source.c: Make global variables current_source_symtab and
3663 current_source_line static.
3664 (list_command): Moved to cli/cli-cmds.c.
3665 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3666 (get_first_line_listed): New accessor function.
3667 (get_lines_to_list): New accessor function.
3668 (get_current_source_symtab_and_line): New function. Retrieves the
3669 position in the source code that we consider current.
3670 (get_current_or_default_source_symtab_and_line): New function.
3671 Like the above but attempts to determine a default position if one
3672 is not currently defined.
3673 (set_current_source_symtab_and_line): New function. Sets the source
3674 code position considered current and returns the previously set one.
3675 (clear_current_source_symtab_and_line): Reset stored information about
3676 a current source line.
3677 (_initialize_source): Remove registration for the "list" command and
3678 its alias.
3679 * source.h: Add declarations for the new functions above.
3680 * symtab.h: Remove declarations for the global variables mentioned
3681 above.
3682 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3683 obtain current source line.
3684 * linespec.c (decode_line_1): Ditto.
3685 * macroscope.c (default_macro_scope): Ditto.
3686 * scm-lang.c (scm_unpac): Ditto.
3687 * stack.c (print_frame_info_base): Ditto.
3688 * symfile.c (clear_symtab_users): Ditto.
3689 * symtab.c (decode_line_spec): Ditto.
3690 * cli/cli-cmds.c (list_command): Moved here from source.c.
3691 (ambiguous_line_spec): Moved here from source.c.
3692 (_init_cli_cmds): Add definition for "list" and its alias.
3693 * Makefile.in: Update dependencies.
3694
3695 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3696
3697 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3698 with what gcc thinks is correct.
3699
3700 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3701
3702 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3703 multiple register push instruction.
3704
3705 2002-09-19 Jim Blandy <jimb@redhat.com>
3706
3707 Add support for distinct host and target character sets.
3708 * charset.c, charset.h: New files.
3709 * c-exp.y: #include "charset.h".
3710 (yylex): Convert character and string literals to the target
3711 character set, before returning them as the semantic value of the
3712 token.
3713 * c-lang.c: #include "charset.h".
3714 (c_emit_char): Use charset-specific methods to recognize
3715 characters with backslash escape forms, to decide which characters
3716 to print literally and which to print using numeric escape
3717 sequences, and to convert target characters to host characters
3718 before printing.
3719 * utils.c: #include "charset.h".
3720 (no_control_char_error): New function.
3721 (parse_escape): Use charset-specific methods to recognize
3722 backslash escapes, parse `control character' notation, and convert
3723 characters from the host character set to the target character set.
3724 * configure.in: Set the default host character set.
3725 Check where to find iconv, and what its argument types might be.
3726 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3727 * Makefile.in (SFILES): List charset.c.
3728 (COMMON_OBS): List charset.o.
3729 (charset.o): New rule.
3730 (charset_h): New header dependency variable.
3731 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3732 (LIBICONV): New variable, set by configure.
3733 (CLIBS): Include $(LIBICONV) here.
3734 * aclocal.m4, config.in, configure: Regenerated.
3735
3736 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3737
3738 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3739 bison 1.35 warning.
3740
3741 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3742
3743 * gdb_mbuild.sh: New file.
3744
3745 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3746
3747 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3748
3749 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3750
3751 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3752 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3753 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3754 valops.c, value.h: Revert previous change.
3755
3756 2002-09-18 Michael Snyder <msnyder@redhat.com>
3757
3758 Preliminary support for Objective-C:
3759 * defs.h (language_objc): New enum value.
3760 (puts_filtered_tabular): Declaration only, exported from utils.c.
3761 (skip_quoted): Delete, declared in completer.h.
3762 * c-exp.y: Include completer.h.
3763 * p-exp.y: Ditto.
3764 * jv-exp.y: Ditto.
3765 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3766 New operator enum values.
3767 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3768 * language.c (binop_result_type): Handle language_objc case.
3769 (integral_type, character_type, string_type, boolean_type,
3770 structured_type, binop_type_check): Ditto.
3771 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3772 (struct objc_specific): Add to general_symbol_info.
3773 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3774 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3775 * parser-defs.h (struct objc_class_str): New struct type.
3776 (start_msglist, end_msglist, add_msglist): Declaration only,
3777 exported from objc-lang.c.
3778 * value.h (value_of_local, value_nsstring,
3779 call_function_by_hand_expecting_type): Exported from valops.c.
3780 * valops.c (find_function_addr): Export.
3781 (call_function_by_hand_expecting_type): New function.
3782 (value_of_local): New function.
3783 * symfile.c (init_filename_language_table): Add ".m" extension
3784 for Objective-C.
3785 * utils.c (puts_filtered_tabular): New function.
3786 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3787 (set/show demangle): Extend help-string to refer to ObjC.
3788 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3789 * stabsread.c (symbol_reference_defined): Objective-C symbols
3790 may contain colons: make allowances when scanning stabs strings
3791 for colons.
3792 (objc_find_colon): New function.
3793 * printcmd.c (address_info): If language == objc then print
3794 "self" instead of "this".
3795 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3796 OP_NSSTRING, and OP_SELF.
3797 (prefixify_subexp): Ditto.
3798 * source.c (print_source_lines): Mention objc in comment.
3799 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3800 method names.
3801
3802 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3803
3804 * complaints.h: Update copyright.
3805 (struct complaints): Declare.
3806 (struct complaint): Make `message' constant.
3807 (internal_complaint): Declare.
3808 (complaint): Declare.
3809 (complaint_root): Delete declaration.
3810 (symfile_complaints): Delete declaration.
3811 (struct complaints): Add opaque declaration.
3812 (clear_complaints): Add a complaints parameter.
3813 * complaints.c: Update copyright.
3814 (enum complaint_series): Define.
3815 (complaint_root): Delete.
3816 (struct complaints): Define.
3817 (complaint_sentinel, symfile_complaint_book): New variables.
3818 (symfile_explanations, symfile_complaints): New variables.
3819 New variables.
3820 (get_complaints): New function.
3821 (vcomplaint): New function.
3822 (complaint): New function.
3823 (internal_complaint): New function.
3824 (complain): Call vcomplain with symfile_complaint.
3825 (clear_complaints): Rewrite.
3826 (_initialize_complaints): Use add_setshow_command.
3827 * Makefile.in (complaints.o): Update dependencies.
3828 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3829 to call to clear_complaints.
3830 (new_symfile_objfile, reread_symbols): Ditto.
3831 (oldsyms_complaint): Delete.
3832 (empty_symtab_complaint, unknown_option_complaint): Delete.
3833 (free_named_symtabs): Use complaint instead of complain.
3834
3835 2002-09-18 Michael Snyder <msnyder@redhat.com>
3836
3837 Contributed by Apple Computer, Inc. Merged with current sources
3838 by Adam Fedor <fedor@doc.com> [cagney].
3839
3840 * objc-lang.c: First clean-up round: comments, indentation.
3841 * objc-lang.h: Ditto.
3842 * objc-lang.y: Ditto.
3843
3844 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3845
3846 * maint.c (maintenance_internal_error): Print the parameter as the
3847 error message.
3848 (maintenance_internal_warning): New function.
3849 (_initialize_maint_cmds): Add command `maint internal-warning'.
3850
3851 * defs.h (internal_warning, internal_vwarning): Declare.
3852 * utils.c (struct internal_problem): Define.
3853 (internal_vproblem): New function.
3854 (internal_warning): New function.
3855 (internal_vwarning): New function.
3856 (internal_warning_problem, internal_error_problem): New variables.
3857 (internal_verror): Just call internal_vproblem.
3858
3859 2002-09-18 Michael Snyder <msnyder@redhat.com>
3860
3861 * objc-lang.c: New file, support for Objective-C.
3862 Preliminary check-in, not yet integrated into gdb.
3863 * objc-lang.h: New file.
3864 * objc-exp.y: New file.
3865
3866 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3867
3868 * infrun.c (signal_stop_update): Convert definition to ISO C.
3869 (signal_print_update): Ditto.
3870 (signal_pass_update): Ditto.
3871 * inflow.c (terminal_save_ours): Ditto.
3872
3873 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3874 comments.
3875
3876 * config/djgpp/fnchange.lst: Handle name clashes between
3877 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3878 bfd/coff-tic80.c.
3879
3880 * i386-linux-tdep.h: Fix tipo.
3881
3882 2002-09-18 Adam Fedor <fedor@gnu.org>
3883
3884 * MAINTAINERS: Add myself to the Write After Approval list.
3885
3886 2002-09-18 Jim Blandy <jimb@redhat.com>
3887
3888 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3889 texthigh and textlow to reader-specific structs caused
3890 objfile_relocate to miss them. This is fixable, but the work that
3891 the change was supposed to prepare GDB for never got done anyway.
3892
3893 2002-09-18 David Carlton <carlton@math.stanford.edu>
3894
3895 * MAINTAINERS: Alphabetize Write After Approval list.
3896
3897 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3898
3899 Fix PR gdb/709
3900 * values.c (value_static_field): Call read_var_value.
3901
3902 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3903
3904 * valops.c (hand_function_call): Align the initial stack pointer
3905 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3906 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3907 return value.
3908 * mips-tdep.c (mips_frame_align): New function.
3909 (mips_gdbarch_init): Set frame_align.
3910 * gdbarch.sh (FRAME_ALIGN): New method.
3911 * gdbarch.h, gdbarch.c: Re-generate.
3912
3913 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3914
3915 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3916 registers.
3917
3918 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3919
3920 * NEWS: Mention that MIPS $fp behavior changed.
3921 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3922 reference to FP_REGNUM.
3923 (mipsnbsd_cannot_store_register): Ditto.
3924 * mips-linux-nat.c: Update copyright.
3925 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3926 (mips_linux_cannot_store_register): Ditto.
3927 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3928 * config/mips/tm-mips.h: Update copyright.
3929 (FP_REGNUM): Delete macro.
3930 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3931 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3932 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3933 (mips_r3041_reg_names, mips_r3051_reg_names)
3934 (mips_r3081_reg_names): Replace "fp" with "".
3935 Fix PR gdb/480.
3936
3937 2002-09-17 Theodore A. Roth <troth@verinet.com>
3938
3939 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3940 generic_read_register_dummy() (PR gdb/703).
3941 (avr_push_return_address): #if 0 out unused vars.
3942 (avr_gdbarch_init): Enable use of avr_push_return_address().
3943
3944 2002-09-17 Michael Snyder <msnyder@redhat.com>
3945
3946 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3947 RTE will take care of it.
3948
3949 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3950
3951 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3952 invalid, return SP_REGNUM.
3953
3954 2002-09-17 Michael Snyder <msnyder@redhat.com>
3955
3956 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3957 point registers without sign extension.
3958
3959 2002-09-17 Andrew Cagney <cagney@redhat.com>
3960
3961 * blockframe.c (deprecated_read_register_dummy): Rename
3962 generic_read_register_dummy.
3963 * frame.c (frame_unwind_signed_register): New function.
3964 (frame_unwind_unsigned_register): New function.
3965 * frame.h (frame_unwind_signed_register): Declare.
3966 (frame_unwind_unsigned_register): Declare.
3967 (deprecated_read_register_dummy): Rename
3968 generic_read_register_dummy.
3969
3970 * h8300-tdep.c (h8300_frame_chain): Update.
3971 (h8300_frame_saved_pc): Update.
3972 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3973 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3974 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3975 (s390_frame_chain): Update.
3976 * v850-tdep.c (v850_find_callers_reg): Update.
3977 (v850_frame_saved_pc): Update.
3978 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3979 (m32r_find_callers_reg): Update.
3980 (m32r_frame_saved_pc): Update.
3981 * sh-tdep.c (sh_find_callers_reg): Update.
3982 (sh64_get_saved_pr): Update.
3983 (sh_init_extra_frame_info): Update.
3984 (sh_init_extra_frame_info): Update.
3985 (sh64_init_extra_frame_info): Update.
3986 (sh64_init_extra_frame_info): Update.
3987 * mcore-tdep.c (mcore_find_callers_reg): Update.
3988 (mcore_frame_saved_pc): Update.
3989 (mcore_init_extra_frame_info): Update.
3990 * i386-tdep.c (i386_frame_saved_pc): Update.
3991 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3992 (ia64_init_extra_frame_info): Update.
3993 (ia64_init_extra_frame_info): Update.
3994 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3995 * cris-tdep.c (cris_init_extra_frame_info): Update.
3996 * avr-tdep.c (avr_frame_chain): Update.
3997 (avr_init_extra_frame_info): Update.
3998 (avr_frame_saved_pc): Update.
3999 * arm-tdep.c (arm_find_callers_reg): Update.
4000 (arm_init_extra_frame_info): Update.
4001 (arm_frame_saved_pc): Update.
4002
4003 2002-09-17 Tom Tromey <tromey@redhat.com>
4004
4005 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4006 is "'".
4007
4008 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4009
4010 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4011 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4012 NEXT_PROLOGUE_INSN.
4013 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4014 NEXT_PROLOGUE_INSN.
4015
4016 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4017
4018 * osfsolib.c: Remove file, replaced by solib-osf.c.
4019 * Makefile.in: Remove compilation rules for osfsolib.c.
4020
4021 2002-09-16 David Carlton <carlton@math.stanford.edu>
4022
4023 * cp-valprint.c (cp_print_class_method): Correct args to
4024 check_stub_method_group.
4025
4026 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4027
4028 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4029 `set architecture'. Unify naming convention of functions.
4030 (h8300_skip_prologue): Improve prologue analysis.
4031 (h8300_push_arguments): Rewritten to more closely match GCC's
4032 bizarre argument-passing behavior, along with the comment describing
4033 said behavior.
4034 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4035 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4036 sim, remote-e7000.c, remote-hms.c and remote.c
4037
4038 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4039
4040 * i386-tdep.c (gdb_print_insn_i386): Removed.
4041 (i386_print_insn): New function.
4042 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4043 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4044 tm_print_insn_info.
4045
4046 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4047
4048 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4049 zero.
4050
4051 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4052
4053 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4054 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4055 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4056
4057 2002-09-13 Christopher Faylor <cgf@redhat.com>
4058
4059 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4060
4061 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4062
4063 * gdbtypes.c (check_stub_method): Make static.
4064 (check_stub_method_group): New function.
4065 * gdbtypes.h: Update prototypes.
4066 * cp-support.c: New file.
4067 * cp-support.h: New file.
4068
4069 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4070 (update_method_name_from_physname): New function.
4071 (read_member_functions): Correct method names for operators
4072 and v3 constructors/destructors. Separate v2 constructors and
4073 destructors.
4074 * Makefile.in (stabsread.o): Update dependencies.
4075 (SFILES): Add cp-support.c.
4076 (COMMON_OBS): Add cp-support.o.
4077 (cp_support_h, cp-support.o): Add.
4078
4079 * cp-valprint.c (cp_print_class_method): Call
4080 check_stub_method_group instead of check_stub_method. Remove
4081 extraneous QUITs.
4082 * p-valprint.c (pascal_object_print_class_method): Likewise.
4083 * valops.c (search_struct_method): Likewise.
4084 (find_method_list, value_struct_elt_for_reference): Likewise.
4085
4086 2002-09-13 Andrew Cagney <cagney@redhat.com>
4087
4088 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4089 * gdbarch.h, gdbarch.c: Regenerate.
4090
4091 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4092
4093 * frame.c (find_saved_register): Delete function.
4094 * frame.h (find_saved_register): Delete declaration.
4095 Fix PR gdb/631.
4096
4097 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4098
4099 * mips-tdep.c (read_next_frame_reg): Re-hack using
4100 frame_register_unwind.
4101
4102 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4103
4104 * mips-tdep.c (mips_get_saved_register): Re-hack using
4105 frame_register_unwind.
4106
4107 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4108
4109 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4110 vector. Will be useful for Interix.
4111 * gdbarch.h, gdbarch.c: Regenerate.
4112
4113 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4114 name of the malloc function by NAME_OF_MALLOC.
4115
4116 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4117
4118 * value.h (find_function_in_inferior): Add const keyword to
4119 one of the parameters. Allows us to invoke this function with
4120 a const char *.
4121 * valops.c (find_function_in_inferior): Likewise.
4122
4123 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4124
4125 * exec.c (xfer_memory): Fix compilation warning with old versions
4126 of GCC.
4127 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4128
4129 2002-09-12 David Carlton <carlton@math.stanford.edu>
4130
4131 * symtab.h: Run through gdb_indent.h.
4132 Add 2002 to Copyright year list.
4133
4134 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4135
4136 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4137 mach constants.
4138 * MAINTAINERS: Add myself to write after approval list.
4139
4140 2002-09-11 J. Brobecker <brobecker@gnat.com>
4141
4142 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4143
4144 2002-09-11 J. Brobecker <brobecker@gnat.com>
4145
4146 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4147 Interix.
4148
4149 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4150
4151 * procfs.c (do_detach): Clear current signal, not just fault.
4152 Corrects problem with breakpoint trap signal leaking to detached
4153 process on Tru64.
4154
4155 2002-09-10 Michael Snyder <msnyder@redhat.com>
4156
4157 * buildsym.c (finish_block): Protect against null pointer.
4158
4159 2002-09-10 Andrew Cagney <cagney@redhat.com>
4160
4161 * infcmd.c (default_print_registers_info): Send all output to
4162 ``file'' instead of ``gdb_stdout''.
4163
4164 2002-09-10 Michael Snyder <msnyder@redhat.com>
4165
4166 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4167 LONGEST, and use signed register read (addresses are sign-
4168 extended for mips).
4169
4170 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4171
4172 * event-loop.c (gdb_do_one_event): Make public.
4173 * event-loop.h (gdb_do_one_event): Declare.
4174
4175 2002-09-10 Jeff Law <law@redhat.com>
4176
4177 * infttrace.c (child_resume): Simplify and rework to avoid
4178 TT_PROC_CONTINUE.
4179
4180 2002-09-09 Fred Fish <fnf@intrinsity.com>
4181
4182 * printcmd.c (print_scalar_formatted): "len" is the number of
4183 target bytes, NOT the number of target bits.
4184
4185 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4186
4187 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4188 * top.c (init_main): Set rl_terminal_name.
4189
4190 2002-09-08 Aidan Skinner <aidan@velvet.net>
4191
4192 * ada-lang.c (ada_array_bound, ada_type_match,
4193 _initialize_ada_language): Fix K&R definitions.
4194 * ada-tasks.c (get_current_task): Fix K&R definitions.
4195 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4196
4197 2002-09-07 Christopher Faylor <cgf@redhat.com>
4198
4199 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4200 Add XP.
4201
4202 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4203
4204 * i386-tdep.c (i386_register_virtual_type,
4205 i386_register_convertible, i386_register_convert_to_virtual,
4206 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4207 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4208 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4209 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4210 Don't set push_arguments twice.
4211
4212 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4213 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4214 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4215 sigtramp_end to NULL.
4216 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4217 defines.
4218 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4219
4220 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4221 whitespace.
4222
4223 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4224 * gdbarch.h, gdbarch.c: Re-generate.
4225 * blockframe.c (find_pc_sect_partial_function): Convert to use
4226 SIGTRAMP_START_P predicate.
4227
4228 2002-09-05 Michael Snyder <msnyder@redhat.com>
4229
4230 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4231 generic_dummy_frame method and old method. Also distinguish
4232 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4233 (arm_extract_return_value): Use new regcache method.
4234
4235 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4236 adjustment that doesn't conform to the ABI.
4237 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4238 saved regcache, not from current regcache.
4239
4240 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4241
4242 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4243 * README: Update.
4244
4245 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4246
4247 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4248 if arm_apcs_32 is false.
4249
4250 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4251
4252 GDB 5.3 branch created.
4253
4254 2002-09-03 Theodore A. Roth <troth@verinet.com>
4255
4256 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4257 generic_unwind_get_saved_register.
4258
4259 2002-09-03 David Carlton <carlton@math.stanford.edu>
4260
4261 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4262 argument (PR gdb/653). Update call to smash_to_method_type.
4263 (read_structure_scope): Update call to dwarf2_add_member_fn.
4264
4265 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4266
4267 * x86-64-linux-tdep.c: Include gdb_string.h
4268 * x86-64-linux-nat.c: Ditto.
4269
4270 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4271
4272 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4273 when YYDEBUG is set to 1.
4274 * c-exp.y: Likewise.
4275 * f-exp.y: Likewise.
4276 * jv-exp.y: Likewise.
4277 * m2-exp.y: Likewise.
4278 * p-exp.y: Likewise.
4279
4280 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4281
4282 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4283 dependency list.
4284 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4285 solib_svr4_fetch_link_map_offsets to
4286 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4287 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4288 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4289 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4290 solib-svr4.o, and solib-legacy.o.
4291 * config/i386/tm-nbsd.h: Include solib.h.
4292
4293 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4294
4295 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4296 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4297 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4298 comment noting that this needs its own target configuration.
4299 * config/i386/nbsd.mt: New file.
4300 * config/i386/nbsdaout.mt: Remove.
4301 * config/i386/nbsdelf.mt: Ditto.
4302 * config/i386/tm-nbsdaout.h: Ditto.
4303
4304 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4305
4306 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4307 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4308 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4309 tdep->sigtramp_end.
4310 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4311 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4312 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4313
4314 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4315
4316 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4317 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4318 * i386-tdep.h (i386bsd_init_abi): New prototype.
4319 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4320 function declaration.
4321 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4322 for NetBSD-a.out or NetBSD-ELF.
4323 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4324 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4325 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4326 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4327 and nbsd-tdep.h.
4328 (i386nbsd_pc_in_sigtramp): New function.
4329 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4330 i386nbsd_pc_in_sigtramp.
4331 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4332 and i386nbsdelf_init_abi OS ABI handlers.
4333 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4334 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4335
4336 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4337
4338 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4339 registers if the target really has them.
4340
4341 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4342
4343 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4344 than nbsd-tdep.h.
4345
4346 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4347
4348 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4349 list.
4350 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4351 (alphanbsd_skip_sigtramp_frame): New functions.
4352 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4353 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4354 to alphanbsd_sigcontext_addr.
4355
4356 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4357
4358 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4359 list.
4360 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4361 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4362 nbsd_pc_in_sigtramp.
4363 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4364 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4365 * nbsd-tdep.c: Include gdb_string.h.
4366 (nbsd_pc_in_sigtramp): New function.
4367 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4368 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4369 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4370 ppcnbsd_pc_in_sigtramp.
4371 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4372 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4373 shnbsd_pc_in_sigtramp.
4374 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4375 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4376 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4377
4378 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4379
4380 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4381 watchpoints to NULL.
4382 (insert_breakpoints): set val field of watchpoints if NULL.
4383
4384
4385 2002-08-29 Jim Blandy <jimb@redhat.com>
4386
4387 * symtab.c (lookup_symbol_aux): In the cases where we find a
4388 minimal symbol of an appropriate name and use its address to
4389 select a symtab to read and search, use `name' (as passed to us)
4390 as the demangled name when searching the symtab's global and
4391 static blocks, not the minsym's name.
4392
4393 2002-08-29 Keith Seitz <keiths@redhat.com>
4394
4395 * stack.c (print_frame_info_base): Always set current_source_symtab
4396 and current_source_line.
4397
4398 2002-08-29 Donn Terry <donnte@microsoft.com>
4399
4400 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4401
4402 2002-08-28 Keith Seitz <keiths@redhat.com>
4403
4404 * stack.c (select_frame): Add FIXME concerning selected-frame
4405 events.
4406 (select_frame_command): Send selected-frame-level-changed
4407 event notification, but only if the level actually changed.
4408 (up_silently_base): Add selected-frame-level-changed event
4409 notification.
4410 (down_silently_base): Likewise.
4411
4412 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4413
4414 * Makefile.in: Update dependencies for all gdb/*.c files.
4415
4416 2002-08-27 Tom Tromey <tromey@redhat.com>
4417
4418 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4419 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4420 Update dependencies.
4421 * i387-tdep.c: Include gdb_string.h.
4422 * osabi.c: Likewise.
4423 * i386-linux-nat.c: Likewise.
4424 * lin-lwp.c: Likewise.
4425 * ax-gdb.c: Likewise.
4426 * signals/signals.c: Likewise.
4427 * jv-valprint.c: Likewise.
4428 * p-lang.c: Likewise.
4429 * c-valprint.c: Likewise.
4430 * cp-abi.c: Likewise.
4431
4432 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4433
4434 * cli/cli-script.h (copy_command_lines): Export.
4435 * breakpoint.c: Include cli/cli-script.h.
4436 * Makefile.in (breakpoint.o): Update dependencies.
4437
4438 2002-08-26 Michael Snyder <msnyder@redhat.com>
4439
4440 * breakpoint.c (insert_breakpoints): Protect all references
4441 to 'process_warning'. Shorten long lines.
4442
4443 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4444
4445 * cli/cli-script.c (copy_command_lines): New function.
4446 * defs.h (copy_command_lines): Export.
4447 * testsuite/gdb.base/commands.exp: New tests for commands
4448 attached to a temporary breakpoint, and for commands that
4449 delete the breakpoint they are attached to.
4450
4451 2002-08-26 Michael Snyder <msnyder@redhat.com>
4452
4453 * breakpoint.c (bpstat_stop_status): Instead of copying the
4454 pointer to the breakpoint commands struct, make a new copy
4455 of the struct and point to that.
4456 (bpstat_clear): Free the commands struct.
4457 (bpstat_clear_actions): Free the commands struct.
4458 (bpstat_do_actions): Free the command actions. Also execute
4459 the local cleanups, instead of deleting them.
4460 (delete_breakpoint): Leave the commands field of the bpstat
4461 chain alone -- it will be freed later.
4462
4463 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4464
4465 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4466 deleted in 2002-08-20 commit. This function is still used by
4467 ppc-linux-nat.c.
4468
4469 2002-08-26 Keith Seitz <keiths@redhat.com>
4470
4471 * gdb-events.sh: Add selected-frame-level-changed event.
4472 * gdb-events.c: Regenerated.
4473 * gdb-events.h: Regenerated.
4474
4475 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4476
4477 Fix PR gdb/393:
4478 * inflow.c (terminal_save_ours): New function to save terminal
4479 settings.
4480 * inferior.h (terminal_save_ours): Declare.
4481 * target.c (debug_to_terminal_save_ours): New function.
4482 (cleanup_target): Defaults to_terminal_save_ours.
4483 (update_current_target): Inherit to_terminal_save_ours.
4484 (setup_target_debug): Set to_terminal_save_ours.
4485 * target.h (target_terminal_save_ours): New to save terminal settings.
4486 (target_ops): New member to_terminal_save_ours.
4487 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4488 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4489 * inftarg.c (init_child_ops): Likewise.
4490 * m3-nat.c (init_m3_ops): Likewise.
4491 * procfs.c (init_procfs_ops): Likewise.
4492 * wince.c (init_child_ops): Likewise.
4493 * win32-nat.c (init_child_ops): Likewise.
4494 * sol-thread.c (init_sol_thread_ops): Likewise.
4495
4496 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4497
4498 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4499 use regcache_* functions.
4500 (i386_gdbarch_init): Set store_return_value instead of
4501 deprecated_store_return_value.
4502
4503 * regcache.c (regcache_raw_write_signed,
4504 regcache_raw_write_unsigned): New functions.
4505 * regcache.h (regcache_raw_write_signed,
4506 regcache_raw_write_unsigned): New prototypes.
4507
4508 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4509
4510 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4511 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4512 source file dependencies. Cleanup corresponding generator rules.
4513
4514 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4515
4516 * regcache.h (register_offset_hack): Declare.
4517 (regcache_cooked_read_using_offset_hack): Declare.
4518 (regcache_cooked_write_using_offset_hack): Declare.
4519
4520 * regcache.c (register_offset_hack): New function.
4521 (regcache_cooked_read_using_offset_hack): New function.
4522 (regcache_cooked_write_using_offset_hack): New function.
4523 (regcache_dump): Check that the registers, according to their
4524 offset, are packed hard against each other.
4525 (cooked_xfer_using_offset_hack): New function.
4526
4527 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4528
4529 * regcache.c (struct regcache_descr): Add field register_type.
4530 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4531 in as a parameter
4532 (init_regcache_descr): Initialize register_type. Pass the descr
4533 to init_legacy_regcache_descr. Use register_type instead of
4534 REGISTER_VIRTUAL_TYPE.
4535 (register_type): New function.
4536 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4537 * regcache.h (register_type): Declare.
4538
4539 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4540
4541 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4542 instead of deprecated_store_return_value. Fix fallout from
4543 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4544
4545 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4546
4547 * regcache.c (max_register_size): New function.
4548 (init_legacy_regcache_descr): Ensure that max_register_size is
4549 large enough for REGISTER_VIRTUAL_SIZE.
4550 * regcache.h (max_register_size): Declare.
4551
4552 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4553
4554 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4555 store_return_value.
4556 (e500_extract_return_value): Change type of valbuf pointer to
4557 void.
4558
4559 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4560
4561 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4562 workaround.
4563
4564 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4565 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4566 long long) to prevent compiler warning on 64-bit systems.
4567
4568 2002-08-23 Andrew Cagney <cagney@redhat.com>
4569
4570 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4571 (DEPRECATED_STORE_RETURN_VALUE): New method.
4572 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4573 * gdbarch.h, gdbarch.c: Re-generate.
4574
4575 * values.c (set_return_value): Pass current_regcache to
4576 STORE_RETURN_VALUE.
4577 * arch-utils.h (legacy_store_return_value): Declare.
4578 * arch-utils.c (legacy_store_return_value): New function.
4579 (legacy_extract_return_value): Update parameters.
4580
4581 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4582 STORE_RETURN_VALUE.
4583 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4584 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4585 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4586 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4587 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4588 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4589 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4590 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4591 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4592 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4593
4594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4595 * i386-tdep.c (i386_extract_return_value): Update.
4596 * arch-utils.c (legacy_extract_return_value): Update.
4597 * frv-tdep.c (frv_gdbarch_init): Update.
4598 * cris-tdep.c (cris_gdbarch_init): Update.
4599 * d10v-tdep.c (d10v_gdbarch_init): Update.
4600 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4601 * m68k-tdep.c (m68k_gdbarch_init): Update.
4602 * mcore-tdep.c (mcore_gdbarch_init): Update.
4603 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4604 * s390-tdep.c (s390_gdbarch_init): Update.
4605 * sparc-tdep.c (sparc_gdbarch_init): Update.
4606 * sh-tdep.c (sh_gdbarch_init): Update.
4607 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4608 * v850-tdep.c (v850_gdbarch_init): Update.
4609 * avr-tdep.c (avr_gdbarch_init): Update.
4610 * ia64-tdep.c (ia64_gdbarch_init): Update.
4611 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4612 * vax-tdep.c (vax_gdbarch_init): Update.
4613 * alpha-tdep.c (alpha_gdbarch_init): Update.
4614 * arm-tdep.c (arm_gdbarch_init): Update.
4615 * mips-tdep.c (mips_gdbarch_init): Update.
4616 * i386-tdep.c (i386_gdbarch_init): Update.
4617
4618 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4619
4620 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4621 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4622
4623 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4624
4625 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4626 problems.
4627
4628 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4629
4630 * infrun.c (handle_inferior_event): Move a comment outside of a
4631 function call, in order to avoid indent reformatting this part
4632 of the code in an unreadable way.
4633
4634 2002-08-23 Grace Sainsbury <graces@redhat.com>
4635
4636 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4637 when breakpoints fail. Move general breakpoint error messages to
4638 insert_breakpoints.
4639 * breakpoint.c (insert_breakpoints): Change warnings when
4640 breakpoints are nto inserted to specify the type. Remove call to
4641 memory_error when hardware breakpoints can't be inserted. Remove
4642 multiple calls to warning so all messages are sent to the user at
4643 once.
4644 (delete_breakpoints): Make insert error messsages more explicit.
4645
4646 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4647
4648 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4649 gdbserver/ChangeLog.
4650
4651 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4652
4653 * i386-tdep.c: Include "objfiles.h".
4654 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4655 skip_trampoline_code.
4656 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4657 (CPLUS_MARKER): Define to '.'.
4658
4659 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4660 member.
4661 (linux_corefile_thread_callback): Increase args->num_notes.
4662 (linux_make_note_section): Initialize thread_args.num_notes, and
4663 use it to determine whether notes for any threads were created.
4664
4665 2002-08-23 Donn Terry <donnte@microsoft.com>
4666
4667 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4668 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4669 and PCUNKILL.
4670 (write_with_trace): Conditionalize out the switch branch handling
4671 PCSHOLD if the corresponding macro is not defined. Likewise for
4672 PRSABORT and PRSTOP.
4673 This change will be needed by the Interix port.
4674
4675 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4676
4677 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4678 write_register wherever possible instead of manipulating the
4679 register bytes directly.
4680 Assign VALUE_CONTENTS to a variable and use that.
4681 The GPR numbers are now dependent on the architecture.
4682
4683 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4684
4685 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4686 ev_offset fields.
4687 (skip_prologue): Add support for BookE/e500 instructions.
4688 (e500_extract_return_value): New function.
4689 (frame_get_saved_regs): Add support for saving ev registers and
4690 pseudo gpr's.
4691 (e500_store_return_value): New function.
4692 (rs6000_gdbarch_init): Move up default intializations of
4693 deprecated_extract_return_value and store_return_value. Overwrite
4694 init of store_return_value with e500 specific version.
4695 Set extract_return_value for e500.
4696
4697 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4698
4699 * blockframe.c (generic_call_dummy_register_unwind): Use
4700 regcache_cooked_read to catch cases in which the variable is
4701 stored in a pseudo register.
4702
4703 2002-08-22 Andrew Cagney <cagney@redhat.com>
4704
4705 * NEWS: Mention that the i960 has been made obsolete.
4706 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4707 i960-tdep.c
4708 (remote-nrom.o): Obsolete target.
4709 (remote-nindy.o, i960-tdep.o): Ditto.
4710 * remote-nrom.c: Make file obsolete.
4711 * remote-nindy.c, remote-vx960.c: Ditto.
4712 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4713 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4714 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4715 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4716 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4717 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4718 i960-*-vxworks* obsolete.
4719 * MAINTAINERS: Note that the i960 is obsolete.
4720
4721 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4722
4723 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4724 detach to allow reinitialization.
4725
4726 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4727
4728 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4729 attempt).
4730
4731 2002-08-22 Jim Blandy <jimb@redhat.com>
4732
4733 * coffread.c (coff_symfile_read): Don't try to read the line
4734 number table from disk if the image file doesn't have a symbol
4735 table; we'll never actually look at the info anyway, and Windows
4736 ships DLL's with bogus file offsets for the line number data.
4737
4738 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4739
4740 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4741 an e500 executable.
4742
4743 2002-08-21 Michael Snyder <msnyder@redhat.com>
4744
4745 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4746 (MSYMBOL_SIZE): Replace macro with function.
4747 (DEFAULT_MIPS_TYPE): Delete unused macro.
4748 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4749 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4750
4751 2002-08-21 Jim Blandy <jimb@redhat.com>
4752
4753 * valops.c (value_cast): Simplify and correct logic for doing a
4754 static cast from a pointer to a base class to a pointer to a
4755 derived class.
4756
4757 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4758
4759 * infcmd.c (default_print_registers_info): Replace
4760 do_registers_info.
4761 (registers_info): Use gdbarch_print_registers_info instead of
4762 DO_REGISTERS_INFO.
4763 * inferior.h (default_print_registers_info): Replace
4764 do_registers_info.
4765 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4766 (DO_REGISTERS_INFO): Change to a predicate function.
4767 * gdbarch.h, gdbarch.c: Regenerate.
4768
4769 2002-08-21 Keith Seitz <keiths@redhat.com>
4770
4771 * gdb-events.sh: Add target-changed event.
4772 * gdb-events.c: Regenerated.
4773 * gdb-events.c: Regenerated.
4774 * valops.c (value_assign): Add target-changed event notification
4775 to inlval_register, lval_memory, and lval_reg_frame_relative.
4776
4777 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4778
4779 * NEWS: Add an entry regarding the improvement of the next/step
4780 operation on Alpha Tru64 multi-processor machines.
4781
4782 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4783
4784 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4785 directores.
4786 * Makefile.in: Update all _h macro definitions.
4787 * Makefile.in (install-gdbtk): Move to install section.
4788 (rdi-share/libangsd.a): Move to end of file.
4789
4790 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4791
4792 * frame.c (frame_register_unwind): When a register, set addrp to
4793 the register's byte.
4794
4795 2002-08-20 Michael Snyder <msnyder@redhat.com>
4796
4797 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4798 used locally, so move them from the target machine header to here.
4799 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4800 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4801 Make static.
4802 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4803
4804 2002-08-20 Andrew Cagney <cagney@redhat.com>
4805
4806 * NEWS: Mention that the Apollo line was made obsolete.
4807 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4808 m68*-hp-hpux* obsolete.
4809 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4810 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4811 * buildsym.c (make_blockvector): Make static.
4812 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4813 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4814 (ALLDEPFILES): Remove dstread.c.
4815 (dstread.o): Obsolete make rule.
4816 * dstread.c: Makefile obsolete.
4817 * dst.h: Ditto.
4818 * config/m68k/hp300hpux.mt: Ditto.
4819 * config/m68k/hp300hpux.mh: Ditto.
4820 * config/m68k/hp300bsd.mt: Ditto.
4821 * config/m68k/hp300bsd.mh: Ditto.
4822 * config/m68k/apollo68b.mt: Ditto.
4823 * config/m68k/apollo68v.mh: Ditto.
4824 * config/m68k/apollo68b.mh: Ditto.
4825
4826 2002-08-20 Michael Snyder <msnyder@redhat.com>
4827
4828 * mips-tdep.c (mips_in_return_stub): Make static.
4829 (mips_gdbarch_init): Set in_solib_return_trampoline.
4830 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4831
4832 2002-08-20 Michael Snyder <msnyder@redhat.com>
4833
4834 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4835 * gdbarch.c, gdbarch.h: Regenerate.
4836 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4837 Add.
4838 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4839
4840 2002-08-20 Michael Snyder <msnyder@redhat.com>
4841
4842 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4843 (mips_gdbarch_init): Set skip_trampoline_code,
4844 in_solib_call_trampoline.
4845 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4846 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4847
4848 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4849
4850 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4851
4852 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4853 vector type for ev registers.
4854 (e500_pseudo_register_read): New function.
4855 (e500_pseudo_register_write): New function.
4856 (e500_dwarf2_reg_to_regnum): New function.
4857 (PPC_UISA_NOFP_SPRS): New macro.
4858 (PPC_EV_REGS): New macro.
4859 (PPC_GPRS_PSEUDO_REGS): New macro.
4860 (registers_e500): New register set for e500.
4861 (variants): Add e500 variant.
4862 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4863 before setting architectural dependent variations. Initialize ev
4864 registers numbers. Add case for e500 architecture. Set the
4865 number of pseudo registers.
4866
4867 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4868
4869 * rs6000-tdep.c: Clean up comments.
4870
4871 2002-08-20 Andrew Cagney <cagney@redhat.com>
4872
4873 * h8300-tdep.c: Re-indent file.
4874
4875 2002-08-20 Jim Blandy <jimb@redhat.com>
4876
4877 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4878 default for this.
4879
4880 2002-08-20 Keith Seitz <keiths@redhat.com>
4881
4882 * breakpoints.c (watch_command_1): Use internal breakpoint
4883 when setting a watchpoint_scope breakpoint.
4884
4885 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4886
4887 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4888 (build_builtin_type_vec64i): Ditto.
4889 (build_builtin_type_vec128): Ditto.
4890 (build_builtin_type_vec128i): Ditto.
4891
4892 2002-08-19 Michael Snyder <msnyder@redhat.com>
4893
4894 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4895 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4896 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4897 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4898 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4899 CALL_DUMMY_ADDRESS): Delete.
4900 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4901 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4902 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4903 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4904 push_return_address.
4905 (mips_register_raw_size, mips_eabi_use_struct_convention,
4906 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4907 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4908 mips_init_extra_frame_info, mips_eabi_push_arguments,
4909 mips_n32n64_push_arguments, mips_push_return_address,
4910 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4911 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4912
4913 2002-08-19 Michael Snyder <msnyder@redhat.com>
4914
4915 * mips-tdep.c (mips_frame_num_args): New function.
4916 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4917 frame_saved_pc, frame_args_address, frame_locals_address,
4918 frame_num_args, and frame_args_skip.
4919 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4920 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4921 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4922 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4923
4924 2002-08-20 Michael Snyder <msnyder@redhat.com>
4925
4926 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4927 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4928 * mips-tdep.c (mips_store_struct_return): New function.
4929 (mips_extract_struct_value_address): New function.
4930 (mips_gdbarch_init): Set store_struct_return and
4931 extract_struct_value_address.
4932
4933 2002-08-20 David Carlton <carlton@math.stanford.edu>
4934
4935 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4936 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4937 (read_file_scope): Check that line_header is nonzero before
4938 decoding macro information.
4939
4940 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4941
4942 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4943 flag the general-purpose registers as floating-point on targets
4944 that don't support the floating-point registers.
4945
4946 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4947
4948 * rs6000-tdep.c (altivec_register_p): Delete.
4949 (rs6000_do_altivec_registers): Delete.
4950 (rs6000_altivec_registers_info): Delete.
4951 (rs6000_do_registers_info): Delete.
4952 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4953 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4954
4955 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4956
4957 * infcmd.c (do_registers_info): Print vector registers in hex
4958 format only.
4959 (print_vector_info): Check that printing registers
4960 makes sense.
4961 (print_float_info): Ditto.
4962
4963 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4964
4965 * mips-tdep.c (mips_gdbarch_init): Update.
4966 (mips_o32_extract_return_value): Rewrite.
4967 (mips_o32_store_return_value): Rewrite.
4968 (mips_o32_xfer_return_value): New function.
4969 (mips_xfer_register): Tweak debug print message. Allow for
4970 buf_offset when dumping the value transfered.
4971
4972 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4973
4974 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4975 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4976 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4977 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4978 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4979
4980 2002-08-14 Michael Snyder <msnyder@redhat.com>
4981
4982 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4983
4984 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4985
4986 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4987 register.
4988 (P): New macro to define a register as a pseudo register.
4989 (R, R4, R8, R16, FR32, R64, R0): Updated.
4990 (struct variant): Add new fields for number of pseudo registers
4991 and number of total registers.
4992 (tot_num_registers): New macro replacing....
4993 (num_registers): ...deleted macro.
4994 (num_registers): New function.
4995 (num_pseudo_registers): New function.
4996 (variants): Update all variants to intialize new fields correctly.
4997 Postpone initialization of number of pseudo regs and real regs.
4998 (init_variants): New function.
4999 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5000 registers offsets.
5001
5002 2002-08-19 David Carlton <carlton@math.stanford.edu>
5003
5004 * valops.c (search_struct_field): Change error message to treat
5005 return value of 0 from value_static_field as meaning that field is
5006 optimized out.
5007 (value_struct_elt_for_reference): Ditto.
5008 * values.c (value_static_field): Treat an unresolved location the
5009 same as a nonexistent symbol. Fix PR gdb/635.
5010 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5011 enclosed. Fix PR gdb/574.
5012 * MAINTAINERS: Add self to Write After Approval list.
5013
5014 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5015
5016 * mips-tdep.c (mips_xfer_register): New function.
5017 (mips_n32n64_extract_return_value): Rewrite.
5018 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5019 instead of deprecated_extract_return_value.
5020
5021 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5022
5023 * rs6000-tdep.c (TDEP): Delete macro.
5024 (branch_dest): Replace use of TDEP macro with its body.
5025 (rs6000_pop_frame): Ditto.
5026 (rs6000_push_arguments): Ditto.
5027 (rs6000_skip_trampoline_code): Ditto.
5028 (rs6000_frame_saved_pc): Ditto.
5029 (rs6000_frame_chain): Ditto.
5030 (rs6000_register_name): Ditto.
5031 (rs6000_register_byte): Ditto.
5032 (rs6000_register_raw_size): Ditto.
5033 (rs6000_register_virtual_type): Ditto.
5034 (rs6000_register_convertible): Ditto.
5035 (rs6000_convert_from_func_ptr_addr): Ditto.
5036
5037 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5038
5039 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5040 conditionally.
5041 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5042 MIPS_LINUX_JB_ELEMENT_SIZE.
5043 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5044 for MAX_REGISTER_RAW_SIZE arrays.
5045 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5046 MIPS_LINUX_JB_ELEMENT_SIZE.
5047
5048 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5049
5050 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5051
5052 2002-08-19 Aidan Skinner <aidan@velvet.net>
5053
5054 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5055 ada-valprint.c ada-tasks.c.
5056 (YYFILES): Add ada-exp.y.
5057 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5058 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5059 (ada-exp.tab.o): New target.
5060
5061 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5062
5063 * regcache.c (regcache_xfer_part): New function.
5064 (regcache_raw_read_part): New function.
5065 (regcache_raw_write_part): New function.
5066 (regcache_cooked_read_part): New function.
5067 (regcache_cooked_write_part): New function.
5068 * regcache.h (regcache_raw_read_part): Declare.
5069 (regcache_raw_write_part): Declare.
5070 (regcache_cooked_read_part): Declare.
5071 (regcache_cooked_write_part): Declare.
5072
5073 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5074
5075 * remote.c (remote_open_1): Add async_p.
5076 (remote_async_open_1): Delete.
5077 (open_remote_target): Delete.
5078 (remote_open, extended_remote_open): Update calls to remote_open_1.
5079 (remote_async_open, extended_remote_async_open): Call
5080 remote_open_1 instead of remote_async_open_1.
5081
5082 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5083
5084 * blockframe.c: Fix a few coding standard violations.
5085
5086 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5087
5088 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5089 here from ...
5090 * config/i386/tm-i386sco5.h: ... here. File removed.
5091 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5092
5093 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5094 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5095 (TM_FILE): Set to tm-i386.h.
5096 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5097 * config/i386/tm-i386v.h: Remove file.
5098 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5099 instead of "i386/tm-i386v.h".
5100 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5101 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5102 "i386/tm-i386v.h".
5103 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5104 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5105 "i386/tm-i386.h".
5106
5107 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5108
5109 * config/i386/nm-i386v.h: Add protection against
5110 multiple-inclusion.
5111 (i386_register_u_addr): Remove prototype.
5112 (register_u_addr): New prototype.
5113 (REGISTER_U_ADDR): Redefine accordingly.
5114 * i386v-nat.c: Improve several comments.
5115 (i386_register_u_addr): Change signature and rename to
5116 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5117 ubase variable.
5118
5119 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5120
5121 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5122 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5123 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5124 deprecated_extract_return_value.
5125 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5126 rename mips_o32o64_push_arguments.
5127 (mips_gdbarch_init): Update.
5128 (mips_extract_return_value): Delete.
5129 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5130 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5131 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5132 (mips_n32n64_extract_return_value): Clone
5133 mips_extract_return_value.
5134 (mips_store_return_value): Delete.
5135 (mips_o32_store_return_value): Clone mips_store_return_value.
5136 (mips_o64_store_return_value): Clone mips_store_return_value.
5137 (mips_eabi_store_return_value): Clone mips_store_return_value.
5138 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5139
5140 2002-08-18 Aidan Skinner <aidan@velvet.net>
5141
5142 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5143 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5144
5145 2002-08-18 Aidan Skinner <aidan@velvet.net>
5146
5147 * ada-lang.c: Run through gdb_indent.sh.
5148 * ada-lang.h: Run through gdb_indent.sh.
5149 * ada-tasks.c: Run through gdb_indent.sh.
5150 * ada-typeprint.c: Run through gdb_indent.sh.
5151 * ada-valprint.c: Run through gdb_indent.sh.
5152
5153 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5154
5155 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5156 ABI.
5157
5158 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5159
5160 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5161
5162 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5163 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5164
5165 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5166 write_register_gen instead of write_register_bytes.
5167
5168 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5169 i[3456]-*-osf1mk* configurations have been made obsolete.
5170 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5171 i[3456]86-*-osf1mk* hosts obsolete.
5172 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5173 targets obsolete.
5174 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5175 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5176 config/i386/i386m3.mt, config/i386/nm-m3.h,
5177 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5178 config/i386/i386mk.mh, config/i386/i386mk.mt,
5179 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5180 obsolete.
5181 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5182 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5183 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5184
5185 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5186
5187 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5188 (hppa_value_returned_from_stack): Declare.
5189 (hppa_extract_return_value): Declare.
5190 * config/pa/hppa.mt: New file.
5191 * configure.tgt: Recognize hppa*-*-*.
5192 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5193
5194 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5195
5196 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5197 comment.
5198
5199 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5200
5201 * top.c (gdb_rl_operate_and_get_next): Make sure
5202 operate-and-get-next functions correctly even when the history
5203 list is completely filled.
5204
5205 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5206
5207 * MAINTAINERS (Target Instruction Set Architectures): Rename
5208 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5209 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5210 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5211 already listed under Host/Native.
5212
5213 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5214 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5215 mips*-*-*.
5216
5217 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5218
5219 * config/ia64/ia64.mt: New file.
5220 * config/alpha/alpha.mt: New file.
5221 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5222 ia64-linux-gnu. Mention that ia64-elf is broken.
5223 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5224
5225 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5226
5227 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5228 generic_func_frame_valid instead of func_frame_valid.
5229
5230 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5231
5232 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5233 procfs appears to be broken when debugging on multi-processor
5234 machines. So enable software single stepping in order to avoid
5235 using the procfs interface to do next/step operations, using
5236 internal breakpoints instead.
5237
5238 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5239 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5240 make this pc address equal to the value it would have if the
5241 system stepping capability was used. Also set a new flag used
5242 to ensure that we don't readjust the PC one more time later.
5243
5244 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5245 address by DECR_PC_AFTER_BREAK when software single step is
5246 in use for this architecture, as this has already been taken
5247 care of in handle_inferior_event().
5248
5249 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5250
5251 * infrun.c (handle_inferior_event): Minor reformatting, to make
5252 a rather long condition expression easier to read.
5253
5254 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5255
5256 * Makefile.in (gdbtk.o): Move to end of file.
5257 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5258 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5259 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5260 (gdbtk-wrapper.o, gdbres.o): Ditto.
5261
5262 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5263
5264 * Makefile.in (copying.o): Separate out compile rule.
5265 (hpux-thread.o, procfs.o, signals.o): Ditto.
5266 (v850ice.o, z8k-tdep.o): Ditto.
5267 (tui-file.o): Move to TUI section.
5268 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5269 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5270
5271 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5272
5273 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5274 skip_trampoline_code, for better namespace-proofing.
5275
5276 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5277
5278 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5279
5280 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5281
5282 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5283
5284 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5285 signal, check whether we hit a breakpoint before checking for a
5286 single step breakpoint. Otherwise, GDB fails to notice that a
5287 breakpoint has been hit when stepping onto a breakpoint.
5288
5289 2002-08-16 Keith Seitz <keiths@redhat.com>
5290
5291 * gdb-events.sh (clear_gdb_event_hooks): New function.
5292 * gdb-events.c: Regenerate.
5293 * gdb-events.h: Regenerate.
5294
5295 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5296
5297 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5298 not_a_sw_breakpoint.
5299 * breakpoint.h (bpstat_stop_status): Add parameter names.
5300
5301 2002-08-16 Grace Sainsbury <graces@redhat.com>
5302
5303 * remote.c (remote_insert_hw_breakpoint)
5304 (remote_remove_hw_breakpoint): Fix calculation of length field
5305 for Z-packet.
5306
5307 2002-08-15 Michael Snyder <msnyder@redhat.com>
5308
5309 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5310 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5311 (supply_fpregset): Ditto.
5312
5313 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5314 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5315 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5316 (TARGET_READ_SP): Delete.
5317 (DO_REGISTERS_INFO): Delete.
5318 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5319 Delete.
5320 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5321 from macros to functions.
5322
5323 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5324 (mips_register_convertible, mips_register_convert_to_virtual,
5325 mips_register_convert_to_raw): Make static.
5326 (mips_read_sp): New function.
5327 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5328 (mips_do_registers_info): Make static.
5329 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5330 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5331 (mips_register_convert_from_type, mips_register_convert_to_type):
5332 New functions.
5333 (mips_gdbarch_init): Set up function_start_offset,
5334 register_virtual_size, pc_in_sigtramp.
5335
5336 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5337
5338 * infcmd.c (vector_info): New function.
5339 (_initialize_infcmd): Add command "info vector".
5340 (print_vector_info): New function.
5341
5342 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5343 * gdbarch.h, gdbarch.c: Regenerate.
5344
5345 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5346
5347 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5348 ``print_all''. Only print vector registers when ``print_all''.
5349
5350 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5351
5352 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5353 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5354
5355 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5356 Add `args' parameter.
5357 * gdbarch.h, gdbarch.c: Regenerate.
5358
5359 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5360
5361 * infcmd.c (float_info): Call print_float_info.
5362 (print_float_info): New function. By default, print the
5363 floating-point registers.
5364
5365 * arch-utils.h (default_print_float_info): Delete declaration.
5366 * arch-utils.c (default_print_float_info): Delete function.
5367
5368 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5369
5370 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5371 out define.
5372
5373 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5374 FRAME.
5375
5376 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5377 * configure.host: Make i[3456]86-*-aix host obsolete.
5378 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5379 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5380 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5381 config/i386/xm-i386aix.h: Make files obsolete.
5382 * i386aix-nat.c: Make file obsolete.
5383 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5384 (i386aix-nat.o): Make target obsolete.
5385
5386 * config/i386/nm-gnu.h: Removed.
5387 * config/i386/nm-i386gnu.h: New file.
5388 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5389 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5390 Moved here from ...
5391 * config/i386/tm-i386gnu.h: ... here. Removed.
5392 * config/i386/xm-i386gnu.h: Removed.
5393 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5394 (NAT_FILE): Set to nm-i386gnu.h.
5395 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5396 * i386-tdep.c: New file.
5397 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5398 (i386gnu-tdep.o): Specify dependencies.
5399
5400 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5401
5402 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5403 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5404 Adjust a few comments to reflect reality a bit closer.
5405 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5406 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5407 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5408 target_insert_watchpoint, target_remove_watchpoint):
5409 Move defines to ...
5410 * config/i386/nm-i386sco5.h: ... here.
5411 (kernel_u_size): Add prototype. Improve a few comments and add
5412 protection against multiple inclusion.
5413
5414 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5415 out define.
5416
5417 * uw-thread.c (SP_ARG0): Define if not already defined.
5418 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5419
5420 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5421
5422 * config/i386/tm-i386.h: Don't include "regcache.h".
5423
5424 * i387-tdep.h (i387_print_float_info): New prototype.
5425 * i387-tdep.c (print_i387_value, print_i387_ext,
5426 print_i387_status_word, print_i387_control_word): Add `struct
5427 ui_file *' argument and use it for output.
5428 (i387_print_float_info): Renamed from i387_float_info. Add
5429 `struct gdbarch *' and `struct ui_file *' arguments and use the
5430 latter for output.
5431 * i386-tdep.c: Include "i387-tdep.h".
5432 (i386_gdbarch_init): Set print_float_info.
5433 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5434 (FLOAT_INFO): Remove define.
5435
5436 2002-08-13 Michael Snyder <msnyder@redhat.com>
5437
5438 * mips-tdep.c (mips_push_arguments): Rename to
5439 mips_eabi_push_arguments, and tune for EABI.
5440 (MIPS_REGS_HAVE_HOME_P): Delete.
5441 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5442 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5443 Delete references to mips_regs_have_home_p.
5444
5445 2002-08-14 Keith Seitz <keiths@redhat.com>
5446
5447 * Makefile.in (install-gdbtk): Create insight plugin directory.
5448 Install plugins.tcl file.
5449
5450 2002-08-14 Keith Seitz <keiths@redhat.com>
5451
5452 * configure.in: Move SUBDIRS to near top of the file so that
5453 --enable options may add things to it.
5454 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5455 * configure: Regenerate.
5456
5457 2002-08-13 Michael Snyder <msnyder@redhat.com>
5458
5459 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5460 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5461 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5462
5463 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5464
5465 * vax-tdep.c (vax_get_saved_register): Delete function.
5466 (vax_gdbarch_init): Update.
5467 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5468 (ns32k_gdbarch_init): Update.
5469 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5470 (alpha_gdbarch_init): Update.
5471
5472 2002-08-13 Andrew Cagney <cagney@redhat.com>
5473
5474 * regcache.c (init_regcache_descr): Overallocate the
5475 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5476 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5477 nr_raw_registers.
5478 (set_register_cached): Add range checking assertions. Use
5479 current_regcache.
5480
5481 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5482
5483 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5484 numbers for MMX registers.
5485
5486 2002-08-13 Andrew Cagney <cagney@redhat.com>
5487
5488 * i386-tdep.c (i386_gdbarch_init): Use
5489 generic_unwind_get_saved_register.
5490
5491 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5492
5493 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5494 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5495 target vector.
5496 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5497 Delete. Add comment regarding this now-deleted target method.
5498
5499 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5500
5501 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5502 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5503 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5504 real PC and the page number (if it's within the memory bank window).
5505 (m68hc11_pseudo_register_write): Likewise when saving.
5506 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5507 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5508 (m68hc11_register_raw_size): And use 32-bit for it.
5509 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5510 16K memory bank is used by the prog; also use the virtual pc.
5511
5512 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5513
5514 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5515 (m68hc11_gdbarch_init): Install it in gdbarch.
5516 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5517 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5518 (MSYMBOL_SIZE): New for documentation.
5519 (insn_return_kind): Enum to specify how a function returns.
5520 (frame_extra_info): Cleanup and record the return mode.
5521 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5522 register in address computation.
5523 (m68hc11_get_return_insn): New to obtain the return instruction used
5524 by the function.
5525 (m68hc11_frame_init_saved_regs): Take into account the return
5526 instruction used by the function for far and interrupt functions.
5527 (m68hc11_init_extra_frame_info): Take into account page register.
5528 (m68hc11_frame_args_address): Adjust according to the return mode.
5529 (show_regs): Print page register only when it's used.
5530
5531 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5532
5533 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5534 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5535 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5536 registers.
5537 (m68hc11_register_raw_size): Likewise.
5538
5539 2002-08-13 Andrew Cagney <cagney@redhat.com>
5540
5541 * i386-tdep.c (i386_register_name): Handle mmx registers.
5542 (mmx_regnum_p): New function.
5543 (i386_mmx_names): New array.
5544 (mmx_num_regs): New variable.
5545 (i386_pseudo_register_read): New function.
5546 (i386_pseudo_register_write): New function.
5547 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5548
5549 * regcache.c (regcache_raw_read_unsigned): New function.
5550 (regcache_raw_read_signed): New function.
5551 * regcache.h (regcache_raw_read_unsigned): Declare.
5552 (regcache_raw_read_signed): Declare.
5553
5554 2002-08-13 Andrew Cagney <cagney@redhat.com>
5555
5556 * regcache.c (regcache_raw_read_as_address): Delete function.
5557 (regcache_cooked_read_signed): New function.
5558 (regcache_cooked_read_unsigned): New function.
5559 * regcache.h (regcache_cooked_read_signed): Declare.
5560 (regcache_cooked_read_unsigned): Declare.
5561 (regcache_raw_read_as_address): Delete declaration.
5562
5563 * blockframe.c (generic_read_register_dummy): Use
5564 regcache_cooked_read_unsigned.
5565 * i386-tdep.c (i386_extract_struct_value_address): Use
5566 regcache_cooked_read_unsigned.
5567
5568 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5569
5570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5571 double sizes according to ELF ABI flags.
5572 (gdbarch_tdep): Record elf_flags.
5573
5574 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5575
5576 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5577 (m6812_prolog): They can appear in 68HC12 function prologue.
5578 (m68hc11_frame_chain): Cleanup.
5579
5580 2002-08-12 Andrew Cagney <cagney@redhat.com>
5581
5582 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5583 declarations.
5584 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5585 (i386_linux_register_raw_size): Delete function.
5586 (i386_linux_init_abi): Update.
5587 * i386-tdep.c (i386_register_raw_size): Delete function.
5588 (i386_register_byte): Delete function.
5589 (i386_gdbarch_init): Update.
5590 (i386_register_size): Delete array.
5591 (i386_register_offset): Delete array.
5592
5593 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5594 (REGISTER_RAW_SIZE): Delete macro.
5595 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5596 (REGISTER_BYTE): Delete macro.
5597
5598 2002-08-11 Aidan Skinner <aidan@velvet.net>
5599
5600 * ada-lang.c (ada_lookup_partial_symbol)
5601 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5602 prototype names so that grep ^func works properly.
5603
5604 * ada-lang.c (ada_array_element_type)
5605 (ada_lookup_partial_symbol): Fix typos in parameter list.
5606
5607 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5608 Fix prototype names so that grep ^func works properly.
5609
5610 2002-08-10 Andrew Cagney <cagney@redhat.com>
5611 Elena Zannoni <ezannoni@redhat.com>
5612 Martin M. Hunt <hunt@redhat.com>
5613
5614 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5615 (build_builtin_type_vec128i): Set the vector bit.
5616 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5617 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5618 (build_builtin_type_vec64): New function.
5619 (build_builtin_type_vec64i): New function.
5620 (build_gdbtypes): Initialize builtin_type_vec64 and
5621 builtin_type_vec64i.
5622
5623 2002-08-09 Andrew Cagney <cagney@redhat.com>
5624
5625 * regcache.c (regcache_dump): Compare the register offset
5626 with REGISTER_BYTE.
5627 * arch-utils.c (generic_register_byte): New function.
5628 * arch-utils.h (generic_register_byte): Declare.
5629 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5630 * gdbarch.h, gdbarch.c: Regenerate.
5631
5632 2002-08-09 Andrew Cagney <cagney@redhat.com>
5633
5634 * regcache.c: Include "gdbcmd.h"
5635 (_initialize_regcache): Add commands "maintenance print
5636 registers", "maintenance print raw-registers" and "maintenance
5637 print cooked-registers".
5638 (enum regcache_dump_what): Define.
5639 (dump_endian_bytes): New function.
5640 (regcache_dump): New function.
5641 (regcache_print): New function.
5642 (maintenance_print_registers): New function.
5643 (maintenance_print_raw_registers): New function.
5644 (maintenance_print_cooked_registers): New function.
5645 * Makefile.in (regcache.o): Update dependencies.
5646
5647 2002-08-09 Michael Snyder <msnyder@redhat.com>
5648
5649 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5650 (mips_push_arguments): Correct some comments. Use paddr_nz
5651 for printing addresses in debug output. Replace static
5652 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5653 (mips_n32n64_push_arguments): New function, cloned from
5654 mips_push_arguments and tuned for the n32/n64 ABI.
5655 (mips_push_register): Buffer needs dynamic allocation.
5656 (mips_print_register): Ditto.
5657 (do_gp_register_row): Ditto.
5658 (mips_store_return_value): Ditto.
5659 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5660
5661 2002-08-09 Don Howard <dhoward@redhat.com>
5662
5663 * memattr.c (mem_info_command): Print special case of upper bound
5664 as max CORE_ADDR + 1.
5665
5666 2002-08-08 Michael Snyder <msnyder@redhat.com>
5667
5668 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5669 returns structs by ref if they're too big to fit in two registers.
5670
5671 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5672
5673 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5674 saved regs value.
5675 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5676 mips_find_saved_regs().
5677 (mips_pop_frame): Likewise.
5678
5679 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5680
5681 * blockframe.c (frame_saved_regs_register_unwind): Revise
5682 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5683 frames are in use.
5684
5685 2002-08-09 Grace Sainsbury <graces@redhat.com>
5686
5687 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5688 T-packets; the 'a' is not taken as a register number.
5689 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5690 (remote_stopped_data_address): New functions; add to target
5691 vector.
5692 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5693 prototypes to match other implementations of this
5694 function. replace integer argument with pointer -- the length
5695 field in the Z-packet is the length of what is pointed to or 1 if
5696 pointer is null. Add to target vector.
5697 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5698 target vector.
5699
5700 From Mark Salter:
5701 * remote.c (remote_wait): Add support to extract optional
5702 watchpoint information from T-packet. Ignore unrecognized
5703 optional info in T-packet.
5704 (remote_async_wait): Ditto.
5705
5706 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5707
5708 * cli/cli-dump.c: Change fopen modes to use binary open modes
5709 as defined in include/fopen-bin.h throughout.
5710
5711 2002-08-08 Michael Snyder <msnyder@redhat.com>
5712
5713 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5714
5715 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5716
5717 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5718 assertion failure by returning early after a warning.
5719
5720 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5721
5722 * mips-tdep.c (mips_find_saved_regs): Make static.
5723 (mips_frame_init_saved_regs): New function.
5724 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5725 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5726 (mips_find_saved_regs): Delete declaration.
5727
5728 2002-08-08 Grace Sainsbury <graces@redhat.com>
5729
5730 * remote.c (remote_wait, remote_async_wait): Change
5731 thread_num from int to ULONGEST.
5732 (unpack_varlen_hex): Change result parameter from
5733 int * to ULONGEST *.
5734
5735 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5736
5737 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5738 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5739 powerpc*-*-*.
5740 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5741
5742 2002-08-08 Andrew Cagney <cagney@redhat.com>
5743
5744 * gcore.c (override_derive_stack_segment): Delete variable.
5745 (preempt_derive_stack_segment): Delete function.
5746 (derive_stack_segment): Delete function.
5747 (default_derive_stack_segment): Renamed to derive_stack_segment.
5748 (override_derive_heap_segment): Delete variable.
5749 (preempt_derive_heap_segment): Delete function.
5750 (derive_heap_segment): Delete function.
5751 (default_derive_heap_segment): Rename to derive_heap_segment.
5752
5753 2002-08-06 Michael Snyder <msnyder@redhat.com>
5754
5755 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5756 * mips-tdep.c (mips_EABI_use_struct_convention,
5757 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5758 New functions. (mips_use_struct_convention): Delete.
5759 (mips_gdbarch_init): set use_gdbarch_convention.
5760
5761 2002-08-06 Michael Snyder <msnyder@redhat.com>
5762
5763 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5764 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5765 mips_o32_reg_struct_has_addr): New functions.
5766 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5767
5768 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5769
5770 * regcache.c (pseudo_register): Delete function.
5771 (fetch_register): Delete function.
5772 (store_register): Delete function.
5773 (regcache_raw_read, legacy_read_register_gen): Use
5774 target_fetch_registers instead of fetch_register.
5775 (legacy_write_register_gen, regcache_raw_write): Use
5776 target_store_register instead of store_register.
5777 (write_register_bytes): Ditto.
5778
5779 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5780 (STORE_PSEUDO_REGISTER): Delete.
5781 * gdbarch.h, gdbarch.c: Regenerate.
5782
5783 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5784
5785 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5786 write dump file binary.
5787
5788 2002-08-05 Michael Snyder <msnyder@redhat.com>
5789
5790 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5791 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5792 (mips_gdbarch_init): Set N32 target to be mips64.
5793
5794 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5795
5796 * frame.c (find_saved_register): Break out of loop once saved
5797 register address is found. Don't mention sparc in loop comment
5798 anymore.
5799
5800 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5801
5802 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5803 mips_default_saved_regsize to 8.
5804
5805 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5806
5807 * gcore.c: Do not include <sys/procfs.h>.
5808 * Makefile.in (gcore.o): Update dependencies.
5809
5810 2002-08-06 Andrew Cagney <cagney@redhat.com>
5811
5812 * configure.tgt: Make arc-*-* obsolete.
5813 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5814 * MAINTAINERS: Make arc-elf obsolete.
5815 * arc-tdep.c: Make file obsolete.
5816 * config/arc/arc.mt: Ditto.
5817 * config/arc/tm-arc.h: Ditto.
5818
5819 2002-08-05 Theodore A. Roth <troth@verinet.com>
5820
5821 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5822
5823 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5824
5825 * mcore-tdep.c (mcore_gdbarch_init): Use
5826 generic_unwind_get_saved_register instead of
5827 generic_get_saved_register.
5828 * v850-tdep.c (v850_gdbarch_init): Ditto.
5829 * frv-tdep.c (frv_gdbarch_init): Ditto.
5830 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5831 * s390-tdep.c (s390_gdbarch_init): Ditto.
5832 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5833 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5834 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5835
5836 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5837
5838 * objfiles.h: Add missing #include "symfile.h"
5839
5840 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5841
5842 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5843
5844 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5845 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5846 of FIELD_BITSIZE.
5847
5848 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5849
5850 * NEWS: Cleanup and nitpick.
5851
5852 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5853
5854 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5855
5856 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5857
5858 * Makefile.in (gdbtk-bp.o): Update dependencies.
5859 (gdbtk-register.o): Ditto.
5860 (gdbtk-varobj.o): Ditto.
5861
5862 2002-08-03 Andrew Cagney <cagney@redhat.com>
5863
5864 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5865 m68hc11_fetch_pseudo_register.
5866 (m68hc11_pseudo_register_write): Replace
5867 m68hc11_store_pseudo_register.
5868 (m68hc11_gdbarch_init): Update.
5869
5870 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5871
5872 * gdbarch.sh: Include "gdb_string.h".
5873 * gdbarch.c: Regenerate.
5874
5875 * regcache.c: Include "gdb_string.h".
5876 * ax-general.c: Ditto.
5877 * varobj.c: Ditto.
5878 * std-regs.c: Ditto.
5879 * fbsd-proc.c: Ditto.
5880 * thread.c: Ditto.
5881
5882 * Makefile.in (regcache.o): Update dependencies.
5883 (thread.o, gdbarch.o): Ditto.
5884 (ax-general.o, gdbarch.o): Ditto.
5885 (varobj.o, std-regs.o): Ditto.
5886 (fbsd-proc.o): Specify dependencies.
5887
5888 2002-08-02 Andrew Cagney <cagney@redhat.com>
5889
5890 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5891 regnum.
5892 (regcache_cooked_write): Ditto.
5893
5894 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5895
5896 * regcache.c (regcache_cooked_read): New function.
5897 (regcache_cooked_write): New function.
5898 (read_register_gen): Rewrite using regcache_cooked_read.
5899 (write_register_gen): Rewrite using regcache_cooked_write.
5900
5901 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5902 Declare.
5903
5904 2002-08-02 Andrew Cagney <cagney@redhat.com>
5905
5906 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5907 Replace the architecture methods register_read and register_write.
5908 * gdbarch.h, gdbarch.c: Regenerate.
5909 * regcache.c (init_regcache_descr): Update.
5910 (read_register_gen): Update.
5911 (write_register_gen): Update.
5912 (supply_register): Update comment.
5913
5914 * sh-tdep.c (sh_gdbarch_init): Update.
5915 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5916 `regcache' and `gdbarch' parameters. Make `buffer' a void
5917 pointer. Update code.
5918 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5919 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5920 void pointer. Update code.
5921 (sh64_register_write): Delete.
5922 (sh4_register_read): Delete.
5923 (sh64_register_read): Delete.
5924 (sh4_register_write): Delete.
5925 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5926 void pointer, `to' parameter a void pointer.
5927 (sh_sh64_register_convert_to_raw): Ditto.
5928
5929 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5930
5931 * mips-tdep.c (mips_register_virtual_type): Use architecture
5932 invariant return values.
5933
5934 2002-08-01 Andrew Cagney <cagney@redhat.com>
5935
5936 * linux-proc.c: Include "gdb_string.h".
5937 * Makefile.in (linux-proc.o): Update dependency list.
5938
5939 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5940
5941 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5942 comment.
5943
5944 2002-08-01 Grace Sainsbury <graces@redhat.com>
5945
5946 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5947 to_insert_watchpoint, to_remove_watchpoint,
5948 to_stopped_by_watchpoint, to_stopped_data_address,
5949 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5950 target vecctor. Define their corresponding macros so they call
5951 them.
5952
5953 * target.c: Add default and debug versions of for
5954 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5955 to_insert_watchpoint, to_remove_watchpoint,
5956 to_stopped_by_watchpoint, to_stopped_data_address,
5957 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5958
5959 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5960
5961 * mips-tdep.c (mips_register_virtual_type): New function.
5962 (mips_gdbarch_init): Register mips_register_virtual_type()
5963 with gdbarch machinery.
5964 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5965 this file instead of tm-bigmips.h.
5966 (MIPS_REGSIZE): Delete this macro.
5967 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5968 multiarch version in mips-tdep.c will be found.
5969
5970 2002-08-01 Andrew Cagney <cagney@redhat.com>
5971
5972 * NEWS: Menion that CHILL has been made obsolete.
5973
5974 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5975 * stabsread.c (read_range_type): Ditto.
5976 * gdbtypes.h: Ditto.
5977 * language.c (binop_type_check): Ditto.
5978 (binop_result_type): Ditto.
5979 (integral_type): Ditto.
5980 (character_type): Ditto.
5981 (string_type): Ditto.
5982 (boolean_type): Ditto.
5983 (structured_type): Ditto.
5984 (lang_bool_type): Ditto.
5985 (binop_type_check): Ditto.
5986 * language.h (_LANG_chill): Ditto.
5987 * dwarfread.c (set_cu_language): Ditto.
5988 * dwarfread.c (CHILL_PRODUCER): Ditto.
5989 * dwarfread.c (handle_producer): Ditto.
5990 * expression.h (enum exp_opcode): Ditto.
5991 * eval.c: Ditto for comments.
5992 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5993 * expprint.c (print_subexp): Ditto.
5994 (print_subexp): Ditto.
5995 * valops.c (value_cast): Ditto.
5996 (search_struct_field): Ditto.
5997 * value.h (COERCE_VARYING_ARRAY): Ditto.
5998 * symfile.c (init_filename_language_table): Ditto.
5999 (add_psymbol_with_dem_name_to_list): Ditto.
6000 * valarith.c (value_binop): Ditto.
6001 (value_neg): Ditto.
6002 * valops.c (value_slice): Ditto.
6003 * symtab.h (union language_specific): Ditto.
6004 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6005 (SYMBOL_DEMANGLED_NAME): Ditto.
6006 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6007 * defs.h (enum language): Ditto.
6008 * symtab.c (got_symtab): Ditto.
6009 * utils.c (fprintf_symbol_filtered): Ditto.
6010
6011 * ch-typeprint.c: Make file obsolete.
6012 * ch-valprint.c: Make file obsolete.
6013 * ch-lang.h: Make file obsolete.
6014 * ch-exp.c: Make file obsolete.
6015 * ch-lang.c: Make file obsolete.
6016
6017 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6018 CHILL_LIB.
6019 (TARGET_FLAGS_TO_PASS): Ditto.
6020 (CHILLFLAGS): Obsolete.
6021 (CHILL): Obsolete.
6022 (CHILL_FOR_TARGET): Obsolete.
6023 (CHILL_LIB): Obsolete.
6024 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6025 ch-valprint.c.
6026 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6027 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6028 ch-lang.o.
6029 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6030 targets.
6031
6032 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6033
6034 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6035 This does not change anything at the moment, but will be helpful
6036 later when full Ada support is integrated.
6037
6038 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6039
6040 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6041 help message.
6042
6043 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6044
6045 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6046 and save it in a local variable. Use variable in later test.
6047
6048 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6049
6050 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6051 test. (Thanks to Daniel Jacobowitz.)
6052
6053 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6054
6055 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6056 (mips_abi_strings): Add "n64".
6057 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6058
6059 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6060
6061 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6062 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6063
6064 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6065
6066 * utils.c (host_pointer_to_address, address_to_host_pointer):
6067 Use gdb_assert() instead of explicit call to internal_error().
6068
6069 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6070
6071 * Makefile.in (rs6000-nat.o): Update dependencies.
6072
6073 From Nicholas Duffek:
6074 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6075 (aix-thread.o): New rule.
6076 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6077 * config/powerpc/aix432.mh: New file.
6078
6079 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6080
6081 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6082 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6083 (fetch_core_registers, ppc_linux_supply_gregset)
6084 (ppc_linux_supply_fpregset): New functions.
6085 (ppc_linux_regset_core_fns): New.
6086 (_initialize_ppc_linux_tdep): Call add_core_fns.
6087 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6088 and ppc_linux_supply_gregset.
6089 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6090 (supply_fpregset): Call ppc_linux_supply_fpregset.
6091 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6092 corelow.o.
6093 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6094
6095 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6096
6097 * symtab.c (lookup_symbol): Demangle before lowercasing.
6098
6099 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6100
6101 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6102 declaration.
6103 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6104 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6105 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6106 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6107 "gdb_string.h".
6108 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6109 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6110 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6111 (avr-tdep.o, mon960-rom.o): Ditto.
6112 (aout_stabs_gnu_h): Define.
6113 (symtab_h): Remove $(gdb_obstack_h).
6114
6115 2002-07-30 Jim Blandy <jimb@redhat.com>
6116
6117 Patch from David Carlton <carlton@math.stanford.edu>:
6118 * gdbinit.in: Move the `dir' commands that add GDB's own source
6119 directory to the search path to the end, so that the `gdb' source
6120 directory will be searched first.
6121
6122 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6123
6124 * gdb_obstack.h: New file.
6125 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6126 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6127 * objfiles.h: Include "gdb_obstack.h".
6128 * Makefile.in (gdb_obstack_h): Define.
6129 (symtab_h): Add $(gdb_obstack_h).
6130 (objfiles_h): Add $(gdb_obstack_h).
6131
6132 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6133 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6134 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6135 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6136 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6137 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6138 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6139 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6140
6141 * Makefile.in (bcache.o): Update dependencies.
6142 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6143 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6144 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6145 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6146 (stabsread.o, symfile.o, symmisc.o): Ditto.
6147 (symtab.o, typeprint.o, macroexp.o): Ditto.
6148 (macrotab.o, mdebugread.o): Ditto.
6149 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6150 (coff_ecoff_h, aout_aout64_h): Define.
6151 (aout_stabs_gnu_h, libaout_h): Define.
6152
6153 2002-07-29 Andrew Cagney <cagney@redhat.com>
6154
6155 * regcache.c (struct regcache_descr): Rename nr_registers to
6156 nr_cooked_registers. Revise comments describing the structure
6157 member fields.
6158 (init_regcache_descr): Update.
6159 (init_legacy_regcache_descr): Update.
6160 (read_register_gen, write_register_gen): When a cooked register in
6161 the raw register range, directly access the value from the raw
6162 register cache.
6163
6164 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6165
6166 * z8k-tdep.c: Do not include "obstack.h".
6167 * h8300-tdep.c, h8500-tdep.c: Ditto.
6168 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6169 * valprint.c, v850-tdep.c: Ditto.
6170 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6171 * mn10200-tdep.c: Ditto.
6172
6173 * Makefile.in (z8k-tdep.o): Update dependencies.
6174 (m68hc11-tdep.o, valprint.o): Ditto.
6175 (v850-tdep.o, d10v-tdep.o): Ditto.
6176 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6177 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6178 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6179 (sh_opc_h, gdb_sim_sh_h): Define.
6180 (elf_sh_h, elf_bfd_h): Define.
6181 (opcode_m68hc11_h): Define.
6182 (OPCODES_SRC, OPCODES_DIR): define.
6183 (OPCODES): Use $(OPCODES_DIR).
6184 (gdb_sim_d10v_h): Rename sim_d10v_h.
6185 (gdb_sim_arm_h): Rename sim_arm_h.
6186
6187 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6188
6189 * utils.c (host_pointer_to_address, address_to_host_pointer):
6190 Change internal_error() message to indicate function responsible
6191 for the error.
6192
6193 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6194
6195 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6196 calls to local_hex_string_custom().
6197
6198 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6199
6200 * irix5-nat.c: Move IRIX shared library support from here...
6201 * solib-irix.c: ...to here. Revised substantially to work with
6202 generic solib framework.
6203
6204 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6205 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6206 * mips-irix-tdep.c: New file.
6207
6208 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6209 (mips-irix-tdep.o, solib-irix.o): New rules.
6210 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6211 solib-irix.o.
6212 * config/mips/irix6.mt (TDEPFILES): Likewise.
6213 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6214
6215 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6216
6217 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6218 disabled (via ``#if 0'') includes.
6219
6220 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6221
6222 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6223 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6224 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6225 Add support for the fpscr register.
6226 * rs6000-nat.c (regmap, fetch_inferior_registers)
6227 (store_inferior_registers, fetch_core_registers): Likewise.
6228
6229 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6230
6231 * rs6000-nat.c (language.h): Include.
6232 (special_regs): Delete this array.
6233 (regmap): New function.
6234 (fetch_register, store_register): Use regmap() to map gdb
6235 register numbers to ptrace register numbers. Also, use
6236 outputs from regmap() to make decisions regarding type of
6237 ptrace() call to make. In particular, don't compare against
6238 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6239 (fetch_inferior_registers, store_inferior_registers): Where
6240 possible, obtain register numbers from tdep struct. Don't
6241 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6242 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6243 (LAST_UISA_SP_REGNUM): Delete.
6244
6245 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6246
6247 * rs6000-nat.c (ppc-tdep.h): Include.
6248 (fetch_registers, store_register, fetch_core_registers): Don't
6249 access registers[] directly. Instead, use supply_register() or
6250 regcache_collect() as appropriate.
6251 (find_toc_address): Format hex address with local_hex_string().
6252
6253 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6254
6255 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6256 bfd/elf32-frv.c.
6257
6258 2002-07-24 Tom Tromey <tromey@redhat.com>
6259
6260 * jv-exp.y: Marked all strings with _().
6261 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6262 internal_error.
6263 (MethodInvocation, CastExpression, parse_number, yyerror,
6264 java_type_from_name, push_expression_name, yylex): Typo fixes.
6265
6266 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6267
6268 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6269 (tee_file_flush, tee_file_write, tee_file_fputs)
6270 (tee_file_isatty): New.
6271 * ui-file.h (tee_file_new): Add prototype.
6272
6273 2002-07-24 Aidan Skinner <aidan@velvet.net>
6274
6275 * ada-lang.c: Change k&r style function definitions to prototyped
6276 form.
6277 * ada-typeprint.c: Change k&r style function definitions to prototyped
6278 form.
6279 * ada-valprint.c: Change k&r style function definitions to prototyped
6280 form.
6281
6282 2002-07-24 Andrew Cagney <cagney@redhat.com>
6283
6284 * README: Remove reference to remote-bug.
6285 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6286 remote-bug.c.
6287 (m88k-nat.o): Delete rule.
6288 (m88k-tdep.o): Delete rule.
6289 (remote-bug.o): Delete rule.
6290 * MAINTAINERS: Mark as obsolete.
6291 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6292 * m88k-tdep.c: Make file obsolete.
6293 * config/m88k/m88k.mh: Ditto.
6294 * config/m88k/delta88v4.mh: Ditto.
6295 * config/m88k/delta88v4.mt: Ditto.
6296 * config/m88k/delta88.mt: Ditto.
6297 * config/m88k/delta88.mh: Ditto.
6298 * remote-bug.c: Ditto.
6299 * config/m88k/tm-delta88.h: Ditto.
6300 * config/m88k/nm-delta88v4.h: Ditto.
6301 * config/m88k/xm-delta88.h: Ditto.
6302 * config/m88k/xm-dgux.h: Ditto.
6303 * config/m88k/tm-m88k.h: Ditto.
6304 * config/m88k/nm-m88k.h: Ditto.
6305 * config/m88k/tm-delta88v4.h: Ditto.
6306 * m88k-nat.c: Ditto.
6307 * cxux-nat.c: Ditto.
6308 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6309 and m88*-*-* obsolete.
6310 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6311 m88*-*-* obsolete.
6312
6313 2002-07-24 Andrew Cagney <cagney@redhat.com>
6314
6315 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6316 constant. Same for local pointer variables.
6317 (extract_signed_integer): Ditto.
6318 * defs.h (extract_unsigned_integer): Update.
6319 (extract_signed_integer): Update.
6320
6321 2002-07-24 Andrew Cagney <cagney@redhat.com>
6322
6323 * regcache.c (regcache_raw_write): Change buf parameter to a
6324 constant void pointer.
6325 (regcache_raw_read): Change buf parameter to a void pointer.
6326 (legacy_write_register_gen): Change myaddr parameter a constant
6327 void pointer.
6328 (supply_register): Change val parameter to a const void pointer.
6329 * regcache.h (regcache_raw_write): Update declaration.
6330 (regcache_raw_read): Update declaration.
6331 (supply_register): Update declaration.
6332
6333 2002-07-24 Tom Tromey <tromey@redhat.com>
6334
6335 * defs.h (gdb_readline_wrapper): Declare.
6336 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6337 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6338 * top.c (gdb_readline_wrapper): New function.
6339 (command_line_input): Use it.
6340
6341 2002-07-24 Andrew Cagney <cagney@redhat.com>
6342
6343 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6344 regcache_read and regcache_write.
6345 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6346 * regcache.c: Update.
6347 * sh-tdep.c (sh64_push_arguments): Update comment.
6348 (sh_pseudo_register_read): Update.
6349 (sh_pseudo_register_write): Update.
6350 (sh4_register_read): Update.
6351 (sh4_register_write): Update.
6352 (sh64_pseudo_register_read): Update.
6353 (sh64_pseudo_register_write): Update.
6354 (sh64_register_read): Update.
6355 (sh64_register_write): Update.
6356 * i386-tdep.c (i386_extract_return_value): Update.
6357 (i386_extract_struct_value_address): Update.
6358 (i386_extract_return_value): Update.
6359 * blockframe.c (generic_read_register_dummy): Update.
6360 (generic_call_dummy_register_unwind): Update
6361 * infrun.c (write_inferior_status_register): Update.
6362
6363 2002-07-23 Jim Blandy <jimb@redhat.com>
6364
6365 * parser-defs.h (expression_context_pc): Make this extern.
6366 (Thanks to Michael Snyder.)
6367
6368 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6369
6370 GDB 5.2.1 released from 5.2 branch.
6371 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6372 * README: Update to mention 5.2.1.
6373
6374 2002-07-23 Mark Salter <msalter@redhat.com>
6375
6376 * remote.c (remote_read_bytes): Fix check for error.
6377
6378 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6379
6380 * aix-thread.c (language.h): Include.
6381 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6382 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6383 Print newlines at end of debug messages.
6384 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6385 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6386
6387 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6388
6389 * aix-thread.c (ppc-tdep.h): Include.
6390 (special_register_p): New function.
6391 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6392 (store_regs_user_thread): Use register number information from
6393 gdbarch_tdep struct instead of hardcoded offsets relative to
6394 FIRST_UISA_SP_REGNUM.
6395 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6396 special_register_p() instead of using FPLAST_REGNUM and
6397 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6398 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6399 will be MQ's register number.
6400
6401 2002-07-22 Michael Snyder <msnyder@redhat.com>
6402
6403 * aix-thread.c (ops): Rename to aix_thread_ops.
6404 (base_ops): Rename to base_target.
6405 (ops_attach): Rename to aix_thread_attach.
6406 (ops_detach): Rename to aix_thread_detach.
6407 (ops_resume): Rename to aix_thread_detach.
6408 (ops_wait): Rename to aix_thread_wait.
6409 (ops_kill): Rename to aix_thread_kill.
6410 (init_ops): Rename to init_aix_thread_ops.
6411 (ops_fetch_register): Rename to aix_thread_fetch_register.
6412 (ops_store_register): Rename to aix_thread_store_register.
6413 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6414 (ops_thread_alive): Rename to aix_thread_thread_alive.
6415 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6416 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6417 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6418 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6419 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6420 (store_regs_lib): Rename to store_regs_user_thread.
6421 (store_regs_kern): Rename to store_regs_kernel_thread.
6422
6423 2002-07-22 Michael Snyder <msnyder@redhat.com>
6424
6425 * aix-thread.c (ops_prepare_to_store): Eliminate.
6426 (init_ops): Don't initialize ops.prepare_to_store.
6427 (store_regs_kern): Pre-fetch register buffers from child,
6428 because some registers may not be in the cache. Copy
6429 regs from register cache only if they are cached.
6430 (store_regs_lib): Copy regs from register cache only
6431 if they are cached.
6432 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6433 fill_gprs64): Ditto.
6434
6435 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6436
6437 * aix-thread.c (gdb_assert.h): Include.
6438 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6439 register sizes (from register cache) match size of buffer holding
6440 register data.
6441 (fill_sprs32): Change parameter types to match those in the ptrace()
6442 buffer.
6443 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6444 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6445
6446 2002-07-22 Michael Snyder <msnyder@redhat.com>
6447
6448 * aix-thread.c (supply_sprs64): Cosmetic change.
6449 (supply_sprs32): Cosmetic change.
6450 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6451 (fill_sprs64): Use regcache_collect instead of read_register.
6452 (store_regs_lib): Use regcache_collect instead of
6453 read_register. Use fill_sprs32 instead of fill_sprs64,
6454 if debugging a 32-bit architecture.
6455 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6456 out of the register cache, instead of passing a pointer into
6457 the register cache directly to ptrace. Use regcache_collect
6458 insteaad of read_register.
6459 (ops_prepare_to_store): Use target_read_registers instead
6460 of read_register_bytes.
6461
6462 2002-07-20 Aidan Skinner <aidan@velvet.net>
6463
6464 * MAINTAINERS: Add self under write after approval.
6465
6466 2002-07-20 Aidan Skinner <aidan@velvet.net>
6467
6468 * ada-tasks.c: Change k&r style function definitions to prototyped
6469 form.
6470
6471 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6472
6473 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6474 * x86-64-tdep.c: Include "objfiles.h".
6475 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6476 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6477
6478 2002-07-17 Michal Ludvig <michal@suse.cz>
6479
6480 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6481 (update_context): Initialise cfa variable.
6482
6483 2002-07-17 Michael Snyder <msnyder@redhat.com>
6484
6485 * aix-thread.c: Shorten some long lines.
6486 Bring comments into line with code spec.
6487
6488 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6489
6490 * infrun.c: Re-indent using gdb_indent.sh.
6491
6492 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6493
6494 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6495 Leave the indentation temporarily untouched, to minimize the diffs.
6496
6497 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6498
6499 * stabsread.c: Make os9k sections of the code obsolete,
6500 for real this time.
6501 * stabsread.h: Make os9k sections of the code obsolete.
6502
6503 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6504
6505 * linux-low.c (regsets_store_inferior_registers): Add free()
6506 at the end of a loop to prevent memory leak.
6507 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6508 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6509 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6510 line a comment.
6511 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6512
6513 2002-07-17 Jim Blandy <jimb@redhat.com>
6514
6515 * macrocmd.c (info_macro_command): Remove newline from error
6516 message.
6517
6518 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6519
6520 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6521 (sh_gdbarch_init): Use it for sh-dsp.
6522
6523 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6524
6525 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6526 64-bit DWARF2 format.
6527
6528 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6529
6530 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6531 <sys/proc.h> when not available.
6532
6533 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6534
6535 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6536 * stabsread.c: Make os9k sections of the code obsolete.
6537 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6538 * config/i386/i386os9k.mt: Make file obsolete.
6539 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6540 (COMMON_OBS): Remove os9kread.o
6541 (SFILES): Remove os9kread.c.
6542 (os9kread.o, remote-os9k.o): Make target obsolete.
6543 * remote-os9k.c: Make file obsolete.
6544 * os9kread.c: Make file obsolete.
6545 * Makefile.in
6546
6547 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6548
6549 * NEWS: Mention that the FR30 has been made obsolete.
6550 * fr30-tdep.c: Make file obsolete.
6551 * config/fr30/tm-fr30.h: Ditto.
6552 * config/fr30/fr30.mt: Ditto.
6553 * configure.tgt: Make fr30-*-elf obsolete.
6554 * MAINTAINERS: Make fr30-elf obsolete.
6555
6556 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6557
6558 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6559 found is not inside a section.
6560
6561 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6562
6563 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6564 strerror().
6565 (pdc_realloc): Use xrealloc() instead of realloc().
6566
6567 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6568
6569 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6570 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6571 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6572 macros.
6573
6574 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6575
6576 * aix-thread.c (ptrace_check): Eliminate goto.
6577 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6578 problem.
6579
6580 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6581
6582 * aix-thread.c (gdbcmd.h): Include.
6583 (DEBUG, DBG, DBG2, dbg): Eliminate.
6584 (debug_aix_thread): New static global.
6585 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6586 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6587 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6588 invocations to DBG and DBG2 macros to test against
6589 ``debug_aix_thread'' and call fprintf_unfiltered().
6590 (_initialize_aix_thread): Add new command "set debug aix-thread".
6591
6592 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6593
6594 From Gerhard Tonn <TON@de.ibm.com>:
6595 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6596 instead of supply_register.
6597
6598 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6599
6600 * dwarf2cfi.c: Include "gdb_assert.h".
6601 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6602 non-NULL.
6603 (update_context): Do not use __func__. Add missing ``break''.
6604 (update_context): Do not use __func__.
6605
6606 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6607
6608 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6609 and its setting. Set gdbarch instruction printing functions
6610 directly. For non-rs6000 case use new function
6611 gdb_print_insn_powerpc.
6612 (gdb_print_insn_powerpc): New function.
6613
6614 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6615
6616 * NEWS: Mention that the d30v has been marked obsolete.
6617 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6618 * configure.tgt: Mark d30v-*-* as obsolete.
6619 * d30v-tdep.c: Mark file as obsolete.
6620 * config/d30v/d30v.mt: Ditto.
6621 * config/d30v/tm-d30v.h: Ditto.
6622
6623 2002-07-13 Aidan Skinner <aidan@velvet.net>
6624
6625 * ada-tasks.c (add_task_entry): replace calls to
6626 malloc() with xmalloc
6627 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6628
6629 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6630 ada_finish_decode_line_1, all_sals_for_line
6631 ada_breakpoint_rewrite): replace calls to free() with xfree()
6632
6633 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6634
6635 From Nicholas Duffek (with minor changes by Martin Hunt,
6636 Louis Hamilton, and Kevin Buettner):
6637 * aix-thread.c: New file.
6638
6639 2002-07-12 Petr Sorfa <petrs@caldera.com>
6640
6641 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6642 complaint for invalid attribute class or form.
6643 (read_func_scope): DW_AT_frame_base
6644 better handling of DW_AT_block*.
6645 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6646 better handling of DW_AT_block*.
6647 (read_common_block): DW_AT_location
6648 better handling of DW_AT_block*.
6649 (read_partial_die): DW_AT_location better handling
6650 of DW_AT_block*.
6651 (new_symbol): DW_AT_external better handling of
6652 DW_AT_block*. Proper initialization of variable
6653 "addr".
6654 (attr_form_is_block): New function that returns true
6655 if the attribute's form is of DW_FORM_block*.
6656
6657 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6658
6659 * valops.c (find_method_list): Remove comment about
6660 removed STATIC_MEMFUNCP argument.
6661 (value_find_oload_method_list): Likewise.
6662
6663 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6664
6665 From Nicholas Duffek:
6666 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6667 target_new_objfile_hook.
6668
6669 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6670
6671 From Nicholas Duffek:
6672 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6673 csect.
6674
6675 2002-07-12 Andrew Cagney <cagney@redhat.com>
6676
6677 * MAINTAINERS: Mention --enable-sim-build-warnings.
6678 (m68hc11-elf): Disable sim build warnings.
6679 (m32r-elf): Mark as broken obsolete candidate.
6680 (x86_64-linux-gnu): Mark as buildable with -Werror.
6681 (arm-elf): Change -w to ``,'' which enables warnings but not
6682 -Werror.
6683
6684 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6685
6686 * bcache.h: Update copyright.
6687 (struct bstring, struct bcache): Move definition to "bcache.c".
6688 Replaced by opaque declaration.
6689 (bcache_xfree): Replace free_bcache.
6690 (bcache_xmalloc, bcache_memory_used): Declare.
6691
6692 * bcache.c: Update copyright.
6693 (struct bstring, struct bcache): Moved to here from "bcache.h".
6694 Update comments.
6695 (bcache_xmalloc, bcache_memory_used): New functions.
6696 (bcache_xfree): Replace function free_bcache.
6697
6698 * Makefile.in (objfiles.o): Add $(bcache_h).
6699 (objfiles_h): Remove $(bcache_h).
6700 (symfile.o): Add $(bcache_h).
6701
6702 * symmisc.c: Update copyright.
6703 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6704 (print_objfile_statistics): Use bcache_memory_used.
6705
6706 * symfile.c: Include "bcache.h".
6707 (reread_symbols): Use bcache_xfree.
6708 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6709 (add_psymbol_to_list): Pass psymbol_cache by value.
6710 (add_psymbol_with_dem_name_to_list): Ditto.
6711
6712 * objfiles.h: Update copyright.
6713 (struct bcache): Declare opaque. Do not include "bcache.h".
6714 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6715 bcache'' pointers.
6716 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6717
6718 * objfiles.c: Include "bcache.h". Update copyright.
6719 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6720 macro_cache.
6721 (free_objfile): Use bcache_xfree.
6722
6723 2002-07-11 Grace Sainsbury <graces@redhat.com>
6724
6725 * monitor.c (monitor_fetch_register): Make name a constant.
6726 (monitor_store_register): Same.
6727
6728 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6729
6730 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6731 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6732 (finish_block) For non-function blocks, hash the symbol table. For
6733 function blocks, mark the symbol table as unhashed.
6734 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6735 (msymbol_hash_iw): Likewise.
6736 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6737 value.
6738 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6739 (lookup_minimal_symbol): Likewise for both.
6740 * symtab.h (struct block): Add `hashtable' flag. Comment the
6741 hashtable.
6742 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6743 (ALL_BLOCK_SYMBOLS): Update.
6744 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6745 (struct symbol): Add `hash_next' pointer.
6746 * symtab.c (lookup_block_symbol): Search using the hash table when
6747 possible.
6748 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6749 (search_symbols, find_addr_symbol): Likewise.
6750
6751 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6752 (read_dst_symtab): Likewise.
6753 * jv-lang.c (get_java_class_symtab): Likewise.
6754 * mdebugread.c: Include "gdb_assert.h".
6755 (shrink_block): Assert that the block being modified is not hashed.
6756 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6757 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6758 symbols.
6759 (dump_symtab): Recognize hashed blocks.
6760 * printcmd.c (print_frame_args): Assert that function blocks do not
6761 have hashed symbol tables.
6762 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6763 (fill_in_ada_prototype, debug_print_block): Likewise.
6764 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6765
6766 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6767
6768 * stack.c (print_frame): Use result of frame_address_in_block()
6769 instead of fi->pc when evaluating symbols.
6770 (backtrace_command_1): Ditto.
6771
6772 2002-07-11 Andrew Cagney <cagney@redhat.com>
6773
6774 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6775 Make static.
6776
6777 * arm-tdep.c (arm_register_name): Make return type constant.
6778
6779 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6780
6781 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6782 prototype.
6783 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6784 * s390-tdep.c (s390_fp_regnum): Ditto.
6785 (s390_read_fp): Ditto.
6786 (s390_pop_frame): Ditto.
6787 (_initialize_s390_tdep): Ditto.
6788 * remote.c (get_remote_state): Ditto.
6789 * procfs.c (mappingflags): Ditto.
6790 * memattr.c (_initialize_mem): Ditto.
6791 * mcore-tdep.c (mcore_pop_frame): Ditto.
6792 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6793 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6794 * language.c (set_case_str): Ditto.
6795 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6796 * frv-tdep.c (new_variant): Ditto.
6797 (frv_stopped_data_address): Ditto.
6798 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6799 (context_alloc): Ditto.
6800 (frame_state_alloc): Ditto.
6801 (unwind_tmp_obstack_init): Ditto.
6802 (unwind_tmp_obstack_free): Ditto.
6803 (cfi_read_fp): Ditto.
6804 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6805 (cris_pop_frame): Ditto.
6806 * c-lang.c (scanning_macro_expansion): Ditto.
6807 (finished_macro_expansion): Ditto.
6808 (c_preprocess_and_parse): Ditto.
6809 * gdbarch.sh: Ditto.
6810 * gdbarch.h, gdbarch.c: Regenerate.
6811 * config/mn10200/tm-mn10200.h: Adjust indentation.
6812 * target.c: Adjust indentation.
6813 * symtab.h: Adjust indentation.
6814 * stabsread.h: Adjust indentation.
6815 * remote-es.c: Adjust indentation.
6816 * os9kread.c: Adjust indentation.
6817
6818 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6819
6820 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6821 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6822
6823 2002-07-10 Grace Sainsbury <graces@redhat.com>
6824
6825 * NEWS: Mention m68k, mcore multi-arching.
6826 * MAINTAINERS: Change status of m68k, mcore to reflect
6827 multi-arching.
6828
6829 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6830
6831 * valops.c (find_overload_match): Free oload_syms.
6832
6833 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6834
6835 Define HAVE_SYS_PROC_H if sys/proc.h exists
6836 * configure.in: Add check for sys/proc.h
6837 * config.in: Regenerate.
6838 * configure: Regenerate.
6839
6840 2002-07-09 Grace Sainsbury <graces@redhat.com>
6841
6842 * config/m68k/tm-m68k.h: Remove macros wrapped in
6843 #if !GDB_MULTI_ARCH.
6844
6845 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6846
6847 * config.in, configure: Regenerate.
6848
6849 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6850
6851 * dwarf2cfi.c: Include "gcore.h".
6852 (execute_stack_op): Fix implementation of the
6853 DW_OP_deref and DW_OP_deref_size operators by letting do their
6854 lookup in the target.
6855
6856 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6857
6858 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6859 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6860 tdep->sc_sp_offset.
6861
6862 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6863
6864 Fix PR gdb/595, gdb/602
6865 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6866 Don't call value_cast, just read the vtable pointer; update comments
6867 to match.
6868
6869 2002-07-05 Grace Sainsbury <graces@redhat.com>
6870
6871 * config/mcore/tm-mcore.h: Remove file.
6872 * config/mcore/mcore.mt: Remove definition of TM_FILE
6873 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6874
6875 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6876
6877 * i386bsd-tdep.c: Include "gdb_string.h".
6878
6879 2002-07-04 Grace Sainsbury <graces@redhat.com>
6880
6881 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6882 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6883 mcore-tdep.
6884 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6885 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6886 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6887 (RETVAL_REGNUM): Move macros from tm-mcore.h
6888 (mcore_reg_struct_has_addr): New function.
6889 (mcore_gdbarch_init): Added initializations for the macros removed
6890 from tm-mcore.h.
6891
6892 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6893
6894 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6895 traditonal string branding within the ELF header.
6896
6897 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6898
6899 * symtab.c (remove_params): New function.
6900 (make_symbol_overload_list): Use it instead of cplus_demangle.
6901 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6902
6903 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6904
6905 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6906
6907 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6908 New variables.
6909 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6910 and tdep->sigtramp_end.
6911 * i386obsd-nat.c: New file.
6912 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6913
6914 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6915 Don't call get_current_frame().
6916
6917 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6918
6919 * i386-nat.c (child_post_startup_inferior): New function
6920 calling i386_cleanup_dregs if
6921 I386_USE_GENERIC_WATCHPOINTS is defined.
6922 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6923 conditional to acknowledge that i386-nat.c has its
6924 own child_post_startup_inferior function.
6925
6926 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6927
6928 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6929 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6930 instead of MAX_REGISTER_RAW_SIZE.
6931 (i386_extract_return_value, i386_extract_struct_value_address):
6932 Convert to use regcache.
6933 (i386_gdbarch_init): Set max_register_raw_size and
6934 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6935 Set extract_return_value and extract_struct_value_address instead
6936 of their deprecated variants.
6937
6938 Convert i386 target to generic dummy frames.
6939 * i386-tdep.c: Include "symfile.h".
6940 (i386_frameless_signal_p): Consider a function to be frameless if
6941 the pc points at the first instruction of the function.
6942 (i386_frame_chain): Handle (generic) call dummies.
6943 (i386_frame_saved_pc): Likewise.
6944 (i386_frame_init_saved_regs): Remove code dealing with call
6945 dummies on the stack.
6946 (i386_push_dummy_frame): Removed.
6947 (i386_call_dummy_words): Removed.
6948 (i386_fix_call_dummy): Removed.
6949 (i386_push_return_address): New function.
6950 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6951 parameter, and don't call get_current_frame.
6952 (i386_pop_frame): New function.
6953 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6954 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6955 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6956 call_dummy_length to 0, set call_dummy_words to NULL, set
6957 sizeof_call_dummy_words to 0, set fix_call_dummy to
6958 generic_fix_call_dummy, set pc_in_call_dummy to
6959 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6960 generic_push_dummy_frame, set push_return_address to
6961 i386_push_return_address and set frame_chain_valid to
6962 generic_file_frame_chain_valid.
6963
6964 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6965
6966 * gdbarch.sh (struct regcache): Add opaque declaration.
6967 (EXTRACT_RETURN_VALUE): New architecture method.
6968 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6969 * gdbarch.h, gdbarch.c: Regenerate.
6970 * arch-utils.c (legacy_extract_return_value): New function.
6971 * arch-utils.h (legacy_extract_return_value): Declare.
6972 * values.c (value_being_returned): Re-enable code handling
6973 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6974 deprecated_grub_regcache_for_registers call to block handling
6975 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6976 (EXTRACT_RETURN_VALUE): Do not define.
6977
6978 2002-07-03 Grace Sainsbury <graces@redhat.com>
6979
6980 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6981 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6982 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6983 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6984 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6985 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6986 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6987 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6988 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6989 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6990 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6991 argument so the function fits the prototype in the architecture
6992 vector.
6993 (mcore_pop_frame): Remove argument so the function fits the
6994 prototype. Use get_current_frame instead of the argument.
6995 (mcore_push_arguments): Change type of struct_return so the
6996 function can be used in the architecture vector.
6997 (mcore_store_struct_return): Add.
6998 (mcore_frame_init_saved_regs): Add.
6999 (mcore_gdbarch_init): Add function calls to replace the macros
7000 removed from tm-mcore.h
7001
7002 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7003
7004 * infcmd.c (print_return_value): Remove compatibility code calling
7005 deprecated_grub_regcache_for_registers.
7006
7007 * values.c: Include "regcache.h".
7008 (value_being_returned): Update. Use
7009 deprecated_grub_regcache_for_registers to extract the register
7010 buffer address.
7011 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7012 ``struct regcache''.
7013 * Makefile.in (values.o): Add dependency on $(regcache_h).
7014
7015 * inferior.h (run_stack_dummy): Change type of second parameter to
7016 a ``struct regcache''.
7017 * valops.c (hand_function_call): Change type of retbuf to ``struct
7018 regcache''. Allocate using regcache_xmalloc, clean using
7019 make_cleanup_regcache_xfree.
7020 * infcmd.c (run_stack_dummy): Update. Use
7021 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7022
7023 * regcache.c (do_regcache_xfree): New function.
7024 (make_cleanup_regcache_xfree): New function.
7025 * regcache.h (make_cleanup_regcache_xfree): Declare.
7026
7027 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7028
7029 * event-top.c (command_line_handler): Don't read past
7030 beginning of buffer.
7031
7032 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7033
7034 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7035 struct frame_id.
7036 (varobj_create): Store frame_id for root.
7037 (varobj_gen_name): Use xasprintf.
7038 (varobj_update): Save and restore frame using get_frame_id() and
7039 frame_find_by_id().
7040 (create_child): Use xasprintf.
7041 (new_root_variable): Initialize frame_id.
7042 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7043 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7044 to prevent memory leak.
7045
7046 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7047
7048 * valops.c (hand_function_call): Move declaration of retbuf to
7049 start of function, allocate using malloc, add a cleanup but before
7050 the inf_status cleanup, cleanup the buffer. Rename local variable
7051 old_chain to inf_status_cleanup.
7052
7053 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7054
7055 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7056
7057 * cli/cli-decode.c (cmd_func_p): New function.
7058 (cmd_func): New function.
7059
7060 * command.h: Add cmd_func() and cmd_func_p().
7061
7062 2002-07-03 Grace Sainsbury <graces@redhat.com>
7063
7064 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7065 (REGISTER_SIZE): Remove.
7066 (MAX_REGISTER_RAW_SIZE): Remove.
7067 (REGISTER_VIRTUAL_TYPE): Remove.
7068 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7069 (REGISTER_NAME): Remove.
7070 (USE_GENERIC_DUMMY_FRAMES): Remove.
7071 (CALL_DUMMY): Remove.
7072 (CALL_DUMMY_START_OFFSET): Remove.
7073 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7074 (CALL_DUMMY_LOCATION): Remove.
7075 (FIX_CALL_DUMMY): Remove.
7076 (CALL_DUMMY_ADDRESS): Remove.
7077 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7078 (SAVE_DUMMY_FRAME_TOS): Remove.
7079 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7080 (mcore_register_virtual_type): New function.
7081 (mcore_register_byte): New function.
7082 (mcore_register_size): New function.
7083 (mcore_register_name): New function.
7084 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7085 macros removed from tm-mcore.h.
7086 (mcore_dump_tdep): Add.
7087 (_initialize_mcore_tdep): Add gdbarch_register call.
7088
7089 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7090
7091 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7092 frameless_look_for_prologue, such that we actually call this
7093 function.
7094
7095 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7096
7097 * frame.h (frame_address_in_block): New function.
7098
7099 * blockframe.c (frame_address_in_block): New function extracted
7100 from get_frame_block().
7101 (get_frame_block): Use frame_address_in_block().
7102 (block_innermost_frame): Use frame_address_in_block() to match
7103 the frame pc address against the block boundaries rather than
7104 the frame pc directly. This prevents a failure when a frame pc
7105 is actually a return-address pointing immediately after the end
7106 of the given block.
7107
7108 2002-07-02 Grace Sainsbury <graces@redhat.com>
7109
7110 * MAINTAINERS: Add self under write after approval.
7111
7112 2002-07-02 Grace Sainsbury <graces@redhat.com>
7113
7114 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7115 used in architecture vector. The default is
7116 m68k_local_breakpoint_from_pc.
7117 (m68k_local_breakpoint_from_pc): Add.
7118 (enum): Add register numbers from tm-m68k.h.
7119 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7120 vector.
7121 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7122 GDB_MULTI_ARCH_PARTIAL.
7123 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7124 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7125 m68k-tdep.c.
7126 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7127 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7128 to enum in m68k-tdep.c
7129
7130 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7131
7132 * solib-osf.c (open_map): Compute the list of shared libraries
7133 loaded by the inferior, rather than the list of libraries loaded
7134 by GDB itself. Otherwise, GDB ends up reading the symbols from
7135 the wrong shared libraries...
7136
7137 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7138
7139 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7140 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7141 macros.
7142 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7143 Remove functions.
7144 (FRAMELESS_SIGNAL): Remove function.
7145 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7146 i386_linux_saved_pc_after_call): Removed.
7147 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7148 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7149 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7150
7151 * i386-tdep.c (i386_frameless_signal_p): New function.
7152 (i386_frame_chain): Deal with frameless signals.
7153 (i386_sigtramp_saved_sp): New function.
7154 (i386_frame_saved_pc): Deal with frameless signals.
7155 (i386_saved_pc_after_call): Make sure the correct value is
7156 returned just after entry into a sigtramp.
7157 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7158 i386fbsd4_sc_sp_offset): New variables.
7159 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7160 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7161 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7162 similiar to what we already did for sc_pc_offset.
7163 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7164 tdep->sc_sp_offset.
7165
7166 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7167
7168 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7169
7170 * config/i386/tm-x86-64linux.h: New.
7171 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7172 definitions.
7173 * config/i386/nm-x86-64.h: Rename to ...
7174 * config/i386/nm-x86-64linux.h: ... this one.
7175 * config/i386/x86-64linux.mh: Reflect the above change.
7176
7177 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7178
7179 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7180 with sigcontext_addr. Add sc_sp_offset.
7181 (i386bsd_sigtramp_saved_pc): Remove prototype.
7182 (i386bsd_sicontext_addr): Add prototype.
7183 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7184 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7185 (i386_svr4_sigtramp_saved_pc): Removed.
7186 (i386_svr4_sigcontext_addr): New function.
7187 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7188 Initialize tdep->sigcontext_addr instead. Initialize
7189 tdep->sc_pc_offset and tdep->sc_sp_offset.
7190 (i386_gdbarch_init): Likewise.
7191 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7192 any more.
7193 (i386bsd_sigtramp_saved_pc): Remove function.
7194 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7195 Initialize tdep->sigcontext_addr instead. Initialize
7196 tdep->sc_pc_offset.
7197 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7198 of tdep->sigtramp_saved_pc.
7199 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7200 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7201 instead.
7202
7203 * i386-tdep.c (i386_frameless_function_invocation,
7204 i386_frame_num_args, i386_frame_init_saved_regs,
7205 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7206 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7207 i386_extract_return_value, i386_store_return_value,
7208 i386_extract_struct_value_address, i386_register_virtual_type,
7209 i386_register_convertible, i386_register_convert_to_virtual,
7210 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7211 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7212 static.
7213
7214 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7215
7216 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7217
7218 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7219 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7220 this macro. Include "value.h".
7221
7222 2002-06-30 Aidan Skinner <aidan@velvet.net>
7223
7224 * ada-exp.tab.c: remove as it's a generated file
7225 * ada-lex.c: remove as it's a generated file
7226
7227 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7228
7229 * config/i386/tm-i386.h (struct frame_info, struct
7230 frame_saved_regs, struct value, struct type): Remove forward
7231 declarations.
7232
7233 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7234 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7235 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7236 (FILL_FPXREGSET): Define.
7237
7238 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7239
7240 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7241 i[3456]86-*-netbsd* case.
7242 * config/i386/tm-obsd.h: Removed.
7243 * config/i386/obsd.mt: Removed.
7244 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7245 core-aout.o.
7246 (MH_CFLAGS): Add -DYYDEBUG=0.
7247
7248 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7249 i386nbsd_sc_pc_offset on OpenBSD too.
7250
7251 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7252 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7253 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7254 define.
7255 * i386bsd-tdep.c: Include "arch-utils.h".
7256 (i386bsd_aout_in_solib_call_trampoline): New function.
7257 (i386bsd_init_abi): Set in_solib_call_trampoline to
7258 i386bsd_aout_in_solib_call_trampoline.
7259 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7260 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7261
7262 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7263
7264 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7265 (struct obstack, struct bcache): Add opaque declarations.
7266 * Makefile.in (macrotab_h): Update
7267
7268 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7269
7270 * blockframe.c (generic_find_dummy_frame): Change return type to
7271 ``struct regcache''.
7272 (struct dummy_frame): Replace field ``registers'' with regcache, a
7273 struct regcache object.
7274 (generic_find_dummy_frame): Update.
7275 (generic_push_dummy_frame): Update. Use regcache_xfree,
7276 regcache_xmalloc and regcache_cpy.
7277 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7278 regcache_xfree.
7279 (deprecated_generic_find_dummy_frame): Update.
7280 (generic_read_register_dummy): Update. Use
7281 regcache_read_as_address.
7282 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7283 (generic_get_saved_register): Update. Use regcache_read.
7284
7285 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7286
7287 * Makefile.in (objfiles_h): Add $(bcache_h).
7288 * objfiles.h: Include "bcache.h".
7289
7290 * Makefile.in (symtab_h): Remove $(bcache_h).
7291 * symtab.h: Do not include "bcache.h".
7292
7293 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7294
7295 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7296 generic_func_frame_chain_valid.
7297
7298 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7299
7300 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7301 * config/i386/tm-fbsd.h: Likewise.
7302
7303 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7304
7305 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7306 generic_unwind_get_saved_register.
7307
7308 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7309
7310 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7311 * regcache.c (supply_register): Add missing argument to
7312 register_buffer call.
7313
7314 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7315
7316 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7317 Solaris /bin/grep does not not like it. From Peter Schauer.
7318
7319 2002-06-26 Tom Tromey <tromey@redhat.com>
7320
7321 * command.h (add_setshow_cmd): Declare.
7322 (add_setshow_cmd_full): Declare.
7323 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7324 returns void. Use add_setshow_cmd_full.
7325 (add_setshow_cmd_full): New function.
7326 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7327 (add_setshow_boolean_cmd): Likewise.
7328
7329 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7330
7331 * config/vax/tm-vax.h: Protect from multiple inclusion.
7332 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7333 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7334 * config/vax/tm-vaxbsd.h: ...here. New file.
7335 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7336
7337 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7338
7339 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7340 (BELIEVE_PCC_PROMOTION): Remove.
7341 (AP_REGNUM): Move to...
7342 * config/vax/nm-vax.h: ...here.
7343 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7344 (vax_breakpoint_from_pc): New function.
7345 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7346 and gdbarch_believe_pcc_promotion.
7347
7348 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7349
7350 * Makefile.in (vax_tdep_h): Define.
7351 (vax-tdep.o): Use $(vax_tdep_h).
7352 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7353 (vax_dump_tdep): New function.
7354 (_initialize_vax_tdep): Register vax_dump_tdep.
7355 * vax-tdep.h: Include osabi.h.
7356 (struct gdbarch_tdep): New.
7357
7358 2002-06-26 Andrew Cagney <cagney@redhat.com>
7359
7360 * frame.h (deprecated_generic_find_dummy_frame): Rename
7361 generic_find_dummy_frame.
7362 * blockframe.c (generic_find_dummy_frame): Make static.
7363 (deprecated_generic_find_dummy_frame): New function.
7364 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7365 generic_find_dummy_frame with deprecated_find_dummy_frame.
7366 (sh64_nofp_frame_init_saved_regs): Ditto.
7367 (sh_fp_frame_init_saved_regs): Ditto.
7368 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7369 (s390_frame_chain): Ditto.
7370 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7371
7372 2002-06-26 Grace Sainsbury <graces@redhat.com>
7373
7374 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7375 gdbarch vector are at the top.
7376 (NUM_REGS): Remove.
7377 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7378 (FRAME_ARGS_ADDRESS): Remove.
7379 (FRAME_LOCALS_ADDRESS): Remove.
7380 (FRAME_NUM_ARGS): Remove.
7381 (FRAME_ARGS_SKIP): Remove.
7382 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7383 (m68k_gdbarch_init): Add gdbarch initializations for macros
7384 undefined in tm-m68k.h
7385
7386 2002-06-26 Grace Sainsbury <graces@redhat.com>
7387
7388 * monitor.h: Add the function regname to monitor_ops
7389 structure. This way NUM_REGS does not have to be a constant.
7390 * monitor.c (monitor_fetch_register): Added support for regname
7391 function. The function is called if the array regnames is NULL.
7392 (monitor_store_register): Same.
7393 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7394 regnames array.
7395 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7396 cpu32bug_cmds.regname to point to new function.
7397 * abug-rom.c (abug_regname): Same as above.
7398 (init_abug_cmds): Same.
7399 * dbug-rom.c (dbug_regname): Same as above.
7400 (init_dbug_cmds): Same.
7401 * remote-est.c (est_regname): Same.
7402 (init_est_cmds): Same.
7403 * rom68k-rom.c (rom68k_regname): Same.
7404 (init_rom68k_cmds): Same.
7405
7406 2002-06-25 Tom Tromey <tromey@redhat.com>
7407
7408 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7409
7410 2002-06-25 Andrew Cagney <cagney@redhat.com>
7411
7412 * infrun.c (stop_registers): Change variable's type to ``struct
7413 regcache'''.
7414 (xmalloc_inferior_status): Delete function.
7415 (free_inferior_status): Delete function.
7416 (normal_stop): Use regcache_cpy.
7417 (struct inferior_status): Change type of fields ``stop_registers''
7418 and ``registers'' to ``struct regcache''.
7419 (write_inferior_status_register): Use regcache_write.
7420 (save_inferior_status): Instead of calling
7421 xmalloc_inferior_status, allocate the inf_status buffer directly.
7422 Use regcache_dup_no_passthrough and regcache_dup to save the
7423 buffers.
7424 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7425 Replace the stop_registers regcache instead of overriding it. Use
7426 regcache_xfree. Instead of calling free_inferior_status, xfree
7427 the buffer directly.
7428 (discard_inferior_status): Use regcache_xfree. Instead of calling
7429 free_inferior_status, xfree the buffer directly.
7430 (build_infrun): Use regcache_xmalloc.
7431 (_initialize_infrun): Delete redundant call to build_infrun.
7432
7433 * Makefile.in (infcmd.o): Add $(regcache_h).
7434
7435 * infcmd.c: Include "regcache.h".
7436 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7437 obtain the address of `stop_registers' register buffer.
7438 (print_return_value): Ditto.
7439
7440 * inferior.h (struct regcache): Add opaque declaration.
7441 (stop_registers): Change variable's declared type to ``struct
7442 regcache''.
7443
7444 2002-06-24 Tom Tromey <tromey@redhat.com>
7445
7446 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7447 * target.c (initialize_targets): Fixed typo in
7448 trust-readonly-sections `show' documentation.
7449
7450 * main.c: Marked all strings with _().
7451
7452 2002-06-24 Don Howard <dhoward@redhat.com>
7453
7454 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7455 that means max CORE_ADDR+1.
7456 (lookup_mem_region): Ditto.
7457 (mem_info_command): Ditto.
7458
7459 2002-06-24 Grace Sainsbury <graces@redhat.com>
7460
7461 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7462 (REGISTER_BYTES_OK): Remove.
7463 (REGISTER_BYTES): Remove.
7464 (STORE_STRUCT_RETURN): Remove.
7465 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7466 (STORE_RETURN_VALUE): Remove.
7467 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7468 (FRAME_CHAIN): Remove.
7469 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7470 (FRAME_SAVED_PC): Remove.
7471 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7472 (m68k_store_struct_return): Add.
7473 (m68k_deprecated_extract_return_value): Add.
7474 (m68k_deprecated_extract_struct_value_address): Add.
7475 (m68k_store_return_value): Add.
7476 (m68k_frame_chain): Add.
7477 (m68k_frameless_function_invocation): Add.
7478 (m68k_frame_saved_pc): Add.
7479 (m68k_gdbarch_init): added set_gdbarch calls for new
7480 functions and deleted macros.
7481
7482 2002-06-23 Tom Tromey <tromey@redhat.com>
7483
7484 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7485 (ALLDEPFILES): Likewise.
7486 (udiheaders): Removed.
7487 (udip2soc.o): Likewise.
7488 (udi2go32.o): Likewise.
7489 (udr.o): Likewise.
7490 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7491
7492 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7493
7494 * infrun.c (_initialize_infrun): Delete unnecessary call to
7495 build_infrun.
7496
7497 * regcache.h: Update comments describing the regcache_cpy family
7498 of functions.
7499 (regcache_save, regcache_restore): Delete declaration.
7500 (regcache_save_no_passthrough): Delete declaration.
7501 (regcache_restore_no_passthrough): Delete declaration.
7502 * regcache.c (regcache_save): Delete function.
7503 (regcache_save_no_passthrough): Delete function.
7504 (regcache_restore): Delete function.
7505 (regcache_restore_no_passthrough): Delete function.
7506
7507 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7508
7509 * config/m68k/tm-m68k.h: Fix typo.
7510 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7511 (m68k_frame_init_saved_regs): Declare.
7512
7513 2002-06-21 Jim Blandy <jimb@redhat.com>
7514
7515 Remove some vestiges of Harris 88k support.
7516 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7517 register numbering quirk.
7518 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7519 odd symbols occurring in Harris 88k ELF targets.
7520
7521 2002-06-21 Tom Tromey <tromey@redhat.com>
7522
7523 * gdb_locale.h: New file.
7524 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7525 (defs_h): Added gdb_locale.h.
7526 * configure, config.in: Rebuilt.
7527 * configure.in (PACKAGE): Define.
7528 * defs.h: Include gdb_locale.h.
7529 * main.c (captured_main): Call setlocale, bindtextdomain,
7530 textdomain.
7531
7532 2002-06-21 Dave Brolley <brolley@redhat.com>
7533
7534 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7535 * config/frv/frv.mt: New file.
7536 * config/frv/tm-frv.h: New file.
7537 * configure.tgt: Support frv-*-*.
7538 * Makefile.in (frv-tdep.o): New target.
7539 * frv-tdep.c: New file.
7540 * NEWS: Mention frv.
7541
7542 2002-06-21 Dave Brolley <brolley@redhat.com>
7543
7544 * MAINTAINERS: Add self to "Write After Approval" list.
7545
7546 2002-06-21 Grace Sainsbury <graces@redhat.com>
7547
7548 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7549 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7550 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7551 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7552 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7553
7554 * m68k-tdep.c: Include arch-utils.h
7555 (m68k_register_raw_size): Add.
7556 (m68k_register_virtual_size): Add.
7557 (m68k_register_virtual_type): Add.
7558 (m68k_register_name): Add.
7559 (m68k_stack_align): Add.
7560 (m68k_register_byte): Add.
7561 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7562 tm-m68k.h.
7563
7564 2002-06-21 Grace Sainsbury <graces@redhat.com>
7565
7566 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7567 m68k_find_saved_regs.
7568 (m68k_pop_frame): Removed saved_regs structure, and replaced
7569 references to it with frame->saved_regs.
7570 (m68k_gdbarch_init): Added function calls to initialize the
7571 gdbarch structure.
7572 (m68k_fix_call_dummy): Add.
7573 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7574 (CALL_DUMMY): Remove.
7575 (CALL_DUMMY_LENGTH): Remove.
7576 (CALL_DUMMY_START_OFFSET): Remove.
7577 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7578 (FIX_CALL_DUMMY): Remove.
7579 (PUSH_DUMMY_FRAME): Remove.
7580 (POP_FRAME): Remove.
7581
7582 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7583
7584 * parse.c (parse_fprintf): New function used to avoid calls to
7585 fprintf in bison parser generated debug code.
7586 * parser-defs.h: Declaration of new parse_fprintf function.
7587 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7588 Set YYDEBUG to 1 by default.
7589 Set YYFPRINTF as parse_fprintf.
7590
7591 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7592
7593 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7594 encoding anymore.
7595 (pointer_encoding, enum ptr_encoding): New.
7596 (execute_cfa_program): Take care about pointer encoding.
7597 (dwarf2_build_frame_info): Only call parse_frame_info for
7598 .debug_frame and .eh_frame.
7599 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7600 fixed augmentation handling, added relative addressing,
7601 ignore duplicate FDEs. Added comments.
7602 * dwarf2cfi.c: Reindented.
7603
7604 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7605
7606 * event-top.c (command_handler): Don't use space_at_cmd_start
7607 unless there is sbrk() on the host. Assign time and space data
7608 to union fields of the appropriate length.
7609
7610 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7611
7612 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7613 x86_64_register_name. Return type changed to 'const char *'.
7614 (x86_64_register_name2nr): Rename to x86_64_register_number.
7615 (x86_64_gdbarch_init): Update to reflect the change.
7616 * x86-64-tdep.h: Ditto.
7617 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7618 (supply_fpregset): Ditto.
7619
7620 2002-06-19 Andrew Cagney <cagney@redhat.com>
7621
7622 * regcache.h: Update copyright.
7623 (struct regcache, struct gdbarch): Add opaque declarations.
7624 (current_regcache): Declare global variable.
7625 (regcache_read, regcache_write): Add gdbarch parameter.
7626 (regcache_save, regcache_save_no_passthrough)
7627 (regcache_restore, regcache_restore_no_passthrough)
7628 (regcache_dup, regcache_dup_no_passthrough)
7629 (regcache_cpy, regcache_cpy_no_passthrough)
7630 (deprecated_grub_regcache_for_registers)
7631 (deprecated_grub_regcache_for_register_valid)
7632 (regcache_valid_p): Add function declarations.
7633
7634 * regcache.c: Update copyright.
7635 (regcache_descr_handle): New global variable.
7636 (struct regcache_descr): Define.
7637 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7638 (regcache_descr, xfree_regcache_descr): New functions.
7639 (struct regcache): Define.
7640 (regcache_xmalloc, regcache_xfree): New functions.
7641 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7642 (regcache_dup, regcache_dup_no_passthrough): New functions.
7643 (regcache_valid_p, regcache_read_as_address): New functions.
7644 (deprecated_grub_regcache_for_registers): New function.
7645 (deprecated_grub_regcache_for_register_valid): New function.
7646 (current_regcache): New global variable.
7647 (register_buffer): Add regcache parameter. Update calls.
7648 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7649 (read_register_gen, write_register_gen): Update register_buffer
7650 call. Test for legacy_p instead of gdbarch_register_read_p or
7651 gdbarch_register_write_p.
7652 (regcache_collect): Update register_buffer call.
7653 (build_regcache): Rewrite. Use deprecated grub functions.
7654 (regcache_save, regcache_save_no_passthrough): New functions.
7655 (regcache_restore, regcache_restore_no_passthrough): New
7656 functions.
7657 (_initialize_regcache): Create the regcache_data_handle. Swap
7658 current_regcache global variable.
7659
7660 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7661 parameter to regcache_read and regcache_write calls.
7662 (sh4_register_read): Ditto.
7663 (sh64_pseudo_register_read): Ditto.
7664 (sh64_register_read): Ditto.
7665 (sh_pseudo_register_write): Ditto.
7666 (sh4_register_write): Ditto.
7667 (sh64_pseudo_register_write): Ditto.
7668 (sh64_register_write): Ditto.
7669
7670 * defs.h (XCALLOC): Define.
7671
7672 2002-06-19 Grace Sainsbury <graces@redhat.com>
7673
7674 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7675 * m68k-tdep.c (m68k_gdbarch_init): Added.
7676 (m68k_dump_tdep): Added.
7677
7678 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7679
7680 * ada-lang.c (fill_in_ada_prototype): Update comment.
7681
7682 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7683
7684 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7685 MIPS_ABI_LAST.
7686 (mips_abi_string, mips_abi_strings): New.
7687 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7688 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7689 tdep->mips_abi_string. Honor mips_abi_string. Default to
7690 O32 if no ABI is found.
7691 (mips_dump_tdep): Use mips_abi_strings.
7692 (mips_abi_update): New function.
7693 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7694 ``set mips abi'' and ``show mips abi''. Check the size of
7695 mips_abi_strings.
7696
7697 2002-06-19 Andrew Cagney <cagney@redhat.com>
7698
7699 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7700 constant.
7701
7702 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7703
7704 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7705 current frame using only the first stack size adjustment. All
7706 subsequent size adjustments are not considered to be part of
7707 the "static" part of the current frame.
7708 Compute the address of the saved registers relative to the
7709 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7710 in use in this frame.
7711
7712 2002-06-18 Don Howard <dhoward@redhat.com>
7713
7714 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7715 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7716 suggesting this solution.
7717
7718 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7719
7720 * config/romp/xm-rtbsd.h: Delete file.
7721 * config/romp/rtbsd.mh: Delete file.
7722
7723 2002-06-18 Keith Seitz <keiths@redhat.com>
7724
7725 * breakpoint.c (condition_command): Post breakpoint_modify
7726 when a condition is added to an existing breakpoint.
7727 (commands_command): Likewise for commands.
7728 (set_ignore_count): Likewise for ignore counts.
7729 If no tty, do not simply return, still need to send event
7730 notification.
7731 (ignore_command): Only print a newline if the command came
7732 from a tty.
7733 Don't call breakpoints_changed, since this is now properly
7734 handled by set_ignore_count.
7735
7736 2002-06-18 Andrew Cagney <cagney@redhat.com>
7737
7738 * MAINTAINERS: Note that cris-elf target can be compiled with
7739 -Werror.
7740 * cris-tdep.c (cris_register_name): Make return type constant.
7741 (cris_breakpoint_from_pc): Ditto.
7742
7743 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7744
7745 * frame.h (struct frame_info): Change type of context to
7746 'struct context'.
7747
7748 2002-06-17 Andrew Cagney <cagney@redhat.com>
7749
7750 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7751 pointer.
7752 * gdbarch.h, gdbarch.c: Regenerate.
7753 * config/mips/tm-mips.h (mips_register_name): Update.
7754 * i386-tdep.h (i386_register_name): Update.
7755 * mips-tdep.c (mips_register_name): Update
7756 * alpha-tdep.c (alpha_register_name): Update.
7757 * arch-utils.c (legacy_register_name): Update.
7758 * arch-utils.h (legacy_register_name): Update.
7759 * avr-tdep.c (avr_register_name): Update.
7760 * ia64-tdep.c (ia64_register_name): Update.
7761 * i386-tdep.c (i386_register_name): Update.
7762 * sparc-tdep.c (sparc32_register_name): Update.
7763 (sparc64_register_name): Update.
7764 (sparclite_register_name): Update.
7765 (sparclet_register_name): Update.
7766 * sh-tdep.c (sh_generic_register_name): Update.
7767 (sh_sh_register_name): Update.
7768 (sh_sh3_register_name): Update.
7769 (sh_sh3e_register_name): Update.
7770 (sh_sh_dsp_register_name): Update.
7771 (sh_sh3_dsp_register_name): Update.
7772 (sh_sh4_register_name): Update.
7773 (sh_sh64_register_name): Update.
7774 * s390-tdep.c (s390_register_name): Update.
7775 * rs6000-tdep.c (rs6000_register_name): Update.
7776 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7777 (ns32k_register_name_32382): Update.
7778 * d10v-tdep.c (d10v_ts2_register_name): Update.
7779 (d10v_ts3_register_name): Update.
7780 * xstormy16-tdep.c (xstormy16_register_name): Update.
7781 * vax-tdep.c (vax_register_name): Update.
7782 * v850-tdep.c (v850_register_name): Update.
7783 * m68hc11-tdep.c (m68hc11_register_name): Update.
7784 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7785 (am33_register_name): Update.
7786
7787 2002-06-17 Grace Sainsbury <graces@redhat.com>
7788
7789 * m68k-tdep.c: Reindented.
7790
7791 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7792
7793 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7794 list of predefined types.
7795
7796 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7797
7798 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7799 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7800 REGISTER_CONVERT_TO_RAW): Remove defines.
7801 (i386_register_virtual_type, i386_register_convertible,
7802 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7803 Remove prototypes.
7804 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7805 macros mentioned above.
7806
7807 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7808 (i386lynx_saved_pc_after_call): Remove prototype.
7809 * i386ly-tdep.c: Include "i386-tdep.h".
7810 (i386lynx_saved_pc_after_call): Make static. Use
7811 read_memory_nobpt instead of read_memory. Use
7812 read_memory_unsigned_integer instead of read_memory_integer.
7813 (i386lynx_init_abi): New function.
7814 (i386lynx_coff_osabi_sniffer): New function.
7815 (_initialize_i386bsd_tdep): New function.
7816
7817 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7818 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7819 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7820 (i386_fix_call_dummy): Remove prototype.
7821 * i386-tdep.c (i386_call_dummy_words): New variable.
7822 (i386_gdbarch_init): Adjust for removal of the
7823 macros mentioned above.
7824
7825 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7826
7827 * command.h (add_setshow_auto_boolean_cmd): Replace
7828 add_set_auto_boolean_cmd.
7829 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7830 add_set_auto_boolean_cmd.
7831 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7832 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7833 mask-address'' command.
7834 (show_mask_address): Add cmd parameter.
7835 * remote.c (add_packet_config_cmd): Update. Change type of
7836 set_func and show_func to cmd_sfunc_ftype.
7837 (_initialize_remote): Update `set remote Z-packet'
7838 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7839 (show_remote_protocol_e_packet_cmd): Ditto.
7840 (show_remote_protocol_E_packet_cmd): Ditto.
7841 (show_remote_protocol_P_packet_cmd): Ditto.
7842 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7843 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7844 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7845 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7846 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7847 (show_remote_protocol_Z_packet_cmd): Ditto.
7848 (show_remote_protocol_binary_download_cmd): Ditto.
7849 (show_remote_cmd): Pass NULL to all of above.
7850
7851 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7852
7853 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7854 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7855 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7856 POP_FRAME): Remove defines.
7857 (i386_push_arguments, i386_store_struct_return,
7858 i386_extract_return_value, i386_store_return_value,
7859 i386_extract_struct_value_address, i386_push_dummy_frame,
7860 i386_pop_frame): Renove prototypes.
7861 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7862 macros mentioned above.
7863
7864 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7865
7866 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7867 add_set_boolean_cmd.
7868 (add_setshow_cmd): New function.
7869 * command.h (add_setshow_boolean_cmd): Replace
7870 add_set_boolean_cmd.
7871 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7872 and ``set rdiromatzero''.
7873 * maint.c (_initialize_maint_cmds): Update commented out code.
7874 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7875 * target.c (initialize_targets): Update `set
7876 trust-readonly-sections'.
7877 * remote.c (_initialize_remote): Update `set remotebreak'.
7878
7879 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7880
7881 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7882 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7883 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7884 fit into multi-arch framework.
7885 (i386_breakpoint_from_pc): New function.
7886 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7887 above.
7888
7889 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7890 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7891 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7892 (i386_frameless_function_invocation, i386_frame_num_args,
7893 i386_frame_init_saved_regs): Remove prototypes.
7894 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7895 macros mentioned above.
7896
7897 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7898
7899 * cli/cli-decode.c (set_cmd_cfunc): Update.
7900 (set_cmd_sfunc): Update.
7901 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7902 (set_cmd_sfunc, set_cmd_cfunc): Update.
7903 * cli/cli-decode.h: Update.
7904
7905 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7906
7907 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7908 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7909
7910 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7911
7912 * defs.h (auto_boolean): Declare enum.
7913 * command.h (cmd_auto_boolean): Delete enum.
7914 * mips-tdep.c (mask_address_var): Update.
7915 (mips_mask_address_p): Update.
7916 (show_mask_address): Update.
7917 * remote.c (struct packet_config): Update.
7918 (update_packet_config): Update.
7919 (show_packet_config_cmd): Update.
7920 (packet_ok): Update.
7921 (add_packet_config_cmd): Update.
7922 (_initialize_remote):
7923 * command.h: Update.
7924 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7925 (do_setshow_command): Update.
7926 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7927 * cli/cli-decode.h: Update.
7928
7929 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7930
7931 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7932 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7933 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7934 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7935 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7936 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7937
7938 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7939 list of DJGPP COFF targets.
7940
7941 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7942 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7943 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7944 (FP0_REGNUM): Remove define.
7945 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7946 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7947 (i386_register_virtual_size): Remove protoype.
7948 * i386-tdep.c (i386_register_virtual_size): Removed.
7949 (i386_extract_return_value, i386_store_return_value): Use
7950 FP0_REGNUM instead of NUM_FREGS to determine whether the
7951 floating-point registers are available.
7952 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7953 Adjust for removal of macros mentioned above.
7954
7955 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7956
7957 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7958 comments.
7959 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7960 Remove prototypes.
7961 (supply_gregset, fill_gregset): Remove use of register keyword and
7962 remove declaration for regmap. Use I386_NUM_GREGS instead of
7963 NUM_REGS and NUM_FREGS.
7964 (FPREGSET_FSAVE_OFFSET): Remove.
7965 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7966 NUM_FREGS to determine whether the floating-point registers are
7967 available.
7968
7969 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7970 gnu_store_registers): Replace usage of NUM_GREGS with
7971 I386_NUM_GREGS.
7972
7973 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7974 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7975 usage of NUM_GREGS with I386_NUM_GREGS.
7976
7977 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7978
7979 * i386bsd-nat.c: Include "i386-tdep.h".
7980 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7981 I386_NUM_GREGS.
7982
7983 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7984 and associated comment. They no longer make any sense, since we
7985 don't use this file anymore on Linux.
7986
7987 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7988 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7989 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7990 elements in these arrays.
7991 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7992 MAX_NUM_REGS.
7993
7994 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7995
7996 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7997 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7998
7999 2002-06-14 Andrew Cagney <cagney@redhat.com>
8000
8001 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8002 EXTRACT_RETURN_VALUE.
8003 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8004 EXTRACT_STRUCT_VALUE_ADDRESS.
8005 * gdbarch.h, gdbarch.c: Regenerate.
8006
8007 * values.c (value_being_returned): Handle
8008 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8009 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8010
8011 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8012 * arm-tdep.c (arm_gdbarch_init): Update.
8013 * avr-tdep.c (avr_gdbarch_init): Update.
8014 * cris-tdep.c (cris_gdbarch_init): Update.
8015 * d10v-tdep.c (d10v_gdbarch_init): Update.
8016 * ia64-tdep.c (ia64_gdbarch_init): Update.
8017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8018 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8019 * s390-tdep.c (s390_gdbarch_init): Update.
8020 * sh-tdep.c (sh_gdbarch_init): Update.
8021 * s390-tdep.c (s390_gdbarch_init): Update.
8022 * sparc-tdep.c (sparc_gdbarch_init): Update.
8023 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8024 * v850-tdep.c (v850_gdbarch_init): Update.
8025 * vax-tdep.c (vax_gdbarch_init): Update.
8026 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8028
8029 * config/arc/tm-arc.h: Update.
8030 * config/d30v/tm-d30v.h: Update.
8031 * config/fr30/tm-fr30.h: Update.
8032 * config/h8300/tm-h8300.h: Update.
8033 * config/h8500/tm-h8500.h: Update.
8034 * config/i386/tm-i386.h: Update.
8035 * config/i386/tm-ptx.h: Update.
8036 * config/i386/tm-symmetry.h: Update.
8037 * config/i960/tm-i960.h: Update.
8038 * config/m32r/tm-m32r.h: Update.
8039 * config/m68k/tm-delta68.h: Update.
8040 * config/m68k/tm-linux.h: Update.
8041 * config/m68k/tm-m68k.h: Update.
8042 * config/m88k/tm-m88k.h: Update.
8043 * config/mcore/tm-mcore.h: Update.
8044 * config/mips/tm-mips.h: Update.
8045 * config/mn10200/tm-mn10200.h: Update.
8046 * config/pa/tm-hppa.h: Update.
8047 * config/pa/tm-hppa64.h: Update.
8048 * config/sparc/tm-sp64.h: Update.
8049 * config/sparc/tm-sparc.h: Update.
8050 * config/sparc/tm-sparclet.h: Update.
8051 * config/z8k/tm-z8k.h: Update.
8052
8053 2002-06-14 Andrew Cagney <cagney@redhat.com>
8054
8055 * Makefile.in (i386_linux_tdep_h): Define.
8056 (i386_tdep_h, i387_tdep_h): Define.
8057 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8058 $(i386_tdep_h) and $(i387_tdep_h).
8059 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8060
8061 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8062
8063 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8064 Already covered by the default.
8065
8066 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8067 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8068 (i386_gdbarch_init): Initialize long_double_format and long_double
8069 bit.
8070
8071 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8072 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8073 Move these to ...
8074 * config/i386/i386sol2.mh: ... here.
8075 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8076 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8077 (SIGCONTEXT_PC_OFFSET): Remove define.
8078 (IN_SIGTRAMP): Remove define.
8079 * i386-sol2-tdep.c: New file.
8080
8081 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8082 * config/i386/tm-i386nw.h: Removed.
8083
8084 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8085 USE_STRUCT_CONVENTION): Remove defines.
8086 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8087 (get_longjmp_target): Remove prototype.
8088 (IN_SIGTRAMP): Remove define.
8089 (i386bsd_in_sigtramp): Remove prototype.
8090 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8091 function. Update comment accordingly
8092 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8093 (FRAME_SAVED_PC): Remove define.
8094 (i386bsd_frame_saved_pc): Remove prototype.
8095 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8096 GET_LONGJMP_TARGET): Remove defines.
8097 (get_longjmp_target): Remove prototype.
8098 (IN_SIGTRAMP): Remove define.
8099 (i386bsd_in_sigtramp): Remove prototype.
8100 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8101 function. Update comment accordingly
8102 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8103 (FRAME_SAVED_PC): Remove define.
8104 (i386bsd_frame_saved_pc): Remove prototype.
8105 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8106 Remove prototype.
8107 (USE_STRUCT_CONVENTION): Remove prototype.
8108 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8109 declaration.
8110 (_initialize_i386bsd_nat): Revise logic to determine some
8111 constants at compile time when compiling a native GDB. Warn if
8112 things don't match up with what we expect.
8113 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8114 Remove variables.
8115 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8116 to use date stored in `struct gdbarch_tdep'.
8117 (i386bsd_sigcontext_offset): Remove varaible.
8118 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8119 stored in `struct gdbarch_tdep'.
8120 (i386bsd_frame_saved_pc): Make static.
8121 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8122 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8123 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8124 i386fbsd4_sc_pc_offset): New variables.
8125 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8126 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8127 functions.
8128 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8129 functions.
8130 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8131 Modify the value of i386fbsd_sigtramp_start and
8132 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8133 i386fbsd_sigtramp_end.
8134 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8135 function.
8136
8137 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8138 define to i386-linux-tdep.h.
8139 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8140 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8141 defines.
8142 (i386_linux_register_name, i386_linux_register_byte,
8143 i386_linux_register_raw_size): Remove prototypes.
8144 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8145 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8146 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8147 TARGET_WRITE_PC): Remove defines.
8148 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8149 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8150 i386_linux_write_pc): Remove prototypes.
8151 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8152 (get_longjmp_target): Remove prototype.
8153 * i386-linux-tdep.h: New file.
8154 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8155 * i386-linux-tdep.c: Include "i386-tdep.h" and
8156 "i386-linux-tdep.h".
8157 (i386_linux_register_name, i386_linux_register_byte,
8158 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8159 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8160 Make static.
8161 (i386_linux_init_abi): New function.
8162 (_initialize_i386_linux_tdep): New function.
8163
8164 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8165 (i386_saved_pc_after_call): Remove prototype.
8166 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8167 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8168 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8169 (i386_register_name, i386_stab_reg_to_regnum,
8170 i386_dwarf_reg_to_regnum): Remove prototypes.
8171 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8172 SIZEOF_SSE_REGS): Remove defines.
8173 (REGISTER_BYTES): Remove define.
8174 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8175 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8176 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8177 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8178 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8179 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8180 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8181 (get_longjmp_target): Remove prototype.
8182 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8183 (sigtramp_saved_pc): Remove define.
8184 (i386v4_sigtramp_saved_pc): Remove prototype.
8185 * config/i386/tm-go32.h (FRAME_CHAIN,
8186 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8187 (i386go32_frame_saved_pc): Remove prototype.
8188 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8189 (get_longjmp_target): Remove prototype.
8190 * i386-tdep.h: Include "osabi.h".
8191 (enum i386_abi): Removed.
8192 (enum struct_return): New enum.
8193 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8194 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8195 sc_pc_offset members.
8196 (i386_gdbarch_register_os_abi): Remove prototype.
8197 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8198 I386_SSE_NUM_REGS): New defines.
8199 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8200 I386_SSE_SIZEOF_REGS): New defines.
8201 (i386_register_name, i386_register_byte, i386_register_raw_size):
8202 New prototypes.
8203 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8204 (i386bsd_sigtramp_saved_pc): New prototype.
8205 * i386-tdep.c: Don't include "elf-bfd.h".
8206 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8207 i386_frame_chain, i386_saved_pc_after_call): Make static.
8208 (i386_frame_saved_pc): Rewrite to call architecture dependent
8209 function to deal with signal handlers. Make static.
8210 (i386go32_frame_saved_pc): Removed.
8211 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8212 Removed.
8213 (i386_get_longjmp_target): New function.
8214 (default_struct_convention, pcc_struct_convention,
8215 reg_struct_convention, valid_conventions, struct_convention): New
8216 variables.
8217 (i386_use_struct_convention): New function.
8218 (i386v4_sigtramp_saved_pc): Renamed to
8219 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8220 (i386_pc_in_sigtramp): New function.
8221 (i386_abi_names): Removed.
8222 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8223 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8224 Removed.
8225 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8226 i386_gdbarch_register_os_abi): Removed.
8227 (struct i386_abi_handler): Removed.
8228 (i386_abi_handler_list): Removed.
8229 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8230 functions.
8231 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8232 i386_nw_init_abi): New functions.
8233 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8234 Use set_gdbarch_xxx() calls instead of relying on macros for a
8235 number of calls.
8236 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8237 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8238 Register the various architecture variants defined in this file.
8239
8240 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8241
8242 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8243 (struct main_type): Remove arg_types member. Update comments for
8244 struct field.
8245 (TYPE_ARG_TYPES): Remove.
8246 (TYPE_FN_FIELD_ARGS): Update.
8247 (smash_to_method_type): Update prototype.
8248
8249 * c-typeprint.c (cp_type_print_method_args): Take method type
8250 instead of argument list. Use new argument layout. Simplify.
8251 (c_type_print_args): Use new argument layout. Simplify.
8252 (c_type_print_base): Update call to cp_type_print_method_args.
8253 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8254 argument; use die->type instead. Update call to
8255 smash_to_method_type.
8256 (read_structure_scope): Update call to dwarf2_add_member_fn.
8257 * gdbtypes.c (allocate_stub_method): Update comment.
8258 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8259 Use new argument layout.
8260 (check_stub_method): Use new argument layout. Don't count
8261 void as an argument.
8262 (print_arg_types): Update comments. Use new argument layout.
8263 (recursive_dump_type): Don't print arg_types member.
8264 * hpread.c (hpread_read_struct_type): Use new argument layout.
8265 (fixup_class_method_type): Likewise.
8266 (hpread_type_lookup): Likewise.
8267 * stabsread.c (read_type): Update calls to read_args and
8268 smash_to_method_type.
8269 (read_args): Use new argument layout. Simplify.
8270 * valops.c (typecmp): Use new argument layout. Update parameters
8271 and comments. Simplify.
8272 (hand_function_call): Use new argument layout.
8273 (search_struct_method): Update call to typecmp.
8274 (find_overload_match): Use new argument layout.
8275
8276 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8277
8278 * NEWS: Mention multithreaded debug support for gdbserver.
8279
8280 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * MAINTAINERS: Mention NEWS.
8283
8284 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8285
8286 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8287 (struct mips_objfile_private, compare_pdr_entries): New.
8288 (non_heuristic_proc_desc): Read the ".pdr" section if it
8289 is present.
8290
8291 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8292
8293 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8294 (arm_debug): New static variable.
8295 (_initialize_arm_tdep): Add ``set debug arm'' command.
8296
8297 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8298
8299 * Makefile.in (sim_arm_h): Define.
8300 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8301 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8302 (arm_register_sim_regno): New function, map an internal REGNUM
8303 onto a simulator register number.
8304 (arm_gdbarch_init): Set register_sim_regno.
8305
8306 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8307
8308 * MAINTAINERS: Add self.
8309
8310 2002-06-11 Jim Blandy <jimb@redhat.com>
8311
8312 * source.c (source_info): Mention whether the symtab has
8313 information about preprocessor macros.
8314
8315 Call the command `info macro', not `show macro'.
8316 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8317 Fix error message.
8318 (_initialize_macrocmd): Register `info_macro_command' in
8319 `infolist', not `showlist'.
8320
8321 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8322
8323 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8324 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8325 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8326 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8327 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8328 unconditionally.
8329 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8330 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8331 (_initialize_mips_tdep): Remove dead code.
8332 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8333 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8334 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8335 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8336 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8337 MIPS_LAST_FP_ARG_REGNUM): Remove.
8338
8339 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8340
8341 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8342 (unwind_tmp_obstack_free, parse_frame_info)
8343 (update_context, cfi_read_fp, cfi_write_fp)
8344 (cfi_frame_chain, cfi_init_extra_frame_info)
8345 (cfi_virtual_frame_pointer): Use the above function.
8346 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8347
8348 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8349
8350 * v850-tdep.c (v850_type_is_scalar): New function.
8351 (v850_use_struct_convention): Match current gcc implementation
8352 as close as possible.
8353 (v850_push_arguments): Fix stack_offset handling. Don't write
8354 struct_addr into register. This is done by v850_store_struct_return.
8355 (v850_extract_return_value): Care for structs.
8356 (v850_store_return_value): Ditto.
8357 (v850_store_struct_return): Actually write address.
8358
8359 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8360
8361 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8362 without debug information too.
8363
8364 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8365
8366 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8367 Make multi-arch pure.
8368 * gdbarch.h, gdbarch.c: Re-generate.
8369 * arm-tdep.c (arm_print_float_info): Update.
8370 * arch-utils.h (default_print_float_info): Update.
8371 * arch-utils.c (default_print_float_info): Update.
8372 * infcmd.c (float_info): Update call.
8373
8374 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8375
8376 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8377 the front of the initialize list.
8378
8379 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8380
8381 * infrun.c (struct inferior_status): Replace fields
8382 selected_frame_address and selected_level with field
8383 selected_frame_id.
8384 (save_inferior_status): Update. Use get_frame_id.
8385 (struct restore_selected_frame_args): Delete.
8386 (restore_selected_frame): Update. Use frame_find_by_id.
8387 (restore_inferior_status): Update.
8388
8389 * breakpoint.h (struct breakpoint): Change type of
8390 watchpoint_frame to frame_id.
8391 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8392 call to get_current_frame.
8393 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8394 get_current_frame.
8395 (watchpoint_check): Use frame_find_by_id.
8396
8397 * frame.h (record_selected_frame): Delete declaration.
8398 * stack.c (record_selected_frame): Delete function.
8399
8400 * frame.h (struct frame_id): Define.
8401 (get_frame_id): Declare.
8402 (frame_find_by_id): Declare.
8403 * frame.c (frame_find_by_id): New function.
8404 (get_frame_id): New function.
8405
8406 2002-06-10 Andrey Volkov <avolkov@transas.com>
8407
8408 * ser-e7kpc.c: Fix duplicated define and call of
8409 _initialize_ser_e7000pc
8410
8411 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8412
8413 * signals/signals.c (target_signal_from_host): Fix #ifdef
8414 SIGRTMIN case.
8415 (do_target_signal_to_host): Likewise.
8416
8417 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8418
8419 * mips-tdep.c (mips_find_abi_section): New function.
8420 (mips_gdbarch_init): Call it.
8421
8422 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8423
8424 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8425 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8426 after Andrew's 2002-06-08 gdbarch change.
8427
8428 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8429
8430 * i386-linux-nat.c (suppy_gregset): Don't supply
8431 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8432 register cache.
8433 (fill_gregset): Don't fetch it under the same circumstances.
8434
8435 2002-06-09 Andrew Cagney <cagney@redhat.com>
8436
8437 * Makefile.in (callback_h): Define.
8438 (remote_sim_h): Update path to remote-sim.h.
8439 (remote-rdp.o): Add $(callback_h).
8440 (remote-sim.o): Use $(callback_h).
8441 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8442 * remote-rdp.c: Include "gdb/callback.h".
8443
8444 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8445
8446 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8447 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8448
8449 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8450
8451 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8452 * rdi-share/serpardr.c: Ditto.
8453 * rdi-share/unixcomm.c: Ditto.
8454 * rdi-share/serdrv.c: Ditto.
8455 * rdi-share/hostchan.h: Ditto.
8456 * rdi-share/hostchan.c: Ditto.
8457 * rdi-share/host.h: Ditto.
8458 * rdi-share/devsw.c: Ditto.
8459
8460 * objfiles.h: Change type of obj_private to void pointer.
8461 * pa64solib.c: Update copyright. Don't include "assert.h", use
8462 strcmp instead of STREQ, use LONGEST, do not use PTR
8463 * somsolib.c: Ditto.
8464
8465 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8466 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8467 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8468
8469 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8470
8471 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8472 (default_get_saved_register): Delete function.
8473 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8474 generic_unwind_get_saved_register.
8475 * gdbarch.h, gdbarch.c: Re-generate.
8476
8477 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8478
8479 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8480 generic_func_frame_chain_valid.
8481 * gdbarch.h, gdbarch.c: Re-generate.
8482 * blockframe.c (generic_func_frame_chain_valid): Only check
8483 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8484 passing FP to PC_IN_CALL_DUMMY.
8485 Fix PR gdb/360.
8486
8487 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8488
8489 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8490 (register_gdbarch_data): Initialize init_p.
8491 (gdbarch_data): Initialize data pointer using the init function.
8492 (init_gdbarch_data): Delete function.
8493 (gdbarch_update_p): Update.
8494 (initialize_non_multiarch): Update.
8495 (struct gdbarch): Add field initialized_p.
8496 * gdbarch.h, gdbarch.c: Re-generate.
8497
8498 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8499
8500 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8501 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8502 better do the things actually here.
8503 * x86-64-tdep.c (x86_64_register_name2nr): New.
8504 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8505 (x86_64_gdbarch_init): Respect the above change.
8506 * x86-64-tdep.h (x86_64_register_name2nr)
8507 (x86_64_register_nr2name): Add prototypes.
8508 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8509
8510 2002-06-06 Michael Snyder <msnyder@redhat.com>
8511
8512 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8513 Delete extra braces and re-indent.
8514 (d10v_store_return_value): Char return values
8515 must be shifted over by one byte in R0.
8516 (d10v_extract_return_value): Delete extra braces, re-indent.
8517
8518 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8519
8520 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8521 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8522 (d10v_integer_to_address): Rewrite.
8523 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8524 the d10v specific functions which take care of converting to the
8525 correct space.
8526
8527 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8528
8529 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8530 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8531
8532 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8533
8534 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8535 includes.
8536 * config/tm-linux.h: Ditto.
8537 * config/alpha/tm-alphalinux.h: Ditto.
8538 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8539 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8540 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8541 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8542 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8543 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8544 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8545 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8546 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8547 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8548 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8549 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8550 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8551 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8552 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8553 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8554 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8555 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8556 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8557 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8558 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8559 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8560 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8561 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8562 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8563 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8564 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8565 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8566 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8567 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8568 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8569 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8570 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8571 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8572 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8573 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8574 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8575
8576 2002-05-04 Aidan Skinner <aidan@velvet.net>
8577
8578 * ada-exp.tab.c: New file
8579 * ada-exp.y: New file
8580 * ada-lang.c: New file
8581 * ada-lang.h: New file
8582 * ada-lex.c: New file
8583 * ada-lex.l: New file
8584 * ada-tasks.c: New file
8585 * ada-typeprint.c: New file
8586 * ada-valprint.c: New file
8587
8588 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8589
8590 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8591 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8592
8593 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8594
8595 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8596 insetead of ppc-linux-tdep.o.
8597 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8598 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8599
8600 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8601
8602 2002-05-07 Christian Groessler <chris@groessler.org>
8603 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8604 bit register contents for little endian hosts.
8605
8606 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8607
8608 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8609 any maintainer.
8610
8611 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8612
8613 * gdbarch.h: Regenerate.
8614
8615 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8616
8617 * MAINTAINERS: Add everyone to write-after-approval list.
8618
8619 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8620
8621 * stack.c (frame_info): Use frame_register_unwind instead of
8622 saved_regs. Mention when the SP is on the stack or in a register.
8623
8624 * frame.h (frame_register_unwind_ftype): Define. Document.
8625 (struct frame_info): Add field register_unwind and
8626 register_unwind_cache.
8627 (frame_register_unwind): Declare.
8628 (generic_unwind_get_saved_register): Declare.
8629
8630 * frame.c (frame_register_unwind): New function.
8631 (generic_unwind_get_saved_register): New function.
8632
8633 * blockframe.c (generic_call_dummy_register_unwind): New function.
8634 (frame_saved_regs_register_unwind): New function.
8635 (set_unwind_by_pc): New function.
8636 (create_new_frame): New function.
8637 (get_prev_frame): New function.
8638
8639 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8640
8641 * a29k-share/: Delete directory.
8642 * remote-vx29k.c: Delete file.
8643
8644 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8645
8646 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8647 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8648
8649 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8650
8651 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8652 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8653 (sparc64nbsd-nat.o)
8654 (sparcnbsd-nat.o)
8655 (sparcnbsd-tdep.o): New dependency lists.
8656 * NEWS: Note new UltraSPARC NetBSD native configuration.
8657 * configure.host (sparc64-*-netbsd*): New host.
8658 * configure.tgt (sparc-*-netbsdelf*)
8659 (sparc-*-netbsd*): Set gdb_target to nbsd.
8660 (sparc64-*-netbsd*): New target.
8661 * sparc64nbsd-nat.c: New file.
8662 * sparcnbsd-nat.c: New file.
8663 * sparcnbsd-tdep.c: New file.
8664 * sparcnbsd-tdep.h: New file.
8665 * config/sparc/nbsd.mt: New file.
8666 * config/sparc/nbsd64.mh: New file.
8667 * config/sparc/nbsd64.mt: New file.
8668 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8669 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8670 (HOST_IPC): Remove.
8671 * config/sparc/nbsdaout.mt: Remove.
8672 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8673 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8674 (HOST_IPC): Remove.
8675 * config/sparc/nbsdelf.mt: Remove.
8676 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8677 sparc-nat.c compatiblity defines.
8678 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8679 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8680 * config/sparc/tm-nbsd64.h: New file.
8681 * config/sparc/tm-nbsdaout.h: Remove.
8682 * config/sparc/xm-nbsd.h: Remove.
8683
8684 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8685
8686 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8687 * sparc-tdep.c: Include osabi.h.
8688 (gdbarch_tdep): Add osabi member.
8689 (_initialize_sparc_tdep): Use gdbarch_register.
8690 (sparc_gdbarch_init): Use generic OS ABI framework.
8691 (sparc_dump_tdep): New function.
8692
8693 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8694
8695 * corefile.c (do_captured_read_memory_integer): Return non-zero
8696 result.
8697 (safe_read_memory_integer): Copy result of memory read when
8698 status is non-zero. Also, add comments.
8699
8700 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8701
8702 * Makefile.in (ppc_tdep_h): Define.
8703 (ppc-linux-nat.o)
8704 (ppc-linux-tdep.o)
8705 (rs6000-tdep.o): Use $(ppc_tdep_h).
8706 (ppc-sysv-tdep.o)
8707 (ppcnbsd-nat.o)
8708 (ppcnbsd-tdep.o): New dependency lists.
8709 * ppc-tdep.h: Use generic OS ABI framework.
8710 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8711 (ppc_linux_init_abi): New functions.
8712 (ppc_sysv_abi_broken_use_struct_convention)
8713 (ppc_sysv_abi_use_struct_convention)
8714 (ppc_sysv_abi_push_arguments): Move to...
8715 * ppc-sysv-tdep.c: ...here.
8716 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8717 * rs6000-tdep.c (process_note_abi_tag_sections)
8718 (get_elfosabi): Remove.
8719 (rs6000_gdbarch_init): Use generic OS ABI framework.
8720 (rs6000_dump_tdep): New function.
8721 (_initialize_rs6000_tdep): Use gdbarch_register.
8722 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8723 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8724 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8725 of ppc-linux-tdep.o.
8726 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8727 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8728 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8729 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8730 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8731 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8732
8733 2002-05-29 Jim Blandy <jimb@redhat.com>
8734
8735 * macroscope.c (default_macro_scope): Put `void' in empty argument
8736 list.
8737
8738 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8739
8740 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8741 * arch-utils.c: Include "sim-regno.h".
8742 * gdbarch.sh: Don't include "sim-regno.h".
8743 * gdbarch.h, gdbarch.c: Regenerate.
8744 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8745 here.
8746 * arch-utils.h (legacy_register_sim_regno): To here.
8747 * remote-sim.c (legacy_register_sim_regno): Move function from
8748 here.
8749 * arch-utils.c (legacy_register_sim_regno): To here.
8750
8751 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8752
8753 * sim-regno.h: New file.
8754 * Makefile.in (sim_regno_h): Define.
8755 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8756 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8757 (legacy_register_sim_regno): New function.
8758 (one2one_register_sim_regno): New function.
8759 (gdbsim_fetch_register): Rewrite.
8760 (gdbsim_store_register): Only store a register when
8761 REGISTER_SIM_REGNO is valid.
8762 * d10v-tdep.c: Include "sim-regno.h".
8763 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8764 (d10v_ts3_register_sim_regno): Ditto.
8765 * gdbarch.sh: Include "sim-regno.h".
8766 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8767 * gdbarch.h, gdbarch.c: Regenerate.
8768 * arch-utils.h (default_register_sim_regno): Delete declaration.
8769 * arch-utils.c (default_register_sim_regno): Delete function.
8770
8771 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8772
8773 * ppcnbsd-nat.c: Rewrite.
8774 * ppcnbsd-tdep.c: New file.
8775 * ppcnbsd-tdep.h: New file.
8776 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8777 solib.o, and solib-svr4.o.
8778 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8779 nbsd-tdep.o, and corelow.o.
8780
8781 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8782
8783 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8784 `tr' and `sed'. Mention that `broken' targets are not expected to
8785 build.
8786
8787 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8788
8789 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8790 Let PC point right after the prologue before looking up symbols.
8791
8792 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8793
8794 * i386-tdep.c (i386_register_virtual_type): Return
8795 builtin_type_vec128i for SSE registers.
8796
8797 * gdbtypes.h (builtin_type_vec128i): Declare.
8798
8799 * gdbtypes.c (build_builtin_type_vec128i): New function.
8800 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8801 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8802 (build_gdbtypes): Initialize new builtin vector types.
8803 (_initialize_gdbtypes): Register new vector types with gdbarch.
8804
8805 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8806
8807 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8808 since it has been multi-arch'd.
8809 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8810 Move Alpha and VAX multi-arch news entries to same section
8811 as other multi-arch news.
8812
8813 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8814
8815 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8816 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8817 static. Rename some register numbers to put them in ns32k-tdep
8818 private namespace.
8819 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8820 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8821 functions.
8822 (_initialize_ns32k_tdep): Use gdbarch_register.
8823 * ns32k-tdep.h: New file.
8824 * ns32knbsd-tdep.c: New file.
8825 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8826 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8827 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8828 REGISTER_BYTES, REGISTER_BYTE): Remove.
8829 * config/ns32k/tm-ns32k.h: New file.
8830 * config/ns32k/tm-umax.h: Remove.
8831
8832 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8833
8834 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8835 ns32k_store_struct_return, ns32k_extract_return_value,
8836 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8837 functions.
8838 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8839 ns32k_saved_pc_after_call.
8840 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8841 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8842 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8843 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8844 ns32k_extract_struct_value_address.
8845
8846 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8847
8848 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8849 ns32k_fix_call_dummy): New.
8850 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8851 ns32k_call_dummy_words.
8852 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8853 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8854 CALL_DUMMY_NARGS): Remove.
8855 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8856
8857 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8858
8859 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8860 ns32k_frame_saved_pc, ns32k_frame_args_address,
8861 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8862 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8863 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8864 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8865 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8866 (BREAKPOINT): Remove..
8867 (FRAME_CHAIN): Define as ns32k_frame_chain.
8868 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8869 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8870 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8871 (FRAME_FIND_SAVED_REGS): Remove.
8872 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8873 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8874 (POP_FRAME): Define as ns32k_pop_frame.
8875
8876 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8877
8878 * ns32k-tdep.c (ns32k_register_byte_32082,
8879 ns32k_register_byte_32382, ns32k_register_raw_size,
8880 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8881 functions.
8882 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8883 ns32k_register_byte_32382.
8884 * config/ns32k/tm-umax.h: Update copyright years.
8885 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8886 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8887 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8888 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8889 (ns32k_get_enter_addr): Fix prototype.
8890
8891 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8892
8893 * ns32k-tdep.c: Update copyright years.
8894 (ns32k_register_name_32082): New function.
8895 (ns32k_register_name_32382): Ditto.
8896 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8897 (REGISTER_NAME): Define as ns32k_register_name_32382.
8898 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8899 (REGISTER_NAME): Define as ns32k_register_name_32082.
8900
8901 2002-05-24 Jim Blandy <jimb@redhat.com>
8902
8903 * dwarf2read.c (free_line_header): Use xfree, not free.
8904
8905 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8906
8907 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8908 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8909
8910 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8911
8912 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8913
8914 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8915
8916 From Ross Alexander at NEC Europe:
8917 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8918
8919 2002-05-23 Michael Snyder <msnyder@redhat.com>
8920
8921 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8922 for input, rather than parse_and_eval_address.
8923
8924 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8925
8926 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8927 * Makefile.in (sim_d10v_h): Update definition.
8928
8929 2002-05-24 Andrew Cagney <cagney@redhat.com>
8930
8931 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8932 change `2002-05-22 Michael Snyder' below.
8933 (d10v_push_arguments): Ditto.
8934 (d10v_extract_return_value): Ditto.
8935
8936 2002-05-23 Jim Blandy <jimb@redhat.com>
8937
8938 * macrotab.c (check_for_redefinition): Don't complain if the new
8939 definition is the same as the previous one. Take more arguments
8940 to allow the comparison.
8941 (macro_define_object, macro_define_function): Pass more arguments
8942 to check_for_redefinition.
8943
8944 2002-05-22 Michael Snyder <msnyder@redhat.com>
8945
8946 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8947 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8948 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8949 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8950 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8951 Add a temp variable to save a call (and a memory read).
8952 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8953 if possible (so that PC_IN_CALL_DUMMY will work).
8954
8955 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8956
8957 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8958
8959 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8960
8961 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8962 fde->cie_ptr.
8963 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8964 (dwarf2_build_frame_info): Add offset to fde->initial_location
8965 so that frames of shared libraries are mapped correctly.
8966 (execute_stack_op): Change type of 'result' from ULONGEST to
8967 CORE_ADDR.
8968
8969 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8970
8971 * config/alpha/tm-nbsd.h: Include solib.h.
8972
8973 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8974
8975 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8976 assumptions about the host's byte order.
8977
8978 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8979
8980 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8981 to dependency list.
8982 * alphanbsd-tdep.c: Include solib-svr4.h.
8983 * shnbsd-tdep.c: Ditto.
8984
8985 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8986
8987 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8988 nbsd-tdep.h to dependency list.
8989 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8990 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8991 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8992 nbsdaout.mh and nbsdelf.mh consistently.
8993 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8994 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8995 nbsdaout.mt and nbsdelf.mh consistently.
8996 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8997 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8998 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8999 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9000 a.out shared library stuff from here...
9001 * config/nm-nbsdaout.h: ...to here.
9002 * config/tm-nbsd.h: Remove.
9003 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9004 * config/arm/nbsd.mh: Remove.
9005 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9006 nbsd-tdep.o.
9007 * config/arm/nbsdaout.mh: New file.
9008 * config/arm/nbsdelf.mh: New file.
9009 * config/arm/nm-nbsdaout.h: New file.
9010 * config/i386/nbsd.mh: Remove.
9011 * config/i386/nbsd.mt: Remove.
9012 * config/i386/nbsdaout.mh: New file.
9013 * config/i386/nbsdaout.mt: New file.
9014 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9015 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9016 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9017 i386_register_u_addr): Remove.
9018 * config/i386/nm-nbsdaout.h: New file.
9019 * config/i386/nm-nbsdelf.h: Remove.
9020 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9021 (USE_STRUCT_CONVENTION): Remove.
9022 * config/i386/tm-nbsdaout.h: New file.
9023 * config/i386/tm-nbsdelf.h: Remove.
9024 * config/m68k/nbsd.mh: Remove.
9025 * config/m68k/nbsd.mt: Remove.
9026 * config/m68k/nbsdaout.mh: New file.
9027 * config/m68k/nbsdaout.mt: New file.
9028 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9029 * config/m68k/nm-nbsdaout.h: New file.
9030 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9031 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9032 * config/ns32k/nbsd.mh: Remove.
9033 * config/ns32k/nbsd.mt: Remove.
9034 * config/ns32k/nbsdaout.mh: New file.
9035 * config/ns32k/nbsdaout.mt: New file.
9036 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9037 * config/ns32k/nm-nbsdaout.h: New file.
9038 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9039 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9040 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9041 (SVR4_SHARED_LIBS): Remove.
9042 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9043 * config/sparc/nbsd.mh: Remove.
9044 * config/sparc/nbsd.mt: Remove.
9045 * config/sparc/nbsdaout.mh: New file.
9046 * config/sparc/nbsdaout.mt: New file.
9047 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9048 * config/sparc/nbsdelf.mt: New file.
9049 * config/sparc/nm-nbsdaout.h: New file.
9050 * config/sparc/nm-nbsdelf.h: Remove.
9051 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9052 * config/sparc/tm-nbsdaout.h: New file.
9053
9054 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9055
9056 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9057 mipsnbsd-tdep.c
9058 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9059
9060 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9061
9062 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9063 shnbsd-nat.c.
9064 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9065
9066 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9067
9068 * NEWS: Note new MIPS NetBSD native configuration.
9069 * configure.host (mips*-*-netbsd*): New host.
9070 * configure.tgt (mips*-*-netbsd*): New target.
9071 * mipsnbsd-nat.c: New file.
9072 * mipsnbsd-tdep.c: New file.
9073 * mipsnbsd-tdep.h: New file.
9074 * config/mips/nbsd.mh: New file.
9075 * config/mips/nbsd.mt: New file.
9076 * config/mips/nm-nbsd.h: New file.
9077 * config/mips/tm-nbsd.h: New file.
9078
9079 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9080
9081 * Makefile.in (SFILES): Add osabi.c.
9082 (COMMON_OBS): Add osabi.o.
9083 (osabi.o): New dependency list.
9084 * osabi.c: New file.
9085 * osabi.h: New file.
9086 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9087
9088 * Makefile.in (alpha_tdep_h): Define and use instead of
9089 alpha-tdep.h.
9090 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9091 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9092 Remove.
9093 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9094 * alpha-tdep.h: Include osabi.h.
9095 (alpha_abi): Remove.
9096 (gdbarch_tdep): Use generic OS ABI framework.
9097 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9098 gdbarch_register_osabi.
9099 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9100 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9101 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9102
9103 * Makefile.in (sh_tdep_h): Add osabi.h.
9104 * sh-tdep.h (sh_osabi): Remove.
9105 (gdbarch_tdep): Use generic OS ABI framework.
9106 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9107 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9108 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9109 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9110
9111 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9112 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9113 gdbarch_register_osabi.
9114 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9115 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9116 (get_elfosabi): Rename to...
9117 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9118 ABI framework support routines.
9119 (arm_gdbarch_init): Use generic OS ABI framework.
9120 (arm_dump_tdep): Likewise.
9121 (_initialize_arm_tdep): Likewise.
9122 * arm-tdep.h: Include osabi.h.
9123 (arm_abi): Remove.
9124 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9125 osabi member.
9126 (arm_gdbarch_register_os_abi): Remove prototype.
9127 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9128 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9129
9130 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9131 * mips-tdep.c: Include osabi.h.
9132 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9133 OS ABI framework.
9134
9135 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9136
9137 * h8300-tdep.c: Fix formatting.
9138
9139 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9140
9141 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9142 printing vector registers.
9143
9144 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9145
9146 From Fernando Nasser:
9147 * remote.c (remote_async_open_1): Re-throw the exception when the
9148 connection fails.
9149 (remote_cisco_open): Ditto.
9150 (remote_open_1): Ditto.
9151
9152 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9153
9154 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9155 (remote_start_remote): Add uiout parameter. Pass through to
9156 remote_start_remote_dummy.
9157 (remote_open_1): Use catch_exception instead of catch_errors.
9158 (remote_async_open_1): Ditto.
9159 (remote_cisco_open): Ditto.
9160
9161 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9162
9163 * remote.c (remote_start_remote): Replace PTR with void pointer.
9164 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9165 static.
9166
9167 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9168
9169 * gdb_indent.sh: Allow the script to be run in the sim directory.
9170
9171 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9172
9173 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9174 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9175
9176 * corelow.c (core_open): Only call set_gdbarch_from_file if
9177 exec_bfd is NULL.
9178
9179 2002-05-17 Andrey Volkov <avolkov@transas.com>
9180
9181 * h8300-tdep.c: Add support of EXR register
9182 * config/h8300/tm-h8300.h: Ditto.
9183
9184 2002-05-17 Andrey Volkov <avolkov@transas.com>
9185
9186 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9187
9188 2002-05-17 Andrey Volkov <avolkov@transas.com>
9189
9190 * h8300-tdep.c: Change literal regnums to REGNO.
9191
9192 2002-05-17 Jim Blandy <jimb@redhat.com>
9193
9194 * NEWS: Note addition of macro support.
9195
9196 Expand preprocessor macros in C expressions.
9197 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9198 (scan_macro_expansion, scanning_macro_expansion,
9199 finished_macro_expansion): New function declarations.
9200 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9201 variable declarations.
9202 * parser-defs.h (expression_context_pc): New declaration.
9203 * parse.c (expression_context_pc): New variable.
9204 (parse_exp_1): Set expression_context_pc, as well as
9205 expression_context_block.
9206 * c-exp.y (yylex): If we're not already reading the result of a
9207 macro expansion, try to macro-expand the next token. When we're
9208 done scanning a macro expansion, switch back to the mainline text.
9209 Commas and `if's in a macro's expansion don't terminate the input.
9210 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9211 (macro_original_text, macro_expanded_text,
9212 expression_macro_lookup_func, expression_macro_lookup_baton): New
9213 variables.
9214 (scan_macro_expansion, scanning_macro_expansion,
9215 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9216 c_preprocess_and_parse): New functions.
9217 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9218 c_preprocess_and_parse, instead of c_parse.
9219 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9220 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9221
9222 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9223
9224 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9225 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9226 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9227
9228 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9229
9230 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9231
9232 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9233
9234 * Makefile.in (sh_tdep_h): Define and use.
9235 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9236 register enum): Move to...
9237 * * sh-tdep.h: ...here.
9238 * sh-tdep.c: Include sh-tdep.h.
9239 * sh3-rom.c: Likewise.
9240 * shnbsd-tdep.c: Likewise.
9241
9242 2002-05-16 Michael Snyder <msnyder@redhat.com>
9243
9244 * arm-tdep.c: Spelling fix in comment.
9245
9246 2002-05-16 Jim Blandy <jimb@redhat.com>
9247
9248 Add commands for manually expanding macros and showing their
9249 definitions.
9250 * macrocmd.c, macroscope.c, macroscope.h: New files.
9251 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9252 (macroscope_h): New variable.
9253 (HFILES_NO_SRCDIR): Add macroscope.h.
9254 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9255 (macroscope.o, macrocmd.o): New rules.
9256
9257 Teach the Dwarf 2 reader to read macro information.
9258 * dwarf2read.c: #include "macrotab.h".
9259 (dwarf_macinfo_buffer): New variable.
9260 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9261 dwarf_macinfo_size.
9262 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9263 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9264 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9265 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9266 dwarf2_macro_spaces_in_definition): New complaints.
9267 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9268 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9269 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9270 the partial symbol table.
9271 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9272 from what's recorded in the partial symbol table.
9273 (read_file_scope): If the compilation unit has a
9274 `DW_AT_macro_info' attribute, read its macro information.
9275 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9276
9277 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9278
9279 Fix PR gdb/546
9280 * ser-tcp.c: Don't include <netinet/udp.h>.
9281
9282 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9283
9284 * MAINTAINERS: Update my email address.
9285
9286 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9289 include file of the same name.
9290
9291 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9292
9293 * configure.tgt: Mark v850 as multi-arched.
9294 * config/v850/tm-v850.h: Remove file.
9295 * config/v850/v850.mt: Eliminate TM_FILE.
9296
9297 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9298
9299 * v850-tdep.c: Full multi-arch.
9300 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9301 Define GDB_MULTI_ARCH to 2.
9302
9303 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9304
9305 * p-exp.y (current_type): New static variable.
9306 Carries the type of the expression at the position that is parsed.
9307 (push_current_type, pop_current_type): Two new functions. Used
9308 to store/restore current_type in expression on specific tokens.
9309 (search_field): New static variable. Set to one after parsing a point
9310 as at that point only a FIELDNAME token should be searched.
9311 (FIELDNAME): New token. After a point only a token belonging to
9312 current_type type definition is allowed.
9313 (all over token rules): reset and change current_type according
9314 to rules.
9315 (exp '[' rule): insert implicit array index field if
9316 exp is a pascal string type.
9317
9318 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9319
9320 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9321 frame info. Use frame_info's saved_regs instead of matching member
9322 in extra_frame_info throughout.
9323 (v850_frame_init_saved_regs): New function.
9324 (v850_init_extra_frame_info): Move most functionality into
9325 v850_frame_init_saved_regs().
9326 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9327 (v850_frame_find_saved_regs): Remove declaration.
9328 (FRAME_FIND_SAVED_REGS): Remove definition.
9329 (v850_frame_init_saved_regs): Add declaration.
9330 (FRAME_INIT_SAVED_REGS): Add definition.
9331
9332 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9333
9334 * v850-tdep.c: Begin multi-arch'ing v850.
9335 (v850_target_architecture_hook): Remove function.
9336 (v850_gdbarch_init): New function. Add code previously in
9337 v850_target_architecture_hook().
9338 (_initialize_v850_tdep): Don't set target_architecture_hook.
9339 Call register_gdbarch_init() instead.
9340
9341 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9342
9343 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9344 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9345 (fixup_class_method_type): Likewise.
9346
9347 2002-05-15 Jim Blandy <jimb@redhat.com>
9348
9349 Add macro structures to GDB's symbol tables. Nobody puts anything
9350 in them yet.
9351 * symtab.h (struct symtab): New member: `macro_table'.
9352 * buildsym.h (pending_macros): New global variable.
9353 * buildsym.c: #include "macrotab.h".
9354 (buildsym_init): Initialize `pending_macros'.
9355 (end_symtab): If we found macro information while reading a CU's
9356 debugging info, do build a symtab structure for it. Make the
9357 symtab point to the macro information, and clear the
9358 `pending_macros' pointer which held it while we were reading the
9359 debug info.
9360 (really_free_pendings): Free any pending macro table.
9361 * objfiles.h (struct objfile): New member: `macro_cache'.
9362 * objfiles.c (allocate_objfile): Set allocate and free functions
9363 for the macro cache's objstack.
9364 (free_objfile): Empty the macro cache's obstack.
9365 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9366 set new allocate and free functions for it.
9367 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9368 free functions for the macro cache's objstack. (Why is this
9369 function building its own objfile?)
9370 * symmisc.c (print_objfile_statistics): Print statistics on the
9371 macro bcache.
9372 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9373
9374 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9375
9376 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9377 (REGISTER_U_ADDR): Delete definition.
9378 (arm_register_u_addr): Delete declaration.
9379
9380 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9381
9382 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9383 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9384
9385 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9386
9387 * regcache.c (register_valid): Revise comments refering to "Not
9388 available" and "unavailable".
9389 * frame.c (frame_register_read): Ditto.
9390 * findvar.c (value_of_register): Ditto.
9391
9392 2002-05-15 Andrew Cagney <cagney@redhat.com>
9393
9394 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9395 (remote-sim.o): Update dependencies.
9396 (d10v-tdep.o): Specify dependencies.
9397 (sim_d10v_h): Define.
9398
9399 2002-05-14 Jim Blandy <jimb@redhat.com>
9400
9401 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9402 * macrotab.c (macro_lookup_inclusion, find_definition,
9403 new_macro_table): Same.
9404
9405 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9406 not `! strcmp ()'. This is a dubious improvement.
9407 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9408
9409 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9410 although it's not necessary, to avoid a warning.
9411
9412 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9413
9414 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9415 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9416 TYPE_INSTANCE_FLAGS.
9417 (struct main_type): New.
9418 (struct type): Move most members to struct main_type. Change
9419 cv_type and as_type to new type_chain member. Add instance_flags.
9420 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9421 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9422 (finish_cv_type): Remove prototype.
9423 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9424 Set TYPE_CHAIN.
9425 (alloc_type_instance): New function.
9426 (smash_type): New function.
9427 (make_pointer_type, make_reference_type, make_function_type)
9428 (smash_to_member_type, smash_to_method_type): Call smash_type.
9429 (make_qualified_type): New function.
9430 (make_type_with_address_space): Call make_qualified_type.
9431 (make_cv_type): Likewise.
9432 (finish_cv_type): Remove unnecessary function.
9433 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9434 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9435 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9436 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9437 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9438 * hpread.c (hpread_read_struct_type): Likewise.
9439 * stabsread.c (read_struct_type): Likewise.
9440
9441 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9442
9443 * configure.tgt: Add a catch all sh* target, for cases like
9444 sh[2,3,4]-elf and sh-hms.
9445
9446 2002-05-14 Keith Seitz <keiths@redhat.com>
9447
9448 * event-loop.c (create_file_handler): Don't do anything but
9449 update data when we are given a fd which we are already
9450 monitoring.
9451
9452 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9453
9454 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9455 (update_context): Use __func__ in warnings.
9456
9457 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9458
9459 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9460 and tcp_close to net_open and net_close.
9461 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9462 using UDP if requested. Don't try to disable Nagle on UDP
9463 sockets.
9464 * remote.c (remote_serial_open): New function. Warn about UDP.
9465 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9466
9467 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9468
9469 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9470
9471 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9472
9473 * configure.tgt: Remove sh-hms target.
9474 * MAINTAINERS: Don't list sh-hms as a separate target.
9475
9476 2002-05-13 Jim Blandy <jimb@redhat.com>
9477
9478 Add first preprocessor macro-expansion files.
9479 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9480 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9481 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9482 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9483 (COMMON_OBS): Add macrotab.o, macroexp.o.
9484 (macroexp.o, macrotab.o): New rules.
9485
9486 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9487
9488 * config/m88k/tm-m88k.h: Update copyright.
9489 (m88k_target_write_pc): Declare
9490 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9491 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9492 (SHIFT_INST_REGS): Update definition.
9493 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9494 using old definition of TARGET_WRITE_PC.
9495 * regcache.c (generic_target_write_pc): Delete code handling
9496 NNPC_REGNUM.
9497 * gdbarch.sh (NNPC_REGNUM): Delete.
9498 * gdbarch.h, gdbarch.c: Regenerate.
9499
9500 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9501
9502 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9503 builtin reg number.
9504
9505 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9506
9507 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9508 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9509 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9510 access macros.
9511 * c-typeprint.c (cp_type_print_method_args): Likewise.
9512 (c_type_print_args): Likewise.
9513 * d10v-tdep.c (d10v_push_arguments): Likewise.
9514 (d10v_extract_return_value): Likewise.
9515 * expprint.c (print_subexp): Likewise.
9516 * gdbtypes.c (lookup_primitive_typename): Likewise.
9517 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9518 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9519 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9520 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9521 (TYPE_VECTOR): Likewise.
9522 * hpread.c (hpread_read_struct_type)
9523 (fix_static_member_physnames, fixup_class_method_type)
9524 (hpread_type_lookup): Likewise.
9525 * mdebugread.c (parse_symbol, parse_type): Likewise.
9526 * p-lang.c (is_pascal_string_type): Likewise.
9527 * valops.c (hand_function_call): Likewise.
9528 * x86-64-tdep.c (classify_argument): Likewise.
9529
9530 * hpread.c (hpread_read_function_type)
9531 (hpread_read_doc_function_type): Call replace_type.
9532 * dstread.c (create_new_type): Delete.
9533 (decode_dst_structure, process_dst_function): Call alloc_type.
9534 Use type access macros.
9535
9536 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9537
9538 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9539 the're not supported by the current architecture.
9540 (i387_fill_fxsave): Likewise.
9541
9542 2002-05-12 Fred Fish <fnf@redhat.com>
9543
9544 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9545 sect_index_xxx members to index the first slot in section_offsets
9546 if all of the section_offsets are zero.
9547
9548 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9549
9550 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9551 checked in with last change.
9552
9553 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9554
9555 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9556 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9557 config.sub.
9558
9559 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9560
9561 * Makefile.in: Update dependencies.
9562
9563 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9564
9565 * language.c (local_hex_string_custom): Simplify. Do not depend
9566 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9567
9568 * memattr.c (mem_info_command): Replace calls to
9569 longest_local_hex_string and longest_local_hex_string_custom.
9570 * buildsym.c (make_blockvector): Ditto.
9571 * solib.c (info_sharedlibrary_command): Ditto.
9572 * tracepoint.c (tracepoints_info): Ditto.
9573 * symtab.c (print_msymbol_info): Ditto.
9574
9575 * language.c (local_hex_string): Delete.
9576 (local_hex_string_custom): Delete.
9577 (longest_local_hex_string): Rename to local_hex_string.
9578 (longest_local_hex_string_custom): Rename to
9579 local_hex_string_custom.
9580 * language.h (local_hex_string): Change parameter type to LONGEST.
9581 (local_hex_string_custom): Ditto.
9582 (longest_local_hex_string): Delete declaration.
9583 (longest_local_hex_string_custom): Ditto.
9584
9585 * solib.c: Update copyright.
9586 * memattr.c: Update copyright.
9587
9588 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9589
9590 * arch-utils.h (legacy_register_to_value): Declare.
9591 (legacy_value_to_register): Declare.
9592 (legacy_convert_register_p): Declare.
9593 * arch-utils.c (legacy_register_to_value): New function.
9594 (legacy_value_to_register): New function.
9595 (legacy_convert_register_p): New function.
9596
9597 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9598 (VALUE_TO_REGISTER): Define.
9599 (CONVERT_REGISTER_P): Define.
9600 * gdbarch.h, gdbarch.c: Regenerate.
9601
9602 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9603 VALUE_TO_REGISTER.
9604 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9605 CONVERT_REGISTER_P.
9606
9607 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9608 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9609
9610 * Makefile.in: Update dependencies for valops.c.
9611 * valops.c: Include "gdb_assert.h".
9612 (typecmp): Skip THIS parameter to methods.
9613 (find_method_list): Remove static_memfuncp argument,
9614 update callers. Check for stub methods.
9615 (find_value_oload_method_list): Don't set *static_memfuncp.
9616 (find_overload_match): Don't check for stub methods. Assert
9617 that methods are not stubbed. Handle static methods.
9618 (value_find_oload_method_list): Remove static_memfuncp argument.
9619 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9620 to the argument list for static stub methods.
9621 * value.h (value_find_oload_method_list): Update prototype.
9622
9623 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9624
9625 * arch-utils.h (generic_register_size): Declare.
9626 (generic_register_raw_size, generic_register_virtual_size): Delete
9627 declarations.
9628 * arch-utils.c (generic_register_raw_size): Delete.
9629 (generic_register_size): New function.
9630 (generic_register_virtual_size): Delete.
9631
9632 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9633 default generic_register_size.
9634 * gdbarch.h, gdbarch.c: Re-generate.
9635
9636 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9637 register_virtual_size.
9638 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9639 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9640
9641 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9642
9643 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9644 * gdbarch.h, gdbarch.c: Regenerate.
9645 * gnu-v3-abi.c: Update copyright.
9646 (vtable_address_point_offset): Update.
9647 (gnuv3_rtti_type): Update.
9648 (gnuv3_baseclass_offset): Update.
9649 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9650 (init_fetch_link_map_offsets): Update.
9651 * remote.c (get_remote_state): Update.
9652
9653 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9654
9655 * TODO: Remove value_headof/value_from_vtable_info comment.
9656 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9657 * values.c (value_headof, value_from_vtable_info): Delete.
9658 * value.h (value_from_vtable_info): Delete prototype.
9659
9660 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9661
9662 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9663 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9664 $(gdb_regex_h).
9665 (gdb_assert_h): Define.
9666 (gdb_wait_h): Define.
9667 (gdb_regex_h): Define.
9668
9669 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9670
9671 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9672 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9673
9674 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9675
9676 * nbsd-tdep.c: Fix comment.
9677
9678 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9679
9680 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9681 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9682 (nbsd-tdep.o): New dependency list.
9683 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9684 nbsd-tdep.h.
9685 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9686 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9687 * nbsd-tdep.c: New file.
9688 * nbsd-tdep.h: New file.
9689 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9690 nbsd-tdep.h.
9691 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9692 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9693 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9694 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9695
9696 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9697
9698 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9699 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9700 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9701 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9702 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9703 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9704
9705 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9706
9707 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9708 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9709 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9710 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9711 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9712 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9713 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9714
9715 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9716
9717 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9718 fetch_elfcore_registers to...
9719 * i386nbsd-tdep.c: ...here.
9720 (i386nbsd_use_struct_convention): Rename to...
9721 (i386nbsd_aout_use_struct_convention): ...this.
9722 (i386nbsd_supply_reg): New function.
9723 (i386nbsd_fill_reg): New function.
9724 (fetch_core_registers): Use i386nbsd_supply_reg.
9725 (fetch_elfcore_registers): Likewise.
9726 (_initialize_i386nbsd_tdep): New function.
9727 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9728 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9729 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9730 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9731 (i386nbsd_aout_use_struct_convention): ...this.
9732
9733 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9734
9735 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9736 (store_inferior_registers): Use shnbsd_fill_reg.
9737 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9738 sh_nbsd_supply_register): Collapse into...
9739 (shnbsd_supply_reg): ...this.
9740 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9741 (shnbsd_fill_reg): ...this.
9742 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9743 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9744 (fetch_core_registers): Use shnbsd_supply_reg.
9745 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9746 (sh_nbsd_core_fns): Rename to...
9747 (shnbsd_core_fns): ...this.
9748 (sh_nbsd_elfcore_fns): Rename to...
9749 (shnbsd_elfcore_fns): ...this.
9750 (sh_nbsd_init_abi): Rename to...
9751 (shnbsd_init_abi): ...this.
9752 (_initialize_sh_nbsd_tdep): Rename to...
9753 (_initialize_shnbsd_tdep): ...this.
9754 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9755 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9756 sh_nbsd_fill_register): Remove prototypes.
9757 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9758
9759 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9760
9761 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9762 (i387-nat.o): Delete dependency list.
9763 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9764 (x86-64-linux-nat.o): Likewise.
9765 * i387-nat.c: Delete file, moving contents to...
9766 * i387-tdep.c: ...here.
9767 * i387-nat.h: Rename...
9768 * i387-tdep.h: ...to this.
9769 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9770 * i386-linux-nat.c: Likewise.
9771 * i386bsd-nat.c: Likewise.
9772 * i386gnu-nat.c: Likewise.
9773 * i386nbsd-nat.c: Likewise.
9774 * i386v4-nat.c: Likewise.
9775 * x86-64-linux-nat.c: Likewise.
9776 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9777 * config/i386/go32.mh (NATDEPFILES): Likewise.
9778 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9779 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9780 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9781 * config/i386/linux.mh (NATDEPFILES): Likewise.
9782 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9783 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9784 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9785 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9786
9787 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9788
9789 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9790 (alphanbsd-nat.o): Remove dependency list.
9791 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9792 * alphanbsd-nat.c: Delete. Contents moved to...
9793 * alphanbsd-tdep.c: ...here.
9794 (_initialize_alphanbsd_tdep): Register core functions.
9795 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9796
9797 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9798
9799 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9800 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9801 (alphanbsd-nat.o): Likewise.
9802 (alphabsd-tdep.o): New dependency list.
9803 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9804 (fill_gregset): Use alphabsd_fill_reg.
9805 (supply_fpregset): Use alphabsd_supply_fpreg.
9806 (fill_fpregset): Use alphabsd_fill_fpreg.
9807 (fetch_inferior_registers): Use struct reg and struct fpreg
9808 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9809 and alphabsd_supply_fpreg.
9810 (store_inferior_registers): Use struct reg and struct fpreg
9811 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9812 and alphabsd_fill_fpreg.
9813 * alphabsd-tdep.c: New file.
9814 * alphabsd-tdep.h: New file.
9815 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9816 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9817 alphabsd_supply_fpreg.
9818 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9819 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9820
9821 2002-05-11 Eric Christopher <echristo@redhat.com>
9822
9823 * mips-tdep.c (mips_double_register_type): Fix thinko.
9824 (mips_single_register_type): Ditto.
9825 * MAINTAINERS: Add self.
9826
9827 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9828
9829 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9830 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9831 right thing on architectures with different endianness and/or
9832 integer sizes.
9833
9834 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9835
9836 From Christian Limpach <chris@Pin.LU>
9837 * configure.in: Change sed expression which comments out
9838 NATDEPFILES to also comment out continuation lines.
9839 * configure: Regenerate.
9840
9841 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9842
9843 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9844 big patch.
9845
9846 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9847
9848 * sh-tdep.c: Include correct file.
9849
9850 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9851
9852 New support for sh64-elf (sh5) target.
9853
9854 * configure.tgt: For sh64-elf target, default to sh-elf.
9855
9856 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9857 (struct gdbarch_tdep): Add new fields for new registers and ABI
9858 info.
9859
9860 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9861 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9862 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9863 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9864 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9865 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9866 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9867 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9868 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9869 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9870 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9871 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9872 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9873 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9874 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9875 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9876 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9877 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9878 sign_extend, sh64_nofp_frame_init_saved_regs,
9879 sh64_init_extra_frame_info, sh64_get_saved_register,
9880 sh64_extract_struct_value_address, sh64_pop_frame,
9881 sh64_push_arguments, sh64_extract_return_value,
9882 sh64_store_return_value, sh64_show_media_regs,
9883 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9884 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9885 sh_sh64_register_virtual_type,
9886 sh_sh64_register_convert_to_virtual,
9887 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9888 sh64_register_read, sh64_pseudo_register_write,
9889 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9890 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9891 sh64_do_pseudo_register, sh_compact_do_registers_info,
9892 sh64_do_registers_info, sh_gdbarch_init): New functions.
9893
9894 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9895
9896 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9897
9898 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9899
9900 * linespec.c (decode_line_1): Check for a double quote after
9901 a filename correctly.
9902
9903 2002-05-10 Jim Blandy <jimb@redhat.com>
9904
9905 Properly track the size of the current objfile's .debug_line section.
9906 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9907 (DWARF_LINE_SIZE): New macro.
9908 (dwarf2_build_psymtabs_hard): Record the line section's size in
9909 the partial symbol table.
9910 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9911 symbol table.
9912
9913 2002-05-10 Petr Sorfa <petrs@caldera.com>
9914
9915 * ia64-tdep.c: Handle breakpoints on L instruction type
9916 in MLX instruction bundle by moving the breakpoint to
9917 the third slot (X instruction type) as L holds only data.
9918
9919 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9920
9921 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9922 (process_one_symbol): Complain about discarding local symbols
9923 due to a misplaced N_LBRAC entry.
9924
9925 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9926
9927 From Daniel Berlin <dan@cgsoftware.com>
9928 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9929 decrease the depth we are at, in the case of templates.
9930
9931 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9932
9933 * mips-tdep.c (mips_float_register_type): New function.
9934 (mips_double_register_type): New function.
9935 (mips_print_register): Use them.
9936 (do_fp_register_row): Likewise.
9937
9938 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9939
9940 * signals/signals.c (signals): Remove conditional compilation around
9941 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9942 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9943
9944 2002-05-09 Michael Snyder <msnyder@redhat.com>
9945
9946 * remote-rdp.c (remote_rdp_can_run): Remove.
9947
9948 2002-05-09 Tom Tromey <tromey@redhat.com>
9949
9950 * jv-valprint.c (java_val_print): Handle `char' as a special case
9951 of TYPE_CODE_INT.
9952
9953 2002-05-09 Michael Snyder <msnyder@redhat.com>
9954
9955 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9956 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9957 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9958 str r(0123),[sp,#nn].
9959 (arm_skip_prologue): Ditto. Also make disassembly
9960 order-independent by placing it in a loop.
9961
9962 2002-05-06 Michael Snyder <msnyder@redhat.com>
9963
9964 * stabsread.c (read_type): Add recognition for new attribute:
9965 "@V;" means that an array type is actually a vector.
9966 This is analogous to the vector flag that's been added to dwarf2.
9967
9968 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9969
9970 * i386-tdep.h (i386_abi): New enum.
9971 (struct gdbarch_tdep): Replace os_ident member with abi.
9972 (i386_gdbarch_register_os_abi): New prototype.
9973 * i386-tdep.c (i386_abi_names): New array.
9974 (process_note_abi_tag_sections): Removed.
9975 (process_note_sections): New function.
9976 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9977 (struct i386_abi_handler): New struct.
9978 (i386_abi_handler_list): New variable.
9979 (i386_gdbarch_register_os_abi): New function.
9980 (i386_gdbarch_init): Adapt for the changes given above.
9981
9982 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9983
9984 * gregset.h: Say "GNU/Linux".
9985
9986 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9987
9988 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9989 (build_gdbtypes): Build builtin_type_v2_float.
9990 (_initialize_gdbtypes): Register new builtin type.
9991
9992 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9993
9994 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9995 (clear_gdbarch_swap): New function.
9996 (initialize_non_multiarch): Call.
9997 (gdbarch_update_p): Before calling init(), swap out and clear the
9998 existing architecture.
9999 * gdbarch.c: Regenerate.
10000
10001 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10002
10003 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10004 alphanbsd-tdep.c.
10005
10006 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10007
10008 * sh-nbsd-nat.c: Rename to...
10009 * shnbsd-nat.c: ...this.
10010 * sh-nbsd-tdep.c: Rename to...
10011 * shnbsd-tdep.c: ...this.
10012 * sh-nbsd-tdep.h: Rename to...
10013 * shnbsd-tdep.h: ...this.
10014 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10015 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10016
10017 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10018
10019 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10020 concatenation for command help messages.
10021
10022 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10023
10024 * NEWS: Note new sh*-*-netbsdelf* configuration.
10025 * configure.host: Set gdb_host_cpu to sh for all sh*.
10026 (sh*-*-netbsdelf*): New host.
10027 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10028 (sh*-*-netbsdelf*): New target.
10029 * sh-nbsd-nat.c: New file.
10030 * sh-nbsd-tdep.c: New file.
10031 * sh-nbsd-tdep.h: New file.
10032 * config/sh/nbsd.mh: New file.
10033 * config/sh/nbsd.mt: New file.
10034 * config/sh/nm-nbsd.h: New file.
10035 * config/sh/tm-nbsd.h: New file.
10036
10037 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10038
10039 * sh-tdep.c (sh_osabi_names): Declare.
10040 (process_note_abi_tag_sections): New function.
10041 (get_elfosabi): Ditto.
10042 (sh_gdbarch_register_os_abi): Ditto.
10043 (sh_dump_tdep): Ditto.
10044 _initialize_sh_tdep): Use gdbarch_register to register
10045 sh_gdbarch_init and sh_dump_tdep.
10046 * config/sh/tm-sh.h (sh_osabi): Declare.
10047 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10048
10049 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10050
10051 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10052 (thumb_scan_prologue): Ditto.
10053 (arm_find_callers_reg): Ditto.
10054 (arm_frame_chain): Ditto.
10055 (arm_init_extra_frame_info): Ditto.
10056 (arm_frame_saved_pc): Ditto.
10057 (arm_pop_frame): Ditto.
10058 (arm_push_return_address): New function.
10059 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10060 call_dummy_location, call_dummy_breakpoint_offset_p,
10061 call_dummy_breakpoint_offset, call_dummy_p,
10062 call_dummy_stack_adjust_p, call_dummy_words,
10063 sizeof_call_dummy_words, call_dummy_start_offset,
10064 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10065 call_dummy_address, push_return_address and push_dummy_frame for
10066 generic dummy frames.
10067
10068 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10069
10070 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10071 size computation for alloca.
10072 (sh_fp_frame_init_saved_regs): Likewise.
10073
10074 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10075
10076 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10077 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10078 * arm-tdep.c (arm_store_return_value): Use them.
10079 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10080 * remote-rdp.c (remote_rdp_fetch_register): Use
10081 ARM_MAX_REGISTER_RAW_SIZE.
10082 (remote_rdp_store_register): Likewise.
10083
10084 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10085
10086 * dwarf2cfi.c: Code cleanup, removed unused variables,
10087 added default labels to switch {} statements.
10088 * x86-64-tdep.c: Ditto.
10089 * x86-64-linux-nat.c: Ditto.
10090
10091 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10092
10093 * solib.h: Protect against multiple inclusion.
10094
10095 2002-05-06 Jim Blandy <jimb@redhat.com>
10096
10097 Add first preprocessor macro-expansion files.
10098 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10099 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10100 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10101 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10102 (COMMON_OBS): Add macrotab.o, macroexp.o.
10103 (macroexp.o, macrotab.o): New rules.
10104
10105 Separate the job of reading the line number info statement program
10106 header (...expialidocious) out into its own function.
10107 * dwarf2read.c (struct line_head, struct filenames, struct
10108 directories): Replace with...
10109 (struct line_header): New structure, containing the full
10110 contents of the statement program header, including the
10111 include directory and file name tables.
10112 (read_file_scope): If we have line number info, instead of just
10113 calling dwarf_decode_lines to do all the work, call
10114 dwarf_decode_line_header first to get a `struct line_header'
10115 containing the data in the statement program header, and then
10116 pass that to dwarf_decode_lines, which will pick up where that
10117 left off. Be sure to clean up the `struct line_header' object.
10118 (dwarf_decode_line_header, free_line_header, add_include_dir,
10119 add_file_name): New functions.
10120 (dwarf_decode_lines): Move all the code to read the statement
10121 program header into dwarf_decode_line_header. Take the line
10122 header it built as the first argument, instead of the offset to
10123 the compilation unit's line number info. Use the new `struct
10124 line_header' type instead of the old structures. No need to do
10125 cleanups here now, since we don't allocate anything.
10126 (dwarf2_statement_list_fits_in_line_number_section,
10127 dwarf2_line_header_too_long): New complaints.
10128
10129 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10130
10131 * gdbtypes.c (init_vector_type): New function.
10132 (build_builtin_type_vec128): Simplify the representation of SIMD
10133 registers.
10134 (build_gdbtypes): Initialize new builtin vector types.
10135 (_initialize_gdbtypes): Register new vector types with gdbarch.
10136 (builtin_type_v4_float, builtin_type_v4_int32,
10137 builtin_type_v8_int16, builtin_type_v16_int8,
10138 builtin_type_v2_int32, builtin_type_v4_int16,
10139 builtin_type_v8_int8): New (renamed) SIMD types.
10140
10141 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10142
10143 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10144 (i387_fill_fxsave): Likewise.
10145
10146 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10147
10148 * alpha-tdep.c (alpha_extract_return_value): Don't use
10149 non-constant array size in prototype.
10150
10151 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10152
10153 From Brian Taylor <briant at model dot com>:
10154 * ui-out.c (ui_out_field_core_addr): Use the function
10155 longest_local_hex_string_custom'to format addresses > 32 bits
10156 wide.
10157
10158 * ui-out.c (ui_out_field_core_addr): Update comment.
10159
10160 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10161
10162 * stack.c (select_and_print_frame): Make static. Delete the
10163 parameter `level'.
10164 (func_command): Update call.
10165 (select_frame_command): Delete code computing the frame level.
10166 * frame.h (select_and_print_frame): Delete declaration.
10167
10168 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10169
10170 * sparc-tdep.c (sparc_get_saved_register): Comment why
10171 get_prev_frame call is safe.
10172
10173 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10174
10175 * frame.h (select_frame): Delete level parameter.
10176 * stack.c (select_frame): Update. Use frame_relative_level to
10177 obtain the frame's level.
10178 (select_and_print_frame): Update call.
10179 (select_frame_command): Ditto.
10180 (up_silently_base): Ditto.
10181 (down_silently_base): Ditto.
10182 * ocd.c (ocd_start_remote): Ditto.
10183 * remote-rdp.c (remote_rdp_open): Ditto.
10184 * remote-mips.c (mips_initialize): Ditto.
10185 (common_open): Ditto.
10186 * remote-e7000.c (e7000_start_remote): Ditto.
10187 * m3-nat.c (select_thread): Ditto.
10188 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10189 (child_get_current_exception_event): Ditto.
10190 * varobj.c (varobj_create): Ditto.
10191 (varobj_update): Ditto.
10192 (c_value_of_root): Ditto.
10193 * tracepoint.c (finish_tfind_command): Ditto.
10194 * corelow.c (core_open): Ditto.
10195 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10196 * thread.c (info_threads_command): Ditto.
10197 (switch_to_thread): Ditto.
10198 * infrun.c (normal_stop): Ditto.
10199 (restore_selected_frame): Ditto.
10200 (restore_inferior_status): Ditto.
10201 * breakpoint.c (insert_breakpoints): Ditto.
10202 (watchpoint_check): Ditto.
10203 (bpstat_stop_status): Ditto.
10204 (do_enable_breakpoint): Ditto.
10205 * blockframe.c (flush_cached_frames): Ditto.
10206 (reinit_frame_cache): Ditto.
10207
10208 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10209
10210 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10211 maintainer.
10212
10213 2002-05-04 Jim Blandy <jimb@redhat.com>
10214
10215 * gdbtypes.c (replace_type): Doc fix.
10216
10217 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10218
10219 * valprint.c (strcat_longest): Delete commented out function.
10220 Update copyright.
10221
10222 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10223
10224 * MAINTAINERS: Mark a29k as deleted.
10225 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10226 Move new configurations to the top.
10227 * configure.tgt: Remove a29k.
10228 * config/a29k/tm-vx29k.h: Delete.
10229 * config/a29k/vx29k.mt: Delete.
10230 * config/a29k/tm-a29k.h: Delete.
10231 * config/a29k/a29k-udi.mt: Delete.
10232 * config/a29k/a29k.mt: Delete.
10233 * a29k-tdep.c: Delete.
10234 * remote-udi.c: Delete.
10235 * remote-mm.c: Delete.
10236 * remote-eb.c: Delete.
10237 * remote-adapt.c: Delete.
10238 * Makefile.in: Remove obsolete code.
10239 * config/s390/s390x.mt: Ditto.
10240 * config/s390/s390.mt: Ditto.
10241 * config/sparc/sparclynx.mh: Ditto.
10242 * config/sparc/linux.mh: Ditto.
10243 * config/pa/hppaosf.mh: Ditto.
10244 * config/pa/hppabsd.mh: Ditto.
10245 * config/ns32k/nbsd.mt: Ditto.
10246 * config/mips/vr5000.mt: Ditto.
10247 * config/m68k/sun3os4.mh: Ditto.
10248 * config/m68k/nbsd.mt: Ditto.
10249 * config/m68k/m68klynx.mh: Ditto.
10250 * config/m32r/m32r.mt: Ditto.
10251 * config/i386/x86-64linux.mt: Ditto.
10252 * config/i386/nbsdelf.mt: Ditto.
10253 * config/i386/nbsd.mt: Ditto.
10254 * config/i386/i386lynx.mh: Ditto.
10255
10256 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10257
10258 * target.c (debug_print_register): New function. Handle oversize
10259 registers.
10260 (debug_to_fetch_registers): Call.
10261 (debug_to_store_registers): Call.
10262
10263 2002-05-03 Jim Blandy <jimb@redhat.com>
10264
10265 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10266 (read_type): Doc fix.
10267 * gdbtypes.c (replace_type): Doc fix.
10268
10269 * stabsread.c (multiply_defined_struct): New complaint.
10270 (read_struct_type): If the type we were passed isn't empty, or
10271 incomplete, don't read the new struct type into it; complain,
10272 and return the original type unchanged. Take a new `type_code'
10273 argument, which is the type code for the new type.
10274 (read_type): Rather than storing the type's type code here, pass
10275 it as an argument to read_struct_type, and let that take care of
10276 storing it. That way, we don't overwrite the original type code,
10277 so read_struct_type can use it to decide whether we're overwriting
10278 something we shouldn't.
10279 (complain_about_struct_wipeout): New function.
10280
10281 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10282
10283 * gdbarch.sh: Assert that gdbarch is non-NULL.
10284 * gdbarch.c: Regenerate.
10285
10286 2002-05-03 Jason Merrill <jason@redhat.com>
10287
10288 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10289 and return NULL.
10290
10291 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10292
10293 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10294 (x86_64_dwarf2gdb_regno_map_length),
10295 (x86_64_dwarf2_reg_to_regnum): Added.
10296 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10297 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10298 (_initialize_x86_64_tdep): Synced with the change above.
10299 (x86_64_skip_prologue): Reformulated message.
10300
10301 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10302
10303 * f-exp.y: Also use new prev_lexptr variable
10304 to improve error reporting. Based on Michael Snyder
10305 2002-04-24 dated patch to c-exp.y.
10306 * jv-exp.y: Likewise.
10307 * m2-exp.y: Likewise.
10308
10309 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10310
10311 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10312 we are dealing with vectors.
10313
10314 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10315
10316 * config/m68k/tm-nbsd.h: Obvious fix,
10317 correct machine name.
10318
10319 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10320
10321 * p-typeprint.c (pascal_type_print_base): Add support
10322 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10323
10324 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10325
10326 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10327 for fondamental pascal 'char' type.
10328
10329 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10330
10331 * p-lang.h (is_pascal_string_type): Declaration changed,
10332 new sixth argument of type char ** added.
10333 * p-lang.c (is_pascal_string_type): Implementation
10334 changed. Args length_pos, length_size, string_pos, char_size
10335 can now be NULL. New argument arrayname set to the field
10336 name of the char array. Return value set to char array
10337 field index plus one.
10338 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10339 is_pascal_string_type function.
10340
10341 2002-05-02 Andrew Cagney <cagney@redhat.com>
10342
10343 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10344 <cagney@redhat.com> change.
10345 * gdbarch.c: Regenerate.
10346
10347 2002-05-02 Andrew Cagney <cagney@redhat.com>
10348
10349 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10350 before probing for a new one. Detect errorenous gdbarch_init
10351 functions.
10352 * gdbarch.c: Regenerate.
10353
10354 2002-05-01 Andrew Cagney <cagney@redhat.com>
10355
10356 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10357 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10358 * config/v850/tm-v850.h: Ditto. Update copyright.
10359
10360 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10361
10362 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10363 current_gdbarch.
10364
10365 2002-04-30 Michael Snyder <msnyder@redhat.com>
10366
10367 * arm-tdep.c: Whitespace clean-ups.
10368 (arm_skip_prologue): Fix thinko; two lines
10369 should have been removed as part of 4/24 change.
10370
10371 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10372
10373 * rs6000-tdep.c: Added comment describing how fpscr register
10374 numbers were chosen.
10375
10376 2002-04-30 Michael Snyder <msnyder@redhat.com>
10377
10378 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10379
10380 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10381
10382 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10383 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10384 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10385
10386 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10387
10388 From Louis Hamilton <hamilton@redhat.com>:
10389 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10390 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10391 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10392 not bfd-private xcoff data, to determine wordsize.
10393 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10394
10395 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10396
10397 GDB 5.2 released from 5.2 branch.
10398
10399 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10400
10401 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10402 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10403 (x86_64_register_info_table): Added comments with register numbers.
10404
10405 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10406
10407 * rs6000-tdep.c (rs6000_extract_return_value,
10408 rs6000_store_return_value): Handle returning vectors.
10409 (rs6000_gdbarch_init): Use
10410 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10411 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10412 New function.
10413 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10414 vectors.
10415 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10416 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10417
10418 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10419
10420 * hpread.c (hpread_psymtab_to_symtab_1,
10421 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10422 with fprintf_unfiltered (gdb_stderr,...).
10423
10424 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10425
10426 * remote-array.c (printf_monitor, write_monitor,
10427 array_insert_breakpoint, array_remove_breakpoint ):
10428 Replace fprintf (stderr,...
10429 with fprintf_unfiltered (gdb_stderr,....
10430 * remote-es.c: Likewise.
10431 * remote-os9k.c: Likewise.
10432 * remote-st.c: Likewise.
10433
10434 2002-04-28 Andreas Schwab <schwab@suse.de>
10435
10436 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10437 linux-proc.o and gcore.o.
10438
10439 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10440
10441 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10442 code without frame pointers.
10443
10444 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10445
10446 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10447 ON_STACK is needed.
10448
10449 2002-04-26 Ben Elliston <bje@redhat.com>
10450
10451 * target.c (do_xfer_memory): Correct reference to the new option
10452 "trust-readonly-sections".
10453
10454 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10455
10456 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10457 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10458 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10459 vectors.
10460 (read_array_type): Record the fact that this array type is really a
10461 vector (i.e. are passed in by value).
10462
10463 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10464
10465 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10466 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10467 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10468 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10469 * alpha-linux-tdep.c: Include frame.h.
10470 (alpha_linux_sigcontext_addr): New function.
10471 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10472 alpha_linux_sigcontext_addr.
10473 * alpha-osf1-tdep.c: Include gdbcore.h.
10474 (alpha_osf1_sigcontext_addr): New function.
10475 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10476 alpha_osf1_sigcontext_addr.
10477 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10478 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10479
10480 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10481
10482 * stack.c (selected_frame_level):
10483 (select_frame): Do not set selected_frame_level.
10484 * frame.h (selected_frame_level): Delete declaration.
10485
10486 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10487
10488 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10489 convert_from_func_ptr-addr when AIX / PowerOpen.
10490
10491 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10492
10493 * valops.c (hand_function_call): Call
10494 generic_save_call_dummy_addr.
10495 * frame.h (generic_save_call_dummy_addr): Declare.
10496 * blockframe.c (struct dummy_frame): Add fields call_lo and
10497 call_hi.
10498 (generic_find_dummy_frame): Check for PC in range call_lo to
10499 call_hi instead of entry_point_address.
10500 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10501 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10502 (generic_save_call_dummy_addr): New function.
10503
10504 2002-04-24 David S. Miller <davem@redhat.com>
10505
10506 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10507 sparc_skip_prologue.
10508 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10509 information to find prologue when possible.
10510 (sparc_prologue_frameless_p): Call examine_prologue directly.
10511 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10512 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10513 second argument.
10514 (SKIP_PROLOGUE): Likewise.
10515
10516 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10517
10518 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10519 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10520 indicate that the condition it was testing is always true.
10521 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10522 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10523 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10524
10525 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10526
10527 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10528 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10529 tdep->jb_pc and tdep->jb_elt_size.
10530 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10531 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10532 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10533 * alpha-nat.c (get_longjmp_target): Remove.
10534 (JB_ELEMENT_SIZE): Ditto.
10535 (JB_PC): Ditto.
10536 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10537 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10538 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10539 to alpha_get_longjmp_target.
10540 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10541 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10542 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10543
10544 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10545
10546 * README: Update to GDB 5.2.
10547
10548 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10549
10550 * gdbarch.sh (LC_ALL): Set to `c'.
10551
10552 2002-04-25 Theodore A. Roth <troth@verinet.com>
10553
10554 * avr-tdep.c: Ran through gdb_indent.sh.
10555
10556 2002-04-25 Theodore A. Roth <troth@verinet.com>
10557
10558 * MAINTAINERS: Add myself as AVR maintainer.
10559 * NEWS: Note new target avr.
10560
10561 2002-04-25 Theodore A. Roth <troth@verinet.com>
10562
10563 * Makefile.in: Add support for AVR target.
10564 * configure.tgt: Add support for AVR target.
10565 * avr-tdep.c: New file
10566 * config/avr/avr.mt: New file.
10567
10568 2002-04-25 Theodore A. Roth <troth@verinet.com>
10569
10570 * MAINTAINERS: Add myself to write-after-approval.
10571
10572 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10573
10574 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10575 with fprintf_unfiltered (gdb_stderr,....
10576
10577 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10578
10579 Fix PR gdb/508.
10580 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10581
10582 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10583
10584 * p-exp.y: Also use new prev_lexptr variable
10585 to improve error reporting. Based on Michael Snyder
10586 2002-04-24 dated patch to c-exp.y.
10587
10588 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10589
10590 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10591 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10592 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10593 to 0.
10594 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10595 and struct value.
10596 (FUNCTION_START_OFFSET): Remove.
10597 (BREAKPOINT): Ditto.
10598
10599 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10600
10601 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10602 * NEWS: Ditto.
10603
10604 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10605
10606 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10607 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10608 alpha_linux_pc_in_sigtramp.
10609 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10610 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10611 alpha_osf1_pc_in_sigtramp.
10612 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10613 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10614 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10615 alphafbsd_pc_in_sigtramp.
10616 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10617 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10618 alphanbsd_pc_in_sigtramp.
10619 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10620 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10621
10622 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10623
10624 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10625
10626 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10627
10628 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10629 alphanbsd-tdep.c.
10630 (alphanbsd-nat.o): New dependency list.
10631 (alphanbsd-tdep.o): Ditto.
10632 * NEWS: Note new native NetBSD/alpha configuration.
10633 * alphanbsd-nat.c: New file.
10634 * alphanbsd-tdep.c: Ditto.
10635 * configure.host (alpha*-*-netbsd*): New host.
10636 * configure.tgt (alpha*-*-netbsd*): New target.
10637 * config/alpha/nbsd.mh: New file.
10638 * config/alpha/nbsd.mt: Ditto.
10639 * config/alpha/nm-nbsd.h: Ditto.
10640 * config/alpha/tm-nbsd.h: Ditto.
10641
10642 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10643
10644 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10645 (alpha-osf1-tdep.o): New dependency list.
10646 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10647 and skip_sigtramp_frame members.
10648 * alpha-linux-tdep.c: Include gdbcore.h.
10649 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10650 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10651 * alpha-osf1-tdep.c: New file.
10652 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10653 alpha-osf1-dep.c.
10654 (alpha_frame_past_sigtramp_frame): New function.
10655 (alpha_dynamic_sigtramp_offset): Ditto.
10656 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10657 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10658 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10659 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10660 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10661 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10662 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10663 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10664 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10665 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10666 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10667 to find_solib_trampoline_target.
10668 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10669 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10670 (SKIP_TRAMPOLINE_CODE): Remove.
10671 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10672 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10673 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10674 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10675 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10676 (PROC_SIGTRAMP_MAGIC): Ditto.
10677 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10678 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10679 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10680 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10681 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10682
10683 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10684
10685 * NEWS: Note that Alpha targets are now multi-arch.
10686
10687 2002-04-24 Michael Snyder <msnyder@redhat.com>
10688
10689 * parser-defs.h (prev_lexptr): New external variable.
10690 * parse.c (parse_exp_1): Set prev_lexptr to null before
10691 calling the language-specific parser.
10692 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10693 (yyerror): Use prev_lexptr in error reporting.
10694
10695 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10696
10697 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10698 * gregset.h: If FILL_FPXREGSET is defined, provide
10699 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10700 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10701 is defined, call fill_fpxregset.
10702
10703 2002-04-24 Roland McGrath <roland@frob.com>
10704
10705 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10706 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10707 (supply_gregset, supply_fpregset): New functions.
10708
10709 * gnu-nat.c (gnu_find_memory_regions): New function.
10710 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10711 (gnu_xfer_memory): Add a cast.
10712
10713 2002-04-24 Michael Snyder <msnyder@redhat.com>
10714
10715 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10716 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10717 of argument regs ("str r(0123), [r11, #-nn"]).
10718 (arm_skip_prologue): Better handling for frameless functions.
10719 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10720 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10721
10722 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10723
10724 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10725 NUM_PSEUDO_REGS can be used.
10726
10727 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10728
10729 * arch-utils.h: Update copyright.
10730
10731 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10732 * gdbarch.h, gdbarch.c: Re-generate.
10733
10734 * inferior.h (IN_SIGTRAMP): Delete definition.
10735 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10736 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10737
10738 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10739 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10740 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10741 (find_proc_framesize): Ditto.
10742 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10743 (alpha_init_extra_frame_info): Ditto.
10744 * infrun.c (handle_inferior_event): Ditto.
10745 (handle_inferior_event): Ditto.
10746 (check_sigtramp2): Ditto.
10747 * blockframe.c (create_new_frame): Ditto.
10748 (get_prev_frame): Ditto.
10749 * ppc-linux-tdep.c: Update comments.
10750 * i386-linux-tdep.c: Update comments.
10751 * breakpoint.c (bpstat_what): Update comment.
10752
10753 2002-04-24 David S. Miller <davem@redhat.com>
10754
10755 * i960-tdep.c (register_in_window_p): New function.
10756 (i960_find_saved_register): Use it instead of
10757 REGISTER_IN_WINDOW_P.
10758 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10759
10760 * symtab.h (find_stab_function_addr): Kill extern.
10761 * minsyms.c (find_stab_function_addr): Remove from here...
10762 * dbxread.c: ... to here, and mark it static.
10763
10764 2002-04-20 David S. Miller <davem@redhat.com>
10765
10766 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10767 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10768
10769 2002-04-21 David S. Miller <davem@redhat.com>
10770
10771 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10772 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10773 (vx_write_register): Likewise.
10774
10775 2002-04-23 J. Brobecker <brobecker@gnat.com>
10776
10777 * source.c (is_regular_file): New function.
10778 (openp): Check wether file to open is a regular file
10779 to avoid opening directories.
10780
10781 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10782
10783 * findvar.c (extract_signed_integer): Cast printf argument
10784 to suppress format warning.
10785 (extract_unsigned_integer): Likewise.
10786 * infcmd.c (registers_info): Likewise.
10787 * top.c (get_prompt_1): Likewise.
10788 * valops.c (value_assign): Likewise.
10789 * valprint.c (print_decimal): Likewise.
10790
10791 2002-04-22 H.J. Lu (hjl@gnu.org)
10792
10793 * c-exp.y (typebase): Support
10794
10795 [long|long long|short] [signed|unsigned] [int|]
10796
10797 and
10798
10799 signed [long|long long|short] int
10800
10801 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10802
10803 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10804 and vax-tdep.h.
10805 * vax-tdep.h: New file.
10806 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10807 Make several routines static.
10808 (vax_get_saved_register): New function.
10809 (vax_gdbarch_init): New function.
10810 (_initialize_vax_tdep): Register vax_gdbarch_init.
10811 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10812 Remove macros now under the control of gdbarch.
10813
10814 2002-04-22 Michael Snyder <msnyder@redhat.com>
10815
10816 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10817 Some whitespace and coding standards tweaks.
10818
10819 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10820
10821 * vax-tdep.c: Include regcache.h.
10822 (vax_call_dummy_words): New.
10823 (sizeof_vax_call_dummy_words): New.
10824 (vax_fix_call_dummy): New function.
10825 (vax_saved_pc_after_call): Ditto.
10826 * config/vax/tm-vax.h: Don't include regcache.h.
10827 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10828 (CALL_DUMMY): Remove.
10829 (CALL_DUMMY_WORDS): Define.
10830 (SIZEOF_CALL_DUMMY_WORDS): Define.
10831 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10832
10833 2002-04-18 Michael Snyder <msnyder@redhat.com>
10834
10835 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10836
10837 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10838
10839 * vax-tdep.c (vax_frame_chain): New function.
10840 (vax_push_dummy_frame): Ditto.
10841 (vax_pop_frame): Ditto.
10842 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10843 (FRAMELESS_FUNCTION_INVOCATION): Use
10844 generic_frameless_function_invocation_not.
10845 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10846 (POP_FRAME): Use vax_pop_frame.
10847
10848 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10849
10850 * vax-tdep.c (vax_store_struct_return): New function.
10851 (vax_extract_return_value): Ditto.
10852 (vax_store_return_value): Ditto.
10853 (vax_extract_struct_value_address): Ditto.
10854 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10855 vax_store_struct_return.
10856 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10857 (STORE_RETURN_VALUE): Use vax_store_return_value.
10858 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10859
10860 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10861
10862 * vax-tdep.c (vax_frame_saved_pc): New function.
10863 (vax_frame_args_address_correct): Ditto.
10864 (vax_frame_args_address): Ditto.
10865 (vax_frame_locals_address): Ditto.
10866 (vax_frame_num_args): Move code to be in proximity to
10867 other frame-related functions.
10868 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10869 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10870 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10871 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10872 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10873
10874 2002-04-22 H.J. Lu (hjl@gnu.org)
10875
10876 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10877 includedir.
10878
10879 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10880
10881 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10882 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10883 (FRAME_INIT_SAVED_REGS): New macro.
10884
10885 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10886
10887 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10888
10889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10890
10891 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10892 where needed.
10893 (fetch_osf_core_registers): Likewise.
10894 (supply_gregset): Likewise.
10895
10896 2002-04-22 J. Brobecker <brobecker@gnat.com>
10897
10898 * symfile.h (get_section_index): Define.
10899 * symfile.c (get_section_index): New function.
10900 * mdebugread.c (SC_IS_SBSS): New macro.
10901 (SC_IS_BSS): Return true for the scBss storage class only, as
10902 the scSBss storage class refers to the .sbss section.
10903 (parse_partial_symbols): Discard the symbols which associated
10904 section does not exist.
10905 Make sure to use the .sbss section index for symbols which
10906 storage class is scBss, rather than using the .bss section index.
10907
10908 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10909
10910 * vax-tdep.c: Update copyright years.
10911 (vax_register_name): New function.
10912 (vax_register_byte): Ditto.
10913 (vax_register_raw_size): Ditto.
10914 (vax_register_virtual_size): Ditto.
10915 (vax_register_virtual_type): Ditto.
10916 * config/vax/tm-vax.h: Update copyright years.
10917 (REGISTER_NAMES): Remove.
10918 (REGISTER_NAME): Define.
10919 (REGISTER_BYTE): Use vax_register_byte.
10920 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10921 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10922 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10923
10924 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10925
10926 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10927 declaration
10928 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10929
10930 2002-04-21 David S. Miller <davem@redhat.com>
10931
10932 * arch-utils.c (generic_prologue_frameless_p): Kill
10933 SKIP_PROLOGUE_FRAMELESS_P code.
10934 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10935 references.
10936 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10937 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10938 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10939 references.
10940 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10941 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10942 (sparc_gdbarch_init): Pass it to
10943 set_gdbarch_prologue_frameless_p.
10944
10945 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10946
10947 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10948 (alphabsd-nat.o): New dependency list.
10949
10950 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10951
10952 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10953 alphafbsd-tdep.c.
10954 (alpha-linux-tdep.o): New dependency list.
10955 (alphafbsd-tdep.o): Likewise.
10956
10957 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10958
10959 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10960 to here...
10961 * alpha-tdep.c: ...from here.
10962 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10963
10964 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10965
10966 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10967 prototype from here...
10968 * alpha-tdep.h: ...to here.
10969
10970 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10971
10972 * frame.h (selected_frame_level): Document as deprecated.
10973 (frame_relative_level): Declare.
10974 * stack.c (frame_relative_level): New function.
10975 (selected_frame_level): Document as deprecated.
10976 (select_frame): Do not set the selected_frame_level.
10977
10978 * stack.c (frame_info, record_selected_frame): Update.
10979 (frame_command, current_frame_command): Update.
10980 (up_silently_base, up_command, down_silently_base): Update.
10981 (down_command): Update.
10982 * inflow.c (kill_command): Update.
10983 * tracepoint.c (finish_tfind_command): Update.
10984 * corelow.c (core_open): Update.
10985 * thread.c (info_threads_command): Update.
10986 (do_captured_thread_select): Update.
10987 * infcmd.c (finish_command): Update.
10988 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10989
10990 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10991
10992 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10993
10994 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10995
10996 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10997 type const.
10998
10999 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11000
11001 * alphafbsd-tdep.c: Update copyright years. Include
11002 alpha-tdep.h.
11003 (alphafbsd_use_struct_convention): Make static.
11004 (alphafbsd_init_abi): New function.
11005 (_initialize_alphafbsd_tdep): New function.
11006 * config/alpha/tm-fbsd.h: Update copyright years.
11007 (USE_STRUCT_CONVENTION): Remove.
11008
11009 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11010
11011 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11012 an Alpha ABI variant.
11013 (alpha_abi_handler_list): Declare.
11014 (alpha_gdbarch_register_os_abi): New function.
11015 (alpha_gdbarch_init): Give registered ABI variant handlers a
11016 chance to tweak the gdbarch once we have set up defaults.
11017 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11018
11019 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11020
11021 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11022 to standard_coerce_float_to_double.
11023 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11024
11025 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11026
11027 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11028 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11029 from gdbarch_tdep rather than a constant.
11030 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11031 the default text address for all Alpha Unix ABIs.
11032 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11033 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11034
11035 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11036
11037 * alpha-tdep.h: New file. Includes several Alpha target constants
11038 taken from...
11039 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11040 let gdbarch deal with.
11041 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11042 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11043 to dependency list.
11044 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11045 Alpha target register names.
11046 * alphabsd-nat.c: Likewise.
11047 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11048 Alpha target register names. Make serveral routines static.
11049 (alpha_get_saved_register): New function.
11050 (alpha_abi_names): New.
11051 (process_note_abi_tag_sections): New function.
11052 (get_elfosabi): New function.
11053 (alpha_gdbarch_init): New function.
11054 (alpha_dump_tdep): New function.
11055 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11056
11057 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11058
11059 * frame.c (find_saved_register): Delete #ifdef
11060 HAVE_REGISTER_WINDOWS code.
11061 * config/sparc/tm-sparc.h: Update comments.
11062 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11063
11064 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11065
11066 * i960-tdep.c (i960_find_saved_register): New function.
11067 (i960_get_saved_register): New function.
11068 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11069 (i960_get_saved_register): Declare.
11070 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11071
11072 2002-04-20 David S. Miller <davem@redhat.com>
11073
11074 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11075
11076 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11077
11078 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11079 instead of NUM_PSEUDO_REGS.
11080
11081 2002-04-20 David S. Miller <davem@redhat.com>
11082
11083 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11084 GDB_MULTI_ARCH_PARTIAL
11085 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11086 define, let tm-sp64.h do it.
11087
11088 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11089
11090 * frame.c (find_saved_register): Avoid a NULL pointer
11091 dereference and actually walk the frame list.
11092
11093 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11094
11095 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11096 sorted in most most-recent-used order. Document.
11097 * gdbarch.h, gdbarch.c: Regenerate.
11098
11099 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11100
11101 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11102 instead of ->prev.
11103 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11104 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11105 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11106 instead of ->prev.
11107
11108 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11109
11110 Fix PR gdb/471.
11111 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11112 (build_builtin_type_vec128): Ditto.
11113 (append_composite_type_field): Fix calculation of type length in
11114 union case.
11115
11116 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11117
11118 * config/djgpp/README: Update.
11119
11120 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11121 compiler warnings.
11122
11123 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11124
11125 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11126 (alpha_setup_arbitrary_frame): ...to this.
11127 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11128 for alpha_setup_arbitrary_frame.
11129
11130 2002-04-18 Andrew Cagney <cagney@redhat.com>
11131
11132 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11133 * gdbarch.h, gdbarch.c: Regenerate.
11134
11135 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11136 * target.h (memory_breakpoint_from_pc): Update declaration.
11137 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11138
11139 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11140 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11141 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11142 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11143 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11144 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11145 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11146 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11147 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11148 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11149 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11150 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11151
11152 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11153 const pointer.
11154 * monitor.c (monitor_insert_breakpoint): Ditto.
11155 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11156
11157 * config/mcore/tm-mcore.h: Update copyright.
11158 * mem-break.c: Ditto.
11159 * xstormy16-tdep.c: Ditto.
11160
11161 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11162
11163 * p-exp.y: Add precedence rule for '^' token.
11164 This removes the shift/reduce conflicts.
11165 Remove the comment concerning these shift/reduce conflicts.
11166
11167 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11168
11169 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11170 (registers_powerpc_nofp): New register set for processors
11171 without floating point unit.
11172
11173 2002-04-18 David S. Miller <davem@redhat.com>
11174
11175 * MAINTAINERS: Add myself to write-after-approval.
11176
11177 2002-04-17 Michael Snyder <msnyder@redhat.com>
11178
11179 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11180
11181 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11182
11183 * rs6000-tdep.c (frame_initial_stack_address): Use
11184 frame_register_read to read the alloca_reg.
11185
11186 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11187
11188 * frame.c (find_saved_register): Find saved registers in the next
11189 not prev frame.
11190 Fix PR gdb/365.
11191
11192 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11193
11194 * gdbarch.sh (LANG): Set to ``c''.
11195
11196 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11197
11198 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11199
11200 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11201
11202 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11203 Update copyright.
11204
11205 * hpread.c (hpread_get_lntt): Add declaration.
11206 Also fix PR gdb/391.
11207
11208 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11209
11210 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11211 * aclocal.m4, configure: Re-generate.
11212 Fix PR gdb/391.
11213
11214 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11215
11216 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11217 instead of tm_print_insn.
11218
11219 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11220
11221 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11222
11223 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11224
11225 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11226 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11227 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11228
11229 2002-04-12 Don Howard <dhoward@redhat.com>
11230
11231 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11232 max_user_call_depth.
11233 (init_cmd_lists): Initialize the new value;
11234 * cli/cli-script.c (execute_user_command): Limit the call depth of
11235 user defined commands. This avoids a core-dump when user commands
11236 are infinitly recursive.
11237
11238 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11239
11240 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11241 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11242 from tdep struct instead of DEFAULT_LR_SAVE.
11243 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11244 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11245 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11246
11247 2002-04-12 Michael Snyder <msnyder@redhat.com>
11248
11249 * Remote.c: Spelling fix.
11250 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11251 If no symbol found for "sbrk", try "_sbrk".
11252 (make_output_phdrs): Use bfd_section_name.
11253 (gcore_copy_callback): Use bfd_section_name.
11254 * eval.c: Indentation fix-ups.
11255 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11256 in case it gets applied to an address that is already
11257 in the instruction space.
11258 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11259 * symfile.c: Fix indentation, long lines.
11260 * source.c: White space fix-up.
11261
11262 2002-04-12 Andrew Cagney <cagney@redhat.com>
11263
11264 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11265 * frame.c (frame_register_read): New function. Return non-zero on
11266 success.
11267 (read_relative_register_raw_bytes_for_frame): Delete.
11268 (read_relative_register_raw_bytes): Delete.
11269 * frame.h (frame_register_read): Declare.
11270 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11271 * sh-tdep.c: Ditto.
11272 * infcmd.c (do_registers_info): Ditto.
11273 * hppa-tdep.c: Ditto.
11274 * rs6000-tdep.c: Ditto.
11275 * h8500-tdep.c: Ditto.
11276 * mips-tdep.c: Ditto.
11277 * h8300-tdep.c: Ditto.
11278 * z8k-tdep.c: Ditto.
11279
11280 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11281
11282 From Jimi X <jimix@watson.ibm.com>:
11283 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11284 64-bit SysV ABI.
11285
11286 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11287
11288 From Jimi X <jimix@watson.ibm.com>:
11289 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11290 bfd info.
11291
11292 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11293
11294 From Jimi X <jimix@watson.ibm.com>:
11295 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11296 register sets for these processor variants.
11297
11298 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * regformats/reg-ppc.dat: Support FPSCR.
11301
11302 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11303
11304 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11305 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11306 Add fpscr as an invalid/unfetchable register.
11307 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11308 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11309 (fill_fpregset): Add support for register fpscr.
11310 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11311 (fill_gregset): Account for the fact that register ``mq'' might
11312 not exist.
11313 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11314 (registers_power): Add fpscr to register set at slot 71.
11315 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11316 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11317
11318 2002-04-11 Michael Snyder <msnyder@redhat.com>
11319
11320 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11321 * configure: Regenerate.
11322 * config.in: Regenerate.
11323 * acconfig.h: Add define for _SYSCALL32.
11324 * core-sol2.c: Remove #define _SYSCALL32.
11325 * solib-legacy.c: Remove #define _SYSCALL32.
11326
11327 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11328
11329 * stack.c (select_frame): Cleanup internal error message, do not
11330 use %p.
11331
11332 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11333
11334 * stack.c (select_frame): Check that selected_frame and the
11335 specified level are as expected.
11336 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11337 Update copyright.
11338 * frame.h (struct frame_info): Add field `level'. Update
11339 copyright.
11340 Work-in-progress PR gdb/464.
11341
11342 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11343
11344 * maint.c (maint_print_section_info): Rename print_section_info.
11345 (print_bfd_section_info, print_objfile_section_info): Update.
11346 * inferior.h (struct gdbarch): Add opaque declaration.
11347 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11348 * gdbarch.h: Regenerate.
11349
11350 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11351
11352 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11353 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11354 (kernel_u_size): Added.
11355 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11356 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11357
11358 2002-04-04 Jim Ingham <jingham@apple.com>
11359
11360 * valarith.c (find_size_for_pointer_math): New function, either returns
11361 the size for a pointer's target, returns 1 for void *, or errors for
11362 incomplete types.
11363 (value_add, value_sub): use find_size_for_pointer_math.
11364
11365 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11366
11367 * linux-low.c (linux_look_up_symbols): New hook.
11368 (linux_target_ops): Add linux_look_up_symbols.
11369 * remote-utils.c (decode_address): New function.
11370 (look_up_one_symbol): New function.
11371 * server.c (handle_query): Call target look_up_symbols hook.
11372 * server.h (look_up_one_symbol): Add prototype.
11373 * target.h (struct target_ops): Add look_up_symbols hook.
11374
11375 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11376
11377 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11378 override FP_REGNUM with frame->fp. Update copyright.
11379 * parse.c (num_std_regs, std_regs): Delete.
11380 (target_map_name_to_register): Do not search std_regs. Update
11381 function description.
11382 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11383 declarations. Update copyright.
11384 Fix PR gdb/251.
11385
11386 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11389 after the last symbol in a block.
11390
11391 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11392
11393 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11394 is non zero as a found symbol.
11395
11396 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11397
11398 * findvar.c: Include "builtin-regs.h".
11399 (value_of_register): Call value_of_builtin_reg when applicable.
11400 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11401 (target_map_name_to_register): Call
11402 builtin_reg_map_name_to_regnum.
11403 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11404 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11405 (builtin_regs_h): Define.
11406 (builtin-regs.o): New target.
11407 (findvar.o): Add $(builtin_regs_h).
11408 * builtin-regs.c, builtin-regs.h: New files.
11409 * std-regs.c: New file.
11410 Partial fix for PR gdb/251.
11411
11412 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11413
11414 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11415 it's no longer required.
11416
11417 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11418
11419 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11420
11421 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11422
11423 From Jimi X <jimix@watson.ibm.com>:
11424 * rs6000-tdep.c (rs6000_software_single_step): Use
11425 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11426 and size. Use target_insert_breakpoint() and
11427 target_remove_breakpoint() to insert and remove breakpoints
11428 instead of explicit memory reads and writes.
11429
11430 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11431
11432 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11433 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11434 ELF_OBJECT_FORMAT ifdef.
11435
11436 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11437
11438 From Jimi X <jimix@watson.ibm.com>:
11439 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11440
11441 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11442
11443 From Jimi X <jimix@watson.ibm.com>:
11444 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11445 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11446
11447 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11448
11449 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11450 s/asprintf/xasprintf/.
11451 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11452
11453 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11454
11455 I believe Jeff Law denies responsability for this one:
11456 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11457 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11458 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11459 Work-around for PR gdb/366.
11460
11461 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11462
11463 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11464 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11465 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11466
11467 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11468
11469 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11470 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11471 information.
11472
11473 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11474
11475 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11476 maintainer.
11477
11478 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11479
11480 * README (Reporting Bugs in GDB): Document the bug web page as the
11481 prefered way of submitting bugs.
11482 Fix PR gdb/402.
11483
11484 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11485
11486 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11487 -1. Update comment.
11488 * gdbarch.h, gdbarch.c: Re-generate.
11489
11490 2002-04-07 Andreas Schwab <schwab@suse.de>
11491
11492 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11493 buffer to regcache_collect.
11494
11495 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11496
11497 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11498 * gdbarch.c, gdbarch.h: Re-generate.
11499
11500 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11501
11502 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11503 declaration. Fix -Werror.
11504
11505 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11506
11507 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11508 * gdbarch.c: Regenerate.
11509
11510 2002-04-05 Michael Snyder <msnyder@redhat.com>
11511
11512 * breakpoint.c (clear_command): Rewrite middle section to
11513 combine two loops with identical control conditions.
11514 Add a cleanup to eliminate a memory leak.
11515 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11516
11517 2002-04-05 H.J. Lu (hjl@gnu.org)
11518
11519 * solib-svr4.c (bkpt_names): Add "__start".
11520
11521 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11522
11523 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11524 as test for 64 bit target.
11525
11526 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11527
11528 * h8500-tdep.c (h8500_write_fp): Delete function.
11529 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11530 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11531 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11533 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11534 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11535 (s390_write_fp):
11536 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11537 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11538 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11539 (d10v_write_fp): Delete function.
11540 * inferior.h (write_fp, generic_target_write_fp): Delete
11541 declarations.
11542 * regcache.c (generic_target_write_fp): Delete function.
11543 (write_fp): Delete function.
11544 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11545 * gdbarch.h, gdbarch.c: Regenerate.
11546 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11547 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11548 (sparc64_write_fp): Delete declaration.
11549 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11550 (h8500_write_fp): Delete declaration.
11551
11552 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11553
11554 * sparc-tdep.c (sparc64_write_fp): Delete.
11555 (sparc_push_dummy_frame): Replace write_fp call with code to store
11556 the FP directly.
11557 (sparc_gdbarch_init): Do not initialize write_fp.
11558
11559 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11560
11561 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11562 clause.
11563
11564 2002-03-29 Jim Blandy <jimb@redhat.com>
11565
11566 * stack.c (get_selected_block): Add new argument `addr_in_block',
11567 used to return the exact code address we used to select the block,
11568 not just the block.
11569 * blockframe.c (get_frame_block, get_current_block): Same.
11570 * frame.h (get_frame_block, get_current_block,
11571 get_selected_block): Update declarations.
11572 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11573 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11574
11575 2002-04-05 Michael Snyder <msnyder@redhat.com>
11576
11577 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11578 warning message.
11579
11580 2002-04-05 J. Brobecker <brobecker@gnat.com>
11581
11582 * utils.c (xfullpath): New function.
11583 * defs.h (xfullpath): Add declaration.
11584 * source.c (openp): Use xfullpath in place of gdb_realpath to
11585 avoid resolving the basename part of filenames when the
11586 associated file is a symbolic link. This fixes a potential
11587 inconsistency between the filenames known to GDB and the
11588 filenames it prints in the annotations.
11589 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11590 to be able to match a filename with either the real filename, or
11591 the name of any symbolic link to this file.
11592 (lookup_partial_symtab): Ditto.
11593
11594 2002-04-04 Michael Snyder <msnyder@redhat.com>
11595
11596 * breakpoint.c: Add support for hardware breakpoints in overlays.
11597 (overlay_events_enabled): New state variable.
11598 (insert_breakpoints): Use overlay_events_enabled to decide
11599 whether to attempt to set a breakpoint at the overlay load addr.
11600 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11601 (remove_breakpoint): Use overlay_events_enabled to decide
11602 whether breakpoints need to be removed from overlay load addr.
11603 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11604 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11605 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11606 disable_overlay_breakpoints): Update overlay_events_enabled.
11607
11608 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11609
11610 * dwarf2read.c (struct function_range): New.
11611 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11612 (check_cu_functions): New.
11613 (read_file_scope): Initialize global function lists.
11614 Call dwarf_decode_line after processing children.
11615 (read_func_scope): Add to global function list.
11616 (dwarf_decode_lines): Call check_cu_functions everywhere
11617 record_line is called. Call record_line with a linenumber
11618 of 0 to mark sequence ends.
11619
11620 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11621
11622 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11623 change sync with glibc.
11624
11625 2002-04-03 Jim Blandy <jimb@redhat.com>
11626
11627 * configure.in: Call AC_C_INLINE.
11628 * configure: Regenerated.
11629
11630 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11631
11632 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11633 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11634
11635 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11636
11637 * NEWS: Mention gcore support on FreeBSD/i386.
11638
11639 * fbsd-proc.c: New file.
11640 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11641 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11642
11643 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11644 while statement.
11645
11646 2002-03-29 Jim Blandy <jimb@redhat.com>
11647
11648 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11649 unescaped newlines in string literals, but newer ones don't. So
11650 escape them.
11651
11652 2002-03-26 Michael Snyder <msnyder@redhat.com>
11653 Andrew Cagney <cagney@redhat.com>
11654
11655 * cli/cli-dump.c: New file. Dump memory to file,
11656 restore file to memory.
11657 * cli/cli-dump.h: New file.
11658 * Makefile.in: Add rules, dependencies for cli-dump.o.
11659 * NEWS: Mention new commands.
11660
11661 2002-03-28 Michael Snyder <msnyder@redhat.com>
11662
11663 * symfile.c (symbol_file_add): Move test for null symbols to later.
11664
11665 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11666
11667 From veksler at il.ibm.com:
11668 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11669 the xstrduped original path.
11670 Fix PR gdb/417.
11671
11672 2002-03-27 Michael Snyder <msnyder@redhat.com>
11673
11674 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11675 * infcmd.c (_initialize_infcmd): Ditto.
11676 * language.c (_initialize_language): Ditto.
11677 * symfile.c (_initialize_symfile): Ditto.
11678 * top.c (_init_main): Ditto.
11679 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11680
11681 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11682
11683 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11684 vector registers handling.
11685 (skip_prologue): Handle new AltiVec instructions. Fill in new
11686 fields of frame data.
11687 (frame_get_saved_regs): Fill in information for AltiVec registers.
11688
11689 2002-03-27 Jim Blandy <jimb@redhat.com>
11690
11691 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11692 a function; leave this macro here to invoke that function.
11693 (symbol_init_mangled_name): Declaration for that function.
11694 * symtab.c (symbol_init_mangled_name): New function.
11695
11696 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11697
11698 * valarith.c: Replace strerror with safe_strerror.
11699 * tracepoint.c: Ditto.
11700 * lin-lwp.c: Ditto.
11701 * go32-nat.c: Ditto.
11702 * inflow.c: Ditto.
11703 * gnu-nat.c: Ditto.
11704
11705 2002-03-27 Andreas Schwab <schwab@suse.de>
11706
11707 * event-top.c (command_line_handler): Remove useless if.
11708
11709 2002-03-27 Andreas Jaeger <aj@suse.de>
11710
11711 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11712 comment.
11713
11714 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11715
11716 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11717 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11718 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11719 (x86_64_linux_dr_get_status, supply_gregset),
11720 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11721 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11722 (x86_64_register_info_table): Add.
11723 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11724 (x86_64_register_raw_size, x86_64_register_virtual_type),
11725 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11726 general x86_64_register_info_table.
11727 (i386_gdbarch_init): gdbarch_register_bytes is now set
11728 dynamicaly during initialization.
11729 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11730 * gdbserver/linux-x86-64-low.c: Ditto.
11731
11732 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11733
11734 * gdbserver/server.c (main): Call target_signal_to_host_p
11735 and target_signal_to_host on signals received from the remote.
11736 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11737 target_signal_from_host on signals sent to the remote.
11738 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11739 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11740
11741 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11742
11743 * signals/signals.c: Include "server.h" in gdbserver build.
11744 (target_signal_from_name): Don't use STREQ.
11745 (_initialize_signals): Likewise. Don't include function in
11746 gdbserver build.
11747
11748 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11749
11750 * signals.c: Moved to...
11751 * signals/signals.c: Here.
11752 * Makefile (signals.o): Update.
11753
11754 2002-03-26 Jeff Law (law@redhat.com)
11755
11756 * somread.c (som_symtab_read): Remove some commented out code and
11757 updated related comments. Do not set the minimal symbol table to
11758 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11759 in a dynamic executable.
11760 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11761 where we are unable to find the minimal symbol for the given
11762 PC value.
11763
11764 2002-03-25 Jeff Law (law@redhat.com)
11765
11766 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11767
11768 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11769
11770 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11771
11772 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11773
11774 * command.h: Update copyright.
11775 (struct cmd_list_element): Replace definition with opaque
11776 declaration.
11777 (enum cmd_types): Document that it will eventually be moved to
11778 cli/cli-decode.h
11779 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11780 (MALLOCED_REPLACEMENT): Delete macro.
11781 * Makefile.in (cli_decode_h): Add $(command_h).
11782 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11783 * top.c: Include "cli/cli-decode.h".
11784 * completer.c: Include "cli/cli-decode.h".
11785 * maint.c: Include "cli/cli-decode.h".
11786 * cli/cli-decode.h: Include "command.h".
11787 (enum command_class): Delete.
11788 (enum cmd_types): Comment out.
11789 (enum cmd_auto_boolean): Delete.
11790 (enum var_types): Delete.
11791
11792 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11793
11794 * cli/cli-decode.c: Include "gdb_assert.h".
11795 (add_set_or_show_cmd): New static function.
11796 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11797 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11798 all fields, such as func, from the set command.
11799
11800 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11801
11802 * MAINTAINERS (sh-elf): Change warning flag to -w.
11803
11804 2002-03-23 Andrew Cagney <cagney@redhat.com>
11805
11806 * defs.h (error): Add printf format attribute.
11807 * thread-db.c (thread_from_lwp): Fix error format string.
11808 * stack.c (parse_frame_specification): Ditto.
11809 * cli/cli-decode.c (undef_cmd_error): Ditto.
11810 * scm-lang.c (scm_lookup_name): Ditto.
11811 * tracepoint.c (trace_error): Ditto.
11812 * remote-utils.c (usage): Ditto.
11813 * remote.c (compare_sections_command): Ditto.
11814 Fix PR gdb/328.
11815
11816 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11817
11818 * gdbtypes.c (append_composite_type_field): New function.
11819 (init_composite_type): New function.
11820 * gdbtypes.h (append_composite_type_field): Declare.
11821 (init_composite_type): Ditto.
11822
11823 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11824
11825 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11826 function.
11827 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11828 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11829 structure returning convention for SYSV ABI case, but not
11830 for GNU/Linux, FreeBSD, or NetBSD.
11831
11832 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11833
11834 * symtab.h (lookup_block_symbol): Add mangled_name argument
11835 to prototype.
11836
11837 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11838 with new mangled_name argument.
11839 * linespec.c (decode_line_1): Likewise.
11840 * valops (value_of_this): Likewise.
11841 * symtab.c (lookup_transparent_type): Likewise.
11842 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11843 (lookup_symbol): If we are given a mangled name, pass it down
11844 to lookup_symbol_aux.
11845 (lookup_block_symbol): If we are given a mangled name to check
11846 against, only return symbols which match it.
11847
11848 2002-03-22 Christopher Faylor <cgf@redhat.com>
11849
11850 * win32-nat.c (child_create_inferior): Check for proper shell to use
11851 here, in case the user changes it on the fly.
11852 (_initialize_inftarg): Remove shell path considerations.
11853
11854 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11855
11856 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11857 for gdbarch_max_register_raw_size and max_register_virtual_size.
11858 Adjust copyright year.
11859
11860 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11861
11862 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11863 in a function to cover the entire beginning of the function
11864 as well if it does not already.
11865
11866 2002-03-21 Tom Rix <trix@redhat.com>
11867
11868 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11869 (rs6000_ptrace64): Renamed from ptrace64.
11870
11871 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11872
11873 * gdbserver/remote-utils.c (remote_open): Don't call
11874 getprotobyname, we're all using TCP here so just use
11875 IPPROTO_TCP.
11876 * gdbserver/gdbreplay.c (remote_open): Ditto.
11877
11878 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11879
11880 * regcache.c (_initialize_regcache): No need to call
11881 build_regcache() at this time; it gets called whenever
11882 the gdbarch changes.
11883
11884 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11885
11886 * sparc-nat.c: Include sys/param.h where possible.
11887
11888 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11889
11890 Fix PR gdb/422.
11891 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11892 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11893 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11894 complex types.
11895 * stabsread.c (rs6000_builtin_type): Likewise.
11896 (read_sun_floating_type): Likewise.
11897
11898 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11899
11900 * stabsread.c (read_member_functions): Remove skip code for duplicate
11901 constructor/destructor methods. Use standard parsing for these
11902 methods and just do not chain them to the list of methods after
11903 parsing.
11904
11905 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11906
11907 * coffread.c: Remove redundant static declarations. Replace
11908 occurrences of `PTR' with `void *'.
11909 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11910 * top.h (quit_cover): Likewise.
11911 * defs.h (catch_errors): Likewise.
11912
11913 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11914
11915 * defs.h (XMALLOC): Define.
11916 * gdb-events.sh (XMALLOC): Delete macro.
11917 * gdb-events.c, gdb-events.h: Regenerate.
11918 * gdbarch.sh (XMALLOC): Delete macro.
11919 * gdbarch.c: Regenerate.
11920 * serial.c (XMALLOC): Delete macro.
11921 * ui-file.c (XMALLOC): Ditto.
11922 * ser-unix.h (XMALLOC): Ditto.
11923 * sh-tdep.c (XMALLOC): Ditto.
11924 * ui-out.c (XMALLOC): Ditto.
11925 * utils.c (XMALLOC): Ditto.
11926 * i386-tdep.c (XMALLOC): Ditto.
11927 * gdb-events.c (XMALLOC): Ditto.
11928 * d10v-tdep.c (XMALLOC): Ditto.
11929 * cli-out.c (XMALLOC): Ditto.
11930
11931 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11932 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11933 * ui-file.c, ui-out.c: Ditto.
11934
11935 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11936
11937 * command.h (struct cmd_list_element): Add field context.
11938 (set_cmd_context, get_cmd_context): Declare.
11939 * cli/cli-decode.h: Ditto.
11940 * cli/cli-decode.c (get_cmd_context): New function.
11941 (set_cmd_context): New function.
11942 (add_cmd): Initialize context.
11943 Part of fixing PR gdb/145 and PR gdb/146.
11944
11945 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11946
11947 * cli/cli-decode.c (cmd_type): New function.
11948 * command.h (cmd_type): Declare.
11949 * infrun.c (set_schedlock_func): Call function cmd_type.
11950 * kod.c (kod_set_os): Call cmd_type.
11951 * cris-tdep.c (cris_version_update): Use function cmd_type.
11952 (cris_mode_update, cris_abi_update): Ditto.
11953
11954 * command.h: (execute_cmd_post_hook): Declare.
11955 (execute_cmd_pre_hook): Declare.
11956 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11957 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11958 functions. Execute pre/post hook while ensuring that afterwords
11959 hook_in is cleared.
11960 * top.c (execute_command): Use execute_cmd_post_hook, and
11961 execute_cmd_pre_hook to execute pre/post commands.
11962 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11963 hook_stop_stub.
11964 (hook_stop_stub): Call execute_cmd_pre_hook.
11965
11966 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11967
11968 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11969 set'' and this leads to a core dump. Move xstrdup of
11970 operating_system to after check that it is not NULL.
11971
11972 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11973
11974 * kod.c (kod_set_os): Remove unnecessary check that
11975 ``command->type'' is set_cmd.
11976
11977 * valprint.c (set_input_radix): Use input_radix.
11978 (set_output_radix): Use output_radix.
11979 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11980 isn't reverted.
11981
11982 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11983
11984 * value.h (struct value): Delete field ``substring_addr''. Change
11985 aligner fields to force_doublest_align, force_longest_align,
11986 force_core_addr_align and force_pointer_aligh.
11987
11988 * value.h (struct value): Fix typo in above change.
11989
11990 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11991
11992 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11993 to fix internal_error from ``maintenance print architecture''.
11994
11995 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11996
11997 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11998 for gcc versions after gcc-2.8.1.
11999
12000 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12001
12002 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12003 for method resolution. Restore adjustment of ``this'' pointer after
12004 calling value_struct_elt, which was accidentally removed during the
12005 HP merge.
12006
12007 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12008
12009 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12010 value_of_register.
12011 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12012 get_saved_register.
12013 * value.h (value_of_register): Update.
12014
12015 2002-03-14 Richard Henderson <rth@redhat.com>
12016
12017 * configure.in: Detect declaration for canonicalize_file_name.
12018 * utils.c (canonicalize_file_name): Declare, if needed.
12019 (gdb_realpath): Prefer realpath if available and usable.
12020 * config.in, configure: Rebuild.
12021
12022 2002-03-14 Richard Henderson <rth@redhat.com>
12023
12024 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12025 a constant array bound.
12026
12027 * MAINTAINERS: Add myself to write-after-approval.
12028
12029 2002-03-14 Michael Snyder <msnyder@redhat.com>
12030
12031 * symfile.c (syms_from_objfile): Return immediately if no syms.
12032 (symbol_file_add): Return immediately if no syms.
12033 (find_sym_fns): Return immediately if no syms.
12034
12035 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12036
12037 * gdbserver/remote-util.c (remote_open): Print remote-side's
12038 IP address when remote debugging over the network.
12039
12040 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12041
12042 * config/sparc/fbsd.mh: Fix copyright.
12043 * config/sparc/fbsd.mt: Likewise.
12044
12045 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12046
12047 * MAINTAINERS: Fix typo in name of gdb warnings option.
12048 (x86-64): Fix formating so that this can be parsed by awk.
12049
12050 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12051
12052 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12053 * defs.h: Include "gdb/signals.h".
12054 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12055
12056 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12057
12058 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12059 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12060 from x86-64-tdep.h
12061
12062 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12063 Don Howard <dhoward@redhat.com>
12064
12065 * mips-tdep.c (ST0_FR): Define.
12066 (mips2_fp_compat): New function, temporarily disabled.
12067 (mips_read_fp_register_single): New function.
12068 (mips_read_fp_register_double): New function.
12069 (mips_print_register): Use them.
12070 (do_fp_register_row): Likewise.
12071
12072 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12073
12074 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12075 approval''.
12076
12077 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12078
12079 * stabsread.c (read_member_functions): Fix is_stub test for
12080 static member functions, improve comment.
12081
12082 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12083
12084 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12085 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12086 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12087 commands that set boolean values.
12088 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12089 (arm_rdi_resume): Always initialize PC.
12090 (arm_rdi_open): Don't use rslt as a boolean.
12091 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12092 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12093 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12094 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12095
12096 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12097
12098 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12099 * configure: Rebuilt.
12100
12101 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12102
12103 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12104 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12105
12106 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12107
12108 * cli/cli-decode.c (set_cmd_completer): New function.
12109 * command.h (set_cmd_completer): Declare.
12110 * cli/cli-decode.h (set_cmd_completer): Ditto.
12111
12112 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12113 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12114 * win32-nat.c (_initialize_inftarg): Ditto.
12115 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12116 * proc-api.c (_initialize_proc_api): Ditto.
12117 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12118 * source.c (_initialize_source): Ditto.
12119 * exec.c (_initialize_exec): Ditto.
12120 * solib.c (_initialize_solib): Ditto.
12121 * top.c (init_main): Ditto.
12122 * tracepoint.c (_initialize_tracepoint): Ditto.
12123 * symfile.c (_initialize_symfile): Ditto.
12124 * printcmd.c (_initialize_printcmd): Ditto.
12125 * infcmd.c (_initialize_infcmd): Ditto.
12126 * corefile.c (_initialize_core): Ditto.
12127
12128 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12129
12130 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12131
12132 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12133
12134 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12135
12136 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12137
12138 * NEWS: Update headings, 5.2 has branched.
12139
12140 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12141
12142 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12143 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12144 (register_addr, REGISTER_RAW_SIZE): Likewise.
12145 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12146 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12147
12148 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12149
12150 * MAINTAINERS (x86-64): Add myself.
12151 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12152 changed value_ptr -> struct value *
12153
12154 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12155
12156 * configure.host (sparc64-*-freebsd): Add.
12157 * configure.tgt: Likewise.
12158 * config/sparc/fbsd.mh: New file.
12159 * config/sparc/fbsd.mt: Likewise.
12160 * config/sparc/nm-fbsd.h: Likewise.
12161 * config/sparc/tm-fbsd.h: Likewise.
12162
12163 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12164
12165 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12166 regformats/reg-s390x.dat.
12167
12168 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12169
12170 * utils.c: Add FIXME explaining true/false problem.
12171
12172 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12173
12174 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12175
12176 2002-02-28 Michael Chastain <mec@shout.net>
12177
12178 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12179
12180 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12181
12182 * gdbserver/linux-s390-low.c: New file.
12183 * regformats/reg-s390.dat: New file.
12184 * regformats/reg-s390x.dat: New file.
12185 * gdbserver/configure.srv: Add S/390.
12186 * gdbserver/Makefile.in: Add S/390.
12187 * configure.tgt: Enable gdbserver for S/390.
12188
12189 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12190
12191 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12192 first line of the doc string for "info dos", except at the end of
12193 the sentence, since the short help stops at the first period.
12194
12195 2002-02-28 Jason Merrill <jason@redhat.com>
12196
12197 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12198
12199 2002-02-27 Fred Fish <fnf@redhat.com>
12200
12201 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12202 comment (dumy -> dummy).
12203
12204 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12205
12206 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12207
12208 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12209
12210 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12211
12212 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12213
12214 * gdbserver/acconfig.h: New file.
12215 * gdbserver/i387-fp.c: New file.
12216 * gdbserver/i387-fp.h: New file.
12217 * gdbserver/linux-x86-64.c: New file.
12218 * regformats/reg-x86-64.dat: New file.
12219 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12220 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12221 * gdbserver/configure.in: Add support for regsets.
12222 * gdbserver/config.in: Regenerate.
12223 * gdbserver/configure: Regenerate.
12224 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12225 * gdbserver/linux-low.h: New file.
12226 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12227 for regsets.
12228 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12229 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12230 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12231 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12232 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12233 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12234 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12235 "i387-fp.h". Add PTRACE_GETREGS and friends.
12236 * gdbserver/regcache.c (supply_register): New function.
12237 (supply_register_by_name): New function.
12238 (collect_register): New function.
12239 (collect_register_by_name): New function.
12240
12241 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12242
12243 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12244 (config.status): Add configure.srv dependency.
12245 (server_h): Add config.h dependency.
12246
12247 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12248
12249 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12250 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12251 * gdbserver/configure.srv: Change i386-*-linux* to use
12252 reg-i386-linux.o.
12253
12254 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12255
12256 * x86-64-tdep.c: Re-indent. Update copyright date.
12257
12258 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12259
12260 From Michal Ludvig <mludvig@suse.cz>:
12261 * x86-64-tdep.c (value.h): Delete.
12262 (gdb_assert.h): Include.
12263 (x86_64_register_convert_to_virtual,
12264 x86_64_register_convert_to_raw ): Add check which lets only
12265 floating-point values to be converted.
12266 (value_push): Delete.
12267 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12268 (i386_gdbarch_init): Number of register_bytes fixed.
12269
12270 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12271
12272 * MAINTAINERS: Add x86-64 target.
12273
12274 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12275
12276 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12277 * osfsolib.c (solib_map_sections): Ditto.
12278 * irix5-nat.c (solib_map_sections): Ditto.
12279 * corelow.c (gdb_check_format): Ditto.
12280 * symfile.c (symfile_bfd_open): Ditto.
12281 * solib.c (solib_map_sections): Ditto.
12282 Fix PR gdb/354.
12283
12284 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12285
12286 * remote.c (_initialize_remote): By default, disable ``e'' and
12287 ``E'' step out-of-range packets.
12288
12289 2002-02-26 Andreas Schwab <schwab@suse.de>
12290
12291 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12292 m68k_linux_frame_saved_pc.
12293 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12294 in_sigtramp.
12295 (SIGCONTEXT_PC_OFFSET): Remove.
12296 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12297 m68k_linux_sigtramp_saved_pc): New functions.
12298 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12299 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12300 (UCONTEXT_PC_OFFSET): Define.
12301 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12302 non-RT and RT signal trampolines.
12303
12304 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12305
12306 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12307 (TARGET_NBPG, STACK_END_ADDR): Delete
12308 (VARIABLES_INSIDE_BLOCK): Delete.
12309
12310 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12311
12312 * utils.c (perror_with_name): Make string parameter constant.
12313 (print_sys_errmsg): Ditto.
12314 (query): Ditto.
12315 * defs.h (perror_with_name): Update.
12316 (print_sys_errmsg): Update.
12317 (query): Update.
12318
12319 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12320
12321 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12322 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12323
12324 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12325
12326 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12327 if it already matches the current architecture from the exec file.
12328 Include arch-utils.h for gdbarch_info_init prototype.
12329 * Makefile.in (rs6000-nat.o): Update dependencies.
12330
12331 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12332
12333 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12334 list of exported variables.
12335
12336 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * gdbserver/configure.srv: New file.
12339 * gdbserver/configure.in: Use configure.srv instead
12340 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12341 from it.
12342 * gdbserver/configure: Regenerated.
12343 * gdbserver/terminal.h: New file.
12344 * gdbserver/Makefile.in: Update for configure changes. Remove
12345 more unneeded include paths.
12346
12347 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12348
12349 From wiz at danbala:
12350 * config/sparc/tm-sp64.h: Fix grammar and typos.
12351 Fix PR gdb/287.
12352
12353 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12354
12355 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12356 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12357 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12358 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12359 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12360 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12361 * s390-tdep.c: Ditto.
12362 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12363 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12364 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12365 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12366 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12367 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12368 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12369 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12370 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12371 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12372 Fix PR gdb/378.
12373
12374 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12375
12376 * lin-thread.c: Delete file.
12377 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12378 to gdb_proc_service.h.
12379 * configure: Re-generate.
12380
12381 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12382 * serial.c (serial_open): Delete check for "ocd".
12383 Fix PR gdb/349.
12384
12385 * Makefile.in (linux-thread.o): Delete target.
12386 * linux-thread.c: Delete file.
12387
12388 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12389 renamed SH files to be consistent.
12390
12391 * symtab.c (sort_search_symbols): Use xfree.
12392
12393 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12394
12395 * arm-linux-tdep.c (arm_linux_init_abi): Register
12396 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12397 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12398 definition with undef, since we don't want the sysvr4 definition.
12399 (SKIP_TRAMPOLINE_CODE): Likewise.
12400
12401 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12402
12403 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12404
12405 * configure.in: (AC_CHECK_FUNCS) Added test for
12406 canonicalize_file_name Regenerated.
12407 * config.in, configure: Regenerated.
12408 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12409 defined use canonicalize_file_name.
12410
12411 2002-02-23 Michael Chastain <mec@shout.net>
12412
12413 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12414
12415 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12416
12417 * README: Remove references to cygnus.com.
12418 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12419 dot com'' form. Remove references to cygnus.com and sourceware.
12420
12421 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12422
12423 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12424 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12425 1003.1-2001 no longer allows "head -1".
12426 * gdb/Makefile.in (version.c): Likewise.
12427 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12428 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12429 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12430
12431 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12432
12433 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12434 * command.h (cmd_cfunc_eq): Declare.
12435 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12436
12437 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12438 ``struct cmd_list_element *''.
12439 * cli/cli-cmds.c (is_complete_command): Update. Use
12440 cmd_cfunc_eq.
12441 * top.c (execute_command): Pass the command to
12442 is_complete_command.
12443 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12444
12445 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12446
12447 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12448 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12449 architecture defines.
12450 * s390-tdep.c (s390_gdbarch_init): Likewise.
12451
12452 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12453
12454 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12455 (arm_linux_push_arguments): Likewise.
12456 (arm_linux_init_abi): Register them. Also register linux-specific
12457 call_dummy_words.
12458 (find_minsym_and_objfile): Use strcmp, not STREQ.
12459 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12460 (arm_linux_call_dummy_words): Delete declaration.
12461 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12462 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12463 declarations.
12464 (LOWEST_PC): Delete.
12465
12466 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12467
12468 * maint.c (print_section_info): Do not prepend `0x' to filepos
12469 output, it will be handled by local_hex_string_custom.
12470
12471 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12472
12473 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12474 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12475 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12476
12477 2002-02-22 Jim Blandy <jimb@redhat.com>
12478
12479 Indicate that the bcache functions don't change the strings
12480 they're passed.
12481 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12482 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12483
12484 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12485
12486 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12487
12488 2002-02-21 Christopher Faylor <cgf@redhat.com>
12489
12490 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12491 find the complete path to a loaded DLL.
12492
12493 2002-02-21 Fred Fish <fnf@redhat.com>
12494
12495 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12496 that marks the end of the range of a function, enter a line number
12497 entry that has a line number of zero and a PC offset that matches
12498 the end of the function. This starts a range of PC's for which no
12499 line number information is known.
12500 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12501 PC's for which no line number info is found (line number is zero)
12502 then we didn't find any valid line information.
12503 * symtab.h: Document use of zero line number entry.
12504
12505 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12506
12507 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12508 (have_ptrace_getvrregs): Define for run time checks.
12509 (gdb_vrregset_t): New type for Altivec register handling.
12510 (fetch_register, store_register): Fetch/store altivec register
12511 when needed.
12512 (fetch_altivec_register, store_altivec_register): New functions.
12513 (supply_vrregset, fill_vrregset): New functions.
12514 (fetch_altivec_registers, store_altivec_registers): New functions.
12515 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12516 registers as well.
12517
12518 2002-02-21 Jiri Smid <smid@suse.cz>
12519
12520 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12521
12522 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12523
12524 * Makefile.in (armnbsd-nat.o): Update dependencies.
12525 * armnbsd-nat.c (supply_gregset): New function. Common code to
12526 supply the integer register set.
12527 (supply_fparegset): New function. Similar for FPA registers.
12528 (fetch_regs, fetch_fp_regs): Use them.
12529 (fetch_core_registers): Likewise.
12530 (fetch_elfcore_registers): New function.
12531 (arm_netbsd_elfcore_fns): New core-file type specification.
12532 (_initialize_arm_netbsd_nat): Register it.
12533
12534 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12535
12536 * armnbsd-nat.c: Include gdbcore.h.
12537 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12538 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12539 'void' to declaration, to shut up ARI.
12540 (fetch_core_registers): Make static. Rewrite using supply_register.
12541 (arm_netbsd_core_fns): New core-file type specification.
12542 (_initialize_arm_netbsd_nat): New function.
12543
12544 2002-02-21 Christopher Faylor <cgf@redhat.com>
12545
12546 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12547 value.
12548
12549 2002-02-20 Christopher Faylor <cgf@redhat.com>
12550
12551 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12552 fails.
12553
12554 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12555
12556 * jv-exp.y (parse_number): Change type of implicit longs
12557 to builtin_type_uint64.
12558
12559 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12560
12561 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12562 to be an integer instead of a `union wait'.
12563
12564 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12565
12566 * mips-linux-nat.c: Call the operating system GNU/Linux.
12567 * mips-linux-tdep.c: Likewise.
12568 * mips-tdep.c: Likewise.
12569
12570 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12571
12572 Fix PR gdb/265.
12573 * jv-exp.y (parse_number): Handle 64-bit integers.
12574
12575 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12576
12577 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12578 AC_STDC_HEADERS to AC_HEADER_STDC.
12579 * gdbserver/configure: Regenerated.
12580
12581 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12582
12583 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12584 is defined.
12585 * sparc-tdep.c (get_longjmp_target): Likewise.
12586
12587 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12588
12589 * News: Add news about ARM and Multi-arch. Mention the new target
12590 arm*-*-netbsd*.
12591
12592 2002-02-19 Jim Blandy <jimb@redhat.com>
12593
12594 * stabsread.c (error_type_complaint): Improve error message.
12595
12596 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12597
12598 * gdbserver/README: Update documentation.
12599 * gdbserver/configure.in: Update configury to match documentation.
12600 * gdbserver/Makefile.in: Likewise.
12601 * gdbserver/configure: Regenerated.
12602 * gdbserver/aclocal.m4: New file, generated by aclocal.
12603 * gdbserver/config.in: New file, generated by autoheader.
12604
12605 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12606
12607 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12608 armnbsd-nat.c.
12609
12610 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12611
12612 * arm-tdep.h (enum arm_float_model): New enum.
12613 (struct gdbarch_tdep): Add fp_model.
12614 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12615 up floating-point conversions until we know the floating-point model
12616 in use by the inferior. Don't complain about being unable to
12617 determine the ABI of the inferior when we don't have one.
12618 (arm_extract_return_value): Support different floating-point models.
12619 (arm_store_return_value): Likewise.
12620 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12621 ARM_FLOAT_SOFT.
12622 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12623
12624 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12625
12626 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12627 of ``current_gdbarch''.
12628
12629 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12630
12631 * armnbsd-nat.c : ANSIfy all function declarations.
12632 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12633 (fetch_inferior_registers): Re-implement in terms of above.
12634 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12635 (store_inferior_registers): Re-implement in terms of above.
12636
12637 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12638
12639 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12640 kernel.
12641 * arm-linux-tdep.c: Likewise.
12642 * config/arm/tm-linux.h: Likewise.
12643
12644 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12645
12646 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12647 * config/arm/nbsd.mt (TM_FILE): Delete.
12648 * config/arm/tm-nbsd.h: Delete.
12649
12650 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12651
12652 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12653 Initialize CALL_DUMMY_LENGTH.
12654
12655 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12656
12657 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12658 function.
12659 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12660 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12661 defines one thing and that is incorrect for this port.
12662 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12663
12664 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12665
12666 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12667
12668 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12669
12670 * win32-nat.c (display_selector): New function. Displays information
12671 about the information returned by GetThreadSelectorEntry API function.
12672 (display_selectors): New function. Displays the infomation of
12673 the selector given as argument, or of CS, DS ans FS selectors
12674 if no argument is given.
12675 ( _initialize_inftarg): Add "w32" as info prefix command.
12676 Add "info w32 selector" as command calling display_selectors.
12677
12678 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12679
12680 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12681 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12682 if not defined.
12683
12684 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12685
12686 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12687
12688 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12689
12690 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12691 (arm_fix_call_dummy): Call it.
12692 (arm_call_dummy_breakpoint_offset): Delete.
12693 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12694 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12695
12696 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12697
12698 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12699 Default to func_frame_chain_valid.
12700 * gdbarch.h, gdbarch.c: Re-generate.
12701 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12702
12703 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12704
12705 * ppc-linux-nat.c: Update copyright.
12706 (fetch_register, store_register): Add tid parameter, don't compute
12707 tid here.
12708 (fetch_ppc_registers, store_ppc_registers): Add tid
12709 parameter. Pass it along to callees.
12710 (fetch_inferior_registers, store_inferior_registers): Compute tid
12711 here, and pass it to calleed functions.
12712 (fill_gregset, supply_fpregset): Clean up formatting.
12713
12714 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12715
12716 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12717 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12718
12719 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12720
12721 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12722 * gdbarch.c gdbarch.h: Regenerate.
12723 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12724 function.
12725 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12726 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12727 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12728
12729 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12730 * arm-tdep.c (arm_get_longjmp_target): New function.
12731 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12732 this to a positive value register arm_get_longjmp_target as the
12733 longjmp handler.
12734 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12735 (arm_linux_init_abi): Set up longjmp description in tdep.
12736 * armnbsd-nat.c (get_longjmp_target): Delete.
12737 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12738 description in tdep.
12739 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12740 (get_longjmp_target): Delete declaration.
12741 (GET_LONGJMP_TARGET): Delete.
12742 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12743 (GET_LONGJMP_TARGET): Delete.
12744
12745 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12746
12747 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12748 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12749 of ``current_gdbarch''.
12750
12751 2002-02-17 Tom Tromey <tromey@redhat.com>
12752
12753 * cli/cli-cmds.c (compare_strings): New function.
12754 (complete_command): Only print each unique item once.
12755 * completer.h (complete_line): Declare.
12756 * completer.c (complete_line): New function.
12757 (line_completion_function): Use it.
12758
12759 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12760
12761 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12762 * gdbarch.h, gdbarch.c: Re-generate.
12763
12764 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12765
12766 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12767
12768 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12769
12770 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12771 * valops.c (value_arg_coerce): Don't take the address of a reference
12772 to convert an argument to a reference.
12773
12774 2002-02-15 Christopher Faylor <cgf@redhat.com>
12775
12776 * win32-nat.c (get_image_name): New function.
12777 (handle_load_dll): Use get_image_name function.
12778 (get_child_debug_event): Avoid registering debug events until possibly
12779 execed process is started.
12780 (child_create_inferior): Allow invocation via shell so that command
12781 line redirection, etc. works ok.
12782 (_initialize_inftarg): Add new command: "set shell" to control whether
12783 a shell is used to start a process.
12784
12785 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12786
12787 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12788 instead of find_register_by_number.
12789 (cannot_store_register): Likewise.
12790
12791 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12792
12793 * dwarf2read.c: Replace fprintf (stderr, ...) by
12794 fprintf_unfiltered (gdb_stderr, ...).
12795
12796 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12797
12798 * gdbserver/gdbserver.1: Document --attach.
12799
12800 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12801
12802 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12803 descriptions.
12804 * arm-tdep.c (arm_default_arm_le_breakpoint)
12805 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12806 (arm_default_thumb_be_breakpoint): New. Initialize them from
12807 traditional breakpoint defines.
12808 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12809 (arm_gdbarch_init): Initialize new breakpoint variables.
12810 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12811 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12812 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12813 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12814 code out to ...
12815 (arm_netbsd_init_abi_common): ... here; new function.
12816 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12817 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12818 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12819 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12820
12821 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12822
12823 * arm-tdep.h (enum arm_abi): New enum.
12824 (struct gdbarch_tdep): New structure.
12825 (LOWEST_PC): Provide a default.
12826 (arm_gdbarch_register_os_abi): Declare new function.
12827 * arm-tdep.c (arm_abi_names): New array.
12828 (process_note_abi_tag_sections): New function.
12829 (get_elfosabi): New function.
12830 (arm_gdbarch_register_os_abi): New function.
12831 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12832 support for that ABI has been built in, then call the appropriate
12833 configuration routine. Use gdbarch_num_regs() to get the number
12834 of registers.
12835 (arm_dump_tdep): New function.
12836 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12837 place-holder functions.
12838 (_initialize_arm_tdep): Register them.
12839 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12840
12841 * armnbsd-tdep.c: New file.
12842 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12843 * config/arm/nbsd.mt (TDEPFILES): Add it.
12844 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12845
12846 * armnbsd-nat.c: Include regcache.h.
12847 * Makefile.in (armnbsd-nat.o): Update dependency list.
12848
12849 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12850
12851 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12852
12853 * gdbserver/Makefile.in: Fix typos in target rules.
12854
12855 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12856
12857 Fix part of PR gdb/267.
12858 * linespec.c (find_methods): Handle constructors specially for now.
12859
12860 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12861
12862 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12863 handling.
12864 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12865 standard_coerce_float_to_double().
12866
12867 2002-02-14 Christopher Faylor <cgf@redhat.com>
12868
12869 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12870 GDBINIT_FILENAME.
12871
12872 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12873
12874 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12875 find_variant_by_name, because it confuses the multiarch
12876 framework. Return NULL if there isn't an architecture with the
12877 user supplied name, instead of forcing a different one without
12878 recording the change with the multiarch machinery.
12879 (find_variant_by_name): Delete.
12880
12881 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12882
12883 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12884 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12885
12886 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12887
12888 * stack.c (print_frame_info_base): When calling
12889 print_frame_info_listing_hook, set current_source_symtab.
12890
12891 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12892
12893 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12894 and remove unused $(INCLUDE_DIR).
12895 Add regcache.c to OBS.
12896 Add generated register protocol files to clean target.
12897 Update dependencies for new objects, obsolete old target code.
12898
12899 * gdbserver/linux-low.c: Remove all platform-specific code to
12900 new files. Remove various dead code. Update to use regcache
12901 functionality.
12902 * gdbserver/remote-utils.c (fromhex): Add return statement
12903 to quiet warning.
12904 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12905 constant.
12906 (input_interrupt): Add integer parameter to match prototype
12907 of a signal handler.
12908 (outreg): Use register_data ().
12909 (prepare_resume_reply): Use gdbserver_expedite_regs.
12910 * gdbserver/server.c (main): Dynamically allocate own_buf because
12911 PBUFSIZ is no longer constant. Use registers_to_string () and
12912 registers_from_string ().
12913 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12914 for error (), fatal (), and warning (). Update definition of
12915 PBUFSIZ to use regcache functionality. Add include guard.
12916 * gdbserver/utils.c (fatal): Add missing ``const''.
12917 (warning): New function.
12918
12919 * regformats/regdat.sh: Include "regcache.h" in generated files.
12920 Provide init_registers () function.
12921 * regformats/regdef.h: Add prototype for set_register_cache ().
12922 Add include guard.
12923
12924 * gdbserver/linux-arm-low.c: New file.
12925 * gdbserver/linux-i386-low.c: New file.
12926 * gdbserver/linux-ia64-low.c: New file.
12927 * gdbserver/linux-m68k-low.c: New file.
12928 * gdbserver/linux-mips-low.c: New file.
12929 * gdbserver/linux-ppc-low.c: New file.
12930 * gdbserver/linux-sh-low.c: New file.
12931
12932 * gdbserver/regcache.c: New file.
12933 * gdbserver/regcache.h: New file.
12934
12935 * gdbserver/low-linux.c: Removed obsolete file.
12936
12937 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12940 * config/i386/linux.mt: Likewise.
12941 * config/ia64/linux.mt: Likewise.
12942 * config/m68k/linux.mh: Likewise.
12943 * config/powerpc/linux.mh: Likewise.
12944 * config/mips/linux.mt: Likewise.
12945
12946 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12947
12948 * config/i386/i386lynx.mh: Mark gdbserver variables
12949 as (currently) obsolete for this target.
12950 * config/i386/nbsd.mt: Likewise.
12951 * config/i386/nbsdelf.mt: Likewise.
12952 * config/m32r/m32r.mt: Likewise.
12953 * config/m68k/m68klynx.mh: Likewise.
12954 * config/m68k/nbsd.mt: Likewise.
12955 * config/m68k/sun3os4.mh: Likewise.
12956 * config/mips/vr5000.mt: Likewise.
12957 * config/ns32k/nbsd.mt: Likewise.
12958 * config/pa/hppabsd.mh: Likewise.
12959 * config/pa/hppaosf.mh: Likewise.
12960 * config/powerpc/nbsd.mt: Likewise.
12961 * config/rs6000/rs6000lynx.mh: Likewise.
12962 * config/s390/s390.mt: Likewise.
12963 * config/s390/s390x.mt: Likewise.
12964 * config/sparc/sparclynx.mh: Likewise.
12965 * config/sparc/sun4os4.mh: Likewise.
12966 * config/i386/x86-64linux.mt: Likewise.
12967 * config/sparc/linux.mh: Likewise.
12968
12969 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12970
12971 * configure.tgt: Configure gdbserver only for known working
12972 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12973 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12974 SUBDIRS if it is configured. Update comment for ${nativefile}.
12975 * configure: Regenerated.
12976
12977 2002-02-13 Michael Snyder <msnyder@redhat.com>
12978
12979 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12980
12981 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12982 (default_gcore_mach): Just return 0, work around a problem in bfd.
12983 (default_gcore_target): OK to return NULL if exec_bfd is null.
12984 (make_mem_sec): Use a cast, avoid a warning.
12985
12986 * procfs.c (find_memory_regions_callback): Use a cast instead of
12987 calling host_pointer_to_address (which complains if
12988 sizeof (host pointer) != sizeof (target pointer)).
12989 (procfs_make_note_section): Avoid overflow in psargs string.
12990
12991 * procfs.c (procfs_make_note_section): Make the default
12992 implementation return an error.
12993
12994 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12995
12996 * procfs.c (procfs_make_note_section): Provide a default definition
12997 (for alpha-dec-osf4.0f). Fix typos.
12998
12999 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13000
13001 * linux-proc.c: Add include of regcache.h.
13002 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13003
13004 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13005
13006 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13007 * memattr.c (create_mem_region): Disallow useless empty region.
13008 Regions are half-open intervals, so allow [A..B) [B..C) as
13009 non-overlapping.
13010
13011 2002-02-13 Michael Chastain <mec@shout.net>
13012
13013 * defs.h: Kill CONST_PTR.
13014 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13015 * c-lang.c (c_builtin_types): Likewise.
13016 * ch-lang.c (ch_builtin_types): Likewise.
13017 * f-lang.c (f_builtin_types): Likewise.
13018 * language.c (unknown_builtin_types): Likewise.
13019 * m2-lang.c (m2_builtin_types): Likewise.
13020 * p-lang.c (pascal_builtin_types): Likewise.
13021 * scm-lang.c (c_builtin_types): Likewise.
13022
13023 2002-02-13 Keith Seitz <keiths@redhat.com>
13024
13025 * arm-tdep.h (arm_get_next_pc): Add declaration.
13026
13027 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13028
13029 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13030 with other related struct-returning functions.
13031 (arm_extract_struct_value_address): New function.
13032 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13033 initialize float_format, double_format and long_double_format as
13034 appropriate to the endianness of the target.
13035 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13036 (arm_use_struct_convention): Delete declaration.
13037 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13038
13039 2002-02-13 Keith Seitz <keiths@redhat.com>
13040
13041 * defs.h (core_addr_to_string_nz): New function.
13042
13043 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13044
13045 Apply missing bits of 2002-01-15 patch.
13046 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13047 (fill_fpregset): Use i387_fill_fsave.
13048
13049 2002-02-12 Keith Seitz <keiths@redhat.com>
13050
13051 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13052 (core_addr_to_string_nz): New function.
13053
13054 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13055
13056 * arm-linux-nat.c: Really include arm-tdep.h.
13057 * config/arm/tm-linux.h (struct type, struct value): Declare.
13058
13059 2002-02-11 Michael Snyder <msnyder@redhat.com>
13060
13061 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13062 (gcore section): Ifdef for Solaris and Unixware only.
13063 (procfs_do_thread_registers): Unixware needs one lwpstatus
13064 per thread (not one prstatus or pstatus).
13065 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13066 not over all gdb threads. For unixware, call elfcore_write_pstatus
13067 once before iterating over threads.
13068
13069 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13070
13071 * arm-tdep.h: New file.
13072 * arm-tdep.c: Include arm-tdep.h.
13073 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13074 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13075 (arm_print_float_info, arm_register_type, convert_to_extended)
13076 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13077 (arm_extract_return_value, arm_register_name): Make static.
13078 (arm_software_single_step): Similarly. Fix types in declaration.
13079 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13080 (arm_store_return_value, arm_store_struct_return): New functions.
13081 (arm_gdbarch_init): Register the above functions. Also register
13082 call_dummy_start_offset, sizeof_call_dummy_words,
13083 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13084 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13085 max_register_virtual_size, register_size. Set up
13086 prologue_cache.saved_regs here, rather than ...
13087 (_initialize_arm_tdep): ... here.
13088 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13089 declarations.
13090 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13091 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13092 (arm_print_float_info, arm_register_type, convert_to_extended)
13093 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13094 (arm_extract_return_value, arm_register_name): Delete declarations.
13095 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13096 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13097 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13098 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13099 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13100 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13101 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13102 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13103 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13104 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13105 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13106 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13107 interface.
13108 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13109 * remote-rdi.c remote-rdp.c: Likewise.
13110 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13111 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13112 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13113 definition.
13114
13115 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13116 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13117 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13118 from non-ARM_ prefixed definitions.
13119 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13120 all uses of above.
13121 * remote-rdi.c remote-rdp.c: Likewise.
13122 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13123
13124 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13125
13126 * arm-tdep.c (arm_frameless_function_invocation)
13127 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13128 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13129 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13130 (arm_pop_frame, arm_get_next_pc): Make static.
13131 (arm_gdbarch_init): Register above in gdbarch structure.
13132 (arm_read_fp): Renamed from arm_target_read_fp.
13133 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13134 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13135 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13136 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13137 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13138 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13139 (arm_pc_is_thumb_dummy): Delete declarations.
13140 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13141 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13142 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13143 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13144
13145 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13146
13147 * symtab.c (compare_search_syms): New function.
13148 (sort_search_symbols): New function.
13149 (search_symbols): Sort symbols after searching rather than
13150 before.
13151
13152 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13153
13154 * NEWS: Linux -> GNU/Linux.
13155
13156 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13157
13158 * gdbarch.sh: For for level one methods, disallow a definition
13159 when partially multi-arched. Add comments explaining rationale.
13160 * gdbarch.h: Re-generate.
13161
13162 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13163
13164 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13165 multi-arch partial.
13166
13167 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13168
13169 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13170 field. Use diff -u.
13171 * gdbarch.c: Re-generate.
13172
13173 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13174
13175 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13176 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13177 partial.
13178
13179 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13180
13181 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13182 multi-arch partial.
13183 (PUSH_ARGUMENTS): Switch to using predefault.
13184 * gdbarch.c: Regenerate.
13185
13186 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13187
13188 * valops.c (PUSH_ARGUMENTS): Delete definition.
13189 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13190 partial. Default to default_push_arguments.
13191 * gdbarch.h, gdbarch.c: Regenerate.
13192
13193 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13194
13195 * defs.h (throw_exception): Rename return_to_top_level. Update
13196 comments.
13197 * utils.c (error_stream, internal_verror, quit): Ditto.
13198 * top.c (throw_exception, catcher): Ditto.
13199 * sparclet-rom.c (sparclet_load): Ditto.
13200 * remote.c (interrupt_query, minitelnet): Ditto.
13201 * remote-sds.c (interrupt_query): Ditto.
13202 * remote-mips.c (mips_error, mips_kill): Ditto.
13203 * ocd.c (interrupt_query): Ditto.
13204 * monitor.c (monitor_interrupt_query): Ditto.
13205 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13206 * target.h: Update comment.
13207
13208 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13209
13210 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13211
13212 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13213 default_double_format.
13214 * gdbarch.h, gdbarch.c: Re-generate.
13215 * findvar.c (floatformat_unknown): Delete variable definition.
13216 * doublest.h (floatformat_unknown): Delete variable declaration.
13217
13218 2002-02-09 Jim Blandy <jimb@redhat.com>
13219
13220 * stabsread.c (read_type): Add code to parse Sun's syntax for
13221 prototyped function types.
13222
13223 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13224
13225 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13226 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13227
13228 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13229
13230 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13231 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13232 now _initialize_xcoffsolib gets called again and overrides the
13233 commands from solib.c in a native configuration.
13234
13235 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13236
13237 * doublest.c (store_typed_floating): Don't try to return a value.
13238 Fixes PR gdb/290.
13239
13240 2002-02-08 Jim Blandy <jimb@redhat.com>
13241
13242 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13243 is prototyped and has no arguments, print its argument list as
13244 `(void)'.
13245
13246 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13247
13248 * MAINTAINERS (write-after-approval): Add myself.
13249 (paper-trail): I've escaped!
13250
13251 2002-02-08 Christopher Faylor <cgf@redhat.com>
13252
13253 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13254 changes.
13255 (_initialize_check_for_gdb_ini): Ditto.
13256
13257 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13258
13259 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13260 xaprintf -> xasprintf.
13261
13262 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13263
13264 * win32-nat.c: Remove use of printf and sprintf functions.
13265
13266 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13267
13268 * arm-tdep.c (arm_frame_chain_valid): Make static.
13269 (arm_push_arguments): Likewise.
13270 (arm_gdbarch_init): New function.
13271 (_initialize_arm_tdep): Call it.
13272 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13273 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13274 (FRAME_CHAIN_VALID): Delete.
13275 (arm_frame_chain_valid): Delete declaration.
13276 (PUSH_ARGUMENTS): Delete.
13277 (arm_push_arguments): Delete declaration.
13278 (CALL_DUMMY_P): Delete.
13279
13280 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13281 Corinna Vinschen <vinschen@redhat.com>
13282
13283 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13284 on builtin float types.
13285
13286 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13287
13288 * utils.c: Include <curses.h> before "bfd.h".
13289 * tui/tui-hooks.c: Likewise.
13290 * tui/tui.c: Likewise.
13291 * tui/tuiCommand.c: Likewise.
13292 * tui/tuiData.c: Likewise.
13293 * tui/tuiDataWin.c: Likewise.
13294 * tui/tuiDisassem.c: Likewise.
13295 * tui/tuiGeneralWin.c: Likewise.
13296 * tui/tuiIO.c: Likewise.
13297 * tui/tuiLayout.c: Likewise.
13298 * tui/tuiRegs.c: Likewise.
13299 * tui/tuiSource.c: Likewise.
13300 * tui/tuiSourceWin.c: Likewise.
13301 * tui/tuiStack.c: Likewise.
13302 * tui/tuiWin.c: Likewise.
13303
13304 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13305
13306 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13307 to include space for pseudoregs as well. Update loops accordingly.
13308 (sh_fp_frame_init_saved_regs): Ditto.
13309 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13310
13311 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13312
13313 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13314 Add Richard Earnshaw to Arm maintainers.
13315
13316 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13317
13318 * defs.h (warning_begin): Delete declaration.
13319
13320 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13321 Delete macro.
13322
13323 2002-02-07 Michael Snyder <msnyder@redhat.com>
13324
13325 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13326 Logic bug, remove misplaced else.
13327
13328 2002-02-07 Klee Dienes <klee@apple.com>
13329
13330 * fork-inferior.c (fork_inferior): Add '!' to the list of
13331 characters that need to be quoted when building a string for the
13332 shell. Quote '!' specifically with a backslash, since CSH chokes
13333 when trying to evaluate "str!str".
13334
13335 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13336
13337 * rdi-share/host.h: Only provide a typedef for bool if it is not
13338 defined.
13339
13340 2002-02-04 Michael Snyder <msnyder@redhat.com>
13341
13342 * breakpoint.h (enum bptype): Add new overlay event bp type.
13343 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13344
13345 * breakpoint.c (create_internal_breakpoint): New function.
13346 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13347 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13348 (create_thread_event_breakpoint): Ditto.
13349 (create_solib_event_breakpoint): Ditto.
13350 (create_overlay_event_breakpoint): New function.
13351 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13352 (update_breakpoints_after_exec): Delete and re-initialize
13353 overlay event breakpoints after an exec. Add FIXME comment
13354 about longjmp breakpoint.
13355 (print_it_typical): Ignore overlay event breakpoints.
13356 (print_one_breakpoint): Ditto.
13357 (mention): Ditto.
13358 (bpstat_what): Do not stop for overlay event breakpoints.
13359 (delete_breakpoint): Don't delete overlay event breakpoints.
13360 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13361 (breakpoint_re_set): Re-create overlay event breakpoint.
13362
13363 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13364 (overlay_manual_command): Disable overlay breakpoints.
13365 (overlay_off_command): Disable overlay breakpoints.
13366
13367 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13368
13369 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13370 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13371 to here from config/tm-arm.h.
13372 (coff_sym_is_thumb): Make static.
13373 (arm_elf_make_msymbol_special): New function.
13374 (arm_coff_make_msymbol_special): New function.
13375 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13376 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13377 (coff_sym_is_thumb): Delete declaration.
13378 (arm_elf_make_msymbol_special): Declare.
13379 (arm_coff_make_msymbol_special): Declare.
13380 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13381 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13382
13383 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13384
13385 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13386
13387 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13388
13389 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13390 * gdbarch.c gdbarch.h: Regenerate.
13391 * arch-utils.c (default_print_float_info): New function.
13392 * arch-utils.h (default_print_float_info): Prototype it.
13393 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13394 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13395 (PRINT_FLOAT_INFO): Document it.
13396
13397 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13398 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13399 (PRINT_FLOAT_INFO): Define.
13400
13401 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13402
13403 * win32-nat.c (_initialize_check_for_gdb_ini):
13404 Add typecast to sprintf argument to suppress a warning.
13405
13406 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13407
13408 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13409 to allow easier handling of pass state.
13410 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13411 that gives exception name and address.
13412 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13413 and set last_sig value to ourstatus->value.sig. Some missing
13414 exceptions added.
13415 (child_continue): Correctly report continue_status.
13416 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13417 TARGET_SIGNAL_0 (new default value).
13418 (child_resume): consider sig argument passed to decide if
13419 the exception should be passed to debuggee or not.
13420
13421 2002-02-05 Michael Snyder <msnyder@redhat.com>
13422
13423 * regcache.c (fetch_register): Call target_fetch_register
13424 only if we don't call FETCH_PSEUDO_REGISTER.
13425 (store_register): Call target_store_register only if we
13426 don't call STORE_PSEUDO_REGISTER.
13427
13428 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13429
13430 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13431 ELF_MAKE_MSYMBOL_SPECIAL.
13432 * gdbarch.c, gdbarch.h: Regenerate.
13433 * arch-utils.c (default_make_msymbol_special): New function.
13434 * arch-utils.h (default_make_msymbol_special): Export.
13435 * elfread.c (elf_symtab_read): Compile use of
13436 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13437 multiarched.
13438 * coffread.c (coff_symtab_read): Ditto, for
13439 COFF_MAKE_MSYMBOL_SPECIAL.
13440
13441 2002-02-05 Jim Blandy <jimb@redhat.com>
13442
13443 * solib-svr4.c (svr4_truncate_ptr): New function.
13444 (svr4_relocate_section_addresses): Do the address arithmetic with
13445 the appropriate truncation for target addresses, even when
13446 CORE_ADDR is larger than a target address.
13447
13448 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13449
13450 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13451 to (int *).
13452
13453 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13454
13455 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13456 code.
13457
13458 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13459
13460 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13461
13462 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13463
13464 * gdbserver/linux-low.c: Remove unused include files.
13465
13466 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13467
13468 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13469 (read_inferior_memory): Use it.
13470 (write_inferior_memory): Likewise.
13471
13472 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13473
13474 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13475 grubbing through sys_errlist.
13476
13477 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13478
13479 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13480
13481 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13482 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13483
13484 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13485
13486 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13487 (do_sfunc, set_cmd_sfunc): New functions.
13488
13489 * command.h (struct cmd_list_element): Add field func.
13490 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13491 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13492 * cli/cli-decode.h: Ditto.
13493
13494 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13495 (help_all, help_cmd_list): Ditto.
13496 (find_cmd, complete_on_cmdlist): Ditto.
13497 * top.c (execute_command): Ditto.
13498
13499 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13500 function.sfunc.
13501
13502 * infcmd.c (notice_args_read): Fix function signature.
13503
13504 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13505 * cli/cli-decode.c (add_set_cmd): Ditto.
13506 * utils.c (initialize_utils): Ditto.
13507 * maint.c (_initialize_maint_cmds): Ditto.
13508 * infrun.c (_initialize_infrun): Ditto.
13509 * demangle.c (_initialize_demangler): Ditto.
13510 * remote.c (add_packet_config_cmd): Ditto.
13511 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13512 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13513 * proc-api.c (_initialize_proc_api): Ditto.
13514 * kod.c (_initialize_kod): Ditto.
13515 * valprint.c (_initialize_valprint): Ditto.
13516 * top.c (init_main): Ditto.
13517 * infcmd.c (_initialize_infcmd): Ditto.
13518 * corefile.c (_initialize_core): Ditto.
13519 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13520 * arch-utils.c (initialize_current_architecture): Ditto.
13521 (_initialize_gdbarch_utils): Ditto.
13522 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13523
13524 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13525 * wince.c (_initialize_inftarg): Ditto.
13526 * symfile.c (_initialize_symfile): Ditto.
13527 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13528 * language.c (_initialize_language): Ditto.
13529 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13530
13531 2002-02-04 Michael Snyder <msnyder@redhat.com>
13532
13533 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13534
13535 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13536
13537 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13538 Add rules for building the register data files.
13539
13540 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13541
13542 * regformats/regdat.sh: Add braces to the definition of
13543 expedite_regs_${arch}.
13544
13545 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13546
13547 * regformats/regdef.h (struct reg): Add comment describing the
13548 requirements for offset and size fields.
13549
13550 2002-02-04 Andreas Schwab <schwab@suse.de>
13551
13552 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13553 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13554
13555 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13556
13557 * gdbarch.sh (copyright): Update years in generated header.
13558 (SMASH_TEXT_ADDRESS): Add rule.
13559 * gdbarch.h, gdbarch.c: Re-generate.
13560 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13561 * dbxread.c: Likewise.
13562 * dwarfread.c: Likewise.
13563 * elfread.c: Likewise.
13564 * somread.c: Likewise.
13565
13566 * arm-tdep.c (arm_smash_text_address): New function.
13567 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13568
13569 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13570
13571 Add support for hardware watchpoints on win32 native.
13572 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13573 CONTEXT_DEBUG_REGISTERS.
13574 (dr variable): New variable. Static array containing a local copy
13575 of debug registers.
13576 (debug_registers_changed): New variable. Reflects when debug registers
13577 are changed and need to be written to inferior.
13578 (debug_registers_used): New variable. Reflects when any debug register
13579 was set, used when new threads are created.
13580 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13581 i386-nat code.
13582 (thread_rec): Set dr array if id is the thread of current_event .
13583 (child_continue, child_resume): Change the debug registers for all
13584 threads if debug_registers_changed.
13585 (child_add_thread): Change the debug registers if debug_registers_used.
13586 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13587 Link nm.h to new nm-cygwin.h file.
13588 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13589 of hardware registers.
13590
13591 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13592
13593 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13594 Restore behavour broken by 2002-01-20 Andrew Cagney
13595 <ac131313@redhat.com> IEEE_FLOAT removal.
13596
13597 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13598
13599 * c-valprint.c (c_val_print): Pass a proper valaddr to
13600 cp_print_class_method.
13601 * valops.c (search_struct_method): If there is only one method
13602 and args is NULL, return that method.
13603
13604 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13605
13606 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13607 accessing tag_name directly.
13608
13609 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13610
13611 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13612 of accessing tag_name directly.
13613
13614 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13615
13616 PR gdb/280
13617 * gdbtypes.c (replace_type): New function.
13618 * gdbtypes.h (replace_type): Add prototype.
13619 * stabsread.c (read_type): Use replace_type.
13620
13621 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13622
13623 * Makefile.in (memattr.o): Add missing dependencies rule.
13624
13625 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13626
13627 * breakpoint.c (break_at_finish_command): Really export.
13628 (break_at_finish_at_depth_command): Ditto.
13629 (tbreak_at_finish_command): Ditto.
13630 * hppa-tdep.c: Include completer.h.
13631 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13632 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13633
13634 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13635
13636 * utils.c (do_write): New function.
13637 (error_stream): Rewrite combining the code from error_begin and
13638 verror.
13639 (verror): Rewrite using error_stream.
13640 (error_begin): Delete function.
13641
13642 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13643
13644 * utils.c (error_begin): Make static.
13645 * defs.h (error_begin): Delete declaration.
13646
13647 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13648 (decode_line_1): Use cplusplus_error instead of error_begin,
13649 cplusplus_hint and return_to_top_level.
13650 * coffread.c (coff_symfile_read): Use error instead of error_begin
13651 and return_to_top_level.
13652 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13653
13654 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13655
13656 * language.h (type_error, range_error): Make string parameter
13657 constant.
13658 * language.c (warning_pre_print): Delete extern declaration.
13659 * dwarfread.c (warning_pre_print): Ditto.
13660 * language.c (type_error, range_error): Rewrite to use verror and
13661 vwarning instead of warning_begin.
13662
13663 2002-02-01 Michael Snyder <msnyder@redhat.com>
13664
13665 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13666 (set_ignore_count): Move misplaced comment back where it belongs.
13667
13668 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13669
13670 * command.h (NO_FUNCTION): Delete macro.
13671 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13672 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13673 * tracepoint.c (_initialize_tracepoint): Ditto.
13674 * cli/cli-decode.c (add_set_cmd): Ditto.
13675 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13676
13677 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13678
13679 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13680 Update ``this'' pointer when calling virtual functions.
13681
13682 2002-02-01 Michael Snyder <msnyder@redhat.com>
13683
13684 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13685 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13686
13687 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13688
13689 * regformats/reg-arm.dat: New file.
13690 * regformats/reg-i386.dat: New file.
13691 * regformats/reg-ia64.dat: New file.
13692 * regformats/reg-m68k.dat: New file.
13693 * regformats/reg-mips.dat: New file.
13694 * regformats/reg-ppc.dat: New file.
13695 * regformats/reg-sh.dat: New file.
13696 * regformats/regdef.h: New file.
13697 * regformats/regdat.sh: New file.
13698
13699 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13700
13701 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13702 (arm_frame_args_address, arm_frame_locals_address): New functions.
13703 (arm_frame_num_args): New function.
13704 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13705 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13706 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13707
13708 2002-01-31 Michael Snyder <msnyder@redhat.com>
13709
13710 * breakpoint.c (break_at_finish_command): Export.
13711 (break_at_finish_at_depth_command): Export.
13712 (tbreak_at_finish_command): Export.
13713 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13714 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13715 "txbreak" commands, which are HPPA specific.
13716
13717 * printcmd.c (disassemble_command): Remove an ancient
13718 artifact of an old merge.
13719
13720 * symfile.h (enum overlay_debugging_state):
13721 Define enum constant values for overlay mode.
13722 * symfile.c (overlay_debugging): Use enums instead of literals.
13723 (overlay_is_mapped, overlay_auto_command,
13724 overlay_manual_command): Ditto.
13725
13726 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13727 breakpoint_here_p, breakpoint_inserted_here_p,
13728 breakpoint_thread_match, bpstat_stop_status,
13729 describe_other_breakpoints, check_duplicates, clear_command):
13730 Coding standard fixes.
13731
13732 * target.c (target_xfer_memory): Add spaces, coding standard.
13733 (do_xfer_memory): Add missing line to trust-readonly
13734 code: check bfd SEC_READONLY flag for section.
13735
13736 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13737
13738 * PROBLEMS: Fix typo, 5.1->5.1.1.
13739
13740 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13741
13742 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13743 data symbols, since we search based on textlow and texthigh.
13744 (find_pc_sect_symtab): Likewise.
13745
13746 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13747
13748 * defs.h (vwarning): Declare.
13749 * utils.c (vwarning): New function.
13750 (warning): Call vwarning.
13751 (warning_begin): Delete function.
13752
13753 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13754 the warning message.
13755 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13756 warning_begin.
13757
13758 2002-01-30 Michael Snyder <msnyder@redhat.com>
13759
13760 * NEWS: Mention "set trust-readonly-sections" command.
13761 Mention generate-core-file command.
13762
13763 2002-01-15 Michael Snyder <msnyder@redhat.com>
13764
13765 * target.c: New command, "set trust-readonly-sections on".
13766 (do_xfer_memory): Honor the suggestion to trust readonly sections
13767 by reading them from the object file instead of from the target.
13768 (initialize_targets): Register command "set trust-readonly-sections".
13769
13770 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13771
13772 * parse.c (target_map_name_to_register): Simplify, search regs and
13773 pseudo-regs using a single loop.
13774
13775 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13776
13777 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13778
13779 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13780
13781 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13782 * config/i386/i386v42mp.mh: Add i387-nat.o .
13783 * i386v4-nat.c: Include i387-nat.h.
13784 (supply_fpregset): Use i387_supply_fsave.
13785 (fill_fpregset): Use i387_fill_fsave.
13786
13787 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13788
13789 * arm-tdep.c (arm_call_dummy_words): Define.
13790 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13791 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13792 (CALL_DUMMY_WORDS): Define.
13793 (arm_call_dummy_words): Declare.
13794 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13795 (arm_linux_call_dummy_words): Declare.
13796
13797 2002-01-30 Andreas Schwab <schwab@suse.de>
13798
13799 * m68klinux-nat.c: Fix last change to use regcache_collect
13800 instead of referencing registers[] directly.
13801
13802 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13803
13804 * parse.c (target_map_name_to_register): Delete code wrapped in
13805 #ifdef REGISTER_NAME_ALIAS_HOOK.
13806
13807 2002-01-28 Michael Snyder <msnyder@redhat.com>
13808
13809 * regcache.c (legacy_read_register_gen): Need to be able to
13810 read pseudo-register as well as real register.
13811 (legacy_write_register_gen): Ditto.
13812
13813 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13814
13815 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13816 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13817 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13818 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13819 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13820 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13821 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13822 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13823 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13824 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13825 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13826 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13827 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13828 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13829 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13830 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13831 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13832 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13833 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13834 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13835
13836 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13837
13838 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13839 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13840 (initialize_current_architecture): Update target_byte_order using
13841 information from BFD.
13842 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13843 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13844
13845 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13846
13847 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13848 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13849
13850 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13851 #ifdef INVALID_FLOAT.
13852 * infcmd.c (do_registers_info): Ditto.
13853 * values.c (unpack_double): Ditto. Add comment.
13854
13855 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13856 already commented out.
13857
13858 2002-01-26 Andreas Schwab <schwab@suse.de>
13859
13860 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13861 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13862 registers and add support for PTRACE_GETREGS.
13863
13864 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13865
13866 GDB 5.1.1 released from 5.1 branch.
13867 * NEWS: Add 5.1.1 news.
13868 * README: Sync with 5.1 branch.
13869
13870 2002-01-23 Fred Fish <fnf@redhat.com>
13871
13872 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13873 stabstring on initial malloc. Reallocing will copy it for us,
13874 if necessary.
13875
13876 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13877
13878 * Makefile.in (hpread_h): Delete.
13879 (HFILES_NO_SRCDIR): Remove hpread.h.
13880 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13881 (hpread.o): Update dependencies.
13882 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13883
13884 * hp-psymtab-read.c: Remove file.
13885 * hp-symtab-read.c: Remove file.
13886 * hpread.h: Remove file.
13887
13888 * hpread.c: Merge all contents of hp-psymtab-read.c,
13889 hp-symtab-read.c and hpread.h into this file, as it was prior to
13890 January 1999.
13891
13892 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13893 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13894 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13895 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13896
13897 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13898
13899 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13900 fill_gregset): Call gdbarch_tdep() just once, assign result to
13901 variable and use that, instead of calling the function several
13902 times.
13903
13904 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13905
13906 * configure.host: Accept sparcv9 as alias for sparc64.
13907 * configure.tgt: Likewise.
13908
13909 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13910
13911 * solib-aix5.c (build_so_list_from_mapfile)
13912 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13913 arguments is not reversed.
13914 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13915 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13916
13917 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13918
13919 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13920 modified version of obsolete sh_fetch_pseudo_register.
13921 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13922 (sh4_register_read): New function.
13923 (sh_pseudo_register_write): New function. Renamed and modified
13924 version of obsolete sh_store_pseudo_register.
13925 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13926 (sh4_register_write): New function.
13927 (sh_gdbarch_init): Remove setting of gdbarch function
13928 fetch_pseudo_register and store_pseudo_register. Remove setting of
13929 register_convert_to_raw, register_convert_to_virtual,
13930 register_convertible.
13931 (sh_sh4_register_convertible): Delete. No longer needed. All is
13932 taken care by architecture specific functions
13933 register_read/register_write.
13934 (sh_sh4_register_convert_to_virtual): Make static.
13935 (sh_sh4_register_convert_to_raw): Ditto.
13936
13937 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13938
13939 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13940 (floatformat_is_nan, floatformat_mantissa): Ditto.
13941
13942 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13943 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13944 builtin_type_ieee_double_little,
13945 builtin_type_ieee_double_littlebyte_bigword,
13946 builtin_type_m68881_ext, builtin_type_i960_ext,
13947 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13948 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13949 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13950 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13951
13952 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13953
13954 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13955 parameter. Set frameless flag if it exists and depended of
13956 whether the scanned function is frameless or not.
13957 (xstormy16_skip_prologue): If function is frameless, return
13958 result of xstormy16_scan_prologue().
13959 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13960 call.
13961
13962 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13963
13964 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13965 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13966 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13967 sh_sh4_register_byte, sh_sh4_register_raw_size,
13968 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13969 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13970 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13971 sh_store_pseudo_register, sh_do_pseudo_register): Call
13972 gdbarch_tdep() just once, assign result to variable and use that,
13973 instead of calling the function several times.
13974
13975 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13976
13977 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13978 macros instead of LAST_FPU_CTRL_REGNUM.
13979 (store_register): Likewise.
13980
13981 2002-01-21 Jim Blandy <jimb@redhat.com>
13982
13983 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13984 is up-to-date before running the program, not just when a program
13985 exits.
13986
13987 2002-01-21 Fred Fish <fnf@redhat.com>
13988
13989 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13990 when we have found all instructions we are looking for.
13991
13992 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13993
13994 * arm-tdep.c (arm_register_name): New function.
13995 (arm_registers_names): Make static.
13996 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13997 (arm_register_name): Declare.
13998 (REGISTER_NAME): Use it.
13999
14000 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14001 Kevin Buettner <kevinb@redhat.com>
14002
14003 Convert arm targets to new FRAME interface.
14004 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14005 (arm_frame_find_save_regs): Delete.
14006 (arm_frame_init_saved_regs): New.
14007 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14008 Allocate extra_info as required. Convert all uses of fsr.regs
14009 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14010 to use extra_info.
14011 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14012 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14013 (check_prologue_cache, save_prologue_cache): Likewise.
14014 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14015 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14016 (FRAME_FIND_SAVED_REGS): Delete.
14017 (arm_frame_find_saved_regs): Delete prototype.
14018 (arm_frame_init_saved_regs): New prototype.
14019 (FRAME_INIT_SAVED_REGS): Define.
14020
14021 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14022
14023 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14024
14025 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14026
14027 From Jeff Law <law@redhat.com>:
14028 * infttrace.c: Include <sys/pstat.h>.
14029 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14030 exec file if the ttrace equivalent fails.
14031
14032 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14033
14034 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14035 (closeLogFile): Ditto.
14036
14037 2002-01-20 Michael Chastain <mec@shout.net>
14038
14039 * top.c (print_gdb_version): Bump copyright year to 2002.
14040
14041 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14042
14043 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14044 Zannoni and Eli Zaretskii.
14045
14046 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14047
14048 * buildsym.c: Update copyright years.
14049 * c-typeprint.c: Likewise.
14050 * dwarf2read.c: Likewise.
14051 * f-typeprint.c: Likewise.
14052 * gdbtypes.c: Likewise.
14053 * gdbtypes.h: Likewise.
14054 * hp-symtab-read.c: Likewise.
14055 * hpread.c: Likewise.
14056 * mdebugread.c: Likewise.
14057 * p-typeprint.c: Likewise.
14058
14059 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14060
14061 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14062 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14063 byte-order selectable.
14064 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14065 * arch-utils.c: Ditto.
14066 (set_endian): Ditto.
14067 (set_endian_from_file): Ditto.
14068 * gdbserver/low-sim.c (create_inferior): Ditto.
14069 * gdbarch.sh: Ditto.
14070 * gdbarch.h: Re-generate.
14071 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14072 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14073 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14074 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14075 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14076 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14077 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14078 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14079 macro definition.
14080 * config/mips/tm-wince.h: Remove #undef of macro
14081 TARGET_BYTE_ORDER_SELECTABLE.
14082 * config/sh/tm-wince.h: Ditto.
14083
14084 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14085
14086 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14087 member function fields. Add accessor macro
14088 TYPE_FN_FIELD_ARTIFICIAL.
14089 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14090 * c-typeprint.c (c_type_print_base): Skip artificial member
14091 functions.
14092
14093 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14094
14095 * f-typeprint.c: Delete unused function f_type_print_args.
14096 * p-typeprint.c: Delete unused function pascal_type_print_args.
14097
14098 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14099
14100 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14101 comment. Add ``artificial'' to ``union field_location''.
14102
14103 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14104
14105 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14106 * mdebugread.c (parse_symbol): Likewise.
14107 * stabsread.c (define_symbol): Likewise.
14108 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14109 initializing TYPE_FIELD_BITPOS to n (obsolete).
14110 (hpread_doc_function_type): Likewise.
14111 * hpread.c (hpread_function_type): Likewise.
14112
14113 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14114
14115 * configure.in (host_makefile_frag): Only require a host makefile
14116 fragment when a native build.
14117 * configure: Re-generate.
14118
14119 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14120
14121 * doublest.h (floatformat_from_type): Declare.
14122 * doublest.c (floatformat_from_type): New function.
14123 (convert_typed_floating): Use.
14124
14125 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14126 call to function floatformat_from_type.
14127
14128 * gdbarch.sh (IEEE_FLOAT): Delete.
14129 * gdbarch.h, gdbarch.c: Re-generate.
14130 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14131 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14132 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14133 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14134 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14135 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14136 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14137 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14138 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14139 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14140 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14141 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14142
14143 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14144 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14145 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14146 * sh-tdep.c (sh_gdbarch_init): Ditto.
14147 * mips-tdep.c (mips_gdbarch_init): Ditto.
14148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14149 * cris-tdep.c (cris_gdbarch_init): Ditto.
14150
14151 2002-01-20 Jiri Smid <smid@suse.cz>
14152
14153 * configure.host, configure.tgt: Support x86-64.
14154 * NEWS: Note new target x86-64.
14155
14156 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14157 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14158 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14159 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14160 x86-64-linux-nat.o): Fix dependencies.
14161
14162 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14163
14164 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14165 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14166 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14167 * config/sparc/xm-sun4os4.h: Delete file.
14168 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14169
14170 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14171
14172 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14173 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14174 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14175 * config/i386/i386lynx.mh (XM_FILE): Delete.
14176 * config/rs6000/xm-rs6000ly.h: Delete file.
14177 * config/sparc/xm-sparclynx.h: Delete file.
14178 * config/m68k/xm-m68klynx.h: Delete file.
14179 * config/i386/xm-i386lynx.h: Delete file.
14180 * config/xm-lynx.h: Delete file.
14181 * config/djgpp/fnchange.lst: Update.
14182
14183 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14184
14185 * alpha-tdep.c (alpha_register_byte): New function.
14186 (alpha_register_raw_size): Ditto.
14187 (alpha_register_virtual_size): Ditto.
14188 (alpha_skip_prologue_internal): Renamed from
14189 alpha_skip_prologue.
14190 (alpha_skip_prologue): New version that calls
14191 alpha_skip_prologue_internal.
14192 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14193 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14194 second argument from alpha_skip_prologue.
14195 (REGISTER_BYTE): Use alpha_register_byte.
14196 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14197 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14198 (FRAMELESS_FUNCTION_INVOCATION): Use
14199 generic_frameless_function_invocation_not.
14200 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14201 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14202
14203 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14204
14205 * config/mips/xm-news-mips.h: Delete file.
14206 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14207
14208 * config/m88k/xm-m88k.h: Delete file.
14209 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14210 * config/m88k/xm-delta88v4.h: Ditto.
14211 * config/m88k/xm-delta88.h: Ditto.
14212
14213 * config/alpha/xm-fbsd.h: Delete file.
14214 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14215
14216 * config/sparc/xm-sparc.h: Delete file.
14217 * Makefile.in (xm-sun4os4.h): Delete dependency.
14218 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14219 * config/sparc/xm-sun4os4.h: Ditto.
14220 * config/sparc/xm-linux.h: Ditto.
14221
14222 * config/i386/xm-windows.h: Delete file.
14223
14224 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14225
14226 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14227 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14228
14229 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14230
14231 * alpha-tdep.c (alpha_call_dummy_words): New.
14232 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14233 (CALL_DUMMY_P): Define.
14234 (CALL_DUMMY_WORDS): Define.
14235 (SIZEOF_CALL_DUMMY_WORDS): Define.
14236
14237 2002-01-19 Per Bothner <per@bothner.com>
14238
14239 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14240 isn't NULL, which can happen with some gcj-3.x-produced code.
14241
14242 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14243
14244 * alpha-tdep.c (alpha_register_virtual_type): New function.
14245 (alpha_init_frame_pc_first): Ditto.
14246 (alpha_fix_call_dummy): Ditto.
14247 (alpha_store_struct_return): Ditto.
14248 (alpha_extract_struct_value_address): Ditto.
14249 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14250 alpha_register_virtual_type.
14251 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14252 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14253 alpha_extract_struct_value_address.
14254 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14255 (INIT_FRAME_PC): Use init_frame_pc_noop.
14256 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14257
14258 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14259
14260 * i386gnu-nat.c: Include "i386-tdep.h".
14261 (fetch_fpregs): Simplify code dealing with uninitialized floating
14262 point states such that it doesn't require FP7_REGNUM.
14263
14264 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14265
14266 * alpha-tdep.c (frame_extra_info): New.
14267 (alpha_find_saved_regs): Make static. Use
14268 frame->extra_info.
14269 (alpha_frame_init_saved_regs): New function.
14270 (alpha_frame_saved_pc): Use frame->extra_info.
14271 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14272 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14273 (init_extra_frame_info): Rename to...
14274 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14275 (alpha_print_extra_frame_info): New function.
14276 (alpha_frame_locals_address): Ditto.
14277 (alpha_frame_args_address): Ditto.
14278 (alpha_pop_frame): Use frame->extra_info.
14279 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14280 alpha_frame_args_address.
14281 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14282 (alpha_find_saved_regs): Remove prototype.
14283 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14284 (EXTRA_FRAME_INFO): Remove.
14285 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14286 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14287
14288 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14289
14290 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14291 (alpha_cannot_fetch_register): Ditto.
14292 (alpha_cannot_store_register): Ditto.
14293 (alpha_register_convertible): Ditto.
14294 (alpha_use_struct_convention): Ditto.
14295 * config/alpha/tm-alpha.h: Update copyright years.
14296 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14297 (INNER_THAN): Use core_addr_lessthan.
14298 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14299 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14300 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14301 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14302 (FRAME_CHAIN): Remove unnecessary cast.
14303
14304 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14305
14306 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14307 obsolete.
14308
14309 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14310
14311 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14312 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14313 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14314 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14315 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14316 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14317 * x86-64-linux-nat.c: Ditto.
14318
14319 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14320
14321 * alpha-tdep.c (alpha_register_name): New function.
14322 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14323 (REGISTER_NAME): Define.
14324
14325 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14326
14327 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14328
14329 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14330
14331 * alpha-tdep.c: Update copyright years.
14332 (alpha_next_pc): New function.
14333 (alpha_software_single_step): Ditto.
14334 * config/alpha/tm-alpha.h: Add prototype for
14335 alpha_software_single_step.
14336
14337 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14338
14339 * alphabsd-nat.c: Update copyright years.
14340 (fill_gregset): Use regcache_collect.
14341 (fill_fpregset): Likewise.
14342 (fetch_inferior_registers): Only fetch integer registers
14343 if requested to do so.
14344 (store_inferior_registers): Only store integer registers
14345 if requested to do so.
14346
14347 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14348
14349 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14350 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14351 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14352 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14353 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14354 * config/arm/linux.mh (XDEPFILES): Delete.
14355 * config/arm/nbsd.mh (XDEPFILES): Delete.
14356 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14357 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14358 * config/i386/i386m3.mh (XDEPFILES): Delete.
14359 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14360 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14361 * config/i386/fbsd.mh (XDEPFILES): Delete.
14362 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14363 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14364 * config/i386/i386v4.mh (XDEPFILES): Delete.
14365 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14366 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14367 * config/i386/i386aix.mh (XDEPFILES): Delete.
14368 * config/i386/go32.mh (XDEPFILES): Delete.
14369 * config/i386/cygwin.mh (XDEPFILES): Delete.
14370 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14371 * config/i386/i386mach.mh (XDEPFILES): Delete.
14372 * config/i386/i386v32.mh (XDEPFILES): Delete.
14373 * config/i386/linux.mh (XDEPFILES): Delete.
14374 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14375 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14376 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14377 * config/i386/i386sco.mh (XDEPFILES): Delete.
14378 * config/i386/i386v.mh (XDEPFILES): Delete.
14379 * config/i386/nbsd.mh (XDEPFILES): Delete.
14380 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14381 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14382 * config/i386/symmetry.mh (XDEPFILES): Delete.
14383 * config/i386/obsd.mh (XDEPFILES): Delete.
14384 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14385 * config/ia64/linux.mh (XDEPFILES): Delete.
14386 * config/ia64/aix.mh (XDEPFILES): Delete.
14387 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14388 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14389 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14390 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14391 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14392 * config/m68k/linux.mh (XDEPFILES): Delete.
14393 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14394 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14395 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14396 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14397 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14398 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14399 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14400 * config/m88k/delta88.mh (XDEPFILES): Delete.
14401 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14402 * config/m88k/m88k.mh (XDEPFILES): Delete.
14403 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14404 * config/mips/linux.mh (XDEPFILES): Delete.
14405 * config/mips/irix6.mh (XDEPFILES): Delete.
14406 * config/mips/irix5.mh (XDEPFILES): Delete.
14407 * config/mips/irix4.mh (XDEPFILES): Delete.
14408 * config/mips/irix3.mh (XDEPFILES): Delete.
14409 * config/mips/decstation.mh (XDEPFILES): Delete.
14410 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14411 (NATDEPFILES): Move core-aout.o to here.
14412 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14413 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14414 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14415 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14416 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14417 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14418 * config/pa/hpux11.mh (XDEPFILES): Delete.
14419 * config/powerpc/aix.mh (XDEPFILES): Delete.
14420 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14421 * config/powerpc/linux.mh (XDEPFILES): Delete.
14422 * config/romp/rtbsd.mh: Rename XDEPFILES.
14423 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14424 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14425 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14426 * config/s390/s390.mh (XDEPFILES): Delete.
14427 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14428 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14429 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14430 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14431 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14432 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14433 * config/sparc/linux.mh (XDEPFILES): Delete.
14434 * config/vax/vaxult.mh (XDEPFILES): Delete.
14435 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14436 * Makefile.in (DEPFILES): Remove XDEPFILES.
14437
14438 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14439
14440 * utils.c (internal_verror): Fix comments, default is yes not no.
14441 Update queries to match. Default to quit and dump core.
14442
14443 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14444
14445 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14446 copyright.
14447 * defs.h, event-top.c, gdbcmd.h: Ditto.
14448 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14449 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14450 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14451 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14452 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14453 * mi/mi-main.c:Ditto.
14454
14455 * stack.c, symfile.c: Update copyright.
14456
14457 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14458
14459 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14460 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14461 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14462 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14463
14464 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14465
14466 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14467 * gdbserver/low-lynx.c (myattach): Likewise.
14468 * gdbserver/low-nbsd.c (myattach): Likewise.
14469 * gdbserver/low-sim.c (myattach): Likewise.
14470 * gdbserver/low-sparc.c (myattach): Likewise.
14471 * gdbserver/low-sun3.c (myattach): Likewise.
14472
14473 * gdbserver/low-linux.c (myattach): New function.
14474
14475 * gdbserver/server.c (attach_inferior): New function.
14476 (main): Handle "--attach".
14477
14478 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14479
14480 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14481 maintainer.
14482
14483 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14484
14485 * c-typeprint.c (is_type_conversion_operator): Add additional
14486 check for non-conversion operators.
14487
14488 2002-01-15 Michael Snyder <msnyder@redhat.com>
14489
14490 * linux-proc.c: Add "info proc" command, a la procfs.c.
14491 (read_mapping): New function, abstract and re-use code.
14492 (linux_find_memory_regions): Use new func read_mapping.
14493 (linux_info_proc_cmd): New function, implement "info proc".
14494 (_initialize_linux_proc): Add new command "info proc".
14495
14496 2002-01-15 Michael Snyder <msnyder@redhat.com>
14497
14498 * symfile.c (generic_load): Use bfd_map_over_sections method
14499 instead of manipulating bfd structure members directly.
14500 (add_section_size_callback): New function, bfd sections callback
14501 used by generic_load.
14502 (load_sections_callback): New function, bfd sections callback
14503 used by generic_load.
14504
14505 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14506
14507 [Based on work by Jim Blandy]
14508 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14509 (builtin_type_vec128): Export.
14510 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14511 types.
14512 (builtin_type_vec128): New builtin type for 128 bit vector
14513 registers.
14514 (build_gdbtypes): Initialize builtin_type_v16qi and
14515 builtin_type_v8hi. Create the vec128 register builtin type
14516 structure.
14517 (build_builtin_type_vec128): New function.
14518 (_initialize_gdbtypes): Register builtin_type_v16qi and
14519 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14520 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14521 AltiVec register to new builtin type.
14522
14523 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14524
14525 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14526 to make_cv_type.
14527
14528 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14529
14530 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14531 CLEAN_UP_REGISTER_VALUE.
14532 * regcache.c (supply_register): Update only call.
14533
14534 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14535
14536 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14537 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14538 a29k-*-vxworks* targets as obsolete.
14539
14540 2002-01-14 Michael Snyder <msnyder@redhat.com>
14541
14542 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14543 until we can resolve portability issues.
14544 * gregset.h: Remove references to fpxregs.
14545 * gcore.c (gcore_command): Initialize note_sec to NULL.
14546
14547 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14548
14549 * signals.c (target_signal_to_name): Rewrite. Only use
14550 signals[].name when in bounds and non-NULL.
14551
14552 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14553
14554 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14555 * signals.c (target_signal_to_name): Verify that SIG is within the
14556 bounds of the signals array.
14557
14558 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14559
14560 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14561
14562 2002-01-13 Keith Seitz <keiths@redhat.com>
14563
14564 * stack.c (print_frame_info_base): Print the frame's pc
14565 only if when print_frame_info_listing_hook is not defined.
14566
14567 2002-01-13 Keith Seitz <keiths@redhat.com>
14568
14569 * varobj.c (varobj_set_value): Make sure that there were no
14570 errors evaluating the object before attempting to set its
14571 value.
14572 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14573 so this offset adjustment is no longer necessary.
14574 (create_child): Don't set the error flag if the child is
14575 a CPLUS_FAKE_CHILD.
14576 (value_of_child): If value_fetch_lazy fails, return NULL
14577 so that callers will be notified that an error occurred.
14578 (c_value_of_variable): Delay check of variable's validity
14579 until later. We actually want all structs and unions to have
14580 the value "{...}".
14581 Do not return "???" for variables which could not be evaluated.
14582 This error condition must be returned to the caller so that it
14583 can get the error condition from gdb.
14584 (cplus_name_of_child): Adjust index for vptr before figuring
14585 out the name of the child.
14586 (cplus_value_of_child): If a child's (real) parent is not valid,
14587 don't even bother trying to give a value for it. Just return
14588 an error. Change all instances in this function.
14589 (cplus_type_of_child): If our parent is one of the "fake"
14590 parents, we need to get at the type of the real parent, and
14591 derive the child's true type using this information.
14592
14593 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14594
14595 From 2002-01-09 John Marshall <johnm@falch.net>:
14596 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14597 sources.redhat.com, and tweak some related URLs which had
14598 suffered from linkrot.
14599
14600 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14601
14602 From Jeff law:
14603 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14604 structures passed in registers.
14605
14606 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14607
14608 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14609 white space which prevented compilation. Reported by DSK
14610 <dsk@student.unsw.edu.au>.
14611
14612 2002-01-11 Michael Snyder <msnyder@redhat.com>
14613
14614 * symfile.c (build_section_addr_info_from_section_tab):
14615 Use bfd access method instead of manipulating bfd directly.
14616 (syms_from_objfile): Ditto.
14617 (simple_overlay_update_1): Ditto.
14618 (simple_overlay_update): Ditto.
14619 (generic_load): Ditto.
14620 (overlay_unmapped_address): FIXME comment, bfd access methods.
14621 (sections_overlap): FIXME comment, bfd access methods.
14622 (pc_in_mapped_range): FIXME comment, bfd access methods.
14623 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14624 (section_is_mapped): FIXME comment, bfd access methods.
14625 (section_is_overlay): FIXME comment, bfd access methods.
14626
14627 * symfile.c (generic_load): Whitespace and long line cleanups.
14628 Remove duplicate variable, change several local variables to
14629 more appropriate data types.
14630 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14631
14632 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14633
14634 From Peter Schauer:
14635 * language.c (longest_local_hex_string_custom): Use phex_nz to
14636 convert NUM to a hex string.
14637
14638 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14639
14640 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14641 the function.
14642 Update Copyright year.
14643
14644 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14645
14646 * language.c (longest_raw_hex_string): Delete unused function.
14647
14648 2002-01-11 Petr Sorfa <petrs@caldera.com>
14649
14650 * MAINTAINERS (write-after-approval): Add myself.
14651 * dwarf2read.c (read_tag_string_type): Handling of
14652 DW_AT_byte_size.
14653 (read_tag_string_type): FORTRAN fix to prevent propagation of
14654 first string size.
14655 (set_cu_language): Handling of DW_LANG_Fortran95
14656
14657 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14658
14659 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14660 GETPID(inferior_ptid).
14661 (store_inferior_registers): Likewise.
14662
14663 2002-01-10 Jason Merrill <jason@redhat.com>
14664
14665 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14666 Fix DW_OP_minus.
14667
14668 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14669
14670 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14671 and bfd/elf32-sh-nbsd.c.
14672
14673 2002-01-10 Michael Snyder <msnyder@redhat.com>
14674
14675 * NEWS: Mention --pid and corefile/proc-id behavior change.
14676
14677 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14678 * gcore.c: Include cli/cli-decode.h instead of command.h.
14679
14680 * main.c (captured_main): Add new command line option "--pid".
14681 If the second command line argument (following the symbol-file)
14682 begins with a digit, try to attach to it before trying to open
14683 it as a corefile.
14684 (print_gdb_help): Document the "--pid" argument.
14685
14686 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14687
14688 * completer.c (command_completer): New function.
14689
14690 * completer.h <command_completer>: Add prototype.
14691
14692 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14693 completer for the "help" command.
14694
14695 2002-01-09 Jason Merrill <jason@redhat.com>
14696
14697 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14698
14699 2002-01-09 Michael Snyder <msnyder@redhat.com>
14700
14701 * i386-linux-nat.c (fill_fpxregset): Make global.
14702 (store_fpxregset): Ditto.
14703
14704 * gregset.h (gdb_fpxregset_t): Define.
14705 (supply_fpxregset): Prototype.
14706 (fill_fpxregset): Prototype.
14707
14708 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14709
14710 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14711
14712 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14713 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14714 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14715
14716 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14717
14718 * MAINTAINERS: Update target maintainer rules so that any
14719 Maintainer can approve a tested patch for a maintenance-only
14720 target.
14721
14722 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14723
14724 * MAINTAINERS (write-after-approval): Add myself.
14725
14726 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14727 IN_SIGTRAMP.
14728
14729 2002-01-08 Michael Snyder <msnyder@redhat.com>
14730
14731 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14732 real name of the executable, rather than the /proc name.
14733
14734 2002-01-03 Michael Snyder <msnyder@redhat.com>
14735
14736 Implement a "generate-core-file" command in gdb, save target state.
14737 * gcore.c: New file. Implement new command 'generate-core-file'.
14738 Save a corefile image of the current state of the inferior.
14739 * linux-proc.c: Add linux-specific code for saving corefiles.
14740 * target.h (struct target_ops): Add new target vectors for saving
14741 corefiles; to_find_memory_regions and to_make_corefile_notes.
14742 (target_find_memory_regions): New macro.
14743 (target_make_corefile_notes): New macro.
14744 * target.c (update_current_target): Inherit new target methods.
14745 (dummy_find_memory_regions): New place-holder method.
14746 (dummy_make_corefile_notes): New place-holder method.
14747 (init_dummy_target): Initialize new dummy target vectors.
14748 * exec.c (exec_set_find_memory_regions): New function.
14749 Allow the exec_ops vector for memory regions to be taken over.
14750 (exec_make_note_section): New function, target vector method.
14751 * defs.h (exec_set_find_memory_regions): Export prototype.
14752 * procfs.c (proc_find_memory_regions): New function, corefile method.
14753 (procfs_make_note_section): New function, corefile method.
14754 (init_procfs_ops): Set new target vector pointers.
14755 (find_memory_regions_callback): New function.
14756 (procfs_do_thread_registers): New function.
14757 (procfs_corefile_thread_callback): New function.
14758 * sol-thread.c (sol_find_memory_regions): New function.
14759 (sol_make_note_section): New function.
14760 (init_sol_thread_ops): Initialize new target vectors.
14761 * inftarg.c (inftarg_set_find_memory_regions): New function.
14762 Allow to_find_memory_regions vector to be taken over.
14763 (inftarg_set_make_corefile_notes): New function.
14764 Allow to_make_corefile_notes vector to be taken over.
14765 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14766 interface layer if not target_has_execution (may be a corefile).
14767 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14768 * config/sparc/sun4sol2.mh: Ditto.
14769 * config/alpha/alpha-linux.mh: Ditto.
14770 * config/arm/linux.mh: Ditto.
14771 * config/i386/x86-64linux.mh: Ditto.
14772 * config/ia64/linux.mh: Ditto.
14773 * config/m68k/linux.mh: Ditto.
14774 * config/mips/linux.mh: Ditto.
14775 * config/powerpc/linux.mh: Ditto.
14776 * config/sparc/linux.mh: Ditto.
14777
14778 2002-01-07 Michael Snyder <msnyder@redhat.com>
14779
14780 * arm-linux-nat.c: Remove references to regcache.c internal data
14781 (registers[] and register_valid[]).
14782
14783 2002-01-07 Michael Snyder <msnyder@redhat.com>
14784
14785 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14786 so that attaching to a pid will automatically read the process's
14787 symbol file and shlibs.
14788 * Makefile.in: Add rule for linux-proc.o.
14789 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14790 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14791 * config/arm/linux.mh: Ditto.
14792 * config/i386/linux.mh: Ditto.
14793 * config/i386/x86-64linux.mh: Ditto.
14794 * config/ia64/linux.mh: Ditto.
14795 * config/m68k/linux.mh: Ditto.
14796 * config/mips/linux.mh: Ditto.
14797 * config/powerpc/linux.mh: Ditto.
14798 * config/sparc/linux.mh: Ditto.
14799
14800 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14801
14802 * win32-nat.c: Add i386-tdep.h dependency.
14803
14804 2002-01-07 Michael Snyder <msnyder@redhat.com>
14805
14806 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14807 instead of bfd_get_arch_size. Don't bail out just because
14808 there's no exec_bfd.
14809
14810 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14811 * p-valprint.c (pascal_object_print_value): Ditto.
14812 * somread.c (som_symtab_read): Ditto.
14813 * symfile.c (simple_free_overlay_region_table): Ditto.
14814 * valops.c (value_assign): Ditto.
14815
14816 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14817 use tilde_expand and strerror for opening save-tracepoints file.
14818
14819 * thread-db.c (thread_db_new_objfile): Indendation fix.
14820
14821 * infptrace.c (GDB_MAX_ALLOCA): New define.
14822 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14823 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14824 can be overridden with whatever value is appropriate to the host).
14825 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14826 alloca to allocate potentially large buffer.
14827 * rs6000-nat.c (child_xfer_memory): Ditto.
14828 * symm-nat.c (child_xfer_memory): Ditto.
14829 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14830
14831 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14832
14833 From Nick Clifton <nickc@redhat.com>
14834 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14835
14836 2002-01-07 Michael Snyder <msnyder@redhat.com>
14837
14838 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14839 Don't use exec_bfd if it's NULL.
14840
14841 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14842
14843 * valops.c (value_arg_coerce): Fix formatting.
14844
14845 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14846
14847 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14848 * gnu-nat.c: Ditto.
14849
14850 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14851
14852 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14853 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14854 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14855 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14856 z8k-coff have not been multi-arched. Update z8k-coff build
14857 status.
14858
14859 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14860
14861 * MAINTAINERS: Mark a29k target as obsolete.
14862 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14863 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14864 comments.
14865 * NEWS: Note that a29k targets are obsolete.
14866 * a29k-tdep.c: Mark as obsolete.
14867 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14868 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14869 a29k-*-vxworks* targets as obsolete.
14870 * remote-adapt.c: Obsolete.
14871 * remote-eb.c: Obsolete.
14872 * remote-mm.c: Obsolete.
14873 * remote-udi.c: Obsolete.
14874 * config/a29k/a29k-udi.mt: Obsolete.
14875 * config/a29k/a29k.mt: Obsolete.
14876 * config/a29k/tm-a29k.h: Obsolete.
14877 * config/a29k/tm-vx29k.h: Obsolete.
14878 * config/a29k/vx29k.mt: Obsolete.
14879
14880 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14881
14882 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14883 with BFD_ENDIAN_BIG.
14884
14885 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14886
14887 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14888 * configure, config.in: Re-generate.
14889 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14890 * defs.h: Do not include <endian.h>.
14891
14892 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14893
14894 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14895 * config.in: Regenerate.
14896 * configure.in: Update copyright years.
14897 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14898 * configure: Regenerate.
14899 * i386bsd-nat.c: Update copyright years.
14900 (fill_gregset): Use regcache_collect.
14901 (fetch_inferior_registers): Only fetch integer registers
14902 if requested to do so. Add support for XMM registers
14903 using PT_GETXMMREGS.
14904 (store_inferior_registers): Only store integer registers
14905 if requested to do so. Add support for XMM registers
14906 using PT_SETXMMREGS.
14907 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14908 (store_inferior_registers): Remove.
14909 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14910 (fetch_elfcore_registers): New function.
14911 (i386nbsd_elfcore_fns): New.
14912 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14913 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14914 i386bsd-nat.o.
14915 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14916 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14917 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14918 * config/i386/tm-nbsd.h: Update copyright years.
14919 (HAVE_SSE_REGS): Define.
14920 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14921 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14922 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14923 (SIGCONTEXT_PC_OFFSET): Remove.
14924 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14925
14926 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14927
14928 * configure.tgt: Remove powerpc-*-macos* target.
14929 * config/m68k/xm-mpw.h: Delete file.
14930 * config/xm-mpw.h: Delete file.
14931 * ser-mac.c: Delete file.
14932 * mpw-make.sed: Delete file.
14933 * mpw-config.in: Delete file.
14934 * mac-xdep.c: Delete file.
14935 * mac-gdb.r: Delete file.
14936 * mac-defs.h: Delete file.
14937 * mac-nat.c: Delete file.
14938 * config/powerpc/macos.mh: Delete file.
14939 * config/powerpc/macos.mt: Delete file.
14940 * config/powerpc/nm-macos.h: Delete file.
14941 * config/powerpc/tm-macos.h: Delete file.
14942 * source.c (openp, open_source_file): Remove obsolete code.
14943 * top.c (gdb_readline): Ditto.
14944 * utils.c (query): Ditto.
14945 * event-top.c (display_gdb_prompt): Ditto.
14946 * Makefile.in (ser-mac.o): Delete obsolete target.
14947 * NEWS: Update.
14948
14949 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14950
14951 * defs.h (BIG_ENDIAN): Delete macro definition.
14952 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14953 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14954 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14955 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14956 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14957 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14958 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14959 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14960 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14961 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14962 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14963 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14964 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14965 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14966 * gdbarch.c: Re-generate.
14967
14968 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14969
14970 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14971 for core files.
14972
14973 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14974
14975 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14976
14977 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14978
14979 * value.h (value_ptr): Delete typedef.
14980
14981 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14982
14983 * i386nbsd-nat.c: Update copyright years.
14984 Include i386-tdep.h.
14985
14986 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14987
14988 * stabsread.c: Update copyright years.
14989
14990 From Debashis Mahata <debashis.mahata@wipro.com>:
14991 (read_struct_fields): Deal with Sun C compiler erroneous stab
14992 output for structs and unions.
14993 Fix PR gdb/269.
14994
14995 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14996
14997 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14998 prototype.
14999
15000 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15001
15002 * cp-abi.c: Fix whitespace.
15003 (baseclass_offset): New wrapper function.
15004 * cp-abi.h (baseclass_offset): Add prototype.
15005 (struct cp_abi_ops): Add baseclass_offset pointer.
15006
15007 * valops.c (vb_match): Move to...
15008 * gnu-v2-abi.c (vb_match): here.
15009 * valops.c (baseclass_offset): Move to...
15010 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15011
15012 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15013
15014 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15015 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15016 * hpacc-abi.c (init_hpacc_ops): Likewise.
15017
15018 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15019
15020 * valops.c (find_overload_match): Accept obj as a
15021 reference parameter. Update it before returning.
15022 * value.h (find_overload_match): Update prototype.
15023 * eval.c (evaluate_subexp_standard): Pass object to
15024 find_overload_match by reference.
15025
15026 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15027
15028 * valarith.c: Replace value_ptr with struct value pointer. Remove
15029 register attribute from value declarations.
15030 * valops.c: Ditto.
15031 * value.h: Ditto.
15032 * scm-lang.c (scm_lookup_name): Ditto.
15033
15034 2002-01-03 Michael Snyder <msnyder@redhat.com>
15035
15036 Abstract the functionality of iterating over mapped memory
15037 regions into a general purpose iterator function.
15038 * procfs.c (iterate_over_mappings): New function, general purpose
15039 iterator for memory sections.
15040 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15041 (solib_mappings_callback): New function, callback for above.
15042 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15043 (info_mappings_callback): New function, callback for above.
15044
15045 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15046
15047 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15048
15049 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15050 * i386-tdep.c: Include "elf-bfd.h".
15051 (process_note_abi_tag_sections): New function.
15052 (i386_gdbarch_init): Add code to recognize various OS/ABI
15053 combinations.
15054
15055 * maint.c (_initialize_maint_cmds): Add missing \ in
15056 string-literal.
15057
15058 For older changes see ChangeLog-2001
15059 \f
15060 Local Variables:
15061 mode: change-log
15062 left-margin: 8
15063 fill-column: 74
15064 version-control: never
15065 End:
This page took 0.319683 seconds and 5 git commands to generate.