* sim-h8300.h: Remove ^M.
[binutils.git] / gdb / ChangeLog
CommitLineData
6c756a30
DC
12002-12-24 David Carlton <carlton@math.stanford.edu>
2
3 * config/sparc/tm-sparc.h: Delete duplicate definition of
4 DEPRECATED_PC_IN_CALL_DUMMY.
5
96f026fc
KB
62002-12-24 Kevin Buettner <kevinb@redhat.com>
7
8 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
9 $(gdb_assert_h).
10 * configure.tgt: Recognize mips64*-*-linux*.
11 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
12 (supply_32_bit_reg): New function.
13 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
14 (fill_gregset): Use regcache_collect() instead of
15 deprecated_registers[].
16 (register_addr): Change name to mips_linux_register_addr().
17 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
18 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
19 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
20 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
21 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
22 (MIPS64_LINUX_JB_PC): New defines.
23 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
24 (mips64_elf_fpregset_t): New typedefs.
25 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
26 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
27 (mips64_linux_register_addr, set_mips_linux_register_addr)
28 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
29 (init_register_addr_data)
30 New functions.
31 (fetch_core_registers): Add support for core file formats with 64-bit
32 registers.
33 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
34 (register_addr_data): New static global variable.
35 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
36 gdbarch_register_osabi() for each MIPS machine.
37 * config/mips/linux64.mt: New file.
38 * config/mips/tm-linux64.h: New file.
39
5a24b7e3
AF
402002-12-23 Adam Fedor <fedor@gnu.org>
41
42 * maint.c (maintenance_demangle): Add switch to demangle
43 ObjC language symbols as well.
44
9d1127c5
AF
452002-12-23 Adam Fedor <fedor@gnu.org>
46
47 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
48 last argument from complaint function call.
49
96f026fc 502002-12-23 Kevin Buettner <kevinb@redhat.com>
bcf16802
KB
51
52 * exec.c (print_section_info): Add FIXME comments regarding format
53 string choices.
54
710686b3
DJ
552002-12-23 Daniel Jacobowitz <drow@mvista.com>
56
57 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
58 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
59
602002-12-23 Rodney Brown <rbrown64@csc.com.au>
61
62 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
63
e45febe2
DC
642002-12-23 David Carlton <carlton@math.stanford.edu>
65
66 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
67 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
68 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
69 information associated to a minsym, not lookup_symbol.
70
2213a65d
MK
712002-12-21 Mark Kettenis <kettenis@gnu.org>
72
73 * x86-64-tdep.h (x86_64_init_abi): New prototype.
74 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
75 (x86_64_init_abi): Make non-static. Set number of pseudo
76 registers to 0.
77 (x86_64_gdbarch_init): Remove function.
78 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
79 Remove code dealing with dissambly.
80 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
81 (_initialize_x86_64_linux_tdep): New function.
82 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
83 i386-tdep.o.
84
05816f70
MK
852002-12-14 Mark Kettenis <kettenis@gnu.org>
86
87 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
88 (struct gdb_osabi_handler): Remove member `arch'. Add member
89 `arch_info'.
90 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
91 construct a `struct bfd_arch_info' and store it in the `struct
92 gdb_osabi_handler' that is created.
93 (gdbarch_init_osabi): Check for compatibility based on machine
94 type and architecture.
95 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
96 comment.
97 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
98 second argument in call to gdbarch_register_osabi.
99 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
100 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
101 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
102 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
103 * arm-tdep.c (_initialize_arm_tdep): Likewise.
104 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
105 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
106 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
107 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
108 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
109 * i386-tdep.c (_initialize_i386_tdep): Likewise.
110 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
111 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
112 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
113 _initialize_i386bsd_tdep and updated likewise.
114 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
115 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
116 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
117 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
118 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
119 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
120 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
121 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
122 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
123 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
124
743b930b
KB
1252002-12-20 Kevin Buettner <kevinb@redhat.com>
126
127 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
128 DT_MIPS_RLD_MAP case for 64-bit targets.
129
3758ac48
KB
1302002-12-20 Kevin Buettner <kevinb@redhat.com>
131
132 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
133 ``temp_saved_regs'', not the pointer or other storage contiguous
134 to this pointer.
135
19ed69dd
KB
1362002-12-20 Kevin Buettner <kevinb@redhat.com>
137
138 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
139 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
140 (mips_linux_get_longjmp_target): Delete declarations.
141 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
142 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
143 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
144 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
145 (mips_linux_get_longjmp_target)
146 (mips_linux_svr4_fetch_link_map_offsets): Make static.
147 (mips_linux_init_abi): New function.
148 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
149
7990a578
EZ
1502002-12-19 Keith Seitz <keiths@redhat.com>
151
152 patch committed by Elena Zannoni <ezannoni@redhat.com>
153 * thread.c (do_captured_list_thread_ids): Call prune_threads and
154 target_find_new_threads. Fix for PR mi/669.
155
84fba31b
DC
1562002-12-19 David Carlton <carlton@math.stanford.edu>
157
158 * linespec.c (decode_line_1): Move code into decode_all_digits.
159 (decode_all_digits): New function.
160
2fc70c99
KB
1612002-12-19 Kevin Buettner <kevinb@redhat.com>
162
163 * exec.c (print_section_info): Select a format string to use with
164 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
165
2f107107
AC
1662002-12-18 Andrew Cagney <ac131313@redhat.com>
167
168 * frame.c (deprecated_update_current_frame_pc_hack): Replace
169 deprecated_update_current_frame_pc_hack.
170 (deprecated_update_frame_base_hack): New function.
171 * frame.h (deprecated_update_frame_pc_hack): Replace
172 (deprecated_update_frame_base_hack): Declare.
173 * infrun.c (normal_stop): Update.
174
c9012c71
AC
1752002-12-18 Andrew Cagney <ac131313@redhat.com>
176
177 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
178 frame_extra_info_zalloc.
179 (rs6000_frame_args_address): Use get_frame_extra_info.
180 (frame_get_saved_regs): Use get_frame_saved_regs.
181 (frame_initial_stack_address): Use get_frame_saved_regs and
182 get_frame_extra_info.
183 (frame_initial_stack_address): Use get_frame_extra_info.
184
6819ae38
KB
1852002-12-17 Kevin Buettner <kevinb@redhat.com>
186
187 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
188 array size.
189 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
190 checks for r3900_regnames[].
191
625602f2
RE
1922002-12-17 Richard Earnshaw <rearnsha@arm.com>
193
194 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
195 All uses changed
196 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
197
38d49aff
DC
1982002-12-17 David Carlton <carlton@math.stanford.edu>
199
200 * symtab.c (lookup_partial_symbol): Don't search past the end of
201 the partial symbols.
202
30f7db39
AC
2032002-12-17 Andrew Cagney <ac131313@redhat.com>
204
205 * stack.c (frame_info): Use get_frame_saved_regs.
206 * breakpoint.c (until_break_command): Use get_frame_pc.
207
23136709
KB
2082002-12-16 Kevin Buettner <kevinb@redhat.com>
209
210 * buildsym.c (block_end_complaint, anon_block_end_complaint)
211 (innerblock_complaint, innerblock_anon_complaint)
212 (blockvector_complaint): Delete deprecated complaint structs.
213 (finish_block, make_blockvector, end_symtab): Replace calls
214 to complain() with calls to complaint().
215 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
216 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
217 (unexpected_type_complaint, bad_sclass_complaint)
218 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
219 Delete deprecated complaint structs.
220 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
221 Replace calls to complain() with calls to complaint().
222 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
223 (unknown_symtype_complaint, unknown_symchar_complaint)
224 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
225 (lbrac_mismatch_complaint, repeated_header_complaint)
226 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
227 Delete deprecated complaint structs.
228 (unknown_symtype_complaint, lbrac_mismatch_complaint)
229 (repeated_header_complaint)
230 (function_outside_compiliation_unit_complaint): New functions.
231 (add_old_header_file, find_corresponding_bincl_psymtab)
232 (set_namestring, find_stab_function_addr, read_dbx_symtab)
233 (process_one_symbol): Replace calls to complain() with, possibly
234 indirect, calls to complaint().
235 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
236 (unknown_attribute_form, unknown_attribute_length)
237 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
238 (const_ignored, botched_modified_type, op_deref2, op_deref4)
239 (basereg_not_handled, dup_user_type_allocation)
240 (dup_user_type_definition, missing_tag, bad_array_element_type)
241 (subscript_data_items, unhandled_array_subscript_format)
242 (unknown_array_subscript_format, not_row_major)
243 (missing_at_name): Delete deprecated complaint structs.
244 (bad_die_ref_complaint, unknown_attribute_form_complaint)
245 (dup_user_type_definition_complaint)
246 (bad_array_element_type_complaint): New functions.
247 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
248 (decode_subscript_data_item, dwarf_read_array_type)
249 (read_tag_string_type, read_subroutine_type, read_func_scope)
250 (locval, scan_partial_symbols, decode_modified_type)
251 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
252 (attribute_size): Replace calls to complain() with, possibly
253 indirect, calls to complaint().
254 * elfread.c (section_info_complaint, section_info_dup_complaint)
255 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
256 Delete deprecated complaint structs.
257 (elf_symtab_read, elfstab_offset_sections): Replace calls to
258 complain() with calls to complaint().
259 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
260 struct.
261 (stub_noname_complaint): New function.
262 (check_typedef, add_mangled_type): Replace calls to complain()
263 with calls to complaint().
264 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
265 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
266 (hpread_unhandled_type_complaint, hpread_struct_complaint)
267 (hpread_array_complaint, hpread_type_lookup_complaint)
268 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
269 (hpread_unhandled_common_complaint)
270 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
271 struct definitions and declarations.
272 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
273 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
274 Replace calls to complain() with, possibly indirect, calls to
275 complaint().
276 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
277 Likewise.
278 * mdebugread.c (bad_file_number_complaint, index_complaint)
279 (aux_index_complaint, block_index_complaint)
280 (unknown_ext_complaint, unknown_sym_complaint)
281 (unknown_st_complaint, block_overflow_complaint)
282 (basic_type_complaint, unknown_type_qual_complaint)
283 (array_index_type_complaint, bad_tag_guess_complaint)
284 (block_member_complaint, stEnd_complaint)
285 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
286 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
287 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
288 (bad_continued_complaint, bad_rfd_entry_complaint)
289 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
290 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
291 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
292 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
293 complaint structs.
294 (index_complaint, unknown_ext_complaint, basic_type_complaint)
295 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
296 (unexpected_type_code_complaint)
297 (function_outside_compilation_unit_complaint): New functions.
298 (parse_symbol, parse_type, upgrade_type, parse_procedure)
299 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
300 Replace calls to complain() with, possibly indirect calls to
301 complaint().
302 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
303 Delete deprecated complaint structs.
304 (lookup__objc_class, lookup_child_selector): Replace complain()
305 with complaint().
306 * remote-vx.c (cant_contact_target): Delete deprecated complaint
307 struct.
308 (vx_lookup_symbol): Replace complain() with complaint().
309 * stabsread.c (invalid_cpp_abbrev_complaint)
310 (invalid_cpp_type_complaint, member_fn_complaint)
311 (const_vol_complaint, error_type_complaint)
312 (invalid_member_complaint, range_type_base_complaint)
313 (reg_value_complaint, vtbl_notfound_complaint)
314 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
315 (unresolved_sym_chain_complaint, stabs_general_complaint)
316 (lrs_general_complaint, multiply_defined_struct): Delete
317 deprecated complaint structs.
318 (invalid_cpp_abbrev_complaint, ref_value_complaint)
319 (stabs_general_complaint, lrs_general_complaint)
320 (msg_unknown_complaint): New functions.
321 (dbx_lookup_type, read_cfront_baseclasses)
322 (read_cfront_member_functions, resolve_symbol_reference)
323 (define_symbol, resolve_live_range, add_live_range, read_type)
324 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
325 (read_one_struct_field, read_baseclasses, read_tilde_fields)
326 (read_cfront_static_fields, attach_fields_to_type)
327 (complain_about_struct_wipeout, read_range_type)
328 (common_block_start, common_block_end, cleanup_undefined_types)
329 (scan_file_globals): Replace complain() with complaint().
330 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
331 Delete deprecated complaint struct declarations.
332 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
333 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
334 (bf_not_found_complaint, ef_complaint, eb_complaint)
335 (function_outside_compilation_unit_complaint): New functions.
336 (record_include_begin, record_include_end, enter_line_range)
337 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
338 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
339 complain() with complaint().
340
1a14e234
AC
3412002-12-16 Andrew Cagney <ac131313@redhat.com>
342
343 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
344 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
345 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
346 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
347 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
348 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
349 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
350 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
351 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
352 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
353 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
354 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
355 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
356 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
357 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
358 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
359 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
360 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
361 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
362 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
363 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
364 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
365 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
366 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
367 * config/m88k/xm-dgux.h: Delete.
368 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
369 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
370 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
371 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
372 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
373 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
374 * ch-valprint.c: Delete.
375
04e68871
DJ
3762002-12-15 Daniel Jacobowitz <drow@mvista.com>
377
378 * infrun.c (handle_inferior_event): Rearrange code to resume if
379 no catchpoint triggers for an event.
380
deb3b17b
DJ
3812002-12-15 Daniel Jacobowitz <drow@mvista.com>
382
383 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
384 and TARGET_WAITKIND_VFORKED cases.
385
675bf4cb
DJ
3862002-12-15 Daniel Jacobowitz <drow@mvista.com>
387
388 * infrun.c (handle_inferior_event): Assume that catchpoints
389 are not affected by DECR_PC_AFTER_BREAK.
390
81e56179
DJ
3912002-12-15 Daniel Jacobowitz <drow@mvista.com>
392
393 * target.c (update_current_target): Don't inherit DONT_USE.
394 * target.h (struct target_ops): Remove DONT_USE.
395 (target_next): Remove macro.
396
a3edc55b
MK
3972002-12-15 Mark Kettenis <kettenis@gnu.org>
398
399 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
400
b508a996
RE
4012002-12-14 Richard Earnshaw <rearnsha@arm.com>
402
403 * arm-tdep.c (convert_from_extended): New argument to hold the
404 type of floating point result we want to convert to. Make input
405 argument const. Fix all callers.
406 (convert_to_extended): Similarly.
407 (arm_extract_return_value): Now takes a regcache argument. Change
408 code to use regcache accessor functions. Correctly extract
409 smaller-than-word results on big-endian machines.
410 (arm_store_return_value): Now takes a regcache argument. Change
411 code to use regcache accessor functions. Correctly zero/sign extend
412 smaller than word results before storing into r0.
413 (arm_gdbarch_init): Register new-style extract_return_value and
414 store_return_value functions.
415
3197744f
MS
4162002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
417
418 * thread-db.c (thread_from_lwp): Uniquify error msg.
419 (lwp_from_thread): Ditto.
420 (check_event): Ditto.
421 (find_new_threads_callback): Ditto.
422 (thread_db_pid_to_str): Ditto.
423
6baff1d2
AC
4242002-12-13 Andrew Cagney <ac131313@redhat.com>
425
426 * frame.h (get_frame_saved_regs): Declare.
427 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
428 pointer.
429 * frame.c (get_frame_saved_regs): New function.
430 (frame_saved_regs_zalloc): Return the allocated saved_regs.
431
b87efeee
AC
4322002-12-13 Andrew Cagney <ac131313@redhat.com>
433
434 * frame.c (deprecated_update_current_frame_pc_hack): New
435 function.
436 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
437 * infrun.c (normal_stop): Use said function instead of directly
438 modifying the frame's PC.
439
3de2dc4f
AO
4402002-12-13 Alexandre Oliva <aoliva@redhat.com>
441
442 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
443
fe29b929
KB
4442002-12-13 Kevin Buettner <kevinb@redhat.com>
445
446 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
447 config/mips/tm-irix6.h (NUM_REGS): Delete.
448 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
449 (temp_saved_regs): Declare as a pointer rather than an array.
450 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
451 that ``temp_saved_regs'' has storage allocated to it and that
452 it's the correct size.
453
c04e0a08
JJ
4542002-12-13 Jeff Johnston <jjohnstn@redhat.com>
455
456 * defs.h (init_last_source_visited): New prototype.
457 (add_path): Ditto.
458 * source.c (add_path): New function that adds to a specified path.
459 (mod_path): Change to call add_path.
460 (init_last_source_visited): New function to allow interfaces to
461 initialize static variable: last_source_visited. Part of fix
462 for PR gdb/741.
463 * Makefile.in: Add support for mi/mi-cmd-env.c.
464
c689142b
AC
4652002-12-13 Andrew Cagney <ac131313@redhat.com>
466
467 * frame.h (frame_id_unwind): Declare.
468 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
469 id_unwind_cache.
470 (frame_id_unwind_ftype): Declare.
471 * frame.c (frame_id_unwind): New function.
472 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
473 (create_new_frame, get_prev_frame): Pass id_unwind to
474 set_unwind_by_pc.
475 (frame_saved_regs_id_unwind): New function.
476 (frame_saved_regs_id_unwind): New function.
477 * dummy-frame.c (dummy_frame_id_unwind): New function.
478 (struct dummy_frame): Add field id.
479 (generic_push_dummy_frame): Initialize `id'.
480 * dummy-frame.h (dummy_frame_id_unwind): Declare.
481
18ea5ba4
AC
4822002-12-13 Andrew Cagney <ac131313@redhat.com>
483
484 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
485 pass that to set_momentary_breakpoint. Move comments to where they
486 belong.
487 * frame.h (set_current_frame): Delete declaration.
488 * frame.c (set_current_frame): Delete function.
489
2c517d0e
AC
4902002-12-13 Andrew Cagney <ac131313@redhat.com>
491
492 * frame.c (frame_extra_info_zalloc): New function.
493 * frame.h (frame_extra_info_zalloc): Declare.
494
516b1f28
JB
4952002-12-13 Joel Brobecker <brobecker@gnat.com>
496
497 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
498 in the previous prototype change to set_momentary_breakpoint.
499
fbb265fc
DJ
5002002-12-12 Daniel Jacobowitz <drow@mvista.com>
501
502 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
503 and saw_child_exec.
504 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
505 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
506 (stop_stepping): Remove outdated check for child vfork events.
507
4fd7f624
AC
5082002-12-12 Andrew Cagney <ac131313@redhat.com>
509
510 * GDB 5.3 released from gdb_5_3-branch.
511
4c9ba7e0
DJ
5122002-12-11 Daniel Jacobowitz <drow@mvista.com>
513
514 * corelow.c (init_core_ops): Delete references to to_require_attach
515 and to_require_detach.
516 * exec.c (init_exec_ops): Likewise.
517 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
518 hppa_require_detach directly.
519 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
520 * inftarg.c (child_detach): Remove.
521 (child_detach_from_process): Rename to child_detach, remove
522 after_fork argument.
523 (child_attach): Remove.
524 (child_attach_to_process): Rename to child_attach, remove after_fork
525 argument.
526 (init_child_ops): Delete references to to_require_attach
527 and to_require_detach.
528 * infttrace.c (hppa_require_attach): Update comment.
529 * target.c (cleanup_target, update_current_target)
530 (init_dummy_target, setup_target_debug): Delete references to
531 to_require_attach and to_require_detach.
532 (find_default_require_detach, find_default_require_attach)
533 (debug_to_require_attach, debug_to_require_detach): Remove
534 functions.
535 * target.h (struct target_ops): Remove to_require_attach
536 and to_require_detach.
537 (target_require_attach, target_require_detach): Delete macros.
538 (find_default_require_detach, find_default_require_attach): Delete
539 prototypes.
540 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
541
0394eb2a
AC
5422002-12-11 Andrew Cagney <ac131313@redhat.com>
543
544 * frame.c (get_frame_extra_info): New function.
545 * frame.h (get_frame_extra_info): Declare.
546
818dd999
AC
5472002-12-11 Andrew Cagney <ac131313@redhat.com>
548
549 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
550 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
551 with `struct frame_id'.
552 (set_longjmp_resume_breakpoint): Ditto.
553 * infrun.c (handle_inferior_event): Update.
554 * breakpoint.c (watch_command_1, until_break_command): Update.
555 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
556 (handle_inferior_event, step_over_function): Update.
557 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
558 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
559 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
560 * infcmd.c (finish_command, run_stack_dummy): Update.
561
4d3c2250
KB
5622002-12-11 Kevin Buettner <kevinb@redhat.com>
563
564 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
565 (dwarf2_non_const_array_bound_ignored)
566 (dwarf2_missing_line_number_section)
567 (dwarf2_statement_list_fits_in_line_number_section)
568 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
569 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
570 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
571 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
572 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
573 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
574 (dwarf2_missing_member_fn_type_complaint)
575 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
576 (dwarf2_const_value_length_mismatch)
577 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
578 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
579 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
580 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
581 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
582 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
583 complaints using deprecated struct..
584 (dwarf2_non_const_array_bound_ignored_complaint)
585 (dwarf2_complex_location_expr_complaint)
586 (dwarf2_unsupported_at_frame_base_complaint)
587 (dwarf2_const_value_length_mismatch_complaint)
588 (dwarf2_macros_too_long_complaint)
589 (dwarf2_macro_malformed_definition_complaint)
590 (dwarf2_invalid_attrib_class_complaint): New functions.
591 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
592 (read_structure_scope, read_array_type, read_common_block)
593 (read_tag_pointer_type, read_base_type, read_partial_die)
594 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
595 (new_symbol, dwarf2_const_value, read_type_die)
596 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
597 (parse_macro_definition, dwarf_decode_macros): Replace calls to
598 complain() with, possibly indirect, calls to complaint().
599
95486978
AC
6002002-12-11 Andrew Cagney <cagney@redhat.com>
601
602 * frame.c (deprecated_get_frame_saved_regs): Rename
603 get_frame_saved_regs.
604 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
605 * sparc-tdep.c: Update.
606 * hppa-tdep.c: Update.
607 * h8500-tdep.c: Update.
608
321432c0
KB
6092002-12-11 Kevin Buettner <kevinb@redhat.com>
610
611 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
612 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
613 ``char *'' for return and parameter types.
614 * gdbarch.h, gdbarch.c: Regenerate.
615 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
616 return type from ``char *'' to ``const char *''.
617 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
618 const.
619
5a4d6ff4
MK
6202002-12-11 Mark Kettenis <kettenis@gnu.org>
621
622 * i386-tdep.c: Include "dummy-frame.h".
623 (i386_frame_chain, i386_frame_saved_pc): Replace
624 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
625 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
626
a5afb99f
AC
6272002-12-10 Andrew Cagney <cagney@redhat.com>
628
629 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
630 Change to a function with predicate.
631 * gdbarch.h, gdbarch.c: Re-generate.
632 * frame.c (get_prev_frame): Update. Test
633 DEPRECATED_INIT_FRAME_PC_P.
634 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
635 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
636 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
637 * alpha-tdep.c (alpha_gdbarch_init): Update.
638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
639 * mips-tdep.c (mips_gdbarch_init): Update.
640 * i386-interix-tdep.c (i386_interix_init_abi): Update.
641 * arm-tdep.c: Update comments.
642 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
643 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
644 * frv-tdep.c (frv_gdbarch_init): Ditto.
645 * x86-64-tdep.c (x86_64_init_abi): Ditto.
646 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
647 * s390-tdep.c (s390_gdbarch_init): Ditto.
648 * v850-tdep.c (v850_gdbarch_init): Ditto.
649 * vax-tdep.c (vax_gdbarch_init): Ditto.
650 * sh-tdep.c (sh_gdbarch_init): Ditto.
651 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
653 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
655 * i386-tdep.c (i386_gdbarch_init): Ditto.
656 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
657 * cris-tdep.c (cris_gdbarch_init): Ditto.
658 * avr-tdep.c (avr_gdbarch_init): Ditto.
659 * arm-tdep.c (arm_gdbarch_init): Ditto.
660 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
661 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
662
6604731b
DJ
6632002-12-10 Daniel Jacobowitz <drow@mvista.com>
664
665 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
666 CHILD_FOLLOW_FORK.
667 * hppah-nat.c (saved_vfork_pid): Add.
668 (child_post_follow_vfork): Remove.
669 (child_follow_fork): New function.
670 (child_wait): Call detach_breakpoints after receiving the child vfork.
671 Call child_resume directly instead of going through resume ().
672 Make sure we have the exec before reporting the vfork.
673 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
674 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
675 (follow_fork): New function. Call target_follow_fork.
676 (follow_inferior_reset_breakpoints): New function broken out from
677 old follow_inferior_fork.
678 (resume): Remove hack to follow exec after vfork.
679 * inftarg.c (child_post_follow_vfork): Remove.
680 (child_follow_fork): New function.
681 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
682 * target.c (cleanup_target): Replace to_post_follow_vfork with
683 to_follow_fork.
684 (update_current_target): Likewise.
685 (setup_target_debug): Likewise.
686 (debug_to_post_follow_vfork): Remove.
687 (debug_to_follow_fork): New function.
688 * target.h (struct target_ops): Replace to_post_folow_vfork with
689 to_follow_fork.
690 (child_post_follow_vfork): Remove prototype.
691 (child_follow_fork): Add prototype.
692 (target_post_follow_vfork): Remove macro.
693 (target_follow_fork): Add macro.
694
7d2830a3
DJ
6952002-12-10 Daniel Jacobowitz <drow@mvista.com>
696
697 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
698 (child_post_follow_vfork): Cancel pending exec event if we follow
699 the parent.
700 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
701 events have been processed. Return a fake TARGET_WAITKIND_EXECD
702 event at the following wait call if necessary.
703 * infrun.c (follow_vfork): Don't follow_exec here.
704 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
705 case about HP/UX 10.20. Remove code pushed down to
706 hppah-nat.c:child_wait.
707 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
708 vfork_in_flight is set.
709
7102002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
711
712 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
713 for the parent's fork event.
714 * infrun.c (handle_inferior_event): Only expect one fork event.
715 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
716 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
717
50631d4f
AC
7182002-12-10 Andrew Cagney <ac131313@redhat.com>
719
bc124bd3
AC
720 * PROBLEMS: Delete reference to PR gdb/725.
721
50631d4f
AC
722 * MAINTAINERS (gdb.c++): Add David Carlton.
723
808013d1
DC
7242002-12-09 David Carlton <carlton@math.stanford.edu>
725
726 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
727 * cli/cli-cmds.c: Ditto.
728
31deffe5
AC
7292002-12-09 Andrew Cagney <cagney@redhat.com>
730
6cbda714
AC
731 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
732 function address in <>.
31deffe5
AC
733 * gdbarch.c: Re-generate.
734
2692ddb3
DC
7352002-12-09 David Carlton <carlton@math.stanford.edu>
736
737 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
738
f3c39e76
DC
7392002-12-09 David Carlton <carlton@math.stanford.edu>
740
741 * linespec.c (symtab_from_filename): New function.
742 (decode_line_1): Move code into symtab_from_filename.
743
1b84163e
KB
7442002-12-09 Kevin Buettner <kevinb@redhat.com>
745
746 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
747
bdd78e62
AC
7482002-12-07 Andrew Cagney <ac131313@redhat.com>
749
750 * f-valprint.c (info_common_command): Use get_frame_pc.
751 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
752 * ax-gdb.c (agent_command): Ditto.
753 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
754 (rs6000_pop_frame): Ditto.
755 (rs6000_frameless_function_invocation): Ditto.
756 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
757 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
758 * macroscope.c (default_macro_scope): Ditto.
759 * stack.c (print_frame_info_base): Ditto.
760 (print_frame, frame_info, print_frame_label_vars): Ditto.
761 (return_command, func_command, get_frame_language): Ditto.
762 * infcmd.c (finish_command): Ditto.
763 * dummy-frame.c (cached_find_dummy_frame): Ditto.
764 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
765 (break_at_finish_at_depth_command_1): Ditto.
766 (break_at_finish_command_1): Ditto.
767 (until_break_command, get_catch_sals): Ditto.
768 * blockframe.c (func_frame_chain_valid): Ditto.
769 (frameless_look_for_prologue): Ditto.
770 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
771
408400e7
AC
7722002-12-08 Andrew Cagney <ac131313@redhat.com>
773
774 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
775 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
776
97f46953
AC
7772002-12-08 Andrew Cagney <ac131313@redhat.com>
778
779 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
780 to pure functions.
781 * gdbarch.h, gdbarch.c: Re-generate.
782 * frame.c (get_prev_frame): Explictly assign prev's pc with value
783 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
784
785 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
786 declaration to a function returning a CORE_ADDR.
787 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
788 * arch-utils.c (init_frame_pc_noop): Return the PC value.
789 (init_frame_pc_default): Ditto.
790 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
791 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
792 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
793 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
794 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
795 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
796
797 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
798 to init_frame_pc_noop.
799 (i386_interix_init_frame_pc): Delete function.
800 * z8k-tdep.c (init_frame_pc): Delete function.
801 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
802 (INIT_FRAME_PC_FIRST): Ditto.
803 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
804 (INIT_FRAME_PC_FIRST): Ditto.
805 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
806 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
807 init_frame_pc_noop.
808 (INIT_FRAME_PC_FIRST): Convert to an expression.
809 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
810
8b36eed8
AC
8112002-12-08 Andrew Cagney <ac131313@redhat.com>
812
813 * blockframe.c: Use get_frame_base instead of directly accessing
814 the `struct frame_info' member frame.
815 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
816 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
817
aeeccc89
EZ
8182002-12-08 Elena Zannoni <ezannoni@redhat.com>
819
820 * Makefile.in (readline_h): Define.
821 (completer.o): Depend on readline_h.
822 (corelow.o): Ditto.
823 (event-top.o): Ditto.
824 (exec.o): Ditto.
825 (solib.o): Ditto.
826 (source.o): Ditto.
827 (symfile.o): Ditto.
828 (symmisc.o): Ditto.
829 (top.o): Ditto.
830 (tracepoint.o): Ditto.
831 (utils.o): Ditto.
832 (cli-dump.o): Ditto.
833 (tui-hooks.o): Ditto.
834 (tuiWin.o): Ditto.
835
38017ce8
EZ
8362002-12-08 Elena Zannoni <ezannoni@redhat.com>
837
838 More cleanup from import of readline 4.3.
839 * completer.h (complete_line, readline_line_completion_function):
840 Update prototypes.
841 (line_completion_function): Removed, not used outside of completer.c.
842 * completer.c (readline_line_completion_function,
843 complete_function, line_completion_function): Use const for first
844 parameter.
845 (line_completion_function): Make static.
846 (filename_completer): filename_completion_function is now called
847 rl_filename_completion_function
848 * corelow.c: Include <readline/readline.h>.
849 * exec.c: Ditto.
850 * solib.c: Ditto.
851 * source.c: Ditto.
852 * symfile.c: Ditto.
853 * symmisc.c: Ditto.
854 * top.c (init_main): No need to coerce
855 readline_line_completion_function anymore.
856 * cli/cli-dump.c: Include <readline/readline.h>.
857
75e3c1f9
AC
8582002-12-08 Andrew Cagney <ac131313@redhat.com>
859
860 * stack.c (frame_info): Use get_prev_frame.
861 * blockframe.c (frame_address_in_block): Ditto.
862 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
863 (rs6000_frameless_function_invocation): Ditto.
864 (rs6000_frame_saved_pc): Ditto.
865 (rs6000_frame_chain): Ditto.
866 * arch-utils.c (init_frame_pc_default): Ditto.
867
0d2b8049
AC
8682002-12-08 Andrew Cagney <ac131313@redhat.com>
869
870 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
871 Delete redundant definition.
872
9255ee31
EZ
8732002-12-08 Elena Zannoni <ezannoni@redhat.com>
874
875 Import of readline 4.3:
876 * cli/cli-cmds.c: Include readline/tilde.h.
877 * cli/cli-setshow.c: Ditto.
878 * defs.h: Don't declare tilde_expand anymore, since readline
879 exports it.
880
3442dad6 8812002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
882
883 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
884 -Werror on this file.
885
52f87c51
AC
8862002-12-07 Andrew Cagney <ac131313@redhat.com>
887
888 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
889 the format name.
890 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
891 * gdbarch.c: Regenerate.
892
2ca6c561
AC
8932002-12-06 Andrew Cagney <ac131313@redhat.com>
894
895 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
896 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
897 provide a default value.
898 * gdbarch.h, gdbarch.c: Regenerate.
899 * frame.c (get_prev_frame): Update. Check
900 DEPRECATED_INIT_FRAME_PC_FIRST_P.
901 * s390-tdep.c (s390_gdbarch_init): Update.
902 * mips-tdep.c (mips_gdbarch_init): Update.
903 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
904 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
905 * alpha-tdep.c (alpha_gdbarch_init): Update.
906
e162d11b
EZ
9072002-12-06 Elena Zannoni <ezannoni@redhat.com>
908
909 * ia64-linux-nat.c: Include gdb_string.h.
910 * alpha-nat.c: Ditto.
2b298b5d
EZ
911 * ppc-linux-nat.c: Ditto.
912 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
913 Update dependencies.
e162d11b 914
aa0cd9c1
AC
9152002-12-05 Andrew Cagney <ac131313@redhat.com>
916
917 * gdbthread.h: Include "frame.h".
918 (struct thread_info): Replace step_frame_address with
919 step_frame_id.
920 * inferior.h: Include "frame.h".
921 (step_frame_id): Replace external variable step_frame_address.
922 * gdbthread.h (save_infrun_state): Replace step_frame_address
923 parameter with step_frame_id parameter.
924 (load_infrun_state): Ditto.
925 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
926 * infcmd.c (step_frame_id, step_1, step_once): Update.
927 * thread.c (load_infrun_state, save_infrun_state): Update.
928 * infrun.c (clear_proceed_status, save_inferior_status): Update.
929 (handle_inferior_event, step_over_function): Update.
930 (normal_stop, context_switch, restore_inferior_status): Update.
931 (struct inferior_status): Replace step_frame_address with
932 step_frame_id.
933
a9a9bd0f
DC
9342002-12-05 David Carlton <carlton@math.stanford.edu>
935
936 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
937 DW_TAG_member as well as a declaration as being a C++ static data
938 member.
939 (read_structure_scope): Combine tests for DW_TAG_member and
940 DW_TAG_variable.
941
614b3b14
DC
9422002-12-05 David Carlton <carlton@math.stanford.edu>
943
944 * linespec.c (decode_compound): New function.
945 (decode_line_1): Move code into decode_compound.
946
e4051eeb
DC
9472002-12-05 David Carlton <carlton@math.stanford.edu>
948
949 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
950 argument.
951 (lookup_symbol_aux): Do the 'field_of_this' check before checking
952 the static block. See PR gdb/804.
953
f61e8913
DC
9542002-12-05 David Carlton <carlton@math.stanford.edu>
955
956 * symtab.c (lookup_symbol_aux_block): New function.
957 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
958
1e9f55d0
AC
9592002-12-05 Andrew Cagney <ac131313@redhat.com>
960
961 * gdbarch.sh: Dump the predicate function and macro values.
962 (read): Print error on standard error.
963 * gdbarch.c: Regenerate.
964
d1973055
KB
9652002-12-04 Kevin Buettner <kevinb@redhat.com>
966
967 * Makefile.in (mips_tdep_h): Define.
968 (mips-tdep.o): Add mips_tdep_h to dependency list.
969 * mips-tdep.h: New file.
970 * mips-tdep.c (mips-tdep.h): Include.
971 (enum mips_abi): Move to mips-tdep.h.
972 (mips_abi): New function.
973
f1253c7b
DC
9742002-12-04 David Carlton <carlton@math.stanford.edu>
975
976 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
977
406bc4de
DC
9782002-12-04 David Carlton <carlton@math.stanford.edu>
979
980 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
981 function.
982 (lookup_symbol_aux_minsyms): New function.
983
2a3750c5
JB
9842002-12-04 J. Brobecker <brobecker@gnat.com>
985
986 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
987
961d8652
JB
9882002-12-04 J. Brobecker <brobecker@gnat.com>
989
990 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
991 which is an obsolete macro name.
992
38c52d5a
DJ
9932002-12-04 Daniel Jacobowitz <drow@mvista.com>
994
995 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
996 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
997
d8ef46f5
DJ
9982002-12-03 H.J. Lu (hjl@gnu.org)
999
1000 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1001 (create_breakpoints): Make sure the addr_string field is not
1002 NULL.
1003
02ae7771
AC
10042002-12-03 Andrew Cagney <ac131313@redhat.com>
1005
1006 * sparc-nat.c (fetch_inferior_registers)
1007 (store_inferior_registers): Add comment on problem of LWP vs
1008 threads.
1009
1010 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1011 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1012 (lin_lwp_store_registers): Remove.
1013 (init_lin_lwp_ops): Use fetch_inferior_registers
1014 and store_inferior_registers directly.
1015 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1016 (store_inferior_registers): Likewise.
1017 Fix PR gdb/725.
1018
7a424e99
AC
10192002-12-03 Andrew Cagney <ac131313@redhat.com>
1020
1021 * frame.h (get_frame_id): Convert to a function.
1022 (null_frame_id, frame_id_p): Declare.
1023 (frame_id_eq, frame_id_inner): Declare.
1024 (frame_id_build): New function.
1025 * frame.c (get_frame_id): Update. Use null_frame_id.
1026 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1027 frame_id_inner.
1028 (null_frame_id, frame_id_p): Define.
1029 (frame_id_eq, frame_id_inner): Define.
1030 (frame_id_build): New function.
1031 * varobj.c (varobj_create): Update.
1032 (varobj_update): Update.
1033 * valops.c (value_assign): Update.
1034 (new_root_variable): Update.
1035 * infrun.c (save_inferior_status): Update.
1036 * breakpoint.c (watch_command_1): Update.
1037
891c7f5f
JB
10382002-12-03 J. Brobecker <brobecker@gnat.com>
1039
1040 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1041 (SNAP2): Likewise.
1042
144da3c1
AC
10432002-12-03 Andrew Cagney <cagney@redhat.com>
1044
46248966
AC
1045 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1046 patch.
1047
144da3c1
AC
1048 * PROBLEMS: Mention PR gdb/725.
1049
03c6228e
AS
10502002-12-03 Andreas Schwab <schwab@suse.de>
1051
1052 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1053
36e53c63
AF
10542002-12-02 Adam Fedor <fedor@gnu.org>
1055 Klee Dienes <kdienes@apple.com>
1056
1057 * objc-lang.c (objc_printstr): Add width arg to match
1058 printstr prototype.
1059 (compare_selectors): Add 'const' to arg types.
1060 (compare_classes): Likewise.
1061 (find_imps): Cast msym pointer to avoid compiler warning.
1062 (print_object_command): Validate the address before
1063 passing it to the print routine.
1064 (find_objc_msgcall_submethod): Change function argument to
1065 return an int.
1066 * objc-lang.h: Add 'extern' to all function declarations.
1067 (value_nsstring): Add declaration.
1068
504d5c7e
JB
10692002-12-02 J. Brobecker <brobecker@gnat.com>
1070
1071 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1072 Fixes a build failure on HP/UX.
1073
1074 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1075 failure on HP/UX.
1076 (hpread_has_name): Advance declaration to avoid a compilation warning.
1077 (pst_syms_count): Add missing variable type. By change, the compiler
1078 was defaulting to int, which seems a good choice. Fixes a compilation
1079 warning.
1080 (pst_syms_size): Likewise.
1081
59623e27
JB
10822002-12-02 J. Brobecker <brobecker@gnat.com>
1083
1084 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1085 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1086 later to set the proper gdbarch methods depending on the osabi.
1087 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1088
a09a320d
JB
10892002-12-02 J. Brobecker <brobecker@gnat.com>
1090
1091 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1092 * osabi.c (gdb_osabi_name): Add strings images for the two new
1093 enum values.
1094 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1095
8a81a99e
AC
10962002-12-02 Andrew Cagney <ac131313@redhat.com>
1097
1098 * MAINTAINERS (Java): Global maintainers are responible for Java.
1099 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1100 part Java maintainers.
1101
7af35dad
JB
11022002-12-02 J. Brobecker <brobecker@gnat.com>
1103
1104 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1105 Fixes a compilation failure on AiX.
1106
f4ede9bc
JB
11072002-12-02 J. Brobecker <brobecker@gnat.com>
1108
1109 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1110 why aix-thread.o is not listed.
1111
ae45cd16
AC
11122002-12-01 Andrew Cagney <ac131313@redhat.com>
1113
1114 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1115 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1116 * gdbarch.h, gdbarch.c: Re-generate.
1117 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1118 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1119 * config/pa/tm-hppa.h, frame.h: Update.
1120 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1121 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1122 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1123 * cris-tdep.c, alpha-tdep.c: Update.
1124 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1125 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1126 (get_prev_frame): Ditto.
1127
020cc13c
AC
11282002-11-30 Andrew Cagney <cagney@redhat.com>
1129
1130 * exec.c (xfer_memory): Replace boolean with int.
1131 * p-exp.y: Use 0 instead of false.
1132 * corelow.c (gdb_check_format): Change return type to int from
1133 boolean.
1134 * utils.c: Don't include <curses.h> or <term.h> first.
1135
1d9b2aa8
SC
11362002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1137
1138 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1139 (m68hc11_register_byte): Remove.
1140 (m68hc11_gdbarch_init): Don't set the above.
1141
a193e397
AC
11422002-11-29 Andrew Cagney <cagney@redhat.com>
1143
1144 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1145 by calling get_selected_frame.
1146 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1147 set_current_frame, create_new_frame, select_frame and
1148 get_current_frame.
1149 * remote-e7000.c (e7000_start_remote): Ditto.
1150 * remote-mips.c (common_open): Ditto
1151 * remote-rdp.c (remote_rdp_open): Ditto.
1152
b5fc49aa
AS
11532002-11-29 Andreas Schwab <schwab@suse.de>
1154
1155 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1156 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1157 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1158 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1159 read_memory_unsigned_integer instead of read_memory_integer when
1160 dealing with addresses and instruction opcodes.
1161 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1162 (m68k_linux_frame_saved_pc): Likewise.
1163
6e7f8b9c
AC
11642002-11-29 Andrew Cagney <ac131313@redhat.com>
1165
1166 * stack.c (selected_frame, select_frame): Move from here ...
1167 * frame.c (selected_frame, select_frame): ... to here. Include
1168 "language.h".
1169 * Makefile.in (frame.o): Update dependencies.
1170 * frame.c (get_selected_frame): New function.
1171 * frame.h (get_selected_frame): Declare.
1172 (deprecated_selected_frame): Rename selected_frame.
1173 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1174 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1175 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1176 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1177 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1178 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1179 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1180 * z8k-tdep.c, cli/cli-cmds.c: Update.
1181
805e2818
AC
11822002-11-29 Andrew Cagney <ac131313@redhat.com>
1183
1184 * frame.h (get_selected_block): Add comments.
1185
1058bca7
AC
11862002-11-28 Andrew Cagney <ac131313@redhat.com>
1187
1188 * frame.c (pc_notcurrent): New function.
1189 (find_frame_sal): New function.
1190 * frame.h (find_frame_sal): Declare.
1191 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1192 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1193 find_pc_line.
1058bca7
AC
1194 (frame_info): Ditto.
1195 * ada-lang.c (find_printable_frame): Ditto.
1196
d92419e5
JB
11972002-11-28 J. Brobecker <brobecker@gnat.com>
1198
1199 * configure.in: Check that the pthdebug library is recent enough
1200 before enabling thread support on native AiX.
1201 * configure: Regenerate.
1202
1203 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1204 from the list of object files as it is now appended by configure
1205 if thread support is enabled.
1206 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1207 if thread support is enabled.
1208
8c69fc49
AC
12092002-11-28 Andrew Cagney <cagney@redhat.com>
1210
1211 * stack.c (get_selected_block): In-line get_current_block.
1212 * frame.h (get_current_block): Delete declaration.
1213 * blockframe.c (get_current_block): Delete function.
1214
07555a72
AC
12152002-11-28 Andrew Cagney <ac131313@redhat.com>
1216
1217 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1218 USE_GENERIC_DUMMY_FRAMES.
1219 * gdbarch.h, gdbarch.c: Regenerate.
1220 * valops.c, frame.c: Update.
1221 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1222 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1223 * config/pa/tm-hppa.h, blockframe.c: Update.
1224 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1225 * m68k-tdep.c, alpha-tdep.c: Ditto.
1226
1227 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1228 * mips-tdep.c: Ditto.
1229
b99fa2d2
AC
12302002-11-27 Andrew Cagney <ac131313@redhat.com>
1231
1232 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1233 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1234 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1235 * gdbarch.c, gdbarch.h: Re-generate.
1236 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1237 (CALL_DUMMY_LOCATION): Delete macro definition.
1238 (PC_IN_CALL_DUMMY): Delete macro definitions.
1239
1240 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1241 default is already generic_pc_in_call_dummy.
1242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1243 * v850-tdep.c (v850_gdbarch_init): Ditto.
1244 * sh-tdep.c (sh_gdbarch_init): Ditto.
1245 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1246 * mips-tdep.c (mips_gdbarch_init): Ditto.
1247 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1249 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1250 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1251 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1252 * avr-tdep.c (avr_gdbarch_init): Ditto.
1253
1254 * arm-tdep.c (arm_gdbarch_init): Do not set
1255 use_generic_dummy_frames, default is already 1.
1256 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1257 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1258 * v850-tdep.c (v850_gdbarch_init): Ditto.
1259 * sh-tdep.c (sh_gdbarch_init): Ditto.
1260 * s390-tdep.c (s390_gdbarch_init): Ditto.
1261 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1262 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1263 * mips-tdep.c (mips_gdbarch_init): Ditto.
1264 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1266 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1267 * i386-tdep.c (i386_gdbarch_init): Ditto.
1268 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1269 * frv-tdep.c (frv_gdbarch_init): Ditto.
1270 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1271 * cris-tdep.c (cris_gdbarch_init): Ditto.
1272 * avr-tdep.c (avr_gdbarch_init): Ditto.
1273
1274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1275 call_dummy_location, default is already AT_ENTRY_POINT.
1276 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1277 * v850-tdep.c (v850_gdbarch_init): Ditto.
1278 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1279 * sh-tdep.c (sh_gdbarch_init): Ditto.
1280 * s390-tdep.c (s390_gdbarch_init): Ditto.
1281 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1283 * mips-tdep.c (mips_gdbarch_init): Ditto.
1284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1286 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1287 * i386-tdep.c (i386_gdbarch_init): Ditto.
1288 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1289 * frv-tdep.c (frv_gdbarch_init): Ditto.
1290 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1291 * cris-tdep.c (cris_gdbarch_init): Ditto.
1292 * avr-tdep.c (avr_gdbarch_init): Ditto.
1293 * arm-tdep.c (arm_gdbarch_init): Ditto.
1294 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1295
abc0af47
AC
12962002-11-28 Andrew Cagney <cagney@redhat.com>
1297
1298 * frame.h: Update comments on set_current_frame, create_new_frame,
1299 flush_cached_frames, reinit_frame_cache, select_frame and
1300 selected_frame.
1301
ed5cedc5
AC
13022002-11-27 Andrew Cagney <cagney@redhat.com>
1303
1304 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1305 deprecated pc_in_call_dummy function.
1306 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1307 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1308 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1309 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1310 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1311
b2a1bd4f
MH
13122002-11-26 Martin M. Hunt <hunt@redhat.com>
1313
1314 * Makefile.in: Remove Tix dependencies.
1315 * acinclude.m4: Ditto.
1316 * aclocal.m4: Ditto.
1317 * configure.in: Ditto.
1318 * configure: Regenerated.
1319
f09cffaa
AC
13202002-11-26 Andrew Cagney <ac131313@redhat.com>
1321
1322 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1323 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1324 * gdbarch.c: Re-generate.
1325
e92b0cc9
AC
13262002-11-26 Andrew Cagney <ac131313@redhat.com>
1327
1328 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1329 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1330 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1331 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1332 pc_in_call_dummy_at_entry_point.
1333 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1334 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1335 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1336 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1337 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1338 pc_in_call_dummy_on_stack.
1339 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1340 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1341 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1342 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1343 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1344
b4b88177
AC
13452002-11-26 Andrew Cagney <ac131313@redhat.com>
1346
1347 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1348 pc_in_call_dummy_before_text_end
1349 (deprecated_pc_in_call_dummy_after_text_end): Rename
1350 pc_in_call_dummy_after_text_end.
1351 (deprecated_pc_in_call_dummy_on_stack): Rename
1352 pc_in_call_dummy_on_stack.
1353 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1354 pc_in_call_dummy_at_entry_point.
1355 * m68k-tdep.c (m68k_gdbarch_init): Update.
1356 * s390-tdep.c (s390_gdbarch_init): Update.
1357 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1358 * vax-tdep.c (vax_gdbarch_init): Update.
1359 * sparc-tdep.c (sparc_gdbarch_init): Update.
1360 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1361 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1362 * i386-tdep.c (i386_gdbarch_init): Update.
1363 * frv-tdep.c (frv_gdbarch_init): Update.
1364 * cris-tdep.c (cris_gdbarch_init): Update.
1365 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1366 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1367 (deprecated_pc_in_call_dummy_after_text_end)
1368 (deprecated_pc_in_call_dummy_on_stack)
1369 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1370 * alpha-tdep.c (alpha_gdbarch_init): Update.
1371
eb784848
DJ
13722002-11-25 Daniel Jacobowitz <drow@mvista.com>
1373
1374 * acconfig.h (HAVE_PREAD64): Add.
1375 * configure.in: Check for pread64.
1376 * config.in: Regenerated.
1377 * configure: Regenerated.
1378 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1379 * linux-proc.c (linux_proc_xfer_memory): New function.
1380 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1381
933c6fe4
DC
13822002-11-25 David Carlton <carlton@math.stanford.edu>
1383
1384 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1385 pdi's with no name.
1386
158a8022
AC
13872002-11-25 Andrew Cagney <ac131313@redhat.com>
1388
1389 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1390 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1391
481d0f41
JB
13922002-11-25 Jim Blandy <jimb@redhat.com>
1393
e8289572
JB
1394 * symfile.c (init_objfile_sect_indices): New function.
1395 (default_symfile_offsets): Move the section-index-initializing
1396 stuff into init_objfile_sect_indices, and call that.
1397
b29c9944
JB
1398 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1399 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1400
13de58df
JB
1401 * symfile.c (syms_from_objfile): Adjust indentation.
1402
481d0f41
JB
1403 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1404 || info_verbose isn't true.
1405
7d6a26a7
AC
14062002-11-24 Andrew Cagney <ac131313@redhat.com>
1407
1408 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1409 default to get_frame_base.
1410 * gdbarch.h, gdbarch.c: Regenerate.
1411 * arch-utils.c (default_frame_address): Delete function.
1412 * arch-utils.h (default_frame_address): Delete declaration
1413
6abe1021
PM
14142002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1415
1416 * varobj.c (find_frame_addr_in_frame_chain):
1417 Use get_frame_base instead of FRAME_FP,
1418 obvious fix.
1419
c193f6ac
AC
14202002-11-19 Andrew Cagney <ac131313@redhat.com>
1421
1422 * frame.h (FRAME_FP): Delete macro.
1423 (get_frame_base): New function declaration.
1424 * frame.c (get_frame_base): New function.
1425 (get_frame_id): Use ->frame.
1426 (frame_find_by_id): Rewrite to use get_frame_id.
1427 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1428 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1429 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1430 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1431 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1432 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1433 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1434
e5d2af14
AC
14352002-11-24 Andrew Cagney <ac131313@redhat.com>
1436
1437 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1438
931d12c6
AC
14392002-11-24 Andrew Cagney <ac131313@redhat.com>
1440
1441 * frame.c (set_unwind_by_pc): Revert change below, use
1442 PC_IN_CALL_DUMMY.
1443 (get_prev_frame): Ditto.
1444
5e0f933e
AC
14452002-11-24 Andrew Cagney <ac131313@redhat.com>
1446
1447 * dummy-frame.c (pc_in_dummy_frame): New function.
1448 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1449 (find_dummy_frame): Update comment.
1450 (generic_pop_current_frame): Use get_frame_type.
1451 * dummy-frame.h (pc_in_dummy_frame): Declare.
1452 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1453 (create_new_frame): Use pc_in_dummy_frame.
1454 (get_prev_frame): Use pc_in_dummy_frame.
1455 (frame_saved_regs_register_unwind): Use get_prev_frame.
1456 (deprecated_generic_get_saved_register): Use get_prev_frame.
1457
7d8547c9
AC
14582002-11-23 Andrew Cagney <ac131313@redhat.com>
1459
1460 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1461 from here ...
1462 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1463 (varobj_create): Note that frame ID should be used.
1464 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1465
0225421b
AC
14662002-11-23 Andrew Cagney <ac131313@redhat.com>
1467
1468 * breakpoint.c: Include "gdb_assert.h".
1469 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1470 not being used.
1471 * Makefile.in (breakpoint.o): Update dependencies.
1472 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1473 deprecated_frame_in_dummy.
1474 * stack.c (print_frame_info_base): Ditto.
1475 (frame_info): Ditto.
1476 (print_frame_info_base): Ditto. Delete dead code.
1477
32eeb91a
AS
14782002-11-23 Andreas Schwab <schwab@suse.de>
1479
1480 * Makefile.in (m68k_tdep_h): Define.
1481 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1482 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1483 * m68k-tdep.c: Move register number enum ...
1484 * m68k-tdep.h: ... to this new file and rename the constants from
1485 E_* to M68K_*. All uses changed.
1486 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1487 * abug-rom.c: Include "m68k-tdep.h". Use
1488 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1489 * cpu32bug-rom.c: Likewise.
1490 * dbug-rom.c: Likewise.
1491 * m68k-tdep.c: Likewise.
1492 * m68klinux-nat.c: Likewise.
1493 * remote-est.c: Likewise.
1494 * rom68k-rom.c: Likewise.
1495 * config/m68k/tm-linux.h: Likewise.
1496
9648bac8
AC
14972002-11-23 Andrew Cagney <ac131313@redhat.com>
1498
1499 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1500 dummy frame initialization code.
1501 * mips-tdep.c (mips_gdbarch_init): Ditto.
1502
91a175b3
CF
15032002-11-22 Christopher Faylor <cgf@redhat.com>
1504
1505 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1506 attach will hang.
1507
f4ded5b1
AC
15082002-11-22 Andrew Cagney <ac131313@redhat.com>
1509
1510 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1511 to default_frame_address.
1512 * gdbarch.h, gdbarch.c: Re-generate.
1513
1514 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1515 or frame_locals_address to default_frame_address.
1516 * m68k-tdep.c (m68k_gdbarch_init): Update.
1517 * i386-tdep.c (i386_gdbarch_init): Update.
1518 * frv-tdep.c (frv_gdbarch_init): Update.
1519 * sh-tdep.c (sh_gdbarch_init): Update.
1520 * v850-tdep.c (v850_gdbarch_init): Update.
1521 * sparc-tdep.c (sparc_gdbarch_init): Update.
1522 * mips-tdep.c (mips_gdbarch_init): Update.
1523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1524 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1526
1527 * cris-tdep.c (cris_frame_args_address): Delete function.
1528 (cris_frame_locals_address): Delete function.
1529 (cris_gdbarch_init): Do not set frame_args_address or
1530 frame_locals_address.
1531
f7c1e0f3
MS
15322002-11-22 Michael Snyder <msnyder@redhat.com>
1533
1534 * thread-db.c (thread_db_load): Tell the user what's going on
1535 if dlopen fails on libthread_db.
1536
03dac896
AS
15372002-11-23 Andreas Schwab <schwab@suse.de>
1538
1539 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1540 invariant return values.
1541
7a67d0fe
AS
15422002-11-22 Andreas Schwab <schwab@suse.de>
1543
1544 * valops.c (value_slice): Move declaration of `offset' to avoid
1545 warning.
1546
5633f842
CF
15472002-11-22 Christopher Faylor <cgf@redhat.com>
1548
1549 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1550 (struct so_stuff): Add end_addr field.
1551 (register_loaded_dll): Calculate and store end address of loaded dll.
1552 (solib_address): New function.
1553 (child_solib_loaded_library_pathname): Pass carefully constructed
1554 section info to safe_symbol_file_add rather than ignoring it.
1555 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1556 DLL is loaded.
1557 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1558 (child_create_inferior): Fix a compiler warning.
1559 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1560 (solib_address): Declare new function.
1561
d85fe7f7
AS
15622002-11-22 Andreas Schwab <schwab@suse.de>
1563
1564 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1565 and FPS registers.
1566
8308e54c
DJ
15672002-11-21 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * maint.c (_initialize_maint_cmds): Fix typo. From
1570 Francesco Potorti` <pot@gnu.org>.
1571
8997bd5e
AC
15722002-11-21 Andrew Cagney <cagney@redhat.com>
1573
1574 * mips-tdep.c (mips_dump_tdep): Delete references to
1575 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1576 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1577 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1578 * printcmd.c (build_address_symbolic): Delete calls to
1579 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1580 (address_info): Ditto.
1581 Fix PR gdb/773.
1582
4e87b832
KD
15832002-11-19 Klee Dienes <kdienes@apple.com>
1584 Adam Fedor <fedor@gnu.org>
1585
1586 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1587 the ability to explicitly specify the quote characters and word
1588 break characters; if NULL is specified for either, use the old
1589 behavior of using the characters used by the completer.
1590 (skip_chars): New function. Convenience wrapper around
1591 skip_quoted_chars to provide the original skip_chars behavior.
1592 * completer.h (skip_quoted_chars): Add prototype.
1593
9ba8d803
AC
15942002-11-19 Andrew Cagney <ac131313@redhat.com>
1595
1596 Problems reported by Paul Eggert.
1597 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1598
0a595803
AS
15992002-11-19 Andreas Schwab <schwab@suse.de>
1600
1601 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1602 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1603 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1604 (m68k_linux_frame_saved_pc): Move to ...
1605 * m68klinux-tdep.c: ... here. New file.
1606 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1607 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1608
e8afa4d7
AF
16092002-11-19 Adam Fedor <fedor@gnu.org>
1610
1611 * objc-exp.y: Revert to old skip_quoted usage.
1612
a76c9d72
AF
16132002-11-19 Adam Fedor <fedor@gnu.org>
1614
1615 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1616 (objc_lang_h): Define.
1617 (YYFILES): Add objc-exp.tab.c.
1618 (local-maintainer-clean): Remove objc-exp.tab.c.
1619 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1620
fd0e9d45
PM
16212002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1622
1623 * p-exp.y (typecast rule): Add automatic dereference of
1624 pascal classes if needed.
1625 (THIS): Set current_type.
1626 Automatically dereference pascal classes.
1627 (typebase rule): Add ^typebase recognition.
1628
82eeeb94
AF
16292002-11-18 Adam Fedor <fedor@gnu.org>
1630
1631 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1632 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1633 (op_name): Handle OP_OBJC_SELF.
1634 * Makefile.in (expprint.o): Add additional depends.
1635
646df18d
AF
16362002-11-18 Adam Fedor <fedor@gnu.org>
1637
1638 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1639 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1640 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1641 * objc-exp.y: Likewise.
1642
379b85df
AF
16432002-11-18 Adam Fedor <fedor@gnu.org>
1644
1645 * gdb/parser-defs.h: (struct objc_class_str): New structure
1646 for parsing ObjC classes.
1647
85cf597a
AC
16482002-11-18 Andrew Cagney <ac131313@redhat.com>
1649
1650 * stack.c (frame_relative_level): Copy function from here ...
1651 * frame.c (frame_relative_level): ...to here.
1652
5a203e44
AC
16532002-11-18 Andrew Cagney <ac131313@redhat.com>
1654
1655 * frame.h (enum frame_type): Define.
1656 (get_frame_type): Declare.
1657 (struct frame_info): Add field `type'. Delete field
1658 signal_handler_caller.
1659 (deprecated_set_frame_signal_handler_caller): Declare.
1660 * frame.c (get_frame_type): New function.
1661 (deprecated_set_frame_type): New function.
1662 (create_new_frame): Set the frame's type.
1663 (get_prev_frame): Similar.
1664 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1665 * s390-tdep.c: Ditto.
1666 * m68klinux-nat.c: Ditto.
1667 * ns32k-tdep.c: Ditto.
1668 * x86-64-linux-tdep.c: Ditto.
1669 * vax-tdep.c: Ditto.
1670 * rs6000-tdep.c: Ditto.
1671 * ppc-linux-tdep.c: Ditto.
1672 * i386-interix-tdep.c: Ditto.
1673 * mips-tdep.c: Ditto.
1674 * m68k-tdep.c: Ditto.
1675 * hppa-tdep.c: Ditto.
1676 * ia64-tdep.c: Ditto.
1677 * cris-tdep.c: Ditto.
1678 * arm-tdep.c: Ditto.
1679 * alpha-tdep.c: Ditto.
1680 * i386-tdep.c: Ditto.
1681 * stack.c: Ditto.
1682 * ada-lang.c: Ditto.
1683 * blockframe.c: Update.
1684 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1685 deprecated_set_frame_type instead of signal_handler_caller.
1686 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1687 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1688 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1689
bf4ae8b2
KD
16902002-11-18 Klee Dienes <kdienes@apple.com>
1691
1692 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1693
a672ef13
KD
16942002-11-18 Klee Dienes <kdienes@apple.com>
1695
1696 * buildsym.c (pop_context): Add comment.
1697
0c5e171a
KD
16982002-11-18 Klee Dienes <kdienes@apple.com>
1699
1700 * buildsym.h (pop_context): Convert to function, defined in
1701 buildsym.c.
1702 * buildsym.c: Include gdb_assert.h.
1703 (pop_context): Implement as C function. Add check for stack
1704 underflow.
1705 * dbxread.c (process_one_symbol): Complain and stop processing
1706 that symbol if we are already at the top of the context stack for
1707 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1708 when processing N_RBRAC.
1709
8a1f4c4c
DJ
17102002-11-16 Daniel Jacobowitz <drow@mvista.com>
1711
1712 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1713 define.
1714 (struct target_waitstatus): Add opaque definition.
1715 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1716 * exec.c (init_exec_ops): Likewise.
1717 * fork-child.c (clone_and_follow_inferior): Remove.
1718 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1719 * inferior.h (clone_and_follow_inferior): Remove prototype.
1720 * infrun.c (follow_fork_mode_both): Remove.
1721 (follow_fork_mode_kind_names): Remove commented out "both".
1722 (follow_inferior_fork): Remove follow_fork_mode_both support.
1723 * inftarg.c (child_clone_and_follow_inferior): Remove.
1724 (child_post_follow_inferior_by_clone): Remove.
1725 (init_child_ops): Don't set to_clone_and_follow_inferior
1726 or to_post_follow_inferior_by_clone.
1727 * target.c (default_clone_and_follow_inferior): Remove.
1728 (cleanup_target): Don't set to_clone_and_follow_inferior
1729 or to_post_follow_inferior_by_clone.
1730 (find_default_clone_and_follow_inferior): Remove.
1731 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1732 (debug_to_clone_and_follow_inferior): Remove.
1733 (debug_to_post_follow_inferior_by_clone): Remove.
1734 (setup_target_debug): Don't set to_clone_and_follow_inferior
1735 or to_post_follow_inferior_by_clone.
1736 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1737 and to_post_follow_inferior_by_clone.
1738 (child_clone_and_follow_inferior): Remove prototype.
1739 (child_post_follow_inferior_by_clone): Remove prototype.
1740 (target_clone_and_follow_inferior): Remove macro.
1741 (target_post_follow_inferior_by_clone): Remove macro.
1742 (find_default_clone_and_follow_inferior): Remove prototype.
1743
47932f85
DJ
17442002-11-16 Daniel Jacobowitz <drow@mvista.com>
1745
1746 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1747 inferior_has_vforked, and inferior_has_execd instead of
1748 target_has_forked, target_has_vforked, and target_has_execd.
1749 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1750 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1751 (CHILD_WAIT): Define.
1752 (child_wait): Add prototype.
1753 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1754 Add prototype.
1755 (hpux_has_vforked): Likewise, from child_has_vforked.
1756 (hpux_has_execd): Likewise, from child_has_execd.
1757 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1758 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1759 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1760 and hpux_has_syscall_event instead of the target hooks.
1761 * infrun.c (inferior_has_forked, inferior_has_vforked)
1762 (inferior_has_execd): New functions.
1763 * inftarg.c (not_same_real_pid): Remove.
1764 (child_wait): Remove references to not_same_real_pid,
1765 target_has_forked, target_has_vforked, target_has_execd,
1766 and target_has_syscall_event.
1767 (child_has_forked, child_has_vforked, child_has_execd)
1768 (child_has_syscall_event): Remove.
1769 (init_child_ops): Remove references to child_has_forked,
1770 child_has_vforked, child_has_execd, and child_has_syscall_event.
1771 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1772 (hpux_has_vforked): Likewise, from child_has_vforked.
1773 (hpux_has_execd): Likewise, from child_has_execd.
1774 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1775 * target.c (cleanup_target): Remove references to
1776 to_has_forked, to_has_vforked, to_has_execd, and
1777 to_has_syscall_event.
1778 (update_current_target): Likewise.
1779 (setup_target_debug): Likewise.
1780 (debug_to_has_forked): Remove.
1781 (debug_to_has_vforked): Remove.
1782 (debug_to_has_execd): Remove.
1783 (debug_to_has_syscall_event): Remove.
1784 * target.h (struct target_ops): Remove to_has_forked.
1785 to_has_vforked, to_has_execd, and to_has_syscall_event.
1786 (child_has_forked, child_has_vforked, child_has_execd)
1787 (child_has_syscall_event): Remove prototypes.
1788 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1789 prototypes.
1790 (target_has_forked, target_has_vforked, target_has_execd)
1791 (target_has_syscall_event): Remove macros.
1792
4088142a
DJ
17932002-11-16 Daniel Jacobowitz <drow@mvista.com>
1794
1795 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1796 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1797 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1798 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1799 * target.c (cleanup_target): Remove reference to
1800 to_can_follow_vfork_prior_to_exec.
1801 (update_current_target): Likewise.
1802 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1803 (setup_target_debug): Remove reference to
1804 to_can_follow_vfork_prior_to_exec.
1805 * target.h (struct target_ops): Remove
1806 to_can_follow_vfork_prior_to_exec.
1807 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1808 (target_can_follow_vfork_prior_to_exec): Remove definition.
1809 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1810 define.
1811 * infrun.c (follow_vfork_when_exec): Remove.
1812 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1813 (follow_exec): Likewise.
1814 (handle_inferior_event): Likewise.
1815 (keep_going): Likewise.
1816
18cde8d5
AC
18172002-11-15 Andrew Cagney <cagney@redhat.com>
1818
1819 * frame.c (generic_unwind_get_saved_register): Make static.
1820 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1821 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1822 defaults to generic_unwind_get_saved_register.
1823 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1824 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1825 * frv-tdep.c (frv_gdbarch_init): Ditto.
1826 * i386-tdep.c (i386_gdbarch_init): Ditto.
1827 * s390-tdep.c (s390_gdbarch_init): Ditto.
1828 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1829 * v850-tdep.c (v850_gdbarch_init): Ditto.
1830 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1832 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1833
a6b063af
AC
18342002-11-15 Andrew Cagney <cagney@redhat.com>
1835
1836 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1837 i386-tdep.c.
1838
f407986f
AC
18392002-11-15 Andrew Cagney <cagney@redhat.com>
1840
1841 * frame.h (sigtramp_saved_pc): Delete declaration.
1842 * blockframe.c (sigtramp_saved_pc): Delete function.
1843 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1844 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1845 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1846 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1847
f18c5a73
AC
18482002-11-15 Andrew Cagney <ac131313@redhat.com>
1849
1850 * frame.c (frame_pc_unwind): New function.
1851 (frame_saved_regs_pc_unwind): New function.
1852 (frame_register_unwind): Pass unwind_cache instead of
1853 register_unwind_cache.
1854 (set_unwind_by_pc): Add unwind_pc parameter, set.
1855 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1856 (get_prev_frame): Ditto.
1857 * frame.h (frame_pc_unwind_ftype): Declare.
1858 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1859 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1860 (frame_pc_unwind): Declare.
1861 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1862 (struct dummy_frame): Add comment mentioning that values are for
1863 previous frame.
1864 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1865 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1866 (generic_file_frame_chain_valid): Ditto.
1867 * stack.c (frame_info): Ditto.
1868
d9285969 18692002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1870
1871 * linespec.c (locate_first_half): New function.
1872 (decode_line_1): Move code into locate_first_half.
1873
d741b867
AC
18742002-11-15 Andrew Cagney <ac131313@redhat.com>
1875
1876 * complaints.h: Add comment explaining how to eliminate a
1877 deprecated_complain call.
24382c5c 1878 * complaints.h: Fix spelling errors.
d741b867 1879
82d03c99
DC
18802002-11-15 David Carlton <carlton@math.stanford.edu>
1881
1882 * printcmd.c: Remove #include "disasm.h".
1883
c97eb5d9
AC
18842002-11-14 Andrew Cagney <ac131313@redhat.com>
1885
1886 * frame.h: Move the most relevant interface functions to the start
1887 of the file.
1888
524d7c18
AC
18892002-11-14 Andrew Cagney <ac131313@redhat.com>
1890
1891 * regcache.h (deprecated_registers): Rename registers.
1892 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1893 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1894 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1895 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1896 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1897 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1898 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1899 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1900 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1901 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1902 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1903 * v850ice.c: Update.
1904
6411e720
AC
1905Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1906
1907 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1908 NULL buffer.
1909
73937e03
AC
19102002-11-13 Andrew Cagney <cagney@redhat.com>
1911
1912 * regcache.h (deprecated_read_register_bytes): Rename
1913 read_register_bytes.
1914 (deprecated_write_register_bytes): Rename write_register_bytes.
1915 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1916 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1917 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1918 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1919 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1920 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1921 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1922 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1923 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1924 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1925 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1926 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1927 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1928 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1929
fb0cd46e
JB
19302002-11-13 Jim Blandy <jimb@redhat.com>
1931
1932 * findvar.c (read_var_value): Doc fix.
1933
2d28509a
AC
19342002-11-13 Andrew Cagney <cagney@redhat.com>
1935
1936 * regcache.c (struct regcache): Replace passthough_p with
1937 readonly_p.
1938 (regcache_xmalloc): Initialize readonly_p.
1939 (build_regcache): Initialize readonly_p.
1940 (regcache_save): New function.
1941 (regcache_restore): New function.
1942 (regcache_cpy): Re-implement using regcache_save and
1943 regcache_restore.
1944 (regcache_raw_read): Update.
1945 (regcache_cooked_read): When a read-only cache, checked for cached
1946 pseudo register values.
1947 (regcache_raw_write): Assert that the cache is not read-only.
1948 Remove code handling a non-passthrough cache.
1949 * regcache.h (regcache_save): Declare.
1950 (regcache_restore): Declare.
1951
067df2e5
AC
19522002-11-13 Andrew Cagney <cagney@redhat.com>
1953
1954 * regcache.c (struct regcache_descr): Add fields
1955 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1956 (init_legacy_regcache_descr): Compute the size of a cooked
1957 register cache and then assign that to sizeof_raw_registers. Set
1958 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1959 (init_legacy_regcache_descr): Ditto.
1960
51b1fe4e
AC
19612002-11-13 Andrew Cagney <cagney@redhat.com>
1962
1963 * regcache.c (register_buffer): Move to near start of file, update
1964 description.
1965 (regcache_raw_read): Use.
1966 (regcache_raw_write): Use.
1967 (struct regcache): Rename raw_registers to registers and
1968 raw_register_valid_p to register_valid_p.
1969 (regcache_xmalloc): Update.
1970 (regcache_xfree): Update.
1971 (register_buffer): Update.
1972 (regcache_cpy): Update.
1973 (regcache_cpy_no_passthrough): Update.
1974 (regcache_valid_p): Update.
1975 (deprecated_grub_regcache_for_registers): Update.
1976 (deprecated_grub_regcache_for_register_valid): Update.
1977 (set_register_cached): Update.
1978 (regcache_raw_write): Update.
1979
80b4c677
PM
19802002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1981
1982 * p-exp.y (name_not_typename): Use copy_name to
1983 set current_type variable for fields of THIS.
1984
0f3fafde
DJ
19852002-11-12 Daniel Jacobowitz <drow@mvista.com>
1986
1987 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1988 * monitor.c (init_base_monitor_ops): Likewise.
1989 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1990 * remote-array.c (init_array_ops): Likewise.
1991 * remote-e7000.c (init_e7000_ops): Likewise.
1992 * remote-es.c (init_es1800_ops): Likewise.
1993 (init_es1800_child_ops): Likewise.
1994 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1995 * remote-sim.c (init_gdbsim_ops): Likewise.
1996 * remote-st.c (init_st2000_ops): Likewise.
1997 * sol-thread.c (init_sol_core_ops): Likewise.
1998 (init_sol_thread_ops): Likewise.
1999 * v850ice.c (init_850ice_ops): Likewise.
2000 * win32-nat.c (init_child_ops): Likewise.
2001 * wince.c (init_child_ops): Likewise.
2002
82c0260e
AC
20032002-11-12 Andrew Cagney <ac131313@redhat.com>
2004
2005 * utils.c (gdb_realpath): Make rp a constant pointer.
2006
70d35819
AC
20072002-11-12 Andrew Cagney <ac131313@redhat.com>
2008
2009 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2010 a constant buffer; cannonicalize_file_name(); realpath() with a
2011 pathconf() defined buffer, xstrdup().
2012
9835a8b0
AC
20132002-11-12 Andrew Cagney <ac131313@redhat.com>
2014
2015 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2016 to hang2.C; hang3.c to hang3.C.
2017
3f47be5c
EZ
20182002-11-11 Elena Zannoni <ezannoni@redhat.com>
2019
2020 * findvar.c (read_var_value): Reenable TLS code.
2021
20222002-11-11 Elena Zannoni <ezannoni@redhat.com>
2023 Jim Blandy <jimb@redhat.com>
2024
2025 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2026 * target.c (update_current_target): Add
2027 to_get_thread_local_address.
2028 * target.h (to_get_thread_local_address): Export.
2029 (target_get_thread_local_address): Define.
2030 (target_get_thread_local_address_p): Define.
2031 * thread-db.c: Include solib-svr4.h.
2032 (td_thr_tls_get_addr_p): Define.
2033 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2034 (thread_db_get_thread_local_address): New function.
2035 (init_thread_db_ops): Initialize to_get_thread_local_address.
2036 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2037 * configure: Regenerate.
2038 * config.in: Regenerate.
2039
636b1a6d
DC
20402002-11-11 David Carlton <carlton@math.stanford.edu>
2041
2042 * linespec.c (set_flags): New function.
2043 (decode_line_1): Move code into set_flags.
2044
44fe14ab
DC
20452002-11-11 David Carlton <carlton@math.stanford.edu>
2046
2047 * linespec.c (decode_line_1): Move chunks of code to separate
2048 functions.
2049 (initialize_defaults): New function.
2050 (decode_indirect): New function.
2051
e6f181f5
AC
20522002-11-11 Andrew Cagney <ac131313@redhat.com>
2053
8971b011
AC
2054 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2055 instead of void_code_ptr.
2056 (sigtramp_saved_pc): Ditto.
2057
e6f181f5
AC
2058 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2059 i386_fp_regnum_p.
2060
01ad7f36
DJ
20612002-11-10 Daniel Jacobowitz <drow@mvista.com>
2062
2063 * gdbtypes.h (struct main_type): Move artificial flag out of
2064 loc. New member of ``struct field'' named static_kind. Reduce
2065 overloaded meaning of bitsize.
2066 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2067 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2068 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2069
2070 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2071 new fields.
2072 (template_to_fixed_record_type, template_to_static_fixed_type)
2073 (to_record_with_fixed_variant_part): Likewise.
2074 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2075 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2076 * dwarfread.c (struct_type, enum_type): Likewise.
2077 * hpread.c (hpread_read_enum_type)
2078 (hpread_read_function_type, hpread_read_doc_function_type)
2079 (hpread_read_struct_type): Likewise.
2080 * mdebugread.c (parse_symbol): Likewise.
2081
bf1e52be
AC
20822002-11-10 Andrew Cagney <ac131313@redhat.com>
2083
2084 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2085 * stack.c (print_frame_info_base): Update.
2086 (print_frame_info_base, frame_info): Update.
2087 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2088 (sparc_frame_saved_pc): Update.
2089 * ada-lang.c (find_printable_frame): Update.
2090 * breakpoint.c (deprecated_frame_in_dummy): Update.
2091
ce556f85
MK
20922002-11-09 Mark Kettenis <kettenis@gnu.org>
2093
2094 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2095 defined.
2096 (regmap): Extend to cover all registers.
2097 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2098 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2099 definitions.
2100 (fetch_register, sore_register): Simplify.
2101 (old_fetch_inferior_registers, old_store_inferior_registers):
2102 Remove functions.
2103 (cannot_fetch_register, cannot_store_register): Change
2104 implementation to use regmap array to decide which registers
2105 cannot be fetched/stored. This removes $orig_eax from the
2106 registers that cannot be fetched/stored.
2107 (fetch_inferior_registers): Call fetch_register directly instead
2108 of calling old_fetch_inferior_registers.
2109 (store_inferior_registers): Call store_register directly instead
2110 of calling old_store_inferior_registers.
2111 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2112 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2113 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2114
932bb524
KD
21152002-11-09 Klee Dienes <kdienes@apple.com>
2116
2117 * i387-tdep.c (i387_supply_register): When called with NULL as a
2118 buffer, mark the register as not provided (to mirror the behavior
2119 of supply_register).
2120 (i387_supply_fxsave): Ditto.
2121 (i387_supply_fsave): Ditto (inherits the behavior from
2122 i387_supply_register).
2123
ebe68b27
KD
21242002-11-09 Klee Dienes <kdienes@apple.com>
2125
2126 * blockframe.c (sigtramp_saved_pc): Use
2127 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2128 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2129 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2130
15220c65
AC
21312002-11-09 Andrew Cagney <ac131313@redhat.com>
2132
2133 * frame.c (get_prev_frame): Test prev_p to identify a previously
2134 unwound frame. Initialize prev_p.
2135 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2136 comment.
2137
95adb866
AC
21382002-11-09 Andrew Cagney <ac131313@redhat.com>
2139
2140 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2141 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2142 more comments. Zap dead code.
2143
e71ecd70
MK
21442002-11-09 Mark Kettenis <kettenis@gnu.org>
2145
2146 * infcmd.c (print_vector_info, print_float_info): Move code that
2147 checks whether the target has any registers and whether there is a
2148 selected frame up, such that it is also used if a target provides
2149 multi-arch definitions of these functions.
2150
c525330d
AC
21512002-11-08 Andrew Cagney <ac131313@redhat.com>
2152
72bdd927
AC
2153 * Makefile.in (DESTDIR): Define.
2154 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2155 prefix.
2156
c525330d
AC
2157 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2158 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2159
38c968cf
AC
21602002-11-08 Andrew Cagney <ac131313@redhat.com>
2161
2162 * i386-linux-tdep.c: Include "reggroups.h".
2163 (i386_linux_register_reggroup_p): New function.
2164 (i386_linux_init_abi): Set register_reggroup_p to
2165 i386_linux_register_reggroup_p.
2166 * i386-tdep.h (i386_register_reggroup_p): Declare.
2167 * i386-tdep.c: Include "reggroups.h".
2168 (i386_init_reggroups): New function.
2169 (i386_add_reggroups): New function.
2170 (i386_register_reggroup_p): New function.
2171 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2172 (_initialize_i386_tdep): Call i386_init_reggroups.
2173 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2174 specific reggroups.
2175
19e33363
MK
21762002-11-09 Mark Kettenis <kettenis@gnu.org>
2177
371a6e84
MK
2178 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2179 request that's available in *BSD.
2180
94ba925a
MK
2181 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2182
19e33363
MK
2183 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2184 FDOFF_REGNUM.
2185
8779790c
AC
21862002-11-08 Andrew Cagney <ac131313@redhat.com>
2187
2188 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2189 * dummy-frame.c (find_dummy_frame): Rename
2190 generic_find_dummy_frame, make static. Return the dummy frame
2191 instead of the regcache.
2192 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2193 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2194 (dummy_frame_register_unwind): Rename
2195 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2196 * dummy-frame.h (dummy_frame_register_unwind): Rename
2197 generic_call_dummy_register_unwind.
2198
8674b74f
MK
21992002-11-08 Mark Kettenis <kettenis@gnu.org>
2200
2201 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2202 except the inclusion of "i386/tm-i386.h", to...
2203 * config/i386/nm-i386v42mp.h: ...here.
2204 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2205
4c1e7e9d
AC
22062002-11-08 Andrew Cagney <ac131313@redhat.com>
2207
2208 * Makefile.in (frame.o): Update dependencies.
2209 * blockframe.c (current_frame, frame_obstack_alloc)
2210 (frame_saved_regs_zalloc, get_current_frame)
2211 (set_current_frame, create_new_frame)
2212 (set_unwind_by_pc, get_next_frame)
2213 (flush_cached_frames, reinit_frame_cache)
2214 (frame_saved_regs_register_unwind)
2215 (deprecated_generic_get_saved_register)
2216 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2217 (_initialize_blockframe): Move frame code from here...
2218 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2219 "annotate.h" and "dummy-frame.h".
2220 (_initialize_frame): New function.
2221
921e78cf
JB
22222002-11-08 Jim Blandy <jimb@redhat.com>
2223
2224 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2225 when we finish a function a context.
2226 * buildsym.h (outermost_context_p): New macro.
2227 (Bug analyzed by David Edelsohn.)
2228
9c1412c1
AC
22292002-11-08 Andrew Cagney <ac131313@redhat.com>
2230
2231 * blockframe.c: Include "dummy-frame.h".
2232 (struct dummy_frame, dummy_frame_stack)
2233 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2234 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2235 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2236 (generic_save_call_dummy_addr, generic_pop_current_frame)
2237 (generic_pop_dummy_frame, generic_fix_call_dummy)
2238 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2239 dummy frame code from here...
2240 * dummy-frame.c: ...to here. New file.
2241 * dummy-frame.h: New file.
2242 (generic_call_dummy_register_unwind): Declare.
2243 (generic_find_dummy_frame): Declare.
2244 * Makefile.in (SFILES): Add dummy-frame.c.
2245 (dummy-frame.o): Specify dependencies.
2246 (dummy_frame_h): Define.
2247 (COMMON_OBS): Add dummy-frame.o.
2248 (blockframe.o): Update dependencies.
2249
208d8187
JB
22502002-11-08 Jim Blandy <jimb@redhat.com>
2251
2252 * dwarf2read.c (read_func_scope): Restore local_symbols and
2253 param_symbols after we finish the function context. (Based on a
2254 patch from David Edelsohn.)
2255
413dad4d
DC
22562002-11-08 David Carlton <carlton@math.stanford.edu>
2257
2258 * linespec.c (symbol_found): New function.
2259 (minsym_found): New function.
2260 (decode_line_1): Separate out some code into separate functions.
2261
5512c44a
JB
22622002-11-08 Joel Brobecker <brobecker@gnat.com>
2263
2264 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2265 the benefit of the interix target.
2266 * i386-tdep.h (i386_frameless_signal_p): Declare.
2267
1b33ef47
AC
22682002-11-08 Andrew Cagney <ac131313@redhat.com>
2269
2270 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2271 declaration that snuck in from change below.
2272
23a34459
AC
22732002-11-06 Andrew Cagney <cagney@redhat.com>
2274
2275 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2276 all callers.
2277 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2278 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2279 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2280 (i386_mxcsr_regnum_p): new function. Use instead of
2281 MXCSR_REGNUM_P.
2282 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2283 (i386_sse_regnum_p): Declare.
2284 (i386_mxcsr_regnum_p): Declare.
2285 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2286 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2287 (IS_FP_REGNUM): Update definition.
2288 (IS_FPU_CTRL_REGNUM): Update definition..
2289 (IS_SSE_REGNUM): Update definition..
2290 * i386v-nat.c (register_u_addr): Update.
2291 * go32-nat.c (fetch_register): Update.
2292 (store_register): Update.
2293
d709c020
JB
22942002-11-07 Joel Brobecker <brobecker@gnat.com>
2295
2296 Preparation work to convert the hppa targets to multiarch partial.
2297
2298 * hppa-tdep.c: Add new functions replacing macro bodies from
2299 config/pa/tm-hppa.h. These function will be used to initialize
2300 the gdbarch structure. Import some comments from tm-hppa.h,
2301 and place them where appropriate, to avoid loosing them when
2302 we cleanup this file.
2303 (hppa_reg_struct_has_addr): New function.
2304 (hppa_inner_than): New function.
2305 (hppa_stack_align): New function.
2306 (hppa_pc_requires_run_before_use): New function.
2307 (hppa_instruction_nullified): New function.
2308 (hppa_register_byte): New function.
2309 (hppa_register_virtual_type): New function.
2310 (hppa_store_struct_return): New function.
2311 (hppa_cannot_store_register): New function.
2312 (hppa_frame_args_address): New function.
2313 (hppa_frame_locals_address): New function.
2314 (hppa_smash_text_address): New function.
2315 (hppa_coerce_float_to_double): New function. Requires the inclusion
2316 of "language.h".
2317
2318 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2319
2320 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2321 gdbarch-eligible macro to a call to the new associated function
2322 created in hppa-tdep.c.
2323 (INNER_THAN): Likewise.
2324 (STACK_ALIGN): Likewise.
2325 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2326 (INSTRUCTION_NULLIFIED): Likewise.
2327 (REGISTER_BYTE): Likewise.
2328 (REGISTER_VIRTUAL_TYPE): Likewise.
2329 (STORE_STRUCT_RETURN): Likewise.
2330 (CANNOT_STORE_REGISTER): Likewise.
2331 (FRAME_ARGS_ADDRESS): Likewise.
2332 (FRAME_LOCALS_ADDRESS): Likewise.
2333 (SMASH_TEXT_ADDRESS): Likewise.
2334 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2335 (ABOUT_TO_RETURN): Delete, as no longer used.
2336
83c31e7d
FN
23372002-11-07 Fernando Nasser <fnasser@redhat.com>
2338
2339 * printcmd.c (disassemble_command): Remove obsolete function.
2340 (_initialize_printcmd): Do not create disassemble command here.
2341 * cli/cli-cmds.c (disassemble_command): New function. Implements
2342 disassemble command.
2343 (init_cli_cmds): Create disassemble command here instead.
2344
0ec30a36
AC
23452002-11-07 Andrew Cagney <ac131313@redhat.com>
2346
2347 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2348
e600bd34
AC
23492002-11-07 Andrew Cagney <ac131313@redhat.com>
2350
2351 * regcache.h (regcache_cooked_read_using_offset_hack)
2352 (regcache_cooked_write_using_offset_hack): Delete declarations.
2353 (register_changed): Delete declaration.
2354 * regcache.c (regcache_cooked_read_using_offset_hack)
2355 (regcache_cooked_write_using_offset_hack): Delete functions.
2356 (cooked_xfer_using_offset_hack): Delete function.
2357 (register_changed): Delete function.
2358
568f8739
JB
23592002-11-07 Jim Blandy <jimb@redhat.com>
2360
2361 * macroscope.c: #include "complaints.h".
2362 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2363 but not in the macro table.
2364 * Makefile.in (macroscope.o): Record dependency.
2365
b0718b7b
JB
23662002-11-07 Joel Brobecker <brobecker@gnat.com>
2367
2368 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2369
2b9e5f3f
AC
23702002-11-07 Andrew Cagney <ac131313@redhat.com>
2371
2372 * regcache.c (deprecated_registers_fetched): Update.
2373 * regcache.h (deprecated_registers_fetched): Rename
2374 registers_fetched.
2375 * remote-vxsparc.c (vx_read_register): Update.
2376 * remote-vxmips.c (vx_read_register): Update.
2377 * remote-vx68.c (vx_read_register): Update.
2378 * irix5-nat.c (fetch_core_registers): Update.
2379 * mipsm3-nat.c (fetch_inferior_registers): Update.
2380 * sun3-nat.c (fetch_inferior_registers): Update.
2381 * symm-nat.c (fetch_inferior_registers): Update.
2382 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2383 (fetch_core_registers): Update.
2384 (fetch_kcore_registers): Update.
2385 * mips-nat.c (fetch_inferior_registers): Update.
2386 * corelow.c (get_core_registers): Update.
2387 * a68v-nat.c (fetch_inferior_registers): Update.
2388
e6e68f1f
JB
23892002-11-06 Joel Brobecker <brobecker@gnat.com>
2390
2391 Put in place the framework necessary for multiarching the hppa targets.
2392 * hppa-tdep.c (hppa_gdbarch_init): New function.
2393 (hppa_dump_tdep): New function.
2394 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2395 tdep structure dumper.
2396 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2397 until the multi-arching conversion has partially been completed.
2398
492254e9
AC
23992002-11-06 Andrew Cagney <ac131313@redhat.com>
2400
2401 * valops.c (value_assign): Merge lval_register case into
2402 lval_reg_frame_relative. Use frame_register and
2403 regcache_cooked_write instead of get_saved_register and
2404 write_register_bytes. After flushing the register cache, try to
2405 re-select the selected frame.
2406
8262ee23
AC
24072002-11-06 Andrew Cagney <ac131313@redhat.com>
2408
2409 * regcache.h (deprecated_register_valid): Rename register_valid.
2410 * regcache.c: Update.
2411 * ia64-aix-nat.c: Update.
2412 * i386gnu-nat.c: Update.
2413 * alpha-nat.c: Update.
2414 * sparc-nat.c: Update.
2415 * lynx-nat.c: Update.
2416 * remote-mips.c: Update.
2417
4facf7e8
JB
24182002-11-06 Joel Brobecker <brobecker@gnat.com>
2419
2420 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2421 to end of file, to be more consistent with the pratice followed
2422 by other targets.
2423
f9418c0f
AC
24242002-11-06 Andrew Cagney <ac131313@redhat.com>
2425
2426 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2427 (print_float_info): Print registers in float_reggroup.
2428 (print_vector_info): Print registers in vector_reggroup.
2429 (default_print_registers_info): When all, print registers in
2430 all_reggroup. Otherwize, print registers in general_reggroup.
2431 (registers_info): Rewrite. Add support for register groups.
2432 Eliminate a goto.
2433
3fe235a7
EZ
24342002-11-06 Elena Zannoni <ezannoni@redhat.com>
2435
2436 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2437 ages.
2438 (symtab_symbol_info): Remove eons old ifdeffed out code.
2439 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2440 command.
2441
ef944135
TR
24422002-11-06 Theodore A. Roth <troth@openavr.org>
2443
2444 * c-exp.y: Add missing semi-colons.
2445 * f-exp.y: Add missing semi-colons.
2446 * m2-exp.y: Add missing semi-colons.
2447 * p-exp.y: Add missing semi-colons.
2448 Add empty action to start rule to avoid a type clash error when
2449 building with bison >= 1.50.
2450
f8302a57
JB
24512002-11-06 Jim Blandy <jimb@redhat.com>
2452
2453 * macrotab.h (struct macro_source_file): Doc fix.
2454
6e382aa3
JJ
24552002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2456
2457 * varobj.c (child_exists, cplus_number_of_children): Change
2458 STREQ macro references to strcmp.
2459 (cplus_name_of_child): Change code to handle the fact that
2460 fields are not necessarily contiguous with regards to their
2461 access control. This is a fix for PR gdb/792.
2462
a216a322
AC
24632002-11-05 Andrew Cagney <ac131313@redhat.com>
2464
2465 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2466 * gdbarch.h, gdbarch.c: Regnerate.
2467 * frame.h (frame_register): Declare.
2468 * frame.c (frame_register): New function.
2469 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2470 GET_SAVED_REGISTER, otherwize call
2471 generic_unwind_get_saved_register.
2472 (frame_register_read): Use frame_register instead of
2473 get_saved_register.
2474
7d5b6fdd
EZ
24752002-11-05 Elena Zannoni <ezannoni@redhat.com>
2476
2477 From Jim Ingham <jingham@apple.com>:
2478 * event-top.c (gdb_disable_readline): New function.
2479 (_initialize_event_loop): Move comment.
2480
b7c64260
EZ
24812002-11-05 Elena Zannoni <ezannoni@redhat.com>
2482
2483 * event-loop.c (start_event_loop): Add comment.
2484 Update copyright.
2485
c2e1b8f2
AC
24862002-11-05 Andrew Cagney <ac131313@redhat.com>
2487
2488 * infcmd.c (default_print_registers_info): Do not call
2489 PRINT_REGISTER_HOOK.
2490
87647bb0
AC
24912002-11-05 Andrew Cagney <ac131313@redhat.com>
2492
2493 * sparc-tdep.c (sparc_print_register_hook): Make static.
2494 (sparc_print_registers_info): New function.
2495 (sparc_do_registers_info): New function.
2496 (sparclet_print_registers_info): New function.
2497 (sparclet_do_registers_info): New function.
2498 (do_sparc_print_registers_info): New function.
2499 (sparc_print_registers): New static function, clone of infcmd.c's
2500 default_print_registers_info.
2501 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2502 (sparclet_do_registers_info): Declare.
2503 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2504 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2505 Re-define.
2506 (sparc_do_registers_info): Declare.
2507 (PRINT_REGISTER_HOOK): Delete macro.
2508 (sparc_print_register_hook): Delete declaration.
2509
8155455b
DC
25102002-11-05 David Carlton <carlton@math.stanford.edu>
2511
2512 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2513 functions.
2514 (lookup_symbol_aux_local): New function.
2515 (lookup_symbol_aux_symtabs): New function.
2516 (lookup_symbol_aux_psymtabs): New function.
2517
29924310
DC
25182002-11-05 David Carlton <carlton@math.stanford.edu>
2519
2520 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2521 previous values of 'objfile' and 'block'.
2522
cc303028
PM
25232002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2524
2525 * values.c (value_change_enclosing_type): Set
2526 enclosing_type field correctly also for the case where
2527 more memory needs to be allocated.
2528
1d70089a
MK
25292002-11-03 Mark Kettenis <kettenis@gnu.org>
2530
f16a25ae
MK
2531 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2532 of puts_filtered.
2533
1d70089a
MK
2534 * i387-tdep.c (i387_print_float_info): Replace calls to
2535 register_read and deprecated_read_register_gen with calls to
2536 frame_register_read, and make the necessary adjustments to the
2537 surrounding code.
2538
7e20f3fb
AC
25392002-11-02 Andrew Cagney <ac131313@redhat.com>
2540
2541 * gdbarch.sh (register_reggroup_p): Allow default value.
2542 * gdbarch.h, gdbarch.c: Regenerate.
2543
192dbe33
AC
25442002-11-02 Andrew Cagney <ac131313@redhat.com>
2545
2546 * regcache.h: Add coment indicating replacements for deprecated
2547 functions.
2548
b59ff9d5
AC
25492002-11-02 Andrew Cagney <cagney@redhat.com>
2550
2551 * reggroups.h, reggroups.c: New files.
2552 * regcache.c: Include "reggroups.h".
2553 (enum regcache_dump_what): Add `regcache_dump_groups'.
2554 (regcache_dump): Contract size of the "Type" column. When
2555 specified, dump the register's groups.
2556 (maintenance_print_register_groups): New function.
2557 (_initialize_regcache): Add command `maint print register-groups'.
2558 * Makefile.in (COMMON_OBS): Add reggroups.o
2559 (SFILES): Add reggroups.c.
2560 (reggroups_h): Define.
2561 (regcache.o, gdbarch.o): Update dependencies.
2562 (reggroups.o): Specify dependencies.
2563 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2564 Add opaque declaration for `struct reggroup' in generated .h file.
2565 Include "reggroups.h" in generated .c file.
2566 gdbarch.h, gdbarch.c: Re-generate.
2567
4caf0990
AC
25682002-11-02 Andrew Cagney <cagney@redhat.com>
2569
2570 * regcache.h (deprecated_read_register_gen): Rename
2571 read_register_gen.
2572 (deprecated_write_register_gen): Rename write_register_gen.
2573 * i387-tdep.c: Update.
2574 * x86-64-linux-nat.c: Update
2575 * wince.c: Update.
2576 * thread-db.c: Update.
2577 * win32-nat.c: Update.
2578 * mips-tdep.c: Update.
2579 * d10v-tdep.c: Update.
2580 * cris-tdep.c: Update.
2581 * remote-sim.c: Update.
2582 * remote-rdi.c: Update.
2583 * remote-rdp.c: Update.
2584 * frame.c: Update.
2585 * target.c: Update.
2586 * blockframe.c: Update.
2587 * x86-64-tdep.c: Update.
2588 * xstormy16-tdep.c: Update.
2589 * sh-tdep.c: Update.
2590 * s390-tdep.c: Update.
2591 * rs6000-tdep.c: Update.
2592 * sparc-tdep.c: Update.
2593 * i386-tdep.c: Update.
2594 * dwarf2cfi.c: Update.
2595 * regcache.c: Update.
2596
7a7adcdf
JB
25972002-11-01 Joel Brobecker <brobecker@gnat.com>
2598
2599 New interix-specific files:
2600 * config/i386/nm-interix.h: New file.
2601 * config/i386/interix.mh: New file.
2602 * config/i386/interix.mt: New file.
2603 * i386-interix-nat.c: New file.
2604 * i386-interix-tdep.c: New file.
2605
bdcdd535
AC
26062002-11-01 Andrew Cagney <cagney@redhat.com>
2607
2608 * frame.h (deprecated_generic_get_saved_register): Rename
2609 generic_get_saved_register.
2610 * blockframe.c (deprecated_generic_get_saved_register): Update.
2611 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2612 (xstormy16_frame_saved_register): Update.
2613 * sh-tdep.c (sh_gdbarch_init): Update.
2614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2615 * ia64-tdep.c (ia64_get_saved_register): Update.
2616 * cris-tdep.c (cris_gdbarch_init): Update.
2617 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2618 * arm-tdep.c (arm_gdbarch_init): Update.
2619
2a4b7c45
DJ
26202002-10-31 Daniel Jacobowitz <drow@mvista.com>
2621
2622 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2623
ef17e74b
DJ
26242002-10-31 Daniel Jacobowitz <drow@mvista.com>
2625
2626 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2627 trampolines in sigaction.
2628
4904ba5b
AC
26292002-10-31 Andrew Cagney <cagney@redhat.com>
2630
2631 * h8300-tdep.c: Include "gdb_assert.h".
2632 (h8300_print_register): Add gdbarch, file and frame parameters.
2633 Use frame_read_unsigned_register to read the register's value.
2634 Use fprintf_filtered to display output.
2635 (h8300_print_registers_info): Replace h8300_do_registers_info.
2636 (h8300_gdbarch_init): Set print_registers_info.
2637
f908a0eb
AC
26382002-10-31 Andrew Cagney <cagney@redhat.com>
2639
2640 * frame.c (frame_read_unsigned_register): New function.
2641 (frame_read_signed_register): New function.
2642 * frame.h (frame_read_unsigned_register): Declare.
2643 (frame_read_signed_register): Declare.
2644
c5646e11
AC
26452002-10-31 Andrew Cagney <cagney@redhat.com>
2646
2647 * h8500-tdep.c (h8500_print_registers_info): New static function,
2648 clone of infcmd.c's default_print_registers_info.
2649 (h8500_do_registers_info): New funtion.
2650 (h8500_print_register_hook): Rename print_register_hook, make
2651 static.
2652
2653 * config/h8500/tm-h8500.h: Update copyright.
2654 (DEPRECATED_DO_REGISTERS_INFO): Define.
2655 (h8500_do_registers_info: Declare.
2656 (PRINT_REGISTER_HOOK): Delete macro.
2657 (print_register_hook): Delete function.
2658
0bdd672b
AC
26592002-10-31 Andrew Cagney <cagney@redhat.com>
2660
2661 * z8k-tdep.c (z8k_print_register_hook): Make static.
2662 (z8k_print_registers_info): New static function, clone of
2663 infcmd.c's default_print_registers_info.
2664 (z8k_do_registers_info): New function. Wrap
2665 z8k_print_registers_info.
2666 * config/z8k/tm-z8k.h: Update copyright.
2667 (PRINT_REGISTER_HOOK): Delete macro.
2668 (z8k_print_register_hook): Delete declaration.
2669 (DEPRECATED_DO_REGISTERS_INFO): Define.
2670 (z8k_do_registers_info): Declare.
2671
bf9c25dc
JB
26722002-10-30 Joel Brobecker <brobecker@gnat.com>
2673
2674 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2675 as this is already provided by value.h, and was actually causing
2676 a compilation error because of a conflict in parameter type
2677 declaration due to a missing const keyword.
2678 (low_text_segment_addres): Fix a compilation warning.
2679
2c665b51
DJ
26802002-10-29 Daniel Jacobowitz <drow@mvista.com>
2681
2682 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2683 registers without a name.
2684 (mips_linux_cannot_store_register): Don't store registers without
2685 a name.
2686
e70ea697
DC
26872002-10-28 David Carlton <carlton@math.stanford.edu>
2688
2689 * symtab.c (find_addr_symbol): Delete. (It was already commented
2690 out.)
2691 * symtab.h: Delete prototype for find_addr_symbol.
2692
903ad3a6
AC
26932002-10-26 Andrew Cagney <cagney@redhat.com>
2694
2695 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2696 DO_REGISTERS_INFO.
2697 gdbarch.h, gdbarch.c: Re-generate.
2698 * infcmd.c (default_print_registers_info): Update reference.
2699 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2700 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2701 * sh-tdep.c (sh_gdbarch_init): Ditto.
2702 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2703 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2704
ab91194c
MK
27052002-10-26 Mark Kettenis <kettenis@gnu.org>
2706
e3033f15
MK
2707 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2708 cfi_init_extra_frame_info.
2709 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2710 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2711
b83b026c
MK
2712 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2713 target where necessary. Add more comments and remove the ones
2714 that don't provide any useful information.
2715
267bf4bb
MK
2716 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2717 deprecated_read_register_dummy with
2718 frame_unwind_unsigned_register.
2719
751f1375
MK
2720 * i386-tdep.c (i386_extract_struct_value_address): Use
2721 regcache_raw_read_unsigned instead of
2722 regcache_cooked_read_unsigned since we know that the register
2723 we're reading isn't a pseudo register. Rename variable 'val' into
2724 the more descriptive 'addr'.
2725
26abbdc4
MK
2726 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2727 (x86_64_push_return_address): Add comment.
2728 (x86_64_pop_frame): Make static.
2729 (examine_argument): Clarify comment.
2730 (x86_64_skip_prologue): Make prolog_expact variable static.
2731
9f1549cc
MK
2732 * dwarf2cfi.c: Fix some formatting problems.
2733 (context_cpy, read_encoded_pointer): Clarify comments.
2734
ab91194c
MK
2735 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2736 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2737 i386 target back into x86_64_gdbarch_init. Add some comments and
2738 remove meaningless ones.
2739
72367fb4
AC
27402002-10-25 Andrew Cagney <cagney@redhat.com>
2741
2742 * complaints.h (struct deprecated_complaint): Rename `struct
2743 complaint'.
2744 * complaints.c (complain): Update.
2745 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2746 incorrect comment indicating that "symfile.h" was being included
2747 for the `struct complaint' definition.
2748 * remote-vx.c: Update.
2749 * objc-lang.c: Update.
2750 * xcoffread.c: Update.
2751 * hpread.c: Update.
2752 * mdebugread.c: Update.
2753 * stabsread.c: Update.
2754 * dwarf2read.c: Update.
2755 * dwarfread.c: Update.
2756 * elfread.c: Update.
2757 * coffread.c: Update.
2758 * stabsread.h: Update.
2759 * dbxread.c: Update.
2760 * buildsym.c: Update.
2761 * gdbtypes.c: Update.
2762 * macrotab.c: Update.
2763
1f2baacc
MK
27642002-10-25 Mark Kettenis <kettenis@gnu.org>
2765
0c1a73d6
MK
2766 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2767 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2768 (x86_64_init_abi): ...new function.
2769
6aee4d54 2770 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2771 * i386v-nat.c: Include "i386-tdep.h".
2772
8f9cbe01
AC
27732002-10-25 Andrew Cagney <cagney@redhat.com>
2774
5f11f355
AC
2775 * gdbtypes.c (address_space_name_to_int): Update.
2776 (address_space_int_to_name): Update.
2777 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2778 multi-arch predicate.
2779 (address_class_name_to_type_flags): Ditto.
2780 * gdbarch.h, gdbarch.c: Re-generate.
2781
8f9cbe01
AC
2782 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2783
e8d96a5d
MH
27842002-10-24 Martin M. Hunt <hunt@redhat.com>
2785
2786 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2787
fe39c653
EZ
27882002-10-24 Elena Zannoni <ezannoni@redhat.com>
2789
2790 * symtab.h (INIT_SAL): Delete macro.
2791 (init_sal): Export.
2792 * symtab.c (init_sal): New function.
2793
2794 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2795 to init_sal function call.
2796 (find_sal_from_funcs_and_line): Ditto.
2797 (all_sals_for_line): Ditto.
2798 * breakpoint.c (create_internal_breakpoint): Ditto.
2799 (create_fork_vfork_event_catchpoint): Ditto.
2800 (create_exec_event_catchpoint): Ditto.
2801 (parse_breakpoint_sals): Ditto.
2802 (watch_command_1): Ditto.
2803 (handle_gnu_4_16_catch_command): Ditto.
2804 (clear_command): Ditto.
2805 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2806 * infcmd.c (run_stack_dummy): Ditto.
2807 * infrun.c (process_event_stop_test): Ditto.
2808 (check_sigtramp2): Ditto.
2809 (step_over_function): Ditto.
2810 * linespec.c (decode_line_2): Ditto.
2811 (decode_line_1): Ditto.
2812 * source.c (line_info): Ditto.
2813 * symtab.c (find_pc_sect_line): Ditto.
2814
baed091b
ML
28152002-10-24 Michal Ludvig <mludvig@suse.cz>
2816
2817 * dwarf2cfi.c (struct context)
2818 (struct context_reg): Moved to dwarf2cfi.h
2819 (context_alloc, frame_state_alloc, context_cpy):
2820 Made extern instead of static, removed prototypes.
2821 * dwarf2cfi.h (struct context)
2822 (struct context_reg): New, moved from dwarf2cfi.c
2823 (context_alloc, frame_state_alloc, context_cpy):
2824 New prototypes.
2825 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2826 Changed from static to extern.
2827 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2828 (LINUX_SIGCONTEXT_FP_OFFSET)
2829 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2830 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2831 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2832 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2833 set_gdbarch_*() calls now use x86-64 specific functions
2834 instead of DWARF2 CFI ones.
2835 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2836 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2837 (x86_64_init_extra_frame_info): New prototypes.
2838
c38da1af
DC
28392002-10-23 David Carlton <carlton@math.stanford.edu>
2840
2841 * linespec.c: #include "parser-defs.h".
2842 Delete prototype for find_template_name_end.
2843 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2844
fb9b6b35
JJ
28452002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2846
2847 * NEWS: add recent mi fixes.
2848 * varobj.c (struct varobj): Add new "updated" flag.
2849 (new_variable): Default "updated" flag to 0.
2850 (varobj_set_value): Set "updated" flag to 1 if value
2851 changes.
2852 (varobj_update): Check varobj "updated" flag before
2853 comparing old and refreshed values. Fix for
2854 PR gdb/702.
2855
8da065d5
DC
28562002-10-23 David Carlton <carlton@math.stanford.edu>
2857
2858 * parse.c (parse_exp_1): Use BLOCK_START.
2859 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2860 SYMBOL_BLOCK_VALUE.
2861 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2862
87f2f08c
DC
28632002-10-23 David Carlton <carlton@math.stanford.edu>
2864
2865 * symtab.c: Delete cplusplus_hint.
2866 Delete prototype for find_template_name_end.
2867
88cda038
EZ
28682002-10-23 Elena Zannoni <ezannoni@redhat.com>
2869
2870 * symtab.h: Update comment.
2871
2625d86c
MS
28722002-10-23 Michael Snyder <msnyder@redhat.com>
2873
2874 * printcmd.c (address_info): Restore quotes in output.
2875 * valops.c (value_of_local): Restore quotes in error message.
2876
9cc0d196
EZ
28772002-10-23 Elena Zannoni <ezannoni@redhat.com>
2878
2879 * symtab.c (symbol_demangled_name): New function.
2880 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2881 turning most of it into a function.
2882 (symbol_demangled_name): Export.
2883
19de93d0
MS
28842002-10-23 Michael Snyder <msnyder@redhat.com>
2885
2886 * valops.c (value_of_local): Restore quotes in error message.
2887
89aad1f9
EZ
28882002-10-23 Elena Zannoni <ezannoni@redhat.com>
2889
2890 * symtab.c (symbol_init_language_specific): New function.
2891 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2892 turning most of it into a function.
2893 (symbol_init_language_specific): Export.
2894
d9fa45fe
DC
28952002-10-23 David Carlton <carlton@math.stanford.edu>
2896
2897 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2898 (dwarf_attr_name): Ditto.
2899 (dwarf_type_encoding_name): Ditto.
2900 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2901 (process_die): Handle DW_TAG_namespace,
2902 DW_TAG_imported_declaration, DW_TAG_imported_module.
2903 (read_namespace): New function.
2904
1045b512
JB
29052002-10-22 Joel Brobecker <brobecker@gnat.com>
2906
2907 * configure.in: Define NEW_PROC_API on Interix too.
2908 * configure: Regenerate.
2909
29102002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2911
2912 * configure: Regenerate using the proper version of autoconf.
2913
3987b9d4
EZ
29142002-10-21 Elena Zannoni <ezannoni@redhat.com>
2915
2916 * findvar.c (read_var_value): Temporarily disable TLS code, until
2917 complete TLS support is added.
2918
9d774e44
EZ
29192002-10-21 Jim Blandy <jimb@redhat.com>
2920 Elena Zannoni <ezannoni@redhat.com>
2921
2922 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2923 for thread local storage locations.
2924 (struct symbol): Add objfile field.
2925 (SYMBOL_OBJFILE): Define.
2926 * dwarf2read.c (is_thread_local): New static variable.
2927 (new_symbol): If variable is in thread local fill in address class
2928 and objfile appropriately.
2929 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2930 stack operation.
2931 * printcmd.c (address_info): Print the information for thread
2932 local storage variable.
2933 * findvar.c (read_var_value): In case of thread local variable,
2934 defer to the target vector code to compute address.
2935
bc4a16ae
EZ
29362002-10-21 Elena Zannoni <ezannoni@redhat.com>
2937
2938 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2939 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2940
407caf07
EZ
29412002-10-21 Elena Zannoni <ezannoni@redhat.com>
2942
2943 * symtab.h (address_class): Rename
2944 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2945 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2946 * printcmd.c (address_info): Ditto.
2947 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2948
005328e3
MK
29492002-10-20 Mark Kettenis <kettenis@gnu.org>
2950
afdb036a
MK
2951 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2952 DBREG_DRX macro to acces debug registers.
2953
ca02e098
MK
2954 * Makefile.in (i386obsd-tdep.o): New target.
2955
03cc47f7
MK
2956 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2957 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2958
005328e3
MK
2959 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2960 * config/i386/obsd.mt: New file.
2961 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2962 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2963 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2964 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2965 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2966 * i386obsd-tdep.c: New file.
2967
9c96f9f2
AF
29682002-10-19 Adam Fedor <fedor@gnu.org>
2969
2970 * objc-exp.y (name_not_typename): Fix invalid comment.
2971
ce1ed485
MK
29722002-10-20 Mark Kettenis <kettenis@gnu.org>
2973
2974 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2975 to allocate partial syms and macro byte caches.
2976
1efc7aaa
DC
29772002-10-18 David Carlton <carlton@math.stanford.edu>
2978
2979 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2980
7e1d63ec
AF
29812002-10-18 Adam Fedor <fedor@gnu.org>
2982
2983 * stabsread.c (find_name_end): New function.
2984 (define_symbol): Use it.
2985
6e8d29a9
DJ
29862002-10-18 Daniel Jacobowitz <drow@mvista.com>
2987
2988 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2989 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2990 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2991 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2992
1efc7aaa 29932002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2994
2995 * symfile.h: Add opaque declaration for struct obstack.
2996 Declare obsavestring to take a const char *.
2997 * symfile.c (obsavestring): Make first argument a const char *.
2998
1aeae86e
AF
29992002-10-16 Adam Fedor <fedor@gnu.org>
3000
3001 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3002 names when matching breakpoints in current file.
3003
8b2dbe47
KB
30042002-10-16 Kevin Buettner <kevinb@redhat.com>
3005
3006 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3007 (read_tag_pointer_type): Add address class support.
3008 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3009 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3010 New methods.
3011 * gdbarch.h, gdbarch.c: Regenerate.
3012 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3013 (make_type_with_address_space, recursive_type_dump): Add address
3014 class support.
3015 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3016 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3017 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3018
74451869
KD
30192002-10-16 Klee Dienes <kdienes@apple.com>
3020
3021 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3022 to get the last character of a char[] buffer, not
3023 name[sizeof(vptr_name)-1].
3024
ff4cb3e8
AF
30252002-10-14 Adam Fedor <fedor@gnu.org>
3026
3027 * symtab.h: New objc_specific struct.
3028 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3029 (SYMBOL_DEMANGLED_NAME): Likewise.
3030
da2cf7e0
AF
30312002-10-14 Adam Fedor <fedor@gnu.org>
3032
3033 * symfile.c (init_filename_language_table): Add ObjC file extension.
3034
4a351cef
AF
30352002-10-14 Adam Fedor <fedor@gnu.org>
3036
3037 * utils.c (puts_filtered_tabular): New function.
3038 (fprintf_symbol_filtered): Get ObjC demangled name.
3039 * defs.h (puts_filtered_tabular): Declared.
3040
9750e763
KB
30412002-10-14 Kevin Buettner <kevinb@redhat.com>
3042
3043 * c-lang.h (c_type_print_varspec_prefix): Delete.
3044 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3045 ``need_post_space'' parameter. Adjust all callers.
3046
eee771c1
DJ
30472002-10-14 Daniel Jacobowitz <drow@mvista.com>
3048
3049 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3050 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3051 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3052 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3053
46c82446
AF
30542002-10-13 Adam Fedor <fedor@gnu.org>
3055
3056 * source.c (print_source_lines): Update comments.
3057
d069f99d
AF
30582002-10-13 Adam Fedor <fedor@gnu.org>
3059
3060 * valops.c (value_of_local): New function.
3061 (value_of_this): Use it.
3062 * value.h (value_of_local): Declared.
3063
53c551b7
AF
30642002-10-13 Adam Fedor <fedor@gnu.org>
3065
3066 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3067 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3068
eb392fbf
AF
30692002-10-12 Adam Fedor <fedor@gnu.org>
3070
3071 * language.c (binop_result_type): Add language_objc to case.
3072 (integral_type): Likewise.
3073 (character_type): Likewise.
3074 (string_type): Likewise.
3075 (boolean_type): Likewise.
3076 (structured_type): Likewise.
3077 (binop_type_check): Likewise.
3078
e2b23ee9
AF
30792002-10-11 Adam Fedor <fedor@gnu.org>
3080
3081 * printcmd.c (address_info): Print 'self' for ObjC.
3082
b01ab485
AF
30832002-10-11 Adam Fedor <fedor@gnu.org>
3084
3085 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3086 OP_SELF.
3087
806e6073
AF
30882002-10-11 Adam Fedor <fedor@gnu.org>
3089
3090 * language.h (CAST_IS_CONVERSION): Add language_objc.
3091
50f85cdf
AF
30922002-10-11 Adam Fedor <fedor@gnu.org>
3093
3094 * defs.h (enum language): Add language_objc.
3095
0d540cdf
KD
30962002-10-11 Klee Dienes <kdienes@apple.com>
3097
69266111 3098 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3099 * gdbcore.h (read_memory_typed_address): Add prototype.
3100 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3101 to read a value destined for a CORE_ADDR, not read_memory_integer.
3102 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3103 (f77_get_dynamic_lowerbound): Ditto.
3104
d5dc7960
MH
31052002-10-11 Martin M. Hunt <hunt@redhat.com>
3106
3107 * utils.c (string_to_core_addr): After turning string into
3108 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3109 which will do necessary sign-extension, etc.
3110
8343f86c
DJ
31112002-10-11 Daniel Jacobowitz <drow@mvista.com>
3112
3113 * c-exp.y (THIS): Delete token and grammar rule.
3114 (yylex): Don't return THIS.
3115 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3116 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3117 * demangle.c (cplus_markers): Update comment. Put '$'
3118 first. Remove CPLUS_MARKER.
3119 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3120 * jv-exp.y (THIS): Delete token and grammar rule.
3121 (yylex): Don't return THIS.
3122 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3123 * objc-exp.y (THIS): Delete token and grammar rule.
3124 (yylex): Don't return THIS.
3125 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3126 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3127 (read_member_functions): Likewise for opname.
3128 (read_tilde_fields): Use is_cplus_marker.
3129
3130 * defs.h (CPLUS_MARKER): Don't define.
3131 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3132 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3133 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3134 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3135 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3136
3137 * config/i386/tm-i386v4.h: Delete file.
3138 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3139 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3140 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3141 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3142 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3143 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3144 * config/i386/i386v4.mt (TM_FILE): Likewise.
3145 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3146
967c0d83
MM
31472002-10-10 Marko Mlinar <markom@opencores.org>
3148
3149 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3150 accidentially not commited 2002-10-09
3151 * gdbarch.h, gdbarch.c: Re-generate.
3152
f74fa174
MM
31532002-10-09 Marko Mlinar <markom@opencores.org>
3154
3155 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3156 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3157 * gdbarch.h, gdbarch.c: Re-generate.
3158
57349743
JB
31592002-10-08 Petr Sorfa <petrs@caldera.com>
3160
3161 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3162
3163 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3164 so we can work on more than one compilation unit at a time. This
3165 helps prepare GDB to handle inter-CU die references.
3166 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3167 the code to be defined before struct comp_unit_head.
3168 (comp_unit_head): Added new members - offset, cu_head,
3169 begin_die, next and dwarf2_abbrevs.
3170 (dwarf2_abbrevs): Removed single static var; now member of
3171 struct comp_unit_head.
3172 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3173 members.
3174 (psymtab_to_symtab_1): Changed to work with the new
3175 struct comp_unit_head.
3176 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3177 constructs the dwarf2_abbrevs[] inside the cu_header.
3178 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3179 dwarf2_abbrev table to clean up.
3180 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3181 handling of dwarf2_abbrevs inside the cu_header.
3182 (read_partial_die): Now supports the call to the new
3183 dwarf2_lookup_abbrev.
3184 (read_full_die): Now supports the call to the new
3185 dwarf2_lookup_abbrev.
3186
4092aadb
CF
31872002-10-06 Christopher Faylor <cgf@redhat.com>
3188
3189 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3190 insure that shell variables, such as "transformed_name" are propagated
3191 to later shell statements in rule.
3192
af0b2512
MK
31932002-10-06 Mark Kettenis <kettenis@gnu.org>
3194
3195 * config/i386/nm-i386sco.h: Add protection against
3196 multiple-inclusion. Include "i386/nm-i386v.h".
3197 (REGISTER_U_ADDR): Remove define.
3198 (i386_register_u_addr): Remove prototype.
3199
d6020d45
MS
32002002-10-04 Michael Snyder <msnyder@redhat.com>
3201
3202 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3203 before treating it as a single-step event.
3204
7248f48e
AF
32052002-10-03 Adam Fedor <fedor@gnu.org>
3206
3207 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3208 (objc_demangle): Remove assignment in if statements, Replace
3209 free with xfree.
3210 (add_msglist): Likewise.
3211 (end_msglist): Likewise.
3212 (complare_selectors): Likewise.
3213 (selectors_info): Likewise.
3214 (compare_classes): Likewise.
3215 (classes_info): Likewise.
3216 (print_object_command): Likewise.
3217 (find_objc_msgcall_submethod): Replace PTR with void *.
3218 * objc-lang.h: Remove check for __STDC__.
3219
52c6a6ac
JJ
32202002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3221
3222 * ui-out.h (ui_out_field_fmt_int): New prototype.
3223 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3224 of field width and alignment.
3225 * stack.c (print_frame_info_base): When printing frame level, use
3226 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3227 PR gdb/192
3228
7e3cec17
JJ
32292002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3230
3231 * MAINTAINERS: Add self to Write After Approval list.
3232
a58dd373
EZ
32332002-10-02 Elena Zannoni <ezannoni@redhat.com>
3234
3235 * infcmd.c (interrupt_target_command_wrapper): Delete.
3236 (interrupt_target_command): Make non static.
3237 (nofp_registers_info): Make static.
3238 * stack.c (return_command_wrapper): Delete.
3239 (return_command): Make non static.
3240
cee6ddeb
EZ
32412002-10-02 Elena Zannoni <ezannoni@redhat.com>
3242
3243 * event-top.c (gdb_setup_readline): New function. Code moved from
3244 _initialize_event_loop().
3245 (_initialize_event_loop): Call gdb_setup_readline().
3246
c4ed33b9
AC
32472002-10-02 Andrew Cagney <ac131313@redhat.com>
3248
3249 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3250 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3251 * gdbarch.h, gdbarch.c: Re-generate.
3252
cef4f5dd
DJ
32532002-10-02 Daniel Jacobowitz <drow@mvista.com>
3254
3255 Fix PR gdb/778
3256 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3257 before recursing.
3258 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3259 of fill_in_vptr_fieldno.
3260
36dc181b 32612002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3262
36dc181b
EZ
3263 * inferior.h (registers_info, stepi_command, nexti_command,
3264 continue_command, interrupt_target_command): Export from infcmd.c.
3265 * frame.h (args_info, selected_frame_level_changed_hook,
3266 return_command): Export from stack.c.
3267 * v850ice.c (stepi_command, nexti_command, continue_command): use
3268 prototypes from inferior.h.
3269 * tracepoint.c (registers_info, args_info, locals_info): Use
3270 prototypes from frame.h and inferior.h.
3271 * Makefile.in (mi-main.o): Add dependency on frame.h.
3272
6f99cb26
AC
32732002-10-02 Andrew Cagney <ac131313@redhat.com>
3274
da3eff49
AC
3275 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3276 value in register 3 adjusted by ppc_gp0_regnum.
3277
6f99cb26
AC
3278 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3279
da615bee
MM
32802002-10-02 Marko Mlinar <markom@opencores.org>
3281
3282 * MAINTAINERS: Add myself to the Write After Approval list.
3283
d154bee2
AO
32842002-10-01 Alexandre Oliva <aoliva@redhat.com>
3285
62a49b2c
AO
3286 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3287 of the section for the N64 ABI, fixed.
3288
d154bee2
AO
3289 * config/mips/tm-irix6.h: Include solib.h.
3290
ed348acc
EZ
32912002-10-01 Elena Zannoni <ezannoni@redhat.com>
3292
3293 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3294 GNU operators.
3295
da0f9dcd
AC
32962002-10-01 Andrew Cagney <ac131313@redhat.com>
3297
3298 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3299 and that "mi0" syntax has been removed.
3300
bdf64bac
DC
33012002-09-30 David Carlton <carlton@math.stanford.edu>
3302
3303 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3304 * ppc-sysv-tdep.c: #include "gdb_string.h".
3305 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3306 pacify GCC.
3307
54c2a1e6
AC
33082002-10-01 Andrew Cagney <ac131313@redhat.com>
3309
3310 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3311 "vrsave"'s register number.
3312
cedea778
AC
33132002-09-30 Andrew Cagney <ac131313@redhat.com>
3314
3315 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3316 use frame_unwind_signed_register to obtain the PC.
3317 (mips_frame_chain): Handle a generic dummy frame.
3318 (mips_init_extra_frame_info): When a generic dummy frame, don't
3319 re-compute the frame base.
3320 (mips_pop_frame): Handle generic dummy frames.
3321 (mips_gdbarch_init): When generic dummy frames, set
3322 use_generic_dummy_frames, push_dummy_frame to
3323 generic_push_dummy_frame, pc_in_call_dummy to
3324 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3325 generic_save_dummy_frame_tos.
3326
68315eb8
AC
33272002-09-30 Andrew Cagney <ac131313@redhat.com>
3328
3329 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3330 against TOP when TOP was explictly set.
3331 (generic_push_dummy_frame): Set TOP to zero.
3332
3b8630c3
EZ
33332002-09-30 Elena Zannoni <ezannoni@redhat.com>
3334
3335 * event-loop.c (start_event_loop): Rename variable 'result' to
3336 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3337
28ee05e9
KS
33382002-09-30 Keith Seitz <keiths@redhat.com>
3339
3340 * gdb-events.sh (selected_thread_changed): New event.
3341 * gdb-events.c: Regenerated.
3342 * gdb-events.h: Regenerated.
3343
6eecb1c8
HPN
33442002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3345
3346 * MAINTAINERS: Add self to Write After Approval list.
3347
92df71f0
FN
33482002-09-30 Fernando Nasser <fnasser@redhat.com>
3349
3b8630c3
EZ
3350 * disasm.c: New file.
3351 * disasm.h: New file.
92df71f0
FN
3352 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3353 (compare_lines): Ditto.
3354 (dump_insns): Ditto.
3b8630c3
EZ
3355 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3356 argument.
92df71f0 3357 (do_assembly_only): Ditto.
3b8630c3
EZ
3358 (do_disassembly): Renamed to gdb_disassembly and moved to
3359 disasm.c. Sdded uiout argument.
3360 * Makefile.in: Add new files. Reorder SFILES list. Update
3361 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3362
0c22854d
AC
33632002-09-29 Andrew Cagney <ac131313@redhat.com>
3364
3365 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3366 bfd/elf64-alpha-fbsd.c.
3367
e67f2023
AC
33682002-09-29 Andrew Cagney <ac131313@redhat.com>
3369
3370 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3371 i386gnu-tdep.c.
3372
89396210
AC
33732002-09-29 Andrew Cagney <ac131313@redhat.com>
3374
3375 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3376 __FUNCTION__.
3377 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3378 function name.
3379 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3380 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3381 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3382 (S_msg_sig_post_reply): Ditto.
3383
7079c36c
CV
33842002-09-28 Corinna Vinschen <vinschen@redhat.com>
3385
89396210
AC
3386 * sh-tdep.c (sh_use_struct_convention): Use definition according
3387 to ABI.
7079c36c
CV
3388 (sh_push_arguments): Store in register with correct endianess.
3389 (sh_default_store_return_value): Ditto.
3390 (sh_gdbarch_init): Set sizeof long double to 8.
3391
975ac915
MK
33922002-09-27 Mark Kettenis <kettenis@gnu.org>
3393
3394 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3395 Fix some whitespace problems.
3396
9bbe19fb
DC
33972002-09-27 David Carlton <carlton@math.stanford.edu>
3398
3399 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3400 (mcore-tdep.o): Ditto.
3401 (ns32k-tdep.o): Ditto.
3402 (ns32knbsd-tdep.o): Ditto.
3403 (sh3-rom.o): Ditto.
3404 (vax-tdep.o): Ditto.
3405 * cris-tdep.c: #include "gdb_string.h"
3406 * mcore-tdep.c: Ditto.
3407 * ns32k-tdep.c: Ditto.
3408 * ns32knbsd-tdep.c: Ditto.
3409 * sh3-rom.c: Ditto.
3410 * vax-tdep.c: Ditto.
3411
43b2fdc7
DC
34122002-09-27 David Carlton <carlton@math.stanford.edu>
3413
3414 * config/djgpp/fnchange.lst: Add entries for
3415 gdb/testsuite/gdb.c++/m-static files.
3416
e8cfbbd9
JW
34172002-09-27 Jim Wilson <wilson@redhat.com>
3418
3419 * MAINTAINERS: Add myself to the Write After Approval list.
3420
43b2fdc7 34212002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3422
3423 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3424
3425
9f3b7f07
AC
34262002-09-26 Andrew Cagney <ac131313@redhat.com>
3427
3428 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3429 frame.
3430
11269d7e
AC
34312002-09-26 Andrew Cagney <ac131313@redhat.com>
3432
3433 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3434 (rs6000_struct_return_address): Delete variable.
3435 (rs6000_store_struct_return): Update.
3436 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3437 deprecated_extract_struct_value_address.
3438 (rs6000_frame_align): New function.
3439 (rs6000_gdbarch_init): Set frame_align.
3440
f15ab4a7
AC
34412002-09-26 Andrew Cagney <ac131313@redhat.com>
3442
3443 From Grace Sainsbury <graces@redhat.com>:
3444 * Makefile.in (gdbtk-main.o): New target.
3445 (gdb.o): New target.
3446 (main_h): Define.
3447 (main.o): Update dependencies.
3448 (gdb$(EXEEXT)): Add gdb.o.
3449 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3450 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3451 (SUBDIR_GDBTK_CLEAN): Set.
3452 (install-gdbtk): Install the insight binary.
3453 (uninstall-gdbtk): New target.
3454 (all-gdbtk, clean-gdbtk): New rule.
3455 * top.c (use_windows): Default to zero.
3456 * main.c: Include "main.h".
3457 (main): Delete.
3458 (struct captured_main_args): Delete.
3459 (gdb_main): New function.
3460 * main.h: New file.
3461 * gdb.c: New File.
3462
e36180d7
AC
34632002-09-25 Andrew Cagney <cagney@redhat.com>
3464
3465 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3466 (frame_map_regnum_to_name): New function.
3467 (frame_map_name_to_regnum): New function.
3468 * frame.h (frame_map_name_to_regnum): Declare.
3469 (frame_map_regnum_to_name): Declare.
3470 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3471 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3472 * parse.c: Do not include "builtin-regs.h".
3473 (target_map_name_to_register): Delete function.
3474 (write_dollar_variable): Use frame_map_name_to_regnum.
3475 * parser-defs.h (target_map_name_to_register): Delete declaration.
3476 * expprint.c: Include "frame.h".
3477 (print_subexp): Use frame_map_regnum_to_name.
3478 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3479 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3480
8b69000d
AC
34812002-09-25 Andrew Cagney <ac131313@redhat.com>
3482
3483 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3484 wasn't saved, and the next innermost frame is a dummy, return the
3485 dummy frame's link register.
3486
046ca86a
JB
34872002-09-24 Jim Blandy <jimb@redhat.com>
3488
3489 Fix from Paul Breed:
3490 * main.c (captured_main): Add a `break' after the case for 'b'.
3491
94b66fa7
KS
34922002-09-24 Keith Seitz <keiths@redhat.com>
3493
3494 * varobj.c (c_type_of_child): Use get_target_type instead
3495 of TYPE_TARGET_TYPE.
3496
c214a6fd
FN
34972002-09-22 Fernando Nasser <fnasser@redhat.com>
3498
53cb0458
FN
3499 * source.c (get_current_or_default_source_symtab_and_line): Remove
3500 function.
3501 (set_default_source_symtab_and_line): New function. Attempts to
3502 determine a source file to list lines from if one is not currently
3503 defined.
3504 (get_current_source_symtab_and_line): Initialize sal.pc and
3505 sal.end fields.
3506 (set_current_source_symtab_and_line): Mark argument as const.
3507 * source.h: Update declarations and comments.
3508 * linespec.c (decode_line_1): Replace call to removed routine above.
3509 * stack.c (print_frame_info_base): Ditto.
3510 * cli/cli-cmds.c (edit_command): Ditto.
3511 (list_command): Ditto.
3512
35132002-09-22 Fernando Nasser <fnasser@redhat.com>
3514
d6020d45 3515 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3516 sal.pc and sal.end fields.
c214a6fd
FN
3517 (get_current_or_default_source_symtab_and_line): Ditto.
3518 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3519 so we do not cause a new source symtab to be searched for (reverting an
3520 unintentional change from the 2002-09-20 patch).
3521 * scm-lang.c (scm_unpac): Ditto.
3522
cc3b68a5
AC
35232002-09-21 Andrew Cagney <cagney@redhat.com>
3524
3525 * complaints.c (symfile_explanations): Remove new-line from
3526 ``isolated_message''.
3527 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3528 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3529
5835abe7
NC
35302002-09-20 Nick Clifton <nickc@redhat.com>
3531
3532 * NEWS: Announce that V850EA ISA is no longer supported.
3533 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3534
a15ef5f5
DC
35352002-09-20 David Carlton <carlton@math.stanford.edu>
3536
06ba1b39
DC
3537 * Makefile.in (c-lang.o): Correct dependencies.
3538 (utils.o): Gather dependencies.
3539 (charset.o): Move.
a15ef5f5
DC
3540 * c-lang.c: #include "gdb_string.h"
3541
87885426
FN
35422002-09-20 Fernando Nasser <fnasser@redhat.com>
3543
3544 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3545 * cli/cli-cmds.c (list_command): New function. Implements the new
3546 cli edit command.
3547 (_init_cli_cmds): Add new command definition.
3548 * gdb.1: Document edit command.
3549 * doc/gdb.texinfo: Document edit command.
3550
35512002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3552
3553 * source.c: Make global variables current_source_symtab and
3554 current_source_line static.
3555 (list_command): Moved to cli/cli-cmds.c.
3556 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3557 (get_first_line_listed): New accessor function.
3558 (get_lines_to_list): New accessor function.
3559 (get_current_source_symtab_and_line): New function. Retrieves the
3560 position in the source code that we consider current.
3561 (get_current_or_default_source_symtab_and_line): New function.
3562 Like the above but attempts to determine a default position if one
3563 is not currently defined.
3564 (set_current_source_symtab_and_line): New function. Sets the source
3565 code position considered current and returns the previously set one.
3566 (clear_current_source_symtab_and_line): Reset stored information about
3567 a current source line.
3568 (_initialize_source): Remove registration for the "list" command and
3569 its alias.
3570 * source.h: Add declarations for the new functions above.
3571 * symtab.h: Remove declarations for the global variables mentioned
3572 above.
3573 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3574 obtain current source line.
3575 * linespec.c (decode_line_1): Ditto.
3576 * macroscope.c (default_macro_scope): Ditto.
3577 * scm-lang.c (scm_unpac): Ditto.
3578 * stack.c (print_frame_info_base): Ditto.
3579 * symfile.c (clear_symtab_users): Ditto.
3580 * symtab.c (decode_line_spec): Ditto.
3581 * cli/cli-cmds.c (list_command): Moved here from source.c.
3582 (ambiguous_line_spec): Moved here from source.c.
3583 (_init_cli_cmds): Add definition for "list" and its alias.
3584 * Makefile.in: Update dependencies.
3585
ddd216ea
CV
35862002-09-20 Corinna Vinschen <vinschen@redhat.com>
3587
3588 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3589 with what gcc thinks is correct.
3590
6d305052
CV
35912002-09-20 Corinna Vinschen <vinschen@redhat.com>
3592
3593 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3594 multiple register push instruction.
3595
234b45d4
KB
35962002-09-19 Jim Blandy <jimb@redhat.com>
3597
3598 Add support for distinct host and target character sets.
3599 * charset.c, charset.h: New files.
3600 * c-exp.y: #include "charset.h".
3601 (yylex): Convert character and string literals to the target
3602 character set, before returning them as the semantic value of the
3603 token.
3604 * c-lang.c: #include "charset.h".
3605 (c_emit_char): Use charset-specific methods to recognize
3606 characters with backslash escape forms, to decide which characters
3607 to print literally and which to print using numeric escape
3608 sequences, and to convert target characters to host characters
3609 before printing.
3610 * utils.c: #include "charset.h".
3611 (no_control_char_error): New function.
3612 (parse_escape): Use charset-specific methods to recognize
3613 backslash escapes, parse `control character' notation, and convert
3614 characters from the host character set to the target character set.
3615 * configure.in: Set the default host character set.
3616 Check where to find iconv, and what its argument types might be.
3617 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3618 * Makefile.in (SFILES): List charset.c.
3619 (COMMON_OBS): List charset.o.
3620 (charset.o): New rule.
3621 (charset_h): New header dependency variable.
3622 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3623 (LIBICONV): New variable, set by configure.
3624 (CLIBS): Include $(LIBICONV) here.
3625 * aclocal.m4, config.in, configure: Regenerated.
3626
525d6a61
JB
36272002-09-19 Joel Brobecker <brobecker@gnat.com>
3628
3629 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3630 bison 1.35 warning.
3631
3ed93867
RE
36322002-09-19 Richard Earnshaw <rearnsha@arm.com>
3633
3634 * gdb_mbuild.sh: New file.
3635
437666f8
AC
36362002-09-19 Andrew Cagney <ac131313@redhat.com>
3637
3638 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3639
389e51db
AC
36402002-09-18 Andrew Cagney <ac131313@redhat.com>
3641
3642 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3643 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3644 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3645 valops.c, value.h: Revert previous change.
3646
3b4efeaa
MS
36472002-09-18 Michael Snyder <msnyder@redhat.com>
3648
3649 Preliminary support for Objective-C:
3650 * defs.h (language_objc): New enum value.
3651 (puts_filtered_tabular): Declaration only, exported from utils.c.
3652 (skip_quoted): Delete, declared in completer.h.
3653 * c-exp.y: Include completer.h.
3654 * p-exp.y: Ditto.
3655 * jv-exp.y: Ditto.
3656 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3657 New operator enum values.
3658 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3659 * language.c (binop_result_type): Handle language_objc case.
3660 (integral_type, character_type, string_type, boolean_type,
3661 structured_type, binop_type_check): Ditto.
3662 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3663 (struct objc_specific): Add to general_symbol_info.
3664 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3665 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3666 * parser-defs.h (struct objc_class_str): New struct type.
3667 (start_msglist, end_msglist, add_msglist): Declaration only,
3668 exported from objc-lang.c.
3669 * value.h (value_of_local, value_nsstring,
3670 call_function_by_hand_expecting_type): Exported from valops.c.
3671 * valops.c (find_function_addr): Export.
3672 (call_function_by_hand_expecting_type): New function.
3673 (value_of_local): New function.
3674 * symfile.c (init_filename_language_table): Add ".m" extension
3675 for Objective-C.
3676 * utils.c (puts_filtered_tabular): New function.
3677 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3678 (set/show demangle): Extend help-string to refer to ObjC.
3679 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3680 * stabsread.c (symbol_reference_defined): Objective-C symbols
3681 may contain colons: make allowances when scanning stabs strings
3682 for colons.
3683 (objc_find_colon): New function.
3684 * printcmd.c (address_info): If language == objc then print
3685 "self" instead of "this".
3686 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3687 OP_NSSTRING, and OP_SELF.
3688 (prefixify_subexp): Ditto.
3689 * source.c (print_source_lines): Mention objc in comment.
3690 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3691 method names.
3692
b9caf505
AC
36932002-09-18 Andrew Cagney <ac131313@redhat.com>
3694
3695 * complaints.h: Update copyright.
3696 (struct complaints): Declare.
3697 (struct complaint): Make `message' constant.
3698 (internal_complaint): Declare.
3699 (complaint): Declare.
3700 (complaint_root): Delete declaration.
3701 (symfile_complaints): Delete declaration.
3702 (struct complaints): Add opaque declaration.
3703 (clear_complaints): Add a complaints parameter.
3704 * complaints.c: Update copyright.
3705 (enum complaint_series): Define.
3706 (complaint_root): Delete.
3707 (struct complaints): Define.
3708 (complaint_sentinel, symfile_complaint_book): New variables.
3709 (symfile_explanations, symfile_complaints): New variables.
3710 New variables.
3711 (get_complaints): New function.
3712 (vcomplaint): New function.
3713 (complaint): New function.
3714 (internal_complaint): New function.
3715 (complain): Call vcomplain with symfile_complaint.
3716 (clear_complaints): Rewrite.
3717 (_initialize_complaints): Use add_setshow_command.
3718 * Makefile.in (complaints.o): Update dependencies.
3719 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3720 to call to clear_complaints.
3721 (new_symfile_objfile, reread_symbols): Ditto.
3722 (oldsyms_complaint): Delete.
3723 (empty_symtab_complaint, unknown_option_complaint): Delete.
3724 (free_named_symtabs): Use complaint instead of complain.
3725
d2e6263c
MS
37262002-09-18 Michael Snyder <msnyder@redhat.com>
3727
5fb2031a
AC
3728 Contributed by Apple Computer, Inc. Merged with current sources
3729 by Adam Fedor <fedor@doc.com> [cagney].
3730
d2e6263c
MS
3731 * objc-lang.c: First clean-up round: comments, indentation.
3732 * objc-lang.h: Ditto.
3733 * objc-lang.y: Ditto.
3734
dec43320
AC
37352002-09-18 Andrew Cagney <ac131313@redhat.com>
3736
3737 * maint.c (maintenance_internal_error): Print the parameter as the
3738 error message.
3739 (maintenance_internal_warning): New function.
3740 (_initialize_maint_cmds): Add command `maint internal-warning'.
3741
3742 * defs.h (internal_warning, internal_vwarning): Declare.
3743 * utils.c (struct internal_problem): Define.
3744 (internal_vproblem): New function.
3745 (internal_warning): New function.
3746 (internal_vwarning): New function.
3747 (internal_warning_problem, internal_error_problem): New variables.
3748 (internal_verror): Just call internal_vproblem.
3749
b81654f1
MS
37502002-09-18 Michael Snyder <msnyder@redhat.com>
3751
3752 * objc-lang.c: New file, support for Objective-C.
3753 Preliminary check-in, not yet integrated into gdb.
3754 * objc-lang.h: New file.
3755 * objc-exp.y: New file.
3756
0542c381
AC
37572002-09-18 Andrew Cagney <ac131313@redhat.com>
3758
7bda5e4a
AC
3759 * infrun.c (signal_stop_update): Convert definition to ISO C.
3760 (signal_print_update): Ditto.
3761 (signal_pass_update): Ditto.
3762 * inflow.c (terminal_save_ours): Ditto.
3763
5247b418
AC
3764 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3765 comments.
3766
fc60962c
AC
3767 * config/djgpp/fnchange.lst: Handle name clashes between
3768 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3769 bfd/coff-tic80.c.
3770
0542c381
AC
3771 * i386-linux-tdep.h: Fix tipo.
3772
5b924b9b
AF
37732002-09-18 Adam Fedor <fedor@gnu.org>
3774
3775 * MAINTAINERS: Add myself to the Write After Approval list.
3776
5afc051b
JB
37772002-09-18 Jim Blandy <jimb@redhat.com>
3778
3779 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3780 texthigh and textlow to reader-specific structs caused
3781 objfile_relocate to miss them. This is fixable, but the work that
3782 the change was supposed to prepare GDB for never got done anyway.
3783
eb944380
DC
37842002-09-18 David Carlton <carlton@math.stanford.edu>
3785
3786 * MAINTAINERS: Alphabetize Write After Approval list.
3787
948e66d9
DJ
37882002-09-18 Daniel Jacobowitz <drow@mvista.com>
3789
3790 Fix PR gdb/709
3791 * values.c (value_static_field): Call read_var_value.
3792
dc604539
AC
37932002-09-18 Andrew Cagney <ac131313@redhat.com>
3794
3795 * valops.c (hand_function_call): Align the initial stack pointer
3796 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3797 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3798 return value.
3799 * mips-tdep.c (mips_frame_align): New function.
3800 (mips_gdbarch_init): Set frame_align.
3801 * gdbarch.sh (FRAME_ALIGN): New method.
3802 * gdbarch.h, gdbarch.c: Re-generate.
3803
cb7e422f
ML
38042002-09-18 Michal Ludvig <mludvig@suse.cz>
3805
3806 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3807 registers.
3808
a094c6fb
AC
38092002-09-17 Andrew Cagney <ac131313@redhat.com>
3810
3811 * NEWS: Mention that MIPS $fp behavior changed.
3812 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3813 reference to FP_REGNUM.
3814 (mipsnbsd_cannot_store_register): Ditto.
3815 * mips-linux-nat.c: Update copyright.
3816 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3817 (mips_linux_cannot_store_register): Ditto.
3818 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3819 * config/mips/tm-mips.h: Update copyright.
3820 (FP_REGNUM): Delete macro.
3821 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3822 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3823 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3824 (mips_r3041_reg_names, mips_r3051_reg_names)
3825 (mips_r3081_reg_names): Replace "fp" with "".
3826 Fix PR gdb/480.
3827
45cf40d1
TR
38282002-09-17 Theodore A. Roth <troth@verinet.com>
3829
3830 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3831 generic_read_register_dummy() (PR gdb/703).
3832 (avr_push_return_address): #if 0 out unused vars.
3833 (avr_gdbarch_init): Enable use of avr_push_return_address().
3834
c7e701b5
MS
38352002-09-17 Michael Snyder <msnyder@redhat.com>
3836
d76ba2a5 3837 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3838 RTE will take care of it.
3839
20bcf01c
AC
38402002-09-17 Andrew Cagney <ac131313@redhat.com>
3841
3842 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3843 invalid, return SP_REGNUM.
3844
009a9971 38452002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3846
3847 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3848 point registers without sign extension.
3849
135c175f
AC
38502002-09-17 Andrew Cagney <cagney@redhat.com>
3851
3852 * blockframe.c (deprecated_read_register_dummy): Rename
3853 generic_read_register_dummy.
3854 * frame.c (frame_unwind_signed_register): New function.
3855 (frame_unwind_unsigned_register): New function.
3856 * frame.h (frame_unwind_signed_register): Declare.
3857 (frame_unwind_unsigned_register): Declare.
3858 (deprecated_read_register_dummy): Rename
3859 generic_read_register_dummy.
3860
3861 * h8300-tdep.c (h8300_frame_chain): Update.
3862 (h8300_frame_saved_pc): Update.
3863 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3864 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3865 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3866 (s390_frame_chain): Update.
3867 * v850-tdep.c (v850_find_callers_reg): Update.
3868 (v850_frame_saved_pc): Update.
3869 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3870 (m32r_find_callers_reg): Update.
3871 (m32r_frame_saved_pc): Update.
3872 * sh-tdep.c (sh_find_callers_reg): Update.
3873 (sh64_get_saved_pr): Update.
3874 (sh_init_extra_frame_info): Update.
3875 (sh_init_extra_frame_info): Update.
3876 (sh64_init_extra_frame_info): Update.
3877 (sh64_init_extra_frame_info): Update.
3878 * mcore-tdep.c (mcore_find_callers_reg): Update.
3879 (mcore_frame_saved_pc): Update.
3880 (mcore_init_extra_frame_info): Update.
3881 * i386-tdep.c (i386_frame_saved_pc): Update.
3882 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3883 (ia64_init_extra_frame_info): Update.
3884 (ia64_init_extra_frame_info): Update.
3885 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3886 * cris-tdep.c (cris_init_extra_frame_info): Update.
3887 * avr-tdep.c (avr_frame_chain): Update.
3888 (avr_init_extra_frame_info): Update.
3889 (avr_frame_saved_pc): Update.
3890 * arm-tdep.c (arm_find_callers_reg): Update.
3891 (arm_init_extra_frame_info): Update.
3892 (arm_frame_saved_pc): Update.
3893
a741e514
TT
38942002-09-17 Tom Tromey <tromey@redhat.com>
3895
3896 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3897 is "'".
3898
d1a8e808
CV
38992002-09-17 Corinna Vinschen <vinschen@redhat.com>
3900
3901 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3902 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3903 NEXT_PROLOGUE_INSN.
3904 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3905 NEXT_PROLOGUE_INSN.
3906
d9025a18
JB
39072002-09-16 Joel Brobecker <brobecker@gnat.com>
3908
3909 * osfsolib.c: Remove file, replaced by solib-osf.c.
3910 * Makefile.in: Remove compilation rules for osfsolib.c.
3911
1b2ef1b6
DC
39122002-09-16 David Carlton <carlton@math.stanford.edu>
3913
3914 * cp-valprint.c (cp_print_class_method): Correct args to
3915 check_stub_method_group.
3916
928e48af
CV
39172002-09-16 Corinna Vinschen <vinschen@redhat.com>
3918
3919 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3920 `set architecture'. Unify naming convention of functions.
3921 (h8300_skip_prologue): Improve prologue analysis.
3922 (h8300_push_arguments): Rewritten to more closely match GCC's
3923 bizarre argument-passing behavior, along with the comment describing
3924 said behavior.
3925 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3926 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3927 sim, remote-e7000.c, remote-hms.c and remote.c
3928
5e3397bb
MK
39292002-09-15 Mark Kettenis <kettenis@gnu.org>
3930
3931 * i386-tdep.c (gdb_print_insn_i386): Removed.
3932 (i386_print_insn): New function.
3933 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3934 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3935 tm_print_insn_info.
3936
f710f4fc
MK
39372002-09-14 Mark Kettenis <kettenis@gnu.org>
3938
3939 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3940 zero.
3941
db54fef4
CV
39422002-09-14 Corinna Vinschen <vinschen@redhat.com>
3943
3944 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3945 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3946 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3947
2becadee
CF
39482002-09-13 Christopher Faylor <cgf@redhat.com>
3949
3950 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3951
de17c821
DJ
39522002-09-13 Daniel Jacobowitz <drow@mvista.com>
3953
3954 * gdbtypes.c (check_stub_method): Make static.
3955 (check_stub_method_group): New function.
3956 * gdbtypes.h: Update prototypes.
3957 * cp-support.c: New file.
3958 * cp-support.h: New file.
3959
3960 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3961 (update_method_name_from_physname): New function.
3962 (read_member_functions): Correct method names for operators
3963 and v3 constructors/destructors. Separate v2 constructors and
3964 destructors.
3965 * Makefile.in (stabsread.o): Update dependencies.
3966 (SFILES): Add cp-support.c.
3967 (COMMON_OBS): Add cp-support.o.
3968 (cp_support_h, cp-support.o): Add.
3969
3970 * cp-valprint.c (cp_print_class_method): Call
3971 check_stub_method_group instead of check_stub_method. Remove
3972 extraneous QUITs.
3973 * p-valprint.c (pascal_object_print_class_method): Likewise.
3974 * valops.c (search_struct_method): Likewise.
3975 (find_method_list, value_struct_elt_for_reference): Likewise.
3976
e76cff22
AC
39772002-09-13 Andrew Cagney <cagney@redhat.com>
3978
3979 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3980 * gdbarch.h, gdbarch.c: Regenerate.
3981
905abb3f
AC
39822002-09-13 Andrew Cagney <ac131313@redhat.com>
3983
3984 * frame.c (find_saved_register): Delete function.
3985 * frame.h (find_saved_register): Delete declaration.
3986 Fix PR gdb/631.
3987
64159455
AC
3988Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3989
3990 * mips-tdep.c (read_next_frame_reg): Re-hack using
3991 frame_register_unwind.
3992
795e1e11
AC
3993Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3994
3995 * mips-tdep.c (mips_get_saved_register): Re-hack using
3996 frame_register_unwind.
3997
5720643c
JB
39982002-09-12 Joel Brobecker <brobecker@gnat.com>
3999
4000 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4001 vector. Will be useful for Interix.
4002 * gdbarch.h, gdbarch.c: Regenerate.
4003
4004 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4005 name of the malloc function by NAME_OF_MALLOC.
4006
3bada2a2
JB
40072002-09-12 Joel Brobecker <brobecker@gnat.com>
4008
4009 * value.h (find_function_in_inferior): Add const keyword to
4010 one of the parameters. Allows us to invoke this function with
4011 a const char *.
4012 * valops.c (find_function_in_inferior): Likewise.
4013
3db26b01
JB
40142002-09-12 Joel Brobecker <brobecker@gnat.com>
4015
4016 * exec.c (xfer_memory): Fix compilation warning with old versions
4017 of GCC.
4018 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4019
17c5ed2c
DC
40202002-09-12 David Carlton <carlton@math.stanford.edu>
4021
4022 * symtab.h: Run through gdb_indent.h.
4023 Add 2002 to Copyright year list.
4024
ecd1107e
AM
40252002-09-12 Alan Modra <amodra@bigpond.net.au>
4026
4027 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4028 mach constants.
4029 * MAINTAINERS: Add myself to write after approval list.
4030
e64f66d1
JB
40312002-09-11 J. Brobecker <brobecker@gnat.com>
4032
4033 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4034
f9395794
JB
40352002-09-11 J. Brobecker <brobecker@gnat.com>
4036
4037 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4038 Interix.
4039
1a303dec
MS
40402002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4041
4042 * procfs.c (do_detach): Clear current signal, not just fault.
4043 Corrects problem with breakpoint trap signal leaking to detached
4044 process on Tru64.
4045
c0219d42
MS
40462002-09-10 Michael Snyder <msnyder@redhat.com>
4047
4048 * buildsym.c (finish_block): Protect against null pointer.
4049
9d84ac84
AC
40502002-09-10 Andrew Cagney <cagney@redhat.com>
4051
4052 * infcmd.c (default_print_registers_info): Send all output to
4053 ``file'' instead of ``gdb_stdout''.
4054
77d8f2b4
MS
40552002-09-10 Michael Snyder <msnyder@redhat.com>
4056
4057 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4058 LONGEST, and use signed register read (addresses are sign-
4059 extended for mips).
4060
99656a61
SC
40612002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4062
4063 * event-loop.c (gdb_do_one_event): Make public.
4064 * event-loop.h (gdb_do_one_event): Declare.
4065
da12f4d8
JL
40662002-09-10 Jeff Law <law@redhat.com>
4067
4068 * infttrace.c (child_resume): Simplify and rework to avoid
4069 TT_PROC_CONTINUE.
4070
d0aee0c4
FF
40712002-09-09 Fred Fish <fnf@intrinsity.com>
4072
4073 * printcmd.c (print_scalar_formatted): "len" is the number of
4074 target bytes, NOT the number of target bits.
4075
7cb3ec5e
EZ
40762002-09-09 Elena Zannoni <ezannoni@redhat.com>
4077
4078 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4079 * top.c (init_main): Set rl_terminal_name.
4080
4dc81987
AS
40812002-09-08 Aidan Skinner <aidan@velvet.net>
4082
4083 * ada-lang.c (ada_array_bound, ada_type_match,
4084 _initialize_ada_language): Fix K&R definitions.
4085 * ada-tasks.c (get_current_task): Fix K&R definitions.
4086 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4087
842330b4
CF
40882002-09-07 Christopher Faylor <cgf@redhat.com>
4089
4090 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4091 Add XP.
4092
43156d82
MK
40932002-09-06 Mark Kettenis <kettenis@gnu.org>
4094
66da5fd8
MK
4095 * i386-tdep.c (i386_register_virtual_type,
4096 i386_register_convertible, i386_register_convert_to_virtual,
4097 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4098 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4099 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4100 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4101 Don't set push_arguments twice.
4102
4b218c18
MK
4103 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4104 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4105 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4106 sigtramp_end to NULL.
4107 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4108 defines.
4109 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4110
4cc314d5
MK
4111 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4112 whitespace.
4113
43156d82
MK
4114 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4115 * gdbarch.h, gdbarch.c: Re-generate.
4116 * blockframe.c (find_pc_sect_partial_function): Convert to use
4117 SIGTRAMP_START_P predicate.
4118
6672060b
MS
41192002-09-05 Michael Snyder <msnyder@redhat.com>
4120
a90c3637
MS
4121 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4122 generic_dummy_frame method and old method. Also distinguish
4123 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4124 (arm_extract_return_value): Use new regcache method.
a90c3637 4125
6672060b
MS
4126 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4127 adjustment that doesn't conform to the ABI.
4128 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4129 saved regcache, not from current regcache.
4130
299ffc64
AC
41312002-09-05 Andrew Cagney <ac131313@redhat.com>
4132
4133 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4134 * README: Update.
4135
a3a2ee65
JT
41362002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4137
4138 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4139 if arm_apcs_32 is false.
4140
2bc7eea9
AC
41412002-09-04 Andrew Cagney <ac131313@redhat.com>
4142
4143 GDB 5.3 branch created.
4144
8a55a7c5
TR
41452002-09-03 Theodore A. Roth <troth@verinet.com>
4146
4147 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4148 generic_unwind_get_saved_register.
4149
e26fb1d7
DC
41502002-09-03 David Carlton <carlton@math.stanford.edu>
4151
4152 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4153 argument (PR gdb/653). Update call to smash_to_method_type.
4154 (read_structure_scope): Update call to dwarf2_add_member_fn.
4155
30d52491
ML
41562002-09-03 Michal Ludvig <mludvig@suse.cz>
4157
4158 * x86-64-linux-tdep.c: Include gdb_string.h
4159 * x86-64-linux-nat.c: Ditto.
4160
06891d83
JT
41612002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4162
4163 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4164 when YYDEBUG is set to 1.
4165 * c-exp.y: Likewise.
4166 * f-exp.y: Likewise.
4167 * jv-exp.y: Likewise.
4168 * m2-exp.y: Likewise.
4169 * p-exp.y: Likewise.
4170
7d400e77
JT
41712002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4172
4173 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4174 dependency list.
4175 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4176 solib_svr4_fetch_link_map_offsets to
4177 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4178 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4179 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4180 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4181 solib-svr4.o, and solib-legacy.o.
4182 * config/i386/tm-nbsd.h: Include solib.h.
4183
704a27c4
JT
41842002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4185
4186 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4187 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4188 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4189 comment noting that this needs its own target configuration.
4190 * config/i386/nbsd.mt: New file.
4191 * config/i386/nbsdaout.mt: Remove.
4192 * config/i386/nbsdelf.mt: Ditto.
4193 * config/i386/tm-nbsdaout.h: Ditto.
4194
d66198e1
JT
41952002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4196
4197 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4198 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4199 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4200 tdep->sigtramp_end.
4201 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4202 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4203 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4204
3cac699e
JT
42052002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4206
4207 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4208 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4209 * i386-tdep.h (i386bsd_init_abi): New prototype.
4210 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4211 function declaration.
4212 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4213 for NetBSD-a.out or NetBSD-ELF.
4214 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4215 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4216 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4217 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4218 and nbsd-tdep.h.
4219 (i386nbsd_pc_in_sigtramp): New function.
4220 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4221 i386nbsd_pc_in_sigtramp.
4222 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4223 and i386nbsdelf_init_abi OS ABI handlers.
4224 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4225 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4226
7010ca0a
MK
42272002-09-02 Mark Kettenis <kettenis@gnu.org>
4228
4229 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4230 registers if the target really has them.
4231
6dd93b72
JT
42322002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4233
4234 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4235 than nbsd-tdep.h.
4236
2ca8ae21
JT
42372002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4238
4239 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4240 list.
4241 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4242 (alphanbsd_skip_sigtramp_frame): New functions.
4243 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4244 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4245 to alphanbsd_sigcontext_addr.
4246
3d9b49b0
JT
42472002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4248
4249 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4250 list.
4251 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4252 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4253 nbsd_pc_in_sigtramp.
4254 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4255 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4256 * nbsd-tdep.c: Include gdb_string.h.
4257 (nbsd_pc_in_sigtramp): New function.
4258 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4259 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4260 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4261 ppcnbsd_pc_in_sigtramp.
4262 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4263 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4264 shnbsd_pc_in_sigtramp.
4265 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4266 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4267 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4268
c860120c
PM
42692002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4270
4271 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4272 watchpoints to NULL.
4273 (insert_breakpoints): set val field of watchpoints if NULL.
4274
4275
c7612d53
JB
42762002-08-29 Jim Blandy <jimb@redhat.com>
4277
4278 * symtab.c (lookup_symbol_aux): In the cases where we find a
4279 minimal symbol of an appropriate name and use its address to
4280 select a symtab to read and search, use `name' (as passed to us)
4281 as the demangled name when searching the symtab's global and
4282 static blocks, not the minsym's name.
4283
66609862
KS
42842002-08-29 Keith Seitz <keiths@redhat.com>
4285
4286 * stack.c (print_frame_info_base): Always set current_source_symtab
4287 and current_source_line.
4288
151fefe2
JB
42892002-08-29 Donn Terry <donnte@microsoft.com>
4290
4291 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4292
bfb3754e
KS
42932002-08-28 Keith Seitz <keiths@redhat.com>
4294
4295 * stack.c (select_frame): Add FIXME concerning selected-frame
4296 events.
4297 (select_frame_command): Send selected-frame-level-changed
4298 event notification, but only if the level actually changed.
4299 (up_silently_base): Add selected-frame-level-changed event
4300 notification.
4301 (down_silently_base): Likewise.
4302
e822a2a0
AC
43032002-08-28 Andrew Cagney <ac131313@redhat.com>
4304
4305 * Makefile.in: Update dependencies for all gdb/*.c files.
4306
309367d4
TT
43072002-08-27 Tom Tromey <tromey@redhat.com>
4308
4309 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4310 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4311 Update dependencies.
4312 * i387-tdep.c: Include gdb_string.h.
4313 * osabi.c: Likewise.
4314 * i386-linux-nat.c: Likewise.
4315 * lin-lwp.c: Likewise.
4316 * ax-gdb.c: Likewise.
4317 * signals/signals.c: Likewise.
4318 * jv-valprint.c: Likewise.
4319 * p-lang.c: Likewise.
4320 * c-valprint.c: Likewise.
4321 * cp-abi.c: Likewise.
4322
e1507482
EZ
43232002-08-27 Elena Zannoni <ezannoni@redhat.com>
4324
4325 * cli/cli-script.h (copy_command_lines): Export.
4326 * breakpoint.c: Include cli/cli-script.h.
4327 * Makefile.in (breakpoint.o): Update dependencies.
4328
c6510018
MS
43292002-08-26 Michael Snyder <msnyder@redhat.com>
4330
4331 * breakpoint.c (insert_breakpoints): Protect all references
4332 to 'process_warning'. Shorten long lines.
4333
c2b8ed2c
MS
43342002-08-26 Joel Brobecker <brobecker@gnat.com>
4335
4336 * cli/cli-script.c (copy_command_lines): New function.
4337 * defs.h (copy_command_lines): Export.
4338 * testsuite/gdb.base/commands.exp: New tests for commands
4339 attached to a temporary breakpoint, and for commands that
4340 delete the breakpoint they are attached to.
4341
43422002-08-26 Michael Snyder <msnyder@redhat.com>
4343
4344 * breakpoint.c (bpstat_stop_status): Instead of copying the
4345 pointer to the breakpoint commands struct, make a new copy
4346 of the struct and point to that.
4347 (bpstat_clear): Free the commands struct.
4348 (bpstat_clear_actions): Free the commands struct.
4349 (bpstat_do_actions): Free the command actions. Also execute
4350 the local cleanups, instead of deleting them.
4351 (delete_breakpoint): Leave the commands field of the bpstat
4352 chain alone -- it will be freed later.
4353
64b84175
KB
43542002-08-26 Kevin Buettner <kevinb@redhat.com>
4355
4356 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4357 deleted in 2002-08-20 commit. This function is still used by
4358 ppc-linux-nat.c.
4359
55970da6
KS
43602002-08-26 Keith Seitz <keiths@redhat.com>
4361
4362 * gdb-events.sh: Add selected-frame-level-changed event.
4363 * gdb-events.c: Regenerated.
4364 * gdb-events.h: Regenerated.
4365
a790ad35
SC
43662002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4367
4368 Fix PR gdb/393:
4369 * inflow.c (terminal_save_ours): New function to save terminal
4370 settings.
4371 * inferior.h (terminal_save_ours): Declare.
4372 * target.c (debug_to_terminal_save_ours): New function.
4373 (cleanup_target): Defaults to_terminal_save_ours.
4374 (update_current_target): Inherit to_terminal_save_ours.
4375 (setup_target_debug): Set to_terminal_save_ours.
4376 * target.h (target_terminal_save_ours): New to save terminal settings.
4377 (target_ops): New member to_terminal_save_ours.
4378 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4379 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4380 * inftarg.c (init_child_ops): Likewise.
4381 * m3-nat.c (init_m3_ops): Likewise.
4382 * procfs.c (init_procfs_ops): Likewise.
4383 * wince.c (init_child_ops): Likewise.
4384 * win32-nat.c (init_child_ops): Likewise.
4385 * sol-thread.c (init_sol_thread_ops): Likewise.
4386
c00dcbe9
MK
43872002-08-26 Mark Kettenis <kettenis@gnu.org>
4388
3d7f4f49
MK
4389 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4390 use regcache_* functions.
4391 (i386_gdbarch_init): Set store_return_value instead of
4392 deprecated_store_return_value.
4393
c00dcbe9
MK
4394 * regcache.c (regcache_raw_write_signed,
4395 regcache_raw_write_unsigned): New functions.
4396 * regcache.h (regcache_raw_write_signed,
4397 regcache_raw_write_unsigned): New prototypes.
4398
0e0d15ca
AC
43992002-08-25 Andrew Cagney <ac131313@redhat.com>
4400
4401 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4402 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4403 source file dependencies. Cleanup corresponding generator rules.
4404
d3b22ed5
AC
44052002-08-25 Andrew Cagney <ac131313@redhat.com>
4406
4407 * regcache.h (register_offset_hack): Declare.
4408 (regcache_cooked_read_using_offset_hack): Declare.
4409 (regcache_cooked_write_using_offset_hack): Declare.
4410
4411 * regcache.c (register_offset_hack): New function.
4412 (regcache_cooked_read_using_offset_hack): New function.
4413 (regcache_cooked_write_using_offset_hack): New function.
4414 (regcache_dump): Check that the registers, according to their
4415 offset, are packed hard against each other.
4416 (cooked_xfer_using_offset_hack): New function.
4417
bb425013
AC
44182002-08-25 Andrew Cagney <ac131313@redhat.com>
4419
4420 * regcache.c (struct regcache_descr): Add field register_type.
4421 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4422 in as a parameter
4423 (init_regcache_descr): Initialize register_type. Pass the descr
4424 to init_legacy_regcache_descr. Use register_type instead of
4425 REGISTER_VIRTUAL_TYPE.
4426 (register_type): New function.
4427 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4428 * regcache.h (register_type): Declare.
4429
d0403e00
AC
44302002-08-25 Andrew Cagney <ac131313@redhat.com>
4431
4432 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4433 instead of deprecated_store_return_value. Fix fallout from
4434 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4435
0ed04cce
AC
44362002-08-25 Andrew Cagney <ac131313@redhat.com>
4437
4438 * regcache.c (max_register_size): New function.
4439 (init_legacy_regcache_descr): Ensure that max_register_size is
4440 large enough for REGISTER_VIRTUAL_SIZE.
4441 * regcache.h (max_register_size): Declare.
4442
46d79c04
AC
44432002-08-24 Andrew Cagney <ac131313@redhat.com>
4444
4445 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4446 store_return_value.
4447 (e500_extract_return_value): Change type of valbuf pointer to
4448 void.
4449
853c7bd0
MK
44502002-08-24 Mark Kettenis <kettenis@gnu.org>
4451
cd87e769
MK
4452 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4453 workaround.
4454
853c7bd0
MK
4455 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4456 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4457 long long) to prevent compiler warning on 64-bit systems.
4458
ebba8386
AC
44592002-08-23 Andrew Cagney <cagney@redhat.com>
4460
4461 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4462 (DEPRECATED_STORE_RETURN_VALUE): New method.
4463 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4464 * gdbarch.h, gdbarch.c: Re-generate.
4465
4466 * values.c (set_return_value): Pass current_regcache to
4467 STORE_RETURN_VALUE.
4468 * arch-utils.h (legacy_store_return_value): Declare.
4469 * arch-utils.c (legacy_store_return_value): New function.
4470 (legacy_extract_return_value): Update parameters.
4471
4472 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4473 STORE_RETURN_VALUE.
4474 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4475 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4476 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4477 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4478 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4479 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4480 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4481 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4482 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4483 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4484
4485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4486 * i386-tdep.c (i386_extract_return_value): Update.
4487 * arch-utils.c (legacy_extract_return_value): Update.
4488 * frv-tdep.c (frv_gdbarch_init): Update.
4489 * cris-tdep.c (cris_gdbarch_init): Update.
4490 * d10v-tdep.c (d10v_gdbarch_init): Update.
4491 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4492 * m68k-tdep.c (m68k_gdbarch_init): Update.
4493 * mcore-tdep.c (mcore_gdbarch_init): Update.
4494 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4495 * s390-tdep.c (s390_gdbarch_init): Update.
4496 * sparc-tdep.c (sparc_gdbarch_init): Update.
4497 * sh-tdep.c (sh_gdbarch_init): Update.
4498 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4499 * v850-tdep.c (v850_gdbarch_init): Update.
4500 * avr-tdep.c (avr_gdbarch_init): Update.
4501 * ia64-tdep.c (ia64_gdbarch_init): Update.
4502 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4503 * vax-tdep.c (vax_gdbarch_init): Update.
4504 * alpha-tdep.c (alpha_gdbarch_init): Update.
4505 * arm-tdep.c (arm_gdbarch_init): Update.
4506 * mips-tdep.c (mips_gdbarch_init): Update.
4507 * i386-tdep.c (i386_gdbarch_init): Update.
4508
5bd8c6d0
AC
45092002-08-23 Andrew Cagney <ac131313@redhat.com>
4510
4511 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4512 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4513
e73e1724
MK
45142002-08-24 Mark Kettenis <kettenis@gnu.org>
4515
4516 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4517 problems.
4518
3e6564e1
JB
45192002-08-23 Joel Brobecker <brobecker@gnat.com>
4520
4521 * infrun.c (handle_inferior_event): Move a comment outside of a
4522 function call, in order to avoid indent reformatting this part
4523 of the code in an unreadable way.
4524
81d0cc19
GS
45252002-08-23 Grace Sainsbury <graces@redhat.com>
4526
4527 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4528 when breakpoints fail. Move general breakpoint error messages to
4529 insert_breakpoints.
4530 * breakpoint.c (insert_breakpoints): Change warnings when
4531 breakpoints are nto inserted to specify the type. Remove call to
4532 memory_error when hardware breakpoints can't be inserted. Remove
4533 multiple calls to warning so all messages are sent to the user at
4534 once.
4535 (delete_breakpoints): Make insert error messsages more explicit.
4536
17574093
DJ
45372002-08-23 Daniel Jacobowitz <drow@mvista.com>
4538
4539 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4540 gdbserver/ChangeLog.
4541
8acc2935
MK
45422002-08-23 Mark Kettenis <kettenis@gnu.org>
4543
dfe01d39
MK
4544 * i386-tdep.c: Include "objfiles.h".
4545 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4546 skip_trampoline_code.
4547 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4548 (CPLUS_MARKER): Define to '.'.
4549
8acc2935
MK
4550 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4551 member.
4552 (linux_corefile_thread_callback): Increase args->num_notes.
4553 (linux_make_note_section): Initialize thread_args.num_notes, and
4554 use it to determine whether notes for any threads were created.
4555
151fefe2 45562002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4557
4558 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4559 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4560 and PCUNKILL.
4561 (write_with_trace): Conditionalize out the switch branch handling
4562 PCSHOLD if the corresponding macro is not defined. Likewise for
4563 PRSABORT and PRSTOP.
4564 This change will be needed by the Interix port.
4565
e1507482
EZ
45662002-08-22 Elena Zannoni <ezannoni@redhat.com>
4567
4568 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4569 write_register wherever possible instead of manipulating the
4570 register bytes directly.
4571 Assign VALUE_CONTENTS to a variable and use that.
4572 The GPR numbers are now dependent on the architecture.
4573
96ff0de4
EZ
45742002-08-22 Elena Zannoni <ezannoni@redhat.com>
4575
4576 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4577 ev_offset fields.
4578 (skip_prologue): Add support for BookE/e500 instructions.
4579 (e500_extract_return_value): New function.
4580 (frame_get_saved_regs): Add support for saving ev registers and
4581 pseudo gpr's.
4582 (e500_store_return_value): New function.
4583 (rs6000_gdbarch_init): Move up default intializations of
4584 deprecated_extract_return_value and store_return_value. Overwrite
4585 init of store_return_value with e500 specific version.
4586 Set extract_return_value for e500.
4587
fbefca5b
EZ
45882002-08-22 Elena Zannoni <ezannoni@redhat.com>
4589
4590 * blockframe.c (generic_call_dummy_register_unwind): Use
4591 regcache_cooked_read to catch cases in which the variable is
4592 stored in a pseudo register.
4593
4d210288
AC
45942002-08-22 Andrew Cagney <cagney@redhat.com>
4595
4596 * NEWS: Mention that the i960 has been made obsolete.
4597 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4598 i960-tdep.c
4599 (remote-nrom.o): Obsolete target.
4600 (remote-nindy.o, i960-tdep.o): Ditto.
4601 * remote-nrom.c: Make file obsolete.
4602 * remote-nindy.c, remote-vx960.c: Ditto.
4603 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4604 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4605 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4606 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4607 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4608 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4609 i960-*-vxworks* obsolete.
4610 * MAINTAINERS: Note that the i960 is obsolete.
4611
6c0c456d
CV
46122002-08-21 Corinna Vinschen <vinschen@redhat.com
4613
4614 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4615 detach to allow reinitialization.
4616
9f9d12b3
AC
46172002-08-22 Andrew Cagney <ac131313@redhat.com>
4618
4619 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4620 attempt).
4621
ebeb39fe
JB
46222002-08-22 Jim Blandy <jimb@redhat.com>
4623
4624 * coffread.c (coff_symfile_read): Don't try to read the line
4625 number table from disk if the image file doesn't have a symbol
4626 table; we'll never actually look at the info anyway, and Windows
4627 ships DLL's with bogus file offsets for the line number data.
4628
5bf1c677
EZ
46292002-08-21 Elena Zannoni <ezannoni@redhat.com>
4630
4631 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4632 an e500 executable.
4633
71b8ef93
MS
46342002-08-21 Michael Snyder <msnyder@redhat.com>
4635
4636 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4637 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4638 (DEFAULT_MIPS_TYPE): Delete unused macro.
4639 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4640 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4641
d174216d
JB
46422002-08-21 Jim Blandy <jimb@redhat.com>
4643
4644 * valops.c (value_cast): Simplify and correct logic for doing a
4645 static cast from a pointer to a base class to a pointer to a
4646 derived class.
4647
0ab7a791
AC
46482002-08-21 Andrew Cagney <ac131313@redhat.com>
4649
4650 * infcmd.c (default_print_registers_info): Replace
4651 do_registers_info.
4652 (registers_info): Use gdbarch_print_registers_info instead of
4653 DO_REGISTERS_INFO.
4654 * inferior.h (default_print_registers_info): Replace
4655 do_registers_info.
4656 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4657 (DO_REGISTERS_INFO): Change to a predicate function.
4658 * gdbarch.h, gdbarch.c: Regenerate.
4659
e23792cc
KS
46602002-08-21 Keith Seitz <keiths@redhat.com>
4661
4662 * gdb-events.sh: Add target-changed event.
4663 * gdb-events.c: Regenerated.
4664 * gdb-events.c: Regenerated.
4665 * valops.c (value_assign): Add target-changed event notification
4666 to inlval_register, lval_memory, and lval_reg_frame_relative.
4667
9fb14e79
JB
46682002-08-21 Joel Brobecker <brobecker@gnat.com>
4669
4670 * NEWS: Add an entry regarding the improvement of the next/step
4671 operation on Alpha Tru64 multi-processor machines.
4672
6d39a69f
AC
46732002-08-21 Andrew Cagney <ac131313@redhat.com>
4674
72acd513
AC
4675 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4676 directores.
342af04b 4677 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4678 * Makefile.in (install-gdbtk): Move to install section.
4679 (rdi-share/libangsd.a): Move to end of file.
4680
fa5f27c7
AC
46812002-08-19 Andrew Cagney <ac131313@redhat.com>
4682
4683 * frame.c (frame_register_unwind): When a register, set addrp to
4684 the register's byte.
4685
5a89d8aa
MS
46862002-08-20 Michael Snyder <msnyder@redhat.com>
4687
4688 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4689 used locally, so move them from the target machine header to here.
4690 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4691 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4692 Make static.
4693 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4694
822e978b
AC
46952002-08-20 Andrew Cagney <cagney@redhat.com>
4696
4697 * NEWS: Mention that the Apollo line was made obsolete.
4698 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4699 m68*-hp-hpux* obsolete.
4700 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4701 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4702 * buildsym.c (make_blockvector): Make static.
4703 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4704 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4705 (ALLDEPFILES): Remove dstread.c.
4706 (dstread.o): Obsolete make rule.
4707 * dstread.c: Makefile obsolete.
4708 * dst.h: Ditto.
4709 * config/m68k/hp300hpux.mt: Ditto.
4710 * config/m68k/hp300hpux.mh: Ditto.
4711 * config/m68k/hp300bsd.mt: Ditto.
4712 * config/m68k/hp300bsd.mh: Ditto.
4713 * config/m68k/apollo68b.mt: Ditto.
4714 * config/m68k/apollo68v.mh: Ditto.
4715 * config/m68k/apollo68b.mh: Ditto.
4716
e41b17f0
MS
47172002-08-20 Michael Snyder <msnyder@redhat.com>
4718
4719 * mips-tdep.c (mips_in_return_stub): Make static.
4720 (mips_gdbarch_init): Set in_solib_return_trampoline.
4721 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4722
d50355b6
MS
47232002-08-20 Michael Snyder <msnyder@redhat.com>
4724
4725 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4726 * gdbarch.c, gdbarch.h: Regenerate.
4727 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4728 Add.
4729 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4730
757a7cc6
MS
47312002-08-20 Michael Snyder <msnyder@redhat.com>
4732
4733 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4734 (mips_gdbarch_init): Set skip_trampoline_code,
4735 in_solib_call_trampoline.
4736 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4737 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4738
c8001721
EZ
47392002-08-20 Elena Zannoni <ezannoni@redhat.com>
4740
4741 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4742
4743 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4744 vector type for ev registers.
4745 (e500_pseudo_register_read): New function.
4746 (e500_pseudo_register_write): New function.
4747 (e500_dwarf2_reg_to_regnum): New function.
4748 (PPC_UISA_NOFP_SPRS): New macro.
4749 (PPC_EV_REGS): New macro.
4750 (PPC_GPRS_PSEUDO_REGS): New macro.
4751 (registers_e500): New register set for e500.
4752 (variants): Add e500 variant.
4753 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4754 before setting architectural dependent variations. Initialize ev
4755 registers numbers. Add case for e500 architecture. Set the
4756 number of pseudo registers.
4757
64366f1c
EZ
47582002-08-20 Elena Zannoni <ezannoni@redhat.com>
4759
4760 * rs6000-tdep.c: Clean up comments.
4761
7e78f0ca
AC
47622002-08-20 Andrew Cagney <cagney@redhat.com>
4763
4764 * h8300-tdep.c: Re-indent file.
4765
697f7479
JB
47662002-08-20 Jim Blandy <jimb@redhat.com>
4767
4768 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4769 default for this.
697f7479 4770
e86ae29f
KS
47712002-08-20 Keith Seitz <keiths@redhat.com>
4772
4773 * breakpoints.c (watch_command_1): Use internal breakpoint
4774 when setting a watchpoint_scope breakpoint.
4775
216b504f
EZ
47762002-08-20 Elena Zannoni <ezannoni@redhat.com>
4777
4778 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4779 (build_builtin_type_vec64i): Ditto.
4780 (build_builtin_type_vec128): Ditto.
4781 (build_builtin_type_vec128i): Ditto.
4782
f7ab6ec6
MS
47832002-08-19 Michael Snyder <msnyder@redhat.com>
4784
4785 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4786 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4787 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4788 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4789 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4790 CALL_DUMMY_ADDRESS): Delete.
4791 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4792 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4793 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4794 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4795 push_return_address.
4796 (mips_register_raw_size, mips_eabi_use_struct_convention,
4797 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4798 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4799 mips_init_extra_frame_info, mips_eabi_push_arguments,
4800 mips_n32n64_push_arguments, mips_push_return_address,
4801 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4802 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4803
b5d1566e
MS
48042002-08-19 Michael Snyder <msnyder@redhat.com>
4805
4806 * mips-tdep.c (mips_frame_num_args): New function.
4807 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4808 frame_saved_pc, frame_args_address, frame_locals_address,
4809 frame_num_args, and frame_args_skip.
4810 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4811 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4812 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4813 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4814
2f1488ce
MS
48152002-08-20 Michael Snyder <msnyder@redhat.com>
4816
4817 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4818 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4819 * mips-tdep.c (mips_store_struct_return): New function.
4820 (mips_extract_struct_value_address): New function.
4821 (mips_gdbarch_init): Set store_struct_return and
4822 extract_struct_value_address.
4823
41ff2da1
DC
48242002-08-20 David Carlton <carlton@math.stanford.edu>
4825
4826 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4827 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4828 (read_file_scope): Check that line_header is nonzero before
4829 decoding macro information.
4830
e5451d58
MK
48312002-08-20 Mark Kettenis <kettenis@gnu.org>
4832
4833 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4834 flag the general-purpose registers as floating-point on targets
4835 that don't support the floating-point registers.
4836
4a6daafa
EZ
48372002-08-20 Elena Zannoni <ezannoni@redhat.com>
4838
4839 * rs6000-tdep.c (altivec_register_p): Delete.
4840 (rs6000_do_altivec_registers): Delete.
4841 (rs6000_altivec_registers_info): Delete.
4842 (rs6000_do_registers_info): Delete.
4843 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4844 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4845
ab4327e0
EZ
48462002-08-20 Elena Zannoni <ezannoni@redhat.com>
4847
4848 * infcmd.c (do_registers_info): Print vector registers in hex
4849 format only.
4850 (print_vector_info): Check that printing registers
4851 makes sense.
4852 (print_float_info): Ditto.
4853
cb1d2653
AC
48542002-08-20 Andrew Cagney <ac131313@redhat.com>
4855
4856 * mips-tdep.c (mips_gdbarch_init): Update.
4857 (mips_o32_extract_return_value): Rewrite.
4858 (mips_o32_store_return_value): Rewrite.
4859 (mips_o32_xfer_return_value): New function.
4860 (mips_xfer_register): Tweak debug print message. Allow for
4861 buf_offset when dumping the value transfered.
4862
dfc3d9b2
AC
48632002-08-20 Andrew Cagney <ac131313@redhat.com>
4864
4865 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4866 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4867 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4868 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4869 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4870
7807aa61
MS
48712002-08-14 Michael Snyder <msnyder@redhat.com>
4872
4873 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4874
489461e2
EZ
48752002-08-19 Elena Zannoni <ezannoni@redhat.com>
4876
4877 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4878 register.
4879 (P): New macro to define a register as a pseudo register.
4880 (R, R4, R8, R16, FR32, R64, R0): Updated.
4881 (struct variant): Add new fields for number of pseudo registers
4882 and number of total registers.
4883 (tot_num_registers): New macro replacing....
4884 (num_registers): ...deleted macro.
4885 (num_registers): New function.
4886 (num_pseudo_registers): New function.
4887 (variants): Update all variants to intialize new fields correctly.
4888 Postpone initialization of number of pseudo regs and real regs.
4889 (init_variants): New function.
4890 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4891 registers offsets.
4892
fcaffe4c
DC
48932002-08-19 David Carlton <carlton@math.stanford.edu>
4894
2c2738a0
DC
4895 * valops.c (search_struct_field): Change error message to treat
4896 return value of 0 from value_static_field as meaning that field is
4897 optimized out.
4898 (value_struct_elt_for_reference): Ditto.
4899 * values.c (value_static_field): Treat an unresolved location the
4900 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4901 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4902 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4903 * MAINTAINERS: Add self to Write After Approval list.
4904
88658117
AC
49052002-08-19 Andrew Cagney <ac131313@redhat.com>
4906
4907 * mips-tdep.c (mips_xfer_register): New function.
4908 (mips_n32n64_extract_return_value): Rewrite.
4909 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4910 instead of deprecated_extract_return_value.
4911
21283beb
EZ
49122002-08-19 Elena Zannoni <ezannoni@redhat.com>
4913
4914 * rs6000-tdep.c (TDEP): Delete macro.
4915 (branch_dest): Replace use of TDEP macro with its body.
4916 (rs6000_pop_frame): Ditto.
4917 (rs6000_push_arguments): Ditto.
4918 (rs6000_skip_trampoline_code): Ditto.
4919 (rs6000_frame_saved_pc): Ditto.
4920 (rs6000_frame_chain): Ditto.
4921 (rs6000_register_name): Ditto.
4922 (rs6000_register_byte): Ditto.
4923 (rs6000_register_raw_size): Ditto.
4924 (rs6000_register_virtual_type): Ditto.
4925 (rs6000_register_convertible): Ditto.
4926 (rs6000_convert_from_func_ptr_addr): Ditto.
4927
bf072999
DJ
49282002-08-19 Daniel Jacobowitz <drow@mvista.com>
4929
4930 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4931 conditionally.
4932 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4933 MIPS_LINUX_JB_ELEMENT_SIZE.
4934 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4935 for MAX_REGISTER_RAW_SIZE arrays.
4936 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4937 MIPS_LINUX_JB_ELEMENT_SIZE.
4938
9b949a49
PM
49392002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4940
4941 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4942
6d3e79c6
AS
49432002-08-19 Aidan Skinner <aidan@velvet.net>
4944
4945 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4946 ada-valprint.c ada-tasks.c.
4947 (YYFILES): Add ada-exp.y.
4948 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4949 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4950 (ada-exp.tab.o): New target.
4951
06c0b04e
AC
49522002-08-18 Andrew Cagney <ac131313@redhat.com>
4953
4954 * regcache.c (regcache_xfer_part): New function.
4955 (regcache_raw_read_part): New function.
4956 (regcache_raw_write_part): New function.
4957 (regcache_cooked_read_part): New function.
4958 (regcache_cooked_write_part): New function.
4959 * regcache.h (regcache_raw_read_part): Declare.
4960 (regcache_raw_write_part): Declare.
4961 (regcache_cooked_read_part): Declare.
4962 (regcache_cooked_write_part): Declare.
4963
92d1e331
DJ
49642002-08-18 Daniel Jacobowitz <drow@mvista.com>
4965
4966 * remote.c (remote_open_1): Add async_p.
4967 (remote_async_open_1): Delete.
4968 (open_remote_target): Delete.
4969 (remote_open, extended_remote_open): Update calls to remote_open_1.
4970 (remote_async_open, extended_remote_async_open): Call
4971 remote_open_1 instead of remote_async_open_1.
4972
247055de
MK
49732002-08-19 Mark Kettenis <kettenis@gnu.org>
4974
4975 * blockframe.c: Fix a few coding standard violations.
4976
641eda39
MK
49772002-08-19 Mark Kettenis <kettenis@gnu.org>
4978
0b717710
MK
4979 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4980 here from ...
4981 * config/i386/tm-i386sco5.h: ... here. File removed.
4982 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4983
26d28e12 4984 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4985 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4986 (TM_FILE): Set to tm-i386.h.
4987 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4988 * config/i386/tm-i386v.h: Remove file.
4989 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4990 instead of "i386/tm-i386v.h".
4991 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4992 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4993 "i386/tm-i386v.h".
4994 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4995 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4996 "i386/tm-i386.h".
4997
d4e0bab4
MK
49982002-08-18 Mark Kettenis <kettenis@gnu.org>
4999
5000 * config/i386/nm-i386v.h: Add protection against
5001 multiple-inclusion.
5002 (i386_register_u_addr): Remove prototype.
5003 (register_u_addr): New prototype.
5004 (REGISTER_U_ADDR): Redefine accordingly.
5005 * i386v-nat.c: Improve several comments.
5006 (i386_register_u_addr): Change signature and rename to
5007 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5008 ubase variable.
5009
46cac009
AC
50102002-08-18 Andrew Cagney <ac131313@redhat.com>
5011
5012 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5013 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5014 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5015 deprecated_extract_return_value.
5016 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5017 rename mips_o32o64_push_arguments.
5018 (mips_gdbarch_init): Update.
5019 (mips_extract_return_value): Delete.
5020 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5021 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5022 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5023 (mips_n32n64_extract_return_value): Clone
5024 mips_extract_return_value.
5025 (mips_store_return_value): Delete.
5026 (mips_o32_store_return_value): Clone mips_store_return_value.
5027 (mips_o64_store_return_value): Clone mips_store_return_value.
5028 (mips_eabi_store_return_value): Clone mips_store_return_value.
5029 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5030
d2e4a39e
AS
50312002-08-18 Aidan Skinner <aidan@velvet.net>
5032
0c30c098
AS
5033 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5034 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5035
50362002-08-18 Aidan Skinner <aidan@velvet.net>
5037
5038 * ada-lang.c: Run through gdb_indent.sh.
5039 * ada-lang.h: Run through gdb_indent.sh.
5040 * ada-tasks.c: Run through gdb_indent.sh.
5041 * ada-typeprint.c: Run through gdb_indent.sh.
5042 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 5043
01fc4e33
AC
50442002-08-18 Andrew Cagney <ac131313@redhat.com>
5045
5046 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5047 ABI.
5048
d8ee244c
MK
50492002-08-18 Mark Kettenis <kettenis@gnu.org>
5050
c38d8261
MK
5051 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5052
222db64c
MK
5053 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5054 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5055
c2848c82
MK
5056 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5057 write_register_gen instead of write_register_bytes.
5058
d8ee244c
MK
5059 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5060 i[3456]-*-osf1mk* configurations have been made obsolete.
5061 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5062 i[3456]86-*-osf1mk* hosts obsolete.
5063 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5064 targets obsolete.
5065 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5066 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5067 config/i386/i386m3.mt, config/i386/nm-m3.h,
5068 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5069 config/i386/i386mk.mh, config/i386/i386mk.mt,
5070 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5071 obsolete.
5072 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5073 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5074 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5075
61d8d407
AC
50762002-08-18 Andrew Cagney <ac131313@redhat.com>
5077
5078 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5079 (hppa_value_returned_from_stack): Declare.
5080 (hppa_extract_return_value): Declare.
5081 * config/pa/hppa.mt: New file.
5082 * configure.tgt: Recognize hppa*-*-*.
5083 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5084
0c52bd59
MK
50852002-08-18 Mark Kettenis <kettenis@gnu.org>
5086
5087 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5088 comment.
5089
b5686e99
MK
50902002-08-17 Mark Kettenis <kettenis@gnu.org>
5091
5092 * top.c (gdb_rl_operate_and_get_next): Make sure
5093 operate-and-get-next functions correctly even when the history
5094 list is completely filled.
5095
c1bab85b
AC
50962002-08-18 Andrew Cagney <ac131313@redhat.com>
5097
5098 * MAINTAINERS (Target Instruction Set Architectures): Rename
5099 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5100 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5101 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5102 already listed under Host/Native.
5103
5104 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5105 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5106 mips*-*-*.
5107
32089c7c
AC
51082002-08-17 Andrew Cagney <ac131313@redhat.com>
5109
5110 * config/ia64/ia64.mt: New file.
5111 * config/alpha/alpha.mt: New file.
5112 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5113 ia64-linux-gnu. Mention that ia64-elf is broken.
5114 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5115
b4671f85
MK
51162002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5117
5118 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5119 generic_func_frame_valid instead of func_frame_valid.
5120
c8edd8b4
JB
51212002-08-16 Joel Brobecker <brobecker@gnat.com>
5122
5123 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5124 procfs appears to be broken when debugging on multi-processor
5125 machines. So enable software single stepping in order to avoid
5126 using the procfs interface to do next/step operations, using
5127 internal breakpoints instead.
5128
5129 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5130 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5131 make this pc address equal to the value it would have if the
5132 system stepping capability was used. Also set a new flag used
5133 to ensure that we don't readjust the PC one more time later.
5134
5135 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5136 address by DECR_PC_AFTER_BREAK when software single step is
5137 in use for this architecture, as this has already been taken
5138 care of in handle_inferior_event().
5139
238617f6
JB
51402002-08-16 Joel Brobecker <brobecker@gnat.com>
5141
5142 * infrun.c (handle_inferior_event): Minor reformatting, to make
5143 a rather long condition expression easier to read.
5144
541a7aac
AC
51452002-08-16 Andrew Cagney <ac131313@redhat.com>
5146
5147 * Makefile.in (gdbtk.o): Move to end of file.
5148 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5149 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5150 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5151 (gdbtk-wrapper.o, gdbres.o): Ditto.
5152
f92d4a7b
AC
51532002-08-16 Andrew Cagney <ac131313@redhat.com>
5154
5155 * Makefile.in (copying.o): Separate out compile rule.
5156 (hpux-thread.o, procfs.o, signals.o): Ditto.
5157 (v850ice.o, z8k-tdep.o): Ditto.
5158 (tui-file.o): Move to TUI section.
5159 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5160 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5161
1cce71eb
JB
51622002-08-16 Joel Brobecker <brobecker@gnat.com>
5163
5164 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5165 skip_trampoline_code, for better namespace-proofing.
5166
5167 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5168
0851f23d
JB
51692002-08-16 Joel Brobecker <brobecker@gnat.com>
5170
5171 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5172
f8d40ec8
JB
51732002-08-16 Joel Brobecker <brobecker@gnat.com>
5174
5175 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5176 signal, check whether we hit a breakpoint before checking for a
5177 single step breakpoint. Otherwise, GDB fails to notice that a
5178 breakpoint has been hit when stepping onto a breakpoint.
5179
63d022e0
KS
51802002-08-16 Keith Seitz <keiths@redhat.com>
5181
5182 * gdb-events.sh (clear_gdb_event_hooks): New function.
5183 * gdb-events.c: Regenerate.
5184 * gdb-events.h: Regenerate.
5185
6e31adb3
AC
51862002-08-16 Andrew Cagney <ac131313@redhat.com>
5187
5188 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5189 not_a_sw_breakpoint.
5190 * breakpoint.h (bpstat_stop_status): Add parameter names.
5191
c8189ed1
GS
51922002-08-16 Grace Sainsbury <graces@redhat.com>
5193
5194 * remote.c (remote_insert_hw_breakpoint)
5195 (remote_remove_hw_breakpoint): Fix calculation of length field
5196 for Z-packet.
5197
d05285fa
MS
51982002-08-15 Michael Snyder <msnyder@redhat.com>
5199
466d7106
MS
5200 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5201 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5202 (supply_fpregset): Ditto.
5203
d05285fa
MS
5204 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5205 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5206 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5207 (TARGET_READ_SP): Delete.
bf1f5b4c 5208 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5209 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5210 Delete.
5211 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5212 from macros to functions.
bf1f5b4c 5213
d05285fa
MS
5214 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5215 (mips_register_convertible, mips_register_convert_to_virtual,
5216 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5217 (mips_read_sp): New function.
5218 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5219 (mips_do_registers_info): Make static.
5220 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5221 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5222 (mips_register_convert_from_type, mips_register_convert_to_type):
5223 New functions.
5224 (mips_gdbarch_init): Set up function_start_offset,
5225 register_virtual_size, pc_in_sigtramp.
d05285fa 5226
e76f1f2e
AC
52272002-08-15 Andrew Cagney <ac131313@redhat.com>
5228
5229 * infcmd.c (vector_info): New function.
5230 (_initialize_infcmd): Add command "info vector".
5231 (print_vector_info): New function.
5232
5233 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5234 * gdbarch.h, gdbarch.c: Regenerate.
5235
4782dc19
AC
52362002-08-15 Andrew Cagney <ac131313@redhat.com>
5237
5238 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5239 ``print_all''. Only print vector registers when ``print_all''.
5240
23e3a7ac
AC
52412002-08-15 Andrew Cagney <ac131313@redhat.com>
5242
8e186fd6
AC
5243 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5244 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5245
23e3a7ac
AC
5246 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5247 Add `args' parameter.
5248 * gdbarch.h, gdbarch.c: Regenerate.
5249
5250 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5251
5252 * infcmd.c (float_info): Call print_float_info.
5253 (print_float_info): New function. By default, print the
5254 floating-point registers.
5255
5256 * arch-utils.h (default_print_float_info): Delete declaration.
5257 * arch-utils.c (default_print_float_info): Delete function.
5258
e0ca2bb9
MK
52592002-08-16 Mark Kettenis <kettenis@gnu.org>
5260
3f733acc
MK
5261 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5262 out define.
5263
7d8d2918
MK
5264 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5265 FRAME.
5266
1c7cc583
MK
5267 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5268 * configure.host: Make i[3456]86-*-aix host obsolete.
5269 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5270 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5271 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5272 config/i386/xm-i386aix.h: Make files obsolete.
5273 * i386aix-nat.c: Make file obsolete.
5274 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5275 (i386aix-nat.o): Make target obsolete.
5276
e0ca2bb9
MK
5277 * config/i386/nm-gnu.h: Removed.
5278 * config/i386/nm-i386gnu.h: New file.
5279 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5280 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5281 Moved here from ...
5282 * config/i386/tm-i386gnu.h: ... here. Removed.
5283 * config/i386/xm-i386gnu.h: Removed.
5284 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5285 (NAT_FILE): Set to nm-i386gnu.h.
5286 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5287 * i386-tdep.c: New file.
5288 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5289 (i386gnu-tdep.o): Specify dependencies.
5290
16057ec7 52912002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5292
6b99ee2e
MK
5293 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5294 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5295 Adjust a few comments to reflect reality a bit closer.
5296 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5297 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5298 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5299 target_insert_watchpoint, target_remove_watchpoint):
5300 Move defines to ...
5301 * config/i386/nm-i386sco5.h: ... here.
5302 (kernel_u_size): Add prototype. Improve a few comments and add
5303 protection against multiple inclusion.
5304
d9a6f65c
MK
5305 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5306 out define.
5307
047eff6a
MK
5308 * uw-thread.c (SP_ARG0): Define if not already defined.
5309 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5310
dcdb1290
MK
5311 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5312
5d2d0b2a
MK
5313 * config/i386/tm-i386.h: Don't include "regcache.h".
5314
61113f8b
MK
5315 * i387-tdep.h (i387_print_float_info): New prototype.
5316 * i387-tdep.c (print_i387_value, print_i387_ext,
5317 print_i387_status_word, print_i387_control_word): Add `struct
5318 ui_file *' argument and use it for output.
5319 (i387_print_float_info): Renamed from i387_float_info. Add
5320 `struct gdbarch *' and `struct ui_file *' arguments and use the
5321 latter for output.
5322 * i386-tdep.c: Include "i387-tdep.h".
5323 (i386_gdbarch_init): Set print_float_info.
5324 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5325 (FLOAT_INFO): Remove define.
5326
46e0f506
MS
53272002-08-13 Michael Snyder <msnyder@redhat.com>
5328
5329 * mips-tdep.c (mips_push_arguments): Rename to
5330 mips_eabi_push_arguments, and tune for EABI.
5331 (MIPS_REGS_HAVE_HOME_P): Delete.
5332 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5333 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5334 Delete references to mips_regs_have_home_p.
5335
409268de
KS
53362002-08-14 Keith Seitz <keiths@redhat.com>
5337
5338 * Makefile.in (install-gdbtk): Create insight plugin directory.
5339 Install plugins.tcl file.
5340
ffc6a242
KS
53412002-08-14 Keith Seitz <keiths@redhat.com>
5342
5343 * configure.in: Move SUBDIRS to near top of the file so that
5344 --enable options may add things to it.
5345 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5346 * configure: Regenerate.
5347
ebafbe83
MS
53482002-08-13 Michael Snyder <msnyder@redhat.com>
5349
5350 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5351 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5352 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5353
32f6f25d
AC
53542002-08-13 Andrew Cagney <ac131313@redhat.com>
5355
5356 * vax-tdep.c (vax_get_saved_register): Delete function.
5357 (vax_gdbarch_init): Update.
5358 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5359 (ns32k_gdbarch_init): Update.
5360 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5361 (alpha_gdbarch_init): Update.
5362
53826de9
AC
53632002-08-13 Andrew Cagney <cagney@redhat.com>
5364
5365 * regcache.c (init_regcache_descr): Overallocate the
5366 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5367 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5368 nr_raw_registers.
5369 (set_register_cached): Add range checking assertions. Use
5370 current_regcache.
5371
16057ec7 53722002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5373
5374 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5375 numbers for MMX registers.
5376
7b4c2dce
AC
53772002-08-13 Andrew Cagney <cagney@redhat.com>
5378
5379 * i386-tdep.c (i386_gdbarch_init): Use
5380 generic_unwind_get_saved_register.
5381
1e03ad20
KB
53822002-08-13 Kevin Buettner <kevinb@redhat.com>
5383
5384 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5385 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5386 target vector.
5387 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5388 Delete. Add comment regarding this now-deleted target method.
5389
548bcbec
SC
53902002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5391
5392 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5393 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5394 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5395 real PC and the page number (if it's within the memory bank window).
5396 (m68hc11_pseudo_register_write): Likewise when saving.
5397 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5398 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5399 (m68hc11_register_raw_size): And use 32-bit for it.
5400 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5401 16K memory bank is used by the prog; also use the virtual pc.
5402
7df11f59
SC
54032002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5404
5405 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5406 (m68hc11_gdbarch_init): Install it in gdbarch.
5407 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5408 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5409 (MSYMBOL_SIZE): New for documentation.
5410 (insn_return_kind): Enum to specify how a function returns.
5411 (frame_extra_info): Cleanup and record the return mode.
5412 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5413 register in address computation.
5414 (m68hc11_get_return_insn): New to obtain the return instruction used
5415 by the function.
5416 (m68hc11_frame_init_saved_regs): Take into account the return
5417 instruction used by the function for far and interrupt functions.
5418 (m68hc11_init_extra_frame_info): Take into account page register.
5419 (m68hc11_frame_args_address): Adjust according to the return mode.
5420 (show_regs): Print page register only when it's used.
5421
5706502a
SC
54222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5423
5424 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5425 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5426 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5427 registers.
5428 (m68hc11_register_raw_size): Likewise.
5429
28fc6740
AC
54302002-08-13 Andrew Cagney <cagney@redhat.com>
5431
5432 * i386-tdep.c (i386_register_name): Handle mmx registers.
5433 (mmx_regnum_p): New function.
5434 (i386_mmx_names): New array.
5435 (mmx_num_regs): New variable.
5436 (i386_pseudo_register_read): New function.
5437 (i386_pseudo_register_write): New function.
5438 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5439
5440 * regcache.c (regcache_raw_read_unsigned): New function.
5441 (regcache_raw_read_signed): New function.
5442 * regcache.h (regcache_raw_read_unsigned): Declare.
5443 (regcache_raw_read_signed): Declare.
5444
a378f419
AC
54452002-08-13 Andrew Cagney <cagney@redhat.com>
5446
5447 * regcache.c (regcache_raw_read_as_address): Delete function.
5448 (regcache_cooked_read_signed): New function.
5449 (regcache_cooked_read_unsigned): New function.
5450 * regcache.h (regcache_cooked_read_signed): Declare.
5451 (regcache_cooked_read_unsigned): Declare.
5452 (regcache_raw_read_as_address): Delete declaration.
5453
5454 * blockframe.c (generic_read_register_dummy): Use
5455 regcache_cooked_read_unsigned.
5456 * i386-tdep.c (i386_extract_struct_value_address): Use
5457 regcache_cooked_read_unsigned.
5458
81967506
SC
54592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5460
5461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5462 double sizes according to ELF ABI flags.
5463 (gdbarch_tdep): Record elf_flags.
5464
ffe1f3ee
SC
54652002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5466
5467 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5468 (m6812_prolog): They can appear in 68HC12 function prologue.
5469 (m68hc11_frame_chain): Cleanup.
5470
98216c5d
AC
54712002-08-12 Andrew Cagney <cagney@redhat.com>
5472
5473 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5474 declarations.
5475 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5476 (i386_linux_register_raw_size): Delete function.
5477 (i386_linux_init_abi): Update.
5478 * i386-tdep.c (i386_register_raw_size): Delete function.
5479 (i386_register_byte): Delete function.
5480 (i386_gdbarch_init): Update.
5481 (i386_register_size): Delete array.
5482 (i386_register_offset): Delete array.
5483
5484 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5485 (REGISTER_RAW_SIZE): Delete macro.
5486 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5487 (REGISTER_BYTE): Delete macro.
5488
3b19021e
AS
54892002-08-11 Aidan Skinner <aidan@velvet.net>
5490
5491 * ada-lang.c (ada_lookup_partial_symbol)
5492 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5493 prototype names so that grep ^func works properly.
5494
5495 * ada-lang.c (ada_array_element_type)
5496 (ada_lookup_partial_symbol): Fix typos in parameter list.
5497
5498 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5499 Fix prototype names so that grep ^func works properly.
5500
b063e7a2
AC
55012002-08-10 Andrew Cagney <cagney@redhat.com>
5502 Elena Zannoni <ezannoni@redhat.com>
5503 Martin M. Hunt <hunt@redhat.com>
5504
5505 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5506 (build_builtin_type_vec128i): Set the vector bit.
5507 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5508 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5509 (build_builtin_type_vec64): New function.
5510 (build_builtin_type_vec64i): New function.
5511 (build_gdbtypes): Initialize builtin_type_vec64 and
5512 builtin_type_vec64i.
5513
a7e3c2ad
AC
55142002-08-09 Andrew Cagney <cagney@redhat.com>
5515
5516 * regcache.c (regcache_dump): Compare the register offset
5517 with REGISTER_BYTE.
5518 * arch-utils.c (generic_register_byte): New function.
5519 * arch-utils.h (generic_register_byte): Declare.
5520 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5521 * gdbarch.h, gdbarch.c: Regenerate.
5522
af030b9a
AC
55232002-08-09 Andrew Cagney <cagney@redhat.com>
5524
5525 * regcache.c: Include "gdbcmd.h"
5526 (_initialize_regcache): Add commands "maintenance print
5527 registers", "maintenance print raw-registers" and "maintenance
5528 print cooked-registers".
5529 (enum regcache_dump_what): Define.
5530 (dump_endian_bytes): New function.
5531 (regcache_dump): New function.
5532 (regcache_print): New function.
5533 (maintenance_print_registers): New function.
5534 (maintenance_print_raw_registers): New function.
5535 (maintenance_print_cooked_registers): New function.
5536 * Makefile.in (regcache.o): Update dependencies.
5537
cb3d25d1
MS
55382002-08-09 Michael Snyder <msnyder@redhat.com>
5539
5540 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5541 (mips_push_arguments): Correct some comments. Use paddr_nz
5542 for printing addresses in debug output. Replace static
5543 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5544 (mips_n32n64_push_arguments): New function, cloned from
5545 mips_push_arguments and tuned for the n32/n64 ABI.
5546 (mips_push_register): Buffer needs dynamic allocation.
5547 (mips_print_register): Ditto.
5548 (do_gp_register_row): Ditto.
5549 (mips_store_return_value): Ditto.
5550 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5551
2163ab9d
DH
55522002-08-09 Don Howard <dhoward@redhat.com>
5553
5554 * memattr.c (mem_info_command): Print special case of upper bound
5555 as max CORE_ADDR + 1.
5556
b78bcb18
MS
55572002-08-08 Michael Snyder <msnyder@redhat.com>
5558
5559 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5560 returns structs by ref if they're too big to fit in two registers.
5561
ffabd70d
KB
55622002-08-09 Kevin Buettner <kevinb@redhat.com>
5563
5564 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5565 saved regs value.
5566 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5567 mips_find_saved_regs().
5568 (mips_pop_frame): Likewise.
5569
fbcdb4a3
KB
55702002-08-09 Kevin Buettner <kevinb@redhat.com>
5571
5572 * blockframe.c (frame_saved_regs_register_unwind): Revise
5573 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5574 frames are in use.
5575
3c3bea1c
GS
55762002-08-09 Grace Sainsbury <graces@redhat.com>
5577
5578 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5579 T-packets; the 'a' is not taken as a register number.
5580 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5581 (remote_stopped_data_address): New functions; add to target
5582 vector.
5583 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5584 prototypes to match other implementations of this
5585 function. replace integer argument with pointer -- the length
5586 field in the Z-packet is the length of what is pointed to or 1 if
5587 pointer is null. Add to target vector.
5588 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5589 target vector.
5590
5591 From Mark Salter:
5592 * remote.c (remote_wait): Add support to extract optional
5593 watchpoint information from T-packet. Ignore unrecognized
5594 optional info in T-packet.
5595 (remote_async_wait): Ditto.
5596
5d1d95de
CV
55972002-08-09 Corinna Vinschen <vinschen@redhat.com>
5598
5599 * cli/cli-dump.c: Change fopen modes to use binary open modes
5600 as defined in include/fopen-bin.h throughout.
5601
c86b5b38
MS
56022002-08-08 Michael Snyder <msnyder@redhat.com>
5603
5604 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5605
b30590dc
KB
56062002-08-08 Kevin Buettner <kevinb@redhat.com>
5607
5608 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5609 assertion failure by returning early after a warning.
5610
498868ed
KB
56112002-08-08 Kevin Buettner <kevinb@redhat.com>
5612
5613 * mips-tdep.c (mips_find_saved_regs): Make static.
5614 (mips_frame_init_saved_regs): New function.
5615 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5616 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5617 (mips_find_saved_regs): Delete declaration.
5618
b2dd6311
GS
56192002-08-08 Grace Sainsbury <graces@redhat.com>
5620
3c3bea1c
GS
5621 * remote.c (remote_wait, remote_async_wait): Change
5622 thread_num from int to ULONGEST.
5623 (unpack_varlen_hex): Change result parameter from
5624 int * to ULONGEST *.
b2dd6311 5625
ea47855f
AC
56262002-08-08 Andrew Cagney <ac131313@redhat.com>
5627
5628 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5629 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5630 powerpc*-*-*.
5631 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5632
69db8bae
AC
56332002-08-08 Andrew Cagney <cagney@redhat.com>
5634
5635 * gcore.c (override_derive_stack_segment): Delete variable.
5636 (preempt_derive_stack_segment): Delete function.
5637 (derive_stack_segment): Delete function.
5638 (default_derive_stack_segment): Renamed to derive_stack_segment.
5639 (override_derive_heap_segment): Delete variable.
5640 (preempt_derive_heap_segment): Delete function.
5641 (derive_heap_segment): Delete function.
5642 (default_derive_heap_segment): Rename to derive_heap_segment.
5643
cb811fe7
MS
56442002-08-06 Michael Snyder <msnyder@redhat.com>
5645
5646 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5647 * mips-tdep.c (mips_EABI_use_struct_convention,
5648 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5649 New functions. (mips_use_struct_convention): Delete.
5650 (mips_gdbarch_init): set use_gdbarch_convention.
5651
8b389c40
MS
56522002-08-06 Michael Snyder <msnyder@redhat.com>
5653
5654 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5655 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5656 mips_o32_reg_struct_has_addr): New functions.
5657 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5658
5c27f28a
AC
56592002-08-07 Andrew Cagney <ac131313@redhat.com>
5660
5661 * regcache.c (pseudo_register): Delete function.
5662 (fetch_register): Delete function.
5663 (store_register): Delete function.
5664 (regcache_raw_read, legacy_read_register_gen): Use
5665 target_fetch_registers instead of fetch_register.
5666 (legacy_write_register_gen, regcache_raw_write): Use
5667 target_store_register instead of store_register.
5668 (write_register_bytes): Ditto.
5669
5670 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5671 (STORE_PSEUDO_REGISTER): Delete.
5672 * gdbarch.h, gdbarch.c: Regenerate.
5673
5b331675
CV
56742002-08-06 Corinna Vinschen <vinschen@redhat.com>
5675
5676 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5677 write dump file binary.
5678
6acdf5c7
MS
56792002-08-05 Michael Snyder <msnyder@redhat.com>
5680
5681 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5682 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5683 (mips_gdbarch_init): Set N32 target to be mips64.
5684
b2f01c35
KB
56852002-08-06 Kevin Buettner <kevinb@redhat.com>
5686
5687 * frame.c (find_saved_register): Break out of loop once saved
5688 register address is found. Don't mention sparc in loop comment
5689 anymore.
5690
63db5580
KB
56912002-08-06 Kevin Buettner <kevinb@redhat.com>
5692
5693 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5694 mips_default_saved_regsize to 8.
5695
5e34e75e
AC
56962002-08-06 Andrew Cagney <ac131313@redhat.com>
5697
5698 * gcore.c: Do not include <sys/procfs.h>.
5699 * Makefile.in (gcore.o): Update dependencies.
5700
eb4c54a2
AC
57012002-08-06 Andrew Cagney <cagney@redhat.com>
5702
5703 * configure.tgt: Make arc-*-* obsolete.
5704 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5705 * MAINTAINERS: Make arc-elf obsolete.
5706 * arc-tdep.c: Make file obsolete.
5707 * config/arc/arc.mt: Ditto.
5708 * config/arc/tm-arc.h: Ditto.
5709
ced15480
TR
57102002-08-05 Theodore A. Roth <troth@verinet.com>
5711
c1bab85b 5712 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5713
b4743822
AC
57142002-08-05 Andrew Cagney <ac131313@redhat.com>
5715
5716 * mcore-tdep.c (mcore_gdbarch_init): Use
5717 generic_unwind_get_saved_register instead of
5718 generic_get_saved_register.
5719 * v850-tdep.c (v850_gdbarch_init): Ditto.
5720 * frv-tdep.c (frv_gdbarch_init): Ditto.
5721 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5722 * s390-tdep.c (s390_gdbarch_init): Ditto.
5723 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5724 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5725 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5726
3956d554
JB
57272002-08-05 Joel Brobecker <brobecker@gnat.com>
5728
5729 * objfiles.h: Add missing #include "symfile.h"
5730
5731 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5732
8249c0d6
AC
57332002-08-04 Andrew Cagney <ac131313@redhat.com>
5734
5735 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5736 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5737 of FIELD_BITSIZE.
5738
b9d14705
DJ
57392002-08-04 Daniel Jacobowitz <drow@mvista.com>
5740
5741 * NEWS: Cleanup and nitpick.
5742
dd73b9bb
AC
57432002-08-03 Andrew Cagney <ac131313@redhat.com>
5744
5745 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5746
043a27f8
AC
57472002-08-03 Andrew Cagney <ac131313@redhat.com>
5748
5749 * Makefile.in (gdbtk-bp.o): Update dependencies.
5750 (gdbtk-register.o): Ditto.
5751 (gdbtk-varobj.o): Ditto.
5752
46ce284d
AC
57532002-08-03 Andrew Cagney <cagney@redhat.com>
5754
5755 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5756 m68hc11_fetch_pseudo_register.
5757 (m68hc11_pseudo_register_write): Replace
5758 m68hc11_store_pseudo_register.
5759 (m68hc11_gdbarch_init): Update.
5760
b66d6d2e
AC
5761Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5762
5763 * gdbarch.sh: Include "gdb_string.h".
5764 * gdbarch.c: Regenerate.
5765
5766 * regcache.c: Include "gdb_string.h".
5767 * ax-general.c: Ditto.
5768 * varobj.c: Ditto.
5769 * std-regs.c: Ditto.
5770 * fbsd-proc.c: Ditto.
5771 * thread.c: Ditto.
5772
5773 * Makefile.in (regcache.o): Update dependencies.
5774 (thread.o, gdbarch.o): Ditto.
5775 (ax-general.o, gdbarch.o): Ditto.
5776 (varobj.o, std-regs.o): Ditto.
5777 (fbsd-proc.o): Specify dependencies.
5778
29e1842b
AC
57792002-08-02 Andrew Cagney <cagney@redhat.com>
5780
5781 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5782 regnum.
5783 (regcache_cooked_write): Ditto.
5784
68365089
AC
57852002-08-02 Andrew Cagney <ac131313@redhat.com>
5786
5787 * regcache.c (regcache_cooked_read): New function.
5788 (regcache_cooked_write): New function.
5789 (read_register_gen): Rewrite using regcache_cooked_read.
5790 (write_register_gen): Rewrite using regcache_cooked_write.
5791
5792 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5793 Declare.
5794
d8124050
AC
57952002-08-02 Andrew Cagney <cagney@redhat.com>
5796
5797 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5798 Replace the architecture methods register_read and register_write.
5799 * gdbarch.h, gdbarch.c: Regenerate.
5800 * regcache.c (init_regcache_descr): Update.
5801 (read_register_gen): Update.
5802 (write_register_gen): Update.
5803 (supply_register): Update comment.
5804
5805 * sh-tdep.c (sh_gdbarch_init): Update.
5806 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5807 `regcache' and `gdbarch' parameters. Make `buffer' a void
5808 pointer. Update code.
5809 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5810 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5811 void pointer. Update code.
5812 (sh64_register_write): Delete.
5813 (sh4_register_read): Delete.
5814 (sh64_register_read): Delete.
5815 (sh4_register_write): Delete.
5816 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5817 void pointer, `to' parameter a void pointer.
5818 (sh_sh64_register_convert_to_raw): Ditto.
5819
a6425924
KB
58202002-08-01 Kevin Buettner <kevinb@redhat.com>
5821
5822 * mips-tdep.c (mips_register_virtual_type): Use architecture
5823 invariant return values.
5824
ff5922b5
AC
58252002-08-01 Andrew Cagney <cagney@redhat.com>
5826
5827 * linux-proc.c: Include "gdb_string.h".
5828 * Makefile.in (linux-proc.o): Update dependency list.
5829
32a6503c
KB
58302002-08-01 Kevin Buettner <kevinb@redhat.com>
5831
5832 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5833 comment.
5834
ccaa32c7
GS
58352002-08-01 Grace Sainsbury <graces@redhat.com>
5836
5837 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5838 to_insert_watchpoint, to_remove_watchpoint,
5839 to_stopped_by_watchpoint, to_stopped_data_address,
5840 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5841 target vecctor. Define their corresponding macros so they call
5842 them.
5843
5844 * target.c: Add default and debug versions of for
5845 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5846 to_insert_watchpoint, to_remove_watchpoint,
5847 to_stopped_by_watchpoint, to_stopped_data_address,
5848 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5849
78fde5f8
KB
58502002-08-01 Kevin Buettner <kevinb@redhat.com>
5851
5852 * mips-tdep.c (mips_register_virtual_type): New function.
5853 (mips_gdbarch_init): Register mips_register_virtual_type()
5854 with gdbarch machinery.
5855 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5856 this file instead of tm-bigmips.h.
5857 (MIPS_REGSIZE): Delete this macro.
5858 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5859 multiarch version in mips-tdep.c will be found.
5860
db034ac5
AC
58612002-08-01 Andrew Cagney <cagney@redhat.com>
5862
5863 * NEWS: Menion that CHILL has been made obsolete.
5864
5865 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5866 * stabsread.c (read_range_type): Ditto.
5867 * gdbtypes.h: Ditto.
5868 * language.c (binop_type_check): Ditto.
5869 (binop_result_type): Ditto.
5870 (integral_type): Ditto.
5871 (character_type): Ditto.
5872 (string_type): Ditto.
5873 (boolean_type): Ditto.
5874 (structured_type): Ditto.
5875 (lang_bool_type): Ditto.
5876 (binop_type_check): Ditto.
5877 * language.h (_LANG_chill): Ditto.
5878 * dwarfread.c (set_cu_language): Ditto.
5879 * dwarfread.c (CHILL_PRODUCER): Ditto.
5880 * dwarfread.c (handle_producer): Ditto.
5881 * expression.h (enum exp_opcode): Ditto.
5882 * eval.c: Ditto for comments.
5883 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5884 * expprint.c (print_subexp): Ditto.
5885 (print_subexp): Ditto.
5886 * valops.c (value_cast): Ditto.
5887 (search_struct_field): Ditto.
5888 * value.h (COERCE_VARYING_ARRAY): Ditto.
5889 * symfile.c (init_filename_language_table): Ditto.
5890 (add_psymbol_with_dem_name_to_list): Ditto.
5891 * valarith.c (value_binop): Ditto.
5892 (value_neg): Ditto.
5893 * valops.c (value_slice): Ditto.
5894 * symtab.h (union language_specific): Ditto.
5895 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5896 (SYMBOL_DEMANGLED_NAME): Ditto.
5897 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5898 * defs.h (enum language): Ditto.
5899 * symtab.c (got_symtab): Ditto.
5900 * utils.c (fprintf_symbol_filtered): Ditto.
5901
5902 * ch-typeprint.c: Make file obsolete.
5903 * ch-valprint.c: Make file obsolete.
5904 * ch-lang.h: Make file obsolete.
5905 * ch-exp.c: Make file obsolete.
5906 * ch-lang.c: Make file obsolete.
5907
5908 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5909 CHILL_LIB.
5910 (TARGET_FLAGS_TO_PASS): Ditto.
5911 (CHILLFLAGS): Obsolete.
5912 (CHILL): Obsolete.
5913 (CHILL_FOR_TARGET): Obsolete.
5914 (CHILL_LIB): Obsolete.
5915 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5916 ch-valprint.c.
5917 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5918 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5919 ch-lang.o.
5920 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5921 targets.
5922
8aaf0b47
JB
59232002-07-31 Joel Brobecker <brobecker@gnat.com>
5924
5925 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5926 This does not change anything at the moment, but will be helpful
5927 later when full Ada support is integrated.
5928
f3a7b3a5
KB
59292002-07-31 Kevin Buettner <kevinb@redhat.com>
5930
5931 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5932 help message.
5933
fb850278
KB
59342002-07-31 Kevin Buettner <kevinb@redhat.com>
5935
5936 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5937 and save it in a local variable. Use variable in later test.
5938
e3bddbfa
KB
59392002-07-31 Kevin Buettner <kevinb@redhat.com>
5940
5941 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5942 test. (Thanks to Daniel Jacobowitz.)
5943
28d169de
KB
59442002-07-31 Kevin Buettner <kevinb@redhat.com>
5945
5946 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5947 (mips_abi_strings): Add "n64".
5948 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5949
7fe7e44e
KB
59502002-07-31 Kevin Buettner <kevinb@redhat.com>
5951
5952 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5953 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5954
c6caf090
KB
59552002-07-31 Kevin Buettner <kevinb@redhat.com>
5956
5957 * utils.c (host_pointer_to_address, address_to_host_pointer):
5958 Use gdb_assert() instead of explicit call to internal_error().
5959
c41669e0
KB
59602002-07-30 Kevin Buettner <kevinb@redhat.com>
5961
5962 * Makefile.in (rs6000-nat.o): Update dependencies.
5963
5964 From Nicholas Duffek:
5965 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5966 (aix-thread.o): New rule.
5967 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5968 * config/powerpc/aix432.mh: New file.
5969
2fda4977
DJ
59702002-07-30 Daniel Jacobowitz <drow@mvista.com>
5971
5972 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5973 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5974 (fetch_core_registers, ppc_linux_supply_gregset)
5975 (ppc_linux_supply_fpregset): New functions.
5976 (ppc_linux_regset_core_fns): New.
5977 (_initialize_ppc_linux_tdep): Call add_core_fns.
5978 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5979 and ppc_linux_supply_gregset.
5980 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5981 (supply_fpregset): Call ppc_linux_supply_fpregset.
5982 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5983 corelow.o.
5984 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5985
729051e6
DJ
59862002-07-30 Daniel Jacobowitz <drow@mvista.com>
5987
5988 * symtab.c (lookup_symbol): Demangle before lowercasing.
5989
5f8a3188
AC
59902002-07-30 Andrew Cagney <ac131313@redhat.com>
5991
5992 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5993 declaration.
5994 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5995 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5996 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5997 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5998 "gdb_string.h".
5999 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6000 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6001 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6002 (avr-tdep.o, mon960-rom.o): Ditto.
6003 (aout_stabs_gnu_h): Define.
6004 (symtab_h): Remove $(gdb_obstack_h).
6005
67f07146
JB
60062002-07-30 Jim Blandy <jimb@redhat.com>
6007
6008 Patch from David Carlton <carlton@math.stanford.edu>:
6009 * gdbinit.in: Move the `dir' commands that add GDB's own source
6010 directory to the search path to the end, so that the `gdb' source
6011 directory will be searched first.
6012
04ea0df1
AC
60132002-07-29 Andrew Cagney <ac131313@redhat.com>
6014
6015 * gdb_obstack.h: New file.
6016 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6017 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6018 * objfiles.h: Include "gdb_obstack.h".
6019 * Makefile.in (gdb_obstack_h): Define.
6020 (symtab_h): Add $(gdb_obstack_h).
6021 (objfiles_h): Add $(gdb_obstack_h).
6022
6023 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6024 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6025 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6026 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6027 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6028 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6029 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6030 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6031
6032 * Makefile.in (bcache.o): Update dependencies.
6033 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6034 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6035 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6036 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6037 (stabsread.o, symfile.o, symmisc.o): Ditto.
6038 (symtab.o, typeprint.o, macroexp.o): Ditto.
6039 (macrotab.o, mdebugread.o): Ditto.
6040 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6041 (coff_ecoff_h, aout_aout64_h): Define.
6042 (aout_stabs_gnu_h, libaout_h): Define.
6043
d138e37a
AC
60442002-07-29 Andrew Cagney <cagney@redhat.com>
6045
6046 * regcache.c (struct regcache_descr): Rename nr_registers to
6047 nr_cooked_registers. Revise comments describing the structure
6048 member fields.
6049 (init_regcache_descr): Update.
6050 (init_legacy_regcache_descr): Update.
6051 (read_register_gen, write_register_gen): When a cooked register in
6052 the raw register range, directly access the value from the raw
6053 register cache.
6054
460e6ec3
AC
60552002-07-29 Andrew Cagney <ac131313@redhat.com>
6056
6057 * z8k-tdep.c: Do not include "obstack.h".
6058 * h8300-tdep.c, h8500-tdep.c: Ditto.
6059 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6060 * valprint.c, v850-tdep.c: Ditto.
6061 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6062 * mn10200-tdep.c: Ditto.
6063
6064 * Makefile.in (z8k-tdep.o): Update dependencies.
6065 (m68hc11-tdep.o, valprint.o): Ditto.
6066 (v850-tdep.o, d10v-tdep.o): Ditto.
6067 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6068 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6069 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6070 (sh_opc_h, gdb_sim_sh_h): Define.
6071 (elf_sh_h, elf_bfd_h): Define.
6072 (opcode_m68hc11_h): Define.
6073 (OPCODES_SRC, OPCODES_DIR): define.
6074 (OPCODES): Use $(OPCODES_DIR).
6075 (gdb_sim_d10v_h): Rename sim_d10v_h.
6076 (gdb_sim_arm_h): Rename sim_arm_h.
6077
790c9cf0
KB
60782002-07-26 Kevin Buettner <kevinb@redhat.com>
6079
6080 * utils.c (host_pointer_to_address, address_to_host_pointer):
6081 Change internal_error() message to indicate function responsible
6082 for the error.
6083
9647fa49
KB
60842002-07-26 Kevin Buettner <kevinb@redhat.com>
6085
6086 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6087 calls to local_hex_string_custom().
6088
dabbe2c0
KB
60892002-07-26 Kevin Buettner <kevinb@redhat.com>
6090
6091 * irix5-nat.c: Move IRIX shared library support from here...
6092 * solib-irix.c: ...to here. Revised substantially to work with
6093 generic solib framework.
6094
b96d0a4e
KB
6095 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6096 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6097 * mips-irix-tdep.c: New file.
6098
313fb2f6
KB
6099 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6100 (mips-irix-tdep.o, solib-irix.o): New rules.
6101 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6102 solib-irix.o.
6103 * config/mips/irix6.mt (TDEPFILES): Likewise.
6104 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6105
ab2eaf26
KB
61062002-07-26 Kevin Buettner <kevinb@redhat.com>
6107
177e4768 6108 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6109 disabled (via ``#if 0'') includes.
6110
7244546a
KB
61112002-07-26 Kevin Buettner <kevinb@redhat.com>
6112
6113 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6114 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6115 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6116 Add support for the fpscr register.
6117 * rs6000-nat.c (regmap, fetch_inferior_registers)
6118 (store_inferior_registers, fetch_core_registers): Likewise.
6119
dd7be90a
KB
61202002-07-26 Kevin Buettner <kevinb@redhat.com>
6121
6122 * rs6000-nat.c (language.h): Include.
6123 (special_regs): Delete this array.
6124 (regmap): New function.
6125 (fetch_register, store_register): Use regmap() to map gdb
6126 register numbers to ptrace register numbers. Also, use
6127 outputs from regmap() to make decisions regarding type of
6128 ptrace() call to make. In particular, don't compare against
6129 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6130 (fetch_inferior_registers, store_inferior_registers): Where
6131 possible, obtain register numbers from tdep struct. Don't
6132 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6133 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6134 (LAST_UISA_SP_REGNUM): Delete.
6135
11bf77db
KB
61362002-07-25 Kevin Buettner <kevinb@redhat.com>
6137
6138 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6139 (fetch_registers, store_register, fetch_core_registers): Don't
6140 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6141 regcache_collect() as appropriate.
6142 (find_toc_address): Format hex address with local_hex_string().
6143
06afebeb
AC
61442002-07-25 Andrew Cagney <ac131313@redhat.com>
6145
6146 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6147 bfd/elf32-frv.c.
6148
8c554d79
TT
61492002-07-24 Tom Tromey <tromey@redhat.com>
6150
6151 * jv-exp.y: Marked all strings with _().
6152 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6153 internal_error.
6154 (MethodInvocation, CastExpression, parse_number, yyerror,
6155 java_type_from_name, push_expression_name, yylex): Typo fixes.
6156
e4c242d9
DJ
61572002-07-24 Daniel Jacobowitz <drow@mvista.com>
6158
6159 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6160 (tee_file_flush, tee_file_write, tee_file_fputs)
6161 (tee_file_isatty): New.
6162 * ui-file.h (tee_file_new): Add prototype.
6163
ebf56fd3
AS
61642002-07-24 Aidan Skinner <aidan@velvet.net>
6165
6166 * ada-lang.c: Change k&r style function definitions to prototyped
6167 form.
6168 * ada-typeprint.c: Change k&r style function definitions to prototyped
6169 form.
6170 * ada-valprint.c: Change k&r style function definitions to prototyped
6171 form.
6172
7fb623f7
AC
61732002-07-24 Andrew Cagney <cagney@redhat.com>
6174
6175 * README: Remove reference to remote-bug.
6176 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6177 remote-bug.c.
6178 (m88k-nat.o): Delete rule.
6179 (m88k-tdep.o): Delete rule.
6180 (remote-bug.o): Delete rule.
6181 * MAINTAINERS: Mark as obsolete.
6182 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6183 * m88k-tdep.c: Make file obsolete.
6184 * config/m88k/m88k.mh: Ditto.
6185 * config/m88k/delta88v4.mh: Ditto.
6186 * config/m88k/delta88v4.mt: Ditto.
6187 * config/m88k/delta88.mt: Ditto.
6188 * config/m88k/delta88.mh: Ditto.
6189 * remote-bug.c: Ditto.
6190 * config/m88k/tm-delta88.h: Ditto.
6191 * config/m88k/nm-delta88v4.h: Ditto.
6192 * config/m88k/xm-delta88.h: Ditto.
6193 * config/m88k/xm-dgux.h: Ditto.
6194 * config/m88k/tm-m88k.h: Ditto.
6195 * config/m88k/nm-m88k.h: Ditto.
6196 * config/m88k/tm-delta88v4.h: Ditto.
6197 * m88k-nat.c: Ditto.
6198 * cxux-nat.c: Ditto.
6199 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6200 and m88*-*-* obsolete.
6201 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6202 m88*-*-* obsolete.
6203
37611a2b
AC
62042002-07-24 Andrew Cagney <cagney@redhat.com>
6205
6206 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6207 constant. Same for local pointer variables.
6208 (extract_signed_integer): Ditto.
6209 * defs.h (extract_unsigned_integer): Update.
6210 (extract_signed_integer): Update.
6211
1aaa5f99
AC
62122002-07-24 Andrew Cagney <cagney@redhat.com>
6213
6214 * regcache.c (regcache_raw_write): Change buf parameter to a
6215 constant void pointer.
6216 (regcache_raw_read): Change buf parameter to a void pointer.
6217 (legacy_write_register_gen): Change myaddr parameter a constant
6218 void pointer.
6219 (supply_register): Change val parameter to a const void pointer.
6220 * regcache.h (regcache_raw_write): Update declaration.
6221 (regcache_raw_read): Update declaration.
6222 (supply_register): Update declaration.
6223
b4f5539f
TT
62242002-07-24 Tom Tromey <tromey@redhat.com>
6225
6226 * defs.h (gdb_readline_wrapper): Declare.
6227 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6228 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6229 * top.c (gdb_readline_wrapper): New function.
6230 (command_line_input): Use it.
6231
0818c12a
AC
62322002-07-24 Andrew Cagney <cagney@redhat.com>
6233
6234 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6235 regcache_read and regcache_write.
6236 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6237 * regcache.c: Update.
6238 * sh-tdep.c (sh64_push_arguments): Update comment.
6239 (sh_pseudo_register_read): Update.
6240 (sh_pseudo_register_write): Update.
6241 (sh4_register_read): Update.
6242 (sh4_register_write): Update.
6243 (sh64_pseudo_register_read): Update.
6244 (sh64_pseudo_register_write): Update.
6245 (sh64_register_read): Update.
6246 (sh64_register_write): Update.
6247 * i386-tdep.c (i386_extract_return_value): Update.
6248 (i386_extract_struct_value_address): Update.
6249 (i386_extract_return_value): Update.
6250 * blockframe.c (generic_read_register_dummy): Update.
6251 (generic_call_dummy_register_unwind): Update
6252 * infrun.c (write_inferior_status_register): Update.
6253
f7321c06
JB
62542002-07-23 Jim Blandy <jimb@redhat.com>
6255
6256 * parser-defs.h (expression_context_pc): Make this extern.
6257 (Thanks to Michael Snyder.)
6258
2037aebb
AC
62592002-07-23 Andrew Cagney <ac131313@redhat.com>
6260
6261 GDB 5.2.1 released from 5.2 branch.
6262 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6263 * README: Update to mention 5.2.1.
6264
66504d44
MS
62652002-07-23 Mark Salter <msalter@redhat.com>
6266
6267 * remote.c (remote_read_bytes): Fix check for error.
6268
27bae383
KB
62692002-07-22 Kevin Buettner <kevinb@redhat.com>
6270
6271 * aix-thread.c (language.h): Include.
6272 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6273 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6274 Print newlines at end of debug messages.
6275 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6276 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6277
62782002-07-22 Kevin Buettner <kevinb@redhat.com>
6279
6280 * aix-thread.c (ppc-tdep.h): Include.
6281 (special_register_p): New function.
6282 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6283 (store_regs_user_thread): Use register number information from
6284 gdbarch_tdep struct instead of hardcoded offsets relative to
6285 FIRST_UISA_SP_REGNUM.
6286 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6287 special_register_p() instead of using FPLAST_REGNUM and
6288 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6289 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6290 will be MQ's register number.
6291
62922002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6293
6294 * aix-thread.c (ops): Rename to aix_thread_ops.
6295 (base_ops): Rename to base_target.
6296 (ops_attach): Rename to aix_thread_attach.
6297 (ops_detach): Rename to aix_thread_detach.
6298 (ops_resume): Rename to aix_thread_detach.
6299 (ops_wait): Rename to aix_thread_wait.
6300 (ops_kill): Rename to aix_thread_kill.
6301 (init_ops): Rename to init_aix_thread_ops.
6302 (ops_fetch_register): Rename to aix_thread_fetch_register.
6303 (ops_store_register): Rename to aix_thread_store_register.
6304 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6305 (ops_thread_alive): Rename to aix_thread_thread_alive.
6306 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6307 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6308 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6309 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6310 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6311 (store_regs_lib): Rename to store_regs_user_thread.
6312 (store_regs_kern): Rename to store_regs_kernel_thread.
6313
27bae383 63142002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6315
6316 * aix-thread.c (ops_prepare_to_store): Eliminate.
6317 (init_ops): Don't initialize ops.prepare_to_store.
6318 (store_regs_kern): Pre-fetch register buffers from child,
6319 because some registers may not be in the cache. Copy
6320 regs from register cache only if they are cached.
6321 (store_regs_lib): Copy regs from register cache only
6322 if they are cached.
6323 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6324 fill_gprs64): Ditto.
6325
61c5da0b
KB
63262002-07-22 Kevin Buettner <kevinb@redhat.com>
6327
6328 * aix-thread.c (gdb_assert.h): Include.
6329 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6330 register sizes (from register cache) match size of buffer holding
6331 register data.
6332 (fill_sprs32): Change parameter types to match those in the ptrace()
6333 buffer.
6334 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6335 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6336
63372002-07-22 Michael Snyder <msnyder@redhat.com>
6338
6339 * aix-thread.c (supply_sprs64): Cosmetic change.
6340 (supply_sprs32): Cosmetic change.
6341 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6342 (fill_sprs64): Use regcache_collect instead of read_register.
6343 (store_regs_lib): Use regcache_collect instead of
6344 read_register. Use fill_sprs32 instead of fill_sprs64,
6345 if debugging a 32-bit architecture.
6346 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6347 out of the register cache, instead of passing a pointer into
6348 the register cache directly to ptrace. Use regcache_collect
6349 insteaad of read_register.
6350 (ops_prepare_to_store): Use target_read_registers instead
6351 of read_register_bytes.
6352
36479eb1
AS
63532002-07-20 Aidan Skinner <aidan@velvet.net>
6354
6355 * MAINTAINERS: Add self under write after approval.
6356
80ae6ee2
AS
63572002-07-20 Aidan Skinner <aidan@velvet.net>
6358
6359 * ada-tasks.c: Change k&r style function definitions to prototyped
6360 form.
6361
8a8ab2b9
AC
63622002-07-19 Andrew Cagney <ac131313@redhat.com>
6363
6364 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6365 * x86-64-tdep.c: Include "objfiles.h".
6366 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6367 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6368
fb16b900
ML
63692002-07-17 Michal Ludvig <michal@suse.cz>
6370
6371 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6372 (update_context): Initialise cfa variable.
6373
0fe7bf7b
MS
63742002-07-17 Michael Snyder <msnyder@redhat.com>
6375
6376 * aix-thread.c: Shorten some long lines.
6377 Bring comments into line with code spec.
6378
488f131b
JB
63792002-07-18 Joel Brobecker <brobecker@gnat.com>
6380
6381 * infrun.c: Re-indent using gdb_indent.sh.
6382
46c415d2
JB
63832002-07-18 Joel Brobecker <brobecker@gnat.com>
6384
6385 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6386 Leave the indentation temporarily untouched, to minimize the diffs.
6387
cdecafbe
EZ
63882002-07-18 Elena Zannoni <ezannoni@redhat.com>
6389
6390 * stabsread.c: Make os9k sections of the code obsolete,
6391 for real this time.
6392 * stabsread.h: Make os9k sections of the code obsolete.
6393
7b6aa020
ML
63942002-07-18 Michal Ludvig <mludvig@suse.cz>
6395
09ec9b38
ML
6396 * linux-low.c (regsets_store_inferior_registers): Add free()
6397 at the end of a loop to prevent memory leak.
6398 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6399 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6400 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6401 line a comment.
4894ac5d 6402 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6403
233282cd
JB
64042002-07-17 Jim Blandy <jimb@redhat.com>
6405
6406 * macrocmd.c (info_macro_command): Remove newline from error
6407 message.
6408
7b6aa020 64092002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6410
6411 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6412 (sh_gdbarch_init): Use it for sh-dsp.
6413
f7ef9339
KB
64142002-07-16 Kevin Buettner <kevinb@redhat.com>
6415
6416 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6417 64-bit DWARF2 format.
6418
8dd72958
JB
64192002-07-16 Joel Brobecker <brobecker@gnat.com>
6420
6421 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6422 <sys/proc.h> when not available.
6423
a99a9e1b
AC
64242002-07-16 Andrew Cagney <ac131313@redhat.com>
6425
6426 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6427 * stabsread.c: Make os9k sections of the code obsolete.
6428 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6429 * config/i386/i386os9k.mt: Make file obsolete.
6430 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6431 (COMMON_OBS): Remove os9kread.o
6432 (SFILES): Remove os9kread.c.
6433 (os9kread.o, remote-os9k.o): Make target obsolete.
6434 * remote-os9k.c: Make file obsolete.
6435 * os9kread.c: Make file obsolete.
6436 * Makefile.in
6437
7a3085c1
AC
64382002-07-16 Andrew Cagney <ac131313@redhat.com>
6439
6440 * NEWS: Mention that the FR30 has been made obsolete.
6441 * fr30-tdep.c: Make file obsolete.
6442 * config/fr30/tm-fr30.h: Ditto.
6443 * config/fr30/fr30.mt: Ditto.
6444 * configure.tgt: Make fr30-*-elf obsolete.
6445 * MAINTAINERS: Make fr30-elf obsolete.
6446
28a93f5a
PM
64472002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6448
6449 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6450 found is not inside a section.
6451
be006b8b
KB
64522002-07-15 Kevin Buettner <kevinb@redhat.com>
6453
6454 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6455 strerror().
6456 (pdc_realloc): Use xrealloc() instead of realloc().
6457
14fa3751
KB
64582002-07-15 Kevin Buettner <kevinb@redhat.com>
6459
6460 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6461 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6462 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6463 macros.
6464
42cc437f
KB
64652002-07-15 Kevin Buettner <kevinb@redhat.com>
6466
6467 * aix-thread.c (ptrace_check): Eliminate goto.
6468 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6469 problem.
6470
8e2c28d4
KB
64712002-07-15 Kevin Buettner <kevinb@redhat.com>
6472
6473 * aix-thread.c (gdbcmd.h): Include.
6474 (DEBUG, DBG, DBG2, dbg): Eliminate.
6475 (debug_aix_thread): New static global.
6476 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6477 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6478 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6479 invocations to DBG and DBG2 macros to test against
6480 ``debug_aix_thread'' and call fprintf_unfiltered().
6481 (_initialize_aix_thread): Add new command "set debug aix-thread".
6482
30413464
AC
64832002-07-15 Andrew Cagney <ac131313@redhat.com>
6484
6485 From Gerhard Tonn <TON@de.ibm.com>:
6486 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6487 instead of supply_register.
6488
7c43edc1
AC
64892002-07-15 Andrew Cagney <ac131313@redhat.com>
6490
6491 * dwarf2cfi.c: Include "gdb_assert.h".
6492 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6493 non-NULL.
6494 (update_context): Do not use __func__. Add missing ``break''.
6495 (update_context): Do not use __func__.
6496
9364a0ef
EZ
64972002-07-15 Elena Zannoni <ezannoni@redhat.com>
6498
6499 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6500 and its setting. Set gdbarch instruction printing functions
6501 directly. For non-rs6000 case use new function
6502 gdb_print_insn_powerpc.
6503 (gdb_print_insn_powerpc): New function.
6504
3fbeef0b
AC
65052002-07-13 Andrew Cagney <ac131313@redhat.com>
6506
92eb23c5 6507 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6508 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6509 * configure.tgt: Mark d30v-*-* as obsolete.
6510 * d30v-tdep.c: Mark file as obsolete.
6511 * config/d30v/d30v.mt: Ditto.
6512 * config/d30v/tm-d30v.h: Ditto.
6513
aacb1f0a
AS
65142002-07-13 Aidan Skinner <aidan@velvet.net>
6515
6516 * ada-tasks.c (add_task_entry): replace calls to
6517 malloc() with xmalloc
6518 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6519
6520 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6521 ada_finish_decode_line_1, all_sals_for_line
6522 ada_breakpoint_rewrite): replace calls to free() with xfree()
6523
c11d79f2
KB
65242002-07-12 Kevin Buettner <kevinb@redhat.com>
6525
6526 From Nicholas Duffek (with minor changes by Martin Hunt,
6527 Louis Hamilton, and Kevin Buettner):
6528 * aix-thread.c: New file.
6529
8e19ed76
PS
65302002-07-12 Petr Sorfa <petrs@caldera.com>
6531
6532 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6533 complaint for invalid attribute class or form.
6534 (read_func_scope): DW_AT_frame_base
6535 better handling of DW_AT_block*.
6536 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6537 better handling of DW_AT_block*.
6538 (read_common_block): DW_AT_location
6539 better handling of DW_AT_block*.
6540 (read_partial_die): DW_AT_location better handling
6541 of DW_AT_block*.
6542 (new_symbol): DW_AT_external better handling of
6543 DW_AT_block*. Proper initialization of variable
6544 "addr".
6545 (attr_form_is_block): New function that returns true
6546 if the attribute's form is of DW_FORM_block*.
6547
295401f7
DJ
65482002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6549
6550 * valops.c (find_method_list): Remove comment about
6551 removed STATIC_MEMFUNCP argument.
6552 (value_find_oload_method_list): Likewise.
6553
e42dc924
KB
65542002-07-12 Kevin Buettner <kevinb@redhat.com>
6555
6556 From Nicholas Duffek:
6557 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6558 target_new_objfile_hook.
6559
6904b546
KB
65602002-07-12 Kevin Buettner <kevinb@redhat.com>
6561
6562 From Nicholas Duffek:
6563 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6564 csect.
6565
53fe9346
AC
65662002-07-12 Andrew Cagney <cagney@redhat.com>
6567
6568 * MAINTAINERS: Mention --enable-sim-build-warnings.
6569 (m68hc11-elf): Disable sim build warnings.
6570 (m32r-elf): Mark as broken obsolete candidate.
6571 (x86_64-linux-gnu): Mark as buildable with -Werror.
6572 (arm-elf): Change -w to ``,'' which enables warnings but not
6573 -Werror.
6574
af5f3db6
AC
65752002-07-12 Andrew Cagney <ac131313@redhat.com>
6576
6577 * bcache.h: Update copyright.
6578 (struct bstring, struct bcache): Move definition to "bcache.c".
6579 Replaced by opaque declaration.
6580 (bcache_xfree): Replace free_bcache.
6581 (bcache_xmalloc, bcache_memory_used): Declare.
6582
6583 * bcache.c: Update copyright.
6584 (struct bstring, struct bcache): Moved to here from "bcache.h".
6585 Update comments.
6586 (bcache_xmalloc, bcache_memory_used): New functions.
6587 (bcache_xfree): Replace function free_bcache.
6588
6589 * Makefile.in (objfiles.o): Add $(bcache_h).
6590 (objfiles_h): Remove $(bcache_h).
6591 (symfile.o): Add $(bcache_h).
6592
6593 * symmisc.c: Update copyright.
6594 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6595 (print_objfile_statistics): Use bcache_memory_used.
6596
6597 * symfile.c: Include "bcache.h".
6598 (reread_symbols): Use bcache_xfree.
6599 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6600 (add_psymbol_to_list): Pass psymbol_cache by value.
6601 (add_psymbol_with_dem_name_to_list): Ditto.
6602
6603 * objfiles.h: Update copyright.
6604 (struct bcache): Declare opaque. Do not include "bcache.h".
6605 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6606 bcache'' pointers.
6607 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6608
6609 * objfiles.c: Include "bcache.h". Update copyright.
6610 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6611 macro_cache.
6612 (free_objfile): Use bcache_xfree.
6613
444199e7
GS
66142002-07-11 Grace Sainsbury <graces@redhat.com>
6615
6616 * monitor.c (monitor_fetch_register): Make name a constant.
6617 (monitor_store_register): Same.
6618
261397f8
DJ
66192002-07-11 Daniel Jacobowitz <drow@mvista.com>
6620
6621 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6622 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6623 (finish_block) For non-function blocks, hash the symbol table. For
6624 function blocks, mark the symbol table as unhashed.
6625 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6626 (msymbol_hash_iw): Likewise.
6627 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6628 value.
6629 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6630 (lookup_minimal_symbol): Likewise for both.
6631 * symtab.h (struct block): Add `hashtable' flag. Comment the
6632 hashtable.
6633 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6634 (ALL_BLOCK_SYMBOLS): Update.
6635 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6636 (struct symbol): Add `hash_next' pointer.
6637 * symtab.c (lookup_block_symbol): Search using the hash table when
6638 possible.
6639 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6640 (search_symbols, find_addr_symbol): Likewise.
6641
6642 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6643 (read_dst_symtab): Likewise.
6644 * jv-lang.c (get_java_class_symtab): Likewise.
6645 * mdebugread.c: Include "gdb_assert.h".
6646 (shrink_block): Assert that the block being modified is not hashed.
6647 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6648 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6649 symbols.
6650 (dump_symtab): Recognize hashed blocks.
6651 * printcmd.c (print_frame_args): Assert that function blocks do not
6652 have hashed symbol tables.
6653 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6654 (fill_in_ada_prototype, debug_print_block): Likewise.
6655 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6656
6f0eaa01
CV
66572002-07-11 Corinna Vinschen <vinschen@redhat.com>
6658
6659 * stack.c (print_frame): Use result of frame_address_in_block()
6660 instead of fi->pc when evaluating symbols.
6661 (backtrace_command_1): Ditto.
6662
a208b0cb
AC
66632002-07-11 Andrew Cagney <cagney@redhat.com>
6664
6665 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6666 Make static.
6667
6668 * arm-tdep.c (arm_register_name): Make return type constant.
6669
a6b6b089
AC
66702002-07-10 Andrew Cagney <ac131313@redhat.com>
6671
5ae5f592
AC
6672 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6673 prototype.
6674 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6675 * s390-tdep.c (s390_fp_regnum): Ditto.
6676 (s390_read_fp): Ditto.
6677 (s390_pop_frame): Ditto.
6678 (_initialize_s390_tdep): Ditto.
6679 * remote.c (get_remote_state): Ditto.
6680 * procfs.c (mappingflags): Ditto.
6681 * memattr.c (_initialize_mem): Ditto.
6682 * mcore-tdep.c (mcore_pop_frame): Ditto.
6683 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6684 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6685 * language.c (set_case_str): Ditto.
6686 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6687 * frv-tdep.c (new_variant): Ditto.
6688 (frv_stopped_data_address): Ditto.
6689 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6690 (context_alloc): Ditto.
6691 (frame_state_alloc): Ditto.
6692 (unwind_tmp_obstack_init): Ditto.
6693 (unwind_tmp_obstack_free): Ditto.
6694 (cfi_read_fp): Ditto.
6695 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6696 (cris_pop_frame): Ditto.
6697 * c-lang.c (scanning_macro_expansion): Ditto.
6698 (finished_macro_expansion): Ditto.
6699 (c_preprocess_and_parse): Ditto.
6700 * gdbarch.sh: Ditto.
6701 * gdbarch.h, gdbarch.c: Regenerate.
6702 * config/mn10200/tm-mn10200.h: Adjust indentation.
6703 * target.c: Adjust indentation.
6704 * symtab.h: Adjust indentation.
6705 * stabsread.h: Adjust indentation.
6706 * remote-es.c: Adjust indentation.
6707 * os9kread.c: Adjust indentation.
6708
67092002-07-10 Andrew Cagney <ac131313@redhat.com>
6710
a6b6b089
AC
6711 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6712 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6713
a1789893
GS
67142002-07-10 Grace Sainsbury <graces@redhat.com>
6715
6716 * NEWS: Mention m68k, mcore multi-arching.
6717 * MAINTAINERS: Change status of m68k, mcore to reflect
6718 multi-arching.
6719
02f0d45d
DJ
67202002-07-10 Daniel Jacobowitz <drow@mvista.com>
6721
6722 * valops.c (find_overload_match): Free oload_syms.
6723
f15f768e
JB
67242002-07-09 Joel Brobecker <brobecker@gnat.com>
6725
6726 Define HAVE_SYS_PROC_H if sys/proc.h exists
6727 * configure.in: Add check for sys/proc.h
6728 * config.in: Regenerate.
6729 * configure: Regenerate.
6730
902a7139
GS
67312002-07-09 Grace Sainsbury <graces@redhat.com>
6732
6733 * config/m68k/tm-m68k.h: Remove macros wrapped in
6734 #if !GDB_MULTI_ARCH.
6735
a534e424
AC
67362002-07-08 Andrew Cagney <ac131313@redhat.com>
6737
6738 * config.in, configure: Regenerate.
6739
9b94f7bf
MK
67402002-07-08 Mark Kettenis <kettenis@gnu.org>
6741
6742 * dwarf2cfi.c: Include "gcore.h".
6743 (execute_stack_op): Fix implementation of the
6744 DW_OP_deref and DW_OP_deref_size operators by letting do their
6745 lookup in the target.
6746
1d34db41
MK
67472002-07-07 Mark Kettenis <kettenis@gnu.org>
6748
6749 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6750 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6751 tdep->sc_sp_offset.
6752
79d5b63a
DJ
67532002-07-05 Daniel Jacobowitz <drow@mvista.com>
6754
6755 Fix PR gdb/595, gdb/602
6756 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6757 Don't call value_cast, just read the vtable pointer; update comments
6758 to match.
6759
3bb912e8
GS
67602002-07-05 Grace Sainsbury <graces@redhat.com>
6761
6762 * config/mcore/tm-mcore.h: Remove file.
6763 * config/mcore/mcore.mt: Remove definition of TM_FILE
6764 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6765
ca39387d
MK
67662002-07-05 Mark Kettenis <kettenis@gnu.org>
6767
6768 * i386bsd-tdep.c: Include "gdb_string.h".
6769
efdc1108
GS
67702002-07-04 Grace Sainsbury <graces@redhat.com>
6771
6772 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6773 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6774 mcore-tdep.
6775 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6776 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6777 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6778 (RETVAL_REGNUM): Move macros from tm-mcore.h
6779 (mcore_reg_struct_has_addr): New function.
6780 (mcore_gdbarch_init): Added initializations for the macros removed
6781 from tm-mcore.h.
6782
bb21884d
MK
67832002-07-04 Mark Kettenis <kettenis@gnu.org>
6784
6785 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6786 traditonal string branding within the ELF header.
6787
228c6d41
DJ
67882002-07-04 Daniel Jacobowitz <drow@mvista.com>
6789
6790 * symtab.c (remove_params): New function.
6791 (make_symbol_overload_list): Use it instead of cplus_demangle.
6792 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6793
2404952e
MK
67942002-07-04 Mark Kettenis <kettenis@gnu.org>
6795
e5e4acad
MK
6796 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6797
baadce09
MK
6798 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6799 New variables.
6800 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6801 and tdep->sigtramp_end.
6802 * i386obsd-nat.c: New file.
6803 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6804
2404952e
MK
6805 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6806 Don't call get_current_frame().
6807
9b4f1ba7
PM
68082002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6809
6810 * i386-nat.c (child_post_startup_inferior): New function
6811 calling i386_cleanup_dregs if
6812 I386_USE_GENERIC_WATCHPOINTS is defined.
6813 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6814 conditional to acknowledge that i386-nat.c has its
6815 own child_post_startup_inferior function.
6816
c0d1d883
MK
68172002-07-04 Mark Kettenis <kettenis@gnu.org>
6818
00f8375e
MK
6819 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6820 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6821 instead of MAX_REGISTER_RAW_SIZE.
6822 (i386_extract_return_value, i386_extract_struct_value_address):
6823 Convert to use regcache.
6824 (i386_gdbarch_init): Set max_register_raw_size and
6825 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6826 Set extract_return_value and extract_struct_value_address instead
6827 of their deprecated variants.
6828
c0d1d883
MK
6829 Convert i386 target to generic dummy frames.
6830 * i386-tdep.c: Include "symfile.h".
6831 (i386_frameless_signal_p): Consider a function to be frameless if
6832 the pc points at the first instruction of the function.
6833 (i386_frame_chain): Handle (generic) call dummies.
6834 (i386_frame_saved_pc): Likewise.
6835 (i386_frame_init_saved_regs): Remove code dealing with call
6836 dummies on the stack.
6837 (i386_push_dummy_frame): Removed.
6838 (i386_call_dummy_words): Removed.
6839 (i386_fix_call_dummy): Removed.
6840 (i386_push_return_address): New function.
6841 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6842 parameter, and don't call get_current_frame.
6843 (i386_pop_frame): New function.
6844 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6845 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6846 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6847 call_dummy_length to 0, set call_dummy_words to NULL, set
6848 sizeof_call_dummy_words to 0, set fix_call_dummy to
6849 generic_fix_call_dummy, set pc_in_call_dummy to
6850 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6851 generic_push_dummy_frame, set push_return_address to
6852 i386_push_return_address and set frame_chain_valid to
6853 generic_file_frame_chain_valid.
6854
049ee0e4
AC
68552002-07-03 Andrew Cagney <ac131313@redhat.com>
6856
6857 * gdbarch.sh (struct regcache): Add opaque declaration.
6858 (EXTRACT_RETURN_VALUE): New architecture method.
6859 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6860 * gdbarch.h, gdbarch.c: Regenerate.
6861 * arch-utils.c (legacy_extract_return_value): New function.
6862 * arch-utils.h (legacy_extract_return_value): Declare.
6863 * values.c (value_being_returned): Re-enable code handling
6864 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6865 deprecated_grub_regcache_for_registers call to block handling
6866 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6867 (EXTRACT_RETURN_VALUE): Do not define.
6868
4e0d9804
GS
68692002-07-03 Grace Sainsbury <graces@redhat.com>
6870
6871 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6872 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6873 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6874 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6875 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6876 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6877 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6878 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6879 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6880 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6881 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6882 argument so the function fits the prototype in the architecture
6883 vector.
6884 (mcore_pop_frame): Remove argument so the function fits the
6885 prototype. Use get_current_frame instead of the argument.
6886 (mcore_push_arguments): Change type of struct_return so the
6887 function can be used in the architecture vector.
6888 (mcore_store_struct_return): Add.
6889 (mcore_frame_init_saved_regs): Add.
6890 (mcore_gdbarch_init): Add function calls to replace the macros
6891 removed from tm-mcore.h
6892
36160dc4
AC
68932002-07-03 Andrew Cagney <ac131313@redhat.com>
6894
6895 * infcmd.c (print_return_value): Remove compatibility code calling
6896 deprecated_grub_regcache_for_registers.
6897
6898 * values.c: Include "regcache.h".
6899 (value_being_returned): Update. Use
6900 deprecated_grub_regcache_for_registers to extract the register
6901 buffer address.
6902 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6903 ``struct regcache''.
6904 * Makefile.in (values.o): Add dependency on $(regcache_h).
6905
6906 * inferior.h (run_stack_dummy): Change type of second parameter to
6907 a ``struct regcache''.
6908 * valops.c (hand_function_call): Change type of retbuf to ``struct
6909 regcache''. Allocate using regcache_xmalloc, clean using
6910 make_cleanup_regcache_xfree.
6911 * infcmd.c (run_stack_dummy): Update. Use
6912 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6913
6914 * regcache.c (do_regcache_xfree): New function.
6915 (make_cleanup_regcache_xfree): New function.
6916 * regcache.h (make_cleanup_regcache_xfree): Declare.
6917
e64d9b3d
MH
69182002-07-03 Martin M. Hunt <hunt@redhat.com>
6919
4dd79c29
MH
6920 * event-top.c (command_line_handler): Don't read past
6921 beginning of buffer.
e64d9b3d 6922
4dd79c29
MH
69232002-07-03 Martin M. Hunt <hunt@redhat.com>
6924
e64d9b3d
MH
6925 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6926 struct frame_id.
6927 (varobj_create): Store frame_id for root.
6928 (varobj_gen_name): Use xasprintf.
6929 (varobj_update): Save and restore frame using get_frame_id() and
6930 frame_find_by_id().
6931 (create_child): Use xasprintf.
6932 (new_root_variable): Initialize frame_id.
6933 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6934 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6935 to prevent memory leak.
6936
26e6c56a
AC
69372002-07-03 Andrew Cagney <ac131313@redhat.com>
6938
6939 * valops.c (hand_function_call): Move declaration of retbuf to
6940 start of function, allocate using malloc, add a cleanup but before
6941 the inf_status cleanup, cleanup the buffer. Rename local variable
6942 old_chain to inf_status_cleanup.
6943
f436dd25
MH
69442002-07-03 Martin M. Hunt <hunt@redhat.com>
6945
6946 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6947
6948 * cli/cli-decode.c (cmd_func_p): New function.
6949 (cmd_func): New function.
6950
6951 * command.h: Add cmd_func() and cmd_func_p().
6952
4cfe2084
GS
69532002-07-03 Grace Sainsbury <graces@redhat.com>
6954
6955 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6956 (REGISTER_SIZE): Remove.
6957 (MAX_REGISTER_RAW_SIZE): Remove.
6958 (REGISTER_VIRTUAL_TYPE): Remove.
6959 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6960 (REGISTER_NAME): Remove.
6961 (USE_GENERIC_DUMMY_FRAMES): Remove.
6962 (CALL_DUMMY): Remove.
6963 (CALL_DUMMY_START_OFFSET): Remove.
6964 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6965 (CALL_DUMMY_LOCATION): Remove.
6966 (FIX_CALL_DUMMY): Remove.
6967 (CALL_DUMMY_ADDRESS): Remove.
6968 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6969 (SAVE_DUMMY_FRAME_TOS): Remove.
6970 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6971 (mcore_register_virtual_type): New function.
6972 (mcore_register_byte): New function.
6973 (mcore_register_size): New function.
6974 (mcore_register_name): New function.
6975 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6976 macros removed from tm-mcore.h.
6977 (mcore_dump_tdep): Add.
6978 (_initialize_mcore_tdep): Add gdbarch_register call.
6979
4fd667e9
MK
69802002-07-03 Mark Kettenis <kettenis@gnu.org>
6981
6982 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6983 frameless_look_for_prologue, such that we actually call this
6984 function.
6985
42f99ac2
JB
69862002-07-02 Joel Brobecker <brobecker@gnat.com>
6987
6988 * frame.h (frame_address_in_block): New function.
6989
6990 * blockframe.c (frame_address_in_block): New function extracted
6991 from get_frame_block().
6992 (get_frame_block): Use frame_address_in_block().
6993 (block_innermost_frame): Use frame_address_in_block() to match
6994 the frame pc address against the block boundaries rather than
6995 the frame pc directly. This prevents a failure when a frame pc
6996 is actually a return-address pointing immediately after the end
6997 of the given block.
6998
103a1597 69992002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
7000
7001 * MAINTAINERS: Add self under write after approval.
7002
70032002-07-02 Grace Sainsbury <graces@redhat.com>
7004
103a1597
GS
7005 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7006 used in architecture vector. The default is
7007 m68k_local_breakpoint_from_pc.
7008 (m68k_local_breakpoint_from_pc): Add.
7009 (enum): Add register numbers from tm-m68k.h.
7010 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7011 vector.
7012 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7013 GDB_MULTI_ARCH_PARTIAL.
7014 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7015 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7016 m68k-tdep.c.
7017 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7018 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7019 to enum in m68k-tdep.c
7020
7a5a0534
JB
70212002-07-02 Joel Brobecker <brobecker@gnat.com>
7022
7023 * solib-osf.c (open_map): Compute the list of shared libraries
7024 loaded by the inferior, rather than the list of libraries loaded
7025 by GDB itself. Otherwise, GDB ends up reading the symbols from
7026 the wrong shared libraries...
7027
6f558d74
MK
70282002-07-02 Mark Kettenis <kettenis@gnu.org>
7029
b7d15bf7
MK
7030 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7031 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7032 macros.
7033 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7034 Remove functions.
7035 (FRAMELESS_SIGNAL): Remove function.
7036 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7037 i386_linux_saved_pc_after_call): Removed.
7038 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7039 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7040 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7041
6bff26de
MK
7042 * i386-tdep.c (i386_frameless_signal_p): New function.
7043 (i386_frame_chain): Deal with frameless signals.
7044 (i386_sigtramp_saved_sp): New function.
7045 (i386_frame_saved_pc): Deal with frameless signals.
7046 (i386_saved_pc_after_call): Make sure the correct value is
7047 returned just after entry into a sigtramp.
7048 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7049 i386fbsd4_sc_sp_offset): New variables.
7050 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7051 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7052 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7053 similiar to what we already did for sc_pc_offset.
7054 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7055 tdep->sc_sp_offset.
7056
6f558d74
MK
7057 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7058
145564b7
ML
70592002-07-02 Michal Ludvig <mludvig@suse.cz>
7060
7061 * config/i386/tm-x86-64linux.h: New.
7062 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7063 definitions.
7064 * config/i386/nm-x86-64.h: Rename to ...
7065 * config/i386/nm-x86-64linux.h: ... this one.
7066 * config/i386/x86-64linux.mh: Reflect the above change.
7067
3a1e71e3
MK
70682002-07-01 Mark Kettenis <kettenis@gnu.org>
7069
21d0e8a4
MK
7070 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7071 with sigcontext_addr. Add sc_sp_offset.
7072 (i386bsd_sigtramp_saved_pc): Remove prototype.
7073 (i386bsd_sicontext_addr): Add prototype.
7074 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7075 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7076 (i386_svr4_sigtramp_saved_pc): Removed.
7077 (i386_svr4_sigcontext_addr): New function.
7078 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7079 Initialize tdep->sigcontext_addr instead. Initialize
7080 tdep->sc_pc_offset and tdep->sc_sp_offset.
7081 (i386_gdbarch_init): Likewise.
7082 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7083 any more.
7084 (i386bsd_sigtramp_saved_pc): Remove function.
7085 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7086 Initialize tdep->sigcontext_addr instead. Initialize
7087 tdep->sc_pc_offset.
7088 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7089 of tdep->sigtramp_saved_pc.
7090 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7091 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7092 instead.
7093
3a1e71e3
MK
7094 * i386-tdep.c (i386_frameless_function_invocation,
7095 i386_frame_num_args, i386_frame_init_saved_regs,
7096 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7097 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7098 i386_extract_return_value, i386_store_return_value,
7099 i386_extract_struct_value_address, i386_register_virtual_type,
7100 i386_register_convertible, i386_register_convert_to_virtual,
7101 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7102 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7103 static.
7104
52e9098c
MK
71052002-07-01 Mark Kettenis <kettenis@gnu.org>
7106
77b13a25
MK
7107 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7108
52e9098c
MK
7109 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7110 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7111 this macro. Include "value.h".
7112
1b372fff
AS
71132002-06-30 Aidan Skinner <aidan@velvet.net>
7114
7115 * ada-exp.tab.c: remove as it's a generated file
7116 * ada-lex.c: remove as it's a generated file
7117
9c5045b5
MK
71182002-06-30 Mark Kettenis <kettenis@gnu.org>
7119
4a93c5bb
MK
7120 * config/i386/tm-i386.h (struct frame_info, struct
7121 frame_saved_regs, struct value, struct type): Remove forward
7122 declarations.
7123
322d4fe0
MK
7124 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7125 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7126 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7127 (FILL_FPXREGSET): Define.
7128
fdd8263d
MK
7129 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7130
482e577b
MK
7131 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7132 i[3456]86-*-netbsd* case.
7133 * config/i386/tm-obsd.h: Removed.
7134 * config/i386/obsd.mt: Removed.
7135 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7136 core-aout.o.
7137 (MH_CFLAGS): Add -DYYDEBUG=0.
7138
6916549a
MK
7139 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7140 i386nbsd_sc_pc_offset on OpenBSD too.
7141
9c5045b5
MK
7142 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7143 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7144 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7145 define.
7146 * i386bsd-tdep.c: Include "arch-utils.h".
7147 (i386bsd_aout_in_solib_call_trampoline): New function.
7148 (i386bsd_init_abi): Set in_solib_call_trampoline to
7149 i386bsd_aout_in_solib_call_trampoline.
7150 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7151 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7152
aa84d1bb
AC
71532002-06-28 Andrew Cagney <ac131313@redhat.com>
7154
7155 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7156 (struct obstack, struct bcache): Add opaque declarations.
7157 * Makefile.in (macrotab_h): Update
7158
b4d83933
AC
71592002-06-28 Andrew Cagney <ac131313@redhat.com>
7160
7161 * blockframe.c (generic_find_dummy_frame): Change return type to
7162 ``struct regcache''.
7163 (struct dummy_frame): Replace field ``registers'' with regcache, a
7164 struct regcache object.
7165 (generic_find_dummy_frame): Update.
7166 (generic_push_dummy_frame): Update. Use regcache_xfree,
7167 regcache_xmalloc and regcache_cpy.
7168 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7169 regcache_xfree.
7170 (deprecated_generic_find_dummy_frame): Update.
7171 (generic_read_register_dummy): Update. Use
7172 regcache_read_as_address.
7173 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7174 (generic_get_saved_register): Update. Use regcache_read.
7175
08c0b5bc
AC
71762002-06-28 Andrew Cagney <ac131313@redhat.com>
7177
7178 * Makefile.in (objfiles_h): Add $(bcache_h).
7179 * objfiles.h: Include "bcache.h".
7180
7181 * Makefile.in (symtab_h): Remove $(bcache_h).
7182 * symtab.h: Do not include "bcache.h".
7183
1f89801a
AC
71842002-06-28 Andrew Cagney <ac131313@redhat.com>
7185
7186 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7187 generic_func_frame_chain_valid.
7188
b9644b58
DB
71892002-06-28 David O'Brien <obrien@FreeBSD.org>
7190
7191 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7192 * config/i386/tm-fbsd.h: Likewise.
7193
dd486634
AC
71942002-06-28 Andrew Cagney <ac131313@redhat.com>
7195
7196 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7197 generic_unwind_get_saved_register.
7198
0b434a00
AC
71992002-06-27 Andrew Cagney <ac131313@redhat.com>
7200
7201 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7202 * regcache.c (supply_register): Add missing argument to
7203 register_buffer call.
7204
f30e5a77
AC
72052002-06-27 Andrew Cagney <ac131313@redhat.com>
7206
7207 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7208 Solaris /bin/grep does not not like it. From Peter Schauer.
7209
9f064c95
TT
72102002-06-26 Tom Tromey <tromey@redhat.com>
7211
7212 * command.h (add_setshow_cmd): Declare.
7213 (add_setshow_cmd_full): Declare.
7214 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7215 returns void. Use add_setshow_cmd_full.
7216 (add_setshow_cmd_full): New function.
7217 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7218 (add_setshow_boolean_cmd): Likewise.
7219
099c7589
JT
72202002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7221
7222 * config/vax/tm-vax.h: Protect from multiple inclusion.
7223 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7224 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7225 * config/vax/tm-vaxbsd.h: ...here. New file.
7226 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7227
1d049c5e
JT
72282002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7229
7230 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7231 (BELIEVE_PCC_PROMOTION): Remove.
7232 (AP_REGNUM): Move to...
7233 * config/vax/nm-vax.h: ...here.
7234 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7235 (vax_breakpoint_from_pc): New function.
7236 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7237 and gdbarch_believe_pcc_promotion.
7238
4791e091
JT
72392002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7240
7241 * Makefile.in (vax_tdep_h): Define.
7242 (vax-tdep.o): Use $(vax_tdep_h).
7243 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7244 (vax_dump_tdep): New function.
7245 (_initialize_vax_tdep): Register vax_dump_tdep.
7246 * vax-tdep.h: Include osabi.h.
7247 (struct gdbarch_tdep): New.
7248
da130f98
AC
72492002-06-26 Andrew Cagney <cagney@redhat.com>
7250
7251 * frame.h (deprecated_generic_find_dummy_frame): Rename
7252 generic_find_dummy_frame.
7253 * blockframe.c (generic_find_dummy_frame): Make static.
7254 (deprecated_generic_find_dummy_frame): New function.
7255 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7256 generic_find_dummy_frame with deprecated_find_dummy_frame.
7257 (sh64_nofp_frame_init_saved_regs): Ditto.
7258 (sh_fp_frame_init_saved_regs): Ditto.
7259 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7260 (s390_frame_chain): Ditto.
7261 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7262
6300c360
GS
72632002-06-26 Grace Sainsbury <graces@redhat.com>
7264
7265 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7266 gdbarch vector are at the top.
7267 (NUM_REGS): Remove.
7268 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7269 (FRAME_ARGS_ADDRESS): Remove.
7270 (FRAME_LOCALS_ADDRESS): Remove.
7271 (FRAME_NUM_ARGS): Remove.
7272 (FRAME_ARGS_SKIP): Remove.
7273 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7274 (m68k_gdbarch_init): Add gdbarch initializations for macros
7275 undefined in tm-m68k.h
7276
1c617db8
GS
72772002-06-26 Grace Sainsbury <graces@redhat.com>
7278
7279 * monitor.h: Add the function regname to monitor_ops
7280 structure. This way NUM_REGS does not have to be a constant.
7281 * monitor.c (monitor_fetch_register): Added support for regname
7282 function. The function is called if the array regnames is NULL.
7283 (monitor_store_register): Same.
da130f98
AC
7284 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7285 regnames array.
1c617db8
GS
7286 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7287 cpu32bug_cmds.regname to point to new function.
7288 * abug-rom.c (abug_regname): Same as above.
7289 (init_abug_cmds): Same.
7290 * dbug-rom.c (dbug_regname): Same as above.
7291 (init_dbug_cmds): Same.
7292 * remote-est.c (est_regname): Same.
7293 (init_est_cmds): Same.
7294 * rom68k-rom.c (rom68k_regname): Same.
7295 (init_rom68k_cmds): Same.
7296
ea9365bb
TT
72972002-06-25 Tom Tromey <tromey@redhat.com>
7298
7299 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7300
72cec141
AC
73012002-06-25 Andrew Cagney <cagney@redhat.com>
7302
7303 * infrun.c (stop_registers): Change variable's type to ``struct
7304 regcache'''.
7305 (xmalloc_inferior_status): Delete function.
7306 (free_inferior_status): Delete function.
7307 (normal_stop): Use regcache_cpy.
7308 (struct inferior_status): Change type of fields ``stop_registers''
7309 and ``registers'' to ``struct regcache''.
7310 (write_inferior_status_register): Use regcache_write.
7311 (save_inferior_status): Instead of calling
7312 xmalloc_inferior_status, allocate the inf_status buffer directly.
7313 Use regcache_dup_no_passthrough and regcache_dup to save the
7314 buffers.
7315 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7316 Replace the stop_registers regcache instead of overriding it. Use
7317 regcache_xfree. Instead of calling free_inferior_status, xfree
7318 the buffer directly.
7319 (discard_inferior_status): Use regcache_xfree. Instead of calling
7320 free_inferior_status, xfree the buffer directly.
7321 (build_infrun): Use regcache_xmalloc.
7322 (_initialize_infrun): Delete redundant call to build_infrun.
7323
7324 * Makefile.in (infcmd.o): Add $(regcache_h).
7325
7326 * infcmd.c: Include "regcache.h".
7327 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7328 obtain the address of `stop_registers' register buffer.
7329 (print_return_value): Ditto.
7330
7331 * inferior.h (struct regcache): Add opaque declaration.
7332 (stop_registers): Change variable's declared type to ``struct
7333 regcache''.
7334
defc6f8c
TT
73352002-06-24 Tom Tromey <tromey@redhat.com>
7336
c0e624e7
TT
7337 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7338 * target.c (initialize_targets): Fixed typo in
7339 trust-readonly-sections `show' documentation.
7340
defc6f8c
TT
7341 * main.c: Marked all strings with _().
7342
2b236d82
DH
73432002-06-24 Don Howard <dhoward@redhat.com>
7344
7345 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7346 that means max CORE_ADDR+1.
7347 (lookup_mem_region): Ditto.
7348 (mem_info_command): Ditto.
7349
942dc0e9
GS
73502002-06-24 Grace Sainsbury <graces@redhat.com>
7351
7352 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7353 (REGISTER_BYTES_OK): Remove.
7354 (REGISTER_BYTES): Remove.
7355 (STORE_STRUCT_RETURN): Remove.
7356 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7357 (STORE_RETURN_VALUE): Remove.
7358 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7359 (FRAME_CHAIN): Remove.
7360 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7361 (FRAME_SAVED_PC): Remove.
7362 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7363 (m68k_store_struct_return): Add.
7364 (m68k_deprecated_extract_return_value): Add.
7365 (m68k_deprecated_extract_struct_value_address): Add.
7366 (m68k_store_return_value): Add.
7367 (m68k_frame_chain): Add.
7368 (m68k_frameless_function_invocation): Add.
7369 (m68k_frame_saved_pc): Add.
7370 (m68k_gdbarch_init): added set_gdbarch calls for new
7371 functions and deleted macros.
7372
03c30d4d
TT
73732002-06-23 Tom Tromey <tromey@redhat.com>
7374
7375 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7376 (ALLDEPFILES): Likewise.
7377 (udiheaders): Removed.
7378 (udip2soc.o): Likewise.
7379 (udi2go32.o): Likewise.
7380 (udr.o): Likewise.
7381 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7382
37e71372
AC
73832002-06-22 Andrew Cagney <ac131313@redhat.com>
7384
06a6ac57
AC
7385 * infrun.c (_initialize_infrun): Delete unnecessary call to
7386 build_infrun.
7387
37e71372
AC
7388 * regcache.h: Update comments describing the regcache_cpy family
7389 of functions.
7390 (regcache_save, regcache_restore): Delete declaration.
7391 (regcache_save_no_passthrough): Delete declaration.
7392 (regcache_restore_no_passthrough): Delete declaration.
7393 * regcache.c (regcache_save): Delete function.
7394 (regcache_save_no_passthrough): Delete function.
7395 (regcache_restore): Delete function.
7396 (regcache_restore_no_passthrough): Delete function.
7397
78f6d055
AC
73982002-06-21 Andrew Cagney <ac131313@redhat.com>
7399
7400 * config/m68k/tm-m68k.h: Fix typo.
7401 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7402 (m68k_frame_init_saved_regs): Declare.
7403
78b119cb
JB
74042002-06-21 Jim Blandy <jimb@redhat.com>
7405
7406 Remove some vestiges of Harris 88k support.
7407 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7408 register numbering quirk.
7409 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7410 odd symbols occurring in Harris 88k ELF targets.
7411
0fbb3da7
TT
74122002-06-21 Tom Tromey <tromey@redhat.com>
7413
7414 * gdb_locale.h: New file.
7415 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7416 (defs_h): Added gdb_locale.h.
7417 * configure, config.in: Rebuilt.
7418 * configure.in (PACKAGE): Define.
7419 * defs.h: Include gdb_locale.h.
7420 * main.c (captured_main): Call setlocale, bindtextdomain,
7421 textdomain.
7422
456f8b9d
DB
74232002-06-21 Dave Brolley <brolley@redhat.com>
7424
7425 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7426 * config/frv/frv.mt: New file.
7427 * config/frv/tm-frv.h: New file.
7428 * configure.tgt: Support frv-*-*.
7429 * Makefile.in (frv-tdep.o): New target.
7430 * frv-tdep.c: New file.
7431 * NEWS: Mention frv.
7432
cdd463f9
DB
74332002-06-21 Dave Brolley <brolley@redhat.com>
7434
7435 * MAINTAINERS: Add self to "Write After Approval" list.
7436
5d3ed2e3
GS
74372002-06-21 Grace Sainsbury <graces@redhat.com>
7438
7439 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7440 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7441 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7442 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7443 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7444
7445 * m68k-tdep.c: Include arch-utils.h
7446 (m68k_register_raw_size): Add.
7447 (m68k_register_virtual_size): Add.
7448 (m68k_register_virtual_type): Add.
7449 (m68k_register_name): Add.
7450 (m68k_stack_align): Add.
7451 (m68k_register_byte): Add.
7452 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7453 tm-m68k.h.
7454
7f8e7424
GS
74552002-06-21 Grace Sainsbury <graces@redhat.com>
7456
a2c6a6d5 7457 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7458 m68k_find_saved_regs.
7459 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7460 references to it with frame->saved_regs.
7f8e7424
GS
7461 (m68k_gdbarch_init): Added function calls to initialize the
7462 gdbarch structure.
a2c6a6d5
GS
7463 (m68k_fix_call_dummy): Add.
7464 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7465 (CALL_DUMMY): Remove.
7466 (CALL_DUMMY_LENGTH): Remove.
7467 (CALL_DUMMY_START_OFFSET): Remove.
7468 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7469 (FIX_CALL_DUMMY): Remove.
7470 (PUSH_DUMMY_FRAME): Remove.
7471 (POP_FRAME): Remove.
7f8e7424 7472
f461f5cf
PM
74732002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7474
7475 * parse.c (parse_fprintf): New function used to avoid calls to
7476 fprintf in bison parser generated debug code.
7477 * parser-defs.h: Declaration of new parse_fprintf function.
7478 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7479 Set YYDEBUG to 1 by default.
7480 Set YYFPRINTF as parse_fprintf.
7481
7f0c12ed
ML
74822002-06-21 Michal Ludvig <mludvig@suse.cz>
7483
7484 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7485 encoding anymore.
7486 (pointer_encoding, enum ptr_encoding): New.
7487 (execute_cfa_program): Take care about pointer encoding.
7488 (dwarf2_build_frame_info): Only call parse_frame_info for
7489 .debug_frame and .eh_frame.
7490 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7491 fixed augmentation handling, added relative addressing,
7492 ignore duplicate FDEs. Added comments.
19d833a2 7493 * dwarf2cfi.c: Reindented.
7f0c12ed 7494
87c4a039
EZ
74952002-06-20 Elena Zannoni <ezannoni@redhat.com>
7496
7497 * event-top.c (command_handler): Don't use space_at_cmd_start
7498 unless there is sbrk() on the host. Assign time and space data
7499 to union fields of the appropriate length.
7500
1cf877ad
ML
75012002-06-20 Michal Ludvig <mludvig@suse.cz>
7502
7503 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7504 x86_64_register_name. Return type changed to 'const char *'.
7505 (x86_64_register_name2nr): Rename to x86_64_register_number.
7506 (x86_64_gdbarch_init): Update to reflect the change.
7507 * x86-64-tdep.h: Ditto.
7508 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7509 (supply_fpregset): Ditto.
7510
3fadccb3
AC
75112002-06-19 Andrew Cagney <cagney@redhat.com>
7512
7513 * regcache.h: Update copyright.
7514 (struct regcache, struct gdbarch): Add opaque declarations.
7515 (current_regcache): Declare global variable.
7516 (regcache_read, regcache_write): Add gdbarch parameter.
7517 (regcache_save, regcache_save_no_passthrough)
7518 (regcache_restore, regcache_restore_no_passthrough)
7519 (regcache_dup, regcache_dup_no_passthrough)
7520 (regcache_cpy, regcache_cpy_no_passthrough)
7521 (deprecated_grub_regcache_for_registers)
7522 (deprecated_grub_regcache_for_register_valid)
7523 (regcache_valid_p): Add function declarations.
7524
7525 * regcache.c: Update copyright.
7526 (regcache_descr_handle): New global variable.
7527 (struct regcache_descr): Define.
7528 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7529 (regcache_descr, xfree_regcache_descr): New functions.
7530 (struct regcache): Define.
7531 (regcache_xmalloc, regcache_xfree): New functions.
7532 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7533 (regcache_dup, regcache_dup_no_passthrough): New functions.
7534 (regcache_valid_p, regcache_read_as_address): New functions.
7535 (deprecated_grub_regcache_for_registers): New function.
7536 (deprecated_grub_regcache_for_register_valid): New function.
7537 (current_regcache): New global variable.
7538 (register_buffer): Add regcache parameter. Update calls.
7539 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7540 (read_register_gen, write_register_gen): Update register_buffer
7541 call. Test for legacy_p instead of gdbarch_register_read_p or
7542 gdbarch_register_write_p.
7543 (regcache_collect): Update register_buffer call.
7544 (build_regcache): Rewrite. Use deprecated grub functions.
7545 (regcache_save, regcache_save_no_passthrough): New functions.
7546 (regcache_restore, regcache_restore_no_passthrough): New
7547 functions.
7548 (_initialize_regcache): Create the regcache_data_handle. Swap
7549 current_regcache global variable.
7550
7551 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7552 parameter to regcache_read and regcache_write calls.
7553 (sh4_register_read): Ditto.
7554 (sh64_pseudo_register_read): Ditto.
7555 (sh64_register_read): Ditto.
7556 (sh_pseudo_register_write): Ditto.
7557 (sh4_register_write): Ditto.
7558 (sh64_pseudo_register_write): Ditto.
7559 (sh64_register_write): Ditto.
7560
7561 * defs.h (XCALLOC): Define.
7562
152d9db6
GS
75632002-06-19 Grace Sainsbury <graces@redhat.com>
7564
7565 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7566 * m68k-tdep.c (m68k_gdbarch_init): Added.
7567 (m68k_dump_tdep): Added.
7568
170911c7
DJ
75692002-06-19 Daniel Jacobowitz <drow@mvista.com>
7570
7571 * ada-lang.c (fill_in_ada_prototype): Update comment.
7572
2e4ebe70
DJ
75732002-06-19 Daniel Jacobowitz <drow@mvista.com>
7574
7575 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7576 MIPS_ABI_LAST.
7577 (mips_abi_string, mips_abi_strings): New.
7578 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7579 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7580 tdep->mips_abi_string. Honor mips_abi_string. Default to
7581 O32 if no ABI is found.
7582 (mips_dump_tdep): Use mips_abi_strings.
7583 (mips_abi_update): New function.
7584 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7585 ``set mips abi'' and ``show mips abi''. Check the size of
7586 mips_abi_strings.
7587
16775908
AC
75882002-06-19 Andrew Cagney <cagney@redhat.com>
7589
7590 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7591 constant.
7592
5051bfa4 75932002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7594
5051bfa4
JB
7595 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7596 current frame using only the first stack size adjustment. All
7597 subsequent size adjustments are not considered to be part of
7598 the "static" part of the current frame.
7599 Compute the address of the saved registers relative to the
7600 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7601 in use in this frame.
7602
56468235
DH
76032002-06-18 Don Howard <dhoward@redhat.com>
7604
7605 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7606 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7607 suggesting this solution.
7608
0b624158
AC
76092002-06-18 Andrew Cagney <ac131313@redhat.com>
7610
7611 * config/romp/xm-rtbsd.h: Delete file.
7612 * config/romp/rtbsd.mh: Delete file.
7613
221ea385
KS
76142002-06-18 Keith Seitz <keiths@redhat.com>
7615
7616 * breakpoint.c (condition_command): Post breakpoint_modify
7617 when a condition is added to an existing breakpoint.
7618 (commands_command): Likewise for commands.
7619 (set_ignore_count): Likewise for ignore counts.
7620 If no tty, do not simply return, still need to send event
7621 notification.
7622 (ignore_command): Only print a newline if the command came
7623 from a tty.
7624 Don't call breakpoints_changed, since this is now properly
7625 handled by set_ignore_count.
7626
5402eed1
AC
76272002-06-18 Andrew Cagney <cagney@redhat.com>
7628
7629 * MAINTAINERS: Note that cris-elf target can be compiled with
7630 -Werror.
7631 * cris-tdep.c (cris_register_name): Make return type constant.
7632 (cris_breakpoint_from_pc): Ditto.
7633
cc22880b
ML
76342002-06-18 Michal Ludvig <mludvig@suse.cz>
7635
7636 * frame.h (struct frame_info): Change type of context to
7637 'struct context'.
7638
fa88f677
AC
76392002-06-17 Andrew Cagney <cagney@redhat.com>
7640
7641 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7642 pointer.
7643 * gdbarch.h, gdbarch.c: Regenerate.
7644 * config/mips/tm-mips.h (mips_register_name): Update.
7645 * i386-tdep.h (i386_register_name): Update.
7646 * mips-tdep.c (mips_register_name): Update
7647 * alpha-tdep.c (alpha_register_name): Update.
7648 * arch-utils.c (legacy_register_name): Update.
7649 * arch-utils.h (legacy_register_name): Update.
7650 * avr-tdep.c (avr_register_name): Update.
7651 * ia64-tdep.c (ia64_register_name): Update.
7652 * i386-tdep.c (i386_register_name): Update.
7653 * sparc-tdep.c (sparc32_register_name): Update.
7654 (sparc64_register_name): Update.
7655 (sparclite_register_name): Update.
7656 (sparclet_register_name): Update.
7657 * sh-tdep.c (sh_generic_register_name): Update.
7658 (sh_sh_register_name): Update.
7659 (sh_sh3_register_name): Update.
7660 (sh_sh3e_register_name): Update.
7661 (sh_sh_dsp_register_name): Update.
7662 (sh_sh3_dsp_register_name): Update.
7663 (sh_sh4_register_name): Update.
7664 (sh_sh64_register_name): Update.
7665 * s390-tdep.c (s390_register_name): Update.
7666 * rs6000-tdep.c (rs6000_register_name): Update.
7667 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7668 (ns32k_register_name_32382): Update.
7669 * d10v-tdep.c (d10v_ts2_register_name): Update.
7670 (d10v_ts3_register_name): Update.
7671 * xstormy16-tdep.c (xstormy16_register_name): Update.
7672 * vax-tdep.c (vax_register_name): Update.
7673 * v850-tdep.c (v850_register_name): Update.
7674 * m68hc11-tdep.c (m68hc11_register_name): Update.
7675 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7676 (am33_register_name): Update.
7677
ea1e7ef6
GS
76782002-06-17 Grace Sainsbury <graces@redhat.com>
7679
7680 * m68k-tdep.c: Reindented.
7681
9b02dd1b
AC
76822002-06-17 Andrew Cagney <ac131313@redhat.com>
7683
7684 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7685 list of predefined types.
7686
8758dec1
MK
76872002-06-16 Mark Kettenis <kettenis@gnu.org>
7688
b6197528
MK
7689 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7690 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7691 REGISTER_CONVERT_TO_RAW): Remove defines.
7692 (i386_register_virtual_type, i386_register_convertible,
7693 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7694 Remove prototypes.
7695 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7696 macros mentioned above.
7697
82b47e62
MK
7698 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7699 (i386lynx_saved_pc_after_call): Remove prototype.
7700 * i386ly-tdep.c: Include "i386-tdep.h".
7701 (i386lynx_saved_pc_after_call): Make static. Use
7702 read_memory_nobpt instead of read_memory. Use
7703 read_memory_unsigned_integer instead of read_memory_integer.
7704 (i386lynx_init_abi): New function.
7705 (i386lynx_coff_osabi_sniffer): New function.
7706 (_initialize_i386bsd_tdep): New function.
7707
8758dec1
MK
7708 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7709 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7710 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7711 (i386_fix_call_dummy): Remove prototype.
7712 * i386-tdep.c (i386_call_dummy_words): New variable.
7713 (i386_gdbarch_init): Adjust for removal of the
7714 macros mentioned above.
7715
e9e68a56
AC
77162002-06-15 Andrew Cagney <ac131313@redhat.com>
7717
7718 * command.h (add_setshow_auto_boolean_cmd): Replace
7719 add_set_auto_boolean_cmd.
7720 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7721 add_set_auto_boolean_cmd.
7722 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7723 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7724 mask-address'' command.
7725 (show_mask_address): Add cmd parameter.
7726 * remote.c (add_packet_config_cmd): Update. Change type of
7727 set_func and show_func to cmd_sfunc_ftype.
7728 (_initialize_remote): Update `set remote Z-packet'
7729 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7730 (show_remote_protocol_e_packet_cmd): Ditto.
7731 (show_remote_protocol_E_packet_cmd): Ditto.
7732 (show_remote_protocol_P_packet_cmd): Ditto.
7733 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7734 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7735 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7736 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7737 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7738 (show_remote_protocol_Z_packet_cmd): Ditto.
7739 (show_remote_protocol_binary_download_cmd): Ditto.
7740 (show_remote_cmd): Pass NULL to all of above.
7741
fc08ec52
MK
77422002-06-15 Mark Kettenis <kettenis@gnu.org>
7743
7744 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7745 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7746 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7747 POP_FRAME): Remove defines.
7748 (i386_push_arguments, i386_store_struct_return,
7749 i386_extract_return_value, i386_store_return_value,
7750 i386_extract_struct_value_address, i386_push_dummy_frame,
7751 i386_pop_frame): Renove prototypes.
7752 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7753 macros mentioned above.
7754
e707bbc2
AC
77552002-06-15 Andrew Cagney <ac131313@redhat.com>
7756
7757 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7758 add_set_boolean_cmd.
7759 (add_setshow_cmd): New function.
7760 * command.h (add_setshow_boolean_cmd): Replace
7761 add_set_boolean_cmd.
7762 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7763 and ``set rdiromatzero''.
7764 * maint.c (_initialize_maint_cmds): Update commented out code.
7765 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7766 * target.c (initialize_targets): Update `set
7767 trust-readonly-sections'.
7768 * remote.c (_initialize_remote): Update `set remotebreak'.
7769
42fdc8df
MK
77702002-06-15 Mark Kettenis <kettenis@gnu.org>
7771
93924b6b
MK
7772 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7773 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7774 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7775 fit into multi-arch framework.
7776 (i386_breakpoint_from_pc): New function.
7777 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7778 above.
7779
42fdc8df
MK
7780 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7781 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7782 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7783 (i386_frameless_function_invocation, i386_frame_num_args,
7784 i386_frame_init_saved_regs): Remove prototypes.
7785 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7786 macros mentioned above.
7787
9773a94b
AC
77882002-06-15 Andrew Cagney <ac131313@redhat.com>
7789
7790 * cli/cli-decode.c (set_cmd_cfunc): Update.
7791 (set_cmd_sfunc): Update.
7792 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7793 (set_cmd_sfunc, set_cmd_cfunc): Update.
7794 * cli/cli-decode.h: Update.
7795
6e157172
MK
77962002-06-15 Mark Kettenis <kettenis@gnu.org>
7797
7798 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7799 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7800
7f19b9a2
AC
78012002-06-15 Andrew Cagney <ac131313@redhat.com>
7802
7803 * defs.h (auto_boolean): Declare enum.
7804 * command.h (cmd_auto_boolean): Delete enum.
7805 * mips-tdep.c (mask_address_var): Update.
7806 (mips_mask_address_p): Update.
7807 (show_mask_address): Update.
7808 * remote.c (struct packet_config): Update.
7809 (update_packet_config): Update.
7810 (show_packet_config_cmd): Update.
7811 (packet_ok): Update.
7812 (add_packet_config_cmd): Update.
7813 (_initialize_remote):
7814 * command.h: Update.
7815 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7816 (do_setshow_command): Update.
7817 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7818 * cli/cli-decode.h: Update.
7819
1cf88de5
MK
78202002-06-15 Mark Kettenis <kettenis@gnu.org>
7821
22ba8cf2
MK
7822 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7823 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7824 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7825 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7826 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7827 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7828
762c5349
MK
7829 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7830 list of DJGPP COFF targets.
7831
091198bb
MK
7832 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7833 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7834 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7835 (FP0_REGNUM): Remove define.
7836 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7837 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7838 (i386_register_virtual_size): Remove protoype.
7839 * i386-tdep.c (i386_register_virtual_size): Removed.
7840 (i386_extract_return_value, i386_store_return_value): Use
7841 FP0_REGNUM instead of NUM_FREGS to determine whether the
7842 floating-point registers are available.
7843 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7844 Adjust for removal of macros mentioned above.
7845
78462002-06-15 Mark Kettenis <kettenis@gnu.org>
7847
fcc9bf01
MK
7848 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7849 comments.
7850 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7851 Remove prototypes.
7852 (supply_gregset, fill_gregset): Remove use of register keyword and
7853 remove declaration for regmap. Use I386_NUM_GREGS instead of
7854 NUM_REGS and NUM_FREGS.
7855 (FPREGSET_FSAVE_OFFSET): Remove.
7856 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7857 NUM_FREGS to determine whether the floating-point registers are
7858 available.
7859
65e78234
MK
7860 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7861 gnu_store_registers): Replace usage of NUM_GREGS with
7862 I386_NUM_GREGS.
7863
98df6387
MK
7864 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7865 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7866 usage of NUM_GREGS with I386_NUM_GREGS.
7867
099a9414
MK
7868 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7869
57976e88
MK
7870 * i386bsd-nat.c: Include "i386-tdep.h".
7871 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7872 I386_NUM_GREGS.
7873
b335f4a6
MK
7874 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7875 and associated comment. They no longer make any sense, since we
7876 don't use this file anymore on Linux.
7877
1cf88de5
MK
7878 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7879 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7880 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7881 elements in these arrays.
7882 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7883 MAX_NUM_REGS.
7884
daa66587
MK
78852002-06-15 Mark Kettenis <kettenis@gnu.org>
7886
7887 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7888 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7889
26e9b323
AC
78902002-06-14 Andrew Cagney <cagney@redhat.com>
7891
7892 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7893 EXTRACT_RETURN_VALUE.
7894 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7895 EXTRACT_STRUCT_VALUE_ADDRESS.
7896 * gdbarch.h, gdbarch.c: Regenerate.
7897
7898 * values.c (value_being_returned): Handle
7899 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7900 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7901
7902 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7903 * arm-tdep.c (arm_gdbarch_init): Update.
7904 * avr-tdep.c (avr_gdbarch_init): Update.
7905 * cris-tdep.c (cris_gdbarch_init): Update.
7906 * d10v-tdep.c (d10v_gdbarch_init): Update.
7907 * ia64-tdep.c (ia64_gdbarch_init): Update.
7908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7910 * s390-tdep.c (s390_gdbarch_init): Update.
7911 * sh-tdep.c (sh_gdbarch_init): Update.
7912 * s390-tdep.c (s390_gdbarch_init): Update.
7913 * sparc-tdep.c (sparc_gdbarch_init): Update.
7914 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7915 * v850-tdep.c (v850_gdbarch_init): Update.
7916 * vax-tdep.c (vax_gdbarch_init): Update.
7917 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7919
7920 * config/arc/tm-arc.h: Update.
7921 * config/d30v/tm-d30v.h: Update.
7922 * config/fr30/tm-fr30.h: Update.
7923 * config/h8300/tm-h8300.h: Update.
7924 * config/h8500/tm-h8500.h: Update.
7925 * config/i386/tm-i386.h: Update.
7926 * config/i386/tm-ptx.h: Update.
7927 * config/i386/tm-symmetry.h: Update.
7928 * config/i960/tm-i960.h: Update.
7929 * config/m32r/tm-m32r.h: Update.
7930 * config/m68k/tm-delta68.h: Update.
7931 * config/m68k/tm-linux.h: Update.
7932 * config/m68k/tm-m68k.h: Update.
7933 * config/m88k/tm-m88k.h: Update.
7934 * config/mcore/tm-mcore.h: Update.
7935 * config/mips/tm-mips.h: Update.
7936 * config/mn10200/tm-mn10200.h: Update.
7937 * config/pa/tm-hppa.h: Update.
7938 * config/pa/tm-hppa64.h: Update.
7939 * config/sparc/tm-sp64.h: Update.
7940 * config/sparc/tm-sparc.h: Update.
7941 * config/sparc/tm-sparclet.h: Update.
7942 * config/z8k/tm-z8k.h: Update.
7943
5179e78f
AC
79442002-06-14 Andrew Cagney <cagney@redhat.com>
7945
7946 * Makefile.in (i386_linux_tdep_h): Define.
7947 (i386_tdep_h, i387_tdep_h): Define.
7948 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7949 $(i386_tdep_h) and $(i387_tdep_h).
7950 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7951
8201327c
MK
79522002-06-14 Mark Kettenis <kettenis@gnu.org>
7953
edf393ac
MK
7954 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7955 Already covered by the default.
7956
896fb97d
MK
7957 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7958 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7959 (i386_gdbarch_init): Initialize long_double_format and long_double
7960 bit.
7961
8201327c
MK
7962 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7963 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7964 Move these to ...
7965 * config/i386/i386sol2.mh: ... here.
7966 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7967 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7968 (SIGCONTEXT_PC_OFFSET): Remove define.
7969 (IN_SIGTRAMP): Remove define.
7970 * i386-sol2-tdep.c: New file.
7971
7972 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7973 * config/i386/tm-i386nw.h: Removed.
7974
7975 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7976 USE_STRUCT_CONVENTION): Remove defines.
7977 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7978 (get_longjmp_target): Remove prototype.
7979 (IN_SIGTRAMP): Remove define.
7980 (i386bsd_in_sigtramp): Remove prototype.
7981 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7982 function. Update comment accordingly
7983 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7984 (FRAME_SAVED_PC): Remove define.
7985 (i386bsd_frame_saved_pc): Remove prototype.
7986 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7987 GET_LONGJMP_TARGET): Remove defines.
7988 (get_longjmp_target): Remove prototype.
7989 (IN_SIGTRAMP): Remove define.
7990 (i386bsd_in_sigtramp): Remove prototype.
7991 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7992 function. Update comment accordingly
7993 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7994 (FRAME_SAVED_PC): Remove define.
7995 (i386bsd_frame_saved_pc): Remove prototype.
7996 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7997 Remove prototype.
7998 (USE_STRUCT_CONVENTION): Remove prototype.
7999 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8000 declaration.
8001 (_initialize_i386bsd_nat): Revise logic to determine some
8002 constants at compile time when compiling a native GDB. Warn if
8003 things don't match up with what we expect.
8004 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8005 Remove variables.
8006 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8007 to use date stored in `struct gdbarch_tdep'.
8008 (i386bsd_sigcontext_offset): Remove varaible.
8009 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8010 stored in `struct gdbarch_tdep'.
8011 (i386bsd_frame_saved_pc): Make static.
8012 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8013 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8014 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8015 i386fbsd4_sc_pc_offset): New variables.
8016 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8017 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8018 functions.
8019 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8020 functions.
8021 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8022 Modify the value of i386fbsd_sigtramp_start and
8023 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8024 i386fbsd_sigtramp_end.
8025 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8026 function.
8027
8028 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8029 define to i386-linux-tdep.h.
8030 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8031 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8032 defines.
8033 (i386_linux_register_name, i386_linux_register_byte,
8034 i386_linux_register_raw_size): Remove prototypes.
8035 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8036 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8037 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8038 TARGET_WRITE_PC): Remove defines.
8039 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8040 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8041 i386_linux_write_pc): Remove prototypes.
8042 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8043 (get_longjmp_target): Remove prototype.
8044 * i386-linux-tdep.h: New file.
8045 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8046 * i386-linux-tdep.c: Include "i386-tdep.h" and
8047 "i386-linux-tdep.h".
8048 (i386_linux_register_name, i386_linux_register_byte,
8049 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8050 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8051 Make static.
8052 (i386_linux_init_abi): New function.
8053 (_initialize_i386_linux_tdep): New function.
8054
8055 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8056 (i386_saved_pc_after_call): Remove prototype.
8057 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8058 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8059 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8060 (i386_register_name, i386_stab_reg_to_regnum,
8061 i386_dwarf_reg_to_regnum): Remove prototypes.
8062 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8063 SIZEOF_SSE_REGS): Remove defines.
8064 (REGISTER_BYTES): Remove define.
8065 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8066 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8067 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8068 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8069 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8070 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8071 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8072 (get_longjmp_target): Remove prototype.
8073 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8074 (sigtramp_saved_pc): Remove define.
8075 (i386v4_sigtramp_saved_pc): Remove prototype.
8076 * config/i386/tm-go32.h (FRAME_CHAIN,
8077 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8078 (i386go32_frame_saved_pc): Remove prototype.
8079 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8080 (get_longjmp_target): Remove prototype.
8081 * i386-tdep.h: Include "osabi.h".
8082 (enum i386_abi): Removed.
8083 (enum struct_return): New enum.
8084 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8085 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8086 sc_pc_offset members.
8087 (i386_gdbarch_register_os_abi): Remove prototype.
8088 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8089 I386_SSE_NUM_REGS): New defines.
8090 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8091 I386_SSE_SIZEOF_REGS): New defines.
8092 (i386_register_name, i386_register_byte, i386_register_raw_size):
8093 New prototypes.
8094 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8095 (i386bsd_sigtramp_saved_pc): New prototype.
8096 * i386-tdep.c: Don't include "elf-bfd.h".
8097 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8098 i386_frame_chain, i386_saved_pc_after_call): Make static.
8099 (i386_frame_saved_pc): Rewrite to call architecture dependent
8100 function to deal with signal handlers. Make static.
8101 (i386go32_frame_saved_pc): Removed.
8102 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8103 Removed.
8104 (i386_get_longjmp_target): New function.
8105 (default_struct_convention, pcc_struct_convention,
8106 reg_struct_convention, valid_conventions, struct_convention): New
8107 variables.
8108 (i386_use_struct_convention): New function.
8109 (i386v4_sigtramp_saved_pc): Renamed to
8110 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8111 (i386_pc_in_sigtramp): New function.
8112 (i386_abi_names): Removed.
8113 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8114 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8115 Removed.
8116 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8117 i386_gdbarch_register_os_abi): Removed.
8118 (struct i386_abi_handler): Removed.
8119 (i386_abi_handler_list): Removed.
8120 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8121 functions.
8122 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8123 i386_nw_init_abi): New functions.
8124 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8125 Use set_gdbarch_xxx() calls instead of relying on macros for a
8126 number of calls.
8127 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8128 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8129 Register the various architecture variants defined in this file.
8130
ad2f7632
DJ
81312002-06-14 Daniel Jacobowitz <drow@mvista.com>
8132
8133 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8134 (struct main_type): Remove arg_types member. Update comments for
8135 struct field.
8136 (TYPE_ARG_TYPES): Remove.
8137 (TYPE_FN_FIELD_ARGS): Update.
8138 (smash_to_method_type): Update prototype.
8139
8140 * c-typeprint.c (cp_type_print_method_args): Take method type
8141 instead of argument list. Use new argument layout. Simplify.
8142 (c_type_print_args): Use new argument layout. Simplify.
8143 (c_type_print_base): Update call to cp_type_print_method_args.
8144 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8145 argument; use die->type instead. Update call to
8146 smash_to_method_type.
8147 (read_structure_scope): Update call to dwarf2_add_member_fn.
8148 * gdbtypes.c (allocate_stub_method): Update comment.
8149 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8150 Use new argument layout.
8151 (check_stub_method): Use new argument layout. Don't count
8152 void as an argument.
8153 (print_arg_types): Update comments. Use new argument layout.
8154 (recursive_dump_type): Don't print arg_types member.
8155 * hpread.c (hpread_read_struct_type): Use new argument layout.
8156 (fixup_class_method_type): Likewise.
8157 (hpread_type_lookup): Likewise.
8158 * stabsread.c (read_type): Update calls to read_args and
8159 smash_to_method_type.
8160 (read_args): Use new argument layout. Simplify.
8161 * valops.c (typecmp): Use new argument layout. Update parameters
8162 and comments. Simplify.
8163 (hand_function_call): Use new argument layout.
8164 (search_struct_method): Update call to typecmp.
8165 (find_overload_match): Use new argument layout.
8166
6da02953
DJ
81672002-06-13 Daniel Jacobowitz <drow@mvista.com>
8168
8169 * NEWS: Mention multithreaded debug support for gdbserver.
8170
519b2366
DJ
81712002-06-13 Daniel Jacobowitz <drow@mvista.com>
8172
8173 * MAINTAINERS: Mention NEWS.
8174
6c0d6680
DJ
81752002-06-13 Daniel Jacobowitz <drow@mvista.com>
8176
8177 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8178 (struct mips_objfile_private, compare_pdr_entries): New.
8179 (non_heuristic_proc_desc): Read the ".pdr" section if it
8180 is present.
8181
6529d2dd
AC
81822002-06-12 Andrew Cagney <ac131313@redhat.com>
8183
8184 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8185 (arm_debug): New static variable.
8186 (_initialize_arm_tdep): Add ``set debug arm'' command.
8187
26216b98
AC
81882002-06-12 Andrew Cagney <ac131313@redhat.com>
8189
8190 * Makefile.in (sim_arm_h): Define.
8191 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8192 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8193 (arm_register_sim_regno): New function, map an internal REGNUM
8194 onto a simulator register number.
8195 (arm_gdbarch_init): Set register_sim_regno.
8196
814b3ba0
AH
81972002-06-09 Aldy Hernandez <aldyh@redhat.com>
8198
8199 * MAINTAINERS: Add self.
8200
475b0867
JB
82012002-06-11 Jim Blandy <jimb@redhat.com>
8202
919d772c
JB
8203 * source.c (source_info): Mention whether the symtab has
8204 information about preprocessor macros.
8205
475b0867
JB
8206 Call the command `info macro', not `show macro'.
8207 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8208 Fix error message.
8209 (_initialize_macrocmd): Register `info_macro_command' in
8210 `infolist', not `showlist'.
8211
9e364162
DJ
82122002-06-11 Daniel Jacobowitz <drow@mvista.com>
8213
8214 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8215 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8216 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8217 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8218 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8219 unconditionally.
8220 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8221 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8222 (_initialize_mips_tdep): Remove dead code.
8223 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8224 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8225 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8226 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8227 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8228 MIPS_LAST_FP_ARG_REGNUM): Remove.
8229
23aa4c72
ML
82302002-06-11 Michal Ludvig <mludvig@suse.cz>
8231
8232 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8233 (unwind_tmp_obstack_free, parse_frame_info)
8234 (update_context, cfi_read_fp, cfi_write_fp)
8235 (cfi_frame_chain, cfi_init_extra_frame_info)
8236 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8237 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8238
70eb15a4
CV
82392002-06-11 Corinna Vinschen <vinschen@redhat.com>
8240
8241 * v850-tdep.c (v850_type_is_scalar): New function.
8242 (v850_use_struct_convention): Match current gcc implementation
8243 as close as possible.
8244 (v850_push_arguments): Fix stack_offset handling. Don't write
8245 struct_addr into register. This is done by v850_store_struct_return.
8246 (v850_extract_return_value): Care for structs.
8247 (v850_store_return_value): Ditto.
8248 (v850_store_struct_return): Actually write address.
8249
482a4d06
ML
82502002-06-11 Michal Ludvig <mludvig@suse.cz>
8251
8252 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8253 without debug information too.
8254
d855c300
AC
82552002-06-10 Andrew Cagney <ac131313@redhat.com>
8256
8257 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8258 Make multi-arch pure.
8259 * gdbarch.h, gdbarch.c: Re-generate.
8260 * arm-tdep.c (arm_print_float_info): Update.
8261 * arch-utils.h (default_print_float_info): Update.
8262 * arch-utils.c (default_print_float_info): Update.
8263 * infcmd.c (float_info): Update call.
8264
dd12a101
AC
82652002-06-10 Andrew Cagney <ac131313@redhat.com>
8266
8267 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8268 the front of the initialize list.
8269
101dcfbe
AC
82702002-06-10 Andrew Cagney <ac131313@redhat.com>
8271
8272 * infrun.c (struct inferior_status): Replace fields
8273 selected_frame_address and selected_level with field
8274 selected_frame_id.
8275 (save_inferior_status): Update. Use get_frame_id.
8276 (struct restore_selected_frame_args): Delete.
8277 (restore_selected_frame): Update. Use frame_find_by_id.
8278 (restore_inferior_status): Update.
8279
8280 * breakpoint.h (struct breakpoint): Change type of
8281 watchpoint_frame to frame_id.
8282 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8283 call to get_current_frame.
8284 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8285 get_current_frame.
8286 (watchpoint_check): Use frame_find_by_id.
8287
8288 * frame.h (record_selected_frame): Delete declaration.
8289 * stack.c (record_selected_frame): Delete function.
8290
8291 * frame.h (struct frame_id): Define.
8292 (get_frame_id): Declare.
8293 (frame_find_by_id): Declare.
8294 * frame.c (frame_find_by_id): New function.
8295 (get_frame_id): New function.
8296
304270b6
AV
82972002-06-10 Andrey Volkov <avolkov@transas.com>
8298
8299 * ser-e7kpc.c: Fix duplicated define and call of
8300 _initialize_ser_e7000pc
8301
2f2cf184
DJ
83022002-06-09 Daniel Jacobowitz <drow@mvista.com>
8303
8304 * signals/signals.c (target_signal_from_host): Fix #ifdef
8305 SIGRTMIN case.
8306 (do_target_signal_to_host): Likewise.
8307
caaa3122
DJ
83082002-06-09 Daniel Jacobowitz <drow@mvista.com>
8309
8310 * mips-tdep.c (mips_find_abi_section): New function.
8311 (mips_gdbarch_init): Call it.
8312
6ac5df3a
MK
83132002-06-09 Mark Kettenis <kettenis@gnu.org>
8314
8315 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8316 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8317 after Andrew's 2002-06-08 gdbarch change.
8318
82ea117a
MK
83192002-06-09 Mark Kettenis <kettenis@gnu.org>
8320
8321 * i386-linux-nat.c (suppy_gregset): Don't supply
8322 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8323 register cache.
8324 (fill_gregset): Don't fetch it under the same circumstances.
8325
3c25f8c7
AC
83262002-06-09 Andrew Cagney <cagney@redhat.com>
8327
8328 * Makefile.in (callback_h): Define.
8329 (remote_sim_h): Update path to remote-sim.h.
8330 (remote-rdp.o): Add $(callback_h).
8331 (remote-sim.o): Use $(callback_h).
8332 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8333 * remote-rdp.c: Include "gdb/callback.h".
8334
1029b7fa
MK
83352002-06-09 Mark Kettenis <kettenis@gnu.org>
8336
8337 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8338 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8339
616675d3
AC
83402002-06-08 Andrew Cagney <ac131313@redhat.com>
8341
a3efda28
AC
8342 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8343 * rdi-share/serpardr.c: Ditto.
8344 * rdi-share/unixcomm.c: Ditto.
8345 * rdi-share/serdrv.c: Ditto.
8346 * rdi-share/hostchan.h: Ditto.
8347 * rdi-share/hostchan.c: Ditto.
8348 * rdi-share/host.h: Ditto.
8349 * rdi-share/devsw.c: Ditto.
8350
c5f10366
AC
8351 * objfiles.h: Change type of obj_private to void pointer.
8352 * pa64solib.c: Update copyright. Don't include "assert.h", use
8353 strcmp instead of STREQ, use LONGEST, do not use PTR
8354 * somsolib.c: Ditto.
8355
616675d3
AC
8356 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8357 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8358 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8359
e4b415d9
AC
83602002-06-08 Andrew Cagney <ac131313@redhat.com>
8361
8362 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8363 (default_get_saved_register): Delete function.
8364 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8365 generic_unwind_get_saved_register.
8366 * gdbarch.h, gdbarch.c: Re-generate.
8367
ca0d0b52
AC
83682002-06-08 Andrew Cagney <ac131313@redhat.com>
8369
8370 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8371 generic_func_frame_chain_valid.
8372 * gdbarch.h, gdbarch.c: Re-generate.
8373 * blockframe.c (generic_func_frame_chain_valid): Only check
8374 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8375 passing FP to PC_IN_CALL_DUMMY.
8376 Fix PR gdb/360.
8377
76860b5f
AC
83782002-06-08 Andrew Cagney <ac131313@redhat.com>
8379
8380 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8381 (register_gdbarch_data): Initialize init_p.
8382 (gdbarch_data): Initialize data pointer using the init function.
8383 (init_gdbarch_data): Delete function.
8384 (gdbarch_update_p): Update.
8385 (initialize_non_multiarch): Update.
8386 (struct gdbarch): Add field initialized_p.
8387 * gdbarch.h, gdbarch.c: Re-generate.
8388
8dda9770
ML
83892002-06-07 Michal Ludvig <mludvig@suse.cz>
8390
8391 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8392 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8393 better do the things actually here.
8394 * x86-64-tdep.c (x86_64_register_name2nr): New.
8395 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8396 (x86_64_gdbarch_init): Respect the above change.
8397 * x86-64-tdep.h (x86_64_register_name2nr)
8398 (x86_64_register_nr2name): Add prototypes.
8399 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8400
3d79a47c
MS
84012002-06-06 Michael Snyder <msnyder@redhat.com>
8402
7bd91a28
MS
8403 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8404 Delete extra braces and re-indent.
8405 (d10v_store_return_value): Char return values
3d79a47c
MS
8406 must be shifted over by one byte in R0.
8407 (d10v_extract_return_value): Delete extra braces, re-indent.
8408
095a4c96
EZ
84092002-06-06 Elena Zannoni <ezannoni@redhat.com>
8410
8411 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8412 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8413 (d10v_integer_to_address): Rewrite.
8414 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8415 the d10v specific functions which take care of converting to the
8416 correct space.
8417
e8a77ca4
EZ
84182002-06-06 Elena Zannoni <ezannoni@redhat.com>
8419
8420 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8421 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8422
4f2e4a4f
AC
84232002-06-02 Andrew Cagney <ac131313@redhat.com>
8424
8425 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8426 includes.
8427 * config/tm-linux.h: Ditto.
8428 * config/alpha/tm-alphalinux.h: Ditto.
8429 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8430 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8431 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8432 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8433 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8434 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8435 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8436 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8437 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8438 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8439 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8440 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8441 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8442 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8443 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8444 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8445 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8446 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8447 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8448 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8449 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8450 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8451 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8452 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8453 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8454 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8455 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8456 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8457 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8458 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8459 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8460 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8461 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8462 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8463 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8464 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8465 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8466
ae2ab2ce
AS
84672002-05-04 Aidan Skinner <aidan@velvet.net>
8468
8469 * ada-exp.tab.c: New file
8470 * ada-exp.y: New file
8471 * ada-lang.c: New file
8472 * ada-lang.h: New file
8473 * ada-lex.c: New file
8474 * ada-lex.l: New file
8475 * ada-tasks.c: New file
8476 * ada-typeprint.c: New file
8477 * ada-valprint.c: New file
8478
0ddd0135
JT
84792002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8480
8481 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8482 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8483
750fbacc
JT
84842002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8485
8486 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8487 insetead of ppc-linux-tdep.o.
8488 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8489 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8490
df94e18a
AC
84912002-06-02 Andrew Cagney <ac131313@redhat.com>
8492
8493 2002-05-07 Christian Groessler <chris@groessler.org>
8494 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8495 bit register contents for little endian hosts.
8496
1a38ab75
AC
84972002-06-01 Andrew Cagney <ac131313@redhat.com>
8498
8499 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8500 any maintainer.
8501
8b1632ac
AC
85022002-06-01 Andrew Cagney <ac131313@redhat.com>
8503
8504 * gdbarch.h: Regenerate.
8505
627054c8
AC
85062002-06-01 Andrew Cagney <ac131313@redhat.com>
8507
8508 * MAINTAINERS: Add everyone to write-after-approval list.
8509
4f460812
AC
85102002-06-01 Andrew Cagney <ac131313@redhat.com>
8511
8512 * stack.c (frame_info): Use frame_register_unwind instead of
8513 saved_regs. Mention when the SP is on the stack or in a register.
8514
8515 * frame.h (frame_register_unwind_ftype): Define. Document.
8516 (struct frame_info): Add field register_unwind and
8517 register_unwind_cache.
8518 (frame_register_unwind): Declare.
8519 (generic_unwind_get_saved_register): Declare.
8520
8521 * frame.c (frame_register_unwind): New function.
8522 (generic_unwind_get_saved_register): New function.
8523
8524 * blockframe.c (generic_call_dummy_register_unwind): New function.
8525 (frame_saved_regs_register_unwind): New function.
8526 (set_unwind_by_pc): New function.
8527 (create_new_frame): New function.
8528 (get_prev_frame): New function.
8529
de888f76
AC
85302002-05-30 Andrew Cagney <ac131313@redhat.com>
8531
8532 * a29k-share/: Delete directory.
8533 * remote-vx29k.c: Delete file.
8534
2f2c3626
JT
85352002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8536
8537 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8538 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8539
9ce5c36a
JT
85402002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8541
8542 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8543 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8544 (sparc64nbsd-nat.o)
8545 (sparcnbsd-nat.o)
8546 (sparcnbsd-tdep.o): New dependency lists.
8547 * NEWS: Note new UltraSPARC NetBSD native configuration.
8548 * configure.host (sparc64-*-netbsd*): New host.
8549 * configure.tgt (sparc-*-netbsdelf*)
8550 (sparc-*-netbsd*): Set gdb_target to nbsd.
8551 (sparc64-*-netbsd*): New target.
8552 * sparc64nbsd-nat.c: New file.
8553 * sparcnbsd-nat.c: New file.
8554 * sparcnbsd-tdep.c: New file.
8555 * sparcnbsd-tdep.h: New file.
8556 * config/sparc/nbsd.mt: New file.
8557 * config/sparc/nbsd64.mh: New file.
8558 * config/sparc/nbsd64.mt: New file.
8559 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8560 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8561 (HOST_IPC): Remove.
8562 * config/sparc/nbsdaout.mt: Remove.
8563 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8564 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8565 (HOST_IPC): Remove.
8566 * config/sparc/nbsdelf.mt: Remove.
8567 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8568 sparc-nat.c compatiblity defines.
8569 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8570 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8571 * config/sparc/tm-nbsd64.h: New file.
8572 * config/sparc/tm-nbsdaout.h: Remove.
8573 * config/sparc/xm-nbsd.h: Remove.
8574
ef3cf062
JT
85752002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8576
8577 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8578 * sparc-tdep.c: Include osabi.h.
8579 (gdbarch_tdep): Add osabi member.
8580 (_initialize_sparc_tdep): Use gdbarch_register.
8581 (sparc_gdbarch_init): Use generic OS ABI framework.
8582 (sparc_dump_tdep): New function.
8583
ee8ff470
KB
85842002-05-30 Kevin Buettner <kevinb@redhat.com>
8585
8586 * corefile.c (do_captured_read_memory_integer): Return non-zero
8587 result.
8588 (safe_read_memory_integer): Copy result of memory read when
8589 status is non-zero. Also, add comments.
8590
7b112f9c
JT
85912002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8592
8593 * Makefile.in (ppc_tdep_h): Define.
8594 (ppc-linux-nat.o)
8595 (ppc-linux-tdep.o)
8596 (rs6000-tdep.o): Use $(ppc_tdep_h).
8597 (ppc-sysv-tdep.o)
8598 (ppcnbsd-nat.o)
8599 (ppcnbsd-tdep.o): New dependency lists.
8600 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8601 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8602 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8603 (ppc_sysv_abi_broken_use_struct_convention)
8604 (ppc_sysv_abi_use_struct_convention)
8605 (ppc_sysv_abi_push_arguments): Move to...
8606 * ppc-sysv-tdep.c: ...here.
8607 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8608 * rs6000-tdep.c (process_note_abi_tag_sections)
8609 (get_elfosabi): Remove.
8610 (rs6000_gdbarch_init): Use generic OS ABI framework.
8611 (rs6000_dump_tdep): New function.
8612 (_initialize_rs6000_tdep): Use gdbarch_register.
8613 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8614 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8615 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8616 of ppc-linux-tdep.o.
8617 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8618 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8619 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8620 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8621 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8622 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8623
480dd42a
JB
86242002-05-29 Jim Blandy <jimb@redhat.com>
8625
8626 * macroscope.c (default_macro_scope): Put `void' in empty argument
8627 list.
8628
4182591f
AC
86292002-05-29 Andrew Cagney <ac131313@redhat.com>
8630
8631 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8632 * arch-utils.c: Include "sim-regno.h".
8633 * gdbarch.sh: Don't include "sim-regno.h".
8634 * gdbarch.h, gdbarch.c: Regenerate.
8635 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8636 here.
8637 * arch-utils.h (legacy_register_sim_regno): To here.
8638 * remote-sim.c (legacy_register_sim_regno): Move function from
8639 here.
8640 * arch-utils.c (legacy_register_sim_regno): To here.
8641
8238d0bf
AC
86422002-05-28 Andrew Cagney <ac131313@redhat.com>
8643
8644 * sim-regno.h: New file.
8645 * Makefile.in (sim_regno_h): Define.
8646 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8647 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8648 (legacy_register_sim_regno): New function.
8649 (one2one_register_sim_regno): New function.
8650 (gdbsim_fetch_register): Rewrite.
8651 (gdbsim_store_register): Only store a register when
8652 REGISTER_SIM_REGNO is valid.
8653 * d10v-tdep.c: Include "sim-regno.h".
8654 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8655 (d10v_ts3_register_sim_regno): Ditto.
8656 * gdbarch.sh: Include "sim-regno.h".
8657 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8658 * gdbarch.h, gdbarch.c: Regenerate.
8659 * arch-utils.h (default_register_sim_regno): Delete declaration.
8660 * arch-utils.c (default_register_sim_regno): Delete function.
8661
485721b1
JT
86622002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8663
8664 * ppcnbsd-nat.c: Rewrite.
8665 * ppcnbsd-tdep.c: New file.
8666 * ppcnbsd-tdep.h: New file.
8667 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8668 solib.o, and solib-svr4.o.
8669 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8670 nbsd-tdep.o, and corelow.o.
8671
697f244d
AC
86722002-05-28 Andrew Cagney <ac131313@redhat.com>
8673
8674 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8675 `tr' and `sed'. Mention that `broken' targets are not expected to
8676 build.
8677
f08caad1 86782002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8679
8680 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8681 Let PC point right after the prologue before looking up symbols.
8682
3139facc
MH
86832002-05-27 Martin M. Hunt <hunt@redhat.com>
8684
8685 * i386-tdep.c (i386_register_virtual_type): Return
8686 builtin_type_vec128i for SSE registers.
8687
8688 * gdbtypes.h (builtin_type_vec128i): Declare.
8689
8690 * gdbtypes.c (build_builtin_type_vec128i): New function.
8691 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8692 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8693 (build_gdbtypes): Initialize new builtin vector types.
8694 (_initialize_gdbtypes): Register new vector types with gdbarch.
8695
6e3ba3b8
JT
86962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8697
8698 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8699 since it has been multi-arch'd.
8700 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8701 Move Alpha and VAX multi-arch news entries to same section
8702 as other multi-arch news.
8703
93d5585d
JT
87042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8705
8706 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8707 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8708 static. Rename some register numbers to put them in ns32k-tdep
8709 private namespace.
8710 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8711 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8712 functions.
8713 (_initialize_ns32k_tdep): Use gdbarch_register.
8714 * ns32k-tdep.h: New file.
8715 * ns32knbsd-tdep.c: New file.
8716 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8717 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8718 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8719 REGISTER_BYTES, REGISTER_BYTE): Remove.
8720 * config/ns32k/tm-ns32k.h: New file.
8721 * config/ns32k/tm-umax.h: Remove.
8722
efb2c70e
JT
87232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8724
8725 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8726 ns32k_store_struct_return, ns32k_extract_return_value,
8727 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8728 functions.
8729 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8730 ns32k_saved_pc_after_call.
8731 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8732 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8733 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8734 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8735 ns32k_extract_struct_value_address.
8736
7bcc927b
JT
87372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8738
8739 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8740 ns32k_fix_call_dummy): New.
8741 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8742 ns32k_call_dummy_words.
8743 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8744 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8745 CALL_DUMMY_NARGS): Remove.
8746 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8747
78f9d765
JT
87482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8749
8750 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8751 ns32k_frame_saved_pc, ns32k_frame_args_address,
8752 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8753 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8754 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8755 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8756 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8757 (BREAKPOINT): Remove..
8758 (FRAME_CHAIN): Define as ns32k_frame_chain.
8759 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8760 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8761 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8762 (FRAME_FIND_SAVED_REGS): Remove.
8763 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8764 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8765 (POP_FRAME): Define as ns32k_pop_frame.
8766
f2c762e0
JT
87672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8768
8769 * ns32k-tdep.c (ns32k_register_byte_32082,
8770 ns32k_register_byte_32382, ns32k_register_raw_size,
8771 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8772 functions.
8773 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8774 ns32k_register_byte_32382.
8775 * config/ns32k/tm-umax.h: Update copyright years.
8776 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8777 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8778 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8779 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8780 (ns32k_get_enter_addr): Fix prototype.
8781
af137673
JT
87822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8783
8784 * ns32k-tdep.c: Update copyright years.
8785 (ns32k_register_name_32082): New function.
8786 (ns32k_register_name_32382): Ditto.
8787 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8788 (REGISTER_NAME): Define as ns32k_register_name_32382.
8789 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8790 (REGISTER_NAME): Define as ns32k_register_name_32082.
8791
a8bc7b56
JB
87922002-05-24 Jim Blandy <jimb@redhat.com>
8793
8794 * dwarf2read.c (free_line_header): Use xfree, not free.
8795
83a45910
JT
87962002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8797
8798 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8799 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8800
0db71247
AC
88012002-05-23 Andrew Cagney <ac131313@redhat.com>
8802
8803 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8804
b9e5e4dd
AC
88052002-05-23 Andrew Cagney <ac131313@redhat.com>
8806
8807 From Ross Alexander at NEC Europe:
8808 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8809
de530e84
MS
88102002-05-23 Michael Snyder <msnyder@redhat.com>
8811
8812 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8813 for input, rather than parse_and_eval_address.
8814
b91b96f4
AC
88152002-05-23 Andrew Cagney <ac131313@redhat.com>
8816
8817 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8818 * Makefile.in (sim_d10v_h): Update definition.
8819
8b279e7a
AC
88202002-05-24 Andrew Cagney <cagney@redhat.com>
8821
8822 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8823 change `2002-05-22 Michael Snyder' below.
8824 (d10v_push_arguments): Ditto.
8825 (d10v_extract_return_value): Ditto.
8826
0a3d0425
JB
88272002-05-23 Jim Blandy <jimb@redhat.com>
8828
8829 * macrotab.c (check_for_redefinition): Don't complain if the new
8830 definition is the same as the previous one. Take more arguments
8831 to allow the comparison.
8832 (macro_define_object, macro_define_function): Pass more arguments
8833 to check_for_redefinition.
8834
78eac43e
MS
88352002-05-22 Michael Snyder <msnyder@redhat.com>
8836
8837 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8838 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8839 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8840 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8841 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8842 Add a temp variable to save a call (and a memory read).
8843 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8844 if possible (so that PC_IN_CALL_DUMMY will work).
8845
9bc1edb8
CV
88462002-05-22 Corinna Vinschen <vinschen@redhat.com>
8847
8848 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8849
005ef3d2
ML
88502002-05-22 Michal Ludvig <mludvig@suse.cz>
8851
8852 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8853 fde->cie_ptr.
8854 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8855 (dwarf2_build_frame_info): Add offset to fde->initial_location
8856 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8857 (execute_stack_op): Change type of 'result' from ULONGEST to
8858 CORE_ADDR.
005ef3d2 8859
fcf4f891
JT
88602002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8861
8862 * config/alpha/tm-nbsd.h: Include solib.h.
8863
cfef91e4
JT
88642002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8865
8866 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8867 assumptions about the host's byte order.
8868
9964235a
JT
88692002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8870
8871 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8872 to dependency list.
8873 * alphanbsd-tdep.c: Include solib-svr4.h.
8874 * shnbsd-tdep.c: Ditto.
8875
9eeef8ef
JT
88762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8877
8878 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8879 nbsd-tdep.h to dependency list.
8880 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8881 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8882 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8883 nbsdaout.mh and nbsdelf.mh consistently.
8884 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8885 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8886 nbsdaout.mt and nbsdelf.mh consistently.
8887 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8888 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8889 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8890 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8891 a.out shared library stuff from here...
8892 * config/nm-nbsdaout.h: ...to here.
8893 * config/tm-nbsd.h: Remove.
8894 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8895 * config/arm/nbsd.mh: Remove.
8896 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8897 nbsd-tdep.o.
8898 * config/arm/nbsdaout.mh: New file.
8899 * config/arm/nbsdelf.mh: New file.
8900 * config/arm/nm-nbsdaout.h: New file.
8901 * config/i386/nbsd.mh: Remove.
8902 * config/i386/nbsd.mt: Remove.
8903 * config/i386/nbsdaout.mh: New file.
8904 * config/i386/nbsdaout.mt: New file.
8905 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8906 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8907 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8908 i386_register_u_addr): Remove.
8909 * config/i386/nm-nbsdaout.h: New file.
8910 * config/i386/nm-nbsdelf.h: Remove.
8911 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8912 (USE_STRUCT_CONVENTION): Remove.
8913 * config/i386/tm-nbsdaout.h: New file.
8914 * config/i386/tm-nbsdelf.h: Remove.
8915 * config/m68k/nbsd.mh: Remove.
8916 * config/m68k/nbsd.mt: Remove.
8917 * config/m68k/nbsdaout.mh: New file.
8918 * config/m68k/nbsdaout.mt: New file.
8919 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8920 * config/m68k/nm-nbsdaout.h: New file.
8921 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8922 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8923 * config/ns32k/nbsd.mh: Remove.
8924 * config/ns32k/nbsd.mt: Remove.
8925 * config/ns32k/nbsdaout.mh: New file.
8926 * config/ns32k/nbsdaout.mt: New file.
8927 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8928 * config/ns32k/nm-nbsdaout.h: New file.
8929 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8930 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8931 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8932 (SVR4_SHARED_LIBS): Remove.
8933 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8934 * config/sparc/nbsd.mh: Remove.
8935 * config/sparc/nbsd.mt: Remove.
8936 * config/sparc/nbsdaout.mh: New file.
8937 * config/sparc/nbsdaout.mt: New file.
8938 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8939 * config/sparc/nbsdelf.mt: New file.
8940 * config/sparc/nm-nbsdaout.h: New file.
8941 * config/sparc/nm-nbsdelf.h: Remove.
8942 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8943 * config/sparc/tm-nbsdaout.h: New file.
8944
257ce470
JT
89452002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8946
8947 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8948 mipsnbsd-tdep.c
8949 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8950
76a6d5fe
JT
89512002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8952
8953 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8954 shnbsd-nat.c.
8955 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8956
45888261
JT
89572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8958
8959 * NEWS: Note new MIPS NetBSD native configuration.
8960 * configure.host (mips*-*-netbsd*): New host.
8961 * configure.tgt (mips*-*-netbsd*): New target.
8962 * mipsnbsd-nat.c: New file.
8963 * mipsnbsd-tdep.c: New file.
8964 * mipsnbsd-tdep.h: New file.
8965 * config/mips/nbsd.mh: New file.
8966 * config/mips/nbsd.mt: New file.
8967 * config/mips/nm-nbsd.h: New file.
8968 * config/mips/tm-nbsd.h: New file.
8969
70f80edf
JT
89702002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8971
8972 * Makefile.in (SFILES): Add osabi.c.
8973 (COMMON_OBS): Add osabi.o.
8974 (osabi.o): New dependency list.
8975 * osabi.c: New file.
8976 * osabi.h: New file.
8977 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8978
8979 * Makefile.in (alpha_tdep_h): Define and use instead of
8980 alpha-tdep.h.
8981 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8982 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8983 Remove.
8984 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8985 * alpha-tdep.h: Include osabi.h.
8986 (alpha_abi): Remove.
8987 (gdbarch_tdep): Use generic OS ABI framework.
8988 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8989 gdbarch_register_osabi.
8990 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8991 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8992 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8993
8994 * Makefile.in (sh_tdep_h): Add osabi.h.
8995 * sh-tdep.h (sh_osabi): Remove.
8996 (gdbarch_tdep): Use generic OS ABI framework.
8997 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8998 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8999 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9000 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9001
9002 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9003 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9004 gdbarch_register_osabi.
9005 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9006 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9007 (get_elfosabi): Rename to...
9008 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9009 ABI framework support routines.
9010 (arm_gdbarch_init): Use generic OS ABI framework.
9011 (arm_dump_tdep): Likewise.
9012 (_initialize_arm_tdep): Likewise.
9013 * arm-tdep.h: Include osabi.h.
9014 (arm_abi): Remove.
9015 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9016 osabi member.
9017 (arm_gdbarch_register_os_abi): Remove prototype.
9018 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9019 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9020
9021 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9022 * mips-tdep.c: Include osabi.h.
9023 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9024 OS ABI framework.
9025
d194345b
KH
90262002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9027
9028 * h8300-tdep.c: Fix formatting.
9029
70c6b0d1
EZ
90302002-05-20 Elena Zannoni <ezannoni@redhat.com>
9031
9032 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9033 printing vector registers.
9034
165b8e33
AC
90352002-05-19 Andrew Cagney <ac131313@redhat.com>
9036
9037 From Fernando Nasser:
9038 * remote.c (remote_async_open_1): Re-throw the exception when the
9039 connection fails.
9040 (remote_cisco_open): Ditto.
9041 (remote_open_1): Ditto.
9042
36918e70
AC
90432002-05-19 Andrew Cagney <ac131313@redhat.com>
9044
9045 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9046 (remote_start_remote): Add uiout parameter. Pass through to
9047 remote_start_remote_dummy.
9048 (remote_open_1): Use catch_exception instead of catch_errors.
9049 (remote_async_open_1): Ditto.
9050 (remote_cisco_open): Ditto.
9051
ae44c0c4
AC
90522002-05-19 Andrew Cagney <ac131313@redhat.com>
9053
9054 * remote.c (remote_start_remote): Replace PTR with void pointer.
9055 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9056 static.
9057
8efe637d
AC
90582002-05-18 Andrew Cagney <ac131313@redhat.com>
9059
9060 * gdb_indent.sh: Allow the script to be run in the sim directory.
9061
2f1b5984
MK
90622002-05-18 Mark Kettenis <kettenis@gnu.org>
9063
f0f625e2
MK
9064 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9065 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9066
2f1b5984
MK
9067 * corelow.c (core_open): Only call set_gdbarch_from_file if
9068 exec_bfd is NULL.
9069
fc974602
AV
90702002-05-17 Andrey Volkov <avolkov@transas.com>
9071
9072 * h8300-tdep.c: Add support of EXR register
9073 * config/h8300/tm-h8300.h: Ditto.
9074
906709f4
AV
90752002-05-17 Andrey Volkov <avolkov@transas.com>
9076
9077 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9078
6e591d68
AV
90792002-05-17 Andrey Volkov <avolkov@transas.com>
9080
9081 * h8300-tdep.c: Change literal regnums to REGNO.
9082
84f0252a
JB
90832002-05-17 Jim Blandy <jimb@redhat.com>
9084
e0e9281e
JB
9085 * NEWS: Note addition of macro support.
9086
84f0252a
JB
9087 Expand preprocessor macros in C expressions.
9088 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9089 (scan_macro_expansion, scanning_macro_expansion,
9090 finished_macro_expansion): New function declarations.
9091 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9092 variable declarations.
9093 * parser-defs.h (expression_context_pc): New declaration.
9094 * parse.c (expression_context_pc): New variable.
9095 (parse_exp_1): Set expression_context_pc, as well as
9096 expression_context_block.
9097 * c-exp.y (yylex): If we're not already reading the result of a
9098 macro expansion, try to macro-expand the next token. When we're
9099 done scanning a macro expansion, switch back to the mainline text.
9100 Commas and `if's in a macro's expansion don't terminate the input.
9101 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9102 (macro_original_text, macro_expanded_text,
9103 expression_macro_lookup_func, expression_macro_lookup_baton): New
9104 variables.
9105 (scan_macro_expansion, scanning_macro_expansion,
9106 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9107 c_preprocess_and_parse): New functions.
9108 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9109 c_preprocess_and_parse, instead of c_parse.
9110 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9111 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9112
1c509ca8
JR
9113Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9114
9115 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9116 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9117 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9118
2250ee0c
CV
91192002-05-17 Corinna Vinschen <vinschen@redhat.com>
9120
9121 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9122
ab3b8126
JT
91232002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9124
9125 * Makefile.in (sh_tdep_h): Define and use.
9126 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9127 register enum): Move to...
9128 * * sh-tdep.h: ...here.
9129 * sh-tdep.c: Include sh-tdep.h.
9130 * sh3-rom.c: Likewise.
9131 * shnbsd-tdep.c: Likewise.
9132
ed9d4749
MS
91332002-05-16 Michael Snyder <msnyder@redhat.com>
9134
9135 * arm-tdep.c: Spelling fix in comment.
9136
2e276125
JB
91372002-05-16 Jim Blandy <jimb@redhat.com>
9138
6821892e
JB
9139 Add commands for manually expanding macros and showing their
9140 definitions.
9141 * macrocmd.c, macroscope.c, macroscope.h: New files.
9142 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9143 (macroscope_h): New variable.
9144 (HFILES_NO_SRCDIR): Add macroscope.h.
9145 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9146 (macroscope.o, macrocmd.o): New rules.
9147
2e276125
JB
9148 Teach the Dwarf 2 reader to read macro information.
9149 * dwarf2read.c: #include "macrotab.h".
9150 (dwarf_macinfo_buffer): New variable.
9151 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9152 dwarf_macinfo_size.
9153 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9154 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9155 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9156 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9157 dwarf2_macro_spaces_in_definition): New complaints.
9158 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9159 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9160 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9161 the partial symbol table.
9162 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9163 from what's recorded in the partial symbol table.
9164 (read_file_scope): If the compilation unit has a
9165 `DW_AT_macro_info' attribute, read its macro information.
9166 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9167
2f53fe6c
DJ
91682002-05-16 Daniel Jacobowitz <drow@mvista.com>
9169
9170 Fix PR gdb/546
9171 * ser-tcp.c: Don't include <netinet/udp.h>.
9172
2be99286
SC
91732002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9174
9175 * MAINTAINERS: Update my email address.
9176
c9af212b 91772002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9178
9179 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9180 include file of the same name.
9181
bf5f1a52
CV
91822002-05-16 Corinna Vinschen <vinschen@redhat.com>
9183
9184 * configure.tgt: Mark v850 as multi-arched.
9185 * config/v850/tm-v850.h: Remove file.
9186 * config/v850/v850.mt: Eliminate TM_FILE.
9187
435e042a
CV
91882002-05-16 Corinna Vinschen <vinschen@redhat.com>
9189
9190 * v850-tdep.c: Full multi-arch.
9191 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9192 Define GDB_MULTI_ARCH to 2.
9193
9819c6c8
PM
91942002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9195
9196 * p-exp.y (current_type): New static variable.
9197 Carries the type of the expression at the position that is parsed.
9198 (push_current_type, pop_current_type): Two new functions. Used
9199 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9200 (search_field): New static variable. Set to one after parsing a point
9201 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9202 (FIELDNAME): New token. After a point only a token belonging to
9203 current_type type definition is allowed.
9204 (all over token rules): reset and change current_type according
9205 to rules.
9206 (exp '[' rule): insert implicit array index field if
9207 exp is a pascal string type.
9208
3a06899a
CV
92092002-05-16 Corinna Vinschen <vinschen@redhat.com>
9210
9211 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9212 frame info. Use frame_info's saved_regs instead of matching member
9213 in extra_frame_info throughout.
9214 (v850_frame_init_saved_regs): New function.
9215 (v850_init_extra_frame_info): Move most functionality into
9216 v850_frame_init_saved_regs().
9217 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9218 (v850_frame_find_saved_regs): Remove declaration.
9219 (FRAME_FIND_SAVED_REGS): Remove definition.
9220 (v850_frame_init_saved_regs): Add declaration.
9221 (FRAME_INIT_SAVED_REGS): Add definition.
9222
6ed14b0e
CV
92232002-05-16 Corinna Vinschen <vinschen@redhat.com>
9224
9225 * v850-tdep.c: Begin multi-arch'ing v850.
9226 (v850_target_architecture_hook): Remove function.
9227 (v850_gdbarch_init): New function. Add code previously in
9228 v850_target_architecture_hook().
9229 (_initialize_v850_tdep): Don't set target_architecture_hook.
9230 Call register_gdbarch_init() instead.
9231
42725910
DJ
92322002-05-16 Daniel Jacobowitz <drow@mvista.com>
9233
9234 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9235 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9236 (fixup_class_method_type): Likewise.
9237
99d9066e
JB
92382002-05-15 Jim Blandy <jimb@redhat.com>
9239
9240 Add macro structures to GDB's symbol tables. Nobody puts anything
9241 in them yet.
9242 * symtab.h (struct symtab): New member: `macro_table'.
9243 * buildsym.h (pending_macros): New global variable.
9244 * buildsym.c: #include "macrotab.h".
9245 (buildsym_init): Initialize `pending_macros'.
9246 (end_symtab): If we found macro information while reading a CU's
9247 debugging info, do build a symtab structure for it. Make the
9248 symtab point to the macro information, and clear the
9249 `pending_macros' pointer which held it while we were reading the
9250 debug info.
9251 (really_free_pendings): Free any pending macro table.
9252 * objfiles.h (struct objfile): New member: `macro_cache'.
9253 * objfiles.c (allocate_objfile): Set allocate and free functions
9254 for the macro cache's objstack.
9255 (free_objfile): Empty the macro cache's obstack.
9256 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9257 set new allocate and free functions for it.
9258 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9259 free functions for the macro cache's objstack. (Why is this
9260 function building its own objfile?)
9261 * symmisc.c (print_objfile_statistics): Print statistics on the
9262 macro bcache.
9263 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9264
c899585b
RE
92652002-05-15 Richard Earnshaw <rearnsha@arm.com>
9266
9267 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9268 (REGISTER_U_ADDR): Delete definition.
9269 (arm_register_u_addr): Delete declaration.
9270
a6cdd8c5
RE
92712002-05-15 Richard Earnshaw <rearnsha@arm.com>
9272
9273 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9274 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9275
c97dcfc7
AC
92762002-05-14 Andrew Cagney <ac131313@redhat.com>
9277
9278 * regcache.c (register_valid): Revise comments refering to "Not
9279 available" and "unavailable".
9280 * frame.c (frame_register_read): Ditto.
9281 * findvar.c (value_of_register): Ditto.
9282
93021b7d
AC
92832002-05-15 Andrew Cagney <cagney@redhat.com>
9284
9285 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9286 (remote-sim.o): Update dependencies.
9287 (d10v-tdep.o): Specify dependencies.
9288 (sim_d10v_h): Define.
9289
a86bc61c
JB
92902002-05-14 Jim Blandy <jimb@redhat.com>
9291
9292 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9293 * macrotab.c (macro_lookup_inclusion, find_definition,
9294 new_macro_table): Same.
9295
9296 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9297 not `! strcmp ()'. This is a dubious improvement.
9298 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9299
9300 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9301 although it's not necessary, to avoid a warning.
9302
2fdde8f8
DJ
93032002-05-14 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9306 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9307 TYPE_INSTANCE_FLAGS.
9308 (struct main_type): New.
9309 (struct type): Move most members to struct main_type. Change
9310 cv_type and as_type to new type_chain member. Add instance_flags.
9311 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9312 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9313 (finish_cv_type): Remove prototype.
9314 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9315 Set TYPE_CHAIN.
9316 (alloc_type_instance): New function.
9317 (smash_type): New function.
9318 (make_pointer_type, make_reference_type, make_function_type)
9319 (smash_to_member_type, smash_to_method_type): Call smash_type.
9320 (make_qualified_type): New function.
9321 (make_type_with_address_space): Call make_qualified_type.
9322 (make_cv_type): Likewise.
9323 (finish_cv_type): Remove unnecessary function.
9324 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9325 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9326 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9327 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9328 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9329 * hpread.c (hpread_read_struct_type): Likewise.
9330 * stabsread.c (read_struct_type): Likewise.
9331
843fedf4
EZ
93322002-05-14 Elena Zannoni <ezannoni@redhat.com>
9333
9334 * configure.tgt: Add a catch all sh* target, for cases like
9335 sh[2,3,4]-elf and sh-hms.
9336
05a6c72c
KS
93372002-05-14 Keith Seitz <keiths@redhat.com>
9338
9339 * event-loop.c (create_file_handler): Don't do anything but
9340 update data when we are given a fd which we are already
9341 monitoring.
9342
5d085aaf
ML
93432002-05-14 Michal Ludvig <mludvig@suse.cz>
9344
9345 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9346 (update_context): Use __func__ in warnings.
9347
9db8d71f
DJ
93482002-05-14 Daniel Jacobowitz <drow@mvista.com>
9349
9350 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9351 and tcp_close to net_open and net_close.
9352 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9353 using UDP if requested. Don't try to disable Nagle on UDP
9354 sockets.
9355 * remote.c (remote_serial_open): New function. Warn about UDP.
9356 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9357
5dbc6baa
EZ
93582002-05-13 Elena Zannoni <ezannoni@redhat.com>
9359
9360 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9361
cc3023f7
EZ
93622002-05-13 Elena Zannoni <ezannoni@redhat.com>
9363
9364 * configure.tgt: Remove sh-hms target.
9365 * MAINTAINERS: Don't list sh-hms as a separate target.
9366
ec2bcbe7
JB
93672002-05-13 Jim Blandy <jimb@redhat.com>
9368
9369 Add first preprocessor macro-expansion files.
9370 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9371 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9372 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9373 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9374 (COMMON_OBS): Add macrotab.o, macroexp.o.
9375 (macroexp.o, macrotab.o): New rules.
9376
6d531722
AC
93772002-05-13 Andrew Cagney <ac131313@redhat.com>
9378
9379 * config/m88k/tm-m88k.h: Update copyright.
9380 (m88k_target_write_pc): Declare
9381 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9382 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9383 (SHIFT_INST_REGS): Update definition.
9384 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9385 using old definition of TARGET_WRITE_PC.
9386 * regcache.c (generic_target_write_pc): Delete code handling
9387 NNPC_REGNUM.
9388 * gdbarch.sh (NNPC_REGNUM): Delete.
9389 * gdbarch.h, gdbarch.c: Regenerate.
9390
3e3f2739
RE
93912002-05-13 Richard Earnshaw <rearnsha@arm.com>
9392
9393 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9394 builtin reg number.
9395
0004e5a2
DJ
93962002-05-13 Daniel Jacobowitz <drow@mvista.com>
9397
9398 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9399 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9400 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9401 access macros.
9402 * c-typeprint.c (cp_type_print_method_args): Likewise.
9403 (c_type_print_args): Likewise.
9404 * d10v-tdep.c (d10v_push_arguments): Likewise.
9405 (d10v_extract_return_value): Likewise.
9406 * expprint.c (print_subexp): Likewise.
9407 * gdbtypes.c (lookup_primitive_typename): Likewise.
9408 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9409 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9410 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9411 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9412 (TYPE_VECTOR): Likewise.
9413 * hpread.c (hpread_read_struct_type)
9414 (fix_static_member_physnames, fixup_class_method_type)
9415 (hpread_type_lookup): Likewise.
9416 * mdebugread.c (parse_symbol, parse_type): Likewise.
9417 * p-lang.c (is_pascal_string_type): Likewise.
9418 * valops.c (hand_function_call): Likewise.
9419 * x86-64-tdep.c (classify_argument): Likewise.
9420
9421 * hpread.c (hpread_read_function_type)
9422 (hpread_read_doc_function_type): Call replace_type.
9423 * dstread.c (create_new_type): Delete.
9424 (decode_dst_structure, process_dst_function): Call alloc_type.
9425 Use type access macros.
9426
dff95cc7
MK
94272002-05-12 Mark Kettenis <kettenis@gnu.org>
9428
9429 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9430 the're not supported by the current architecture.
9431 (i387_fill_fxsave): Likewise.
9432
bbcd32ad
FF
94332002-05-12 Fred Fish <fnf@redhat.com>
9434
9435 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9436 sect_index_xxx members to index the first slot in section_offsets
9437 if all of the section_offsets are zero.
9438
89cf4787
MK
94392002-05-12 Mark Kettenis <kettenis@gnu.org>
9440
9441 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9442 checked in with last change.
9443
1f77ffc5
MK
94442002-05-12 Mark Kettenis <kettenis@gnu.org>
9445
9446 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9447 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9448 config.sub.
9449
89b8b4a9
DJ
94502002-05-12 Daniel Jacobowitz <drow@mvista.com>
9451
9452 * Makefile.in: Update dependencies.
9453
14a5e767
AC
94542002-05-11 Andrew Cagney <ac131313@redhat.com>
9455
9456 * language.c (local_hex_string_custom): Simplify. Do not depend
9457 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9458
9459 * memattr.c (mem_info_command): Replace calls to
9460 longest_local_hex_string and longest_local_hex_string_custom.
9461 * buildsym.c (make_blockvector): Ditto.
9462 * solib.c (info_sharedlibrary_command): Ditto.
9463 * tracepoint.c (tracepoints_info): Ditto.
9464 * symtab.c (print_msymbol_info): Ditto.
9465
9466 * language.c (local_hex_string): Delete.
9467 (local_hex_string_custom): Delete.
9468 (longest_local_hex_string): Rename to local_hex_string.
9469 (longest_local_hex_string_custom): Rename to
9470 local_hex_string_custom.
9471 * language.h (local_hex_string): Change parameter type to LONGEST.
9472 (local_hex_string_custom): Ditto.
9473 (longest_local_hex_string): Delete declaration.
9474 (longest_local_hex_string_custom): Ditto.
9475
9476 * solib.c: Update copyright.
9477 * memattr.c: Update copyright.
9478
13d01224
AC
94792002-05-11 Andrew Cagney <ac131313@redhat.com>
9480
9481 * arch-utils.h (legacy_register_to_value): Declare.
9482 (legacy_value_to_register): Declare.
9483 (legacy_convert_register_p): Declare.
9484 * arch-utils.c (legacy_register_to_value): New function.
9485 (legacy_value_to_register): New function.
9486 (legacy_convert_register_p): New function.
9487
9488 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9489 (VALUE_TO_REGISTER): Define.
9490 (CONVERT_REGISTER_P): Define.
9491 * gdbarch.h, gdbarch.c: Regenerate.
9492
9493 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9494 VALUE_TO_REGISTER.
9495 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9496 CONVERT_REGISTER_P.
9497
4a1970e4
DJ
94982005-05-11 Daniel Jacobowitz <drow@mvista.com>
9499 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9500
9501 * Makefile.in: Update dependencies for valops.c.
9502 * valops.c: Include "gdb_assert.h".
9503 (typecmp): Skip THIS parameter to methods.
9504 (find_method_list): Remove static_memfuncp argument,
9505 update callers. Check for stub methods.
9506 (find_value_oload_method_list): Don't set *static_memfuncp.
9507 (find_overload_match): Don't check for stub methods. Assert
9508 that methods are not stubbed. Handle static methods.
9509 (value_find_oload_method_list): Remove static_memfuncp argument.
9510 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9511 to the argument list for static stub methods.
9512 * value.h (value_find_oload_method_list): Update prototype.
9513
b2e75d78
AC
95142002-05-11 Andrew Cagney <ac131313@redhat.com>
9515
9516 * arch-utils.h (generic_register_size): Declare.
9517 (generic_register_raw_size, generic_register_virtual_size): Delete
9518 declarations.
9519 * arch-utils.c (generic_register_raw_size): Delete.
9520 (generic_register_size): New function.
9521 (generic_register_virtual_size): Delete.
9522
9523 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9524 default generic_register_size.
9525 * gdbarch.h, gdbarch.c: Re-generate.
9526
9527 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9528 register_virtual_size.
9529 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9530 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9531
451fbdda
AC
95322002-05-11 Andrew Cagney <ac131313@redhat.com>
9533
9534 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9535 * gdbarch.h, gdbarch.c: Regenerate.
9536 * gnu-v3-abi.c: Update copyright.
9537 (vtable_address_point_offset): Update.
9538 (gnuv3_rtti_type): Update.
9539 (gnuv3_baseclass_offset): Update.
9540 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9541 (init_fetch_link_map_offsets): Update.
9542 * remote.c (get_remote_state): Update.
9543
6d2f5cea
DJ
95442002-05-11 Daniel Jacobowitz <drow@mvista.com>
9545
9546 * TODO: Remove value_headof/value_from_vtable_info comment.
9547 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9548 * values.c (value_headof, value_from_vtable_info): Delete.
9549 * value.h (value_from_vtable_info): Delete prototype.
9550
d2324da4
AC
95512002-05-11 Andrew Cagney <ac131313@redhat.com>
9552
9553 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9554 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9555 $(gdb_regex_h).
9556 (gdb_assert_h): Define.
9557 (gdb_wait_h): Define.
9558 (gdb_regex_h): Define.
9559
5c717440
DJ
95602002-05-11 Daniel Jacobowitz <drow@mvista.com>
9561
9562 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9563 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9564
6c7861b3
JT
95652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9566
9567 * nbsd-tdep.c: Fix comment.
9568
ea5bc2a6
JT
95692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9570
9571 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9572 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9573 (nbsd-tdep.o): New dependency list.
9574 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9575 nbsd-tdep.h.
9576 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9577 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9578 * nbsd-tdep.c: New file.
9579 * nbsd-tdep.h: New file.
9580 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9581 nbsd-tdep.h.
9582 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9583 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9584 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9585 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9586
b28da865
JT
95872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9588
9589 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9590 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9591 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9592 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9593 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9594 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9595
4b8ff1fa
JT
95962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9597
9598 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9599 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9600 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9601 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9602 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9603 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9604 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9605
dfe6eb1f
JT
96062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9607
9608 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9609 fetch_elfcore_registers to...
9610 * i386nbsd-tdep.c: ...here.
9611 (i386nbsd_use_struct_convention): Rename to...
9612 (i386nbsd_aout_use_struct_convention): ...this.
9613 (i386nbsd_supply_reg): New function.
9614 (i386nbsd_fill_reg): New function.
9615 (fetch_core_registers): Use i386nbsd_supply_reg.
9616 (fetch_elfcore_registers): Likewise.
9617 (_initialize_i386nbsd_tdep): New function.
9618 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9619 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9620 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9621 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9622 (i386nbsd_aout_use_struct_convention): ...this.
9623
20cb8cda
JT
96242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9625
9626 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9627 (store_inferior_registers): Use shnbsd_fill_reg.
9628 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9629 sh_nbsd_supply_register): Collapse into...
9630 (shnbsd_supply_reg): ...this.
9631 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9632 (shnbsd_fill_reg): ...this.
9633 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9634 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9635 (fetch_core_registers): Use shnbsd_supply_reg.
9636 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9637 (sh_nbsd_core_fns): Rename to...
9638 (shnbsd_core_fns): ...this.
9639 (sh_nbsd_elfcore_fns): Rename to...
9640 (shnbsd_elfcore_fns): ...this.
9641 (sh_nbsd_init_abi): Rename to...
9642 (shnbsd_init_abi): ...this.
9643 (_initialize_sh_nbsd_tdep): Rename to...
9644 (_initialize_shnbsd_tdep): ...this.
9645 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9646 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9647 sh_nbsd_fill_register): Remove prototypes.
9648 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9649
e750d25e
JT
96502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9651
9652 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9653 (i387-nat.o): Delete dependency list.
9654 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9655 (x86-64-linux-nat.o): Likewise.
9656 * i387-nat.c: Delete file, moving contents to...
9657 * i387-tdep.c: ...here.
9658 * i387-nat.h: Rename...
9659 * i387-tdep.h: ...to this.
9660 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9661 * i386-linux-nat.c: Likewise.
9662 * i386bsd-nat.c: Likewise.
9663 * i386gnu-nat.c: Likewise.
9664 * i386nbsd-nat.c: Likewise.
9665 * i386v4-nat.c: Likewise.
9666 * x86-64-linux-nat.c: Likewise.
9667 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9668 * config/i386/go32.mh (NATDEPFILES): Likewise.
9669 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9670 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9671 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9672 * config/i386/linux.mh (NATDEPFILES): Likewise.
9673 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9674 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9675 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9676 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9677
1aee598a
JT
96782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9679
9680 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9681 (alphanbsd-nat.o): Remove dependency list.
9682 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9683 * alphanbsd-nat.c: Delete. Contents moved to...
9684 * alphanbsd-tdep.c: ...here.
9685 (_initialize_alphanbsd_tdep): Register core functions.
9686 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9687
12bcb0fe
JT
96882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9689
9690 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9691 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9692 (alphanbsd-nat.o): Likewise.
9693 (alphabsd-tdep.o): New dependency list.
9694 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9695 (fill_gregset): Use alphabsd_fill_reg.
9696 (supply_fpregset): Use alphabsd_supply_fpreg.
9697 (fill_fpregset): Use alphabsd_fill_fpreg.
9698 (fetch_inferior_registers): Use struct reg and struct fpreg
9699 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9700 and alphabsd_supply_fpreg.
9701 (store_inferior_registers): Use struct reg and struct fpreg
9702 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9703 and alphabsd_fill_fpreg.
9704 * alphabsd-tdep.c: New file.
9705 * alphabsd-tdep.h: New file.
9706 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9707 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9708 alphabsd_supply_fpreg.
9709 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9710 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9711
361d1df0
EC
97122002-05-11 Eric Christopher <echristo@redhat.com>
9713
9714 * mips-tdep.c (mips_double_register_type): Fix thinko.
9715 (mips_single_register_type): Ditto.
9716 * MAINTAINERS: Add self.
9717
92dd7cee
MK
97182002-05-11 Mark Kettenis <kettenis@gnu.org>
9719
9720 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9721 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9722 right thing on architectures with different endianness and/or
9723 integer sizes.
9724
e27da16d
JT
97252002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9726
9727 From Christian Limpach <chris@Pin.LU>
9728 * configure.in: Change sed expression which comments out
9729 NATDEPFILES to also comment out continuation lines.
9730 * configure: Regenerate.
9731
ddde02bd
EZ
97322002-05-10 Elena Zannoni <ezannoni@redhat.com>
9733
9734 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9735 big patch.
9736
1c922164
EZ
97372002-05-10 Elena Zannoni <ezannoni@redhat.com>
9738
9739 * sh-tdep.c: Include correct file.
9740
283150cd
EZ
97412002-05-10 Elena Zannoni <ezannoni@redhat.com>
9742
9743 New support for sh64-elf (sh5) target.
9744
9745 * configure.tgt: For sh64-elf target, default to sh-elf.
9746
9747 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9748 (struct gdbarch_tdep): Add new fields for new registers and ABI
9749 info.
361d1df0 9750
283150cd
EZ
9751 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9752 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9753 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9754 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9755 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9756 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9757 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9758 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9759 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9760 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9761 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9762 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9763 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9764 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9765 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9766 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9767 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9768 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9769 sign_extend, sh64_nofp_frame_init_saved_regs,
9770 sh64_init_extra_frame_info, sh64_get_saved_register,
9771 sh64_extract_struct_value_address, sh64_pop_frame,
9772 sh64_push_arguments, sh64_extract_return_value,
9773 sh64_store_return_value, sh64_show_media_regs,
9774 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9775 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9776 sh_sh64_register_virtual_type,
9777 sh_sh64_register_convert_to_virtual,
9778 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9779 sh64_register_read, sh64_pseudo_register_write,
9780 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9781 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9782 sh64_do_pseudo_register, sh_compact_do_registers_info,
9783 sh64_do_registers_info, sh_gdbarch_init): New functions.
9784
3117ed25
EZ
97852002-05-10 Elena Zannoni <ezannoni@redhat.com>
9786
9787 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9788
2654e6d4
DJ
97892002-05-10 Daniel Jacobowitz <drow@mvista.com>
9790
9791 * linespec.c (decode_line_1): Check for a double quote after
9792 a filename correctly.
9793
9ab3e532
JB
97942002-05-10 Jim Blandy <jimb@redhat.com>
9795
9796 Properly track the size of the current objfile's .debug_line section.
9797 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9798 (DWARF_LINE_SIZE): New macro.
9799 (dwarf2_build_psymtabs_hard): Record the line section's size in
9800 the partial symbol table.
9801 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9802 symbol table.
9803
126fa72d
PS
98042002-05-10 Petr Sorfa <petrs@caldera.com>
9805
9806 * ia64-tdep.c: Handle breakpoints on L instruction type
9807 in MLX instruction bundle by moving the breakpoint to
9808 the third slot (X instruction type) as L holds only data.
9809
1f077a3e
KB
98102002-05-10 Kevin Buettner <kevinb@redhat.com>
9811
9812 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9813 (process_one_symbol): Complain about discarding local symbols
9814 due to a misplaced N_LBRAC entry.
9815
8120c9d5 98162002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9817
9818 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9819 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9820 decrease the depth we are at, in the case of templates.
361d1df0 9821
67b2c998
DJ
98222002-05-09 Daniel Jacobowitz <drow@mvista.com>
9823
9824 * mips-tdep.c (mips_float_register_type): New function.
9825 (mips_double_register_type): New function.
9826 (mips_print_register): Use them.
9827 (do_fp_register_row): Likewise.
9828
fd326606
DJ
98292002-05-09 Daniel Jacobowitz <drow@mvista.com>
9830
6609d9af 9831 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9832 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9833 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9834
bef35864
MS
98352002-05-09 Michael Snyder <msnyder@redhat.com>
9836
9837 * remote-rdp.c (remote_rdp_can_run): Remove.
9838
c55a3f73
TT
98392002-05-09 Tom Tromey <tromey@redhat.com>
9840
9841 * jv-valprint.c (java_val_print): Handle `char' as a special case
9842 of TYPE_CODE_INT.
9843
b8d5e71d
MS
98442002-05-09 Michael Snyder <msnyder@redhat.com>
9845
9846 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9847 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9848 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9849 str r(0123),[sp,#nn].
361d1df0 9850 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9851 order-independent by placing it in a loop.
9852
e2cd42dd
MS
98532002-05-06 Michael Snyder <msnyder@redhat.com>
9854
9855 * stabsread.c (read_type): Add recognition for new attribute:
9856 "@V;" means that an array type is actually a vector.
9857 This is analogous to the vector flag that's been added to dwarf2.
9858
3ce1502b
MK
98592002-05-09 Mark Kettenis <kettenis@gnu.org>
9860
9861 * i386-tdep.h (i386_abi): New enum.
9862 (struct gdbarch_tdep): Replace os_ident member with abi.
9863 (i386_gdbarch_register_os_abi): New prototype.
9864 * i386-tdep.c (i386_abi_names): New array.
9865 (process_note_abi_tag_sections): Removed.
9866 (process_note_sections): New function.
9867 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9868 (struct i386_abi_handler): New struct.
9869 (i386_abi_handler_list): New variable.
9870 (i386_gdbarch_register_os_abi): New function.
9871 (i386_gdbarch_init): Adapt for the changes given above.
9872
084c156a
DJ
98732002-05-08 Daniel Jacobowitz <drow@mvista.com>
9874
9875 * gregset.h: Say "GNU/Linux".
9876
6599f021
EZ
98772002-05-08 Elena Zannoni <ezannoni@redhat.com>
9878
9879 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9880 (build_gdbtypes): Build builtin_type_v2_float.
9881 (_initialize_gdbtypes): Register new builtin type.
9882
40af4b0c
AC
98832002-05-08 Andrew Cagney <ac131313@redhat.com>
9884
9885 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9886 (clear_gdbarch_swap): New function.
9887 (initialize_non_multiarch): Call.
9888 (gdbarch_update_p): Before calling init(), swap out and clear the
9889 existing architecture.
9890 * gdbarch.c: Regenerate.
9891
4fe84f46
JT
98922002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9893
9894 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9895 alphanbsd-tdep.c.
9896
4015edd1
JT
98972002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9898
9899 * sh-nbsd-nat.c: Rename to...
9900 * shnbsd-nat.c: ...this.
9901 * sh-nbsd-tdep.c: Rename to...
9902 * shnbsd-tdep.c: ...this.
9903 * sh-nbsd-tdep.h: Rename to...
9904 * shnbsd-tdep.h: ...this.
9905 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9906 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9907
0e2bd219
RE
99082002-05-08 Richard Earnshaw <rearnsha@arm.com>
9909
9910 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9911 concatenation for command help messages.
9912
13a38d45
JT
99132002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9914
9915 * NEWS: Note new sh*-*-netbsdelf* configuration.
9916 * configure.host: Set gdb_host_cpu to sh for all sh*.
9917 (sh*-*-netbsdelf*): New host.
9918 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9919 (sh*-*-netbsdelf*): New target.
9920 * sh-nbsd-nat.c: New file.
9921 * sh-nbsd-tdep.c: New file.
9922 * sh-nbsd-tdep.h: New file.
9923 * config/sh/nbsd.mh: New file.
9924 * config/sh/nbsd.mt: New file.
9925 * config/sh/nm-nbsd.h: New file.
9926 * config/sh/tm-nbsd.h: New file.
9927
d658f924
JT
99282002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9929
9930 * sh-tdep.c (sh_osabi_names): Declare.
9931 (process_note_abi_tag_sections): New function.
9932 (get_elfosabi): Ditto.
9933 (sh_gdbarch_register_os_abi): Ditto.
9934 (sh_dump_tdep): Ditto.
9935 _initialize_sh_tdep): Use gdbarch_register to register
9936 sh_gdbarch_init and sh_dump_tdep.
9937 * config/sh/tm-sh.h (sh_osabi): Declare.
9938 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9939
848cfffb
AC
99402002-05-07 Andrew Cagney <ac131313@redhat.com>
9941
9942 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9943 (thumb_scan_prologue): Ditto.
9944 (arm_find_callers_reg): Ditto.
9945 (arm_frame_chain): Ditto.
9946 (arm_init_extra_frame_info): Ditto.
9947 (arm_frame_saved_pc): Ditto.
9948 (arm_pop_frame): Ditto.
9949 (arm_push_return_address): New function.
9950 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9951 call_dummy_location, call_dummy_breakpoint_offset_p,
9952 call_dummy_breakpoint_offset, call_dummy_p,
9953 call_dummy_stack_adjust_p, call_dummy_words,
9954 sizeof_call_dummy_words, call_dummy_start_offset,
9955 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9956 call_dummy_address, push_return_address and push_dummy_frame for
9957 generic dummy frames.
9958
e7d717c0
JT
99592002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9960
9961 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9962 size computation for alloca.
9963 (sh_fp_frame_init_saved_regs): Likewise.
9964
7bbcf283
RE
99652002-05-07 Richard Earnshaw <rearnsha@arm.com>
9966
9967 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9968 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9969 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9970 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9971 * remote-rdp.c (remote_rdp_fetch_register): Use
9972 ARM_MAX_REGISTER_RAW_SIZE.
9973 (remote_rdp_store_register): Likewise.
9974
4657573b
ML
99752002-05-07 Michal Ludvig <mludvig@suse.cz>
9976
361d1df0 9977 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9978 added default labels to switch {} statements.
9979 * x86-64-tdep.c: Ditto.
9980 * x86-64-linux-nat.c: Ditto.
9981
010f3b2f
JT
99822002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9983
9984 * solib.h: Protect against multiple inclusion.
9985
debd256d
JB
99862002-05-06 Jim Blandy <jimb@redhat.com>
9987
9ab3e532
JB
9988 Add first preprocessor macro-expansion files.
9989 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9990 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9991 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9992 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9993 (COMMON_OBS): Add macrotab.o, macroexp.o.
9994 (macroexp.o, macrotab.o): New rules.
9995
debd256d
JB
9996 Separate the job of reading the line number info statement program
9997 header (...expialidocious) out into its own function.
9998 * dwarf2read.c (struct line_head, struct filenames, struct
9999 directories): Replace with...
10000 (struct line_header): New structure, containing the full
10001 contents of the statement program header, including the
10002 include directory and file name tables.
10003 (read_file_scope): If we have line number info, instead of just
10004 calling dwarf_decode_lines to do all the work, call
10005 dwarf_decode_line_header first to get a `struct line_header'
10006 containing the data in the statement program header, and then
10007 pass that to dwarf_decode_lines, which will pick up where that
10008 left off. Be sure to clean up the `struct line_header' object.
10009 (dwarf_decode_line_header, free_line_header, add_include_dir,
10010 add_file_name): New functions.
10011 (dwarf_decode_lines): Move all the code to read the statement
10012 program header into dwarf_decode_line_header. Take the line
10013 header it built as the first argument, instead of the offset to
10014 the compilation unit's line number info. Use the new `struct
10015 line_header' type instead of the old structures. No need to do
10016 cleanups here now, since we don't allocate anything.
10017 (dwarf2_statement_list_fits_in_line_number_section,
10018 dwarf2_line_header_too_long): New complaints.
10019
ac3aafc7
EZ
100202002-05-06 Elena Zannoni <ezannoni@redhat.com>
10021
10022 * gdbtypes.c (init_vector_type): New function.
10023 (build_builtin_type_vec128): Simplify the representation of SIMD
10024 registers.
10025 (build_gdbtypes): Initialize new builtin vector types.
10026 (_initialize_gdbtypes): Register new vector types with gdbarch.
10027 (builtin_type_v4_float, builtin_type_v4_int32,
10028 builtin_type_v8_int16, builtin_type_v16_int8,
10029 builtin_type_v2_int32, builtin_type_v4_int16,
10030 builtin_type_v8_int8): New (renamed) SIMD types.
10031
13e49980
MK
100322002-05-06 Mark Kettenis <kettenis@gnu.org>
10033
10034 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10035 (i387_fill_fxsave): Likewise.
10036
997b20b8
AO
100372002-05-05 Alexandre Oliva <aoliva@redhat.com>
10038
10039 * alpha-tdep.c (alpha_extract_return_value): Don't use
10040 non-constant array size in prototype.
10041
535c96ce
AC
100422002-05-04 Andrew Cagney <ac131313@redhat.com>
10043
10044 From Brian Taylor <briant at model dot com>:
10045 * ui-out.c (ui_out_field_core_addr): Use the function
10046 longest_local_hex_string_custom'to format addresses > 32 bits
10047 wide.
10048
10049 * ui-out.c (ui_out_field_core_addr): Update comment.
10050
bedfa57b
AC
100512002-05-04 Andrew Cagney <ac131313@redhat.com>
10052
10053 * stack.c (select_and_print_frame): Make static. Delete the
10054 parameter `level'.
10055 (func_command): Update call.
10056 (select_frame_command): Delete code computing the frame level.
10057 * frame.h (select_and_print_frame): Delete declaration.
10058
f621c63e
AC
100592002-05-04 Andrew Cagney <ac131313@redhat.com>
10060
10061 * sparc-tdep.c (sparc_get_saved_register): Comment why
10062 get_prev_frame call is safe.
10063
0f7d239c
AC
100642002-05-04 Andrew Cagney <ac131313@redhat.com>
10065
10066 * frame.h (select_frame): Delete level parameter.
10067 * stack.c (select_frame): Update. Use frame_relative_level to
10068 obtain the frame's level.
10069 (select_and_print_frame): Update call.
10070 (select_frame_command): Ditto.
10071 (up_silently_base): Ditto.
10072 (down_silently_base): Ditto.
10073 * ocd.c (ocd_start_remote): Ditto.
10074 * remote-rdp.c (remote_rdp_open): Ditto.
10075 * remote-mips.c (mips_initialize): Ditto.
10076 (common_open): Ditto.
10077 * remote-e7000.c (e7000_start_remote): Ditto.
10078 * m3-nat.c (select_thread): Ditto.
10079 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10080 (child_get_current_exception_event): Ditto.
10081 * varobj.c (varobj_create): Ditto.
10082 (varobj_update): Ditto.
10083 (c_value_of_root): Ditto.
10084 * tracepoint.c (finish_tfind_command): Ditto.
10085 * corelow.c (core_open): Ditto.
10086 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10087 * thread.c (info_threads_command): Ditto.
10088 (switch_to_thread): Ditto.
10089 * infrun.c (normal_stop): Ditto.
10090 (restore_selected_frame): Ditto.
10091 (restore_inferior_status): Ditto.
10092 * breakpoint.c (insert_breakpoints): Ditto.
10093 (watchpoint_check): Ditto.
10094 (bpstat_stop_status): Ditto.
10095 (do_enable_breakpoint): Ditto.
10096 * blockframe.c (flush_cached_frames): Ditto.
10097 (reinit_frame_cache): Ditto.
10098
71d6c7b1
AC
100992002-05-04 Andrew Cagney <ac131313@redhat.com>
10100
10101 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10102 maintainer.
10103
cda6c68a
JB
101042002-05-04 Jim Blandy <jimb@redhat.com>
10105
10106 * gdbtypes.c (replace_type): Doc fix.
10107
5c1c87f0
AC
101082002-05-04 Andrew Cagney <ac131313@redhat.com>
10109
10110 * valprint.c (strcat_longest): Delete commented out function.
10111 Update copyright.
10112
cd9bfe15
AC
101132002-05-04 Andrew Cagney <ac131313@redhat.com>
10114
10115 * MAINTAINERS: Mark a29k as deleted.
10116 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10117 Move new configurations to the top.
10118 * configure.tgt: Remove a29k.
10119 * config/a29k/tm-vx29k.h: Delete.
10120 * config/a29k/vx29k.mt: Delete.
10121 * config/a29k/tm-a29k.h: Delete.
10122 * config/a29k/a29k-udi.mt: Delete.
10123 * config/a29k/a29k.mt: Delete.
10124 * a29k-tdep.c: Delete.
10125 * remote-udi.c: Delete.
10126 * remote-mm.c: Delete.
10127 * remote-eb.c: Delete.
10128 * remote-adapt.c: Delete.
10129 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10130 * config/s390/s390x.mt: Ditto.
10131 * config/s390/s390.mt: Ditto.
10132 * config/sparc/sparclynx.mh: Ditto.
10133 * config/sparc/linux.mh: Ditto.
10134 * config/pa/hppaosf.mh: Ditto.
10135 * config/pa/hppabsd.mh: Ditto.
10136 * config/ns32k/nbsd.mt: Ditto.
10137 * config/mips/vr5000.mt: Ditto.
10138 * config/m68k/sun3os4.mh: Ditto.
10139 * config/m68k/nbsd.mt: Ditto.
10140 * config/m68k/m68klynx.mh: Ditto.
10141 * config/m32r/m32r.mt: Ditto.
10142 * config/i386/x86-64linux.mt: Ditto.
10143 * config/i386/nbsdelf.mt: Ditto.
10144 * config/i386/nbsd.mt: Ditto.
10145 * config/i386/i386lynx.mh: Ditto.
10146
bf0c5130
AC
101472002-05-04 Andrew Cagney <ac131313@redhat.com>
10148
10149 * target.c (debug_print_register): New function. Handle oversize
10150 registers.
10151 (debug_to_fetch_registers): Call.
10152 (debug_to_store_registers): Call.
10153
2ae1c2d2
JB
101542002-05-03 Jim Blandy <jimb@redhat.com>
10155
13a393b0
JB
10156 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10157 (read_type): Doc fix.
10158 * gdbtypes.c (replace_type): Doc fix.
10159
2ae1c2d2
JB
10160 * stabsread.c (multiply_defined_struct): New complaint.
10161 (read_struct_type): If the type we were passed isn't empty, or
10162 incomplete, don't read the new struct type into it; complain,
10163 and return the original type unchanged. Take a new `type_code'
10164 argument, which is the type code for the new type.
10165 (read_type): Rather than storing the type's type code here, pass
10166 it as an argument to read_struct_type, and let that take care of
10167 storing it. That way, we don't overwrite the original type code,
10168 so read_struct_type can use it to decide whether we're overwriting
10169 something we shouldn't.
10170 (complain_about_struct_wipeout): New function.
10171
8de9bdc4
AC
101722002-05-03 Andrew Cagney <ac131313@redhat.com>
10173
10174 * gdbarch.sh: Assert that gdbarch is non-NULL.
10175 * gdbarch.c: Regenerate.
10176
f773fdbb
JM
101772002-05-03 Jason Merrill <jason@redhat.com>
10178
10179 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10180 and return NULL.
10181
0e04a514
ML
101822002-05-03 Michal Ludvig <mludvig@suse.cz>
10183
10184 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10185 (x86_64_dwarf2gdb_regno_map_length),
10186 (x86_64_dwarf2_reg_to_regnum): Added.
10187 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10188 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10189 (_initialize_x86_64_tdep): Synced with the change above.
10190 (x86_64_skip_prologue): Reformulated message.
10191
065432a8
PM
101922002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10193
10194 * f-exp.y: Also use new prev_lexptr variable
10195 to improve error reporting. Based on Michael Snyder
10196 2002-04-24 dated patch to c-exp.y.
10197 * jv-exp.y: Likewise.
10198 * m2-exp.y: Likewise.
10199
a3162708
EZ
102002002-05-02 Elena Zannoni <ezannoni@redhat.com>
10201
10202 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10203 we are dealing with vectors.
10204
03620c38
PM
102052002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10206
10207 * config/m68k/tm-nbsd.h: Obvious fix,
10208 correct machine name.
10209
6604db2e
PM
102102002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10211
10212 * p-typeprint.c (pascal_type_print_base): Add support
10213 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10214
0906b739
PM
102152002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10216
10217 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10218 for fondamental pascal 'char' type.
10219
e2625b33
PM
102202002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10221
10222 * p-lang.h (is_pascal_string_type): Declaration changed,
10223 new sixth argument of type char ** added.
361d1df0 10224 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10225 changed. Args length_pos, length_size, string_pos, char_size
10226 can now be NULL. New argument arrayname set to the field
10227 name of the char array. Return value set to char array
10228 field index plus one.
361d1df0 10229 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10230 is_pascal_string_type function.
10231
cf17c188
AC
102322002-05-02 Andrew Cagney <cagney@redhat.com>
10233
10234 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10235 <cagney@redhat.com> change.
10236 * gdbarch.c: Regenerate.
10237
52bca491
AC
102382002-05-02 Andrew Cagney <cagney@redhat.com>
10239
10240 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10241 before probing for a new one. Detect errorenous gdbarch_init
10242 functions.
10243 * gdbarch.c: Regenerate.
10244
d5e72505
AC
102452002-05-01 Andrew Cagney <cagney@redhat.com>
10246
10247 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10248 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10249 * config/v850/tm-v850.h: Ditto. Update copyright.
10250
af566d9f
AC
102512002-04-30 Andrew Cagney <ac131313@redhat.com>
10252
10253 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10254 current_gdbarch.
10255
880d85fa
MS
102562002-04-30 Michael Snyder <msnyder@redhat.com>
10257
94c30b78
MS
10258 * arm-tdep.c: Whitespace clean-ups.
10259 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10260 should have been removed as part of 4/24 change.
10261
6f5987a6
KB
102622002-04-30 Kevin Buettner <kevinb@redhat.com>
10263
10264 * rs6000-tdep.c: Added comment describing how fpscr register
10265 numbers were chosen.
10266
1a113c93
MS
102672002-04-30 Michael Snyder <msnyder@redhat.com>
10268
10269 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10270
9a6f53fe
EZ
102712002-04-29 Elena Zannoni <ezannoni@redhat.com>
10272
10273 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10274 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10275 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10276
11ed25ac
KB
102772002-04-29 Kevin Buettner <kevinb@redhat.com>
10278
10279 From Louis Hamilton <hamilton@redhat.com>:
10280 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10281 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10282 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10283 not bfd-private xcoff data, to determine wordsize.
10284 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10285
ae232405
AC
102862002-04-29 Andrew Cagney <ac131313@redhat.com>
10287
10288 GDB 5.2 released from 5.2 branch.
10289
91fd20f7
ML
102902002-04-29 Michal Ludvig <mludvig@suse.cz>
10291
10292 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10293 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10294 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10295
2dc5091b
EZ
102962002-04-29 Elena Zannoni <ezannoni@redhat.com>
10297
10298 * rs6000-tdep.c (rs6000_extract_return_value,
10299 rs6000_store_return_value): Handle returning vectors.
10300 (rs6000_gdbarch_init): Use
10301 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10302 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10303 New function.
10304 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10305 vectors.
10306 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10307 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10308
2b9848d8
PM
103092002-04-24 Pierre Muller <ics.u-strasbg.fr>
10310
10311 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10312 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10313 with fprintf_unfiltered (gdb_stderr,...).
10314
f8d17dc5
PM
103152002-04-24 Pierre Muller <ics.u-strasbg.fr>
10316
10317 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10318 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10319 Replace fprintf (stderr,...
10320 with fprintf_unfiltered (gdb_stderr,....
10321 * remote-es.c: Likewise.
10322 * remote-os9k.c: Likewise.
10323 * remote-st.c: Likewise.
10324
2f2f1ad1
AS
103252002-04-28 Andreas Schwab <schwab@suse.de>
10326
10327 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10328 linux-proc.o and gcore.o.
10329
b6779aa2
AC
103302002-04-26 Michal Ludvig <mludvig@suse.cz>
10331
10332 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10333 code without frame pointers.
10334
7e57f5f4
AC
103352002-04-26 Andrew Cagney <ac131313@redhat.com>
10336
10337 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10338 ON_STACK is needed.
10339
2ceb85d0
BE
103402002-04-26 Ben Elliston <bje@redhat.com>
10341
10342 * target.c (do_xfer_memory): Correct reference to the new option
10343 "trust-readonly-sections".
10344
f5f8a009
EZ
103452002-04-26 Elena Zannoni <ezannoni@redhat.com>
10346
10347 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10348 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10349 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10350 vectors.
10351 (read_array_type): Record the fact that this array type is really a
10352 vector (i.e. are passed in by value).
10353
5868c862
JT
103542002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10355
10356 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10357 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10358 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10359 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10360 * alpha-linux-tdep.c: Include frame.h.
10361 (alpha_linux_sigcontext_addr): New function.
10362 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10363 alpha_linux_sigcontext_addr.
10364 * alpha-osf1-tdep.c: Include gdbcore.h.
10365 (alpha_osf1_sigcontext_addr): New function.
10366 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10367 alpha_osf1_sigcontext_addr.
10368 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10369 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10370
bfb01f37
AC
103712002-04-26 Andrew Cagney <ac131313@redhat.com>
10372
361d1df0 10373 * stack.c (selected_frame_level):
bfb01f37
AC
10374 (select_frame): Do not set selected_frame_level.
10375 * frame.h (selected_frame_level): Delete declaration.
10376
15813d3f
AC
103772002-04-26 Andrew Cagney <ac131313@redhat.com>
10378
10379 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10380 convert_from_func_ptr-addr when AIX / PowerOpen.
10381
6096c27a
AC
103822002-04-25 Andrew Cagney <ac131313@redhat.com>
10383
10384 * valops.c (hand_function_call): Call
10385 generic_save_call_dummy_addr.
10386 * frame.h (generic_save_call_dummy_addr): Declare.
10387 * blockframe.c (struct dummy_frame): Add fields call_lo and
10388 call_hi.
10389 (generic_find_dummy_frame): Check for PC in range call_lo to
10390 call_hi instead of entry_point_address.
10391 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10392 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10393 (generic_save_call_dummy_addr): New function.
10394
f510d44e
DM
103952002-04-24 David S. Miller <davem@redhat.com>
10396
10397 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10398 sparc_skip_prologue.
10399 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10400 information to find prologue when possible.
10401 (sparc_prologue_frameless_p): Call examine_prologue directly.
10402 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10403 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10404 second argument.
10405 (SKIP_PROLOGUE): Likewise.
10406
15d72a92
JT
104072002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10408
10409 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10410 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10411 indicate that the condition it was testing is always true.
10412 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10413 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10414 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10415
accc6d1f
JT
104162002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10417
10418 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10419 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10420 tdep->jb_pc and tdep->jb_elt_size.
10421 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10422 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10423 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10424 * alpha-nat.c (get_longjmp_target): Remove.
10425 (JB_ELEMENT_SIZE): Ditto.
10426 (JB_PC): Ditto.
10427 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10428 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10429 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10430 to alpha_get_longjmp_target.
10431 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10432 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10433 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10434
1bfdc549
AC
104352002-04-25 Andrew Cagney <ac131313@redhat.com>
10436
10437 * README: Update to GDB 5.2.
10438
1bd316f0
AC
104392002-04-25 Andrew Cagney <ac131313@redhat.com>
10440
10441 * gdbarch.sh (LC_ALL): Set to `c'.
10442
2e5ff58c
TR
104432002-04-25 Theodore A. Roth <troth@verinet.com>
10444
10445 * avr-tdep.c: Ran through gdb_indent.sh.
10446
e33ce519
TR
104472002-04-25 Theodore A. Roth <troth@verinet.com>
10448
10449 * MAINTAINERS: Add myself as AVR maintainer.
10450 * NEWS: Note new target avr.
10451
8818c391
TR
104522002-04-25 Theodore A. Roth <troth@verinet.com>
10453
10454 * Makefile.in: Add support for AVR target.
10455 * configure.tgt: Add support for AVR target.
10456 * avr-tdep.c: New file
10457 * config/avr/avr.mt: New file.
10458
79509c2d
TR
104592002-04-25 Theodore A. Roth <troth@verinet.com>
10460
10461 * MAINTAINERS: Add myself to write-after-approval.
10462
dac8068e
PM
104632002-04-24 Pierre Muller <ics.u-strasbg.fr>
10464
10465 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10466 with fprintf_unfiltered (gdb_stderr,....
10467
25bf3106
PM
104682002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10469
10470 Fix PR gdb/508.
10471 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10472
24467a86
PM
104732002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10474
10475 * p-exp.y: Also use new prev_lexptr variable
10476 to improve error reporting. Based on Michael Snyder
10477 2002-04-24 dated patch to c-exp.y.
10478
95b80706
JT
104792002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10480
10481 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10482 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10483 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10484 to 0.
10485 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10486 and struct value.
10487 (FUNCTION_START_OFFSET): Remove.
10488 (BREAKPOINT): Ditto.
10489
e90cc612
JT
104902002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10491
10492 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10493 * NEWS: Ditto.
10494
6c72f9f9
JT
104952002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10496
10497 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10498 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10499 alpha_linux_pc_in_sigtramp.
10500 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10501 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10502 alpha_osf1_pc_in_sigtramp.
10503 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10504 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10505 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10506 alphafbsd_pc_in_sigtramp.
10507 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10508 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10509 alphanbsd_pc_in_sigtramp.
10510 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10511 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10512
5e4f3379
JT
105132002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10514
10515 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10516
da8ca43d
JT
105172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10518
10519 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10520 alphanbsd-tdep.c.
10521 (alphanbsd-nat.o): New dependency list.
10522 (alphanbsd-tdep.o): Ditto.
10523 * NEWS: Note new native NetBSD/alpha configuration.
10524 * alphanbsd-nat.c: New file.
10525 * alphanbsd-tdep.c: Ditto.
10526 * configure.host (alpha*-*-netbsd*): New host.
10527 * configure.tgt (alpha*-*-netbsd*): New target.
10528 * config/alpha/nbsd.mh: New file.
10529 * config/alpha/nbsd.mt: Ditto.
10530 * config/alpha/nm-nbsd.h: Ditto.
10531 * config/alpha/tm-nbsd.h: Ditto.
10532
36a6271d
JT
105332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10534
10535 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10536 (alpha-osf1-tdep.o): New dependency list.
10537 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10538 and skip_sigtramp_frame members.
10539 * alpha-linux-tdep.c: Include gdbcore.h.
10540 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10541 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10542 * alpha-osf1-tdep.c: New file.
10543 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10544 alpha-osf1-dep.c.
10545 (alpha_frame_past_sigtramp_frame): New function.
10546 (alpha_dynamic_sigtramp_offset): Ditto.
10547 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10548 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10549 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10550 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10551 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10552 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10553 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10554 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10555 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10556 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10557 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10558 to find_solib_trampoline_target.
10559 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10560 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10561 (SKIP_TRAMPOLINE_CODE): Remove.
10562 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10563 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10564 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10565 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10566 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10567 (PROC_SIGTRAMP_MAGIC): Ditto.
10568 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10569 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10570 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10571 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10572 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10573
2f4bc57b
JT
105742002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10575
10576 * NEWS: Note that Alpha targets are now multi-arch.
10577
665132f9
MS
105782002-04-24 Michael Snyder <msnyder@redhat.com>
10579
10580 * parser-defs.h (prev_lexptr): New external variable.
10581 * parse.c (parse_exp_1): Set prev_lexptr to null before
10582 calling the language-specific parser.
10583 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10584 (yyerror): Use prev_lexptr in error reporting.
10585
32872fa7
DJ
105862002-04-24 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10589 * gregset.h: If FILL_FPXREGSET is defined, provide
10590 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10591 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10592 is defined, call fill_fpxregset.
10593
57e76fac
MS
105942002-04-24 Roland McGrath <roland@frob.com>
10595
10596 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10597 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10598 (supply_gregset, supply_fpregset): New functions.
10599
10600 * gnu-nat.c (gnu_find_memory_regions): New function.
10601 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10602 (gnu_xfer_memory): Add a cast.
10603
f43845b3
MS
106042002-04-24 Michael Snyder <msnyder@redhat.com>
10605
361d1df0 10606 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10607 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10608 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10609 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10610 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10611 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10612
a0abec03
AC
10613Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10614
10615 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10616 NUM_PSEUDO_REGS can be used.
10617
d7bd68ca
AC
106182002-04-24 Andrew Cagney <ac131313@redhat.com>
10619
10620 * arch-utils.h: Update copyright.
10621
10622 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10623 * gdbarch.h, gdbarch.c: Re-generate.
10624
10625 * inferior.h (IN_SIGTRAMP): Delete definition.
10626 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10627 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10628
10629 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10630 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10631 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10632 (find_proc_framesize): Ditto.
10633 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10634 (alpha_init_extra_frame_info): Ditto.
10635 * infrun.c (handle_inferior_event): Ditto.
10636 (handle_inferior_event): Ditto.
10637 (check_sigtramp2): Ditto.
10638 * blockframe.c (create_new_frame): Ditto.
10639 (get_prev_frame): Ditto.
10640 * ppc-linux-tdep.c: Update comments.
10641 * i386-linux-tdep.c: Update comments.
10642 * breakpoint.c (bpstat_what): Update comment.
10643
4867e41e
DM
106442002-04-24 David S. Miller <davem@redhat.com>
10645
21d83aa5
DM
10646 * i960-tdep.c (register_in_window_p): New function.
10647 (i960_find_saved_register): Use it instead of
10648 REGISTER_IN_WINDOW_P.
10649 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10650
4867e41e
DM
10651 * symtab.h (find_stab_function_addr): Kill extern.
10652 * minsyms.c (find_stab_function_addr): Remove from here...
10653 * dbxread.c: ... to here, and mark it static.
10654
69cdf6a2
DM
106552002-04-20 David S. Miller <davem@redhat.com>
10656
10657 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10658 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10659
5a595886
DM
106602002-04-21 David S. Miller <davem@redhat.com>
10661
10662 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10663 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10664 (vx_write_register): Likewise.
10665
1da1a192
JB
106662002-04-23 J. Brobecker <brobecker@gnat.com>
10667
10668 * source.c (is_regular_file): New function.
10669 (openp): Check wether file to open is a regular file
10670 to avoid opening directories.
10671
baa6f10b
JT
106722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10673
10674 * findvar.c (extract_signed_integer): Cast printf argument
10675 to suppress format warning.
10676 (extract_unsigned_integer): Likewise.
10677 * infcmd.c (registers_info): Likewise.
10678 * top.c (get_prompt_1): Likewise.
10679 * valops.c (value_assign): Likewise.
10680 * valprint.c (print_decimal): Likewise.
10681
b2c4da81
L
106822002-04-22 H.J. Lu (hjl@gnu.org)
10683
10684 * c-exp.y (typebase): Support
361d1df0 10685
b2c4da81
L
10686 [long|long long|short] [signed|unsigned] [int|]
10687
10688 and
10689
10690 signed [long|long long|short] int
10691
f267bd6a
JT
106922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10693
10694 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10695 and vax-tdep.h.
10696 * vax-tdep.h: New file.
10697 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10698 Make several routines static.
10699 (vax_get_saved_register): New function.
10700 (vax_gdbarch_init): New function.
10701 (_initialize_vax_tdep): Register vax_gdbarch_init.
10702 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10703 Remove macros now under the control of gdbarch.
10704
da3c6d4a
MS
107052002-04-22 Michael Snyder <msnyder@redhat.com>
10706
11d3b27d
MS
10707 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10708 Some whitespace and coding standards tweaks.
da3c6d4a 10709
a33f7558
JT
107102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10711
10712 * vax-tdep.c: Include regcache.h.
10713 (vax_call_dummy_words): New.
10714 (sizeof_vax_call_dummy_words): New.
10715 (vax_fix_call_dummy): New function.
10716 (vax_saved_pc_after_call): Ditto.
10717 * config/vax/tm-vax.h: Don't include regcache.h.
10718 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10719 (CALL_DUMMY): Remove.
10720 (CALL_DUMMY_WORDS): Define.
10721 (SIZEOF_CALL_DUMMY_WORDS): Define.
10722 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10723
47a73475
MS
107242002-04-18 Michael Snyder <msnyder@redhat.com>
10725
10726 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10727
52efde73
JT
107282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10729
10730 * vax-tdep.c (vax_frame_chain): New function.
10731 (vax_push_dummy_frame): Ditto.
10732 (vax_pop_frame): Ditto.
10733 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10734 (FRAMELESS_FUNCTION_INVOCATION): Use
10735 generic_frameless_function_invocation_not.
10736 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10737 (POP_FRAME): Use vax_pop_frame.
10738
ea74468c
JT
107392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10740
10741 * vax-tdep.c (vax_store_struct_return): New function.
10742 (vax_extract_return_value): Ditto.
10743 (vax_store_return_value): Ditto.
10744 (vax_extract_struct_value_address): Ditto.
10745 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10746 vax_store_struct_return.
10747 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10748 (STORE_RETURN_VALUE): Use vax_store_return_value.
10749 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10750
5516aa92
JT
107512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10752
10753 * vax-tdep.c (vax_frame_saved_pc): New function.
10754 (vax_frame_args_address_correct): Ditto.
10755 (vax_frame_args_address): Ditto.
10756 (vax_frame_locals_address): Ditto.
10757 (vax_frame_num_args): Move code to be in proximity to
10758 other frame-related functions.
10759 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10760 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10761 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10762 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10763 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10764
36af0b35
L
107652002-04-22 H.J. Lu (hjl@gnu.org)
10766
10767 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10768 includedir.
10769
ab62c900
JT
107702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10771
10772 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10773 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10774 (FRAME_INIT_SAVED_REGS): New macro.
10775
7232b100
JT
107762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10777
10778 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10779
b70d2aee
JT
107802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10781
10782 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10783 where needed.
10784 (fetch_osf_core_registers): Likewise.
10785 (supply_gregset): Likewise.
10786
a0e8a2d1 107872002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10788
a0e8a2d1
JB
10789 * symfile.h (get_section_index): Define.
10790 * symfile.c (get_section_index): New function.
10791 * mdebugread.c (SC_IS_SBSS): New macro.
10792 (SC_IS_BSS): Return true for the scBss storage class only, as
10793 the scSBss storage class refers to the .sbss section.
10794 (parse_partial_symbols): Discard the symbols which associated
10795 section does not exist.
10796 Make sure to use the .sbss section index for symbols which
10797 storage class is scBss, rather than using the .bss section index.
10798
51eb8b08
JT
107992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10800
10801 * vax-tdep.c: Update copyright years.
10802 (vax_register_name): New function.
10803 (vax_register_byte): Ditto.
10804 (vax_register_raw_size): Ditto.
10805 (vax_register_virtual_size): Ditto.
10806 (vax_register_virtual_type): Ditto.
10807 * config/vax/tm-vax.h: Update copyright years.
10808 (REGISTER_NAMES): Remove.
10809 (REGISTER_NAME): Define.
10810 (REGISTER_BYTE): Use vax_register_byte.
10811 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10812 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10813 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10814
6cc1c0a8
AC
108152002-04-21 Andrew Cagney <ac131313@redhat.com>
10816
10817 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10818 declaration
10819 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10820
9319a2fe
DM
108212002-04-21 David S. Miller <davem@redhat.com>
10822
10823 * arch-utils.c (generic_prologue_frameless_p): Kill
10824 SKIP_PROLOGUE_FRAMELESS_P code.
10825 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10826 references.
10827 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10828 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10829 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10830 references.
10831 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10832 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10833 (sparc_gdbarch_init): Pass it to
10834 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10835
e9ed6d01
JT
108362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10837
10838 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10839 (alphabsd-nat.o): New dependency list.
10840
36012033
JT
108412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10842
10843 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10844 alphafbsd-tdep.c.
10845 (alpha-linux-tdep.o): New dependency list.
10846 (alphafbsd-tdep.o): Likewise.
10847
3379287a
JT
108482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10849
10850 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10851 to here...
10852 * alpha-tdep.c: ...from here.
10853 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10854
4bcbd6cb
JT
108552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10856
10857 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10858 prototype from here...
10859 * alpha-tdep.h: ...to here.
10860
b31da25e
AC
108612002-04-21 Andrew Cagney <ac131313@redhat.com>
10862
10863 * frame.h (selected_frame_level): Document as deprecated.
10864 (frame_relative_level): Declare.
10865 * stack.c (frame_relative_level): New function.
10866 (selected_frame_level): Document as deprecated.
10867 (select_frame): Do not set the selected_frame_level.
10868
10869 * stack.c (frame_info, record_selected_frame): Update.
10870 (frame_command, current_frame_command): Update.
10871 (up_silently_base, up_command, down_silently_base): Update.
10872 (down_command): Update.
10873 * inflow.c (kill_command): Update.
10874 * tracepoint.c (finish_tfind_command): Update.
10875 * corelow.c (core_open): Update.
10876 * thread.c (info_threads_command): Update.
10877 (do_captured_thread_select): Update.
10878 * infcmd.c (finish_command): Update.
10879 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10880
9c1d6fe5
JT
108812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10882
10883 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10884
ab89facf
AC
108852002-04-21 Andrew Cagney <ac131313@redhat.com>
10886
10887 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10888 type const.
10889
82a4efa1
JT
108902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10891
10892 * alphafbsd-tdep.c: Update copyright years. Include
10893 alpha-tdep.h.
10894 (alphafbsd_use_struct_convention): Make static.
10895 (alphafbsd_init_abi): New function.
10896 (_initialize_alphafbsd_tdep): New function.
10897 * config/alpha/tm-fbsd.h: Update copyright years.
10898 (USE_STRUCT_CONVENTION): Remove.
10899
44dffaac
JT
109002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10901
10902 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10903 an Alpha ABI variant.
10904 (alpha_abi_handler_list): Declare.
10905 (alpha_gdbarch_register_os_abi): New function.
10906 (alpha_gdbarch_init): Give registered ABI variant handlers a
10907 chance to tweak the gdbarch once we have set up defaults.
10908 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10909
65585be4
JT
109102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10911
10912 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10913 to standard_coerce_float_to_double.
10914 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10915
d9b023cc
JT
109162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10917
10918 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10919 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10920 from gdbarch_tdep rather than a constant.
10921 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10922 the default text address for all Alpha Unix ABIs.
10923 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10924 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10925
dc129d82
JT
109262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10927
10928 * alpha-tdep.h: New file. Includes several Alpha target constants
10929 taken from...
10930 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10931 let gdbarch deal with.
10932 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10933 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10934 to dependency list.
10935 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10936 Alpha target register names.
10937 * alphabsd-nat.c: Likewise.
10938 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10939 Alpha target register names. Make serveral routines static.
10940 (alpha_get_saved_register): New function.
10941 (alpha_abi_names): New.
10942 (process_note_abi_tag_sections): New function.
10943 (get_elfosabi): New function.
10944 (alpha_gdbarch_init): New function.
10945 (alpha_dump_tdep): New function.
10946 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10947
d49d1e0a
AC
109482002-04-21 Andrew Cagney <ac131313@redhat.com>
10949
10950 * frame.c (find_saved_register): Delete #ifdef
10951 HAVE_REGISTER_WINDOWS code.
10952 * config/sparc/tm-sparc.h: Update comments.
10953 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10954
92e8c9ed
AC
109552002-04-21 Andrew Cagney <ac131313@redhat.com>
10956
10957 * i960-tdep.c (i960_find_saved_register): New function.
10958 (i960_get_saved_register): New function.
10959 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10960 (i960_get_saved_register): Declare.
10961 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10962
e1925118
DM
109632002-04-20 David S. Miller <davem@redhat.com>
10964
10965 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10966
29673b29
AC
109672002-04-20 Andrew Cagney <ac131313@redhat.com>
10968
10969 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10970 instead of NUM_PSEUDO_REGS.
10971
6c86dcd5
DM
109722002-04-20 David S. Miller <davem@redhat.com>
10973
10974 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10975 GDB_MULTI_ARCH_PARTIAL
10976 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10977 define, let tm-sp64.h do it.
10978
aa40ec90
JT
109792002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10980
10981 * frame.c (find_saved_register): Avoid a NULL pointer
10982 dereference and actually walk the frame list.
10983
0f79675b
AC
109842002-04-20 Andrew Cagney <ac131313@redhat.com>
10985
10986 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10987 sorted in most most-recent-used order. Document.
10988 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10989
f91305dd 109902002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10991
10992 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10993 instead of ->prev.
10994 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10995 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10996 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10997 instead of ->prev.
10998
73d322b1
EZ
109992002-04-19 Elena Zannoni <ezannoni@redhat.com>
11000
11001 Fix PR gdb/471.
11002 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11003 (build_builtin_type_vec128): Ditto.
11004 (append_composite_type_field): Fix calculation of type length in
11005 union case.
11006
ccd9a834
EZ
110072002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11008
11009 * config/djgpp/README: Update.
11010
11011 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11012 compiler warnings.
11013
a57f9e49
JT
110142002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11015
11016 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11017 (alpha_setup_arbitrary_frame): ...to this.
11018 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11019 for alpha_setup_arbitrary_frame.
11020
f4f9705a
AC
110212002-04-18 Andrew Cagney <cagney@redhat.com>
11022
11023 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11024 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11025
f4f9705a
AC
11026 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11027 * target.h (memory_breakpoint_from_pc): Update declaration.
11028 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11029
11030 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11031 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11032 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11033 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11034 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11035 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11036 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11037 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11038 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11039 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11040 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11041 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11042
11043 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11044 const pointer.
11045 * monitor.c (monitor_insert_breakpoint): Ditto.
11046 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11047
11048 * config/mcore/tm-mcore.h: Update copyright.
11049 * mem-break.c: Ditto.
11050 * xstormy16-tdep.c: Ditto.
11051
29f319b8
PM
110522002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11053
11054 * p-exp.y: Add precedence rule for '^' token.
11055 This removes the shift/reduce conflicts.
11056 Remove the comment concerning these shift/reduce conflicts.
11057
ebeac11a
EZ
110582002-04-18 Elena Zannoni <ezannoni@redhat.com>
11059
11060 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11061 (registers_powerpc_nofp): New register set for processors
11062 without floating point unit.
11063
27c31547
DM
110642002-04-18 David S. Miller <davem@redhat.com>
11065
11066 * MAINTAINERS: Add myself to write-after-approval.
11067
47a73475
MS
110682002-04-17 Michael Snyder <msnyder@redhat.com>
11069
11070 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11071
953836b2
AC
110722002-04-17 Andrew Cagney <ac131313@redhat.com>
11073
11074 * rs6000-tdep.c (frame_initial_stack_address): Use
11075 frame_register_read to read the alloca_reg.
11076
8b0d4340
AC
110772002-04-17 Andrew Cagney <ac131313@redhat.com>
11078
11079 * frame.c (find_saved_register): Find saved registers in the next
11080 not prev frame.
11081 Fix PR gdb/365.
11082
d8864532
AC
110832002-04-17 Andrew Cagney <ac131313@redhat.com>
11084
11085 * gdbarch.sh (LANG): Set to ``c''.
11086
36cc83a3 110872002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11088
36cc83a3 11089 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11090
2f4150cc 110912002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11092
11093 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11094 Update copyright.
11095
628703c6 11096 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11097 Also fix PR gdb/391.
361d1df0 11098
56157b4a
AC
110992002-04-14 Andrew Cagney <ac131313@redhat.com>
11100
11101 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11102 * aclocal.m4, configure: Re-generate.
11103 Fix PR gdb/391.
361d1df0 11104
6d1e3329
EZ
111052002-04-14 Elena Zannoni <ezannoni@redhat.com>
11106
11107 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11108 instead of tm_print_insn.
11109
cb06fa07
EZ
111102002-04-14 Elena Zannoni <ezannoni@redhat.com>
11111
11112 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11113
f208ba17
AC
111142002-04-14 Andrew Cagney <ac131313@redhat.com>
11115
11116 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11117 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11118 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11119
20f01a46
DH
111202002-04-12 Don Howard <dhoward@redhat.com>
11121
11122 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11123 max_user_call_depth.
11124 (init_cmd_lists): Initialize the new value;
11125 * cli/cli-script.c (execute_user_command): Limit the call depth of
11126 user defined commands. This avoids a core-dump when user commands
11127 are infinitly recursive.
11128
a88376a3
KB
111292002-04-12 Kevin Buettner <kevinb@redhat.com>
11130
11131 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11132 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11133 from tdep struct instead of DEFAULT_LR_SAVE.
11134 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11135 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11136 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11137
f2172603
MS
111382002-04-12 Michael Snyder <msnyder@redhat.com>
11139
694f61fb 11140 * Remote.c: Spelling fix.
20fe79c8
MS
11141 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11142 If no symbol found for "sbrk", try "_sbrk".
11143 (make_output_phdrs): Use bfd_section_name.
11144 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11145 * eval.c: Indentation fix-ups.
169a7369
MS
11146 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11147 in case it gets applied to an address that is already
11148 in the instruction space.
de74f71f
MS
11149 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11150 * symfile.c: Fix indentation, long lines.
f2172603
MS
11151 * source.c: White space fix-up.
11152
cda5a58a
AC
111532002-04-12 Andrew Cagney <cagney@redhat.com>
11154
11155 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11156 * frame.c (frame_register_read): New function. Return non-zero on
11157 success.
11158 (read_relative_register_raw_bytes_for_frame): Delete.
11159 (read_relative_register_raw_bytes): Delete.
11160 * frame.h (frame_register_read): Declare.
11161 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11162 * sh-tdep.c: Ditto.
11163 * infcmd.c (do_registers_info): Ditto.
11164 * hppa-tdep.c: Ditto.
11165 * rs6000-tdep.c: Ditto.
11166 * h8500-tdep.c: Ditto.
11167 * mips-tdep.c: Ditto.
11168 * h8300-tdep.c: Ditto.
11169 * z8k-tdep.c: Ditto.
11170
2ea5f656
KB
111712002-04-12 Kevin Buettner <kevinb@redhat.com>
11172
11173 From Jimi X <jimix@watson.ibm.com>:
11174 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11175 64-bit SysV ABI.
11176
27b15785
KB
111772002-04-12 Kevin Buettner <kevinb@redhat.com>
11178
11179 From Jimi X <jimix@watson.ibm.com>:
11180 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11181 bfd info.
11182
5d57ee30
KB
111832002-04-12 Kevin Buettner <kevinb@redhat.com>
11184
11185 From Jimi X <jimix@watson.ibm.com>:
11186 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11187 register sets for these processor variants.
11188
bc1e36ca
DJ
111892002-04-11 Daniel Jacobowitz <drow@mvista.com>
11190
bc1e36ca
DJ
11191 * regformats/reg-ppc.dat: Support FPSCR.
11192
e3f36dbd
KB
111932002-04-11 Kevin Buettner <kevinb@redhat.com>
11194
11195 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11196 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11197 Add fpscr as an invalid/unfetchable register.
11198 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11199 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11200 (fill_fpregset): Add support for register fpscr.
11201 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11202 (fill_gregset): Account for the fact that register ``mq'' might
11203 not exist.
11204 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11205 (registers_power): Add fpscr to register set at slot 71.
11206 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11207 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11208
943c9c25
MS
112092002-04-11 Michael Snyder <msnyder@redhat.com>
11210
11211 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11212 * configure: Regenerate.
11213 * config.in: Regenerate.
11214 * acconfig.h: Add define for _SYSCALL32.
11215 * core-sol2.c: Remove #define _SYSCALL32.
11216 * solib-legacy.c: Remove #define _SYSCALL32.
11217
d8c0a2e7
AC
112182002-04-10 Andrew Cagney <ac131313@redhat.com>
11219
11220 * stack.c (select_frame): Cleanup internal error message, do not
11221 use %p.
11222
7cc19214
AC
112232002-04-10 Andrew Cagney <ac131313@redhat.com>
11224
11225 * stack.c (select_frame): Check that selected_frame and the
11226 specified level are as expected.
11227 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11228 Update copyright.
11229 * frame.h (struct frame_info): Add field `level'. Update
11230 copyright.
11231 Work-in-progress PR gdb/464.
11232
67a2b77e
AC
112332002-04-10 Andrew Cagney <ac131313@redhat.com>
11234
11235 * maint.c (maint_print_section_info): Rename print_section_info.
11236 (print_bfd_section_info, print_objfile_section_info): Update.
11237 * inferior.h (struct gdbarch): Add opaque declaration.
11238 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11239 * gdbarch.h: Regenerate.
11240
8cfda98c
ML
112412002-04-10 Michal Ludvig <mludvig@suse.cz>
11242
11243 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11244 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11245 (kernel_u_size): Added.
11246 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11247 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11248
ca439ad2 112492002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11250
ca439ad2
JI
11251 * valarith.c (find_size_for_pointer_math): New function, either returns
11252 the size for a pointer's target, returns 1 for void *, or errors for
11253 incomplete types.
11254 (value_add, value_sub): use find_size_for_pointer_math.
11255
2f2893d9
DJ
112562002-04-09 Daniel Jacobowitz <drow@mvista.com>
11257
11258 * linux-low.c (linux_look_up_symbols): New hook.
11259 (linux_target_ops): Add linux_look_up_symbols.
11260 * remote-utils.c (decode_address): New function.
11261 (look_up_one_symbol): New function.
11262 * server.c (handle_query): Call target look_up_symbols hook.
11263 * server.h (look_up_one_symbol): Add prototype.
11264 * target.h (struct target_ops): Add look_up_symbols hook.
11265
96cb11df
AC
112662002-04-09 Andrew Cagney <ac131313@redhat.com>
11267
11268 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11269 override FP_REGNUM with frame->fp. Update copyright.
11270 * parse.c (num_std_regs, std_regs): Delete.
11271 (target_map_name_to_register): Do not search std_regs. Update
11272 function description.
11273 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11274 declarations. Update copyright.
11275 Fix PR gdb/251.
361d1df0 11276
97658e92
DJ
112772002-04-09 Daniel Jacobowitz <drow@mvista.com>
11278
11279 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11280 after the last symbol in a block.
11281
6044e3eb
PM
112822002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11283
11284 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11285 is non zero as a found symbol.
11286
0406ec40
AC
112872002-04-08 Andrew Cagney <ac131313@redhat.com>
11288
11289 * findvar.c: Include "builtin-regs.h".
11290 (value_of_register): Call value_of_builtin_reg when applicable.
11291 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11292 (target_map_name_to_register): Call
11293 builtin_reg_map_name_to_regnum.
11294 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11295 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11296 (builtin_regs_h): Define.
11297 (builtin-regs.o): New target.
11298 (findvar.o): Add $(builtin_regs_h).
11299 * builtin-regs.c, builtin-regs.h: New files.
11300 * std-regs.c: New file.
11301 Partial fix for PR gdb/251.
11302
56a6dfb9
KB
113032002-04-08 Kevin Buettner <kevinb@redhat.com>
11304
11305 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11306 it's no longer required.
11307
3a808432
AC
113082002-04-08 Andrew Cagney <ac131313@redhat.com>
11309
11310 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11311
7c40d541
KB
113122002-04-08 Kevin Buettner <kevinb@redhat.com>
11313
11314 From Jimi X <jimix@watson.ibm.com>:
11315 * rs6000-tdep.c (rs6000_software_single_step): Use
11316 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11317 and size. Use target_insert_breakpoint() and
11318 target_remove_breakpoint() to insert and remove breakpoints
11319 instead of explicit memory reads and writes.
11320
cc9836a8
KB
113212002-04-08 Kevin Buettner <kevinb@redhat.com>
11322
11323 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11324 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11325 ELF_OBJECT_FORMAT ifdef.
11326
7495d1dc
KB
113272002-04-08 Kevin Buettner <kevinb@redhat.com>
11328
11329 From Jimi X <jimix@watson.ibm.com>:
11330 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11331
4288e836
KB
113322002-04-08 Kevin Buettner <kevinb@redhat.com>
11333
11334 From Jimi X <jimix@watson.ibm.com>:
11335 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11336 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11337
a4e4e501
MK
113382002-04-07 Mark Kettenis <kettenis@gnu.org>
11339
11340 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11341 s/asprintf/xasprintf/.
11342 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11343
006defba
AC
113442002-04-07 Andrew Cagney <ac131313@redhat.com>
11345
11346 I believe Jeff Law denies responsability for this one:
11347 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11348 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11349 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11350 Work-around for PR gdb/366.
11351
7aa83cac
EZ
113522002-04-07 Elena Zannoni <ezannoni@redhat.com>
11353
11354 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11355 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11356 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11357
cf1fcca1
EZ
113582002-04-07 Elena Zannoni <ezannoni@redhat.com>
11359
11360 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11361 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11362 information.
11363
3f289e6f
AC
113642002-04-07 Andrew Cagney <ac131313@redhat.com>
11365
11366 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11367 maintainer.
11368
129188f6
AC
113692002-04-07 Andrew Cagney <ac131313@redhat.com>
11370
11371 * README (Reporting Bugs in GDB): Document the bug web page as the
11372 prefered way of submitting bugs.
11373 Fix PR gdb/402.
11374
1200cd6e
AC
113752002-04-06 Andrew Cagney <ac131313@redhat.com>
11376
11377 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11378 -1. Update comment.
11379 * gdbarch.h, gdbarch.c: Re-generate.
11380
2853c33c
AS
113812002-04-07 Andreas Schwab <schwab@suse.de>
11382
11383 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11384 buffer to regcache_collect.
11385
c2169756
AC
113862002-04-06 Andrew Cagney <ac131313@redhat.com>
11387
11388 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11389 * gdbarch.c, gdbarch.h: Re-generate.
11390
25f1b008
AC
113912002-04-06 Andrew Cagney <ac131313@redhat.com>
11392
11393 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11394 declaration. Fix -Werror.
11395
59263426
DJ
113962002-04-05 Daniel Jacobowitz <drow@mvista.com>
11397
11398 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11399 * gdbarch.c: Regenerate.
11400
f5db4da3
MS
114012002-04-05 Michael Snyder <msnyder@redhat.com>
11402
80f8a6eb
MS
11403 * breakpoint.c (clear_command): Rewrite middle section to
11404 combine two loops with identical control conditions.
11405 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11406 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11407
ad3dcc5c
L
114082002-04-05 H.J. Lu (hjl@gnu.org)
11409
11410 * solib-svr4.c (bkpt_names): Add "__start".
11411
f32e7a74
AC
114122002-04-04 Andrew Cagney <ac131313@redhat.com>
11413
11414 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11415 as test for 64 bit target.
11416
8227c0ff
AC
114172002-04-05 Andrew Cagney <ac131313@redhat.com>
11418
11419 * h8500-tdep.c (h8500_write_fp): Delete function.
11420 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11421 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11422 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11424 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11425 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11426 (s390_write_fp):
11427 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11428 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11429 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11430 (d10v_write_fp): Delete function.
11431 * inferior.h (write_fp, generic_target_write_fp): Delete
11432 declarations.
11433 * regcache.c (generic_target_write_fp): Delete function.
11434 (write_fp): Delete function.
11435 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11436 * gdbarch.h, gdbarch.c: Regenerate.
11437 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11438 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11439 (sparc64_write_fp): Delete declaration.
11440 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11441 (h8500_write_fp): Delete declaration.
11442
2757dd86
AC
114432002-04-04 Andrew Cagney <ac131313@redhat.com>
11444
11445 * sparc-tdep.c (sparc64_write_fp): Delete.
11446 (sparc_push_dummy_frame): Replace write_fp call with code to store
11447 the FP directly.
11448 (sparc_gdbarch_init): Do not initialize write_fp.
11449
c69255e1
KB
114502002-04-05 Kevin Buettner <kevinb@redhat.com>
11451
11452 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11453 clause.
11454
ae767bfb
JB
114552002-03-29 Jim Blandy <jimb@redhat.com>
11456
11457 * stack.c (get_selected_block): Add new argument `addr_in_block',
11458 used to return the exact code address we used to select the block,
11459 not just the block.
11460 * blockframe.c (get_frame_block, get_current_block): Same.
11461 * frame.h (get_frame_block, get_current_block,
11462 get_selected_block): Update declarations.
11463 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11464 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11465
84d2ac95
MS
114662002-04-05 Michael Snyder <msnyder@redhat.com>
11467
11468 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11469 warning message.
11470
596aa3bf
JB
114712002-04-05 J. Brobecker <brobecker@gnat.com>
11472
11473 * utils.c (xfullpath): New function.
11474 * defs.h (xfullpath): Add declaration.
11475 * source.c (openp): Use xfullpath in place of gdb_realpath to
11476 avoid resolving the basename part of filenames when the
11477 associated file is a symbolic link. This fixes a potential
11478 inconsistency between the filenames known to GDB and the
11479 filenames it prints in the annotations.
11480 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11481 to be able to match a filename with either the real filename, or
11482 the name of any symbolic link to this file.
11483 (lookup_partial_symtab): Ditto.
11484
c02f5703
MS
114852002-04-04 Michael Snyder <msnyder@redhat.com>
11486
11487 * breakpoint.c: Add support for hardware breakpoints in overlays.
11488 (overlay_events_enabled): New state variable.
11489 (insert_breakpoints): Use overlay_events_enabled to decide
11490 whether to attempt to set a breakpoint at the overlay load addr.
11491 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11492 (remove_breakpoint): Use overlay_events_enabled to decide
11493 whether breakpoints need to be removed from overlay load addr.
11494 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11495 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11496 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11497 disable_overlay_breakpoints): Update overlay_events_enabled.
11498
5fb290d7
DJ
114992002-04-04 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * dwarf2read.c (struct function_range): New.
11502 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11503 (check_cu_functions): New.
11504 (read_file_scope): Initialize global function lists.
11505 Call dwarf_decode_line after processing children.
11506 (read_func_scope): Add to global function list.
11507 (dwarf_decode_lines): Call check_cu_functions everywhere
11508 record_line is called. Call record_line with a linenumber
11509 of 0 to mark sequence ends.
11510
7b3fabf0
ML
115112002-04-04 Michal Ludvig <mludvig@suse.cz>
11512
361d1df0 11513 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11514 change sync with glibc.
11515
bce58c09
JB
115162002-04-03 Jim Blandy <jimb@redhat.com>
11517
11518 * configure.in: Call AC_C_INLINE.
11519 * configure: Regenerated.
361d1df0 11520
2fccf04a
DJ
115212002-04-01 Daniel Jacobowitz <drow@mvista.com>
11522
11523 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11524 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11525
2d1bfe2e
MK
115262002-03-31 Mark Kettenis <kettenis@gnu.org>
11527
a5941fbf
MK
11528 * NEWS: Mention gcore support on FreeBSD/i386.
11529
a90cd31d
MK
11530 * fbsd-proc.c: New file.
11531 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11532 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11533
2d1bfe2e
MK
11534 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11535 while statement.
11536
9eb6e5a1
JB
115372002-03-29 Jim Blandy <jimb@redhat.com>
11538
11539 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11540 unescaped newlines in string literals, but newer ones don't. So
11541 escape them.
11542
f02df580
MS
115432002-03-26 Michael Snyder <msnyder@redhat.com>
11544 Andrew Cagney <cagney@redhat.com>
11545
361d1df0 11546 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11547 restore file to memory.
11548 * cli/cli-dump.h: New file.
11549 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11550 * NEWS: Mention new commands.
f02df580 11551
109f874e
MS
115522002-03-28 Michael Snyder <msnyder@redhat.com>
11553
11554 * symfile.c (symbol_file_add): Move test for null symbols to later.
11555
520f6ade
AC
115562002-03-27 Andrew Cagney <ac131313@redhat.com>
11557
11558 From veksler at il.ibm.com:
11559 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11560 the xstrduped original path.
11561 Fix PR gdb/417.
11562
d4654627
MS
115632002-03-27 Michael Snyder <msnyder@redhat.com>
11564
11565 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11566 * infcmd.c (_initialize_infcmd): Ditto.
11567 * language.c (_initialize_language): Ditto.
11568 * symfile.c (_initialize_symfile): Ditto.
11569 * top.c (_init_main): Ditto.
11570 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11571
6be8bc0c
EZ
115722002-03-27 Elena Zannoni <ezannoni@redhat.com>
11573
11574 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11575 vector registers handling.
11576 (skip_prologue): Handle new AltiVec instructions. Fill in new
11577 fields of frame data.
11578 (frame_get_saved_regs): Fill in information for AltiVec registers.
11579
12af6855
JB
115802002-03-27 Jim Blandy <jimb@redhat.com>
11581
11582 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11583 a function; leave this macro here to invoke that function.
11584 (symbol_init_mangled_name): Declaration for that function.
11585 * symtab.c (symbol_init_mangled_name): New function.
11586
dc672865
AC
115872002-03-27 Andrew Cagney <ac131313@redhat.com>
11588
11589 * valarith.c: Replace strerror with safe_strerror.
11590 * tracepoint.c: Ditto.
11591 * lin-lwp.c: Ditto.
11592 * go32-nat.c: Ditto.
11593 * inflow.c: Ditto.
11594 * gnu-nat.c: Ditto.
11595
d96429cd
AS
115962002-03-27 Andreas Schwab <schwab@suse.de>
11597
11598 * event-top.c (command_line_handler): Remove useless if.
11599
7e336ba1
AJ
116002002-03-27 Andreas Jaeger <aj@suse.de>
11601
11602 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11603 comment.
11604
de220d0f
ML
116052002-03-27 Michal Ludvig <mludvig@suse.cz>
11606
11607 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11608 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11609 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11610 (x86_64_linux_dr_get_status, supply_gregset),
11611 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11612 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11613 (x86_64_register_info_table): Add.
11614 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11615 (x86_64_register_raw_size, x86_64_register_virtual_type),
11616 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11617 general x86_64_register_info_table.
11618 (i386_gdbarch_init): gdbarch_register_bytes is now set
11619 dynamicaly during initialization.
11620 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11621 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11622
0e98d0a7
DJ
116232002-03-27 Daniel Jacobowitz <drow@mvista.com>
11624
11625 * gdbserver/server.c (main): Call target_signal_to_host_p
11626 and target_signal_to_host on signals received from the remote.
11627 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11628 target_signal_from_host on signals sent to the remote.
11629 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11630 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11631
3130066b
DJ
116322002-03-27 Daniel Jacobowitz <drow@mvista.com>
11633
11634 * signals/signals.c: Include "server.h" in gdbserver build.
11635 (target_signal_from_name): Don't use STREQ.
11636 (_initialize_signals): Likewise. Don't include function in
11637 gdbserver build.
11638
9aedf4f4
DJ
116392002-03-27 Daniel Jacobowitz <drow@mvista.com>
11640
11641 * signals.c: Moved to...
11642 * signals/signals.c: Here.
7e336ba1 11643 * Makefile (signals.o): Update.
9aedf4f4 11644
3fa41cdb
JL
116452002-03-26 Jeff Law (law@redhat.com)
11646
11647 * somread.c (som_symtab_read): Remove some commented out code and
11648 updated related comments. Do not set the minimal symbol table to
11649 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11650 in a dynamic executable.
11651 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11652 where we are unable to find the minimal symbol for the given
11653 PC value.
11654
ee677e8d
MS
116552002-03-25 Jeff Law (law@redhat.com)
11656
11657 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11658
e76e1718
ML
116592002-03-25 Michal Ludvig <mludvig@suse.cz>
11660
11661 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11662
18a642a1
AC
116632002-03-23 Andrew Cagney <ac131313@redhat.com>
11664
11665 * command.h: Update copyright.
11666 (struct cmd_list_element): Replace definition with opaque
11667 declaration.
11668 (enum cmd_types): Document that it will eventually be moved to
11669 cli/cli-decode.h
11670 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11671 (MALLOCED_REPLACEMENT): Delete macro.
11672 * Makefile.in (cli_decode_h): Add $(command_h).
11673 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11674 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11675 * completer.c: Include "cli/cli-decode.h".
11676 * maint.c: Include "cli/cli-decode.h".
11677 * cli/cli-decode.h: Include "command.h".
11678 (enum command_class): Delete.
11679 (enum cmd_types): Comment out.
11680 (enum cmd_auto_boolean): Delete.
11681 (enum var_types): Delete.
11682
b2875cc0
AC
116832002-03-23 Andrew Cagney <ac131313@redhat.com>
11684
11685 * cli/cli-decode.c: Include "gdb_assert.h".
11686 (add_set_or_show_cmd): New static function.
11687 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11688 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11689 all fields, such as func, from the set command.
11690
3b45974e
AC
116912002-03-23 Andrew Cagney <ac131313@redhat.com>
11692
11693 * MAINTAINERS (sh-elf): Change warning flag to -w.
11694
823ca731
AC
116952002-03-23 Andrew Cagney <cagney@redhat.com>
11696
11697 * defs.h (error): Add printf format attribute.
11698 * thread-db.c (thread_from_lwp): Fix error format string.
11699 * stack.c (parse_frame_specification): Ditto.
11700 * cli/cli-decode.c (undef_cmd_error): Ditto.
11701 * scm-lang.c (scm_lookup_name): Ditto.
11702 * tracepoint.c (trace_error): Ditto.
11703 * remote-utils.c (usage): Ditto.
11704 * remote.c (compare_sections_command): Ditto.
11705 Fix PR gdb/328.
11706
0e101458
AC
117072002-03-22 Andrew Cagney <ac131313@redhat.com>
11708
11709 * gdbtypes.c (append_composite_type_field): New function.
11710 (init_composite_type): New function.
11711 * gdbtypes.h (append_composite_type_field): Declare.
11712 (init_composite_type): Ditto.
11713
8e0662df
EZ
117142002-03-22 Elena Zannoni <ezannoni@redhat.com>
11715
11716 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11717 function.
8e0662df
EZ
11718 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11719 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11720 structure returning convention for SYSV ABI case, but not
11721 for GNU/Linux, FreeBSD, or NetBSD.
11722
3121eff0
DJ
117232002-03-22 Daniel Jacobowitz <drow@mvista.com>
11724
11725 * symtab.h (lookup_block_symbol): Add mangled_name argument
11726 to prototype.
11727
11728 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11729 with new mangled_name argument.
11730 * linespec.c (decode_line_1): Likewise.
11731 * valops (value_of_this): Likewise.
11732 * symtab.c (lookup_transparent_type): Likewise.
11733 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11734 (lookup_symbol): If we are given a mangled name, pass it down
11735 to lookup_symbol_aux.
11736 (lookup_block_symbol): If we are given a mangled name to check
11737 against, only return symbols which match it.
11738
349b409f
CF
117392002-03-22 Christopher Faylor <cgf@redhat.com>
11740
11741 * win32-nat.c (child_create_inferior): Check for proper shell to use
11742 here, in case the user changes it on the fly.
11743 (_initialize_inftarg): Remove shell path considerations.
11744
2a873819
EZ
117452002-03-21 Elena Zannoni <ezannoni@redhat.com>
11746
11747 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11748 for gdbarch_max_register_raw_size and max_register_virtual_size.
11749 Adjust copyright year.
11750
a1b9830c
DJ
117512002-03-21 Daniel Jacobowitz <drow@mvista.com>
11752
11753 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11754 in a function to cover the entire beginning of the function
11755 as well if it does not already.
11756
8b5790f2
TR
117572002-03-21 Tom Rix <trix@redhat.com>
11758
11759 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11760 (rs6000_ptrace64): Renamed from ptrace64.
11761
bdbe5747
MH
117622002-03-20 Martin M. Hunt <hunt@redhat.com>
11763
11764 * gdbserver/remote-utils.c (remote_open): Don't call
11765 getprotobyname, we're all using TCP here so just use
11766 IPPROTO_TCP.
7e336ba1 11767 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11768
117692002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11770
bdbe5747
MH
11771 * regcache.c (_initialize_regcache): No need to call
11772 build_regcache() at this time; it gets called whenever
11773 the gdbarch changes.
11774
7781cd62
DB
117752002-03-20 David O'Brien <obrien@FreeBSD.org>
11776
11777 * sparc-nat.c: Include sys/param.h where possible.
11778
f65ca430
DJ
117792002-03-20 Daniel Jacobowitz <drow@mvista.com>
11780
11781 Fix PR gdb/422.
11782 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11783 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11784 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11785 complex types.
11786 * stabsread.c (rs6000_builtin_type): Likewise.
11787 (read_sun_floating_type): Likewise.
11788
0c867556
PS
117892002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11790
11791 * stabsread.c (read_member_functions): Remove skip code for duplicate
11792 constructor/destructor methods. Use standard parsing for these
11793 methods and just do not chain them to the list of methods after
11794 parsing.
11795
12b9c64f
AO
117962002-03-19 Alexandre Oliva <aoliva@redhat.com>
11797
11798 * coffread.c: Remove redundant static declarations. Replace
11799 occurrences of `PTR' with `void *'.
11800 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11801 * top.h (quit_cover): Likewise.
11802 * defs.h (catch_errors): Likewise.
11803
349c5d5f
AC
118042002-03-18 Andrew Cagney <ac131313@redhat.com>
11805
11806 * defs.h (XMALLOC): Define.
11807 * gdb-events.sh (XMALLOC): Delete macro.
11808 * gdb-events.c, gdb-events.h: Regenerate.
11809 * gdbarch.sh (XMALLOC): Delete macro.
11810 * gdbarch.c: Regenerate.
11811 * serial.c (XMALLOC): Delete macro.
11812 * ui-file.c (XMALLOC): Ditto.
11813 * ser-unix.h (XMALLOC): Ditto.
11814 * sh-tdep.c (XMALLOC): Ditto.
11815 * ui-out.c (XMALLOC): Ditto.
11816 * utils.c (XMALLOC): Ditto.
11817 * i386-tdep.c (XMALLOC): Ditto.
11818 * gdb-events.c (XMALLOC): Ditto.
11819 * d10v-tdep.c (XMALLOC): Ditto.
11820 * cli-out.c (XMALLOC): Ditto.
11821
11822 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11823 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11824 * ui-file.c, ui-out.c: Ditto.
11825
7d0766f3
AC
118262002-03-18 Andrew Cagney <ac131313@redhat.com>
11827
11828 * command.h (struct cmd_list_element): Add field context.
11829 (set_cmd_context, get_cmd_context): Declare.
11830 * cli/cli-decode.h: Ditto.
11831 * cli/cli-decode.c (get_cmd_context): New function.
11832 (set_cmd_context): New function.
11833 (add_cmd): Initialize context.
11834 Part of fixing PR gdb/145 and PR gdb/146.
11835
5913bcb0
AC
118362002-03-17 Andrew Cagney <ac131313@redhat.com>
11837
1868c04e
AC
11838 * cli/cli-decode.c (cmd_type): New function.
11839 * command.h (cmd_type): Declare.
11840 * infrun.c (set_schedlock_func): Call function cmd_type.
11841 * kod.c (kod_set_os): Call cmd_type.
11842 * cris-tdep.c (cris_version_update): Use function cmd_type.
11843 (cris_mode_update, cris_abi_update): Ditto.
11844
5913bcb0
AC
11845 * command.h: (execute_cmd_post_hook): Declare.
11846 (execute_cmd_pre_hook): Declare.
11847 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11848 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11849 functions. Execute pre/post hook while ensuring that afterwords
11850 hook_in is cleared.
11851 * top.c (execute_command): Use execute_cmd_post_hook, and
11852 execute_cmd_pre_hook to execute pre/post commands.
11853 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11854 hook_stop_stub.
11855 (hook_stop_stub): Call execute_cmd_pre_hook.
11856
b51450c9
AC
118572002-03-17 Andrew Cagney <ac131313@redhat.com>
11858
11859 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11860 set'' and this leads to a core dump. Move xstrdup of
11861 operating_system to after check that it is not NULL.
11862
f66c9f11
AC
118632002-03-17 Andrew Cagney <ac131313@redhat.com>
11864
8e694ecf
AC
11865 * kod.c (kod_set_os): Remove unnecessary check that
11866 ``command->type'' is set_cmd.
11867
f66c9f11
AC
11868 * valprint.c (set_input_radix): Use input_radix.
11869 (set_output_radix): Use output_radix.
11870 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11871 isn't reverted.
11872
9d01611c
AC
118732002-03-16 Andrew Cagney <ac131313@redhat.com>
11874
11875 * value.h (struct value): Delete field ``substring_addr''. Change
11876 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11877 force_core_addr_align and force_pointer_aligh.
11878
11879 * value.h (struct value): Fix typo in above change.
9d01611c 11880
4156bb53
PS
118812002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11882
11883 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11884 to fix internal_error from ``maintenance print architecture''.
11885
0e5e3ea6
PS
118862002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11887
11888 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11889 for gcc versions after gcc-2.8.1.
11890
9b013045
PS
118912002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11892
11893 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11894 for method resolution. Restore adjustment of ``this'' pointer after
11895 calling value_struct_elt, which was accidentally removed during the
11896 HP merge.
11897
376c9600
AC
118982002-03-15 Andrew Cagney <ac131313@redhat.com>
11899
11900 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11901 value_of_register.
11902 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11903 get_saved_register.
11904 * value.h (value_of_register): Update.
11905
a4db0f07
RH
119062002-03-14 Richard Henderson <rth@redhat.com>
11907
11908 * configure.in: Detect declaration for canonicalize_file_name.
11909 * utils.c (canonicalize_file_name): Declare, if needed.
11910 (gdb_realpath): Prefer realpath if available and usable.
11911 * config.in, configure: Rebuild.
11912
96383835
RH
119132002-03-14 Richard Henderson <rth@redhat.com>
11914
11915 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11916 a constant array bound.
11917
11918 * MAINTAINERS: Add myself to write-after-approval.
11919
75245b24
MS
119202002-03-14 Michael Snyder <msnyder@redhat.com>
11921
11922 * symfile.c (syms_from_objfile): Return immediately if no syms.
11923 (symbol_file_add): Return immediately if no syms.
11924 (find_sym_fns): Return immediately if no syms.
11925
e641a1ca
ML
119262002-03-13 Michal Ludvig <mludvig@suse.cz>
11927
11928 * gdbserver/remote-util.c (remote_open): Print remote-side's
11929 IP address when remote debugging over the network.
7e336ba1 11930
df08bfec
DB
119312002-03-12 David O'Brien <obrien@FreeBSD.org>
11932
11933 * config/sparc/fbsd.mh: Fix copyright.
11934 * config/sparc/fbsd.mt: Likewise.
11935
9a57864f
RE
119362002-03-11 Richard Earnshaw <rearnsha@arm.com>
11937
11938 * MAINTAINERS: Fix typo in name of gdb warnings option.
11939 (x86-64): Fix formating so that this can be parsed by awk.
11940
dd7bf85e
DJ
119412002-03-10 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11944 * defs.h: Include "gdb/signals.h".
11945 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11946
33a0a2ac
ML
119472002-03-10 Michal Ludvig <mludvig@suse.cz>
11948
11949 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11950 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11951 from x86-64-tdep.h
11952
dd824b04
DJ
119532002-03-10 Daniel Jacobowitz <drow@mvista.com>
11954 Don Howard <dhoward@redhat.com>
11955
11956 * mips-tdep.c (ST0_FR): Define.
11957 (mips2_fp_compat): New function, temporarily disabled.
11958 (mips_read_fp_register_single): New function.
11959 (mips_read_fp_register_double): New function.
11960 (mips_print_register): Use them.
11961 (do_fp_register_row): Likewise.
11962
6a41ff59
AC
119632002-03-09 Andrew Cagney <ac131313@redhat.com>
11964
11965 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11966 approval''.
11967
4ea09c10
PS
119682002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11969
11970 * stabsread.c (read_member_functions): Fix is_stub test for
11971 static member functions, improve comment.
11972
6ccc741d
RE
119732002-03-07 Richard Earnshaw <rearnsha@arm.com>
11974
11975 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11976 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11977 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11978 commands that set boolean values.
11979 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11980 (arm_rdi_resume): Always initialize PC.
11981 (arm_rdi_open): Don't use rslt as a boolean.
11982 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11983 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11984 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11985 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11986
438013df
AO
119872002-03-06 Alexandre Oliva <aoliva@redhat.com>
11988
11989 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11990 * configure: Rebuilt.
11991
70ed8774
SC
119922002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11993
11994 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11995 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11996
5ba2abeb
AC
119972002-03-06 Andrew Cagney <ac131313@redhat.com>
11998
11999 * cli/cli-decode.c (set_cmd_completer): New function.
12000 * command.h (set_cmd_completer): Declare.
12001 * cli/cli-decode.h (set_cmd_completer): Ditto.
12002
12003 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12004 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12005 * win32-nat.c (_initialize_inftarg): Ditto.
12006 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12007 * proc-api.c (_initialize_proc_api): Ditto.
12008 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12009 * source.c (_initialize_source): Ditto.
12010 * exec.c (_initialize_exec): Ditto.
12011 * solib.c (_initialize_solib): Ditto.
12012 * top.c (init_main): Ditto.
12013 * tracepoint.c (_initialize_tracepoint): Ditto.
12014 * symfile.c (_initialize_symfile): Ditto.
12015 * printcmd.c (_initialize_printcmd): Ditto.
12016 * infcmd.c (_initialize_infcmd): Ditto.
12017 * corefile.c (_initialize_core): Ditto.
12018
f779ca99
AC
120192002-03-05 Andrew Cagney <ac131313@redhat.com>
12020
12021 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12022
01a3934b
AC
120232002-03-05 Andrew Cagney <ac131313@redhat.com>
12024
12025 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12026
37057839
AC
120272002-03-05 Andrew Cagney <ac131313@redhat.com>
12028
12029 * NEWS: Update headings, 5.2 has branched.
12030
c6ecbae5
DJ
120312002-03-04 Daniel Jacobowitz <drow@mvista.com>
12032
12033 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12034 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12035 (register_addr, REGISTER_RAW_SIZE): Likewise.
12036 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12037 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12038
e9f30c21
ML
120392002-03-03 Michal Ludvig <mludvig@suse.cz>
12040
12041 * MAINTAINERS (x86-64): Add myself.
12042 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12043 changed value_ptr -> struct value *
12044
54394ac3
DB
120452002-03-01 David O'Brien <obrien@FreeBSD.org>
12046
12047 * configure.host (sparc64-*-freebsd): Add.
12048 * configure.tgt: Likewise.
12049 * config/sparc/fbsd.mh: New file.
12050 * config/sparc/fbsd.mt: Likewise.
12051 * config/sparc/nm-fbsd.h: Likewise.
12052 * config/sparc/tm-fbsd.h: Likewise.
12053
bfe95955
DJ
120542002-03-01 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12057 regformats/reg-s390x.dat.
12058
f33c6cbf
AC
120592002-03-01 Andrew Cagney <ac131313@redhat.com>
12060
12061 * utils.c: Add FIXME explaining true/false problem.
12062
5ecaa7dd
AC
120632002-02-28 Andrew Cagney <ac131313@redhat.com>
12064
12065 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12066
2a251cc2
MC
120672002-02-28 Michael Chastain <mec@shout.net>
12068
12069 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12070
6a8031a3 120712002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12072
12073 * gdbserver/linux-s390-low.c: New file.
12074 * regformats/reg-s390.dat: New file.
12075 * regformats/reg-s390x.dat: New file.
12076 * gdbserver/configure.srv: Add S/390.
12077 * gdbserver/Makefile.in: Add S/390.
12078 * configure.tgt: Enable gdbserver for S/390.
12079
ac469903
EZ
120802002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12081
12082 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12083 first line of the doc string for "info dos", except at the end of
12084 the sentence, since the short help stops at the first period.
12085
985cb1a3
JM
120862002-02-28 Jason Merrill <jason@redhat.com>
12087
12088 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12089
c570663e
FF
120902002-02-27 Fred Fish <fnf@redhat.com>
12091
12092 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12093 comment (dumy -> dummy).
12094
43630227
PS
120952002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12096
12097 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12098
b84911e8
RB
120992002-02-27 Rodney Brown <rbrown64@csc.com.au>
12100
12101 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12102
58caa3dc
DJ
121032002-02-27 Daniel Jacobowitz <drow@mvista.com>
12104
12105 * gdbserver/acconfig.h: New file.
12106 * gdbserver/i387-fp.c: New file.
12107 * gdbserver/i387-fp.h: New file.
12108 * gdbserver/linux-x86-64.c: New file.
12109 * regformats/reg-x86-64.dat: New file.
12110 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12111 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12112 * gdbserver/configure.in: Add support for regsets.
12113 * gdbserver/config.in: Regenerate.
12114 * gdbserver/configure: Regenerate.
12115 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12116 * gdbserver/linux-low.h: New file.
12117 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12118 for regsets.
12119 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12120 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12121 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12122 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12123 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12124 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12125 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12126 "i387-fp.h". Add PTRACE_GETREGS and friends.
12127 * gdbserver/regcache.c (supply_register): New function.
12128 (supply_register_by_name): New function.
12129 (collect_register): New function.
12130 (collect_register_by_name): New function.
12131
93652174
DJ
121322002-02-27 Daniel Jacobowitz <drow@mvista.com>
12133
12134 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12135 (config.status): Add configure.srv dependency.
12136 (server_h): Add config.h dependency.
12137
a02e4a61
DJ
121382002-02-27 Daniel Jacobowitz <drow@mvista.com>
12139
12140 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12141 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12142 * gdbserver/configure.srv: Change i386-*-linux* to use
12143 reg-i386-linux.o.
12144
ce0eebec
AC
121452002-02-26 Andrew Cagney <ac131313@redhat.com>
12146
12147 * x86-64-tdep.c: Re-indent. Update copyright date.
12148
82dbc5f7
AC
121492002-02-26 Andrew Cagney <ac131313@redhat.com>
12150
12151 From Michal Ludvig <mludvig@suse.cz>:
12152 * x86-64-tdep.c (value.h): Delete.
12153 (gdb_assert.h): Include.
12154 (x86_64_register_convert_to_virtual,
12155 x86_64_register_convert_to_raw ): Add check which lets only
12156 floating-point values to be converted.
12157 (value_push): Delete.
12158 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12159 (i386_gdbarch_init): Number of register_bytes fixed.
12160
e4621584
AC
121612002-02-26 Andrew Cagney <ac131313@redhat.com>
12162
12163 * MAINTAINERS: Add x86-64 target.
12164
81a9a963
AC
121652002-02-26 Andrew Cagney <ac131313@redhat.com>
12166
12167 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12168 * osfsolib.c (solib_map_sections): Ditto.
12169 * irix5-nat.c (solib_map_sections): Ditto.
12170 * corelow.c (gdb_check_format): Ditto.
12171 * symfile.c (symfile_bfd_open): Ditto.
12172 * solib.c (solib_map_sections): Ditto.
12173 Fix PR gdb/354.
7e336ba1 12174
0f017ab9
AC
121752002-02-26 Andrew Cagney <ac131313@redhat.com>
12176
12177 * remote.c (_initialize_remote): By default, disable ``e'' and
12178 ``E'' step out-of-range packets.
12179
75738c29
AS
121802002-02-26 Andreas Schwab <schwab@suse.de>
12181
12182 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12183 m68k_linux_frame_saved_pc.
12184 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12185 in_sigtramp.
12186 (SIGCONTEXT_PC_OFFSET): Remove.
12187 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12188 m68k_linux_sigtramp_saved_pc): New functions.
12189 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12190 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12191 (UCONTEXT_PC_OFFSET): Define.
12192 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12193 non-RT and RT signal trampolines.
12194
7e8ed687
RE
121952002-02-26 Richard Earnshaw <rearnsha@arm.com>
12196
12197 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12198 (TARGET_NBPG, STACK_END_ADDR): Delete
12199 (VARIABLES_INSIDE_BLOCK): Delete.
12200
6972bc8b
AC
122012002-02-25 Andrew Cagney <ac131313@redhat.com>
12202
12203 * utils.c (perror_with_name): Make string parameter constant.
12204 (print_sys_errmsg): Ditto.
12205 (query): Ditto.
12206 * defs.h (perror_with_name): Update.
12207 (print_sys_errmsg): Update.
12208 (query): Update.
12209
aa32f823
DJ
122102002-02-25 Daniel Jacobowitz <drow@mvista.com>
12211
12212 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12213 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12214
19caaa45
PS
122152002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12216
12217 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12218 if it already matches the current architecture from the exec file.
12219 Include arch-utils.h for gdbarch_info_init prototype.
12220 * Makefile.in (rs6000-nat.o): Update dependencies.
12221
d951901f
EZ
122222002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12223
12224 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12225 list of exported variables.
12226
7ea81414
DJ
122272002-02-24 Daniel Jacobowitz <drow@mvista.com>
12228
12229 * gdbserver/configure.srv: New file.
12230 * gdbserver/configure.in: Use configure.srv instead
12231 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12232 from it.
12233 * gdbserver/configure: Regenerated.
12234 * gdbserver/terminal.h: New file.
12235 * gdbserver/Makefile.in: Update for configure changes. Remove
12236 more unneeded include paths.
12237
080fe24b
AC
122382002-02-24 Andrew Cagney <ac131313@redhat.com>
12239
12240 From wiz at danbala:
12241 * config/sparc/tm-sp64.h: Fix grammar and typos.
12242 Fix PR gdb/287.
12243
8605d56e
AC
122442002-02-24 Andrew Cagney <ac131313@redhat.com>
12245
12246 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12247 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12248 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12249 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12250 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12251 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12252 * s390-tdep.c: Ditto.
92362027
AC
12253 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12254 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12255 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12256 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12257 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12258 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12259 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12260 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12261 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12262 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12263 Fix PR gdb/378.
7e336ba1 12264
8ed32cc0
AC
122652002-02-23 Andrew Cagney <ac131313@redhat.com>
12266
a3007b6f
AC
12267 * lin-thread.c: Delete file.
12268 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12269 to gdb_proc_service.h.
12270 * configure: Re-generate.
12271
50a9e2f1
AC
12272 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12273 * serial.c (serial_open): Delete check for "ocd".
12274 Fix PR gdb/349.
12275
8b6e7932
AC
12276 * Makefile.in (linux-thread.o): Delete target.
12277 * linux-thread.c: Delete file.
12278
d155c46b
AC
12279 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12280 renamed SH files to be consistent.
12281
8ed32cc0
AC
12282 * symtab.c (sort_search_symbols): Use xfree.
12283
0e18d038
RE
122842002-02-23 Richard Earnshaw <rearnsha@arm.com>
12285
12286 * arm-linux-tdep.c (arm_linux_init_abi): Register
12287 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12288 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12289 definition with undef, since we don't want the sysvr4 definition.
12290 (SKIP_TRAMPOLINE_CODE): Likewise.
12291
27aac7ff
AC
122922002-02-23 Andrew Cagney <ac131313@redhat.com>
12293
12294 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12295
12296 * configure.in: (AC_CHECK_FUNCS) Added test for
12297 canonicalize_file_name Regenerated.
12298 * config.in, configure: Regenerated.
12299 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12300 defined use canonicalize_file_name.
7e336ba1 12301
65a6e0ee
MC
123022002-02-23 Michael Chastain <mec@shout.net>
12303
12304 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12305
47b95330
AC
123062002-02-23 Andrew Cagney <ac131313@redhat.com>
12307
12308 * README: Remove references to cygnus.com.
12309 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12310 dot com'' form. Remove references to cygnus.com and sourceware.
12311
696f451b
AC
123122002-02-23 Andrew Cagney <ac131313@redhat.com>
12313
12314 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12315 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12316 1003.1-2001 no longer allows "head -1".
12317 * gdb/Makefile.in (version.c): Likewise.
12318 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12319 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12320 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12321
bbaca940
AC
123222002-02-23 Andrew Cagney <ac131313@redhat.com>
12323
12324 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12325 * command.h (cmd_cfunc_eq): Declare.
12326 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12327
12328 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12329 ``struct cmd_list_element *''.
12330 * cli/cli-cmds.c (is_complete_command): Update. Use
12331 cmd_cfunc_eq.
12332 * top.c (execute_command): Pass the command to
12333 is_complete_command.
12334 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12335
b8b8b047
AC
123362002-02-23 Andrew Cagney <ac131313@redhat.com>
12337
12338 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12339 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12340 architecture defines.
12341 * s390-tdep.c (s390_gdbarch_init): Likewise.
12342
19d3fc80
RE
123432002-02-23 Richard Earnshaw <rearnsha@arm.com>
12344
12345 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12346 (arm_linux_push_arguments): Likewise.
12347 (arm_linux_init_abi): Register them. Also register linux-specific
12348 call_dummy_words.
12349 (find_minsym_and_objfile): Use strcmp, not STREQ.
12350 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12351 (arm_linux_call_dummy_words): Delete declaration.
12352 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12353 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12354 declarations.
12355 (LOWEST_PC): Delete.
12356
3ab13650
PS
123572002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12358
12359 * maint.c (print_section_info): Do not prepend `0x' to filepos
12360 output, it will be handled by local_hex_string_custom.
12361
19d3fc80 123622002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12363
12364 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12365 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12366 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12367
d85a5daf
JB
123682002-02-22 Jim Blandy <jimb@redhat.com>
12369
12370 Indicate that the bcache functions don't change the strings
12371 they're passed.
12372 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12373 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12374
eeb25b8a
PM
123752002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12376
12377 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12378
6badb179
CF
123792002-02-21 Christopher Faylor <cgf@redhat.com>
12380
12381 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12382 find the complete path to a loaded DLL.
12383
e8717518
FF
123842002-02-21 Fred Fish <fnf@redhat.com>
12385
12386 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12387 that marks the end of the range of a function, enter a line number
12388 entry that has a line number of zero and a PC offset that matches
12389 the end of the function. This starts a range of PC's for which no
12390 line number information is known.
12391 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12392 PC's for which no line number info is found (line number is zero)
12393 then we didn't find any valid line information.
12394 * symtab.h: Document use of zero line number entry.
12395
9abe5450
EZ
123962002-02-21 Elena Zannoni <ezannoni@redhat.com>
12397
12398 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12399 (have_ptrace_getvrregs): Define for run time checks.
12400 (gdb_vrregset_t): New type for Altivec register handling.
12401 (fetch_register, store_register): Fetch/store altivec register
12402 when needed.
12403 (fetch_altivec_register, store_altivec_register): New functions.
12404 (supply_vrregset, fill_vrregset): New functions.
12405 (fetch_altivec_registers, store_altivec_registers): New functions.
12406 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12407 registers as well.
12408
aaa38bb5
AJ
124092002-02-21 Jiri Smid <smid@suse.cz>
12410
12411 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12412
b34db576
RE
124132002-02-21 Richard Earnshaw <rearnsha@arm.com>
12414
12415 * Makefile.in (armnbsd-nat.o): Update dependencies.
12416 * armnbsd-nat.c (supply_gregset): New function. Common code to
12417 supply the integer register set.
12418 (supply_fparegset): New function. Similar for FPA registers.
12419 (fetch_regs, fetch_fp_regs): Use them.
12420 (fetch_core_registers): Likewise.
12421 (fetch_elfcore_registers): New function.
12422 (arm_netbsd_elfcore_fns): New core-file type specification.
12423 (_initialize_arm_netbsd_nat): Register it.
12424
3e56fc4b
RE
124252002-02-21 Richard Earnshaw <rearnsha@arm.com>
12426
12427 * armnbsd-nat.c: Include gdbcore.h.
12428 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12429 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12430 'void' to declaration, to shut up ARI.
12431 (fetch_core_registers): Make static. Rewrite using supply_register.
12432 (arm_netbsd_core_fns): New core-file type specification.
12433 (_initialize_arm_netbsd_nat): New function.
12434
097f6b0b
CF
124352002-02-21 Christopher Faylor <cgf@redhat.com>
12436
12437 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12438 value.
12439
c914e0cc
CF
124402002-02-20 Christopher Faylor <cgf@redhat.com>
12441
12442 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12443 fails.
12444
385fa495
DJ
124452002-02-20 Daniel Jacobowitz <drow@mvista.com>
12446
12447 * jv-exp.y (parse_number): Change type of implicit longs
12448 to builtin_type_uint64.
12449
e5f1222d
DJ
124502002-02-20 Daniel Jacobowitz <drow@mvista.com>
12451
12452 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12453 to be an integer instead of a `union wait'.
12454
75c9abc6
DJ
124552002-02-20 Daniel Jacobowitz <drow@mvista.com>
12456
12457 * mips-linux-nat.c: Call the operating system GNU/Linux.
12458 * mips-linux-tdep.c: Likewise.
12459 * mips-tdep.c: Likewise.
12460
551792a5
DJ
124612002-02-20 Daniel Jacobowitz <drow@mvista.com>
12462
12463 Fix PR gdb/265.
12464 * jv-exp.y (parse_number): Handle 64-bit integers.
12465
ee6e2b82
DJ
124662002-02-20 Daniel Jacobowitz <drow@mvista.com>
12467
12468 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12469 AC_STDC_HEADERS to AC_HEADER_STDC.
12470 * gdbserver/configure: Regenerated.
12471
a48442a0
RE
124722002-02-20 Richard Earnshaw <rearnsha@arm.com>
12473
12474 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12475 is defined.
12476 * sparc-tdep.c (get_longjmp_target): Likewise.
12477
fe419ffc
RE
124782002-02-20 Richard Earnshaw <rearnsha@arm.com>
12479
12480 * News: Add news about ARM and Multi-arch. Mention the new target
12481 arm*-*-netbsd*.
12482
5832ed7e
JB
124832002-02-19 Jim Blandy <jimb@redhat.com>
12484
12485 * stabsread.c (error_type_complaint): Improve error message.
12486
84563040
DJ
124872002-02-19 Daniel Jacobowitz <drow@mvista.com>
12488
12489 * gdbserver/README: Update documentation.
12490 * gdbserver/configure.in: Update configury to match documentation.
12491 * gdbserver/Makefile.in: Likewise.
12492 * gdbserver/configure: Regenerated.
12493 * gdbserver/aclocal.m4: New file, generated by aclocal.
12494 * gdbserver/config.in: New file, generated by autoheader.
12495
375fd65b
RE
124962002-02-19 Richard Earnshaw <rearnsha@arm.com>
12497
12498 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12499 armnbsd-nat.c.
12500
08216dd7
RE
125012002-02-19 Richard Earnshaw <rearnsha@arm.com>
12502
12503 * arm-tdep.h (enum arm_float_model): New enum.
12504 (struct gdbarch_tdep): Add fp_model.
12505 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12506 up floating-point conversions until we know the floating-point model
12507 in use by the inferior. Don't complain about being unable to
12508 determine the ABI of the inferior when we don't have one.
12509 (arm_extract_return_value): Support different floating-point models.
12510 (arm_store_return_value): Likewise.
aaa38bb5 12511 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12512 ARM_FLOAT_SOFT.
12513 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12514
65d6d66a
PS
125152002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12516
12517 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12518 of ``current_gdbarch''.
12519
47221191
RE
125202002-02-19 Richard Earnshaw <rearnsha@arm.com>
12521
12522 * armnbsd-nat.c : ANSIfy all function declarations.
12523 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12524 (fetch_inferior_registers): Re-implement in terms of above.
12525 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12526 (store_inferior_registers): Re-implement in terms of above.
12527
fdf39c9a
RE
125282002-02-19 Richard Earnshaw <rearnsha@arm.com>
12529
aaa38bb5 12530 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12531 kernel.
12532 * arm-linux-tdep.c: Likewise.
12533 * config/arm/tm-linux.h: Likewise.
12534
93247f88
RE
125352002-02-19 Richard Earnshaw <rearnsha@arm.com>
12536
12537 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12538 * config/arm/nbsd.mt (TM_FILE): Delete.
12539 * config/arm/tm-nbsd.h: Delete.
12540
d7b486e7
RE
125412002-02-19 Richard Earnshaw <rearnsha@arm.com>
12542
12543 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12544 Initialize CALL_DUMMY_LENGTH.
12545
41d39a95
RE
125462002-02-19 Richard Earnshaw <rearnsha@arm.com>
12547
12548 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12549 function.
12550 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12551 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12552 defines one thing and that is incorrect for this port.
12553 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12554
e1195560
PM
125552002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12556
12557 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12558
c1748f97
PM
125592002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12560
12561 * win32-nat.c (display_selector): New function. Displays information
12562 about the information returned by GetThreadSelectorEntry API function.
12563 (display_selectors): New function. Displays the infomation of
12564 the selector given as argument, or of CS, DS ans FS selectors
12565 if no argument is given.
12566 ( _initialize_inftarg): Add "w32" as info prefix command.
12567 Add "info w32 selector" as command calling display_selectors.
12568
e41e6bbf
PM
125692002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12570
12571 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12572 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12573 if not defined.
12574
0d3a9f48
RE
125752002-02-18 Richard Earnshaw <rearnsha@arm.com>
12576
12577 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12578
3fb4b924
RE
125792002-02-18 Richard Earnshaw <rearnsha@arm.com>
12580
12581 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12582 (arm_fix_call_dummy): Call it.
12583 (arm_call_dummy_breakpoint_offset): Delete.
12584 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12585 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12586
7f55af32
AC
125872002-02-18 Andrew Cagney <ac131313@redhat.com>
12588
12589 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12590 Default to func_frame_chain_valid.
12591 * gdbarch.h, gdbarch.c: Re-generate.
12592 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12593
05f13b9c
EZ
125942002-02-18 Elena Zannoni <ezannoni@redhat.com>
12595
12596 * ppc-linux-nat.c: Update copyright.
12597 (fetch_register, store_register): Add tid parameter, don't compute
12598 tid here.
12599 (fetch_ppc_registers, store_ppc_registers): Add tid
12600 parameter. Pass it along to callees.
12601 (fetch_inferior_registers, store_inferior_registers): Compute tid
12602 here, and pass it to calleed functions.
12603 (fill_gregset, supply_fpregset): Clean up formatting.
12604
d7afb4c9
RE
126052002-02-18 Richard Earnshaw <rearnsha@arm.com>
12606
12607 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12608 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12609
9df628e0
RE
126102002-02-18 Richard Earnshaw <rearnsha@arm.com>
12611
12612 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12613 * gdbarch.c gdbarch.h: Regenerate.
12614 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12615 function.
12616 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12617 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12618 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12619
12620 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12621 * arm-tdep.c (arm_get_longjmp_target): New function.
12622 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12623 this to a positive value register arm_get_longjmp_target as the
12624 longjmp handler.
12625 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12626 (arm_linux_init_abi): Set up longjmp description in tdep.
12627 * armnbsd-nat.c (get_longjmp_target): Delete.
12628 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12629 description in tdep.
12630 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12631 (get_longjmp_target): Delete declaration.
12632 (GET_LONGJMP_TARGET): Delete.
12633 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12634 (GET_LONGJMP_TARGET): Delete.
12635
57bc8964
KB
126362002-02-17 Kevin Buettner <kevinb@redhat.com>
12637
12638 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12639 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12640 of ``current_gdbarch''.
12641
83d31a92
TT
126422002-02-17 Tom Tromey <tromey@redhat.com>
12643
12644 * cli/cli-cmds.c (compare_strings): New function.
12645 (complete_command): Only print each unique item once.
12646 * completer.h (complete_line): Declare.
12647 * completer.c (complete_line): New function.
12648 (line_completion_function): Use it.
12649
17ef5d92
AC
126502002-02-16 Andrew Cagney <ac131313@redhat.com>
12651
12652 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12653 * gdbarch.h, gdbarch.c: Re-generate.
12654
491b8946
DJ
126552002-02-16 Daniel Jacobowitz <drow@mvista.com>
12656
12657 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12658
126592002-02-16 Daniel Jacobowitz <drow@mvista.com>
12660
12661 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12662 * valops.c (value_arg_coerce): Don't take the address of a reference
12663 to convert an argument to a reference.
12664
dfe7f3ac
CF
126652002-02-15 Christopher Faylor <cgf@redhat.com>
12666
12667 * win32-nat.c (get_image_name): New function.
12668 (handle_load_dll): Use get_image_name function.
12669 (get_child_debug_event): Avoid registering debug events until possibly
12670 execed process is started.
12671 (child_create_inferior): Allow invocation via shell so that command
12672 line redirection, etc. works ok.
12673 (_initialize_inftarg): Add new command: "set shell" to control whether
12674 a shell is used to start a process.
12675
1d33e73a
DJ
126762002-02-15 Daniel Jacobowitz <drow@mvista.com>
12677
12678 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12679 instead of find_register_by_number.
12680 (cannot_store_register): Likewise.
12681
48cd0caa
PM
126822002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12683
aaa38bb5 12684 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12685 fprintf_unfiltered (gdb_stderr, ...).
12686
8656e7d8
DJ
126872002-02-15 Daniel Jacobowitz <drow@mvista.com>
12688
12689 * gdbserver/gdbserver.1: Document --attach.
12690
66e810cd
RE
126912002-02-15 Richard Earnshaw <rearnsha@arm.com>
12692
12693 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12694 descriptions.
12695 * arm-tdep.c (arm_default_arm_le_breakpoint)
12696 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12697 (arm_default_thumb_be_breakpoint): New. Initialize them from
12698 traditional breakpoint defines.
12699 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12700 (arm_gdbarch_init): Initialize new breakpoint variables.
12701 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12702 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12703 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12704 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12705 code out to ...
12706 (arm_netbsd_init_abi_common): ... here; new function.
12707 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12708 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12709 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12710 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12711
97e03143
RE
127122002-02-15 Richard Earnshaw <rearnsha@arm.com>
12713
12714 * arm-tdep.h (enum arm_abi): New enum.
12715 (struct gdbarch_tdep): New structure.
12716 (LOWEST_PC): Provide a default.
12717 (arm_gdbarch_register_os_abi): Declare new function.
12718 * arm-tdep.c (arm_abi_names): New array.
12719 (process_note_abi_tag_sections): New function.
12720 (get_elfosabi): New function.
12721 (arm_gdbarch_register_os_abi): New function.
12722 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12723 support for that ABI has been built in, then call the appropriate
12724 configuration routine. Use gdbarch_num_regs() to get the number
12725 of registers.
12726 (arm_dump_tdep): New function.
12727 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12728 place-holder functions.
12729 (_initialize_arm_tdep): Register them.
12730 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12731
12732 * armnbsd-tdep.c: New file.
12733 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12734 * config/arm/nbsd.mt (TDEPFILES): Add it.
12735 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12736
12737 * armnbsd-nat.c: Include regcache.h.
12738 * Makefile.in (armnbsd-nat.o): Update dependency list.
12739
12740 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12741
ad68be46
DJ
127422002-02-14 Daniel Jacobowitz <drow@mvista.com>
12743
12744 * gdbserver/Makefile.in: Fix typos in target rules.
12745
003d6d1d
DJ
127462002-02-14 Daniel Jacobowitz <drow@mvista.com>
12747
aaa38bb5 12748 Fix part of PR gdb/267.
003d6d1d
DJ
12749 * linespec.c (find_methods): Handle constructors specially for now.
12750
6b230f1b
CV
127512002-02-14 Corinna Vinschen <vinschen@redhat.com>
12752
12753 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12754 handling.
12755 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12756 standard_coerce_float_to_double().
12757
1ea98d12
CF
127582002-02-14 Christopher Faylor <cgf@redhat.com>
12759
12760 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12761 GDBINIT_FILENAME.
12762
dd47e6fd
EZ
127632002-02-14 Elena Zannoni <ezannoni@redhat.com>
12764
12765 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12766 find_variant_by_name, because it confuses the multiarch
12767 framework. Return NULL if there isn't an architecture with the
12768 user supplied name, instead of forcing a different one without
12769 recording the change with the multiarch machinery.
12770 (find_variant_by_name): Delete.
12771
d7e39b9e
PS
127722002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12773
12774 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12775 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12776
76e42a4f
MH
127772002-02-13 Martin M. Hunt <hunt@redhat.com>
12778
aaa38bb5 12779 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12780 print_frame_info_listing_hook, set current_source_symtab.
12781
0a30fbc4
DJ
127822002-02-14 Daniel Jacobowitz <drow@mvista.com>
12783
12784 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12785 and remove unused $(INCLUDE_DIR).
12786 Add regcache.c to OBS.
12787 Add generated register protocol files to clean target.
12788 Update dependencies for new objects, obsolete old target code.
12789
12790 * gdbserver/linux-low.c: Remove all platform-specific code to
12791 new files. Remove various dead code. Update to use regcache
12792 functionality.
12793 * gdbserver/remote-utils.c (fromhex): Add return statement
12794 to quiet warning.
12795 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12796 constant.
12797 (input_interrupt): Add integer parameter to match prototype
12798 of a signal handler.
12799 (outreg): Use register_data ().
12800 (prepare_resume_reply): Use gdbserver_expedite_regs.
12801 * gdbserver/server.c (main): Dynamically allocate own_buf because
12802 PBUFSIZ is no longer constant. Use registers_to_string () and
12803 registers_from_string ().
12804 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12805 for error (), fatal (), and warning (). Update definition of
12806 PBUFSIZ to use regcache functionality. Add include guard.
12807 * gdbserver/utils.c (fatal): Add missing ``const''.
12808 (warning): New function.
12809
12810 * regformats/regdat.sh: Include "regcache.h" in generated files.
12811 Provide init_registers () function.
12812 * regformats/regdef.h: Add prototype for set_register_cache ().
12813 Add include guard.
12814
12815 * gdbserver/linux-arm-low.c: New file.
12816 * gdbserver/linux-i386-low.c: New file.
12817 * gdbserver/linux-ia64-low.c: New file.
12818 * gdbserver/linux-m68k-low.c: New file.
12819 * gdbserver/linux-mips-low.c: New file.
12820 * gdbserver/linux-ppc-low.c: New file.
12821 * gdbserver/linux-sh-low.c: New file.
12822
12823 * gdbserver/regcache.c: New file.
12824 * gdbserver/regcache.h: New file.
12825
12826 * gdbserver/low-linux.c: Removed obsolete file.
12827
4cc841d0
DJ
128282002-02-14 Daniel Jacobowitz <drow@mvista.com>
12829
12830 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12831 * config/i386/linux.mt: Likewise.
12832 * config/ia64/linux.mt: Likewise.
12833 * config/m68k/linux.mh: Likewise.
12834 * config/powerpc/linux.mh: Likewise.
12835 * config/mips/linux.mt: Likewise.
12836
12837 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12838
12839 * config/i386/i386lynx.mh: Mark gdbserver variables
12840 as (currently) obsolete for this target.
12841 * config/i386/nbsd.mt: Likewise.
12842 * config/i386/nbsdelf.mt: Likewise.
12843 * config/m32r/m32r.mt: Likewise.
12844 * config/m68k/m68klynx.mh: Likewise.
12845 * config/m68k/nbsd.mt: Likewise.
12846 * config/m68k/sun3os4.mh: Likewise.
12847 * config/mips/vr5000.mt: Likewise.
12848 * config/ns32k/nbsd.mt: Likewise.
12849 * config/pa/hppabsd.mh: Likewise.
12850 * config/pa/hppaosf.mh: Likewise.
12851 * config/powerpc/nbsd.mt: Likewise.
12852 * config/rs6000/rs6000lynx.mh: Likewise.
12853 * config/s390/s390.mt: Likewise.
12854 * config/s390/s390x.mt: Likewise.
12855 * config/sparc/sparclynx.mh: Likewise.
12856 * config/sparc/sun4os4.mh: Likewise.
12857 * config/i386/x86-64linux.mt: Likewise.
12858 * config/sparc/linux.mh: Likewise.
12859
a85f51e7
DJ
128602002-02-14 Daniel Jacobowitz <drow@mvista.com>
12861
12862 * configure.tgt: Configure gdbserver only for known working
12863 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12864 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12865 SUBDIRS if it is configured. Update comment for ${nativefile}.
12866 * configure: Regenerated.
12867
65554fef
MS
128682002-02-13 Michael Snyder <msnyder@redhat.com>
12869
670a52db
MS
12870 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12871
6dbdc4a3
MS
12872 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12873 (default_gcore_mach): Just return 0, work around a problem in bfd.
12874 (default_gcore_target): OK to return NULL if exec_bfd is null.
12875 (make_mem_sec): Use a cast, avoid a warning.
12876
12877 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12878 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12879 sizeof (host pointer) != sizeof (target pointer)).
12880 (procfs_make_note_section): Avoid overflow in psargs string.
12881
aaa38bb5 12882 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12883 implementation return an error.
12884
128852002-02-13 Rodney Brown <rbrown64@csc.com.au>
12886
12887 * procfs.c (procfs_make_note_section): Provide a default definition
12888 (for alpha-dec-osf4.0f). Fix typos.
12889
1e4d76e7
EZ
128902002-02-13 Elena Zannoni <ezannoni@redhat.com>
12891
12892 * linux-proc.c: Add include of regcache.h.
12893 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12894
b6d1a1d5
AC
128952002-02-13 Andrew Cagney <ac131313@redhat.com>
12896
12897 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12898 * memattr.c (create_mem_region): Disallow useless empty region.
12899 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12900 non-overlapping.
b6d1a1d5 12901
6c6ea35e
MC
129022002-02-13 Michael Chastain <mec@shout.net>
12903
12904 * defs.h: Kill CONST_PTR.
12905 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12906 * c-lang.c (c_builtin_types): Likewise.
12907 * ch-lang.c (ch_builtin_types): Likewise.
12908 * f-lang.c (f_builtin_types): Likewise.
12909 * language.c (unknown_builtin_types): Likewise.
12910 * m2-lang.c (m2_builtin_types): Likewise.
12911 * p-lang.c (pascal_builtin_types): Likewise.
12912 * scm-lang.c (c_builtin_types): Likewise.
12913
3e0b0f48
KS
129142002-02-13 Keith Seitz <keiths@redhat.com>
12915
12916 * arm-tdep.h (arm_get_next_pc): Add declaration.
12917
67255d04
RE
129182002-02-13 Richard Earnshaw <rearnsha@arm.com>
12919
12920 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12921 with other related struct-returning functions.
12922 (arm_extract_struct_value_address): New function.
12923 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12924 initialize float_format, double_format and long_double_format as
12925 appropriate to the endianness of the target.
12926 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12927 (arm_use_struct_convention): Delete declaration.
12928 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12929
079777f6
KS
129302002-02-13 Keith Seitz <keiths@redhat.com>
12931
12932 * defs.h (core_addr_to_string_nz): New function.
12933
34588f23
MK
129342002-02-13 Mark Kettenis <kettenis@gnu.org>
12935
12936 Apply missing bits of 2002-01-15 patch.
12937 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12938 (fill_fpregset): Use i387_fill_fsave.
12939
49b563f9
KS
129402002-02-12 Keith Seitz <keiths@redhat.com>
12941
49b563f9
KS
12942 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12943 (core_addr_to_string_nz): New function.
12944
aeb98c60
RE
129452002-02-11 Richard Earnshaw <rearnsha@arm.com>
12946
12947 * arm-linux-nat.c: Really include arm-tdep.h.
12948 * config/arm/tm-linux.h (struct type, struct value): Declare.
12949
65554fef
MS
129502002-02-11 Michael Snyder <msnyder@redhat.com>
12951
12952 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12953 (gcore section): Ifdef for Solaris and Unixware only.
12954 (procfs_do_thread_registers): Unixware needs one lwpstatus
12955 per thread (not one prstatus or pstatus).
12956 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12957 not over all gdb threads. For unixware, call elfcore_write_pstatus
12958 once before iterating over threads.
12959
34e8f22d
RE
129602002-02-11 Richard Earnshaw <rearnsha@arm.com>
12961
12962 * arm-tdep.h: New file.
12963 * arm-tdep.c: Include arm-tdep.h.
12964 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12965 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12966 (arm_print_float_info, arm_register_type, convert_to_extended)
12967 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12968 (arm_extract_return_value, arm_register_name): Make static.
12969 (arm_software_single_step): Similarly. Fix types in declaration.
12970 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12971 (arm_store_return_value, arm_store_struct_return): New functions.
12972 (arm_gdbarch_init): Register the above functions. Also register
12973 call_dummy_start_offset, sizeof_call_dummy_words,
12974 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12975 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12976 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12977 prologue_cache.saved_regs here, rather than ...
12978 (_initialize_arm_tdep): ... here.
12979 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12980 declarations.
12981 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12982 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12983 (arm_print_float_info, arm_register_type, convert_to_extended)
12984 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12985 (arm_extract_return_value, arm_register_name): Delete declarations.
12986 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12987 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12988 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12989 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12990 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12991 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12992 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12993 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12994 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12995 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12996 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12997 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12998 interface.
12999 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13000 * remote-rdi.c remote-rdp.c: Likewise.
13001 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13002 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13003 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13004 definition.
13005
13006 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13007 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13008 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13009 from non-ARM_ prefixed definitions.
13010 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13011 all uses of above.
13012 * remote-rdi.c remote-rdp.c: Likewise.
13013 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13014
148754e5
RE
130152002-02-11 Richard Earnshaw <rearnsha@arm.com>
13016
13017 * arm-tdep.c (arm_frameless_function_invocation)
13018 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13019 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13020 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13021 (arm_pop_frame, arm_get_next_pc): Make static.
13022 (arm_gdbarch_init): Register above in gdbarch structure.
13023 (arm_read_fp): Renamed from arm_target_read_fp.
13024 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13025 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13026 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13027 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13028 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13029 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13030 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
13031 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13032 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13033 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13034 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 13035
434d2d4f
DJ
130362002-02-10 Daniel Jacobowitz <drow@mvista.com>
13037
13038 * symtab.c (compare_search_syms): New function.
13039 (sort_search_symbols): New function.
13040 (search_symbols): Sort symbols after searching rather than
13041 before.
13042
55241689
AC
130432002-02-10 Andrew Cagney <ac131313@redhat.com>
13044
13045 * NEWS: Linux -> GNU/Linux.
13046
028c194b
AC
130472002-02-10 Andrew Cagney <ac131313@redhat.com>
13048
13049 * gdbarch.sh: For for level one methods, disallow a definition
13050 when partially multi-arched. Add comments explaining rationale.
13051 * gdbarch.h: Re-generate.
13052
6acf50cd
AC
130532002-02-10 Andrew Cagney <ac131313@redhat.com>
13054
13055 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13056 multi-arch partial.
aaa38bb5 13057
50248794
AC
130582002-02-10 Andrew Cagney <ac131313@redhat.com>
13059
13060 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13061 field. Use diff -u.
13062 * gdbarch.c: Re-generate.
13063
c30e0066
AC
130642002-02-10 Andrew Cagney <ac131313@redhat.com>
13065
9b56c5f3 13066 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
13067 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13068 partial.
13069
6e6d6484
AC
130702002-02-10 Andrew Cagney <ac131313@redhat.com>
13071
13072 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13073 multi-arch partial.
13074 (PUSH_ARGUMENTS): Switch to using predefault.
13075 * gdbarch.c: Regenerate.
13076
c203844d
AC
130772002-02-10 Andrew Cagney <ac131313@redhat.com>
13078
13079 * valops.c (PUSH_ARGUMENTS): Delete definition.
13080 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13081 partial. Default to default_push_arguments.
13082 * gdbarch.h, gdbarch.c: Regenerate.
13083
b5a2688f
AC
130842002-02-09 Andrew Cagney <ac131313@redhat.com>
13085
13086 * defs.h (throw_exception): Rename return_to_top_level. Update
13087 comments.
13088 * utils.c (error_stream, internal_verror, quit): Ditto.
13089 * top.c (throw_exception, catcher): Ditto.
13090 * sparclet-rom.c (sparclet_load): Ditto.
13091 * remote.c (interrupt_query, minitelnet): Ditto.
13092 * remote-sds.c (interrupt_query): Ditto.
13093 * remote-mips.c (mips_error, mips_kill): Ditto.
13094 * ocd.c (interrupt_query): Ditto.
13095 * monitor.c (monitor_interrupt_query): Ditto.
13096 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13097 * target.h: Update comment.
aaa38bb5 13098
b5a2688f 13099 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13100
2fa5c1e0
AC
131012002-02-09 Andrew Cagney <ac131313@redhat.com>
13102
13103 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13104 default_double_format.
13105 * gdbarch.h, gdbarch.c: Re-generate.
13106 * findvar.c (floatformat_unknown): Delete variable definition.
13107 * doublest.h (floatformat_unknown): Delete variable declaration.
13108
da966255
JB
131092002-02-09 Jim Blandy <jimb@redhat.com>
13110
13111 * stabsread.c (read_type): Add code to parse Sun's syntax for
13112 prototyped function types.
13113
123a4891
AC
131142002-02-09 Andrew Cagney <ac131313@redhat.com>
13115
13116 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13117 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13118
fb39c8f3
PS
131192002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13120
13121 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13122 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13123 now _initialize_xcoffsolib gets called again and overrides the
13124 commands from solib.c in a native configuration.
13125
0b87a11d
MK
131262002-02-09 Mark Kettenis <kettenis@gnu.org>
13127
13128 * doublest.c (store_typed_floating): Don't try to return a value.
13129 Fixes PR gdb/290.
13130
bdc2fc72
JB
131312002-02-08 Jim Blandy <jimb@redhat.com>
13132
13133 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13134 is prototyped and has no arguments, print its argument list as
13135 `(void)'.
13136
da69bbcf
CD
131372002-02-08 Chris Demetriou <cgd@broadcom.com>
13138
13139 * MAINTAINERS (write-after-approval): Add myself.
13140 (paper-trail): I've escaped!
aaa38bb5 13141
b69571f5
CF
131422002-02-08 Christopher Faylor <cgf@redhat.com>
13143
13144 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13145 changes.
13146 (_initialize_check_for_gdb_ini): Ditto.
13147
f6871398
MH
131482002-02-08 Martin M. Hunt <hunt@redhat.com>
13149
13150 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13151 xaprintf -> xasprintf.
13152
4e52d31c
PM
131532002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13154
13155 * win32-nat.c: Remove use of printf and sprintf functions.
13156
39bbf761
RE
131572002-02-08 Richard Earnshaw <rearnsha@arm.com>
13158
13159 * arm-tdep.c (arm_frame_chain_valid): Make static.
13160 (arm_push_arguments): Likewise.
13161 (arm_gdbarch_init): New function.
13162 (_initialize_arm_tdep): Call it.
13163 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13164 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13165 (FRAME_CHAIN_VALID): Delete.
13166 (arm_frame_chain_valid): Delete declaration.
13167 (PUSH_ARGUMENTS): Delete.
13168 (arm_push_arguments): Delete declaration.
13169 (CALL_DUMMY_P): Delete.
13170
9c9532c9
CV
131712002-02-08 Andrew Cagney <ac131313@redhat.com>
13172 Corinna Vinschen <vinschen@redhat.com>
13173
13174 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13175 on builtin float types.
13176
4e8f7a8b
DJ
131772002-02-08 Daniel Jacobowitz <drow@mvista.com>
13178
13179 * utils.c: Include <curses.h> before "bfd.h".
13180 * tui/tui-hooks.c: Likewise.
13181 * tui/tui.c: Likewise.
13182 * tui/tuiCommand.c: Likewise.
13183 * tui/tuiData.c: Likewise.
13184 * tui/tuiDataWin.c: Likewise.
13185 * tui/tuiDisassem.c: Likewise.
13186 * tui/tuiGeneralWin.c: Likewise.
13187 * tui/tuiIO.c: Likewise.
13188 * tui/tuiLayout.c: Likewise.
13189 * tui/tuiRegs.c: Likewise.
13190 * tui/tuiSource.c: Likewise.
13191 * tui/tuiSourceWin.c: Likewise.
13192 * tui/tuiStack.c: Likewise.
13193 * tui/tuiWin.c: Likewise.
13194
cd4bffcf
EZ
131952002-02-07 Elena Zannoni <ezannoni@redhat.com>
13196
13197 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13198 to include space for pseudoregs as well. Update loops accordingly.
13199 (sh_fp_frame_init_saved_regs): Ditto.
13200 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13201
26806ce2
AC
132022002-02-07 Andrew Cagney <ac131313@redhat.com>
13203
13204 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13205 Add Richard Earnshaw to Arm maintainers.
13206
97fdab62
AC
132072002-02-07 Andrew Cagney <ac131313@redhat.com>
13208
a6b98203
AC
13209 * defs.h (warning_begin): Delete declaration.
13210
97fdab62
AC
13211 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13212 Delete macro.
13213
78b29b40
MS
132142002-02-07 Michael Snyder <msnyder@redhat.com>
13215
aaa38bb5 13216 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13217 Logic bug, remove misplaced else.
13218
d8849953
KD
132192002-02-07 Klee Dienes <klee@apple.com>
13220
13221 * fork-inferior.c (fork_inferior): Add '!' to the list of
13222 characters that need to be quoted when building a string for the
13223 shell. Quote '!' specifically with a backslash, since CSH chokes
13224 when trying to evaluate "str!str".
aaa38bb5 13225
095778a0
NC
132262002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13227
13228 * rdi-share/host.h: Only provide a typedef for bool if it is not
13229 defined.
13230
1900040c
MS
132312002-02-04 Michael Snyder <msnyder@redhat.com>
13232
13233 * breakpoint.h (enum bptype): Add new overlay event bp type.
13234 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13235
1900040c
MS
13236 * breakpoint.c (create_internal_breakpoint): New function.
13237 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13238 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13239 (create_thread_event_breakpoint): Ditto.
13240 (create_solib_event_breakpoint): Ditto.
13241 (create_overlay_event_breakpoint): New function.
13242 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13243 (update_breakpoints_after_exec): Delete and re-initialize
13244 overlay event breakpoints after an exec. Add FIXME comment
13245 about longjmp breakpoint.
13246 (print_it_typical): Ignore overlay event breakpoints.
13247 (print_one_breakpoint): Ditto.
13248 (mention): Ditto.
13249 (bpstat_what): Do not stop for overlay event breakpoints.
13250 (delete_breakpoint): Don't delete overlay event breakpoints.
13251 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13252 (breakpoint_re_set): Re-create overlay event breakpoint.
13253
13254 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13255 (overlay_manual_command): Disable overlay breakpoints.
13256 (overlay_off_command): Disable overlay breakpoints.
13257
082fc60d
RE
132582002-02-06 Richard Earnshaw <rearnsha@arm.com>
13259
13260 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13261 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13262 to here from config/tm-arm.h.
13263 (coff_sym_is_thumb): Make static.
13264 (arm_elf_make_msymbol_special): New function.
13265 (arm_coff_make_msymbol_special): New function.
13266 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13267 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13268 (coff_sym_is_thumb): Delete declaration.
13269 (arm_elf_make_msymbol_special): Declare.
13270 (arm_coff_make_msymbol_special): Declare.
13271 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13272 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13273
039c5766
RE
132742002-02-06 Richard Earnshaw <rearnsha@arm.com>
13275
13276 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13277
132782002-02-06 Richard Earnshaw <rearnsha@arm.com>
13279
13280 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13281 * gdbarch.c gdbarch.h: Regenerate.
13282 * arch-utils.c (default_print_float_info): New function.
13283 * arch-utils.h (default_print_float_info): Prototype it.
13284 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13285 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13286 (PRINT_FLOAT_INFO): Document it.
13287
13288 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13289 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13290 (PRINT_FLOAT_INFO): Define.
13291
58fa08f0
PM
132922002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13293
aaa38bb5 13294 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13295 Add typecast to sprintf argument to suppress a warning.
13296
7393af7c
PM
132972002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13298
58fa08f0 13299 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13300 to allow easier handling of pass state.
13301 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13302 that gives exception name and address.
13303 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13304 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13305 exceptions added.
aaa38bb5
AJ
13306 (child_continue): Correctly report continue_status.
13307 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13308 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13309 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13310 the exception should be passed to debuggee or not.
13311
6af4589c
MS
133122002-02-05 Michael Snyder <msnyder@redhat.com>
13313
13314 * regcache.c (fetch_register): Call target_fetch_register
13315 only if we don't call FETCH_PSEUDO_REGISTER.
13316 (store_register): Call target_store_register only if we
13317 don't call STORE_PSEUDO_REGISTER.
13318
a2cf933a
EZ
133192002-02-05 Elena Zannoni <ezannoni@redhat.com>
13320
13321 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13322 ELF_MAKE_MSYMBOL_SPECIAL.
13323 * gdbarch.c, gdbarch.h: Regenerate.
13324 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13325 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13326 * elfread.c (elf_symtab_read): Compile use of
13327 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13328 multiarched.
13329 * coffread.c (coff_symtab_read): Ditto, for
13330 COFF_MAKE_MSYMBOL_SPECIAL.
13331
6bb7be43
JB
133322002-02-05 Jim Blandy <jimb@redhat.com>
13333
13334 * solib-svr4.c (svr4_truncate_ptr): New function.
13335 (svr4_relocate_section_addresses): Do the address arithmetic with
13336 the appropriate truncation for target addresses, even when
13337 CORE_ADDR is larger than a target address.
13338
e18651ec
DJ
133392002-02-05 Daniel Jacobowitz <drow@mvista.com>
13340
13341 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13342 to (int *).
13343
6b2725be
DJ
133442002-02-05 Daniel Jacobowitz <drow@mvista.com>
13345
13346 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13347 code.
13348
fca9e603
DJ
133492002-02-05 Daniel Jacobowitz <drow@mvista.com>
13350
13351 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13352
6c537a52
DJ
133532002-02-05 Daniel Jacobowitz <drow@mvista.com>
13354
13355 * gdbserver/linux-low.c: Remove unused include files.
13356
d844cde6
DJ
133572002-02-05 Daniel Jacobowitz <drow@mvista.com>
13358
13359 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13360 (read_inferior_memory): Use it.
13361 (write_inferior_memory): Likewise.
13362
d07c63e7
DJ
133632002-02-05 Daniel Jacobowitz <drow@mvista.com>
13364
13365 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13366 grubbing through sys_errlist.
13367
da6d8c04
DJ
133682002-02-05 Daniel Jacobowitz <drow@mvista.com>
13369
13370 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13371
5b421780
PM
133722002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13373 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13374
9f60d481
AC
133752002-02-04 Andrew Cagney <ac131313@redhat.com>
13376
13377 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13378 (do_sfunc, set_cmd_sfunc): New functions.
13379
13380 * command.h (struct cmd_list_element): Add field func.
13381 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13382 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13383 * cli/cli-decode.h: Ditto.
13384
13385 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13386 (help_all, help_cmd_list): Ditto.
13387 (find_cmd, complete_on_cmdlist): Ditto.
13388 * top.c (execute_command): Ditto.
13389
13390 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13391 function.sfunc.
13392
13393 * infcmd.c (notice_args_read): Fix function signature.
13394
13395 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13396 * cli/cli-decode.c (add_set_cmd): Ditto.
13397 * utils.c (initialize_utils): Ditto.
13398 * maint.c (_initialize_maint_cmds): Ditto.
13399 * infrun.c (_initialize_infrun): Ditto.
13400 * demangle.c (_initialize_demangler): Ditto.
13401 * remote.c (add_packet_config_cmd): Ditto.
13402 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13403 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13404 * proc-api.c (_initialize_proc_api): Ditto.
13405 * kod.c (_initialize_kod): Ditto.
13406 * valprint.c (_initialize_valprint): Ditto.
13407 * top.c (init_main): Ditto.
13408 * infcmd.c (_initialize_infcmd): Ditto.
13409 * corefile.c (_initialize_core): Ditto.
13410 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13411 * arch-utils.c (initialize_current_architecture): Ditto.
13412 (_initialize_gdbarch_utils): Ditto.
13413 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13414
13415 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13416 * wince.c (_initialize_inftarg): Ditto.
13417 * symfile.c (_initialize_symfile): Ditto.
13418 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13419 * language.c (_initialize_language): Ditto.
13420 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13421
f9ba0717
MS
134222002-02-04 Michael Snyder <msnyder@redhat.com>
13423
13424 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13425
0c74b2a7
DJ
134262002-02-04 Daniel Jacobowitz <drow@mvista.com>
13427
13428 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13429 Add rules for building the register data files.
13430
c638789f
DJ
134312002-02-04 Daniel Jacobowitz <drow@mvista.com>
13432
13433 * regformats/regdat.sh: Add braces to the definition of
13434 expedite_regs_${arch}.
13435
db253027
DJ
134362002-02-04 Daniel Jacobowitz <drow@mvista.com>
13437
13438 * regformats/regdef.h (struct reg): Add comment describing the
13439 requirements for offset and size fields.
13440
206be19c
AS
134412002-02-04 Andreas Schwab <schwab@suse.de>
13442
13443 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13444 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13445
181c1381
RE
134462002-02-04 Richard Earnshaw <rearnsha@arm.com>
13447
13448 * gdbarch.sh (copyright): Update years in generated header.
13449 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13450 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13451 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13452 * dbxread.c: Likewise.
13453 * dwarfread.c: Likewise.
13454 * elfread.c: Likewise.
13455 * somread.c: Likewise.
13456
13457 * arm-tdep.c (arm_smash_text_address): New function.
13458 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13459
fa4ba8da
PM
134602002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13461
13462 Add support for hardware watchpoints on win32 native.
aaa38bb5 13463 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13464 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13465 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13466 of debug registers.
13467 (debug_registers_changed): New variable. Reflects when debug registers
13468 are changed and need to be written to inferior.
aaa38bb5 13469 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13470 was set, used when new threads are created.
13471 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13472 i386-nat code.
13473 (thread_rec): Set dr array if id is the thread of current_event .
13474 (child_continue, child_resume): Change the debug registers for all
13475 threads if debug_registers_changed.
13476 (child_add_thread): Change the debug registers if debug_registers_used.
13477 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13478 Link nm.h to new nm-cygwin.h file.
13479 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13480 of hardware registers.
13481
a73c86fb
AC
134822002-02-03 Andrew Cagney <ac131313@redhat.com>
13483
13484 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13485 Restore behavour broken by 2002-01-20 Andrew Cagney
13486 <ac131313@redhat.com> IEEE_FLOAT removal.
13487
acf5ed49
DJ
134882002-02-03 Daniel Jacobowitz <drow@mvista.com>
13489
13490 * c-valprint.c (c_val_print): Pass a proper valaddr to
13491 cp_print_class_method.
13492 * valops.c (search_struct_method): If there is only one method
13493 and args is NULL, return that method.
13494
493d28d5
DJ
134952002-02-03 Daniel Jacobowitz <drow@mvista.com>
13496
13497 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13498 accessing tag_name directly.
13499
7495dfdb
DJ
135002002-02-03 Daniel Jacobowitz <drow@mvista.com>
13501
13502 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13503 of accessing tag_name directly.
13504
dd6bda65
DJ
135052002-02-03 Daniel Jacobowitz <drow@mvista.com>
13506
13507 PR gdb/280
13508 * gdbtypes.c (replace_type): New function.
13509 * gdbtypes.h (replace_type): Add prototype.
13510 * stabsread.c (read_type): Use replace_type.
13511
88fe217c
RE
135122002-02-03 Richard Earnshaw <rearnsha@arm.com>
13513
13514 * Makefile.in (memattr.o): Add missing dependencies rule.
13515
e5d66720
PS
135162002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13517
13518 * breakpoint.c (break_at_finish_command): Really export.
13519 (break_at_finish_at_depth_command): Ditto.
13520 (tbreak_at_finish_command): Ditto.
13521 * hppa-tdep.c: Include completer.h.
13522 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13523 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13524
fffee0be
AC
135252002-02-01 Andrew Cagney <ac131313@redhat.com>
13526
13527 * utils.c (do_write): New function.
13528 (error_stream): Rewrite combining the code from error_begin and
13529 verror.
13530 (verror): Rewrite using error_stream.
13531 (error_begin): Delete function.
13532
255e7dbf
AC
135332002-02-01 Andrew Cagney <ac131313@redhat.com>
13534
13535 * utils.c (error_begin): Make static.
13536 * defs.h (error_begin): Delete declaration.
13537
13538 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13539 (decode_line_1): Use cplusplus_error instead of error_begin,
13540 cplusplus_hint and return_to_top_level.
13541 * coffread.c (coff_symfile_read): Use error instead of error_begin
13542 and return_to_top_level.
13543 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13544
ddfe3c15
AC
135452002-02-01 Andrew Cagney <ac131313@redhat.com>
13546
13547 * language.h (type_error, range_error): Make string parameter
13548 constant.
13549 * language.c (warning_pre_print): Delete extern declaration.
13550 * dwarfread.c (warning_pre_print): Ditto.
13551 * language.c (type_error, range_error): Rewrite to use verror and
13552 vwarning instead of warning_begin.
13553
03ac34d5
MS
135542002-02-01 Michael Snyder <msnyder@redhat.com>
13555
261c4ca2
MS
13556 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13557 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13558
e00d1dc8
AC
135592002-02-01 Andrew Cagney <ac131313@redhat.com>
13560
13561 * command.h (NO_FUNCTION): Delete macro.
13562 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13563 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13564 * tracepoint.c (_initialize_tracepoint): Ditto.
13565 * cli/cli-decode.c (add_set_cmd): Ditto.
13566 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13567
76b79d6e
DJ
135682002-02-01 Daniel Jacobowitz <drow@mvista.com>
13569
13570 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13571 Update ``this'' pointer when calling virtual functions.
13572
799f9e91
MS
135732002-02-01 Michael Snyder <msnyder@redhat.com>
13574
c7bd442c 13575 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13576 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13577
3cf384d4
DJ
135782002-02-01 Daniel Jacobowitz <drow@mvista.com>
13579
13580 * regformats/reg-arm.dat: New file.
13581 * regformats/reg-i386.dat: New file.
13582 * regformats/reg-ia64.dat: New file.
13583 * regformats/reg-m68k.dat: New file.
13584 * regformats/reg-mips.dat: New file.
13585 * regformats/reg-ppc.dat: New file.
13586 * regformats/reg-sh.dat: New file.
13587 * regformats/regdef.h: New file.
13588 * regformats/regdat.sh: New file.
13589
0defa245
RE
135902002-02-01 Richard Earnshaw <reanrsha@arm.com>
13591
13592 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13593 (arm_frame_args_address, arm_frame_locals_address): New functions.
13594 (arm_frame_num_args): New function.
13595 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13596 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13597 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13598
405f26e6
MS
135992002-01-31 Michael Snyder <msnyder@redhat.com>
13600
502fd408
MS
13601 * breakpoint.c (break_at_finish_command): Export.
13602 (break_at_finish_at_depth_command): Export.
13603 (tbreak_at_finish_command): Export.
d6020d45 13604 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13605 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13606 "txbreak" commands, which are HPPA specific.
502fd408 13607
7d35e135
MS
13608 * printcmd.c (disassemble_command): Remove an ancient
13609 artifact of an old merge.
13610
aaa38bb5 13611 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13612 Define enum constant values for overlay mode.
13613 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13614 (overlay_is_mapped, overlay_auto_command,
13615 overlay_manual_command): Ditto.
d874f1e2 13616
aaa38bb5
AJ
13617 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13618 breakpoint_here_p, breakpoint_inserted_here_p,
13619 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13620 describe_other_breakpoints, check_duplicates, clear_command):
13621 Coding standard fixes.
13622
8add0441 13623 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13624 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13625 code: check bfd SEC_READONLY flag for section.
13626
e351066e
AC
136272002-01-31 Andrew Cagney <ac131313@redhat.com>
13628
7d35e135 13629 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13630
8a48e967
DJ
136312002-01-30 Daniel Jacobowitz <drow@mvista.com>
13632
13633 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13634 data symbols, since we search based on textlow and texthigh.
13635 (find_pc_sect_symtab): Likewise.
13636
f5a96129
AC
136372002-01-30 Andrew Cagney <ac131313@redhat.com>
13638
13639 * defs.h (vwarning): Declare.
f5a96129
AC
13640 * utils.c (vwarning): New function.
13641 (warning): Call vwarning.
13642 (warning_begin): Delete function.
13643
13644 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13645 the warning message.
13646 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13647 warning_begin.
13648
cefd4ef5
MS
136492002-01-30 Michael Snyder <msnyder@redhat.com>
13650
1a703748
MS
13651 * NEWS: Mention "set trust-readonly-sections" command.
13652 Mention generate-core-file command.
cefd4ef5 13653
3a11626d
MS
136542002-01-15 Michael Snyder <msnyder@redhat.com>
13655
13656 * target.c: New command, "set trust-readonly-sections on".
13657 (do_xfer_memory): Honor the suggestion to trust readonly sections
13658 by reading them from the object file instead of from the target.
13659 (initialize_targets): Register command "set trust-readonly-sections".
13660
d1c7e53b
AC
136612002-01-29 Andrew Cagney <ac131313@redhat.com>
13662
13663 * parse.c (target_map_name_to_register): Simplify, search regs and
13664 pseudo-regs using a single loop.
13665
e2c9a72c
AC
136662002-01-30 Andrew Cagney <ac131313@redhat.com>
13667
13668 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13669
69824b4e
MK
136702002-01-15 Rodney Brown <rbrown64@csc.com.au>
13671
13672 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13673 * config/i386/i386v42mp.mh: Add i387-nat.o .
13674 * i386v4-nat.c: Include i387-nat.h.
13675 (supply_fpregset): Use i387_supply_fsave.
13676 (fill_fpregset): Use i387_fill_fsave.
13677
6eb69eab
RE
136782002-01-30 Richard Earnshaw <rearnsha@arm.com>
13679
13680 * arm-tdep.c (arm_call_dummy_words): Define.
13681 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13682 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13683 (CALL_DUMMY_WORDS): Define.
13684 (arm_call_dummy_words): Declare.
13685 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13686 (arm_linux_call_dummy_words): Declare.
13687
9852326a
AS
136882002-01-30 Andreas Schwab <schwab@suse.de>
13689
13690 * m68klinux-nat.c: Fix last change to use regcache_collect
13691 instead of referencing registers[] directly.
13692
977a3030
AC
136932002-01-29 Andrew Cagney <ac131313@redhat.com>
13694
13695 * parse.c (target_map_name_to_register): Delete code wrapped in
13696 #ifdef REGISTER_NAME_ALIAS_HOOK.
13697
2076c72b
MS
136982002-01-28 Michael Snyder <msnyder@redhat.com>
13699
13700 * regcache.c (legacy_read_register_gen): Need to be able to
13701 read pseudo-register as well as real register.
13702 (legacy_write_register_gen): Ditto.
13703
8fcc723b
AC
137042002-01-28 Andrew Cagney <ac131313@redhat.com>
13705
13706 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13707 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13708 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13709 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13710 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13711 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13712 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13713 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13714 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13715 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13716 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13717 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13718 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13719 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13720 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13721 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13722 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13723 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13724 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13725 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13726
afe64c1a
AC
137272002-01-28 Andrew Cagney <ac131313@redhat.com>
13728
13729 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13730 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13731 (initialize_current_architecture): Update target_byte_order using
13732 information from BFD.
aaa38bb5 13733 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13734 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13735
75bc7ddf
AC
137362002-01-28 Andrew Cagney <ac131313@redhat.com>
13737
13738 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13739 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13740
13741 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13742 #ifdef INVALID_FLOAT.
13743 * infcmd.c (do_registers_info): Ditto.
13744 * values.c (unpack_double): Ditto. Add comment.
13745
13746 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13747 already commented out.
13748
0280a90a
AS
137492002-01-26 Andreas Schwab <schwab@suse.de>
13750
13751 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13752 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13753 registers and add support for PTRACE_GETREGS.
13754
7072a954
AC
137552002-01-24 Andrew Cagney <ac131313@redhat.com>
13756
13757 GDB 5.1.1 released from 5.1 branch.
13758 * NEWS: Add 5.1.1 news.
13759 * README: Sync with 5.1 branch.
13760
86f902e0
FF
137612002-01-23 Fred Fish <fnf@redhat.com>
13762
13763 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13764 stabstring on initial malloc. Reallocing will copy it for us,
13765 if necessary.
13766
8af51c36
EZ
137672002-01-23 Elena Zannoni <ezannoni@redhat.com>
13768
aaa38bb5 13769 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13770 (HFILES_NO_SRCDIR): Remove hpread.h.
13771 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13772 (hpread.o): Update dependencies.
13773 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13774
13775 * hp-psymtab-read.c: Remove file.
13776 * hp-symtab-read.c: Remove file.
13777 * hpread.h: Remove file.
13778
13779 * hpread.c: Merge all contents of hp-psymtab-read.c,
13780 hp-symtab-read.c and hpread.h into this file, as it was prior to
13781 January 1999.
13782
13783 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13784 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13785 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13786 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13787
dc5cfeb6
EZ
137882002-01-23 Elena Zannoni <ezannoni@redhat.com>
13789
13790 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13791 fill_gregset): Call gdbarch_tdep() just once, assign result to
13792 variable and use that, instead of calling the function several
13793 times.
13794
ea87b71b
AO
137952002-01-24 Alexandre Oliva <aoliva@redhat.com>
13796
13797 * configure.host: Accept sparcv9 as alias for sparc64.
13798 * configure.tgt: Likewise.
13799
13fc0c2f
KB
138002002-01-22 Kevin Buettner <kevinb@redhat.com>
13801
13802 * solib-aix5.c (build_so_list_from_mapfile)
13803 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13804 arguments is not reversed.
13805 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13806 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13807
7bd872fe
EZ
138082002-01-22 Elena Zannoni <ezannoni@redhat.com>
13809
13810 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13811 modified version of obsolete sh_fetch_pseudo_register.
13812 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13813 (sh4_register_read): New function.
13814 (sh_pseudo_register_write): New function. Renamed and modified
13815 version of obsolete sh_store_pseudo_register.
13816 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13817 (sh4_register_write): New function.
13818 (sh_gdbarch_init): Remove setting of gdbarch function
13819 fetch_pseudo_register and store_pseudo_register. Remove setting of
13820 register_convert_to_raw, register_convert_to_virtual,
13821 register_convertible.
13822 (sh_sh4_register_convertible): Delete. No longer needed. All is
13823 taken care by architecture specific functions
13824 register_read/register_write.
13825 (sh_sh4_register_convert_to_virtual): Make static.
13826 (sh_sh4_register_convert_to_raw): Ditto.
13827
069e84fd
AC
138282002-01-22 Andrew Cagney <ac131313@redhat.com>
13829
13830 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13831 (floatformat_is_nan, floatformat_mantissa): Ditto.
13832
13833 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13834 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13835 builtin_type_ieee_double_little,
13836 builtin_type_ieee_double_littlebyte_bigword,
13837 builtin_type_m68881_ext, builtin_type_i960_ext,
13838 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13839 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13840 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13841 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13842
211a4f69
CV
138432002-01-22 Corinna Vinschen <vinschen@redhat.com>
13844
13845 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13846 parameter. Set frameless flag if it exists and depended of
13847 whether the scanned function is frameless or not.
13848 (xstormy16_skip_prologue): If function is frameless, return
13849 result of xstormy16_scan_prologue().
13850 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13851 call.
13852
f81353e4
EZ
138532002-01-21 Elena Zannoni <ezannoni@redhat.com>
13854
13855 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13856 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13857 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13858 sh_sh4_register_byte, sh_sh4_register_raw_size,
13859 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13860 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13861 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13862 sh_store_pseudo_register, sh_do_pseudo_register): Call
13863 gdbarch_tdep() just once, assign result to variable and use that,
13864 instead of calling the function several times.
13865
63c73a17
MK
138662002-01-20 Mark Kettenis <kettenis@gnu.org>
13867
13868 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13869 macros instead of LAST_FPU_CTRL_REGNUM.
13870 (store_register): Likewise.
13871
39ad761d
JB
138722002-01-21 Jim Blandy <jimb@redhat.com>
13873
13874 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13875 is up-to-date before running the program, not just when a program
13876 exits.
13877
3d74b771
FF
138782002-01-21 Fred Fish <fnf@redhat.com>
13879
13880 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13881 when we have found all instructions we are looking for.
13882
966fbf70
RE
138832002-01-21 Richard Earnshaw <rearnsha@arm.com>
13884
13885 * arm-tdep.c (arm_register_name): New function.
13886 (arm_registers_names): Make static.
13887 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13888 (arm_register_name): Declare.
13889 (REGISTER_NAME): Use it.
13890
c3b4394c
RE
138912002-01-21 Richard Earnshaw <rearnsha@arm.com>
13892 Kevin Buettner <kevinb@redhat.com>
13893
13894 Convert arm targets to new FRAME interface.
13895 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13896 (arm_frame_find_save_regs): Delete.
13897 (arm_frame_init_saved_regs): New.
13898 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13899 Allocate extra_info as required. Convert all uses of fsr.regs
13900 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13901 to use extra_info.
13902 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13903 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13904 (check_prologue_cache, save_prologue_cache): Likewise.
13905 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13906 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13907 (FRAME_FIND_SAVED_REGS): Delete.
13908 (arm_frame_find_saved_regs): Delete prototype.
13909 (arm_frame_init_saved_regs): New prototype.
13910 (FRAME_INIT_SAVED_REGS): Define.
13911
61d99182
AC
139122002-01-20 Andrew Cagney <ac131313@redhat.com>
13913
13914 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13915
6aaea291
AC
139162002-01-20 Andrew Cagney <ac131313@redhat.com>
13917
13918 From Jeff Law <law@redhat.com>:
13919 * infttrace.c: Include <sys/pstat.h>.
13920 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13921 exec file if the ttrace equivalent fails.
13922
15f698d2
AC
139232002-01-20 Andrew Cagney <ac131313@redhat.com>
13924
13925 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13926 (closeLogFile): Ditto.
13927
f86ddd7c
MC
139282002-01-20 Michael Chastain <mec@shout.net>
13929
13930 * top.c (print_gdb_version): Bump copyright year to 2002.
13931
904507ce
AC
139322002-01-20 Andrew Cagney <ac131313@redhat.com>
13933
13934 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13935 Zannoni and Eli Zaretskii.
13936
d7f0b9ce
DJ
139372002-01-20 Daniel Jacobowitz <drow@mvista.com>
13938
13939 * buildsym.c: Update copyright years.
13940 * c-typeprint.c: Likewise.
13941 * dwarf2read.c: Likewise.
13942 * f-typeprint.c: Likewise.
13943 * gdbtypes.c: Likewise.
13944 * gdbtypes.h: Likewise.
13945 * hp-symtab-read.c: Likewise.
13946 * hpread.c: Likewise.
13947 * mdebugread.c: Likewise.
13948 * p-typeprint.c: Likewise.
13949
3fd3d7d2
AC
139502002-01-20 Andrew Cagney <ac131313@redhat.com>
13951
13952 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13953 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13954 byte-order selectable.
13955 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13956 * arch-utils.c: Ditto.
13957 (set_endian): Ditto.
13958 (set_endian_from_file): Ditto.
13959 * gdbserver/low-sim.c (create_inferior): Ditto.
13960 * gdbarch.sh: Ditto.
13961 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13962 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13963 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13964 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13965 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13966 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13967 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13968 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13969 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13970 macro definition.
13971 * config/mips/tm-wince.h: Remove #undef of macro
13972 TARGET_BYTE_ORDER_SELECTABLE.
13973 * config/sh/tm-wince.h: Ditto.
13974
b02dede2
DJ
139752002-01-20 Daniel Jacobowitz <drow@mvista.com>
13976
13977 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13978 member function fields. Add accessor macro
13979 TYPE_FN_FIELD_ARTIFICIAL.
13980 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13981 * c-typeprint.c (c_type_print_base): Skip artificial member
13982 functions.
13983
c3643761
DJ
139842002-01-20 Daniel Jacobowitz <drow@mvista.com>
13985
13986 * f-typeprint.c: Delete unused function f_type_print_args.
13987 * p-typeprint.c: Delete unused function pascal_type_print_args.
13988
8176bb6d
DJ
139892002-01-20 Daniel Jacobowitz <drow@mvista.com>
13990
13991 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13992 comment. Add ``artificial'' to ``union field_location''.
13993
13994 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13995
13996 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13997 * mdebugread.c (parse_symbol): Likewise.
13998 * stabsread.c (define_symbol): Likewise.
13999 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14000 initializing TYPE_FIELD_BITPOS to n (obsolete).
14001 (hpread_doc_function_type): Likewise.
14002 * hpread.c (hpread_function_type): Likewise.
14003
7fd60527
AC
140042002-01-20 Andrew Cagney <ac131313@redhat.com>
14005
14006 * configure.in (host_makefile_frag): Only require a host makefile
14007 fragment when a native build.
14008 * configure: Re-generate.
14009
c2f05ac9
AC
140102002-01-20 Andrew Cagney <ac131313@redhat.com>
14011
14012 * doublest.h (floatformat_from_type): Declare.
14013 * doublest.c (floatformat_from_type): New function.
14014 (convert_typed_floating): Use.
14015
14016 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14017 call to function floatformat_from_type.
14018
14019 * gdbarch.sh (IEEE_FLOAT): Delete.
14020 * gdbarch.h, gdbarch.c: Re-generate.
14021 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14022 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14023 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14024 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14025 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14026 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14027 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14028 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14029 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14030 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14031 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
14032 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14033
14034 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14035 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14036 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14037 * sh-tdep.c (sh_gdbarch_init): Ditto.
14038 * mips-tdep.c (mips_gdbarch_init): Ditto.
14039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14040 * cris-tdep.c (cris_gdbarch_init): Ditto.
14041
abf22e64
AJ
140422002-01-20 Jiri Smid <smid@suse.cz>
14043
14044 * configure.host, configure.tgt: Support x86-64.
14045 * NEWS: Note new target x86-64.
14046
b7c4cbf8
AJ
14047 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14048 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14049 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14050 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14051 x86-64-linux-nat.o): Fix dependencies.
14052
82600034
AC
140532002-01-19 Andrew Cagney <ac131313@redhat.com>
14054
14055 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14056 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14057 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14058 * config/sparc/xm-sun4os4.h: Delete file.
14059 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 14060
bbe5c628
AC
140612002-01-19 Andrew Cagney <ac131313@redhat.com>
14062
14063 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14064 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14065 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14066 * config/i386/i386lynx.mh (XM_FILE): Delete.
14067 * config/rs6000/xm-rs6000ly.h: Delete file.
14068 * config/sparc/xm-sparclynx.h: Delete file.
14069 * config/m68k/xm-m68klynx.h: Delete file.
14070 * config/i386/xm-i386lynx.h: Delete file.
14071 * config/xm-lynx.h: Delete file.
14072 * config/djgpp/fnchange.lst: Update.
14073
f8453e34
JT
140742002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14075
14076 * alpha-tdep.c (alpha_register_byte): New function.
14077 (alpha_register_raw_size): Ditto.
14078 (alpha_register_virtual_size): Ditto.
14079 (alpha_skip_prologue_internal): Renamed from
14080 alpha_skip_prologue.
14081 (alpha_skip_prologue): New version that calls
14082 alpha_skip_prologue_internal.
14083 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14084 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14085 second argument from alpha_skip_prologue.
14086 (REGISTER_BYTE): Use alpha_register_byte.
14087 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14088 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14089 (FRAMELESS_FUNCTION_INVOCATION): Use
14090 generic_frameless_function_invocation_not.
14091 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14092 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14093
52d9e613
AC
140942002-01-19 Andrew Cagney <ac131313@redhat.com>
14095
14096 * config/mips/xm-news-mips.h: Delete file.
14097 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14098
14099 * config/m88k/xm-m88k.h: Delete file.
14100 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14101 * config/m88k/xm-delta88v4.h: Ditto.
14102 * config/m88k/xm-delta88.h: Ditto.
14103
14104 * config/alpha/xm-fbsd.h: Delete file.
14105 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14106
14107 * config/sparc/xm-sparc.h: Delete file.
14108 * Makefile.in (xm-sun4os4.h): Delete dependency.
14109 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14110 * config/sparc/xm-sun4os4.h: Ditto.
14111 * config/sparc/xm-linux.h: Ditto.
14112
14113 * config/i386/xm-windows.h: Delete file.
14114
2d1b2124
AC
141152002-01-19 Andrew Cagney <ac131313@redhat.com>
14116
14117 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14118 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14119
ee1f65f0
JT
141202002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14121
14122 * alpha-tdep.c (alpha_call_dummy_words): New.
14123 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14124 (CALL_DUMMY_P): Define.
14125 (CALL_DUMMY_WORDS): Define.
14126 (SIZEOF_CALL_DUMMY_WORDS): Define.
14127
98081e55
PB
141282002-01-19 Per Bothner <per@bothner.com>
14129
14130 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14131 isn't NULL, which can happen with some gcj-3.x-produced code.
14132
0d056799
JT
141332002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14134
14135 * alpha-tdep.c (alpha_register_virtual_type): New function.
14136 (alpha_init_frame_pc_first): Ditto.
14137 (alpha_fix_call_dummy): Ditto.
14138 (alpha_store_struct_return): Ditto.
14139 (alpha_extract_struct_value_address): Ditto.
14140 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14141 alpha_register_virtual_type.
14142 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14143 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14144 alpha_extract_struct_value_address.
14145 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14146 (INIT_FRAME_PC): Use init_frame_pc_noop.
14147 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14148
4604bcad
MK
141492002-01-19 Mark Kettenis <kettenis@gnu.org>
14150
14151 * i386gnu-nat.c: Include "i386-tdep.h".
14152 (fetch_fpregs): Simplify code dealing with uninitialized floating
14153 point states such that it doesn't require FP7_REGNUM.
14154
140f9984
JT
141552002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14156
abf22e64
AJ
14157 * alpha-tdep.c (frame_extra_info): New.
14158 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14159 frame->extra_info.
14160 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14161 (alpha_frame_saved_pc): Use frame->extra_info.
14162 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14163 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14164 (init_extra_frame_info): Rename to...
14165 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14166 (alpha_print_extra_frame_info): New function.
140f9984
JT
14167 (alpha_frame_locals_address): Ditto.
14168 (alpha_frame_args_address): Ditto.
abf22e64 14169 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14170 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14171 alpha_frame_args_address.
abf22e64 14172 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14173 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14174 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14175 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14176 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14177 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14178
d734c450
JT
141792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14180
14181 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14182 (alpha_cannot_fetch_register): Ditto.
14183 (alpha_cannot_store_register): Ditto.
14184 (alpha_register_convertible): Ditto.
14185 (alpha_use_struct_convention): Ditto.
14186 * config/alpha/tm-alpha.h: Update copyright years.
14187 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14188 (INNER_THAN): Use core_addr_lessthan.
14189 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14190 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14191 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14192 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14193 (FRAME_CHAIN): Remove unnecessary cast.
14194
b4ceaee6
AC
141952002-01-18 Andrew Cagney <ac131313@redhat.com>
14196
14197 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14198 obsolete.
14199
0a65a603
AC
142002002-01-18 Andrew Cagney <ac131313@redhat.com>
14201
14202 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14203 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14204 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14205 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14206 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14207 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14208 * x86-64-linux-nat.c: Ditto.
14209
636a6dfc
JT
142102002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14211
abf22e64 14212 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14213 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14214 (REGISTER_NAME): Define.
14215
acceddb6
JT
142162002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14217
14218 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14219
ec32e4be
JT
142202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14221
14222 * alpha-tdep.c: Update copyright years.
14223 (alpha_next_pc): New function.
14224 (alpha_software_single_step): Ditto.
14225 * config/alpha/tm-alpha.h: Add prototype for
14226 alpha_software_single_step.
14227
e771a871
JT
142282002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14229
14230 * alphabsd-nat.c: Update copyright years.
14231 (fill_gregset): Use regcache_collect.
14232 (fill_fpregset): Likewise.
14233 (fetch_inferior_registers): Only fetch integer registers
14234 if requested to do so.
14235 (store_inferior_registers): Only store integer registers
14236 if requested to do so.
14237
7708fa01
AC
142382002-01-17 Andrew Cagney <ac131313@redhat.com>
14239
14240 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14241 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14242 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14243 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14244 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14245 * config/arm/linux.mh (XDEPFILES): Delete.
14246 * config/arm/nbsd.mh (XDEPFILES): Delete.
14247 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14248 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14249 * config/i386/i386m3.mh (XDEPFILES): Delete.
14250 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14251 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14252 * config/i386/fbsd.mh (XDEPFILES): Delete.
14253 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14254 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14255 * config/i386/i386v4.mh (XDEPFILES): Delete.
14256 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14257 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14258 * config/i386/i386aix.mh (XDEPFILES): Delete.
14259 * config/i386/go32.mh (XDEPFILES): Delete.
14260 * config/i386/cygwin.mh (XDEPFILES): Delete.
14261 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14262 * config/i386/i386mach.mh (XDEPFILES): Delete.
14263 * config/i386/i386v32.mh (XDEPFILES): Delete.
14264 * config/i386/linux.mh (XDEPFILES): Delete.
14265 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14266 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14267 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14268 * config/i386/i386sco.mh (XDEPFILES): Delete.
14269 * config/i386/i386v.mh (XDEPFILES): Delete.
14270 * config/i386/nbsd.mh (XDEPFILES): Delete.
14271 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14272 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14273 * config/i386/symmetry.mh (XDEPFILES): Delete.
14274 * config/i386/obsd.mh (XDEPFILES): Delete.
14275 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14276 * config/ia64/linux.mh (XDEPFILES): Delete.
14277 * config/ia64/aix.mh (XDEPFILES): Delete.
14278 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14279 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14280 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14281 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14282 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14283 * config/m68k/linux.mh (XDEPFILES): Delete.
14284 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14285 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14286 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14287 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14288 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14289 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14290 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14291 * config/m88k/delta88.mh (XDEPFILES): Delete.
14292 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14293 * config/m88k/m88k.mh (XDEPFILES): Delete.
14294 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14295 * config/mips/linux.mh (XDEPFILES): Delete.
14296 * config/mips/irix6.mh (XDEPFILES): Delete.
14297 * config/mips/irix5.mh (XDEPFILES): Delete.
14298 * config/mips/irix4.mh (XDEPFILES): Delete.
14299 * config/mips/irix3.mh (XDEPFILES): Delete.
14300 * config/mips/decstation.mh (XDEPFILES): Delete.
14301 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14302 (NATDEPFILES): Move core-aout.o to here.
14303 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14304 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14305 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14306 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14307 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14308 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14309 * config/pa/hpux11.mh (XDEPFILES): Delete.
14310 * config/powerpc/aix.mh (XDEPFILES): Delete.
14311 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14312 * config/powerpc/linux.mh (XDEPFILES): Delete.
14313 * config/romp/rtbsd.mh: Rename XDEPFILES.
14314 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14315 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14316 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14317 * config/s390/s390.mh (XDEPFILES): Delete.
14318 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14319 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14320 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14321 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14322 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14323 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14324 * config/sparc/linux.mh (XDEPFILES): Delete.
14325 * config/vax/vaxult.mh (XDEPFILES): Delete.
14326 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14327 * Makefile.in (DEPFILES): Remove XDEPFILES.
14328
375fc983
AC
143292002-01-17 Andrew Cagney <ac131313@redhat.com>
14330
14331 * utils.c (internal_verror): Fix comments, default is yes not no.
14332 Update queries to match. Default to quit and dump core.
14333
8926118c
AC
143342002-01-17 Andrew Cagney <ac131313@redhat.com>
14335
14336 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14337 copyright.
14338 * defs.h, event-top.c, gdbcmd.h: Ditto.
14339 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14340 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14341 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14342 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14343 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14344 * mi/mi-main.c:Ditto.
14345
14346 * stack.c, symfile.c: Update copyright.
14347
45b7b345
DJ
143482002-01-17 Daniel Jacobowitz <drow@mvista.com>
14349
db728ff7
DJ
14350 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14351 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14352 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14353 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14354
db728ff7
DJ
143552002-01-17 Daniel Jacobowitz <drow@mvista.com>
14356
14357 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14358 * gdbserver/low-lynx.c (myattach): Likewise.
14359 * gdbserver/low-nbsd.c (myattach): Likewise.
14360 * gdbserver/low-sim.c (myattach): Likewise.
14361 * gdbserver/low-sparc.c (myattach): Likewise.
14362 * gdbserver/low-sun3.c (myattach): Likewise.
14363
14364 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14365
db728ff7 14366 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14367 (main): Handle "--attach".
14368
8de3c354
AC
143692002-01-16 Andrew Cagney <ac131313@redhat.com>
14370
14371 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14372 maintainer.
14373
b0129042
DJ
143742002-01-15 Daniel Jacobowitz <drow@mvista.com>
14375
14376 * c-typeprint.c (is_type_conversion_operator): Add additional
14377 check for non-conversion operators.
14378
ba8679fb 143792002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14380
14381 * linux-proc.c: Add "info proc" command, a la procfs.c.
14382 (read_mapping): New function, abstract and re-use code.
14383 (linux_find_memory_regions): Use new func read_mapping.
14384 (linux_info_proc_cmd): New function, implement "info proc".
14385 (_initialize_linux_proc): Add new command "info proc".
14386
e4f9b4d5
MS
143872002-01-15 Michael Snyder <msnyder@redhat.com>
14388
14389 * symfile.c (generic_load): Use bfd_map_over_sections method
14390 instead of manipulating bfd structure members directly.
14391 (add_section_size_callback): New function, bfd sections callback
14392 used by generic_load.
14393 (load_sections_callback): New function, bfd sections callback
14394 used by generic_load.
14395
08cf96df
EZ
143962002-01-15 Elena Zannoni <ezannoni@redhat.com>
14397
abf22e64 14398 [Based on work by Jim Blandy]
08cf96df
EZ
14399 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14400 (builtin_type_vec128): Export.
14401 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14402 types.
14403 (builtin_type_vec128): New builtin type for 128 bit vector
14404 registers.
14405 (build_gdbtypes): Initialize builtin_type_v16qi and
14406 builtin_type_v8hi. Create the vec128 register builtin type
14407 structure.
14408 (build_builtin_type_vec128): New function.
abf22e64 14409 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14410 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14411 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14412 AltiVec register to new builtin type.
14413
d7242108
DJ
144142001-01-15 Daniel Jacobowitz <drow@mvista.com>
14415
14416 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14417 to make_cv_type.
14418
4ee3352d
AC
144192002-01-14 Andrew Cagney <ac131313@redhat.com>
14420
14421 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14422 CLEAN_UP_REGISTER_VALUE.
14423 * regcache.c (supply_register): Update only call.
14424
f015b2e7
AC
144252002-01-14 Andrew Cagney <ac131313@redhat.com>
14426
14427 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14428 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14429 a29k-*-vxworks* targets as obsolete.
14430
356ae49d
MS
144312002-01-14 Michael Snyder <msnyder@redhat.com>
14432
14433 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14434 until we can resolve portability issues.
14435 * gregset.h: Remove references to fpxregs.
14436 * gcore.c (gcore_command): Initialize note_sec to NULL.
14437
ade8f45e
AC
144382002-01-13 Andrew Cagney <ac131313@redhat.com>
14439
14440 * signals.c (target_signal_to_name): Rewrite. Only use
14441 signals[].name when in bounds and non-NULL.
abf22e64 14442
89c49e7a
AC
144432002-01-13 Andrew Cagney <ac131313@redhat.com>
14444
14445 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14446 * signals.c (target_signal_to_name): Verify that SIG is within the
14447 bounds of the signals array.
14448
4daa9f9f
AC
144492002-01-13 Andrew Cagney <ac131313@redhat.com>
14450
14451 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14452
ba4bbdcb
KS
144532002-01-13 Keith Seitz <keiths@redhat.com>
14454
14455 * stack.c (print_frame_info_base): Print the frame's pc
14456 only if when print_frame_info_listing_hook is not defined.
14457
575bbeb6
KS
144582002-01-13 Keith Seitz <keiths@redhat.com>
14459
14460 * varobj.c (varobj_set_value): Make sure that there were no
14461 errors evaluating the object before attempting to set its
14462 value.
14463 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14464 so this offset adjustment is no longer necessary.
14465 (create_child): Don't set the error flag if the child is
14466 a CPLUS_FAKE_CHILD.
14467 (value_of_child): If value_fetch_lazy fails, return NULL
14468 so that callers will be notified that an error occurred.
14469 (c_value_of_variable): Delay check of variable's validity
14470 until later. We actually want all structs and unions to have
14471 the value "{...}".
14472 Do not return "???" for variables which could not be evaluated.
14473 This error condition must be returned to the caller so that it
14474 can get the error condition from gdb.
14475 (cplus_name_of_child): Adjust index for vptr before figuring
14476 out the name of the child.
14477 (cplus_value_of_child): If a child's (real) parent is not valid,
14478 don't even bother trying to give a value for it. Just return
14479 an error. Change all instances in this function.
14480 (cplus_type_of_child): If our parent is one of the "fake"
14481 parents, we need to get at the type of the real parent, and
14482 derive the child's true type using this information.
14483
b76898ab
AC
144842002-01-13 Andrew Cagney <ac131313@redhat.com>
14485
14486 From 2002-01-09 John Marshall <johnm@falch.net>:
14487 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14488 sources.redhat.com, and tweak some related URLs which had
14489 suffered from linkrot.
14490
b6649e88
AC
144912002-01-13 Andrew Cagney <ac131313@redhat.com>
14492
14493 From Jeff law:
14494 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14495 structures passed in registers.
14496
82cc5033
EZ
144972002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14498
14499 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14500 white space which prevented compilation. Reported by DSK
14501 <dsk@student.unsw.edu.au>.
14502
ba5f2f8a
MS
145032002-01-11 Michael Snyder <msnyder@redhat.com>
14504
fbd35540
MS
14505 * symfile.c (build_section_addr_info_from_section_tab):
14506 Use bfd access method instead of manipulating bfd directly.
14507 (syms_from_objfile): Ditto.
14508 (simple_overlay_update_1): Ditto.
14509 (simple_overlay_update): Ditto.
14510 (generic_load): Ditto.
14511 (overlay_unmapped_address): FIXME comment, bfd access methods.
14512 (sections_overlap): FIXME comment, bfd access methods.
14513 (pc_in_mapped_range): FIXME comment, bfd access methods.
14514 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14515 (section_is_mapped): FIXME comment, bfd access methods.
14516 (section_is_overlay): FIXME comment, bfd access methods.
14517
ba5f2f8a
MS
14518 * symfile.c (generic_load): Whitespace and long line cleanups.
14519 Remove duplicate variable, change several local variables to
14520 more appropriate data types.
14521 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14522
17df2af6
AC
145232002-01-12 Andrew Cagney <ac131313@redhat.com>
14524
14525 From Peter Schauer:
14526 * language.c (longest_local_hex_string_custom): Use phex_nz to
14527 convert NUM to a hex string.
14528
ec920329
EZ
145292002-01-12 Elena Zannoni <ezannoni@redhat.com>
14530
14531 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14532 the function.
538a76d6 14533 Update Copyright year.
ec920329 14534
3abd2e01
AC
145352002-01-12 Andrew Cagney <ac131313@redhat.com>
14536
14537 * language.c (longest_raw_hex_string): Delete unused function.
14538
b21b22e0
PS
145392002-01-11 Petr Sorfa <petrs@caldera.com>
14540
14541 * MAINTAINERS (write-after-approval): Add myself.
14542 * dwarf2read.c (read_tag_string_type): Handling of
14543 DW_AT_byte_size.
14544 (read_tag_string_type): FORTRAN fix to prevent propagation of
14545 first string size.
14546 (set_cu_language): Handling of DW_LANG_Fortran95
14547
747fe712
RE
145482002-01-11 Richard Earnshaw <rearnsha@arm.com>
14549
14550 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14551 GETPID(inferior_ptid).
14552 (store_inferior_registers): Likewise.
14553
f1bea926
JM
145542002-01-10 Jason Merrill <jason@redhat.com>
14555
14556 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14557 Fix DW_OP_minus.
14558
ae940673
AC
145592002-01-10 Andrew Cagney <ac131313@redhat.com>
14560
14561 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14562 and bfd/elf32-sh-nbsd.c.
14563
00546b04
MS
145642002-01-10 Michael Snyder <msnyder@redhat.com>
14565
352ed7b4
MS
14566 * NEWS: Mention --pid and corefile/proc-id behavior change.
14567
c18be923
MS
14568 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14569 * gcore.c: Include cli/cli-decode.h instead of command.h.
14570
00546b04
MS
14571 * main.c (captured_main): Add new command line option "--pid".
14572 If the second command line argument (following the symbol-file)
14573 begins with a digit, try to attach to it before trying to open
14574 it as a corefile.
14575 (print_gdb_help): Document the "--pid" argument.
14576
db60ec62
EZ
145772002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14578
14579 * completer.c (command_completer): New function.
14580
14581 * completer.h <command_completer>: Add prototype.
14582
14583 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14584 completer for the "help" command.
14585
39c22d1a
JM
145862002-01-09 Jason Merrill <jason@redhat.com>
14587
14588 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14589
c564377f
MS
145902002-01-09 Michael Snyder <msnyder@redhat.com>
14591
975aec09
MS
14592 * i386-linux-nat.c (fill_fpxregset): Make global.
14593 (store_fpxregset): Ditto.
14594
db4a10fa
MS
14595 * gregset.h (gdb_fpxregset_t): Define.
14596 (supply_fpxregset): Prototype.
14597 (fill_fpxregset): Prototype.
14598
c564377f
MS
14599 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14600
c3d45d70
RE
146012002-01-09 Richard Earnshaw <rearnsha@arm.com>
14602
14603 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14604 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14605 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14606
fcc87af1
AC
146072002-01-09 Andrew Cagney <ac131313@redhat.com>
14608
14609 * MAINTAINERS: Update target maintainer rules so that any
14610 Maintainer can approve a tested patch for a maintenance-only
14611 target.
14612
dd96c05b
RE
146132002-01-09 Richard Earnshaw <rearnsha@arm.com>
14614
d4297db9 14615 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14616
d4297db9 14617 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14618 IN_SIGTRAMP.
14619
145fdc6e
MS
146202002-01-08 Michael Snyder <msnyder@redhat.com>
14621
14622 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14623 real name of the executable, rather than the /proc name.
14624
be4d1333
MS
146252002-01-03 Michael Snyder <msnyder@redhat.com>
14626
14627 Implement a "generate-core-file" command in gdb, save target state.
14628 * gcore.c: New file. Implement new command 'generate-core-file'.
14629 Save a corefile image of the current state of the inferior.
14630 * linux-proc.c: Add linux-specific code for saving corefiles.
14631 * target.h (struct target_ops): Add new target vectors for saving
14632 corefiles; to_find_memory_regions and to_make_corefile_notes.
14633 (target_find_memory_regions): New macro.
14634 (target_make_corefile_notes): New macro.
14635 * target.c (update_current_target): Inherit new target methods.
14636 (dummy_find_memory_regions): New place-holder method.
14637 (dummy_make_corefile_notes): New place-holder method.
14638 (init_dummy_target): Initialize new dummy target vectors.
14639 * exec.c (exec_set_find_memory_regions): New function.
14640 Allow the exec_ops vector for memory regions to be taken over.
14641 (exec_make_note_section): New function, target vector method.
14642 * defs.h (exec_set_find_memory_regions): Export prototype.
14643 * procfs.c (proc_find_memory_regions): New function, corefile method.
14644 (procfs_make_note_section): New function, corefile method.
14645 (init_procfs_ops): Set new target vector pointers.
14646 (find_memory_regions_callback): New function.
14647 (procfs_do_thread_registers): New function.
14648 (procfs_corefile_thread_callback): New function.
14649 * sol-thread.c (sol_find_memory_regions): New function.
14650 (sol_make_note_section): New function.
14651 (init_sol_thread_ops): Initialize new target vectors.
14652 * inftarg.c (inftarg_set_find_memory_regions): New function.
14653 Allow to_find_memory_regions vector to be taken over.
14654 (inftarg_set_make_corefile_notes): New function.
14655 Allow to_make_corefile_notes vector to be taken over.
14656 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14657 interface layer if not target_has_execution (may be a corefile).
14658 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14659 * config/sparc/sun4sol2.mh: Ditto.
14660 * config/alpha/alpha-linux.mh: Ditto.
14661 * config/arm/linux.mh: Ditto.
14662 * config/i386/x86-64linux.mh: Ditto.
14663 * config/ia64/linux.mh: Ditto.
14664 * config/m68k/linux.mh: Ditto.
14665 * config/mips/linux.mh: Ditto.
14666 * config/powerpc/linux.mh: Ditto.
14667 * config/sparc/linux.mh: Ditto.
14668
c6b92abd
MS
146692002-01-07 Michael Snyder <msnyder@redhat.com>
14670
14671 * arm-linux-nat.c: Remove references to regcache.c internal data
14672 (registers[] and register_valid[]).
14673
4b09dc8c
MS
146742002-01-07 Michael Snyder <msnyder@redhat.com>
14675
abf22e64
AJ
14676 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14677 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14678 symbol file and shlibs.
14679 * Makefile.in: Add rule for linux-proc.o.
14680 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14681 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14682 * config/arm/linux.mh: Ditto.
14683 * config/i386/linux.mh: Ditto.
14684 * config/i386/x86-64linux.mh: Ditto.
14685 * config/ia64/linux.mh: Ditto.
14686 * config/m68k/linux.mh: Ditto.
14687 * config/mips/linux.mh: Ditto.
14688 * config/powerpc/linux.mh: Ditto.
14689 * config/sparc/linux.mh: Ditto.
14690
c25b74ac
PM
146912002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14692
14693 * win32-nat.c: Add i386-tdep.h dependency.
14694
94cd915f
MS
146952002-01-07 Michael Snyder <msnyder@redhat.com>
14696
c7cccb76
MS
14697 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14698 instead of bfd_get_arch_size. Don't bail out just because
14699 there's no exec_bfd.
abf22e64 14700
34c0bd93
MS
14701 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14702 * p-valprint.c (pascal_object_print_value): Ditto.
14703 * somread.c (som_symtab_read): Ditto.
14704 * symfile.c (simple_free_overlay_region_table): Ditto.
14705 * valops.c (value_assign): Ditto.
14706
21c1c920
MS
14707 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14708 use tilde_expand and strerror for opening save-tracepoints file.
14709
5bbd998e
MS
14710 * thread-db.c (thread_db_new_objfile): Indendation fix.
14711
94cd915f
MS
14712 * infptrace.c (GDB_MAX_ALLOCA): New define.
14713 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14714 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14715 can be overridden with whatever value is appropriate to the host).
14716 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14717 alloca to allocate potentially large buffer.
14718 * rs6000-nat.c (child_xfer_memory): Ditto.
14719 * symm-nat.c (child_xfer_memory): Ditto.
14720 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14721
494e8a93
JSC
147222002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14723
14724 From Nick Clifton <nickc@redhat.com>
14725 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14726
d0e1d48e
MS
147272002-01-07 Michael Snyder <msnyder@redhat.com>
14728
abf22e64 14729 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14730 Don't use exec_bfd if it's NULL.
14731
290b2c7a
MK
147322002-01-06 Mark Kettenis <kettenis@gnu.org>
14733
abf22e64 14734 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14735
aef21287
AC
147362002-01-06 Andrew Cagney <ac131313@redhat.com>
14737
14738 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14739 * gnu-nat.c: Ditto.
14740
30efa627
AC
147412002-01-06 Andrew Cagney <ac131313@redhat.com>
14742
14743 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14744 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14745 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14746 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14747 z8k-coff have not been multi-arched. Update z8k-coff build
14748 status.
14749
9b4ff276
AC
147502002-01-06 Andrew Cagney <ac131313@redhat.com>
14751
14752 * MAINTAINERS: Mark a29k target as obsolete.
14753 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14754 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14755 comments.
14756 * NEWS: Note that a29k targets are obsolete.
14757 * a29k-tdep.c: Mark as obsolete.
14758 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14759 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14760 a29k-*-vxworks* targets as obsolete.
14761 * remote-adapt.c: Obsolete.
14762 * remote-eb.c: Obsolete.
14763 * remote-mm.c: Obsolete.
14764 * remote-udi.c: Obsolete.
14765 * config/a29k/a29k-udi.mt: Obsolete.
14766 * config/a29k/a29k.mt: Obsolete.
14767 * config/a29k/tm-a29k.h: Obsolete.
14768 * config/a29k/tm-vx29k.h: Obsolete.
14769 * config/a29k/vx29k.mt: Obsolete.
14770
a9011d31
AC
147712002-01-05 Andrew Cagney <ac131313@redhat.com>
14772
14773 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14774 with BFD_ENDIAN_BIG.
14775
9299404e
AC
147762002-01-05 Andrew Cagney <ac131313@redhat.com>
14777
14778 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14779 * configure, config.in: Re-generate.
14780 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14781 * defs.h: Do not include <endian.h>.
14782
7e89e357
JT
147832002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14784
14785 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14786 * config.in: Regenerate.
14787 * configure.in: Update copyright years.
14788 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14789 * configure: Regenerate.
14790 * i386bsd-nat.c: Update copyright years.
14791 (fill_gregset): Use regcache_collect.
14792 (fetch_inferior_registers): Only fetch integer registers
14793 if requested to do so. Add support for XMM registers
14794 using PT_GETXMMREGS.
14795 (store_inferior_registers): Only store integer registers
14796 if requested to do so. Add support for XMM registers
14797 using PT_SETXMMREGS.
14798 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14799 (store_inferior_registers): Remove.
14800 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14801 (fetch_elfcore_registers): New function.
14802 (i386nbsd_elfcore_fns): New.
14803 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14804 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14805 i386bsd-nat.o.
14806 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14807 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14808 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14809 * config/i386/tm-nbsd.h: Update copyright years.
14810 (HAVE_SSE_REGS): Define.
14811 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14812 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14813 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14814 (SIGCONTEXT_PC_OFFSET): Remove.
14815 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14816
a752853e
AC
148172002-01-05 Andrew Cagney <ac131313@redhat.com>
14818
14819 * configure.tgt: Remove powerpc-*-macos* target.
14820 * config/m68k/xm-mpw.h: Delete file.
14821 * config/xm-mpw.h: Delete file.
14822 * ser-mac.c: Delete file.
14823 * mpw-make.sed: Delete file.
14824 * mpw-config.in: Delete file.
14825 * mac-xdep.c: Delete file.
14826 * mac-gdb.r: Delete file.
14827 * mac-defs.h: Delete file.
14828 * mac-nat.c: Delete file.
14829 * config/powerpc/macos.mh: Delete file.
14830 * config/powerpc/macos.mt: Delete file.
14831 * config/powerpc/nm-macos.h: Delete file.
14832 * config/powerpc/tm-macos.h: Delete file.
14833 * source.c (openp, open_source_file): Remove obsolete code.
14834 * top.c (gdb_readline): Ditto.
14835 * utils.c (query): Ditto.
14836 * event-top.c (display_gdb_prompt): Ditto.
14837 * Makefile.in (ser-mac.o): Delete obsolete target.
14838 * NEWS: Update.
14839
d7449b42
AC
148402002-01-04 Andrew Cagney <ac131313@redhat.com>
14841
14842 * defs.h (BIG_ENDIAN): Delete macro definition.
14843 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14844 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14845 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14846 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14847 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14848 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14849 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14850 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14851 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14852 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14853 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14854 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14855 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14856 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14857 * gdbarch.c: Re-generate.
14858
356374e8
DJ
148592002-01-04 Daniel Jacobowitz <drow@mvista.com>
14860
14861 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14862 for core files.
14863
a2b8f8f8
JT
148642002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14865
14866 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14867
12466af9
AC
148682002-01-04 Andrew Cagney <ac131313@redhat.com>
14869
14870 * value.h (value_ptr): Delete typedef.
14871
3549ab40
JT
148722002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14873
14874 * i386nbsd-nat.c: Update copyright years.
14875 Include i386-tdep.h.
14876
fedbd091
EZ
148772002-01-04 Elena Zannoni <ezannoni@redhat.com>
14878
14879 * stabsread.c: Update copyright years.
14880
14881 From Debashis Mahata <debashis.mahata@wipro.com>:
14882 (read_struct_fields): Deal with Sun C compiler erroneous stab
14883 output for structs and unions.
fec8b34f 14884 Fix PR gdb/269.
fedbd091 14885
eb43544b
DJ
148862002-01-04 Daniel Jacobowitz <drow@mvista.com>
14887
14888 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14889 prototype.
14890
1514d34e
DJ
148912002-01-04 Daniel Jacobowitz <drow@mvista.com>
14892
14893 * cp-abi.c: Fix whitespace.
14894 (baseclass_offset): New wrapper function.
14895 * cp-abi.h (baseclass_offset): Add prototype.
14896 (struct cp_abi_ops): Add baseclass_offset pointer.
14897
14898 * valops.c (vb_match): Move to...
14899 * gnu-v2-abi.c (vb_match): here.
14900 * valops.c (baseclass_offset): Move to...
14901 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14902
14903 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14904
14905 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14906 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14907 * hpacc-abi.c (init_hpacc_ops): Likewise.
14908
7f8c9282
DJ
149092002-01-04 Daniel Jacobowitz <drow@mvista.com>
14910
14911 * valops.c (find_overload_match): Accept obj as a
14912 reference parameter. Update it before returning.
14913 * value.h (find_overload_match): Update prototype.
14914 * eval.c (evaluate_subexp_standard): Pass object to
14915 find_overload_match by reference.
14916
f23631e4
AC
149172002-01-03 Andrew Cagney <ac131313@redhat.com>
14918
14919 * valarith.c: Replace value_ptr with struct value pointer. Remove
14920 register attribute from value declarations.
14921 * valops.c: Ditto.
14922 * value.h: Ditto.
14923 * scm-lang.c (scm_lookup_name): Ditto.
14924
79e10fab 149252002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14926
79e10fab
AC
14927 Abstract the functionality of iterating over mapped memory
14928 regions into a general purpose iterator function.
abf22e64 14929 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14930 iterator for memory sections.
14931 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14932 (solib_mappings_callback): New function, callback for above.
14933 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14934 (info_mappings_callback): New function, callback for above.
14935
14936 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14937
c5ad026a
MK
149382002-01-01 Mark Kettenis <kettenis@gnu.org>
14939
d2a7c97a
MK
14940 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14941 * i386-tdep.c: Include "elf-bfd.h".
14942 (process_note_abi_tag_sections): New function.
14943 (i386_gdbarch_init): Add code to recognize various OS/ABI
14944 combinations.
14945
c5ad026a
MK
14946 * maint.c (_initialize_maint_cmds): Add missing \ in
14947 string-literal.
14948
a1a5b71e 14949For older changes see ChangeLog-2001
c906108c
SS
14950\f
14951Local Variables:
14952mode: change-log
14953left-margin: 8
14954fill-column: 74
14955version-control: never
14956End:
This page took 2.567281 seconds and 4 git commands to generate.