2002-12-23 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e45febe2
DC
12002-12-23 David Carlton <carlton@math.stanford.edu>
2
3 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
4 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
5 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
6 information associated to a minsym, not lookup_symbol.
7
2213a65d
MK
82002-12-21 Mark Kettenis <kettenis@gnu.org>
9
10 * x86-64-tdep.h (x86_64_init_abi): New prototype.
11 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
12 (x86_64_init_abi): Make non-static. Set number of pseudo
13 registers to 0.
14 (x86_64_gdbarch_init): Remove function.
15 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
16 Remove code dealing with dissambly.
17 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
18 (_initialize_x86_64_linux_tdep): New function.
19 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
20 i386-tdep.o.
21
05816f70
MK
222002-12-14 Mark Kettenis <kettenis@gnu.org>
23
24 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
25 (struct gdb_osabi_handler): Remove member `arch'. Add member
26 `arch_info'.
27 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
28 construct a `struct bfd_arch_info' and store it in the `struct
29 gdb_osabi_handler' that is created.
30 (gdbarch_init_osabi): Check for compatibility based on machine
31 type and architecture.
32 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
33 comment.
34 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
35 second argument in call to gdbarch_register_osabi.
36 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
37 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
38 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
39 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
40 * arm-tdep.c (_initialize_arm_tdep): Likewise.
41 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
42 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
43 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
44 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
45 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
46 * i386-tdep.c (_initialize_i386_tdep): Likewise.
47 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
48 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
49 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
50 _initialize_i386bsd_tdep and updated likewise.
51 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
52 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
53 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
54 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
55 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
56 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
57 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
58 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
59 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
60 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
61
743b930b
KB
622002-12-20 Kevin Buettner <kevinb@redhat.com>
63
64 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
65 DT_MIPS_RLD_MAP case for 64-bit targets.
66
3758ac48
KB
672002-12-20 Kevin Buettner <kevinb@redhat.com>
68
69 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
70 ``temp_saved_regs'', not the pointer or other storage contiguous
71 to this pointer.
72
19ed69dd
KB
732002-12-20 Kevin Buettner <kevinb@redhat.com>
74
75 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
76 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
77 (mips_linux_get_longjmp_target): Delete declarations.
78 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
79 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
80 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
81 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
82 (mips_linux_get_longjmp_target)
83 (mips_linux_svr4_fetch_link_map_offsets): Make static.
84 (mips_linux_init_abi): New function.
85 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
86
7990a578
EZ
872002-12-19 Keith Seitz <keiths@redhat.com>
88
89 patch committed by Elena Zannoni <ezannoni@redhat.com>
90 * thread.c (do_captured_list_thread_ids): Call prune_threads and
91 target_find_new_threads. Fix for PR mi/669.
92
84fba31b
DC
932002-12-19 David Carlton <carlton@math.stanford.edu>
94
95 * linespec.c (decode_line_1): Move code into decode_all_digits.
96 (decode_all_digits): New function.
97
2fc70c99
KB
982002-12-19 Kevin Buettner <kevinb@redhat.com>
99
100 * exec.c (print_section_info): Select a format string to use with
101 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
102
2f107107
AC
1032002-12-18 Andrew Cagney <ac131313@redhat.com>
104
105 * frame.c (deprecated_update_current_frame_pc_hack): Replace
106 deprecated_update_current_frame_pc_hack.
107 (deprecated_update_frame_base_hack): New function.
108 * frame.h (deprecated_update_frame_pc_hack): Replace
109 (deprecated_update_frame_base_hack): Declare.
110 * infrun.c (normal_stop): Update.
111
c9012c71
AC
1122002-12-18 Andrew Cagney <ac131313@redhat.com>
113
114 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
115 frame_extra_info_zalloc.
116 (rs6000_frame_args_address): Use get_frame_extra_info.
117 (frame_get_saved_regs): Use get_frame_saved_regs.
118 (frame_initial_stack_address): Use get_frame_saved_regs and
119 get_frame_extra_info.
120 (frame_initial_stack_address): Use get_frame_extra_info.
121
6819ae38
KB
1222002-12-17 Kevin Buettner <kevinb@redhat.com>
123
124 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
125 array size.
126 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
127 checks for r3900_regnames[].
128
625602f2
RE
1292002-12-17 Richard Earnshaw <rearnsha@arm.com>
130
131 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
132 All uses changed
133 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
134
38d49aff
DC
1352002-12-17 David Carlton <carlton@math.stanford.edu>
136
137 * symtab.c (lookup_partial_symbol): Don't search past the end of
138 the partial symbols.
139
30f7db39
AC
1402002-12-17 Andrew Cagney <ac131313@redhat.com>
141
142 * stack.c (frame_info): Use get_frame_saved_regs.
143 * breakpoint.c (until_break_command): Use get_frame_pc.
144
23136709
KB
1452002-12-16 Kevin Buettner <kevinb@redhat.com>
146
147 * buildsym.c (block_end_complaint, anon_block_end_complaint)
148 (innerblock_complaint, innerblock_anon_complaint)
149 (blockvector_complaint): Delete deprecated complaint structs.
150 (finish_block, make_blockvector, end_symtab): Replace calls
151 to complain() with calls to complaint().
152 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
153 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
154 (unexpected_type_complaint, bad_sclass_complaint)
155 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
156 Delete deprecated complaint structs.
157 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
158 Replace calls to complain() with calls to complaint().
159 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
160 (unknown_symtype_complaint, unknown_symchar_complaint)
161 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
162 (lbrac_mismatch_complaint, repeated_header_complaint)
163 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
164 Delete deprecated complaint structs.
165 (unknown_symtype_complaint, lbrac_mismatch_complaint)
166 (repeated_header_complaint)
167 (function_outside_compiliation_unit_complaint): New functions.
168 (add_old_header_file, find_corresponding_bincl_psymtab)
169 (set_namestring, find_stab_function_addr, read_dbx_symtab)
170 (process_one_symbol): Replace calls to complain() with, possibly
171 indirect, calls to complaint().
172 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
173 (unknown_attribute_form, unknown_attribute_length)
174 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
175 (const_ignored, botched_modified_type, op_deref2, op_deref4)
176 (basereg_not_handled, dup_user_type_allocation)
177 (dup_user_type_definition, missing_tag, bad_array_element_type)
178 (subscript_data_items, unhandled_array_subscript_format)
179 (unknown_array_subscript_format, not_row_major)
180 (missing_at_name): Delete deprecated complaint structs.
181 (bad_die_ref_complaint, unknown_attribute_form_complaint)
182 (dup_user_type_definition_complaint)
183 (bad_array_element_type_complaint): New functions.
184 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
185 (decode_subscript_data_item, dwarf_read_array_type)
186 (read_tag_string_type, read_subroutine_type, read_func_scope)
187 (locval, scan_partial_symbols, decode_modified_type)
188 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
189 (attribute_size): Replace calls to complain() with, possibly
190 indirect, calls to complaint().
191 * elfread.c (section_info_complaint, section_info_dup_complaint)
192 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
193 Delete deprecated complaint structs.
194 (elf_symtab_read, elfstab_offset_sections): Replace calls to
195 complain() with calls to complaint().
196 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
197 struct.
198 (stub_noname_complaint): New function.
199 (check_typedef, add_mangled_type): Replace calls to complain()
200 with calls to complaint().
201 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
202 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
203 (hpread_unhandled_type_complaint, hpread_struct_complaint)
204 (hpread_array_complaint, hpread_type_lookup_complaint)
205 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
206 (hpread_unhandled_common_complaint)
207 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
208 struct definitions and declarations.
209 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
210 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
211 Replace calls to complain() with, possibly indirect, calls to
212 complaint().
213 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
214 Likewise.
215 * mdebugread.c (bad_file_number_complaint, index_complaint)
216 (aux_index_complaint, block_index_complaint)
217 (unknown_ext_complaint, unknown_sym_complaint)
218 (unknown_st_complaint, block_overflow_complaint)
219 (basic_type_complaint, unknown_type_qual_complaint)
220 (array_index_type_complaint, bad_tag_guess_complaint)
221 (block_member_complaint, stEnd_complaint)
222 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
223 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
224 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
225 (bad_continued_complaint, bad_rfd_entry_complaint)
226 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
227 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
228 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
229 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
230 complaint structs.
231 (index_complaint, unknown_ext_complaint, basic_type_complaint)
232 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
233 (unexpected_type_code_complaint)
234 (function_outside_compilation_unit_complaint): New functions.
235 (parse_symbol, parse_type, upgrade_type, parse_procedure)
236 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
237 Replace calls to complain() with, possibly indirect calls to
238 complaint().
239 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
240 Delete deprecated complaint structs.
241 (lookup__objc_class, lookup_child_selector): Replace complain()
242 with complaint().
243 * remote-vx.c (cant_contact_target): Delete deprecated complaint
244 struct.
245 (vx_lookup_symbol): Replace complain() with complaint().
246 * stabsread.c (invalid_cpp_abbrev_complaint)
247 (invalid_cpp_type_complaint, member_fn_complaint)
248 (const_vol_complaint, error_type_complaint)
249 (invalid_member_complaint, range_type_base_complaint)
250 (reg_value_complaint, vtbl_notfound_complaint)
251 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
252 (unresolved_sym_chain_complaint, stabs_general_complaint)
253 (lrs_general_complaint, multiply_defined_struct): Delete
254 deprecated complaint structs.
255 (invalid_cpp_abbrev_complaint, ref_value_complaint)
256 (stabs_general_complaint, lrs_general_complaint)
257 (msg_unknown_complaint): New functions.
258 (dbx_lookup_type, read_cfront_baseclasses)
259 (read_cfront_member_functions, resolve_symbol_reference)
260 (define_symbol, resolve_live_range, add_live_range, read_type)
261 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
262 (read_one_struct_field, read_baseclasses, read_tilde_fields)
263 (read_cfront_static_fields, attach_fields_to_type)
264 (complain_about_struct_wipeout, read_range_type)
265 (common_block_start, common_block_end, cleanup_undefined_types)
266 (scan_file_globals): Replace complain() with complaint().
267 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
268 Delete deprecated complaint struct declarations.
269 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
270 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
271 (bf_not_found_complaint, ef_complaint, eb_complaint)
272 (function_outside_compilation_unit_complaint): New functions.
273 (record_include_begin, record_include_end, enter_line_range)
274 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
275 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
276 complain() with complaint().
277
1a14e234
AC
2782002-12-16 Andrew Cagney <ac131313@redhat.com>
279
280 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
281 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
282 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
283 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
284 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
285 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
286 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
287 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
288 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
289 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
290 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
291 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
292 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
293 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
294 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
295 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
296 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
297 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
298 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
299 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
300 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
301 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
302 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
303 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
304 * config/m88k/xm-dgux.h: Delete.
305 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
306 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
307 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
308 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
309 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
310 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
311 * ch-valprint.c: Delete.
312
04e68871
DJ
3132002-12-15 Daniel Jacobowitz <drow@mvista.com>
314
315 * infrun.c (handle_inferior_event): Rearrange code to resume if
316 no catchpoint triggers for an event.
317
deb3b17b
DJ
3182002-12-15 Daniel Jacobowitz <drow@mvista.com>
319
320 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
321 and TARGET_WAITKIND_VFORKED cases.
322
675bf4cb
DJ
3232002-12-15 Daniel Jacobowitz <drow@mvista.com>
324
325 * infrun.c (handle_inferior_event): Assume that catchpoints
326 are not affected by DECR_PC_AFTER_BREAK.
327
81e56179
DJ
3282002-12-15 Daniel Jacobowitz <drow@mvista.com>
329
330 * target.c (update_current_target): Don't inherit DONT_USE.
331 * target.h (struct target_ops): Remove DONT_USE.
332 (target_next): Remove macro.
333
a3edc55b
MK
3342002-12-15 Mark Kettenis <kettenis@gnu.org>
335
336 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
337
b508a996
RE
3382002-12-14 Richard Earnshaw <rearnsha@arm.com>
339
340 * arm-tdep.c (convert_from_extended): New argument to hold the
341 type of floating point result we want to convert to. Make input
342 argument const. Fix all callers.
343 (convert_to_extended): Similarly.
344 (arm_extract_return_value): Now takes a regcache argument. Change
345 code to use regcache accessor functions. Correctly extract
346 smaller-than-word results on big-endian machines.
347 (arm_store_return_value): Now takes a regcache argument. Change
348 code to use regcache accessor functions. Correctly zero/sign extend
349 smaller than word results before storing into r0.
350 (arm_gdbarch_init): Register new-style extract_return_value and
351 store_return_value functions.
352
3197744f
MS
3532002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
354
355 * thread-db.c (thread_from_lwp): Uniquify error msg.
356 (lwp_from_thread): Ditto.
357 (check_event): Ditto.
358 (find_new_threads_callback): Ditto.
359 (thread_db_pid_to_str): Ditto.
360
6baff1d2
AC
3612002-12-13 Andrew Cagney <ac131313@redhat.com>
362
363 * frame.h (get_frame_saved_regs): Declare.
364 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
365 pointer.
366 * frame.c (get_frame_saved_regs): New function.
367 (frame_saved_regs_zalloc): Return the allocated saved_regs.
368
b87efeee
AC
3692002-12-13 Andrew Cagney <ac131313@redhat.com>
370
371 * frame.c (deprecated_update_current_frame_pc_hack): New
372 function.
373 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
374 * infrun.c (normal_stop): Use said function instead of directly
375 modifying the frame's PC.
376
3de2dc4f
AO
3772002-12-13 Alexandre Oliva <aoliva@redhat.com>
378
379 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
380
fe29b929
KB
3812002-12-13 Kevin Buettner <kevinb@redhat.com>
382
383 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
384 config/mips/tm-irix6.h (NUM_REGS): Delete.
385 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
386 (temp_saved_regs): Declare as a pointer rather than an array.
387 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
388 that ``temp_saved_regs'' has storage allocated to it and that
389 it's the correct size.
390
c04e0a08
JJ
3912002-12-13 Jeff Johnston <jjohnstn@redhat.com>
392
393 * defs.h (init_last_source_visited): New prototype.
394 (add_path): Ditto.
395 * source.c (add_path): New function that adds to a specified path.
396 (mod_path): Change to call add_path.
397 (init_last_source_visited): New function to allow interfaces to
398 initialize static variable: last_source_visited. Part of fix
399 for PR gdb/741.
400 * Makefile.in: Add support for mi/mi-cmd-env.c.
401
c689142b
AC
4022002-12-13 Andrew Cagney <ac131313@redhat.com>
403
404 * frame.h (frame_id_unwind): Declare.
405 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
406 id_unwind_cache.
407 (frame_id_unwind_ftype): Declare.
408 * frame.c (frame_id_unwind): New function.
409 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
410 (create_new_frame, get_prev_frame): Pass id_unwind to
411 set_unwind_by_pc.
412 (frame_saved_regs_id_unwind): New function.
413 (frame_saved_regs_id_unwind): New function.
414 * dummy-frame.c (dummy_frame_id_unwind): New function.
415 (struct dummy_frame): Add field id.
416 (generic_push_dummy_frame): Initialize `id'.
417 * dummy-frame.h (dummy_frame_id_unwind): Declare.
418
18ea5ba4
AC
4192002-12-13 Andrew Cagney <ac131313@redhat.com>
420
421 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
422 pass that to set_momentary_breakpoint. Move comments to where they
423 belong.
424 * frame.h (set_current_frame): Delete declaration.
425 * frame.c (set_current_frame): Delete function.
426
2c517d0e
AC
4272002-12-13 Andrew Cagney <ac131313@redhat.com>
428
429 * frame.c (frame_extra_info_zalloc): New function.
430 * frame.h (frame_extra_info_zalloc): Declare.
431
516b1f28
JB
4322002-12-13 Joel Brobecker <brobecker@gnat.com>
433
434 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
435 in the previous prototype change to set_momentary_breakpoint.
436
fbb265fc
DJ
4372002-12-12 Daniel Jacobowitz <drow@mvista.com>
438
439 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
440 and saw_child_exec.
441 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
442 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
443 (stop_stepping): Remove outdated check for child vfork events.
444
4fd7f624
AC
4452002-12-12 Andrew Cagney <ac131313@redhat.com>
446
447 * GDB 5.3 released from gdb_5_3-branch.
448
4c9ba7e0
DJ
4492002-12-11 Daniel Jacobowitz <drow@mvista.com>
450
451 * corelow.c (init_core_ops): Delete references to to_require_attach
452 and to_require_detach.
453 * exec.c (init_exec_ops): Likewise.
454 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
455 hppa_require_detach directly.
456 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
457 * inftarg.c (child_detach): Remove.
458 (child_detach_from_process): Rename to child_detach, remove
459 after_fork argument.
460 (child_attach): Remove.
461 (child_attach_to_process): Rename to child_attach, remove after_fork
462 argument.
463 (init_child_ops): Delete references to to_require_attach
464 and to_require_detach.
465 * infttrace.c (hppa_require_attach): Update comment.
466 * target.c (cleanup_target, update_current_target)
467 (init_dummy_target, setup_target_debug): Delete references to
468 to_require_attach and to_require_detach.
469 (find_default_require_detach, find_default_require_attach)
470 (debug_to_require_attach, debug_to_require_detach): Remove
471 functions.
472 * target.h (struct target_ops): Remove to_require_attach
473 and to_require_detach.
474 (target_require_attach, target_require_detach): Delete macros.
475 (find_default_require_detach, find_default_require_attach): Delete
476 prototypes.
477 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
478
0394eb2a
AC
4792002-12-11 Andrew Cagney <ac131313@redhat.com>
480
481 * frame.c (get_frame_extra_info): New function.
482 * frame.h (get_frame_extra_info): Declare.
483
818dd999
AC
4842002-12-11 Andrew Cagney <ac131313@redhat.com>
485
486 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
487 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
488 with `struct frame_id'.
489 (set_longjmp_resume_breakpoint): Ditto.
490 * infrun.c (handle_inferior_event): Update.
491 * breakpoint.c (watch_command_1, until_break_command): Update.
492 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
493 (handle_inferior_event, step_over_function): Update.
494 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
495 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
496 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
497 * infcmd.c (finish_command, run_stack_dummy): Update.
498
4d3c2250
KB
4992002-12-11 Kevin Buettner <kevinb@redhat.com>
500
501 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
502 (dwarf2_non_const_array_bound_ignored)
503 (dwarf2_missing_line_number_section)
504 (dwarf2_statement_list_fits_in_line_number_section)
505 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
506 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
507 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
508 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
509 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
510 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
511 (dwarf2_missing_member_fn_type_complaint)
512 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
513 (dwarf2_const_value_length_mismatch)
514 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
515 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
516 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
517 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
518 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
519 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
520 complaints using deprecated struct..
521 (dwarf2_non_const_array_bound_ignored_complaint)
522 (dwarf2_complex_location_expr_complaint)
523 (dwarf2_unsupported_at_frame_base_complaint)
524 (dwarf2_const_value_length_mismatch_complaint)
525 (dwarf2_macros_too_long_complaint)
526 (dwarf2_macro_malformed_definition_complaint)
527 (dwarf2_invalid_attrib_class_complaint): New functions.
528 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
529 (read_structure_scope, read_array_type, read_common_block)
530 (read_tag_pointer_type, read_base_type, read_partial_die)
531 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
532 (new_symbol, dwarf2_const_value, read_type_die)
533 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
534 (parse_macro_definition, dwarf_decode_macros): Replace calls to
535 complain() with, possibly indirect, calls to complaint().
536
95486978
AC
5372002-12-11 Andrew Cagney <cagney@redhat.com>
538
539 * frame.c (deprecated_get_frame_saved_regs): Rename
540 get_frame_saved_regs.
541 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
542 * sparc-tdep.c: Update.
543 * hppa-tdep.c: Update.
544 * h8500-tdep.c: Update.
545
321432c0
KB
5462002-12-11 Kevin Buettner <kevinb@redhat.com>
547
548 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
549 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
550 ``char *'' for return and parameter types.
551 * gdbarch.h, gdbarch.c: Regenerate.
552 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
553 return type from ``char *'' to ``const char *''.
554 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
555 const.
556
5a4d6ff4
MK
5572002-12-11 Mark Kettenis <kettenis@gnu.org>
558
559 * i386-tdep.c: Include "dummy-frame.h".
560 (i386_frame_chain, i386_frame_saved_pc): Replace
561 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
562 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
563
a5afb99f
AC
5642002-12-10 Andrew Cagney <cagney@redhat.com>
565
566 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
567 Change to a function with predicate.
568 * gdbarch.h, gdbarch.c: Re-generate.
569 * frame.c (get_prev_frame): Update. Test
570 DEPRECATED_INIT_FRAME_PC_P.
571 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
572 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
573 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
574 * alpha-tdep.c (alpha_gdbarch_init): Update.
575 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
576 * mips-tdep.c (mips_gdbarch_init): Update.
577 * i386-interix-tdep.c (i386_interix_init_abi): Update.
578 * arm-tdep.c: Update comments.
579 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
580 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
581 * frv-tdep.c (frv_gdbarch_init): Ditto.
582 * x86-64-tdep.c (x86_64_init_abi): Ditto.
583 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
584 * s390-tdep.c (s390_gdbarch_init): Ditto.
585 * v850-tdep.c (v850_gdbarch_init): Ditto.
586 * vax-tdep.c (vax_gdbarch_init): Ditto.
587 * sh-tdep.c (sh_gdbarch_init): Ditto.
588 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
591 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
592 * i386-tdep.c (i386_gdbarch_init): Ditto.
593 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
594 * cris-tdep.c (cris_gdbarch_init): Ditto.
595 * avr-tdep.c (avr_gdbarch_init): Ditto.
596 * arm-tdep.c (arm_gdbarch_init): Ditto.
597 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
598 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
599
6604731b
DJ
6002002-12-10 Daniel Jacobowitz <drow@mvista.com>
601
602 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
603 CHILD_FOLLOW_FORK.
604 * hppah-nat.c (saved_vfork_pid): Add.
605 (child_post_follow_vfork): Remove.
606 (child_follow_fork): New function.
607 (child_wait): Call detach_breakpoints after receiving the child vfork.
608 Call child_resume directly instead of going through resume ().
609 Make sure we have the exec before reporting the vfork.
610 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
611 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
612 (follow_fork): New function. Call target_follow_fork.
613 (follow_inferior_reset_breakpoints): New function broken out from
614 old follow_inferior_fork.
615 (resume): Remove hack to follow exec after vfork.
616 * inftarg.c (child_post_follow_vfork): Remove.
617 (child_follow_fork): New function.
618 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
619 * target.c (cleanup_target): Replace to_post_follow_vfork with
620 to_follow_fork.
621 (update_current_target): Likewise.
622 (setup_target_debug): Likewise.
623 (debug_to_post_follow_vfork): Remove.
624 (debug_to_follow_fork): New function.
625 * target.h (struct target_ops): Replace to_post_folow_vfork with
626 to_follow_fork.
627 (child_post_follow_vfork): Remove prototype.
628 (child_follow_fork): Add prototype.
629 (target_post_follow_vfork): Remove macro.
630 (target_follow_fork): Add macro.
631
7d2830a3
DJ
6322002-12-10 Daniel Jacobowitz <drow@mvista.com>
633
634 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
635 (child_post_follow_vfork): Cancel pending exec event if we follow
636 the parent.
637 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
638 events have been processed. Return a fake TARGET_WAITKIND_EXECD
639 event at the following wait call if necessary.
640 * infrun.c (follow_vfork): Don't follow_exec here.
641 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
642 case about HP/UX 10.20. Remove code pushed down to
643 hppah-nat.c:child_wait.
644 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
645 vfork_in_flight is set.
646
6472002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
648
649 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
650 for the parent's fork event.
651 * infrun.c (handle_inferior_event): Only expect one fork event.
652 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
653 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
654
50631d4f
AC
6552002-12-10 Andrew Cagney <ac131313@redhat.com>
656
bc124bd3
AC
657 * PROBLEMS: Delete reference to PR gdb/725.
658
50631d4f
AC
659 * MAINTAINERS (gdb.c++): Add David Carlton.
660
808013d1
DC
6612002-12-09 David Carlton <carlton@math.stanford.edu>
662
663 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
664 * cli/cli-cmds.c: Ditto.
665
31deffe5
AC
6662002-12-09 Andrew Cagney <cagney@redhat.com>
667
6cbda714
AC
668 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
669 function address in <>.
31deffe5
AC
670 * gdbarch.c: Re-generate.
671
2692ddb3
DC
6722002-12-09 David Carlton <carlton@math.stanford.edu>
673
674 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
675
f3c39e76
DC
6762002-12-09 David Carlton <carlton@math.stanford.edu>
677
678 * linespec.c (symtab_from_filename): New function.
679 (decode_line_1): Move code into symtab_from_filename.
680
1b84163e
KB
6812002-12-09 Kevin Buettner <kevinb@redhat.com>
682
683 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
684
bdd78e62
AC
6852002-12-07 Andrew Cagney <ac131313@redhat.com>
686
687 * f-valprint.c (info_common_command): Use get_frame_pc.
688 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
689 * ax-gdb.c (agent_command): Ditto.
690 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
691 (rs6000_pop_frame): Ditto.
692 (rs6000_frameless_function_invocation): Ditto.
693 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
694 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
695 * macroscope.c (default_macro_scope): Ditto.
696 * stack.c (print_frame_info_base): Ditto.
697 (print_frame, frame_info, print_frame_label_vars): Ditto.
698 (return_command, func_command, get_frame_language): Ditto.
699 * infcmd.c (finish_command): Ditto.
700 * dummy-frame.c (cached_find_dummy_frame): Ditto.
701 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
702 (break_at_finish_at_depth_command_1): Ditto.
703 (break_at_finish_command_1): Ditto.
704 (until_break_command, get_catch_sals): Ditto.
705 * blockframe.c (func_frame_chain_valid): Ditto.
706 (frameless_look_for_prologue): Ditto.
707 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
708
408400e7
AC
7092002-12-08 Andrew Cagney <ac131313@redhat.com>
710
711 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
712 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
713
97f46953
AC
7142002-12-08 Andrew Cagney <ac131313@redhat.com>
715
716 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
717 to pure functions.
718 * gdbarch.h, gdbarch.c: Re-generate.
719 * frame.c (get_prev_frame): Explictly assign prev's pc with value
720 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
721
722 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
723 declaration to a function returning a CORE_ADDR.
724 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
725 * arch-utils.c (init_frame_pc_noop): Return the PC value.
726 (init_frame_pc_default): Ditto.
727 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
728 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
729 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
730 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
731 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
732 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
733
734 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
735 to init_frame_pc_noop.
736 (i386_interix_init_frame_pc): Delete function.
737 * z8k-tdep.c (init_frame_pc): Delete function.
738 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
739 (INIT_FRAME_PC_FIRST): Ditto.
740 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
741 (INIT_FRAME_PC_FIRST): Ditto.
742 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
743 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
744 init_frame_pc_noop.
745 (INIT_FRAME_PC_FIRST): Convert to an expression.
746 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
747
8b36eed8
AC
7482002-12-08 Andrew Cagney <ac131313@redhat.com>
749
750 * blockframe.c: Use get_frame_base instead of directly accessing
751 the `struct frame_info' member frame.
752 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
753 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
754
aeeccc89
EZ
7552002-12-08 Elena Zannoni <ezannoni@redhat.com>
756
757 * Makefile.in (readline_h): Define.
758 (completer.o): Depend on readline_h.
759 (corelow.o): Ditto.
760 (event-top.o): Ditto.
761 (exec.o): Ditto.
762 (solib.o): Ditto.
763 (source.o): Ditto.
764 (symfile.o): Ditto.
765 (symmisc.o): Ditto.
766 (top.o): Ditto.
767 (tracepoint.o): Ditto.
768 (utils.o): Ditto.
769 (cli-dump.o): Ditto.
770 (tui-hooks.o): Ditto.
771 (tuiWin.o): Ditto.
772
38017ce8
EZ
7732002-12-08 Elena Zannoni <ezannoni@redhat.com>
774
775 More cleanup from import of readline 4.3.
776 * completer.h (complete_line, readline_line_completion_function):
777 Update prototypes.
778 (line_completion_function): Removed, not used outside of completer.c.
779 * completer.c (readline_line_completion_function,
780 complete_function, line_completion_function): Use const for first
781 parameter.
782 (line_completion_function): Make static.
783 (filename_completer): filename_completion_function is now called
784 rl_filename_completion_function
785 * corelow.c: Include <readline/readline.h>.
786 * exec.c: Ditto.
787 * solib.c: Ditto.
788 * source.c: Ditto.
789 * symfile.c: Ditto.
790 * symmisc.c: Ditto.
791 * top.c (init_main): No need to coerce
792 readline_line_completion_function anymore.
793 * cli/cli-dump.c: Include <readline/readline.h>.
794
75e3c1f9
AC
7952002-12-08 Andrew Cagney <ac131313@redhat.com>
796
797 * stack.c (frame_info): Use get_prev_frame.
798 * blockframe.c (frame_address_in_block): Ditto.
799 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
800 (rs6000_frameless_function_invocation): Ditto.
801 (rs6000_frame_saved_pc): Ditto.
802 (rs6000_frame_chain): Ditto.
803 * arch-utils.c (init_frame_pc_default): Ditto.
804
0d2b8049
AC
8052002-12-08 Andrew Cagney <ac131313@redhat.com>
806
807 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
808 Delete redundant definition.
809
9255ee31
EZ
8102002-12-08 Elena Zannoni <ezannoni@redhat.com>
811
812 Import of readline 4.3:
813 * cli/cli-cmds.c: Include readline/tilde.h.
814 * cli/cli-setshow.c: Ditto.
815 * defs.h: Don't declare tilde_expand anymore, since readline
816 exports it.
817
3442dad6 8182002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
819
820 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
821 -Werror on this file.
822
52f87c51
AC
8232002-12-07 Andrew Cagney <ac131313@redhat.com>
824
825 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
826 the format name.
827 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
828 * gdbarch.c: Regenerate.
829
2ca6c561
AC
8302002-12-06 Andrew Cagney <ac131313@redhat.com>
831
832 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
833 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
834 provide a default value.
835 * gdbarch.h, gdbarch.c: Regenerate.
836 * frame.c (get_prev_frame): Update. Check
837 DEPRECATED_INIT_FRAME_PC_FIRST_P.
838 * s390-tdep.c (s390_gdbarch_init): Update.
839 * mips-tdep.c (mips_gdbarch_init): Update.
840 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
841 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
842 * alpha-tdep.c (alpha_gdbarch_init): Update.
843
e162d11b
EZ
8442002-12-06 Elena Zannoni <ezannoni@redhat.com>
845
846 * ia64-linux-nat.c: Include gdb_string.h.
847 * alpha-nat.c: Ditto.
2b298b5d
EZ
848 * ppc-linux-nat.c: Ditto.
849 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
850 Update dependencies.
e162d11b 851
aa0cd9c1
AC
8522002-12-05 Andrew Cagney <ac131313@redhat.com>
853
854 * gdbthread.h: Include "frame.h".
855 (struct thread_info): Replace step_frame_address with
856 step_frame_id.
857 * inferior.h: Include "frame.h".
858 (step_frame_id): Replace external variable step_frame_address.
859 * gdbthread.h (save_infrun_state): Replace step_frame_address
860 parameter with step_frame_id parameter.
861 (load_infrun_state): Ditto.
862 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
863 * infcmd.c (step_frame_id, step_1, step_once): Update.
864 * thread.c (load_infrun_state, save_infrun_state): Update.
865 * infrun.c (clear_proceed_status, save_inferior_status): Update.
866 (handle_inferior_event, step_over_function): Update.
867 (normal_stop, context_switch, restore_inferior_status): Update.
868 (struct inferior_status): Replace step_frame_address with
869 step_frame_id.
870
a9a9bd0f
DC
8712002-12-05 David Carlton <carlton@math.stanford.edu>
872
873 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
874 DW_TAG_member as well as a declaration as being a C++ static data
875 member.
876 (read_structure_scope): Combine tests for DW_TAG_member and
877 DW_TAG_variable.
878
614b3b14
DC
8792002-12-05 David Carlton <carlton@math.stanford.edu>
880
881 * linespec.c (decode_compound): New function.
882 (decode_line_1): Move code into decode_compound.
883
e4051eeb
DC
8842002-12-05 David Carlton <carlton@math.stanford.edu>
885
886 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
887 argument.
888 (lookup_symbol_aux): Do the 'field_of_this' check before checking
889 the static block. See PR gdb/804.
890
f61e8913
DC
8912002-12-05 David Carlton <carlton@math.stanford.edu>
892
893 * symtab.c (lookup_symbol_aux_block): New function.
894 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
895
1e9f55d0
AC
8962002-12-05 Andrew Cagney <ac131313@redhat.com>
897
898 * gdbarch.sh: Dump the predicate function and macro values.
899 (read): Print error on standard error.
900 * gdbarch.c: Regenerate.
901
d1973055
KB
9022002-12-04 Kevin Buettner <kevinb@redhat.com>
903
904 * Makefile.in (mips_tdep_h): Define.
905 (mips-tdep.o): Add mips_tdep_h to dependency list.
906 * mips-tdep.h: New file.
907 * mips-tdep.c (mips-tdep.h): Include.
908 (enum mips_abi): Move to mips-tdep.h.
909 (mips_abi): New function.
910
f1253c7b
DC
9112002-12-04 David Carlton <carlton@math.stanford.edu>
912
913 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
914
406bc4de
DC
9152002-12-04 David Carlton <carlton@math.stanford.edu>
916
917 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
918 function.
919 (lookup_symbol_aux_minsyms): New function.
920
2a3750c5
JB
9212002-12-04 J. Brobecker <brobecker@gnat.com>
922
923 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
924
961d8652
JB
9252002-12-04 J. Brobecker <brobecker@gnat.com>
926
927 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
928 which is an obsolete macro name.
929
38c52d5a
DJ
9302002-12-04 Daniel Jacobowitz <drow@mvista.com>
931
932 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
933 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
934
d8ef46f5
DJ
9352002-12-03 H.J. Lu (hjl@gnu.org)
936
937 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
938 (create_breakpoints): Make sure the addr_string field is not
939 NULL.
940
02ae7771
AC
9412002-12-03 Andrew Cagney <ac131313@redhat.com>
942
943 * sparc-nat.c (fetch_inferior_registers)
944 (store_inferior_registers): Add comment on problem of LWP vs
945 threads.
946
947 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
948 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
949 (lin_lwp_store_registers): Remove.
950 (init_lin_lwp_ops): Use fetch_inferior_registers
951 and store_inferior_registers directly.
952 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
953 (store_inferior_registers): Likewise.
954 Fix PR gdb/725.
955
7a424e99
AC
9562002-12-03 Andrew Cagney <ac131313@redhat.com>
957
958 * frame.h (get_frame_id): Convert to a function.
959 (null_frame_id, frame_id_p): Declare.
960 (frame_id_eq, frame_id_inner): Declare.
961 (frame_id_build): New function.
962 * frame.c (get_frame_id): Update. Use null_frame_id.
963 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
964 frame_id_inner.
965 (null_frame_id, frame_id_p): Define.
966 (frame_id_eq, frame_id_inner): Define.
967 (frame_id_build): New function.
968 * varobj.c (varobj_create): Update.
969 (varobj_update): Update.
970 * valops.c (value_assign): Update.
971 (new_root_variable): Update.
972 * infrun.c (save_inferior_status): Update.
973 * breakpoint.c (watch_command_1): Update.
974
891c7f5f
JB
9752002-12-03 J. Brobecker <brobecker@gnat.com>
976
977 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
978 (SNAP2): Likewise.
979
144da3c1
AC
9802002-12-03 Andrew Cagney <cagney@redhat.com>
981
46248966
AC
982 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
983 patch.
984
144da3c1
AC
985 * PROBLEMS: Mention PR gdb/725.
986
03c6228e
AS
9872002-12-03 Andreas Schwab <schwab@suse.de>
988
989 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
990
36e53c63
AF
9912002-12-02 Adam Fedor <fedor@gnu.org>
992 Klee Dienes <kdienes@apple.com>
993
994 * objc-lang.c (objc_printstr): Add width arg to match
995 printstr prototype.
996 (compare_selectors): Add 'const' to arg types.
997 (compare_classes): Likewise.
998 (find_imps): Cast msym pointer to avoid compiler warning.
999 (print_object_command): Validate the address before
1000 passing it to the print routine.
1001 (find_objc_msgcall_submethod): Change function argument to
1002 return an int.
1003 * objc-lang.h: Add 'extern' to all function declarations.
1004 (value_nsstring): Add declaration.
1005
504d5c7e
JB
10062002-12-02 J. Brobecker <brobecker@gnat.com>
1007
1008 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1009 Fixes a build failure on HP/UX.
1010
1011 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1012 failure on HP/UX.
1013 (hpread_has_name): Advance declaration to avoid a compilation warning.
1014 (pst_syms_count): Add missing variable type. By change, the compiler
1015 was defaulting to int, which seems a good choice. Fixes a compilation
1016 warning.
1017 (pst_syms_size): Likewise.
1018
59623e27
JB
10192002-12-02 J. Brobecker <brobecker@gnat.com>
1020
1021 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1022 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1023 later to set the proper gdbarch methods depending on the osabi.
1024 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1025
a09a320d
JB
10262002-12-02 J. Brobecker <brobecker@gnat.com>
1027
1028 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1029 * osabi.c (gdb_osabi_name): Add strings images for the two new
1030 enum values.
1031 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1032
8a81a99e
AC
10332002-12-02 Andrew Cagney <ac131313@redhat.com>
1034
1035 * MAINTAINERS (Java): Global maintainers are responible for Java.
1036 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1037 part Java maintainers.
1038
7af35dad
JB
10392002-12-02 J. Brobecker <brobecker@gnat.com>
1040
1041 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1042 Fixes a compilation failure on AiX.
1043
f4ede9bc
JB
10442002-12-02 J. Brobecker <brobecker@gnat.com>
1045
1046 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1047 why aix-thread.o is not listed.
1048
ae45cd16
AC
10492002-12-01 Andrew Cagney <ac131313@redhat.com>
1050
1051 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1052 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1053 * gdbarch.h, gdbarch.c: Re-generate.
1054 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1055 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1056 * config/pa/tm-hppa.h, frame.h: Update.
1057 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1058 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1059 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1060 * cris-tdep.c, alpha-tdep.c: Update.
1061 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1062 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1063 (get_prev_frame): Ditto.
1064
020cc13c
AC
10652002-11-30 Andrew Cagney <cagney@redhat.com>
1066
1067 * exec.c (xfer_memory): Replace boolean with int.
1068 * p-exp.y: Use 0 instead of false.
1069 * corelow.c (gdb_check_format): Change return type to int from
1070 boolean.
1071 * utils.c: Don't include <curses.h> or <term.h> first.
1072
1d9b2aa8
SC
10732002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1074
1075 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1076 (m68hc11_register_byte): Remove.
1077 (m68hc11_gdbarch_init): Don't set the above.
1078
a193e397
AC
10792002-11-29 Andrew Cagney <cagney@redhat.com>
1080
1081 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1082 by calling get_selected_frame.
1083 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1084 set_current_frame, create_new_frame, select_frame and
1085 get_current_frame.
1086 * remote-e7000.c (e7000_start_remote): Ditto.
1087 * remote-mips.c (common_open): Ditto
1088 * remote-rdp.c (remote_rdp_open): Ditto.
1089
b5fc49aa
AS
10902002-11-29 Andreas Schwab <schwab@suse.de>
1091
1092 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1093 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1094 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1095 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1096 read_memory_unsigned_integer instead of read_memory_integer when
1097 dealing with addresses and instruction opcodes.
1098 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1099 (m68k_linux_frame_saved_pc): Likewise.
1100
6e7f8b9c
AC
11012002-11-29 Andrew Cagney <ac131313@redhat.com>
1102
1103 * stack.c (selected_frame, select_frame): Move from here ...
1104 * frame.c (selected_frame, select_frame): ... to here. Include
1105 "language.h".
1106 * Makefile.in (frame.o): Update dependencies.
1107 * frame.c (get_selected_frame): New function.
1108 * frame.h (get_selected_frame): Declare.
1109 (deprecated_selected_frame): Rename selected_frame.
1110 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1111 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1112 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1113 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1114 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1115 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1116 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1117 * z8k-tdep.c, cli/cli-cmds.c: Update.
1118
805e2818
AC
11192002-11-29 Andrew Cagney <ac131313@redhat.com>
1120
1121 * frame.h (get_selected_block): Add comments.
1122
1058bca7
AC
11232002-11-28 Andrew Cagney <ac131313@redhat.com>
1124
1125 * frame.c (pc_notcurrent): New function.
1126 (find_frame_sal): New function.
1127 * frame.h (find_frame_sal): Declare.
1128 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1129 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1130 find_pc_line.
1058bca7
AC
1131 (frame_info): Ditto.
1132 * ada-lang.c (find_printable_frame): Ditto.
1133
d92419e5
JB
11342002-11-28 J. Brobecker <brobecker@gnat.com>
1135
1136 * configure.in: Check that the pthdebug library is recent enough
1137 before enabling thread support on native AiX.
1138 * configure: Regenerate.
1139
1140 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1141 from the list of object files as it is now appended by configure
1142 if thread support is enabled.
1143 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1144 if thread support is enabled.
1145
8c69fc49
AC
11462002-11-28 Andrew Cagney <cagney@redhat.com>
1147
1148 * stack.c (get_selected_block): In-line get_current_block.
1149 * frame.h (get_current_block): Delete declaration.
1150 * blockframe.c (get_current_block): Delete function.
1151
07555a72
AC
11522002-11-28 Andrew Cagney <ac131313@redhat.com>
1153
1154 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1155 USE_GENERIC_DUMMY_FRAMES.
1156 * gdbarch.h, gdbarch.c: Regenerate.
1157 * valops.c, frame.c: Update.
1158 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1159 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1160 * config/pa/tm-hppa.h, blockframe.c: Update.
1161 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1162 * m68k-tdep.c, alpha-tdep.c: Ditto.
1163
1164 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1165 * mips-tdep.c: Ditto.
1166
b99fa2d2
AC
11672002-11-27 Andrew Cagney <ac131313@redhat.com>
1168
1169 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1170 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1171 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1172 * gdbarch.c, gdbarch.h: Re-generate.
1173 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1174 (CALL_DUMMY_LOCATION): Delete macro definition.
1175 (PC_IN_CALL_DUMMY): Delete macro definitions.
1176
1177 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1178 default is already generic_pc_in_call_dummy.
1179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1180 * v850-tdep.c (v850_gdbarch_init): Ditto.
1181 * sh-tdep.c (sh_gdbarch_init): Ditto.
1182 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1183 * mips-tdep.c (mips_gdbarch_init): Ditto.
1184 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1186 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1187 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1188 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1189 * avr-tdep.c (avr_gdbarch_init): Ditto.
1190
1191 * arm-tdep.c (arm_gdbarch_init): Do not set
1192 use_generic_dummy_frames, default is already 1.
1193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1194 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1195 * v850-tdep.c (v850_gdbarch_init): Ditto.
1196 * sh-tdep.c (sh_gdbarch_init): Ditto.
1197 * s390-tdep.c (s390_gdbarch_init): Ditto.
1198 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1200 * mips-tdep.c (mips_gdbarch_init): Ditto.
1201 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1203 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1204 * i386-tdep.c (i386_gdbarch_init): Ditto.
1205 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1206 * frv-tdep.c (frv_gdbarch_init): Ditto.
1207 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1208 * cris-tdep.c (cris_gdbarch_init): Ditto.
1209 * avr-tdep.c (avr_gdbarch_init): Ditto.
1210
1211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1212 call_dummy_location, default is already AT_ENTRY_POINT.
1213 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1214 * v850-tdep.c (v850_gdbarch_init): Ditto.
1215 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1216 * sh-tdep.c (sh_gdbarch_init): Ditto.
1217 * s390-tdep.c (s390_gdbarch_init): Ditto.
1218 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1219 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1220 * mips-tdep.c (mips_gdbarch_init): Ditto.
1221 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1223 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1224 * i386-tdep.c (i386_gdbarch_init): Ditto.
1225 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1226 * frv-tdep.c (frv_gdbarch_init): Ditto.
1227 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1228 * cris-tdep.c (cris_gdbarch_init): Ditto.
1229 * avr-tdep.c (avr_gdbarch_init): Ditto.
1230 * arm-tdep.c (arm_gdbarch_init): Ditto.
1231 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1232
abc0af47
AC
12332002-11-28 Andrew Cagney <cagney@redhat.com>
1234
1235 * frame.h: Update comments on set_current_frame, create_new_frame,
1236 flush_cached_frames, reinit_frame_cache, select_frame and
1237 selected_frame.
1238
ed5cedc5
AC
12392002-11-27 Andrew Cagney <cagney@redhat.com>
1240
1241 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1242 deprecated pc_in_call_dummy function.
1243 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1244 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1245 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1246 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1247 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1248
b2a1bd4f
MH
12492002-11-26 Martin M. Hunt <hunt@redhat.com>
1250
1251 * Makefile.in: Remove Tix dependencies.
1252 * acinclude.m4: Ditto.
1253 * aclocal.m4: Ditto.
1254 * configure.in: Ditto.
1255 * configure: Regenerated.
1256
f09cffaa
AC
12572002-11-26 Andrew Cagney <ac131313@redhat.com>
1258
1259 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1260 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1261 * gdbarch.c: Re-generate.
1262
e92b0cc9
AC
12632002-11-26 Andrew Cagney <ac131313@redhat.com>
1264
1265 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1266 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1267 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1268 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1269 pc_in_call_dummy_at_entry_point.
1270 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1271 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1272 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1273 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1274 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1275 pc_in_call_dummy_on_stack.
1276 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1277 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1278 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1279 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1280 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1281
b4b88177
AC
12822002-11-26 Andrew Cagney <ac131313@redhat.com>
1283
1284 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1285 pc_in_call_dummy_before_text_end
1286 (deprecated_pc_in_call_dummy_after_text_end): Rename
1287 pc_in_call_dummy_after_text_end.
1288 (deprecated_pc_in_call_dummy_on_stack): Rename
1289 pc_in_call_dummy_on_stack.
1290 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1291 pc_in_call_dummy_at_entry_point.
1292 * m68k-tdep.c (m68k_gdbarch_init): Update.
1293 * s390-tdep.c (s390_gdbarch_init): Update.
1294 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1295 * vax-tdep.c (vax_gdbarch_init): Update.
1296 * sparc-tdep.c (sparc_gdbarch_init): Update.
1297 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1299 * i386-tdep.c (i386_gdbarch_init): Update.
1300 * frv-tdep.c (frv_gdbarch_init): Update.
1301 * cris-tdep.c (cris_gdbarch_init): Update.
1302 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1303 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1304 (deprecated_pc_in_call_dummy_after_text_end)
1305 (deprecated_pc_in_call_dummy_on_stack)
1306 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1307 * alpha-tdep.c (alpha_gdbarch_init): Update.
1308
eb784848
DJ
13092002-11-25 Daniel Jacobowitz <drow@mvista.com>
1310
1311 * acconfig.h (HAVE_PREAD64): Add.
1312 * configure.in: Check for pread64.
1313 * config.in: Regenerated.
1314 * configure: Regenerated.
1315 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1316 * linux-proc.c (linux_proc_xfer_memory): New function.
1317 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1318
933c6fe4
DC
13192002-11-25 David Carlton <carlton@math.stanford.edu>
1320
1321 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1322 pdi's with no name.
1323
158a8022
AC
13242002-11-25 Andrew Cagney <ac131313@redhat.com>
1325
1326 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1327 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1328
481d0f41
JB
13292002-11-25 Jim Blandy <jimb@redhat.com>
1330
e8289572
JB
1331 * symfile.c (init_objfile_sect_indices): New function.
1332 (default_symfile_offsets): Move the section-index-initializing
1333 stuff into init_objfile_sect_indices, and call that.
1334
b29c9944
JB
1335 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1336 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1337
13de58df
JB
1338 * symfile.c (syms_from_objfile): Adjust indentation.
1339
481d0f41
JB
1340 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1341 || info_verbose isn't true.
1342
7d6a26a7
AC
13432002-11-24 Andrew Cagney <ac131313@redhat.com>
1344
1345 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1346 default to get_frame_base.
1347 * gdbarch.h, gdbarch.c: Regenerate.
1348 * arch-utils.c (default_frame_address): Delete function.
1349 * arch-utils.h (default_frame_address): Delete declaration
1350
6abe1021
PM
13512002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1352
1353 * varobj.c (find_frame_addr_in_frame_chain):
1354 Use get_frame_base instead of FRAME_FP,
1355 obvious fix.
1356
c193f6ac
AC
13572002-11-19 Andrew Cagney <ac131313@redhat.com>
1358
1359 * frame.h (FRAME_FP): Delete macro.
1360 (get_frame_base): New function declaration.
1361 * frame.c (get_frame_base): New function.
1362 (get_frame_id): Use ->frame.
1363 (frame_find_by_id): Rewrite to use get_frame_id.
1364 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1365 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1366 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1367 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1368 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1369 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1370 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1371
e5d2af14
AC
13722002-11-24 Andrew Cagney <ac131313@redhat.com>
1373
1374 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1375
931d12c6
AC
13762002-11-24 Andrew Cagney <ac131313@redhat.com>
1377
1378 * frame.c (set_unwind_by_pc): Revert change below, use
1379 PC_IN_CALL_DUMMY.
1380 (get_prev_frame): Ditto.
1381
5e0f933e
AC
13822002-11-24 Andrew Cagney <ac131313@redhat.com>
1383
1384 * dummy-frame.c (pc_in_dummy_frame): New function.
1385 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1386 (find_dummy_frame): Update comment.
1387 (generic_pop_current_frame): Use get_frame_type.
1388 * dummy-frame.h (pc_in_dummy_frame): Declare.
1389 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1390 (create_new_frame): Use pc_in_dummy_frame.
1391 (get_prev_frame): Use pc_in_dummy_frame.
1392 (frame_saved_regs_register_unwind): Use get_prev_frame.
1393 (deprecated_generic_get_saved_register): Use get_prev_frame.
1394
7d8547c9
AC
13952002-11-23 Andrew Cagney <ac131313@redhat.com>
1396
1397 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1398 from here ...
1399 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1400 (varobj_create): Note that frame ID should be used.
1401 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1402
0225421b
AC
14032002-11-23 Andrew Cagney <ac131313@redhat.com>
1404
1405 * breakpoint.c: Include "gdb_assert.h".
1406 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1407 not being used.
1408 * Makefile.in (breakpoint.o): Update dependencies.
1409 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1410 deprecated_frame_in_dummy.
1411 * stack.c (print_frame_info_base): Ditto.
1412 (frame_info): Ditto.
1413 (print_frame_info_base): Ditto. Delete dead code.
1414
32eeb91a
AS
14152002-11-23 Andreas Schwab <schwab@suse.de>
1416
1417 * Makefile.in (m68k_tdep_h): Define.
1418 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1419 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1420 * m68k-tdep.c: Move register number enum ...
1421 * m68k-tdep.h: ... to this new file and rename the constants from
1422 E_* to M68K_*. All uses changed.
1423 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1424 * abug-rom.c: Include "m68k-tdep.h". Use
1425 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1426 * cpu32bug-rom.c: Likewise.
1427 * dbug-rom.c: Likewise.
1428 * m68k-tdep.c: Likewise.
1429 * m68klinux-nat.c: Likewise.
1430 * remote-est.c: Likewise.
1431 * rom68k-rom.c: Likewise.
1432 * config/m68k/tm-linux.h: Likewise.
1433
9648bac8
AC
14342002-11-23 Andrew Cagney <ac131313@redhat.com>
1435
1436 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1437 dummy frame initialization code.
1438 * mips-tdep.c (mips_gdbarch_init): Ditto.
1439
91a175b3
CF
14402002-11-22 Christopher Faylor <cgf@redhat.com>
1441
1442 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1443 attach will hang.
1444
f4ded5b1
AC
14452002-11-22 Andrew Cagney <ac131313@redhat.com>
1446
1447 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1448 to default_frame_address.
1449 * gdbarch.h, gdbarch.c: Re-generate.
1450
1451 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1452 or frame_locals_address to default_frame_address.
1453 * m68k-tdep.c (m68k_gdbarch_init): Update.
1454 * i386-tdep.c (i386_gdbarch_init): Update.
1455 * frv-tdep.c (frv_gdbarch_init): Update.
1456 * sh-tdep.c (sh_gdbarch_init): Update.
1457 * v850-tdep.c (v850_gdbarch_init): Update.
1458 * sparc-tdep.c (sparc_gdbarch_init): Update.
1459 * mips-tdep.c (mips_gdbarch_init): Update.
1460 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1461 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1463
1464 * cris-tdep.c (cris_frame_args_address): Delete function.
1465 (cris_frame_locals_address): Delete function.
1466 (cris_gdbarch_init): Do not set frame_args_address or
1467 frame_locals_address.
1468
f7c1e0f3
MS
14692002-11-22 Michael Snyder <msnyder@redhat.com>
1470
1471 * thread-db.c (thread_db_load): Tell the user what's going on
1472 if dlopen fails on libthread_db.
1473
03dac896
AS
14742002-11-23 Andreas Schwab <schwab@suse.de>
1475
1476 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1477 invariant return values.
1478
7a67d0fe
AS
14792002-11-22 Andreas Schwab <schwab@suse.de>
1480
1481 * valops.c (value_slice): Move declaration of `offset' to avoid
1482 warning.
1483
5633f842
CF
14842002-11-22 Christopher Faylor <cgf@redhat.com>
1485
1486 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1487 (struct so_stuff): Add end_addr field.
1488 (register_loaded_dll): Calculate and store end address of loaded dll.
1489 (solib_address): New function.
1490 (child_solib_loaded_library_pathname): Pass carefully constructed
1491 section info to safe_symbol_file_add rather than ignoring it.
1492 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1493 DLL is loaded.
1494 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1495 (child_create_inferior): Fix a compiler warning.
1496 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1497 (solib_address): Declare new function.
1498
d85fe7f7
AS
14992002-11-22 Andreas Schwab <schwab@suse.de>
1500
1501 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1502 and FPS registers.
1503
8308e54c
DJ
15042002-11-21 Daniel Jacobowitz <drow@mvista.com>
1505
1506 * maint.c (_initialize_maint_cmds): Fix typo. From
1507 Francesco Potorti` <pot@gnu.org>.
1508
8997bd5e
AC
15092002-11-21 Andrew Cagney <cagney@redhat.com>
1510
1511 * mips-tdep.c (mips_dump_tdep): Delete references to
1512 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1513 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1514 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1515 * printcmd.c (build_address_symbolic): Delete calls to
1516 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1517 (address_info): Ditto.
1518 Fix PR gdb/773.
1519
4e87b832
KD
15202002-11-19 Klee Dienes <kdienes@apple.com>
1521 Adam Fedor <fedor@gnu.org>
1522
1523 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1524 the ability to explicitly specify the quote characters and word
1525 break characters; if NULL is specified for either, use the old
1526 behavior of using the characters used by the completer.
1527 (skip_chars): New function. Convenience wrapper around
1528 skip_quoted_chars to provide the original skip_chars behavior.
1529 * completer.h (skip_quoted_chars): Add prototype.
1530
9ba8d803
AC
15312002-11-19 Andrew Cagney <ac131313@redhat.com>
1532
1533 Problems reported by Paul Eggert.
1534 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1535
0a595803
AS
15362002-11-19 Andreas Schwab <schwab@suse.de>
1537
1538 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1539 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1540 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1541 (m68k_linux_frame_saved_pc): Move to ...
1542 * m68klinux-tdep.c: ... here. New file.
1543 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1544 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1545
e8afa4d7
AF
15462002-11-19 Adam Fedor <fedor@gnu.org>
1547
1548 * objc-exp.y: Revert to old skip_quoted usage.
1549
a76c9d72
AF
15502002-11-19 Adam Fedor <fedor@gnu.org>
1551
1552 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1553 (objc_lang_h): Define.
1554 (YYFILES): Add objc-exp.tab.c.
1555 (local-maintainer-clean): Remove objc-exp.tab.c.
1556 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1557
fd0e9d45
PM
15582002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1559
1560 * p-exp.y (typecast rule): Add automatic dereference of
1561 pascal classes if needed.
1562 (THIS): Set current_type.
1563 Automatically dereference pascal classes.
1564 (typebase rule): Add ^typebase recognition.
1565
82eeeb94
AF
15662002-11-18 Adam Fedor <fedor@gnu.org>
1567
1568 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1569 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1570 (op_name): Handle OP_OBJC_SELF.
1571 * Makefile.in (expprint.o): Add additional depends.
1572
646df18d
AF
15732002-11-18 Adam Fedor <fedor@gnu.org>
1574
1575 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1576 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1577 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1578 * objc-exp.y: Likewise.
1579
379b85df
AF
15802002-11-18 Adam Fedor <fedor@gnu.org>
1581
1582 * gdb/parser-defs.h: (struct objc_class_str): New structure
1583 for parsing ObjC classes.
1584
85cf597a
AC
15852002-11-18 Andrew Cagney <ac131313@redhat.com>
1586
1587 * stack.c (frame_relative_level): Copy function from here ...
1588 * frame.c (frame_relative_level): ...to here.
1589
5a203e44
AC
15902002-11-18 Andrew Cagney <ac131313@redhat.com>
1591
1592 * frame.h (enum frame_type): Define.
1593 (get_frame_type): Declare.
1594 (struct frame_info): Add field `type'. Delete field
1595 signal_handler_caller.
1596 (deprecated_set_frame_signal_handler_caller): Declare.
1597 * frame.c (get_frame_type): New function.
1598 (deprecated_set_frame_type): New function.
1599 (create_new_frame): Set the frame's type.
1600 (get_prev_frame): Similar.
1601 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1602 * s390-tdep.c: Ditto.
1603 * m68klinux-nat.c: Ditto.
1604 * ns32k-tdep.c: Ditto.
1605 * x86-64-linux-tdep.c: Ditto.
1606 * vax-tdep.c: Ditto.
1607 * rs6000-tdep.c: Ditto.
1608 * ppc-linux-tdep.c: Ditto.
1609 * i386-interix-tdep.c: Ditto.
1610 * mips-tdep.c: Ditto.
1611 * m68k-tdep.c: Ditto.
1612 * hppa-tdep.c: Ditto.
1613 * ia64-tdep.c: Ditto.
1614 * cris-tdep.c: Ditto.
1615 * arm-tdep.c: Ditto.
1616 * alpha-tdep.c: Ditto.
1617 * i386-tdep.c: Ditto.
1618 * stack.c: Ditto.
1619 * ada-lang.c: Ditto.
1620 * blockframe.c: Update.
1621 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1622 deprecated_set_frame_type instead of signal_handler_caller.
1623 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1624 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1625 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1626
bf4ae8b2
KD
16272002-11-18 Klee Dienes <kdienes@apple.com>
1628
1629 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1630
a672ef13
KD
16312002-11-18 Klee Dienes <kdienes@apple.com>
1632
1633 * buildsym.c (pop_context): Add comment.
1634
0c5e171a
KD
16352002-11-18 Klee Dienes <kdienes@apple.com>
1636
1637 * buildsym.h (pop_context): Convert to function, defined in
1638 buildsym.c.
1639 * buildsym.c: Include gdb_assert.h.
1640 (pop_context): Implement as C function. Add check for stack
1641 underflow.
1642 * dbxread.c (process_one_symbol): Complain and stop processing
1643 that symbol if we are already at the top of the context stack for
1644 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1645 when processing N_RBRAC.
1646
8a1f4c4c
DJ
16472002-11-16 Daniel Jacobowitz <drow@mvista.com>
1648
1649 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1650 define.
1651 (struct target_waitstatus): Add opaque definition.
1652 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1653 * exec.c (init_exec_ops): Likewise.
1654 * fork-child.c (clone_and_follow_inferior): Remove.
1655 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1656 * inferior.h (clone_and_follow_inferior): Remove prototype.
1657 * infrun.c (follow_fork_mode_both): Remove.
1658 (follow_fork_mode_kind_names): Remove commented out "both".
1659 (follow_inferior_fork): Remove follow_fork_mode_both support.
1660 * inftarg.c (child_clone_and_follow_inferior): Remove.
1661 (child_post_follow_inferior_by_clone): Remove.
1662 (init_child_ops): Don't set to_clone_and_follow_inferior
1663 or to_post_follow_inferior_by_clone.
1664 * target.c (default_clone_and_follow_inferior): Remove.
1665 (cleanup_target): Don't set to_clone_and_follow_inferior
1666 or to_post_follow_inferior_by_clone.
1667 (find_default_clone_and_follow_inferior): Remove.
1668 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1669 (debug_to_clone_and_follow_inferior): Remove.
1670 (debug_to_post_follow_inferior_by_clone): Remove.
1671 (setup_target_debug): Don't set to_clone_and_follow_inferior
1672 or to_post_follow_inferior_by_clone.
1673 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1674 and to_post_follow_inferior_by_clone.
1675 (child_clone_and_follow_inferior): Remove prototype.
1676 (child_post_follow_inferior_by_clone): Remove prototype.
1677 (target_clone_and_follow_inferior): Remove macro.
1678 (target_post_follow_inferior_by_clone): Remove macro.
1679 (find_default_clone_and_follow_inferior): Remove prototype.
1680
47932f85
DJ
16812002-11-16 Daniel Jacobowitz <drow@mvista.com>
1682
1683 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1684 inferior_has_vforked, and inferior_has_execd instead of
1685 target_has_forked, target_has_vforked, and target_has_execd.
1686 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1687 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1688 (CHILD_WAIT): Define.
1689 (child_wait): Add prototype.
1690 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1691 Add prototype.
1692 (hpux_has_vforked): Likewise, from child_has_vforked.
1693 (hpux_has_execd): Likewise, from child_has_execd.
1694 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1695 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1696 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1697 and hpux_has_syscall_event instead of the target hooks.
1698 * infrun.c (inferior_has_forked, inferior_has_vforked)
1699 (inferior_has_execd): New functions.
1700 * inftarg.c (not_same_real_pid): Remove.
1701 (child_wait): Remove references to not_same_real_pid,
1702 target_has_forked, target_has_vforked, target_has_execd,
1703 and target_has_syscall_event.
1704 (child_has_forked, child_has_vforked, child_has_execd)
1705 (child_has_syscall_event): Remove.
1706 (init_child_ops): Remove references to child_has_forked,
1707 child_has_vforked, child_has_execd, and child_has_syscall_event.
1708 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1709 (hpux_has_vforked): Likewise, from child_has_vforked.
1710 (hpux_has_execd): Likewise, from child_has_execd.
1711 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1712 * target.c (cleanup_target): Remove references to
1713 to_has_forked, to_has_vforked, to_has_execd, and
1714 to_has_syscall_event.
1715 (update_current_target): Likewise.
1716 (setup_target_debug): Likewise.
1717 (debug_to_has_forked): Remove.
1718 (debug_to_has_vforked): Remove.
1719 (debug_to_has_execd): Remove.
1720 (debug_to_has_syscall_event): Remove.
1721 * target.h (struct target_ops): Remove to_has_forked.
1722 to_has_vforked, to_has_execd, and to_has_syscall_event.
1723 (child_has_forked, child_has_vforked, child_has_execd)
1724 (child_has_syscall_event): Remove prototypes.
1725 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1726 prototypes.
1727 (target_has_forked, target_has_vforked, target_has_execd)
1728 (target_has_syscall_event): Remove macros.
1729
4088142a
DJ
17302002-11-16 Daniel Jacobowitz <drow@mvista.com>
1731
1732 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1733 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1734 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1735 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1736 * target.c (cleanup_target): Remove reference to
1737 to_can_follow_vfork_prior_to_exec.
1738 (update_current_target): Likewise.
1739 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1740 (setup_target_debug): Remove reference to
1741 to_can_follow_vfork_prior_to_exec.
1742 * target.h (struct target_ops): Remove
1743 to_can_follow_vfork_prior_to_exec.
1744 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1745 (target_can_follow_vfork_prior_to_exec): Remove definition.
1746 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1747 define.
1748 * infrun.c (follow_vfork_when_exec): Remove.
1749 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1750 (follow_exec): Likewise.
1751 (handle_inferior_event): Likewise.
1752 (keep_going): Likewise.
1753
18cde8d5
AC
17542002-11-15 Andrew Cagney <cagney@redhat.com>
1755
1756 * frame.c (generic_unwind_get_saved_register): Make static.
1757 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1758 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1759 defaults to generic_unwind_get_saved_register.
1760 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1761 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1762 * frv-tdep.c (frv_gdbarch_init): Ditto.
1763 * i386-tdep.c (i386_gdbarch_init): Ditto.
1764 * s390-tdep.c (s390_gdbarch_init): Ditto.
1765 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1766 * v850-tdep.c (v850_gdbarch_init): Ditto.
1767 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1768 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1769 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1770
a6b063af
AC
17712002-11-15 Andrew Cagney <cagney@redhat.com>
1772
1773 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1774 i386-tdep.c.
1775
f407986f
AC
17762002-11-15 Andrew Cagney <cagney@redhat.com>
1777
1778 * frame.h (sigtramp_saved_pc): Delete declaration.
1779 * blockframe.c (sigtramp_saved_pc): Delete function.
1780 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1781 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1782 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1783 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1784
f18c5a73
AC
17852002-11-15 Andrew Cagney <ac131313@redhat.com>
1786
1787 * frame.c (frame_pc_unwind): New function.
1788 (frame_saved_regs_pc_unwind): New function.
1789 (frame_register_unwind): Pass unwind_cache instead of
1790 register_unwind_cache.
1791 (set_unwind_by_pc): Add unwind_pc parameter, set.
1792 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1793 (get_prev_frame): Ditto.
1794 * frame.h (frame_pc_unwind_ftype): Declare.
1795 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1796 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1797 (frame_pc_unwind): Declare.
1798 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1799 (struct dummy_frame): Add comment mentioning that values are for
1800 previous frame.
1801 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1802 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1803 (generic_file_frame_chain_valid): Ditto.
1804 * stack.c (frame_info): Ditto.
1805
d9285969 18062002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1807
1808 * linespec.c (locate_first_half): New function.
1809 (decode_line_1): Move code into locate_first_half.
1810
d741b867
AC
18112002-11-15 Andrew Cagney <ac131313@redhat.com>
1812
1813 * complaints.h: Add comment explaining how to eliminate a
1814 deprecated_complain call.
24382c5c 1815 * complaints.h: Fix spelling errors.
d741b867 1816
82d03c99
DC
18172002-11-15 David Carlton <carlton@math.stanford.edu>
1818
1819 * printcmd.c: Remove #include "disasm.h".
1820
c97eb5d9
AC
18212002-11-14 Andrew Cagney <ac131313@redhat.com>
1822
1823 * frame.h: Move the most relevant interface functions to the start
1824 of the file.
1825
524d7c18
AC
18262002-11-14 Andrew Cagney <ac131313@redhat.com>
1827
1828 * regcache.h (deprecated_registers): Rename registers.
1829 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1830 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1831 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1832 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1833 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1834 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1835 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1836 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1837 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1838 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1839 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1840 * v850ice.c: Update.
1841
6411e720
AC
1842Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1843
1844 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1845 NULL buffer.
1846
73937e03
AC
18472002-11-13 Andrew Cagney <cagney@redhat.com>
1848
1849 * regcache.h (deprecated_read_register_bytes): Rename
1850 read_register_bytes.
1851 (deprecated_write_register_bytes): Rename write_register_bytes.
1852 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1853 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1854 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1855 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1856 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1857 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1858 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1859 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1860 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1861 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1862 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1863 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1864 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1865 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1866
fb0cd46e
JB
18672002-11-13 Jim Blandy <jimb@redhat.com>
1868
1869 * findvar.c (read_var_value): Doc fix.
1870
2d28509a
AC
18712002-11-13 Andrew Cagney <cagney@redhat.com>
1872
1873 * regcache.c (struct regcache): Replace passthough_p with
1874 readonly_p.
1875 (regcache_xmalloc): Initialize readonly_p.
1876 (build_regcache): Initialize readonly_p.
1877 (regcache_save): New function.
1878 (regcache_restore): New function.
1879 (regcache_cpy): Re-implement using regcache_save and
1880 regcache_restore.
1881 (regcache_raw_read): Update.
1882 (regcache_cooked_read): When a read-only cache, checked for cached
1883 pseudo register values.
1884 (regcache_raw_write): Assert that the cache is not read-only.
1885 Remove code handling a non-passthrough cache.
1886 * regcache.h (regcache_save): Declare.
1887 (regcache_restore): Declare.
1888
067df2e5
AC
18892002-11-13 Andrew Cagney <cagney@redhat.com>
1890
1891 * regcache.c (struct regcache_descr): Add fields
1892 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1893 (init_legacy_regcache_descr): Compute the size of a cooked
1894 register cache and then assign that to sizeof_raw_registers. Set
1895 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1896 (init_legacy_regcache_descr): Ditto.
1897
51b1fe4e
AC
18982002-11-13 Andrew Cagney <cagney@redhat.com>
1899
1900 * regcache.c (register_buffer): Move to near start of file, update
1901 description.
1902 (regcache_raw_read): Use.
1903 (regcache_raw_write): Use.
1904 (struct regcache): Rename raw_registers to registers and
1905 raw_register_valid_p to register_valid_p.
1906 (regcache_xmalloc): Update.
1907 (regcache_xfree): Update.
1908 (register_buffer): Update.
1909 (regcache_cpy): Update.
1910 (regcache_cpy_no_passthrough): Update.
1911 (regcache_valid_p): Update.
1912 (deprecated_grub_regcache_for_registers): Update.
1913 (deprecated_grub_regcache_for_register_valid): Update.
1914 (set_register_cached): Update.
1915 (regcache_raw_write): Update.
1916
80b4c677
PM
19172002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1918
1919 * p-exp.y (name_not_typename): Use copy_name to
1920 set current_type variable for fields of THIS.
1921
0f3fafde
DJ
19222002-11-12 Daniel Jacobowitz <drow@mvista.com>
1923
1924 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1925 * monitor.c (init_base_monitor_ops): Likewise.
1926 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1927 * remote-array.c (init_array_ops): Likewise.
1928 * remote-e7000.c (init_e7000_ops): Likewise.
1929 * remote-es.c (init_es1800_ops): Likewise.
1930 (init_es1800_child_ops): Likewise.
1931 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1932 * remote-sim.c (init_gdbsim_ops): Likewise.
1933 * remote-st.c (init_st2000_ops): Likewise.
1934 * sol-thread.c (init_sol_core_ops): Likewise.
1935 (init_sol_thread_ops): Likewise.
1936 * v850ice.c (init_850ice_ops): Likewise.
1937 * win32-nat.c (init_child_ops): Likewise.
1938 * wince.c (init_child_ops): Likewise.
1939
82c0260e
AC
19402002-11-12 Andrew Cagney <ac131313@redhat.com>
1941
1942 * utils.c (gdb_realpath): Make rp a constant pointer.
1943
70d35819
AC
19442002-11-12 Andrew Cagney <ac131313@redhat.com>
1945
1946 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1947 a constant buffer; cannonicalize_file_name(); realpath() with a
1948 pathconf() defined buffer, xstrdup().
1949
9835a8b0
AC
19502002-11-12 Andrew Cagney <ac131313@redhat.com>
1951
1952 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1953 to hang2.C; hang3.c to hang3.C.
1954
3f47be5c
EZ
19552002-11-11 Elena Zannoni <ezannoni@redhat.com>
1956
1957 * findvar.c (read_var_value): Reenable TLS code.
1958
19592002-11-11 Elena Zannoni <ezannoni@redhat.com>
1960 Jim Blandy <jimb@redhat.com>
1961
1962 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1963 * target.c (update_current_target): Add
1964 to_get_thread_local_address.
1965 * target.h (to_get_thread_local_address): Export.
1966 (target_get_thread_local_address): Define.
1967 (target_get_thread_local_address_p): Define.
1968 * thread-db.c: Include solib-svr4.h.
1969 (td_thr_tls_get_addr_p): Define.
1970 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1971 (thread_db_get_thread_local_address): New function.
1972 (init_thread_db_ops): Initialize to_get_thread_local_address.
1973 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1974 * configure: Regenerate.
1975 * config.in: Regenerate.
1976
636b1a6d
DC
19772002-11-11 David Carlton <carlton@math.stanford.edu>
1978
1979 * linespec.c (set_flags): New function.
1980 (decode_line_1): Move code into set_flags.
1981
44fe14ab
DC
19822002-11-11 David Carlton <carlton@math.stanford.edu>
1983
1984 * linespec.c (decode_line_1): Move chunks of code to separate
1985 functions.
1986 (initialize_defaults): New function.
1987 (decode_indirect): New function.
1988
e6f181f5
AC
19892002-11-11 Andrew Cagney <ac131313@redhat.com>
1990
8971b011
AC
1991 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1992 instead of void_code_ptr.
1993 (sigtramp_saved_pc): Ditto.
1994
e6f181f5
AC
1995 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1996 i386_fp_regnum_p.
1997
01ad7f36
DJ
19982002-11-10 Daniel Jacobowitz <drow@mvista.com>
1999
2000 * gdbtypes.h (struct main_type): Move artificial flag out of
2001 loc. New member of ``struct field'' named static_kind. Reduce
2002 overloaded meaning of bitsize.
2003 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2004 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2005 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2006
2007 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2008 new fields.
2009 (template_to_fixed_record_type, template_to_static_fixed_type)
2010 (to_record_with_fixed_variant_part): Likewise.
2011 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2012 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2013 * dwarfread.c (struct_type, enum_type): Likewise.
2014 * hpread.c (hpread_read_enum_type)
2015 (hpread_read_function_type, hpread_read_doc_function_type)
2016 (hpread_read_struct_type): Likewise.
2017 * mdebugread.c (parse_symbol): Likewise.
2018
bf1e52be
AC
20192002-11-10 Andrew Cagney <ac131313@redhat.com>
2020
2021 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2022 * stack.c (print_frame_info_base): Update.
2023 (print_frame_info_base, frame_info): Update.
2024 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2025 (sparc_frame_saved_pc): Update.
2026 * ada-lang.c (find_printable_frame): Update.
2027 * breakpoint.c (deprecated_frame_in_dummy): Update.
2028
ce556f85
MK
20292002-11-09 Mark Kettenis <kettenis@gnu.org>
2030
2031 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2032 defined.
2033 (regmap): Extend to cover all registers.
2034 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2035 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2036 definitions.
2037 (fetch_register, sore_register): Simplify.
2038 (old_fetch_inferior_registers, old_store_inferior_registers):
2039 Remove functions.
2040 (cannot_fetch_register, cannot_store_register): Change
2041 implementation to use regmap array to decide which registers
2042 cannot be fetched/stored. This removes $orig_eax from the
2043 registers that cannot be fetched/stored.
2044 (fetch_inferior_registers): Call fetch_register directly instead
2045 of calling old_fetch_inferior_registers.
2046 (store_inferior_registers): Call store_register directly instead
2047 of calling old_store_inferior_registers.
2048 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2049 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2050 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2051
932bb524
KD
20522002-11-09 Klee Dienes <kdienes@apple.com>
2053
2054 * i387-tdep.c (i387_supply_register): When called with NULL as a
2055 buffer, mark the register as not provided (to mirror the behavior
2056 of supply_register).
2057 (i387_supply_fxsave): Ditto.
2058 (i387_supply_fsave): Ditto (inherits the behavior from
2059 i387_supply_register).
2060
ebe68b27
KD
20612002-11-09 Klee Dienes <kdienes@apple.com>
2062
2063 * blockframe.c (sigtramp_saved_pc): Use
2064 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2065 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2066 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2067
15220c65
AC
20682002-11-09 Andrew Cagney <ac131313@redhat.com>
2069
2070 * frame.c (get_prev_frame): Test prev_p to identify a previously
2071 unwound frame. Initialize prev_p.
2072 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2073 comment.
2074
95adb866
AC
20752002-11-09 Andrew Cagney <ac131313@redhat.com>
2076
2077 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2078 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2079 more comments. Zap dead code.
2080
e71ecd70
MK
20812002-11-09 Mark Kettenis <kettenis@gnu.org>
2082
2083 * infcmd.c (print_vector_info, print_float_info): Move code that
2084 checks whether the target has any registers and whether there is a
2085 selected frame up, such that it is also used if a target provides
2086 multi-arch definitions of these functions.
2087
c525330d
AC
20882002-11-08 Andrew Cagney <ac131313@redhat.com>
2089
72bdd927
AC
2090 * Makefile.in (DESTDIR): Define.
2091 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2092 prefix.
2093
c525330d
AC
2094 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2095 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2096
38c968cf
AC
20972002-11-08 Andrew Cagney <ac131313@redhat.com>
2098
2099 * i386-linux-tdep.c: Include "reggroups.h".
2100 (i386_linux_register_reggroup_p): New function.
2101 (i386_linux_init_abi): Set register_reggroup_p to
2102 i386_linux_register_reggroup_p.
2103 * i386-tdep.h (i386_register_reggroup_p): Declare.
2104 * i386-tdep.c: Include "reggroups.h".
2105 (i386_init_reggroups): New function.
2106 (i386_add_reggroups): New function.
2107 (i386_register_reggroup_p): New function.
2108 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2109 (_initialize_i386_tdep): Call i386_init_reggroups.
2110 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2111 specific reggroups.
2112
19e33363
MK
21132002-11-09 Mark Kettenis <kettenis@gnu.org>
2114
371a6e84
MK
2115 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2116 request that's available in *BSD.
2117
94ba925a
MK
2118 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2119
19e33363
MK
2120 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2121 FDOFF_REGNUM.
2122
8779790c
AC
21232002-11-08 Andrew Cagney <ac131313@redhat.com>
2124
2125 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2126 * dummy-frame.c (find_dummy_frame): Rename
2127 generic_find_dummy_frame, make static. Return the dummy frame
2128 instead of the regcache.
2129 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2130 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2131 (dummy_frame_register_unwind): Rename
2132 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2133 * dummy-frame.h (dummy_frame_register_unwind): Rename
2134 generic_call_dummy_register_unwind.
2135
8674b74f
MK
21362002-11-08 Mark Kettenis <kettenis@gnu.org>
2137
2138 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2139 except the inclusion of "i386/tm-i386.h", to...
2140 * config/i386/nm-i386v42mp.h: ...here.
2141 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2142
4c1e7e9d
AC
21432002-11-08 Andrew Cagney <ac131313@redhat.com>
2144
2145 * Makefile.in (frame.o): Update dependencies.
2146 * blockframe.c (current_frame, frame_obstack_alloc)
2147 (frame_saved_regs_zalloc, get_current_frame)
2148 (set_current_frame, create_new_frame)
2149 (set_unwind_by_pc, get_next_frame)
2150 (flush_cached_frames, reinit_frame_cache)
2151 (frame_saved_regs_register_unwind)
2152 (deprecated_generic_get_saved_register)
2153 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2154 (_initialize_blockframe): Move frame code from here...
2155 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2156 "annotate.h" and "dummy-frame.h".
2157 (_initialize_frame): New function.
2158
921e78cf
JB
21592002-11-08 Jim Blandy <jimb@redhat.com>
2160
2161 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2162 when we finish a function a context.
2163 * buildsym.h (outermost_context_p): New macro.
2164 (Bug analyzed by David Edelsohn.)
2165
9c1412c1
AC
21662002-11-08 Andrew Cagney <ac131313@redhat.com>
2167
2168 * blockframe.c: Include "dummy-frame.h".
2169 (struct dummy_frame, dummy_frame_stack)
2170 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2171 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2172 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2173 (generic_save_call_dummy_addr, generic_pop_current_frame)
2174 (generic_pop_dummy_frame, generic_fix_call_dummy)
2175 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2176 dummy frame code from here...
2177 * dummy-frame.c: ...to here. New file.
2178 * dummy-frame.h: New file.
2179 (generic_call_dummy_register_unwind): Declare.
2180 (generic_find_dummy_frame): Declare.
2181 * Makefile.in (SFILES): Add dummy-frame.c.
2182 (dummy-frame.o): Specify dependencies.
2183 (dummy_frame_h): Define.
2184 (COMMON_OBS): Add dummy-frame.o.
2185 (blockframe.o): Update dependencies.
2186
208d8187
JB
21872002-11-08 Jim Blandy <jimb@redhat.com>
2188
2189 * dwarf2read.c (read_func_scope): Restore local_symbols and
2190 param_symbols after we finish the function context. (Based on a
2191 patch from David Edelsohn.)
2192
413dad4d
DC
21932002-11-08 David Carlton <carlton@math.stanford.edu>
2194
2195 * linespec.c (symbol_found): New function.
2196 (minsym_found): New function.
2197 (decode_line_1): Separate out some code into separate functions.
2198
5512c44a
JB
21992002-11-08 Joel Brobecker <brobecker@gnat.com>
2200
2201 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2202 the benefit of the interix target.
2203 * i386-tdep.h (i386_frameless_signal_p): Declare.
2204
1b33ef47
AC
22052002-11-08 Andrew Cagney <ac131313@redhat.com>
2206
2207 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2208 declaration that snuck in from change below.
2209
23a34459
AC
22102002-11-06 Andrew Cagney <cagney@redhat.com>
2211
2212 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2213 all callers.
2214 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2215 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2216 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2217 (i386_mxcsr_regnum_p): new function. Use instead of
2218 MXCSR_REGNUM_P.
2219 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2220 (i386_sse_regnum_p): Declare.
2221 (i386_mxcsr_regnum_p): Declare.
2222 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2223 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2224 (IS_FP_REGNUM): Update definition.
2225 (IS_FPU_CTRL_REGNUM): Update definition..
2226 (IS_SSE_REGNUM): Update definition..
2227 * i386v-nat.c (register_u_addr): Update.
2228 * go32-nat.c (fetch_register): Update.
2229 (store_register): Update.
2230
d709c020
JB
22312002-11-07 Joel Brobecker <brobecker@gnat.com>
2232
2233 Preparation work to convert the hppa targets to multiarch partial.
2234
2235 * hppa-tdep.c: Add new functions replacing macro bodies from
2236 config/pa/tm-hppa.h. These function will be used to initialize
2237 the gdbarch structure. Import some comments from tm-hppa.h,
2238 and place them where appropriate, to avoid loosing them when
2239 we cleanup this file.
2240 (hppa_reg_struct_has_addr): New function.
2241 (hppa_inner_than): New function.
2242 (hppa_stack_align): New function.
2243 (hppa_pc_requires_run_before_use): New function.
2244 (hppa_instruction_nullified): New function.
2245 (hppa_register_byte): New function.
2246 (hppa_register_virtual_type): New function.
2247 (hppa_store_struct_return): New function.
2248 (hppa_cannot_store_register): New function.
2249 (hppa_frame_args_address): New function.
2250 (hppa_frame_locals_address): New function.
2251 (hppa_smash_text_address): New function.
2252 (hppa_coerce_float_to_double): New function. Requires the inclusion
2253 of "language.h".
2254
2255 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2256
2257 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2258 gdbarch-eligible macro to a call to the new associated function
2259 created in hppa-tdep.c.
2260 (INNER_THAN): Likewise.
2261 (STACK_ALIGN): Likewise.
2262 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2263 (INSTRUCTION_NULLIFIED): Likewise.
2264 (REGISTER_BYTE): Likewise.
2265 (REGISTER_VIRTUAL_TYPE): Likewise.
2266 (STORE_STRUCT_RETURN): Likewise.
2267 (CANNOT_STORE_REGISTER): Likewise.
2268 (FRAME_ARGS_ADDRESS): Likewise.
2269 (FRAME_LOCALS_ADDRESS): Likewise.
2270 (SMASH_TEXT_ADDRESS): Likewise.
2271 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2272 (ABOUT_TO_RETURN): Delete, as no longer used.
2273
83c31e7d
FN
22742002-11-07 Fernando Nasser <fnasser@redhat.com>
2275
2276 * printcmd.c (disassemble_command): Remove obsolete function.
2277 (_initialize_printcmd): Do not create disassemble command here.
2278 * cli/cli-cmds.c (disassemble_command): New function. Implements
2279 disassemble command.
2280 (init_cli_cmds): Create disassemble command here instead.
2281
0ec30a36
AC
22822002-11-07 Andrew Cagney <ac131313@redhat.com>
2283
2284 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2285
e600bd34
AC
22862002-11-07 Andrew Cagney <ac131313@redhat.com>
2287
2288 * regcache.h (regcache_cooked_read_using_offset_hack)
2289 (regcache_cooked_write_using_offset_hack): Delete declarations.
2290 (register_changed): Delete declaration.
2291 * regcache.c (regcache_cooked_read_using_offset_hack)
2292 (regcache_cooked_write_using_offset_hack): Delete functions.
2293 (cooked_xfer_using_offset_hack): Delete function.
2294 (register_changed): Delete function.
2295
568f8739
JB
22962002-11-07 Jim Blandy <jimb@redhat.com>
2297
2298 * macroscope.c: #include "complaints.h".
2299 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2300 but not in the macro table.
2301 * Makefile.in (macroscope.o): Record dependency.
2302
b0718b7b
JB
23032002-11-07 Joel Brobecker <brobecker@gnat.com>
2304
2305 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2306
2b9e5f3f
AC
23072002-11-07 Andrew Cagney <ac131313@redhat.com>
2308
2309 * regcache.c (deprecated_registers_fetched): Update.
2310 * regcache.h (deprecated_registers_fetched): Rename
2311 registers_fetched.
2312 * remote-vxsparc.c (vx_read_register): Update.
2313 * remote-vxmips.c (vx_read_register): Update.
2314 * remote-vx68.c (vx_read_register): Update.
2315 * irix5-nat.c (fetch_core_registers): Update.
2316 * mipsm3-nat.c (fetch_inferior_registers): Update.
2317 * sun3-nat.c (fetch_inferior_registers): Update.
2318 * symm-nat.c (fetch_inferior_registers): Update.
2319 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2320 (fetch_core_registers): Update.
2321 (fetch_kcore_registers): Update.
2322 * mips-nat.c (fetch_inferior_registers): Update.
2323 * corelow.c (get_core_registers): Update.
2324 * a68v-nat.c (fetch_inferior_registers): Update.
2325
e6e68f1f
JB
23262002-11-06 Joel Brobecker <brobecker@gnat.com>
2327
2328 Put in place the framework necessary for multiarching the hppa targets.
2329 * hppa-tdep.c (hppa_gdbarch_init): New function.
2330 (hppa_dump_tdep): New function.
2331 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2332 tdep structure dumper.
2333 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2334 until the multi-arching conversion has partially been completed.
2335
492254e9
AC
23362002-11-06 Andrew Cagney <ac131313@redhat.com>
2337
2338 * valops.c (value_assign): Merge lval_register case into
2339 lval_reg_frame_relative. Use frame_register and
2340 regcache_cooked_write instead of get_saved_register and
2341 write_register_bytes. After flushing the register cache, try to
2342 re-select the selected frame.
2343
8262ee23
AC
23442002-11-06 Andrew Cagney <ac131313@redhat.com>
2345
2346 * regcache.h (deprecated_register_valid): Rename register_valid.
2347 * regcache.c: Update.
2348 * ia64-aix-nat.c: Update.
2349 * i386gnu-nat.c: Update.
2350 * alpha-nat.c: Update.
2351 * sparc-nat.c: Update.
2352 * lynx-nat.c: Update.
2353 * remote-mips.c: Update.
2354
4facf7e8
JB
23552002-11-06 Joel Brobecker <brobecker@gnat.com>
2356
2357 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2358 to end of file, to be more consistent with the pratice followed
2359 by other targets.
2360
f9418c0f
AC
23612002-11-06 Andrew Cagney <ac131313@redhat.com>
2362
2363 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2364 (print_float_info): Print registers in float_reggroup.
2365 (print_vector_info): Print registers in vector_reggroup.
2366 (default_print_registers_info): When all, print registers in
2367 all_reggroup. Otherwize, print registers in general_reggroup.
2368 (registers_info): Rewrite. Add support for register groups.
2369 Eliminate a goto.
2370
3fe235a7
EZ
23712002-11-06 Elena Zannoni <ezannoni@redhat.com>
2372
2373 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2374 ages.
2375 (symtab_symbol_info): Remove eons old ifdeffed out code.
2376 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2377 command.
2378
ef944135
TR
23792002-11-06 Theodore A. Roth <troth@openavr.org>
2380
2381 * c-exp.y: Add missing semi-colons.
2382 * f-exp.y: Add missing semi-colons.
2383 * m2-exp.y: Add missing semi-colons.
2384 * p-exp.y: Add missing semi-colons.
2385 Add empty action to start rule to avoid a type clash error when
2386 building with bison >= 1.50.
2387
f8302a57
JB
23882002-11-06 Jim Blandy <jimb@redhat.com>
2389
2390 * macrotab.h (struct macro_source_file): Doc fix.
2391
6e382aa3
JJ
23922002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2393
2394 * varobj.c (child_exists, cplus_number_of_children): Change
2395 STREQ macro references to strcmp.
2396 (cplus_name_of_child): Change code to handle the fact that
2397 fields are not necessarily contiguous with regards to their
2398 access control. This is a fix for PR gdb/792.
2399
a216a322
AC
24002002-11-05 Andrew Cagney <ac131313@redhat.com>
2401
2402 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2403 * gdbarch.h, gdbarch.c: Regnerate.
2404 * frame.h (frame_register): Declare.
2405 * frame.c (frame_register): New function.
2406 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2407 GET_SAVED_REGISTER, otherwize call
2408 generic_unwind_get_saved_register.
2409 (frame_register_read): Use frame_register instead of
2410 get_saved_register.
2411
7d5b6fdd
EZ
24122002-11-05 Elena Zannoni <ezannoni@redhat.com>
2413
2414 From Jim Ingham <jingham@apple.com>:
2415 * event-top.c (gdb_disable_readline): New function.
2416 (_initialize_event_loop): Move comment.
2417
b7c64260
EZ
24182002-11-05 Elena Zannoni <ezannoni@redhat.com>
2419
2420 * event-loop.c (start_event_loop): Add comment.
2421 Update copyright.
2422
c2e1b8f2
AC
24232002-11-05 Andrew Cagney <ac131313@redhat.com>
2424
2425 * infcmd.c (default_print_registers_info): Do not call
2426 PRINT_REGISTER_HOOK.
2427
87647bb0
AC
24282002-11-05 Andrew Cagney <ac131313@redhat.com>
2429
2430 * sparc-tdep.c (sparc_print_register_hook): Make static.
2431 (sparc_print_registers_info): New function.
2432 (sparc_do_registers_info): New function.
2433 (sparclet_print_registers_info): New function.
2434 (sparclet_do_registers_info): New function.
2435 (do_sparc_print_registers_info): New function.
2436 (sparc_print_registers): New static function, clone of infcmd.c's
2437 default_print_registers_info.
2438 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2439 (sparclet_do_registers_info): Declare.
2440 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2441 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2442 Re-define.
2443 (sparc_do_registers_info): Declare.
2444 (PRINT_REGISTER_HOOK): Delete macro.
2445 (sparc_print_register_hook): Delete declaration.
2446
8155455b
DC
24472002-11-05 David Carlton <carlton@math.stanford.edu>
2448
2449 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2450 functions.
2451 (lookup_symbol_aux_local): New function.
2452 (lookup_symbol_aux_symtabs): New function.
2453 (lookup_symbol_aux_psymtabs): New function.
2454
29924310
DC
24552002-11-05 David Carlton <carlton@math.stanford.edu>
2456
2457 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2458 previous values of 'objfile' and 'block'.
2459
cc303028
PM
24602002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2461
2462 * values.c (value_change_enclosing_type): Set
2463 enclosing_type field correctly also for the case where
2464 more memory needs to be allocated.
2465
1d70089a
MK
24662002-11-03 Mark Kettenis <kettenis@gnu.org>
2467
f16a25ae
MK
2468 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2469 of puts_filtered.
2470
1d70089a
MK
2471 * i387-tdep.c (i387_print_float_info): Replace calls to
2472 register_read and deprecated_read_register_gen with calls to
2473 frame_register_read, and make the necessary adjustments to the
2474 surrounding code.
2475
7e20f3fb
AC
24762002-11-02 Andrew Cagney <ac131313@redhat.com>
2477
2478 * gdbarch.sh (register_reggroup_p): Allow default value.
2479 * gdbarch.h, gdbarch.c: Regenerate.
2480
192dbe33
AC
24812002-11-02 Andrew Cagney <ac131313@redhat.com>
2482
2483 * regcache.h: Add coment indicating replacements for deprecated
2484 functions.
2485
b59ff9d5
AC
24862002-11-02 Andrew Cagney <cagney@redhat.com>
2487
2488 * reggroups.h, reggroups.c: New files.
2489 * regcache.c: Include "reggroups.h".
2490 (enum regcache_dump_what): Add `regcache_dump_groups'.
2491 (regcache_dump): Contract size of the "Type" column. When
2492 specified, dump the register's groups.
2493 (maintenance_print_register_groups): New function.
2494 (_initialize_regcache): Add command `maint print register-groups'.
2495 * Makefile.in (COMMON_OBS): Add reggroups.o
2496 (SFILES): Add reggroups.c.
2497 (reggroups_h): Define.
2498 (regcache.o, gdbarch.o): Update dependencies.
2499 (reggroups.o): Specify dependencies.
2500 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2501 Add opaque declaration for `struct reggroup' in generated .h file.
2502 Include "reggroups.h" in generated .c file.
2503 gdbarch.h, gdbarch.c: Re-generate.
2504
4caf0990
AC
25052002-11-02 Andrew Cagney <cagney@redhat.com>
2506
2507 * regcache.h (deprecated_read_register_gen): Rename
2508 read_register_gen.
2509 (deprecated_write_register_gen): Rename write_register_gen.
2510 * i387-tdep.c: Update.
2511 * x86-64-linux-nat.c: Update
2512 * wince.c: Update.
2513 * thread-db.c: Update.
2514 * win32-nat.c: Update.
2515 * mips-tdep.c: Update.
2516 * d10v-tdep.c: Update.
2517 * cris-tdep.c: Update.
2518 * remote-sim.c: Update.
2519 * remote-rdi.c: Update.
2520 * remote-rdp.c: Update.
2521 * frame.c: Update.
2522 * target.c: Update.
2523 * blockframe.c: Update.
2524 * x86-64-tdep.c: Update.
2525 * xstormy16-tdep.c: Update.
2526 * sh-tdep.c: Update.
2527 * s390-tdep.c: Update.
2528 * rs6000-tdep.c: Update.
2529 * sparc-tdep.c: Update.
2530 * i386-tdep.c: Update.
2531 * dwarf2cfi.c: Update.
2532 * regcache.c: Update.
2533
7a7adcdf
JB
25342002-11-01 Joel Brobecker <brobecker@gnat.com>
2535
2536 New interix-specific files:
2537 * config/i386/nm-interix.h: New file.
2538 * config/i386/interix.mh: New file.
2539 * config/i386/interix.mt: New file.
2540 * i386-interix-nat.c: New file.
2541 * i386-interix-tdep.c: New file.
2542
bdcdd535
AC
25432002-11-01 Andrew Cagney <cagney@redhat.com>
2544
2545 * frame.h (deprecated_generic_get_saved_register): Rename
2546 generic_get_saved_register.
2547 * blockframe.c (deprecated_generic_get_saved_register): Update.
2548 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2549 (xstormy16_frame_saved_register): Update.
2550 * sh-tdep.c (sh_gdbarch_init): Update.
2551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2552 * ia64-tdep.c (ia64_get_saved_register): Update.
2553 * cris-tdep.c (cris_gdbarch_init): Update.
2554 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2555 * arm-tdep.c (arm_gdbarch_init): Update.
2556
2a4b7c45
DJ
25572002-10-31 Daniel Jacobowitz <drow@mvista.com>
2558
2559 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2560
ef17e74b
DJ
25612002-10-31 Daniel Jacobowitz <drow@mvista.com>
2562
2563 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2564 trampolines in sigaction.
2565
4904ba5b
AC
25662002-10-31 Andrew Cagney <cagney@redhat.com>
2567
2568 * h8300-tdep.c: Include "gdb_assert.h".
2569 (h8300_print_register): Add gdbarch, file and frame parameters.
2570 Use frame_read_unsigned_register to read the register's value.
2571 Use fprintf_filtered to display output.
2572 (h8300_print_registers_info): Replace h8300_do_registers_info.
2573 (h8300_gdbarch_init): Set print_registers_info.
2574
f908a0eb
AC
25752002-10-31 Andrew Cagney <cagney@redhat.com>
2576
2577 * frame.c (frame_read_unsigned_register): New function.
2578 (frame_read_signed_register): New function.
2579 * frame.h (frame_read_unsigned_register): Declare.
2580 (frame_read_signed_register): Declare.
2581
c5646e11
AC
25822002-10-31 Andrew Cagney <cagney@redhat.com>
2583
2584 * h8500-tdep.c (h8500_print_registers_info): New static function,
2585 clone of infcmd.c's default_print_registers_info.
2586 (h8500_do_registers_info): New funtion.
2587 (h8500_print_register_hook): Rename print_register_hook, make
2588 static.
2589
2590 * config/h8500/tm-h8500.h: Update copyright.
2591 (DEPRECATED_DO_REGISTERS_INFO): Define.
2592 (h8500_do_registers_info: Declare.
2593 (PRINT_REGISTER_HOOK): Delete macro.
2594 (print_register_hook): Delete function.
2595
0bdd672b
AC
25962002-10-31 Andrew Cagney <cagney@redhat.com>
2597
2598 * z8k-tdep.c (z8k_print_register_hook): Make static.
2599 (z8k_print_registers_info): New static function, clone of
2600 infcmd.c's default_print_registers_info.
2601 (z8k_do_registers_info): New function. Wrap
2602 z8k_print_registers_info.
2603 * config/z8k/tm-z8k.h: Update copyright.
2604 (PRINT_REGISTER_HOOK): Delete macro.
2605 (z8k_print_register_hook): Delete declaration.
2606 (DEPRECATED_DO_REGISTERS_INFO): Define.
2607 (z8k_do_registers_info): Declare.
2608
bf9c25dc
JB
26092002-10-30 Joel Brobecker <brobecker@gnat.com>
2610
2611 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2612 as this is already provided by value.h, and was actually causing
2613 a compilation error because of a conflict in parameter type
2614 declaration due to a missing const keyword.
2615 (low_text_segment_addres): Fix a compilation warning.
2616
2c665b51
DJ
26172002-10-29 Daniel Jacobowitz <drow@mvista.com>
2618
2619 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2620 registers without a name.
2621 (mips_linux_cannot_store_register): Don't store registers without
2622 a name.
2623
e70ea697
DC
26242002-10-28 David Carlton <carlton@math.stanford.edu>
2625
2626 * symtab.c (find_addr_symbol): Delete. (It was already commented
2627 out.)
2628 * symtab.h: Delete prototype for find_addr_symbol.
2629
903ad3a6
AC
26302002-10-26 Andrew Cagney <cagney@redhat.com>
2631
2632 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2633 DO_REGISTERS_INFO.
2634 gdbarch.h, gdbarch.c: Re-generate.
2635 * infcmd.c (default_print_registers_info): Update reference.
2636 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2637 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2638 * sh-tdep.c (sh_gdbarch_init): Ditto.
2639 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2640 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2641
ab91194c
MK
26422002-10-26 Mark Kettenis <kettenis@gnu.org>
2643
e3033f15
MK
2644 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2645 cfi_init_extra_frame_info.
2646 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2647 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2648
b83b026c
MK
2649 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2650 target where necessary. Add more comments and remove the ones
2651 that don't provide any useful information.
2652
267bf4bb
MK
2653 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2654 deprecated_read_register_dummy with
2655 frame_unwind_unsigned_register.
2656
751f1375
MK
2657 * i386-tdep.c (i386_extract_struct_value_address): Use
2658 regcache_raw_read_unsigned instead of
2659 regcache_cooked_read_unsigned since we know that the register
2660 we're reading isn't a pseudo register. Rename variable 'val' into
2661 the more descriptive 'addr'.
2662
26abbdc4
MK
2663 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2664 (x86_64_push_return_address): Add comment.
2665 (x86_64_pop_frame): Make static.
2666 (examine_argument): Clarify comment.
2667 (x86_64_skip_prologue): Make prolog_expact variable static.
2668
9f1549cc
MK
2669 * dwarf2cfi.c: Fix some formatting problems.
2670 (context_cpy, read_encoded_pointer): Clarify comments.
2671
ab91194c
MK
2672 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2673 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2674 i386 target back into x86_64_gdbarch_init. Add some comments and
2675 remove meaningless ones.
2676
72367fb4
AC
26772002-10-25 Andrew Cagney <cagney@redhat.com>
2678
2679 * complaints.h (struct deprecated_complaint): Rename `struct
2680 complaint'.
2681 * complaints.c (complain): Update.
2682 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2683 incorrect comment indicating that "symfile.h" was being included
2684 for the `struct complaint' definition.
2685 * remote-vx.c: Update.
2686 * objc-lang.c: Update.
2687 * xcoffread.c: Update.
2688 * hpread.c: Update.
2689 * mdebugread.c: Update.
2690 * stabsread.c: Update.
2691 * dwarf2read.c: Update.
2692 * dwarfread.c: Update.
2693 * elfread.c: Update.
2694 * coffread.c: Update.
2695 * stabsread.h: Update.
2696 * dbxread.c: Update.
2697 * buildsym.c: Update.
2698 * gdbtypes.c: Update.
2699 * macrotab.c: Update.
2700
1f2baacc
MK
27012002-10-25 Mark Kettenis <kettenis@gnu.org>
2702
0c1a73d6
MK
2703 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2704 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2705 (x86_64_init_abi): ...new function.
2706
6aee4d54 2707 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2708 * i386v-nat.c: Include "i386-tdep.h".
2709
8f9cbe01
AC
27102002-10-25 Andrew Cagney <cagney@redhat.com>
2711
5f11f355
AC
2712 * gdbtypes.c (address_space_name_to_int): Update.
2713 (address_space_int_to_name): Update.
2714 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2715 multi-arch predicate.
2716 (address_class_name_to_type_flags): Ditto.
2717 * gdbarch.h, gdbarch.c: Re-generate.
2718
8f9cbe01
AC
2719 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2720
e8d96a5d
MH
27212002-10-24 Martin M. Hunt <hunt@redhat.com>
2722
2723 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2724
fe39c653
EZ
27252002-10-24 Elena Zannoni <ezannoni@redhat.com>
2726
2727 * symtab.h (INIT_SAL): Delete macro.
2728 (init_sal): Export.
2729 * symtab.c (init_sal): New function.
2730
2731 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2732 to init_sal function call.
2733 (find_sal_from_funcs_and_line): Ditto.
2734 (all_sals_for_line): Ditto.
2735 * breakpoint.c (create_internal_breakpoint): Ditto.
2736 (create_fork_vfork_event_catchpoint): Ditto.
2737 (create_exec_event_catchpoint): Ditto.
2738 (parse_breakpoint_sals): Ditto.
2739 (watch_command_1): Ditto.
2740 (handle_gnu_4_16_catch_command): Ditto.
2741 (clear_command): Ditto.
2742 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2743 * infcmd.c (run_stack_dummy): Ditto.
2744 * infrun.c (process_event_stop_test): Ditto.
2745 (check_sigtramp2): Ditto.
2746 (step_over_function): Ditto.
2747 * linespec.c (decode_line_2): Ditto.
2748 (decode_line_1): Ditto.
2749 * source.c (line_info): Ditto.
2750 * symtab.c (find_pc_sect_line): Ditto.
2751
baed091b
ML
27522002-10-24 Michal Ludvig <mludvig@suse.cz>
2753
2754 * dwarf2cfi.c (struct context)
2755 (struct context_reg): Moved to dwarf2cfi.h
2756 (context_alloc, frame_state_alloc, context_cpy):
2757 Made extern instead of static, removed prototypes.
2758 * dwarf2cfi.h (struct context)
2759 (struct context_reg): New, moved from dwarf2cfi.c
2760 (context_alloc, frame_state_alloc, context_cpy):
2761 New prototypes.
2762 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2763 Changed from static to extern.
2764 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2765 (LINUX_SIGCONTEXT_FP_OFFSET)
2766 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2767 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2768 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2769 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2770 set_gdbarch_*() calls now use x86-64 specific functions
2771 instead of DWARF2 CFI ones.
2772 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2773 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2774 (x86_64_init_extra_frame_info): New prototypes.
2775
c38da1af
DC
27762002-10-23 David Carlton <carlton@math.stanford.edu>
2777
2778 * linespec.c: #include "parser-defs.h".
2779 Delete prototype for find_template_name_end.
2780 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2781
fb9b6b35
JJ
27822002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2783
2784 * NEWS: add recent mi fixes.
2785 * varobj.c (struct varobj): Add new "updated" flag.
2786 (new_variable): Default "updated" flag to 0.
2787 (varobj_set_value): Set "updated" flag to 1 if value
2788 changes.
2789 (varobj_update): Check varobj "updated" flag before
2790 comparing old and refreshed values. Fix for
2791 PR gdb/702.
2792
8da065d5
DC
27932002-10-23 David Carlton <carlton@math.stanford.edu>
2794
2795 * parse.c (parse_exp_1): Use BLOCK_START.
2796 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2797 SYMBOL_BLOCK_VALUE.
2798 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2799
87f2f08c
DC
28002002-10-23 David Carlton <carlton@math.stanford.edu>
2801
2802 * symtab.c: Delete cplusplus_hint.
2803 Delete prototype for find_template_name_end.
2804
88cda038
EZ
28052002-10-23 Elena Zannoni <ezannoni@redhat.com>
2806
2807 * symtab.h: Update comment.
2808
2625d86c
MS
28092002-10-23 Michael Snyder <msnyder@redhat.com>
2810
2811 * printcmd.c (address_info): Restore quotes in output.
2812 * valops.c (value_of_local): Restore quotes in error message.
2813
9cc0d196
EZ
28142002-10-23 Elena Zannoni <ezannoni@redhat.com>
2815
2816 * symtab.c (symbol_demangled_name): New function.
2817 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2818 turning most of it into a function.
2819 (symbol_demangled_name): Export.
2820
19de93d0
MS
28212002-10-23 Michael Snyder <msnyder@redhat.com>
2822
2823 * valops.c (value_of_local): Restore quotes in error message.
2824
89aad1f9
EZ
28252002-10-23 Elena Zannoni <ezannoni@redhat.com>
2826
2827 * symtab.c (symbol_init_language_specific): New function.
2828 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2829 turning most of it into a function.
2830 (symbol_init_language_specific): Export.
2831
d9fa45fe
DC
28322002-10-23 David Carlton <carlton@math.stanford.edu>
2833
2834 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2835 (dwarf_attr_name): Ditto.
2836 (dwarf_type_encoding_name): Ditto.
2837 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2838 (process_die): Handle DW_TAG_namespace,
2839 DW_TAG_imported_declaration, DW_TAG_imported_module.
2840 (read_namespace): New function.
2841
1045b512
JB
28422002-10-22 Joel Brobecker <brobecker@gnat.com>
2843
2844 * configure.in: Define NEW_PROC_API on Interix too.
2845 * configure: Regenerate.
2846
28472002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2848
2849 * configure: Regenerate using the proper version of autoconf.
2850
3987b9d4
EZ
28512002-10-21 Elena Zannoni <ezannoni@redhat.com>
2852
2853 * findvar.c (read_var_value): Temporarily disable TLS code, until
2854 complete TLS support is added.
2855
9d774e44
EZ
28562002-10-21 Jim Blandy <jimb@redhat.com>
2857 Elena Zannoni <ezannoni@redhat.com>
2858
2859 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2860 for thread local storage locations.
2861 (struct symbol): Add objfile field.
2862 (SYMBOL_OBJFILE): Define.
2863 * dwarf2read.c (is_thread_local): New static variable.
2864 (new_symbol): If variable is in thread local fill in address class
2865 and objfile appropriately.
2866 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2867 stack operation.
2868 * printcmd.c (address_info): Print the information for thread
2869 local storage variable.
2870 * findvar.c (read_var_value): In case of thread local variable,
2871 defer to the target vector code to compute address.
2872
bc4a16ae
EZ
28732002-10-21 Elena Zannoni <ezannoni@redhat.com>
2874
2875 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2876 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2877
407caf07
EZ
28782002-10-21 Elena Zannoni <ezannoni@redhat.com>
2879
2880 * symtab.h (address_class): Rename
2881 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2882 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2883 * printcmd.c (address_info): Ditto.
2884 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2885
005328e3
MK
28862002-10-20 Mark Kettenis <kettenis@gnu.org>
2887
afdb036a
MK
2888 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2889 DBREG_DRX macro to acces debug registers.
2890
ca02e098
MK
2891 * Makefile.in (i386obsd-tdep.o): New target.
2892
03cc47f7
MK
2893 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2894 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2895
005328e3
MK
2896 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2897 * config/i386/obsd.mt: New file.
2898 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2899 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2900 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2901 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2902 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2903 * i386obsd-tdep.c: New file.
2904
9c96f9f2
AF
29052002-10-19 Adam Fedor <fedor@gnu.org>
2906
2907 * objc-exp.y (name_not_typename): Fix invalid comment.
2908
ce1ed485
MK
29092002-10-20 Mark Kettenis <kettenis@gnu.org>
2910
2911 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2912 to allocate partial syms and macro byte caches.
2913
1efc7aaa
DC
29142002-10-18 David Carlton <carlton@math.stanford.edu>
2915
2916 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2917
7e1d63ec
AF
29182002-10-18 Adam Fedor <fedor@gnu.org>
2919
2920 * stabsread.c (find_name_end): New function.
2921 (define_symbol): Use it.
2922
6e8d29a9
DJ
29232002-10-18 Daniel Jacobowitz <drow@mvista.com>
2924
2925 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2926 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2927 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2928 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2929
1efc7aaa 29302002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2931
2932 * symfile.h: Add opaque declaration for struct obstack.
2933 Declare obsavestring to take a const char *.
2934 * symfile.c (obsavestring): Make first argument a const char *.
2935
1aeae86e
AF
29362002-10-16 Adam Fedor <fedor@gnu.org>
2937
2938 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2939 names when matching breakpoints in current file.
2940
8b2dbe47
KB
29412002-10-16 Kevin Buettner <kevinb@redhat.com>
2942
2943 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2944 (read_tag_pointer_type): Add address class support.
2945 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2946 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2947 New methods.
2948 * gdbarch.h, gdbarch.c: Regenerate.
2949 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2950 (make_type_with_address_space, recursive_type_dump): Add address
2951 class support.
2952 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2953 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2954 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2955
74451869
KD
29562002-10-16 Klee Dienes <kdienes@apple.com>
2957
2958 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2959 to get the last character of a char[] buffer, not
2960 name[sizeof(vptr_name)-1].
2961
ff4cb3e8
AF
29622002-10-14 Adam Fedor <fedor@gnu.org>
2963
2964 * symtab.h: New objc_specific struct.
2965 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2966 (SYMBOL_DEMANGLED_NAME): Likewise.
2967
da2cf7e0
AF
29682002-10-14 Adam Fedor <fedor@gnu.org>
2969
2970 * symfile.c (init_filename_language_table): Add ObjC file extension.
2971
4a351cef
AF
29722002-10-14 Adam Fedor <fedor@gnu.org>
2973
2974 * utils.c (puts_filtered_tabular): New function.
2975 (fprintf_symbol_filtered): Get ObjC demangled name.
2976 * defs.h (puts_filtered_tabular): Declared.
2977
9750e763
KB
29782002-10-14 Kevin Buettner <kevinb@redhat.com>
2979
2980 * c-lang.h (c_type_print_varspec_prefix): Delete.
2981 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2982 ``need_post_space'' parameter. Adjust all callers.
2983
eee771c1
DJ
29842002-10-14 Daniel Jacobowitz <drow@mvista.com>
2985
2986 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2987 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2988 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2989 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2990
46c82446
AF
29912002-10-13 Adam Fedor <fedor@gnu.org>
2992
2993 * source.c (print_source_lines): Update comments.
2994
d069f99d
AF
29952002-10-13 Adam Fedor <fedor@gnu.org>
2996
2997 * valops.c (value_of_local): New function.
2998 (value_of_this): Use it.
2999 * value.h (value_of_local): Declared.
3000
53c551b7
AF
30012002-10-13 Adam Fedor <fedor@gnu.org>
3002
3003 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3004 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3005
eb392fbf
AF
30062002-10-12 Adam Fedor <fedor@gnu.org>
3007
3008 * language.c (binop_result_type): Add language_objc to case.
3009 (integral_type): Likewise.
3010 (character_type): Likewise.
3011 (string_type): Likewise.
3012 (boolean_type): Likewise.
3013 (structured_type): Likewise.
3014 (binop_type_check): Likewise.
3015
e2b23ee9
AF
30162002-10-11 Adam Fedor <fedor@gnu.org>
3017
3018 * printcmd.c (address_info): Print 'self' for ObjC.
3019
b01ab485
AF
30202002-10-11 Adam Fedor <fedor@gnu.org>
3021
3022 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3023 OP_SELF.
3024
806e6073
AF
30252002-10-11 Adam Fedor <fedor@gnu.org>
3026
3027 * language.h (CAST_IS_CONVERSION): Add language_objc.
3028
50f85cdf
AF
30292002-10-11 Adam Fedor <fedor@gnu.org>
3030
3031 * defs.h (enum language): Add language_objc.
3032
0d540cdf
KD
30332002-10-11 Klee Dienes <kdienes@apple.com>
3034
69266111 3035 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3036 * gdbcore.h (read_memory_typed_address): Add prototype.
3037 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3038 to read a value destined for a CORE_ADDR, not read_memory_integer.
3039 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3040 (f77_get_dynamic_lowerbound): Ditto.
3041
d5dc7960
MH
30422002-10-11 Martin M. Hunt <hunt@redhat.com>
3043
3044 * utils.c (string_to_core_addr): After turning string into
3045 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3046 which will do necessary sign-extension, etc.
3047
8343f86c
DJ
30482002-10-11 Daniel Jacobowitz <drow@mvista.com>
3049
3050 * c-exp.y (THIS): Delete token and grammar rule.
3051 (yylex): Don't return THIS.
3052 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3053 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3054 * demangle.c (cplus_markers): Update comment. Put '$'
3055 first. Remove CPLUS_MARKER.
3056 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3057 * jv-exp.y (THIS): Delete token and grammar rule.
3058 (yylex): Don't return THIS.
3059 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3060 * objc-exp.y (THIS): Delete token and grammar rule.
3061 (yylex): Don't return THIS.
3062 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3063 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3064 (read_member_functions): Likewise for opname.
3065 (read_tilde_fields): Use is_cplus_marker.
3066
3067 * defs.h (CPLUS_MARKER): Don't define.
3068 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3069 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3070 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3071 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3072 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3073
3074 * config/i386/tm-i386v4.h: Delete file.
3075 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3076 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3077 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3078 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3079 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3080 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3081 * config/i386/i386v4.mt (TM_FILE): Likewise.
3082 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3083
967c0d83
MM
30842002-10-10 Marko Mlinar <markom@opencores.org>
3085
3086 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3087 accidentially not commited 2002-10-09
3088 * gdbarch.h, gdbarch.c: Re-generate.
3089
f74fa174
MM
30902002-10-09 Marko Mlinar <markom@opencores.org>
3091
3092 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3093 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3094 * gdbarch.h, gdbarch.c: Re-generate.
3095
57349743
JB
30962002-10-08 Petr Sorfa <petrs@caldera.com>
3097
3098 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3099
3100 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3101 so we can work on more than one compilation unit at a time. This
3102 helps prepare GDB to handle inter-CU die references.
3103 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3104 the code to be defined before struct comp_unit_head.
3105 (comp_unit_head): Added new members - offset, cu_head,
3106 begin_die, next and dwarf2_abbrevs.
3107 (dwarf2_abbrevs): Removed single static var; now member of
3108 struct comp_unit_head.
3109 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3110 members.
3111 (psymtab_to_symtab_1): Changed to work with the new
3112 struct comp_unit_head.
3113 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3114 constructs the dwarf2_abbrevs[] inside the cu_header.
3115 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3116 dwarf2_abbrev table to clean up.
3117 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3118 handling of dwarf2_abbrevs inside the cu_header.
3119 (read_partial_die): Now supports the call to the new
3120 dwarf2_lookup_abbrev.
3121 (read_full_die): Now supports the call to the new
3122 dwarf2_lookup_abbrev.
3123
4092aadb
CF
31242002-10-06 Christopher Faylor <cgf@redhat.com>
3125
3126 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3127 insure that shell variables, such as "transformed_name" are propagated
3128 to later shell statements in rule.
3129
af0b2512
MK
31302002-10-06 Mark Kettenis <kettenis@gnu.org>
3131
3132 * config/i386/nm-i386sco.h: Add protection against
3133 multiple-inclusion. Include "i386/nm-i386v.h".
3134 (REGISTER_U_ADDR): Remove define.
3135 (i386_register_u_addr): Remove prototype.
3136
d6020d45
MS
31372002-10-04 Michael Snyder <msnyder@redhat.com>
3138
3139 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3140 before treating it as a single-step event.
3141
7248f48e
AF
31422002-10-03 Adam Fedor <fedor@gnu.org>
3143
3144 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3145 (objc_demangle): Remove assignment in if statements, Replace
3146 free with xfree.
3147 (add_msglist): Likewise.
3148 (end_msglist): Likewise.
3149 (complare_selectors): Likewise.
3150 (selectors_info): Likewise.
3151 (compare_classes): Likewise.
3152 (classes_info): Likewise.
3153 (print_object_command): Likewise.
3154 (find_objc_msgcall_submethod): Replace PTR with void *.
3155 * objc-lang.h: Remove check for __STDC__.
3156
52c6a6ac
JJ
31572002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3158
3159 * ui-out.h (ui_out_field_fmt_int): New prototype.
3160 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3161 of field width and alignment.
3162 * stack.c (print_frame_info_base): When printing frame level, use
3163 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3164 PR gdb/192
3165
7e3cec17
JJ
31662002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3167
3168 * MAINTAINERS: Add self to Write After Approval list.
3169
a58dd373
EZ
31702002-10-02 Elena Zannoni <ezannoni@redhat.com>
3171
3172 * infcmd.c (interrupt_target_command_wrapper): Delete.
3173 (interrupt_target_command): Make non static.
3174 (nofp_registers_info): Make static.
3175 * stack.c (return_command_wrapper): Delete.
3176 (return_command): Make non static.
3177
cee6ddeb
EZ
31782002-10-02 Elena Zannoni <ezannoni@redhat.com>
3179
3180 * event-top.c (gdb_setup_readline): New function. Code moved from
3181 _initialize_event_loop().
3182 (_initialize_event_loop): Call gdb_setup_readline().
3183
c4ed33b9
AC
31842002-10-02 Andrew Cagney <ac131313@redhat.com>
3185
3186 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3187 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3188 * gdbarch.h, gdbarch.c: Re-generate.
3189
cef4f5dd
DJ
31902002-10-02 Daniel Jacobowitz <drow@mvista.com>
3191
3192 Fix PR gdb/778
3193 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3194 before recursing.
3195 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3196 of fill_in_vptr_fieldno.
3197
36dc181b 31982002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3199
36dc181b
EZ
3200 * inferior.h (registers_info, stepi_command, nexti_command,
3201 continue_command, interrupt_target_command): Export from infcmd.c.
3202 * frame.h (args_info, selected_frame_level_changed_hook,
3203 return_command): Export from stack.c.
3204 * v850ice.c (stepi_command, nexti_command, continue_command): use
3205 prototypes from inferior.h.
3206 * tracepoint.c (registers_info, args_info, locals_info): Use
3207 prototypes from frame.h and inferior.h.
3208 * Makefile.in (mi-main.o): Add dependency on frame.h.
3209
6f99cb26
AC
32102002-10-02 Andrew Cagney <ac131313@redhat.com>
3211
da3eff49
AC
3212 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3213 value in register 3 adjusted by ppc_gp0_regnum.
3214
6f99cb26
AC
3215 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3216
da615bee
MM
32172002-10-02 Marko Mlinar <markom@opencores.org>
3218
3219 * MAINTAINERS: Add myself to the Write After Approval list.
3220
d154bee2
AO
32212002-10-01 Alexandre Oliva <aoliva@redhat.com>
3222
62a49b2c
AO
3223 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3224 of the section for the N64 ABI, fixed.
3225
d154bee2
AO
3226 * config/mips/tm-irix6.h: Include solib.h.
3227
ed348acc
EZ
32282002-10-01 Elena Zannoni <ezannoni@redhat.com>
3229
3230 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3231 GNU operators.
3232
da0f9dcd
AC
32332002-10-01 Andrew Cagney <ac131313@redhat.com>
3234
3235 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3236 and that "mi0" syntax has been removed.
3237
bdf64bac
DC
32382002-09-30 David Carlton <carlton@math.stanford.edu>
3239
3240 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3241 * ppc-sysv-tdep.c: #include "gdb_string.h".
3242 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3243 pacify GCC.
3244
54c2a1e6
AC
32452002-10-01 Andrew Cagney <ac131313@redhat.com>
3246
3247 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3248 "vrsave"'s register number.
3249
cedea778
AC
32502002-09-30 Andrew Cagney <ac131313@redhat.com>
3251
3252 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3253 use frame_unwind_signed_register to obtain the PC.
3254 (mips_frame_chain): Handle a generic dummy frame.
3255 (mips_init_extra_frame_info): When a generic dummy frame, don't
3256 re-compute the frame base.
3257 (mips_pop_frame): Handle generic dummy frames.
3258 (mips_gdbarch_init): When generic dummy frames, set
3259 use_generic_dummy_frames, push_dummy_frame to
3260 generic_push_dummy_frame, pc_in_call_dummy to
3261 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3262 generic_save_dummy_frame_tos.
3263
68315eb8
AC
32642002-09-30 Andrew Cagney <ac131313@redhat.com>
3265
3266 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3267 against TOP when TOP was explictly set.
3268 (generic_push_dummy_frame): Set TOP to zero.
3269
3b8630c3
EZ
32702002-09-30 Elena Zannoni <ezannoni@redhat.com>
3271
3272 * event-loop.c (start_event_loop): Rename variable 'result' to
3273 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3274
28ee05e9
KS
32752002-09-30 Keith Seitz <keiths@redhat.com>
3276
3277 * gdb-events.sh (selected_thread_changed): New event.
3278 * gdb-events.c: Regenerated.
3279 * gdb-events.h: Regenerated.
3280
6eecb1c8
HPN
32812002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3282
3283 * MAINTAINERS: Add self to Write After Approval list.
3284
92df71f0
FN
32852002-09-30 Fernando Nasser <fnasser@redhat.com>
3286
3b8630c3
EZ
3287 * disasm.c: New file.
3288 * disasm.h: New file.
92df71f0
FN
3289 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3290 (compare_lines): Ditto.
3291 (dump_insns): Ditto.
3b8630c3
EZ
3292 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3293 argument.
92df71f0 3294 (do_assembly_only): Ditto.
3b8630c3
EZ
3295 (do_disassembly): Renamed to gdb_disassembly and moved to
3296 disasm.c. Sdded uiout argument.
3297 * Makefile.in: Add new files. Reorder SFILES list. Update
3298 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3299
0c22854d
AC
33002002-09-29 Andrew Cagney <ac131313@redhat.com>
3301
3302 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3303 bfd/elf64-alpha-fbsd.c.
3304
e67f2023
AC
33052002-09-29 Andrew Cagney <ac131313@redhat.com>
3306
3307 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3308 i386gnu-tdep.c.
3309
89396210
AC
33102002-09-29 Andrew Cagney <ac131313@redhat.com>
3311
3312 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3313 __FUNCTION__.
3314 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3315 function name.
3316 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3317 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3318 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3319 (S_msg_sig_post_reply): Ditto.
3320
7079c36c
CV
33212002-09-28 Corinna Vinschen <vinschen@redhat.com>
3322
89396210
AC
3323 * sh-tdep.c (sh_use_struct_convention): Use definition according
3324 to ABI.
7079c36c
CV
3325 (sh_push_arguments): Store in register with correct endianess.
3326 (sh_default_store_return_value): Ditto.
3327 (sh_gdbarch_init): Set sizeof long double to 8.
3328
975ac915
MK
33292002-09-27 Mark Kettenis <kettenis@gnu.org>
3330
3331 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3332 Fix some whitespace problems.
3333
9bbe19fb
DC
33342002-09-27 David Carlton <carlton@math.stanford.edu>
3335
3336 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3337 (mcore-tdep.o): Ditto.
3338 (ns32k-tdep.o): Ditto.
3339 (ns32knbsd-tdep.o): Ditto.
3340 (sh3-rom.o): Ditto.
3341 (vax-tdep.o): Ditto.
3342 * cris-tdep.c: #include "gdb_string.h"
3343 * mcore-tdep.c: Ditto.
3344 * ns32k-tdep.c: Ditto.
3345 * ns32knbsd-tdep.c: Ditto.
3346 * sh3-rom.c: Ditto.
3347 * vax-tdep.c: Ditto.
3348
43b2fdc7
DC
33492002-09-27 David Carlton <carlton@math.stanford.edu>
3350
3351 * config/djgpp/fnchange.lst: Add entries for
3352 gdb/testsuite/gdb.c++/m-static files.
3353
e8cfbbd9
JW
33542002-09-27 Jim Wilson <wilson@redhat.com>
3355
3356 * MAINTAINERS: Add myself to the Write After Approval list.
3357
43b2fdc7 33582002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3359
3360 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3361
3362
9f3b7f07
AC
33632002-09-26 Andrew Cagney <ac131313@redhat.com>
3364
3365 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3366 frame.
3367
11269d7e
AC
33682002-09-26 Andrew Cagney <ac131313@redhat.com>
3369
3370 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3371 (rs6000_struct_return_address): Delete variable.
3372 (rs6000_store_struct_return): Update.
3373 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3374 deprecated_extract_struct_value_address.
3375 (rs6000_frame_align): New function.
3376 (rs6000_gdbarch_init): Set frame_align.
3377
f15ab4a7
AC
33782002-09-26 Andrew Cagney <ac131313@redhat.com>
3379
3380 From Grace Sainsbury <graces@redhat.com>:
3381 * Makefile.in (gdbtk-main.o): New target.
3382 (gdb.o): New target.
3383 (main_h): Define.
3384 (main.o): Update dependencies.
3385 (gdb$(EXEEXT)): Add gdb.o.
3386 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3387 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3388 (SUBDIR_GDBTK_CLEAN): Set.
3389 (install-gdbtk): Install the insight binary.
3390 (uninstall-gdbtk): New target.
3391 (all-gdbtk, clean-gdbtk): New rule.
3392 * top.c (use_windows): Default to zero.
3393 * main.c: Include "main.h".
3394 (main): Delete.
3395 (struct captured_main_args): Delete.
3396 (gdb_main): New function.
3397 * main.h: New file.
3398 * gdb.c: New File.
3399
e36180d7
AC
34002002-09-25 Andrew Cagney <cagney@redhat.com>
3401
3402 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3403 (frame_map_regnum_to_name): New function.
3404 (frame_map_name_to_regnum): New function.
3405 * frame.h (frame_map_name_to_regnum): Declare.
3406 (frame_map_regnum_to_name): Declare.
3407 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3408 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3409 * parse.c: Do not include "builtin-regs.h".
3410 (target_map_name_to_register): Delete function.
3411 (write_dollar_variable): Use frame_map_name_to_regnum.
3412 * parser-defs.h (target_map_name_to_register): Delete declaration.
3413 * expprint.c: Include "frame.h".
3414 (print_subexp): Use frame_map_regnum_to_name.
3415 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3416 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3417
8b69000d
AC
34182002-09-25 Andrew Cagney <ac131313@redhat.com>
3419
3420 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3421 wasn't saved, and the next innermost frame is a dummy, return the
3422 dummy frame's link register.
3423
046ca86a
JB
34242002-09-24 Jim Blandy <jimb@redhat.com>
3425
3426 Fix from Paul Breed:
3427 * main.c (captured_main): Add a `break' after the case for 'b'.
3428
94b66fa7
KS
34292002-09-24 Keith Seitz <keiths@redhat.com>
3430
3431 * varobj.c (c_type_of_child): Use get_target_type instead
3432 of TYPE_TARGET_TYPE.
3433
c214a6fd
FN
34342002-09-22 Fernando Nasser <fnasser@redhat.com>
3435
53cb0458
FN
3436 * source.c (get_current_or_default_source_symtab_and_line): Remove
3437 function.
3438 (set_default_source_symtab_and_line): New function. Attempts to
3439 determine a source file to list lines from if one is not currently
3440 defined.
3441 (get_current_source_symtab_and_line): Initialize sal.pc and
3442 sal.end fields.
3443 (set_current_source_symtab_and_line): Mark argument as const.
3444 * source.h: Update declarations and comments.
3445 * linespec.c (decode_line_1): Replace call to removed routine above.
3446 * stack.c (print_frame_info_base): Ditto.
3447 * cli/cli-cmds.c (edit_command): Ditto.
3448 (list_command): Ditto.
3449
34502002-09-22 Fernando Nasser <fnasser@redhat.com>
3451
d6020d45 3452 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3453 sal.pc and sal.end fields.
c214a6fd
FN
3454 (get_current_or_default_source_symtab_and_line): Ditto.
3455 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3456 so we do not cause a new source symtab to be searched for (reverting an
3457 unintentional change from the 2002-09-20 patch).
3458 * scm-lang.c (scm_unpac): Ditto.
3459
cc3b68a5
AC
34602002-09-21 Andrew Cagney <cagney@redhat.com>
3461
3462 * complaints.c (symfile_explanations): Remove new-line from
3463 ``isolated_message''.
3464 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3465 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3466
5835abe7
NC
34672002-09-20 Nick Clifton <nickc@redhat.com>
3468
3469 * NEWS: Announce that V850EA ISA is no longer supported.
3470 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3471
a15ef5f5
DC
34722002-09-20 David Carlton <carlton@math.stanford.edu>
3473
06ba1b39
DC
3474 * Makefile.in (c-lang.o): Correct dependencies.
3475 (utils.o): Gather dependencies.
3476 (charset.o): Move.
a15ef5f5
DC
3477 * c-lang.c: #include "gdb_string.h"
3478
87885426
FN
34792002-09-20 Fernando Nasser <fnasser@redhat.com>
3480
3481 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3482 * cli/cli-cmds.c (list_command): New function. Implements the new
3483 cli edit command.
3484 (_init_cli_cmds): Add new command definition.
3485 * gdb.1: Document edit command.
3486 * doc/gdb.texinfo: Document edit command.
3487
34882002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3489
3490 * source.c: Make global variables current_source_symtab and
3491 current_source_line static.
3492 (list_command): Moved to cli/cli-cmds.c.
3493 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3494 (get_first_line_listed): New accessor function.
3495 (get_lines_to_list): New accessor function.
3496 (get_current_source_symtab_and_line): New function. Retrieves the
3497 position in the source code that we consider current.
3498 (get_current_or_default_source_symtab_and_line): New function.
3499 Like the above but attempts to determine a default position if one
3500 is not currently defined.
3501 (set_current_source_symtab_and_line): New function. Sets the source
3502 code position considered current and returns the previously set one.
3503 (clear_current_source_symtab_and_line): Reset stored information about
3504 a current source line.
3505 (_initialize_source): Remove registration for the "list" command and
3506 its alias.
3507 * source.h: Add declarations for the new functions above.
3508 * symtab.h: Remove declarations for the global variables mentioned
3509 above.
3510 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3511 obtain current source line.
3512 * linespec.c (decode_line_1): Ditto.
3513 * macroscope.c (default_macro_scope): Ditto.
3514 * scm-lang.c (scm_unpac): Ditto.
3515 * stack.c (print_frame_info_base): Ditto.
3516 * symfile.c (clear_symtab_users): Ditto.
3517 * symtab.c (decode_line_spec): Ditto.
3518 * cli/cli-cmds.c (list_command): Moved here from source.c.
3519 (ambiguous_line_spec): Moved here from source.c.
3520 (_init_cli_cmds): Add definition for "list" and its alias.
3521 * Makefile.in: Update dependencies.
3522
ddd216ea
CV
35232002-09-20 Corinna Vinschen <vinschen@redhat.com>
3524
3525 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3526 with what gcc thinks is correct.
3527
6d305052
CV
35282002-09-20 Corinna Vinschen <vinschen@redhat.com>
3529
3530 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3531 multiple register push instruction.
3532
234b45d4
KB
35332002-09-19 Jim Blandy <jimb@redhat.com>
3534
3535 Add support for distinct host and target character sets.
3536 * charset.c, charset.h: New files.
3537 * c-exp.y: #include "charset.h".
3538 (yylex): Convert character and string literals to the target
3539 character set, before returning them as the semantic value of the
3540 token.
3541 * c-lang.c: #include "charset.h".
3542 (c_emit_char): Use charset-specific methods to recognize
3543 characters with backslash escape forms, to decide which characters
3544 to print literally and which to print using numeric escape
3545 sequences, and to convert target characters to host characters
3546 before printing.
3547 * utils.c: #include "charset.h".
3548 (no_control_char_error): New function.
3549 (parse_escape): Use charset-specific methods to recognize
3550 backslash escapes, parse `control character' notation, and convert
3551 characters from the host character set to the target character set.
3552 * configure.in: Set the default host character set.
3553 Check where to find iconv, and what its argument types might be.
3554 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3555 * Makefile.in (SFILES): List charset.c.
3556 (COMMON_OBS): List charset.o.
3557 (charset.o): New rule.
3558 (charset_h): New header dependency variable.
3559 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3560 (LIBICONV): New variable, set by configure.
3561 (CLIBS): Include $(LIBICONV) here.
3562 * aclocal.m4, config.in, configure: Regenerated.
3563
525d6a61
JB
35642002-09-19 Joel Brobecker <brobecker@gnat.com>
3565
3566 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3567 bison 1.35 warning.
3568
3ed93867
RE
35692002-09-19 Richard Earnshaw <rearnsha@arm.com>
3570
3571 * gdb_mbuild.sh: New file.
3572
437666f8
AC
35732002-09-19 Andrew Cagney <ac131313@redhat.com>
3574
3575 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3576
389e51db
AC
35772002-09-18 Andrew Cagney <ac131313@redhat.com>
3578
3579 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3580 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3581 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3582 valops.c, value.h: Revert previous change.
3583
3b4efeaa
MS
35842002-09-18 Michael Snyder <msnyder@redhat.com>
3585
3586 Preliminary support for Objective-C:
3587 * defs.h (language_objc): New enum value.
3588 (puts_filtered_tabular): Declaration only, exported from utils.c.
3589 (skip_quoted): Delete, declared in completer.h.
3590 * c-exp.y: Include completer.h.
3591 * p-exp.y: Ditto.
3592 * jv-exp.y: Ditto.
3593 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3594 New operator enum values.
3595 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3596 * language.c (binop_result_type): Handle language_objc case.
3597 (integral_type, character_type, string_type, boolean_type,
3598 structured_type, binop_type_check): Ditto.
3599 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3600 (struct objc_specific): Add to general_symbol_info.
3601 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3602 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3603 * parser-defs.h (struct objc_class_str): New struct type.
3604 (start_msglist, end_msglist, add_msglist): Declaration only,
3605 exported from objc-lang.c.
3606 * value.h (value_of_local, value_nsstring,
3607 call_function_by_hand_expecting_type): Exported from valops.c.
3608 * valops.c (find_function_addr): Export.
3609 (call_function_by_hand_expecting_type): New function.
3610 (value_of_local): New function.
3611 * symfile.c (init_filename_language_table): Add ".m" extension
3612 for Objective-C.
3613 * utils.c (puts_filtered_tabular): New function.
3614 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3615 (set/show demangle): Extend help-string to refer to ObjC.
3616 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3617 * stabsread.c (symbol_reference_defined): Objective-C symbols
3618 may contain colons: make allowances when scanning stabs strings
3619 for colons.
3620 (objc_find_colon): New function.
3621 * printcmd.c (address_info): If language == objc then print
3622 "self" instead of "this".
3623 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3624 OP_NSSTRING, and OP_SELF.
3625 (prefixify_subexp): Ditto.
3626 * source.c (print_source_lines): Mention objc in comment.
3627 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3628 method names.
3629
b9caf505
AC
36302002-09-18 Andrew Cagney <ac131313@redhat.com>
3631
3632 * complaints.h: Update copyright.
3633 (struct complaints): Declare.
3634 (struct complaint): Make `message' constant.
3635 (internal_complaint): Declare.
3636 (complaint): Declare.
3637 (complaint_root): Delete declaration.
3638 (symfile_complaints): Delete declaration.
3639 (struct complaints): Add opaque declaration.
3640 (clear_complaints): Add a complaints parameter.
3641 * complaints.c: Update copyright.
3642 (enum complaint_series): Define.
3643 (complaint_root): Delete.
3644 (struct complaints): Define.
3645 (complaint_sentinel, symfile_complaint_book): New variables.
3646 (symfile_explanations, symfile_complaints): New variables.
3647 New variables.
3648 (get_complaints): New function.
3649 (vcomplaint): New function.
3650 (complaint): New function.
3651 (internal_complaint): New function.
3652 (complain): Call vcomplain with symfile_complaint.
3653 (clear_complaints): Rewrite.
3654 (_initialize_complaints): Use add_setshow_command.
3655 * Makefile.in (complaints.o): Update dependencies.
3656 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3657 to call to clear_complaints.
3658 (new_symfile_objfile, reread_symbols): Ditto.
3659 (oldsyms_complaint): Delete.
3660 (empty_symtab_complaint, unknown_option_complaint): Delete.
3661 (free_named_symtabs): Use complaint instead of complain.
3662
d2e6263c
MS
36632002-09-18 Michael Snyder <msnyder@redhat.com>
3664
5fb2031a
AC
3665 Contributed by Apple Computer, Inc. Merged with current sources
3666 by Adam Fedor <fedor@doc.com> [cagney].
3667
d2e6263c
MS
3668 * objc-lang.c: First clean-up round: comments, indentation.
3669 * objc-lang.h: Ditto.
3670 * objc-lang.y: Ditto.
3671
dec43320
AC
36722002-09-18 Andrew Cagney <ac131313@redhat.com>
3673
3674 * maint.c (maintenance_internal_error): Print the parameter as the
3675 error message.
3676 (maintenance_internal_warning): New function.
3677 (_initialize_maint_cmds): Add command `maint internal-warning'.
3678
3679 * defs.h (internal_warning, internal_vwarning): Declare.
3680 * utils.c (struct internal_problem): Define.
3681 (internal_vproblem): New function.
3682 (internal_warning): New function.
3683 (internal_vwarning): New function.
3684 (internal_warning_problem, internal_error_problem): New variables.
3685 (internal_verror): Just call internal_vproblem.
3686
b81654f1
MS
36872002-09-18 Michael Snyder <msnyder@redhat.com>
3688
3689 * objc-lang.c: New file, support for Objective-C.
3690 Preliminary check-in, not yet integrated into gdb.
3691 * objc-lang.h: New file.
3692 * objc-exp.y: New file.
3693
0542c381
AC
36942002-09-18 Andrew Cagney <ac131313@redhat.com>
3695
7bda5e4a
AC
3696 * infrun.c (signal_stop_update): Convert definition to ISO C.
3697 (signal_print_update): Ditto.
3698 (signal_pass_update): Ditto.
3699 * inflow.c (terminal_save_ours): Ditto.
3700
5247b418
AC
3701 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3702 comments.
3703
fc60962c
AC
3704 * config/djgpp/fnchange.lst: Handle name clashes between
3705 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3706 bfd/coff-tic80.c.
3707
0542c381
AC
3708 * i386-linux-tdep.h: Fix tipo.
3709
5b924b9b
AF
37102002-09-18 Adam Fedor <fedor@gnu.org>
3711
3712 * MAINTAINERS: Add myself to the Write After Approval list.
3713
5afc051b
JB
37142002-09-18 Jim Blandy <jimb@redhat.com>
3715
3716 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3717 texthigh and textlow to reader-specific structs caused
3718 objfile_relocate to miss them. This is fixable, but the work that
3719 the change was supposed to prepare GDB for never got done anyway.
3720
eb944380
DC
37212002-09-18 David Carlton <carlton@math.stanford.edu>
3722
3723 * MAINTAINERS: Alphabetize Write After Approval list.
3724
948e66d9
DJ
37252002-09-18 Daniel Jacobowitz <drow@mvista.com>
3726
3727 Fix PR gdb/709
3728 * values.c (value_static_field): Call read_var_value.
3729
dc604539
AC
37302002-09-18 Andrew Cagney <ac131313@redhat.com>
3731
3732 * valops.c (hand_function_call): Align the initial stack pointer
3733 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3734 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3735 return value.
3736 * mips-tdep.c (mips_frame_align): New function.
3737 (mips_gdbarch_init): Set frame_align.
3738 * gdbarch.sh (FRAME_ALIGN): New method.
3739 * gdbarch.h, gdbarch.c: Re-generate.
3740
cb7e422f
ML
37412002-09-18 Michal Ludvig <mludvig@suse.cz>
3742
3743 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3744 registers.
3745
a094c6fb
AC
37462002-09-17 Andrew Cagney <ac131313@redhat.com>
3747
3748 * NEWS: Mention that MIPS $fp behavior changed.
3749 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3750 reference to FP_REGNUM.
3751 (mipsnbsd_cannot_store_register): Ditto.
3752 * mips-linux-nat.c: Update copyright.
3753 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3754 (mips_linux_cannot_store_register): Ditto.
3755 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3756 * config/mips/tm-mips.h: Update copyright.
3757 (FP_REGNUM): Delete macro.
3758 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3759 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3760 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3761 (mips_r3041_reg_names, mips_r3051_reg_names)
3762 (mips_r3081_reg_names): Replace "fp" with "".
3763 Fix PR gdb/480.
3764
45cf40d1
TR
37652002-09-17 Theodore A. Roth <troth@verinet.com>
3766
3767 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3768 generic_read_register_dummy() (PR gdb/703).
3769 (avr_push_return_address): #if 0 out unused vars.
3770 (avr_gdbarch_init): Enable use of avr_push_return_address().
3771
c7e701b5
MS
37722002-09-17 Michael Snyder <msnyder@redhat.com>
3773
d76ba2a5 3774 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3775 RTE will take care of it.
3776
20bcf01c
AC
37772002-09-17 Andrew Cagney <ac131313@redhat.com>
3778
3779 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3780 invalid, return SP_REGNUM.
3781
009a9971 37822002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3783
3784 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3785 point registers without sign extension.
3786
135c175f
AC
37872002-09-17 Andrew Cagney <cagney@redhat.com>
3788
3789 * blockframe.c (deprecated_read_register_dummy): Rename
3790 generic_read_register_dummy.
3791 * frame.c (frame_unwind_signed_register): New function.
3792 (frame_unwind_unsigned_register): New function.
3793 * frame.h (frame_unwind_signed_register): Declare.
3794 (frame_unwind_unsigned_register): Declare.
3795 (deprecated_read_register_dummy): Rename
3796 generic_read_register_dummy.
3797
3798 * h8300-tdep.c (h8300_frame_chain): Update.
3799 (h8300_frame_saved_pc): Update.
3800 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3801 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3802 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3803 (s390_frame_chain): Update.
3804 * v850-tdep.c (v850_find_callers_reg): Update.
3805 (v850_frame_saved_pc): Update.
3806 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3807 (m32r_find_callers_reg): Update.
3808 (m32r_frame_saved_pc): Update.
3809 * sh-tdep.c (sh_find_callers_reg): Update.
3810 (sh64_get_saved_pr): Update.
3811 (sh_init_extra_frame_info): Update.
3812 (sh_init_extra_frame_info): Update.
3813 (sh64_init_extra_frame_info): Update.
3814 (sh64_init_extra_frame_info): Update.
3815 * mcore-tdep.c (mcore_find_callers_reg): Update.
3816 (mcore_frame_saved_pc): Update.
3817 (mcore_init_extra_frame_info): Update.
3818 * i386-tdep.c (i386_frame_saved_pc): Update.
3819 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3820 (ia64_init_extra_frame_info): Update.
3821 (ia64_init_extra_frame_info): Update.
3822 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3823 * cris-tdep.c (cris_init_extra_frame_info): Update.
3824 * avr-tdep.c (avr_frame_chain): Update.
3825 (avr_init_extra_frame_info): Update.
3826 (avr_frame_saved_pc): Update.
3827 * arm-tdep.c (arm_find_callers_reg): Update.
3828 (arm_init_extra_frame_info): Update.
3829 (arm_frame_saved_pc): Update.
3830
a741e514
TT
38312002-09-17 Tom Tromey <tromey@redhat.com>
3832
3833 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3834 is "'".
3835
d1a8e808
CV
38362002-09-17 Corinna Vinschen <vinschen@redhat.com>
3837
3838 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3839 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3840 NEXT_PROLOGUE_INSN.
3841 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3842 NEXT_PROLOGUE_INSN.
3843
d9025a18
JB
38442002-09-16 Joel Brobecker <brobecker@gnat.com>
3845
3846 * osfsolib.c: Remove file, replaced by solib-osf.c.
3847 * Makefile.in: Remove compilation rules for osfsolib.c.
3848
1b2ef1b6
DC
38492002-09-16 David Carlton <carlton@math.stanford.edu>
3850
3851 * cp-valprint.c (cp_print_class_method): Correct args to
3852 check_stub_method_group.
3853
928e48af
CV
38542002-09-16 Corinna Vinschen <vinschen@redhat.com>
3855
3856 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3857 `set architecture'. Unify naming convention of functions.
3858 (h8300_skip_prologue): Improve prologue analysis.
3859 (h8300_push_arguments): Rewritten to more closely match GCC's
3860 bizarre argument-passing behavior, along with the comment describing
3861 said behavior.
3862 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3863 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3864 sim, remote-e7000.c, remote-hms.c and remote.c
3865
5e3397bb
MK
38662002-09-15 Mark Kettenis <kettenis@gnu.org>
3867
3868 * i386-tdep.c (gdb_print_insn_i386): Removed.
3869 (i386_print_insn): New function.
3870 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3871 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3872 tm_print_insn_info.
3873
f710f4fc
MK
38742002-09-14 Mark Kettenis <kettenis@gnu.org>
3875
3876 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3877 zero.
3878
db54fef4
CV
38792002-09-14 Corinna Vinschen <vinschen@redhat.com>
3880
3881 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3882 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3883 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3884
2becadee
CF
38852002-09-13 Christopher Faylor <cgf@redhat.com>
3886
3887 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3888
de17c821
DJ
38892002-09-13 Daniel Jacobowitz <drow@mvista.com>
3890
3891 * gdbtypes.c (check_stub_method): Make static.
3892 (check_stub_method_group): New function.
3893 * gdbtypes.h: Update prototypes.
3894 * cp-support.c: New file.
3895 * cp-support.h: New file.
3896
3897 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3898 (update_method_name_from_physname): New function.
3899 (read_member_functions): Correct method names for operators
3900 and v3 constructors/destructors. Separate v2 constructors and
3901 destructors.
3902 * Makefile.in (stabsread.o): Update dependencies.
3903 (SFILES): Add cp-support.c.
3904 (COMMON_OBS): Add cp-support.o.
3905 (cp_support_h, cp-support.o): Add.
3906
3907 * cp-valprint.c (cp_print_class_method): Call
3908 check_stub_method_group instead of check_stub_method. Remove
3909 extraneous QUITs.
3910 * p-valprint.c (pascal_object_print_class_method): Likewise.
3911 * valops.c (search_struct_method): Likewise.
3912 (find_method_list, value_struct_elt_for_reference): Likewise.
3913
e76cff22
AC
39142002-09-13 Andrew Cagney <cagney@redhat.com>
3915
3916 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3917 * gdbarch.h, gdbarch.c: Regenerate.
3918
905abb3f
AC
39192002-09-13 Andrew Cagney <ac131313@redhat.com>
3920
3921 * frame.c (find_saved_register): Delete function.
3922 * frame.h (find_saved_register): Delete declaration.
3923 Fix PR gdb/631.
3924
64159455
AC
3925Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3926
3927 * mips-tdep.c (read_next_frame_reg): Re-hack using
3928 frame_register_unwind.
3929
795e1e11
AC
3930Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3931
3932 * mips-tdep.c (mips_get_saved_register): Re-hack using
3933 frame_register_unwind.
3934
5720643c
JB
39352002-09-12 Joel Brobecker <brobecker@gnat.com>
3936
3937 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3938 vector. Will be useful for Interix.
3939 * gdbarch.h, gdbarch.c: Regenerate.
3940
3941 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3942 name of the malloc function by NAME_OF_MALLOC.
3943
3bada2a2
JB
39442002-09-12 Joel Brobecker <brobecker@gnat.com>
3945
3946 * value.h (find_function_in_inferior): Add const keyword to
3947 one of the parameters. Allows us to invoke this function with
3948 a const char *.
3949 * valops.c (find_function_in_inferior): Likewise.
3950
3db26b01
JB
39512002-09-12 Joel Brobecker <brobecker@gnat.com>
3952
3953 * exec.c (xfer_memory): Fix compilation warning with old versions
3954 of GCC.
3955 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3956
17c5ed2c
DC
39572002-09-12 David Carlton <carlton@math.stanford.edu>
3958
3959 * symtab.h: Run through gdb_indent.h.
3960 Add 2002 to Copyright year list.
3961
ecd1107e
AM
39622002-09-12 Alan Modra <amodra@bigpond.net.au>
3963
3964 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3965 mach constants.
3966 * MAINTAINERS: Add myself to write after approval list.
3967
e64f66d1
JB
39682002-09-11 J. Brobecker <brobecker@gnat.com>
3969
3970 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3971
f9395794
JB
39722002-09-11 J. Brobecker <brobecker@gnat.com>
3973
3974 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3975 Interix.
3976
1a303dec
MS
39772002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3978
3979 * procfs.c (do_detach): Clear current signal, not just fault.
3980 Corrects problem with breakpoint trap signal leaking to detached
3981 process on Tru64.
3982
c0219d42
MS
39832002-09-10 Michael Snyder <msnyder@redhat.com>
3984
3985 * buildsym.c (finish_block): Protect against null pointer.
3986
9d84ac84
AC
39872002-09-10 Andrew Cagney <cagney@redhat.com>
3988
3989 * infcmd.c (default_print_registers_info): Send all output to
3990 ``file'' instead of ``gdb_stdout''.
3991
77d8f2b4
MS
39922002-09-10 Michael Snyder <msnyder@redhat.com>
3993
3994 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3995 LONGEST, and use signed register read (addresses are sign-
3996 extended for mips).
3997
99656a61
SC
39982002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3999
4000 * event-loop.c (gdb_do_one_event): Make public.
4001 * event-loop.h (gdb_do_one_event): Declare.
4002
da12f4d8
JL
40032002-09-10 Jeff Law <law@redhat.com>
4004
4005 * infttrace.c (child_resume): Simplify and rework to avoid
4006 TT_PROC_CONTINUE.
4007
d0aee0c4
FF
40082002-09-09 Fred Fish <fnf@intrinsity.com>
4009
4010 * printcmd.c (print_scalar_formatted): "len" is the number of
4011 target bytes, NOT the number of target bits.
4012
7cb3ec5e
EZ
40132002-09-09 Elena Zannoni <ezannoni@redhat.com>
4014
4015 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4016 * top.c (init_main): Set rl_terminal_name.
4017
4dc81987
AS
40182002-09-08 Aidan Skinner <aidan@velvet.net>
4019
4020 * ada-lang.c (ada_array_bound, ada_type_match,
4021 _initialize_ada_language): Fix K&R definitions.
4022 * ada-tasks.c (get_current_task): Fix K&R definitions.
4023 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4024
842330b4
CF
40252002-09-07 Christopher Faylor <cgf@redhat.com>
4026
4027 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4028 Add XP.
4029
43156d82
MK
40302002-09-06 Mark Kettenis <kettenis@gnu.org>
4031
66da5fd8
MK
4032 * i386-tdep.c (i386_register_virtual_type,
4033 i386_register_convertible, i386_register_convert_to_virtual,
4034 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4035 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4036 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4037 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4038 Don't set push_arguments twice.
4039
4b218c18
MK
4040 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4041 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4042 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4043 sigtramp_end to NULL.
4044 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4045 defines.
4046 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4047
4cc314d5
MK
4048 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4049 whitespace.
4050
43156d82
MK
4051 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4052 * gdbarch.h, gdbarch.c: Re-generate.
4053 * blockframe.c (find_pc_sect_partial_function): Convert to use
4054 SIGTRAMP_START_P predicate.
4055
6672060b
MS
40562002-09-05 Michael Snyder <msnyder@redhat.com>
4057
a90c3637
MS
4058 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4059 generic_dummy_frame method and old method. Also distinguish
4060 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4061 (arm_extract_return_value): Use new regcache method.
a90c3637 4062
6672060b
MS
4063 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4064 adjustment that doesn't conform to the ABI.
4065 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4066 saved regcache, not from current regcache.
4067
299ffc64
AC
40682002-09-05 Andrew Cagney <ac131313@redhat.com>
4069
4070 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4071 * README: Update.
4072
a3a2ee65
JT
40732002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4074
4075 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4076 if arm_apcs_32 is false.
4077
2bc7eea9
AC
40782002-09-04 Andrew Cagney <ac131313@redhat.com>
4079
4080 GDB 5.3 branch created.
4081
8a55a7c5
TR
40822002-09-03 Theodore A. Roth <troth@verinet.com>
4083
4084 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4085 generic_unwind_get_saved_register.
4086
e26fb1d7
DC
40872002-09-03 David Carlton <carlton@math.stanford.edu>
4088
4089 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4090 argument (PR gdb/653). Update call to smash_to_method_type.
4091 (read_structure_scope): Update call to dwarf2_add_member_fn.
4092
30d52491
ML
40932002-09-03 Michal Ludvig <mludvig@suse.cz>
4094
4095 * x86-64-linux-tdep.c: Include gdb_string.h
4096 * x86-64-linux-nat.c: Ditto.
4097
06891d83
JT
40982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4099
4100 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4101 when YYDEBUG is set to 1.
4102 * c-exp.y: Likewise.
4103 * f-exp.y: Likewise.
4104 * jv-exp.y: Likewise.
4105 * m2-exp.y: Likewise.
4106 * p-exp.y: Likewise.
4107
7d400e77
JT
41082002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4109
4110 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4111 dependency list.
4112 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4113 solib_svr4_fetch_link_map_offsets to
4114 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4115 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4116 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4117 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4118 solib-svr4.o, and solib-legacy.o.
4119 * config/i386/tm-nbsd.h: Include solib.h.
4120
704a27c4
JT
41212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4122
4123 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4124 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4125 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4126 comment noting that this needs its own target configuration.
4127 * config/i386/nbsd.mt: New file.
4128 * config/i386/nbsdaout.mt: Remove.
4129 * config/i386/nbsdelf.mt: Ditto.
4130 * config/i386/tm-nbsdaout.h: Ditto.
4131
d66198e1
JT
41322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4133
4134 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4135 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4136 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4137 tdep->sigtramp_end.
4138 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4139 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4140 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4141
3cac699e
JT
41422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4143
4144 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4145 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4146 * i386-tdep.h (i386bsd_init_abi): New prototype.
4147 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4148 function declaration.
4149 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4150 for NetBSD-a.out or NetBSD-ELF.
4151 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4152 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4153 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4154 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4155 and nbsd-tdep.h.
4156 (i386nbsd_pc_in_sigtramp): New function.
4157 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4158 i386nbsd_pc_in_sigtramp.
4159 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4160 and i386nbsdelf_init_abi OS ABI handlers.
4161 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4162 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4163
7010ca0a
MK
41642002-09-02 Mark Kettenis <kettenis@gnu.org>
4165
4166 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4167 registers if the target really has them.
4168
6dd93b72
JT
41692002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4170
4171 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4172 than nbsd-tdep.h.
4173
2ca8ae21
JT
41742002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4175
4176 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4177 list.
4178 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4179 (alphanbsd_skip_sigtramp_frame): New functions.
4180 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4181 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4182 to alphanbsd_sigcontext_addr.
4183
3d9b49b0
JT
41842002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4185
4186 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4187 list.
4188 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4189 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4190 nbsd_pc_in_sigtramp.
4191 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4192 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4193 * nbsd-tdep.c: Include gdb_string.h.
4194 (nbsd_pc_in_sigtramp): New function.
4195 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4196 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4197 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4198 ppcnbsd_pc_in_sigtramp.
4199 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4200 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4201 shnbsd_pc_in_sigtramp.
4202 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4203 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4204 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4205
c860120c
PM
42062002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4207
4208 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4209 watchpoints to NULL.
4210 (insert_breakpoints): set val field of watchpoints if NULL.
4211
4212
c7612d53
JB
42132002-08-29 Jim Blandy <jimb@redhat.com>
4214
4215 * symtab.c (lookup_symbol_aux): In the cases where we find a
4216 minimal symbol of an appropriate name and use its address to
4217 select a symtab to read and search, use `name' (as passed to us)
4218 as the demangled name when searching the symtab's global and
4219 static blocks, not the minsym's name.
4220
66609862
KS
42212002-08-29 Keith Seitz <keiths@redhat.com>
4222
4223 * stack.c (print_frame_info_base): Always set current_source_symtab
4224 and current_source_line.
4225
151fefe2
JB
42262002-08-29 Donn Terry <donnte@microsoft.com>
4227
4228 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4229
bfb3754e
KS
42302002-08-28 Keith Seitz <keiths@redhat.com>
4231
4232 * stack.c (select_frame): Add FIXME concerning selected-frame
4233 events.
4234 (select_frame_command): Send selected-frame-level-changed
4235 event notification, but only if the level actually changed.
4236 (up_silently_base): Add selected-frame-level-changed event
4237 notification.
4238 (down_silently_base): Likewise.
4239
e822a2a0
AC
42402002-08-28 Andrew Cagney <ac131313@redhat.com>
4241
4242 * Makefile.in: Update dependencies for all gdb/*.c files.
4243
309367d4
TT
42442002-08-27 Tom Tromey <tromey@redhat.com>
4245
4246 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4247 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4248 Update dependencies.
4249 * i387-tdep.c: Include gdb_string.h.
4250 * osabi.c: Likewise.
4251 * i386-linux-nat.c: Likewise.
4252 * lin-lwp.c: Likewise.
4253 * ax-gdb.c: Likewise.
4254 * signals/signals.c: Likewise.
4255 * jv-valprint.c: Likewise.
4256 * p-lang.c: Likewise.
4257 * c-valprint.c: Likewise.
4258 * cp-abi.c: Likewise.
4259
e1507482
EZ
42602002-08-27 Elena Zannoni <ezannoni@redhat.com>
4261
4262 * cli/cli-script.h (copy_command_lines): Export.
4263 * breakpoint.c: Include cli/cli-script.h.
4264 * Makefile.in (breakpoint.o): Update dependencies.
4265
c6510018
MS
42662002-08-26 Michael Snyder <msnyder@redhat.com>
4267
4268 * breakpoint.c (insert_breakpoints): Protect all references
4269 to 'process_warning'. Shorten long lines.
4270
c2b8ed2c
MS
42712002-08-26 Joel Brobecker <brobecker@gnat.com>
4272
4273 * cli/cli-script.c (copy_command_lines): New function.
4274 * defs.h (copy_command_lines): Export.
4275 * testsuite/gdb.base/commands.exp: New tests for commands
4276 attached to a temporary breakpoint, and for commands that
4277 delete the breakpoint they are attached to.
4278
42792002-08-26 Michael Snyder <msnyder@redhat.com>
4280
4281 * breakpoint.c (bpstat_stop_status): Instead of copying the
4282 pointer to the breakpoint commands struct, make a new copy
4283 of the struct and point to that.
4284 (bpstat_clear): Free the commands struct.
4285 (bpstat_clear_actions): Free the commands struct.
4286 (bpstat_do_actions): Free the command actions. Also execute
4287 the local cleanups, instead of deleting them.
4288 (delete_breakpoint): Leave the commands field of the bpstat
4289 chain alone -- it will be freed later.
4290
64b84175
KB
42912002-08-26 Kevin Buettner <kevinb@redhat.com>
4292
4293 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4294 deleted in 2002-08-20 commit. This function is still used by
4295 ppc-linux-nat.c.
4296
55970da6
KS
42972002-08-26 Keith Seitz <keiths@redhat.com>
4298
4299 * gdb-events.sh: Add selected-frame-level-changed event.
4300 * gdb-events.c: Regenerated.
4301 * gdb-events.h: Regenerated.
4302
a790ad35
SC
43032002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4304
4305 Fix PR gdb/393:
4306 * inflow.c (terminal_save_ours): New function to save terminal
4307 settings.
4308 * inferior.h (terminal_save_ours): Declare.
4309 * target.c (debug_to_terminal_save_ours): New function.
4310 (cleanup_target): Defaults to_terminal_save_ours.
4311 (update_current_target): Inherit to_terminal_save_ours.
4312 (setup_target_debug): Set to_terminal_save_ours.
4313 * target.h (target_terminal_save_ours): New to save terminal settings.
4314 (target_ops): New member to_terminal_save_ours.
4315 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4316 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4317 * inftarg.c (init_child_ops): Likewise.
4318 * m3-nat.c (init_m3_ops): Likewise.
4319 * procfs.c (init_procfs_ops): Likewise.
4320 * wince.c (init_child_ops): Likewise.
4321 * win32-nat.c (init_child_ops): Likewise.
4322 * sol-thread.c (init_sol_thread_ops): Likewise.
4323
c00dcbe9
MK
43242002-08-26 Mark Kettenis <kettenis@gnu.org>
4325
3d7f4f49
MK
4326 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4327 use regcache_* functions.
4328 (i386_gdbarch_init): Set store_return_value instead of
4329 deprecated_store_return_value.
4330
c00dcbe9
MK
4331 * regcache.c (regcache_raw_write_signed,
4332 regcache_raw_write_unsigned): New functions.
4333 * regcache.h (regcache_raw_write_signed,
4334 regcache_raw_write_unsigned): New prototypes.
4335
0e0d15ca
AC
43362002-08-25 Andrew Cagney <ac131313@redhat.com>
4337
4338 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4339 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4340 source file dependencies. Cleanup corresponding generator rules.
4341
d3b22ed5
AC
43422002-08-25 Andrew Cagney <ac131313@redhat.com>
4343
4344 * regcache.h (register_offset_hack): Declare.
4345 (regcache_cooked_read_using_offset_hack): Declare.
4346 (regcache_cooked_write_using_offset_hack): Declare.
4347
4348 * regcache.c (register_offset_hack): New function.
4349 (regcache_cooked_read_using_offset_hack): New function.
4350 (regcache_cooked_write_using_offset_hack): New function.
4351 (regcache_dump): Check that the registers, according to their
4352 offset, are packed hard against each other.
4353 (cooked_xfer_using_offset_hack): New function.
4354
bb425013
AC
43552002-08-25 Andrew Cagney <ac131313@redhat.com>
4356
4357 * regcache.c (struct regcache_descr): Add field register_type.
4358 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4359 in as a parameter
4360 (init_regcache_descr): Initialize register_type. Pass the descr
4361 to init_legacy_regcache_descr. Use register_type instead of
4362 REGISTER_VIRTUAL_TYPE.
4363 (register_type): New function.
4364 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4365 * regcache.h (register_type): Declare.
4366
d0403e00
AC
43672002-08-25 Andrew Cagney <ac131313@redhat.com>
4368
4369 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4370 instead of deprecated_store_return_value. Fix fallout from
4371 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4372
0ed04cce
AC
43732002-08-25 Andrew Cagney <ac131313@redhat.com>
4374
4375 * regcache.c (max_register_size): New function.
4376 (init_legacy_regcache_descr): Ensure that max_register_size is
4377 large enough for REGISTER_VIRTUAL_SIZE.
4378 * regcache.h (max_register_size): Declare.
4379
46d79c04
AC
43802002-08-24 Andrew Cagney <ac131313@redhat.com>
4381
4382 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4383 store_return_value.
4384 (e500_extract_return_value): Change type of valbuf pointer to
4385 void.
4386
853c7bd0
MK
43872002-08-24 Mark Kettenis <kettenis@gnu.org>
4388
cd87e769
MK
4389 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4390 workaround.
4391
853c7bd0
MK
4392 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4393 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4394 long long) to prevent compiler warning on 64-bit systems.
4395
ebba8386
AC
43962002-08-23 Andrew Cagney <cagney@redhat.com>
4397
4398 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4399 (DEPRECATED_STORE_RETURN_VALUE): New method.
4400 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4401 * gdbarch.h, gdbarch.c: Re-generate.
4402
4403 * values.c (set_return_value): Pass current_regcache to
4404 STORE_RETURN_VALUE.
4405 * arch-utils.h (legacy_store_return_value): Declare.
4406 * arch-utils.c (legacy_store_return_value): New function.
4407 (legacy_extract_return_value): Update parameters.
4408
4409 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4410 STORE_RETURN_VALUE.
4411 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4412 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4413 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4414 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4415 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4416 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4417 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4418 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4419 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4420 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4421
4422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4423 * i386-tdep.c (i386_extract_return_value): Update.
4424 * arch-utils.c (legacy_extract_return_value): Update.
4425 * frv-tdep.c (frv_gdbarch_init): Update.
4426 * cris-tdep.c (cris_gdbarch_init): Update.
4427 * d10v-tdep.c (d10v_gdbarch_init): Update.
4428 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4429 * m68k-tdep.c (m68k_gdbarch_init): Update.
4430 * mcore-tdep.c (mcore_gdbarch_init): Update.
4431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4432 * s390-tdep.c (s390_gdbarch_init): Update.
4433 * sparc-tdep.c (sparc_gdbarch_init): Update.
4434 * sh-tdep.c (sh_gdbarch_init): Update.
4435 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4436 * v850-tdep.c (v850_gdbarch_init): Update.
4437 * avr-tdep.c (avr_gdbarch_init): Update.
4438 * ia64-tdep.c (ia64_gdbarch_init): Update.
4439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4440 * vax-tdep.c (vax_gdbarch_init): Update.
4441 * alpha-tdep.c (alpha_gdbarch_init): Update.
4442 * arm-tdep.c (arm_gdbarch_init): Update.
4443 * mips-tdep.c (mips_gdbarch_init): Update.
4444 * i386-tdep.c (i386_gdbarch_init): Update.
4445
5bd8c6d0
AC
44462002-08-23 Andrew Cagney <ac131313@redhat.com>
4447
4448 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4449 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4450
e73e1724
MK
44512002-08-24 Mark Kettenis <kettenis@gnu.org>
4452
4453 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4454 problems.
4455
3e6564e1
JB
44562002-08-23 Joel Brobecker <brobecker@gnat.com>
4457
4458 * infrun.c (handle_inferior_event): Move a comment outside of a
4459 function call, in order to avoid indent reformatting this part
4460 of the code in an unreadable way.
4461
81d0cc19
GS
44622002-08-23 Grace Sainsbury <graces@redhat.com>
4463
4464 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4465 when breakpoints fail. Move general breakpoint error messages to
4466 insert_breakpoints.
4467 * breakpoint.c (insert_breakpoints): Change warnings when
4468 breakpoints are nto inserted to specify the type. Remove call to
4469 memory_error when hardware breakpoints can't be inserted. Remove
4470 multiple calls to warning so all messages are sent to the user at
4471 once.
4472 (delete_breakpoints): Make insert error messsages more explicit.
4473
17574093
DJ
44742002-08-23 Daniel Jacobowitz <drow@mvista.com>
4475
4476 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4477 gdbserver/ChangeLog.
4478
8acc2935
MK
44792002-08-23 Mark Kettenis <kettenis@gnu.org>
4480
dfe01d39
MK
4481 * i386-tdep.c: Include "objfiles.h".
4482 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4483 skip_trampoline_code.
4484 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4485 (CPLUS_MARKER): Define to '.'.
4486
8acc2935
MK
4487 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4488 member.
4489 (linux_corefile_thread_callback): Increase args->num_notes.
4490 (linux_make_note_section): Initialize thread_args.num_notes, and
4491 use it to determine whether notes for any threads were created.
4492
151fefe2 44932002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4494
4495 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4496 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4497 and PCUNKILL.
4498 (write_with_trace): Conditionalize out the switch branch handling
4499 PCSHOLD if the corresponding macro is not defined. Likewise for
4500 PRSABORT and PRSTOP.
4501 This change will be needed by the Interix port.
4502
e1507482
EZ
45032002-08-22 Elena Zannoni <ezannoni@redhat.com>
4504
4505 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4506 write_register wherever possible instead of manipulating the
4507 register bytes directly.
4508 Assign VALUE_CONTENTS to a variable and use that.
4509 The GPR numbers are now dependent on the architecture.
4510
96ff0de4
EZ
45112002-08-22 Elena Zannoni <ezannoni@redhat.com>
4512
4513 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4514 ev_offset fields.
4515 (skip_prologue): Add support for BookE/e500 instructions.
4516 (e500_extract_return_value): New function.
4517 (frame_get_saved_regs): Add support for saving ev registers and
4518 pseudo gpr's.
4519 (e500_store_return_value): New function.
4520 (rs6000_gdbarch_init): Move up default intializations of
4521 deprecated_extract_return_value and store_return_value. Overwrite
4522 init of store_return_value with e500 specific version.
4523 Set extract_return_value for e500.
4524
fbefca5b
EZ
45252002-08-22 Elena Zannoni <ezannoni@redhat.com>
4526
4527 * blockframe.c (generic_call_dummy_register_unwind): Use
4528 regcache_cooked_read to catch cases in which the variable is
4529 stored in a pseudo register.
4530
4d210288
AC
45312002-08-22 Andrew Cagney <cagney@redhat.com>
4532
4533 * NEWS: Mention that the i960 has been made obsolete.
4534 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4535 i960-tdep.c
4536 (remote-nrom.o): Obsolete target.
4537 (remote-nindy.o, i960-tdep.o): Ditto.
4538 * remote-nrom.c: Make file obsolete.
4539 * remote-nindy.c, remote-vx960.c: Ditto.
4540 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4541 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4542 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4543 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4544 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4545 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4546 i960-*-vxworks* obsolete.
4547 * MAINTAINERS: Note that the i960 is obsolete.
4548
6c0c456d
CV
45492002-08-21 Corinna Vinschen <vinschen@redhat.com
4550
4551 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4552 detach to allow reinitialization.
4553
9f9d12b3
AC
45542002-08-22 Andrew Cagney <ac131313@redhat.com>
4555
4556 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4557 attempt).
4558
ebeb39fe
JB
45592002-08-22 Jim Blandy <jimb@redhat.com>
4560
4561 * coffread.c (coff_symfile_read): Don't try to read the line
4562 number table from disk if the image file doesn't have a symbol
4563 table; we'll never actually look at the info anyway, and Windows
4564 ships DLL's with bogus file offsets for the line number data.
4565
5bf1c677
EZ
45662002-08-21 Elena Zannoni <ezannoni@redhat.com>
4567
4568 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4569 an e500 executable.
4570
71b8ef93
MS
45712002-08-21 Michael Snyder <msnyder@redhat.com>
4572
4573 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4574 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4575 (DEFAULT_MIPS_TYPE): Delete unused macro.
4576 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4577 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4578
d174216d
JB
45792002-08-21 Jim Blandy <jimb@redhat.com>
4580
4581 * valops.c (value_cast): Simplify and correct logic for doing a
4582 static cast from a pointer to a base class to a pointer to a
4583 derived class.
4584
0ab7a791
AC
45852002-08-21 Andrew Cagney <ac131313@redhat.com>
4586
4587 * infcmd.c (default_print_registers_info): Replace
4588 do_registers_info.
4589 (registers_info): Use gdbarch_print_registers_info instead of
4590 DO_REGISTERS_INFO.
4591 * inferior.h (default_print_registers_info): Replace
4592 do_registers_info.
4593 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4594 (DO_REGISTERS_INFO): Change to a predicate function.
4595 * gdbarch.h, gdbarch.c: Regenerate.
4596
e23792cc
KS
45972002-08-21 Keith Seitz <keiths@redhat.com>
4598
4599 * gdb-events.sh: Add target-changed event.
4600 * gdb-events.c: Regenerated.
4601 * gdb-events.c: Regenerated.
4602 * valops.c (value_assign): Add target-changed event notification
4603 to inlval_register, lval_memory, and lval_reg_frame_relative.
4604
9fb14e79
JB
46052002-08-21 Joel Brobecker <brobecker@gnat.com>
4606
4607 * NEWS: Add an entry regarding the improvement of the next/step
4608 operation on Alpha Tru64 multi-processor machines.
4609
6d39a69f
AC
46102002-08-21 Andrew Cagney <ac131313@redhat.com>
4611
72acd513
AC
4612 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4613 directores.
342af04b 4614 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4615 * Makefile.in (install-gdbtk): Move to install section.
4616 (rdi-share/libangsd.a): Move to end of file.
4617
fa5f27c7
AC
46182002-08-19 Andrew Cagney <ac131313@redhat.com>
4619
4620 * frame.c (frame_register_unwind): When a register, set addrp to
4621 the register's byte.
4622
5a89d8aa
MS
46232002-08-20 Michael Snyder <msnyder@redhat.com>
4624
4625 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4626 used locally, so move them from the target machine header to here.
4627 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4628 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4629 Make static.
4630 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4631
822e978b
AC
46322002-08-20 Andrew Cagney <cagney@redhat.com>
4633
4634 * NEWS: Mention that the Apollo line was made obsolete.
4635 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4636 m68*-hp-hpux* obsolete.
4637 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4638 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4639 * buildsym.c (make_blockvector): Make static.
4640 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4641 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4642 (ALLDEPFILES): Remove dstread.c.
4643 (dstread.o): Obsolete make rule.
4644 * dstread.c: Makefile obsolete.
4645 * dst.h: Ditto.
4646 * config/m68k/hp300hpux.mt: Ditto.
4647 * config/m68k/hp300hpux.mh: Ditto.
4648 * config/m68k/hp300bsd.mt: Ditto.
4649 * config/m68k/hp300bsd.mh: Ditto.
4650 * config/m68k/apollo68b.mt: Ditto.
4651 * config/m68k/apollo68v.mh: Ditto.
4652 * config/m68k/apollo68b.mh: Ditto.
4653
e41b17f0
MS
46542002-08-20 Michael Snyder <msnyder@redhat.com>
4655
4656 * mips-tdep.c (mips_in_return_stub): Make static.
4657 (mips_gdbarch_init): Set in_solib_return_trampoline.
4658 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4659
d50355b6
MS
46602002-08-20 Michael Snyder <msnyder@redhat.com>
4661
4662 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4663 * gdbarch.c, gdbarch.h: Regenerate.
4664 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4665 Add.
4666 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4667
757a7cc6
MS
46682002-08-20 Michael Snyder <msnyder@redhat.com>
4669
4670 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4671 (mips_gdbarch_init): Set skip_trampoline_code,
4672 in_solib_call_trampoline.
4673 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4674 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4675
c8001721
EZ
46762002-08-20 Elena Zannoni <ezannoni@redhat.com>
4677
4678 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4679
4680 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4681 vector type for ev registers.
4682 (e500_pseudo_register_read): New function.
4683 (e500_pseudo_register_write): New function.
4684 (e500_dwarf2_reg_to_regnum): New function.
4685 (PPC_UISA_NOFP_SPRS): New macro.
4686 (PPC_EV_REGS): New macro.
4687 (PPC_GPRS_PSEUDO_REGS): New macro.
4688 (registers_e500): New register set for e500.
4689 (variants): Add e500 variant.
4690 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4691 before setting architectural dependent variations. Initialize ev
4692 registers numbers. Add case for e500 architecture. Set the
4693 number of pseudo registers.
4694
64366f1c
EZ
46952002-08-20 Elena Zannoni <ezannoni@redhat.com>
4696
4697 * rs6000-tdep.c: Clean up comments.
4698
7e78f0ca
AC
46992002-08-20 Andrew Cagney <cagney@redhat.com>
4700
4701 * h8300-tdep.c: Re-indent file.
4702
697f7479
JB
47032002-08-20 Jim Blandy <jimb@redhat.com>
4704
4705 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4706 default for this.
697f7479 4707
e86ae29f
KS
47082002-08-20 Keith Seitz <keiths@redhat.com>
4709
4710 * breakpoints.c (watch_command_1): Use internal breakpoint
4711 when setting a watchpoint_scope breakpoint.
4712
216b504f
EZ
47132002-08-20 Elena Zannoni <ezannoni@redhat.com>
4714
4715 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4716 (build_builtin_type_vec64i): Ditto.
4717 (build_builtin_type_vec128): Ditto.
4718 (build_builtin_type_vec128i): Ditto.
4719
f7ab6ec6
MS
47202002-08-19 Michael Snyder <msnyder@redhat.com>
4721
4722 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4723 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4724 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4725 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4726 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4727 CALL_DUMMY_ADDRESS): Delete.
4728 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4729 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4730 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4731 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4732 push_return_address.
4733 (mips_register_raw_size, mips_eabi_use_struct_convention,
4734 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4735 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4736 mips_init_extra_frame_info, mips_eabi_push_arguments,
4737 mips_n32n64_push_arguments, mips_push_return_address,
4738 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4739 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4740
b5d1566e
MS
47412002-08-19 Michael Snyder <msnyder@redhat.com>
4742
4743 * mips-tdep.c (mips_frame_num_args): New function.
4744 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4745 frame_saved_pc, frame_args_address, frame_locals_address,
4746 frame_num_args, and frame_args_skip.
4747 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4748 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4749 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4750 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4751
2f1488ce
MS
47522002-08-20 Michael Snyder <msnyder@redhat.com>
4753
4754 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4755 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4756 * mips-tdep.c (mips_store_struct_return): New function.
4757 (mips_extract_struct_value_address): New function.
4758 (mips_gdbarch_init): Set store_struct_return and
4759 extract_struct_value_address.
4760
41ff2da1
DC
47612002-08-20 David Carlton <carlton@math.stanford.edu>
4762
4763 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4764 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4765 (read_file_scope): Check that line_header is nonzero before
4766 decoding macro information.
4767
e5451d58
MK
47682002-08-20 Mark Kettenis <kettenis@gnu.org>
4769
4770 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4771 flag the general-purpose registers as floating-point on targets
4772 that don't support the floating-point registers.
4773
4a6daafa
EZ
47742002-08-20 Elena Zannoni <ezannoni@redhat.com>
4775
4776 * rs6000-tdep.c (altivec_register_p): Delete.
4777 (rs6000_do_altivec_registers): Delete.
4778 (rs6000_altivec_registers_info): Delete.
4779 (rs6000_do_registers_info): Delete.
4780 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4781 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4782
ab4327e0
EZ
47832002-08-20 Elena Zannoni <ezannoni@redhat.com>
4784
4785 * infcmd.c (do_registers_info): Print vector registers in hex
4786 format only.
4787 (print_vector_info): Check that printing registers
4788 makes sense.
4789 (print_float_info): Ditto.
4790
cb1d2653
AC
47912002-08-20 Andrew Cagney <ac131313@redhat.com>
4792
4793 * mips-tdep.c (mips_gdbarch_init): Update.
4794 (mips_o32_extract_return_value): Rewrite.
4795 (mips_o32_store_return_value): Rewrite.
4796 (mips_o32_xfer_return_value): New function.
4797 (mips_xfer_register): Tweak debug print message. Allow for
4798 buf_offset when dumping the value transfered.
4799
dfc3d9b2
AC
48002002-08-20 Andrew Cagney <ac131313@redhat.com>
4801
4802 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4803 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4804 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4805 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4806 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4807
7807aa61
MS
48082002-08-14 Michael Snyder <msnyder@redhat.com>
4809
4810 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4811
489461e2
EZ
48122002-08-19 Elena Zannoni <ezannoni@redhat.com>
4813
4814 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4815 register.
4816 (P): New macro to define a register as a pseudo register.
4817 (R, R4, R8, R16, FR32, R64, R0): Updated.
4818 (struct variant): Add new fields for number of pseudo registers
4819 and number of total registers.
4820 (tot_num_registers): New macro replacing....
4821 (num_registers): ...deleted macro.
4822 (num_registers): New function.
4823 (num_pseudo_registers): New function.
4824 (variants): Update all variants to intialize new fields correctly.
4825 Postpone initialization of number of pseudo regs and real regs.
4826 (init_variants): New function.
4827 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4828 registers offsets.
4829
fcaffe4c
DC
48302002-08-19 David Carlton <carlton@math.stanford.edu>
4831
2c2738a0
DC
4832 * valops.c (search_struct_field): Change error message to treat
4833 return value of 0 from value_static_field as meaning that field is
4834 optimized out.
4835 (value_struct_elt_for_reference): Ditto.
4836 * values.c (value_static_field): Treat an unresolved location the
4837 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4838 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4839 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4840 * MAINTAINERS: Add self to Write After Approval list.
4841
88658117
AC
48422002-08-19 Andrew Cagney <ac131313@redhat.com>
4843
4844 * mips-tdep.c (mips_xfer_register): New function.
4845 (mips_n32n64_extract_return_value): Rewrite.
4846 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4847 instead of deprecated_extract_return_value.
4848
21283beb
EZ
48492002-08-19 Elena Zannoni <ezannoni@redhat.com>
4850
4851 * rs6000-tdep.c (TDEP): Delete macro.
4852 (branch_dest): Replace use of TDEP macro with its body.
4853 (rs6000_pop_frame): Ditto.
4854 (rs6000_push_arguments): Ditto.
4855 (rs6000_skip_trampoline_code): Ditto.
4856 (rs6000_frame_saved_pc): Ditto.
4857 (rs6000_frame_chain): Ditto.
4858 (rs6000_register_name): Ditto.
4859 (rs6000_register_byte): Ditto.
4860 (rs6000_register_raw_size): Ditto.
4861 (rs6000_register_virtual_type): Ditto.
4862 (rs6000_register_convertible): Ditto.
4863 (rs6000_convert_from_func_ptr_addr): Ditto.
4864
bf072999
DJ
48652002-08-19 Daniel Jacobowitz <drow@mvista.com>
4866
4867 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4868 conditionally.
4869 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4870 MIPS_LINUX_JB_ELEMENT_SIZE.
4871 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4872 for MAX_REGISTER_RAW_SIZE arrays.
4873 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4874 MIPS_LINUX_JB_ELEMENT_SIZE.
4875
9b949a49
PM
48762002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4877
4878 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4879
6d3e79c6
AS
48802002-08-19 Aidan Skinner <aidan@velvet.net>
4881
4882 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4883 ada-valprint.c ada-tasks.c.
4884 (YYFILES): Add ada-exp.y.
4885 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4886 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4887 (ada-exp.tab.o): New target.
4888
06c0b04e
AC
48892002-08-18 Andrew Cagney <ac131313@redhat.com>
4890
4891 * regcache.c (regcache_xfer_part): New function.
4892 (regcache_raw_read_part): New function.
4893 (regcache_raw_write_part): New function.
4894 (regcache_cooked_read_part): New function.
4895 (regcache_cooked_write_part): New function.
4896 * regcache.h (regcache_raw_read_part): Declare.
4897 (regcache_raw_write_part): Declare.
4898 (regcache_cooked_read_part): Declare.
4899 (regcache_cooked_write_part): Declare.
4900
92d1e331
DJ
49012002-08-18 Daniel Jacobowitz <drow@mvista.com>
4902
4903 * remote.c (remote_open_1): Add async_p.
4904 (remote_async_open_1): Delete.
4905 (open_remote_target): Delete.
4906 (remote_open, extended_remote_open): Update calls to remote_open_1.
4907 (remote_async_open, extended_remote_async_open): Call
4908 remote_open_1 instead of remote_async_open_1.
4909
247055de
MK
49102002-08-19 Mark Kettenis <kettenis@gnu.org>
4911
4912 * blockframe.c: Fix a few coding standard violations.
4913
641eda39
MK
49142002-08-19 Mark Kettenis <kettenis@gnu.org>
4915
0b717710
MK
4916 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4917 here from ...
4918 * config/i386/tm-i386sco5.h: ... here. File removed.
4919 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4920
26d28e12 4921 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4922 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4923 (TM_FILE): Set to tm-i386.h.
4924 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4925 * config/i386/tm-i386v.h: Remove file.
4926 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4927 instead of "i386/tm-i386v.h".
4928 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4929 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4930 "i386/tm-i386v.h".
4931 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4932 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4933 "i386/tm-i386.h".
4934
d4e0bab4
MK
49352002-08-18 Mark Kettenis <kettenis@gnu.org>
4936
4937 * config/i386/nm-i386v.h: Add protection against
4938 multiple-inclusion.
4939 (i386_register_u_addr): Remove prototype.
4940 (register_u_addr): New prototype.
4941 (REGISTER_U_ADDR): Redefine accordingly.
4942 * i386v-nat.c: Improve several comments.
4943 (i386_register_u_addr): Change signature and rename to
4944 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4945 ubase variable.
4946
46cac009
AC
49472002-08-18 Andrew Cagney <ac131313@redhat.com>
4948
4949 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4950 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4951 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4952 deprecated_extract_return_value.
4953 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4954 rename mips_o32o64_push_arguments.
4955 (mips_gdbarch_init): Update.
4956 (mips_extract_return_value): Delete.
4957 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4958 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4959 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4960 (mips_n32n64_extract_return_value): Clone
4961 mips_extract_return_value.
4962 (mips_store_return_value): Delete.
4963 (mips_o32_store_return_value): Clone mips_store_return_value.
4964 (mips_o64_store_return_value): Clone mips_store_return_value.
4965 (mips_eabi_store_return_value): Clone mips_store_return_value.
4966 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4967
d2e4a39e
AS
49682002-08-18 Aidan Skinner <aidan@velvet.net>
4969
0c30c098
AS
4970 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4971 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4972
49732002-08-18 Aidan Skinner <aidan@velvet.net>
4974
4975 * ada-lang.c: Run through gdb_indent.sh.
4976 * ada-lang.h: Run through gdb_indent.sh.
4977 * ada-tasks.c: Run through gdb_indent.sh.
4978 * ada-typeprint.c: Run through gdb_indent.sh.
4979 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4980
01fc4e33
AC
49812002-08-18 Andrew Cagney <ac131313@redhat.com>
4982
4983 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4984 ABI.
4985
d8ee244c
MK
49862002-08-18 Mark Kettenis <kettenis@gnu.org>
4987
c38d8261
MK
4988 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4989
222db64c
MK
4990 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4991 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4992
c2848c82
MK
4993 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4994 write_register_gen instead of write_register_bytes.
4995
d8ee244c
MK
4996 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4997 i[3456]-*-osf1mk* configurations have been made obsolete.
4998 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4999 i[3456]86-*-osf1mk* hosts obsolete.
5000 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5001 targets obsolete.
5002 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5003 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5004 config/i386/i386m3.mt, config/i386/nm-m3.h,
5005 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5006 config/i386/i386mk.mh, config/i386/i386mk.mt,
5007 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5008 obsolete.
5009 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5010 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5011 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5012
61d8d407
AC
50132002-08-18 Andrew Cagney <ac131313@redhat.com>
5014
5015 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5016 (hppa_value_returned_from_stack): Declare.
5017 (hppa_extract_return_value): Declare.
5018 * config/pa/hppa.mt: New file.
5019 * configure.tgt: Recognize hppa*-*-*.
5020 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5021
0c52bd59
MK
50222002-08-18 Mark Kettenis <kettenis@gnu.org>
5023
5024 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5025 comment.
5026
b5686e99
MK
50272002-08-17 Mark Kettenis <kettenis@gnu.org>
5028
5029 * top.c (gdb_rl_operate_and_get_next): Make sure
5030 operate-and-get-next functions correctly even when the history
5031 list is completely filled.
5032
c1bab85b
AC
50332002-08-18 Andrew Cagney <ac131313@redhat.com>
5034
5035 * MAINTAINERS (Target Instruction Set Architectures): Rename
5036 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5037 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5038 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5039 already listed under Host/Native.
5040
5041 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5042 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5043 mips*-*-*.
5044
32089c7c
AC
50452002-08-17 Andrew Cagney <ac131313@redhat.com>
5046
5047 * config/ia64/ia64.mt: New file.
5048 * config/alpha/alpha.mt: New file.
5049 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5050 ia64-linux-gnu. Mention that ia64-elf is broken.
5051 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5052
b4671f85
MK
50532002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5054
5055 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5056 generic_func_frame_valid instead of func_frame_valid.
5057
c8edd8b4
JB
50582002-08-16 Joel Brobecker <brobecker@gnat.com>
5059
5060 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5061 procfs appears to be broken when debugging on multi-processor
5062 machines. So enable software single stepping in order to avoid
5063 using the procfs interface to do next/step operations, using
5064 internal breakpoints instead.
5065
5066 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5067 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5068 make this pc address equal to the value it would have if the
5069 system stepping capability was used. Also set a new flag used
5070 to ensure that we don't readjust the PC one more time later.
5071
5072 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5073 address by DECR_PC_AFTER_BREAK when software single step is
5074 in use for this architecture, as this has already been taken
5075 care of in handle_inferior_event().
5076
238617f6
JB
50772002-08-16 Joel Brobecker <brobecker@gnat.com>
5078
5079 * infrun.c (handle_inferior_event): Minor reformatting, to make
5080 a rather long condition expression easier to read.
5081
541a7aac
AC
50822002-08-16 Andrew Cagney <ac131313@redhat.com>
5083
5084 * Makefile.in (gdbtk.o): Move to end of file.
5085 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5086 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5087 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5088 (gdbtk-wrapper.o, gdbres.o): Ditto.
5089
f92d4a7b
AC
50902002-08-16 Andrew Cagney <ac131313@redhat.com>
5091
5092 * Makefile.in (copying.o): Separate out compile rule.
5093 (hpux-thread.o, procfs.o, signals.o): Ditto.
5094 (v850ice.o, z8k-tdep.o): Ditto.
5095 (tui-file.o): Move to TUI section.
5096 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5097 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5098
1cce71eb
JB
50992002-08-16 Joel Brobecker <brobecker@gnat.com>
5100
5101 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5102 skip_trampoline_code, for better namespace-proofing.
5103
5104 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5105
0851f23d
JB
51062002-08-16 Joel Brobecker <brobecker@gnat.com>
5107
5108 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5109
f8d40ec8
JB
51102002-08-16 Joel Brobecker <brobecker@gnat.com>
5111
5112 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5113 signal, check whether we hit a breakpoint before checking for a
5114 single step breakpoint. Otherwise, GDB fails to notice that a
5115 breakpoint has been hit when stepping onto a breakpoint.
5116
63d022e0
KS
51172002-08-16 Keith Seitz <keiths@redhat.com>
5118
5119 * gdb-events.sh (clear_gdb_event_hooks): New function.
5120 * gdb-events.c: Regenerate.
5121 * gdb-events.h: Regenerate.
5122
6e31adb3
AC
51232002-08-16 Andrew Cagney <ac131313@redhat.com>
5124
5125 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5126 not_a_sw_breakpoint.
5127 * breakpoint.h (bpstat_stop_status): Add parameter names.
5128
c8189ed1
GS
51292002-08-16 Grace Sainsbury <graces@redhat.com>
5130
5131 * remote.c (remote_insert_hw_breakpoint)
5132 (remote_remove_hw_breakpoint): Fix calculation of length field
5133 for Z-packet.
5134
d05285fa
MS
51352002-08-15 Michael Snyder <msnyder@redhat.com>
5136
466d7106
MS
5137 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5138 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5139 (supply_fpregset): Ditto.
5140
d05285fa
MS
5141 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5142 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5143 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5144 (TARGET_READ_SP): Delete.
bf1f5b4c 5145 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5146 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5147 Delete.
5148 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5149 from macros to functions.
bf1f5b4c 5150
d05285fa
MS
5151 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5152 (mips_register_convertible, mips_register_convert_to_virtual,
5153 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5154 (mips_read_sp): New function.
5155 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5156 (mips_do_registers_info): Make static.
5157 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5158 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5159 (mips_register_convert_from_type, mips_register_convert_to_type):
5160 New functions.
5161 (mips_gdbarch_init): Set up function_start_offset,
5162 register_virtual_size, pc_in_sigtramp.
d05285fa 5163
e76f1f2e
AC
51642002-08-15 Andrew Cagney <ac131313@redhat.com>
5165
5166 * infcmd.c (vector_info): New function.
5167 (_initialize_infcmd): Add command "info vector".
5168 (print_vector_info): New function.
5169
5170 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5171 * gdbarch.h, gdbarch.c: Regenerate.
5172
4782dc19
AC
51732002-08-15 Andrew Cagney <ac131313@redhat.com>
5174
5175 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5176 ``print_all''. Only print vector registers when ``print_all''.
5177
23e3a7ac
AC
51782002-08-15 Andrew Cagney <ac131313@redhat.com>
5179
8e186fd6
AC
5180 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5181 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5182
23e3a7ac
AC
5183 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5184 Add `args' parameter.
5185 * gdbarch.h, gdbarch.c: Regenerate.
5186
5187 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5188
5189 * infcmd.c (float_info): Call print_float_info.
5190 (print_float_info): New function. By default, print the
5191 floating-point registers.
5192
5193 * arch-utils.h (default_print_float_info): Delete declaration.
5194 * arch-utils.c (default_print_float_info): Delete function.
5195
e0ca2bb9
MK
51962002-08-16 Mark Kettenis <kettenis@gnu.org>
5197
3f733acc
MK
5198 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5199 out define.
5200
7d8d2918
MK
5201 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5202 FRAME.
5203
1c7cc583
MK
5204 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5205 * configure.host: Make i[3456]86-*-aix host obsolete.
5206 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5207 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5208 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5209 config/i386/xm-i386aix.h: Make files obsolete.
5210 * i386aix-nat.c: Make file obsolete.
5211 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5212 (i386aix-nat.o): Make target obsolete.
5213
e0ca2bb9
MK
5214 * config/i386/nm-gnu.h: Removed.
5215 * config/i386/nm-i386gnu.h: New file.
5216 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5217 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5218 Moved here from ...
5219 * config/i386/tm-i386gnu.h: ... here. Removed.
5220 * config/i386/xm-i386gnu.h: Removed.
5221 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5222 (NAT_FILE): Set to nm-i386gnu.h.
5223 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5224 * i386-tdep.c: New file.
5225 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5226 (i386gnu-tdep.o): Specify dependencies.
5227
16057ec7 52282002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5229
6b99ee2e
MK
5230 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5231 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5232 Adjust a few comments to reflect reality a bit closer.
5233 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5234 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5235 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5236 target_insert_watchpoint, target_remove_watchpoint):
5237 Move defines to ...
5238 * config/i386/nm-i386sco5.h: ... here.
5239 (kernel_u_size): Add prototype. Improve a few comments and add
5240 protection against multiple inclusion.
5241
d9a6f65c
MK
5242 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5243 out define.
5244
047eff6a
MK
5245 * uw-thread.c (SP_ARG0): Define if not already defined.
5246 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5247
dcdb1290
MK
5248 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5249
5d2d0b2a
MK
5250 * config/i386/tm-i386.h: Don't include "regcache.h".
5251
61113f8b
MK
5252 * i387-tdep.h (i387_print_float_info): New prototype.
5253 * i387-tdep.c (print_i387_value, print_i387_ext,
5254 print_i387_status_word, print_i387_control_word): Add `struct
5255 ui_file *' argument and use it for output.
5256 (i387_print_float_info): Renamed from i387_float_info. Add
5257 `struct gdbarch *' and `struct ui_file *' arguments and use the
5258 latter for output.
5259 * i386-tdep.c: Include "i387-tdep.h".
5260 (i386_gdbarch_init): Set print_float_info.
5261 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5262 (FLOAT_INFO): Remove define.
5263
46e0f506
MS
52642002-08-13 Michael Snyder <msnyder@redhat.com>
5265
5266 * mips-tdep.c (mips_push_arguments): Rename to
5267 mips_eabi_push_arguments, and tune for EABI.
5268 (MIPS_REGS_HAVE_HOME_P): Delete.
5269 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5270 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5271 Delete references to mips_regs_have_home_p.
5272
409268de
KS
52732002-08-14 Keith Seitz <keiths@redhat.com>
5274
5275 * Makefile.in (install-gdbtk): Create insight plugin directory.
5276 Install plugins.tcl file.
5277
ffc6a242
KS
52782002-08-14 Keith Seitz <keiths@redhat.com>
5279
5280 * configure.in: Move SUBDIRS to near top of the file so that
5281 --enable options may add things to it.
5282 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5283 * configure: Regenerate.
5284
ebafbe83
MS
52852002-08-13 Michael Snyder <msnyder@redhat.com>
5286
5287 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5288 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5289 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5290
32f6f25d
AC
52912002-08-13 Andrew Cagney <ac131313@redhat.com>
5292
5293 * vax-tdep.c (vax_get_saved_register): Delete function.
5294 (vax_gdbarch_init): Update.
5295 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5296 (ns32k_gdbarch_init): Update.
5297 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5298 (alpha_gdbarch_init): Update.
5299
53826de9
AC
53002002-08-13 Andrew Cagney <cagney@redhat.com>
5301
5302 * regcache.c (init_regcache_descr): Overallocate the
5303 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5304 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5305 nr_raw_registers.
5306 (set_register_cached): Add range checking assertions. Use
5307 current_regcache.
5308
16057ec7 53092002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5310
5311 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5312 numbers for MMX registers.
5313
7b4c2dce
AC
53142002-08-13 Andrew Cagney <cagney@redhat.com>
5315
5316 * i386-tdep.c (i386_gdbarch_init): Use
5317 generic_unwind_get_saved_register.
5318
1e03ad20
KB
53192002-08-13 Kevin Buettner <kevinb@redhat.com>
5320
5321 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5322 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5323 target vector.
5324 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5325 Delete. Add comment regarding this now-deleted target method.
5326
548bcbec
SC
53272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5328
5329 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5330 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5331 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5332 real PC and the page number (if it's within the memory bank window).
5333 (m68hc11_pseudo_register_write): Likewise when saving.
5334 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5335 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5336 (m68hc11_register_raw_size): And use 32-bit for it.
5337 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5338 16K memory bank is used by the prog; also use the virtual pc.
5339
7df11f59
SC
53402002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5341
5342 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5343 (m68hc11_gdbarch_init): Install it in gdbarch.
5344 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5345 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5346 (MSYMBOL_SIZE): New for documentation.
5347 (insn_return_kind): Enum to specify how a function returns.
5348 (frame_extra_info): Cleanup and record the return mode.
5349 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5350 register in address computation.
5351 (m68hc11_get_return_insn): New to obtain the return instruction used
5352 by the function.
5353 (m68hc11_frame_init_saved_regs): Take into account the return
5354 instruction used by the function for far and interrupt functions.
5355 (m68hc11_init_extra_frame_info): Take into account page register.
5356 (m68hc11_frame_args_address): Adjust according to the return mode.
5357 (show_regs): Print page register only when it's used.
5358
5706502a
SC
53592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5360
5361 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5362 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5363 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5364 registers.
5365 (m68hc11_register_raw_size): Likewise.
5366
28fc6740
AC
53672002-08-13 Andrew Cagney <cagney@redhat.com>
5368
5369 * i386-tdep.c (i386_register_name): Handle mmx registers.
5370 (mmx_regnum_p): New function.
5371 (i386_mmx_names): New array.
5372 (mmx_num_regs): New variable.
5373 (i386_pseudo_register_read): New function.
5374 (i386_pseudo_register_write): New function.
5375 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5376
5377 * regcache.c (regcache_raw_read_unsigned): New function.
5378 (regcache_raw_read_signed): New function.
5379 * regcache.h (regcache_raw_read_unsigned): Declare.
5380 (regcache_raw_read_signed): Declare.
5381
a378f419
AC
53822002-08-13 Andrew Cagney <cagney@redhat.com>
5383
5384 * regcache.c (regcache_raw_read_as_address): Delete function.
5385 (regcache_cooked_read_signed): New function.
5386 (regcache_cooked_read_unsigned): New function.
5387 * regcache.h (regcache_cooked_read_signed): Declare.
5388 (regcache_cooked_read_unsigned): Declare.
5389 (regcache_raw_read_as_address): Delete declaration.
5390
5391 * blockframe.c (generic_read_register_dummy): Use
5392 regcache_cooked_read_unsigned.
5393 * i386-tdep.c (i386_extract_struct_value_address): Use
5394 regcache_cooked_read_unsigned.
5395
81967506
SC
53962002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5397
5398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5399 double sizes according to ELF ABI flags.
5400 (gdbarch_tdep): Record elf_flags.
5401
ffe1f3ee
SC
54022002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5403
5404 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5405 (m6812_prolog): They can appear in 68HC12 function prologue.
5406 (m68hc11_frame_chain): Cleanup.
5407
98216c5d
AC
54082002-08-12 Andrew Cagney <cagney@redhat.com>
5409
5410 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5411 declarations.
5412 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5413 (i386_linux_register_raw_size): Delete function.
5414 (i386_linux_init_abi): Update.
5415 * i386-tdep.c (i386_register_raw_size): Delete function.
5416 (i386_register_byte): Delete function.
5417 (i386_gdbarch_init): Update.
5418 (i386_register_size): Delete array.
5419 (i386_register_offset): Delete array.
5420
5421 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5422 (REGISTER_RAW_SIZE): Delete macro.
5423 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5424 (REGISTER_BYTE): Delete macro.
5425
3b19021e
AS
54262002-08-11 Aidan Skinner <aidan@velvet.net>
5427
5428 * ada-lang.c (ada_lookup_partial_symbol)
5429 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5430 prototype names so that grep ^func works properly.
5431
5432 * ada-lang.c (ada_array_element_type)
5433 (ada_lookup_partial_symbol): Fix typos in parameter list.
5434
5435 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5436 Fix prototype names so that grep ^func works properly.
5437
b063e7a2
AC
54382002-08-10 Andrew Cagney <cagney@redhat.com>
5439 Elena Zannoni <ezannoni@redhat.com>
5440 Martin M. Hunt <hunt@redhat.com>
5441
5442 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5443 (build_builtin_type_vec128i): Set the vector bit.
5444 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5445 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5446 (build_builtin_type_vec64): New function.
5447 (build_builtin_type_vec64i): New function.
5448 (build_gdbtypes): Initialize builtin_type_vec64 and
5449 builtin_type_vec64i.
5450
a7e3c2ad
AC
54512002-08-09 Andrew Cagney <cagney@redhat.com>
5452
5453 * regcache.c (regcache_dump): Compare the register offset
5454 with REGISTER_BYTE.
5455 * arch-utils.c (generic_register_byte): New function.
5456 * arch-utils.h (generic_register_byte): Declare.
5457 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5458 * gdbarch.h, gdbarch.c: Regenerate.
5459
af030b9a
AC
54602002-08-09 Andrew Cagney <cagney@redhat.com>
5461
5462 * regcache.c: Include "gdbcmd.h"
5463 (_initialize_regcache): Add commands "maintenance print
5464 registers", "maintenance print raw-registers" and "maintenance
5465 print cooked-registers".
5466 (enum regcache_dump_what): Define.
5467 (dump_endian_bytes): New function.
5468 (regcache_dump): New function.
5469 (regcache_print): New function.
5470 (maintenance_print_registers): New function.
5471 (maintenance_print_raw_registers): New function.
5472 (maintenance_print_cooked_registers): New function.
5473 * Makefile.in (regcache.o): Update dependencies.
5474
cb3d25d1
MS
54752002-08-09 Michael Snyder <msnyder@redhat.com>
5476
5477 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5478 (mips_push_arguments): Correct some comments. Use paddr_nz
5479 for printing addresses in debug output. Replace static
5480 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5481 (mips_n32n64_push_arguments): New function, cloned from
5482 mips_push_arguments and tuned for the n32/n64 ABI.
5483 (mips_push_register): Buffer needs dynamic allocation.
5484 (mips_print_register): Ditto.
5485 (do_gp_register_row): Ditto.
5486 (mips_store_return_value): Ditto.
5487 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5488
2163ab9d
DH
54892002-08-09 Don Howard <dhoward@redhat.com>
5490
5491 * memattr.c (mem_info_command): Print special case of upper bound
5492 as max CORE_ADDR + 1.
5493
b78bcb18
MS
54942002-08-08 Michael Snyder <msnyder@redhat.com>
5495
5496 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5497 returns structs by ref if they're too big to fit in two registers.
5498
ffabd70d
KB
54992002-08-09 Kevin Buettner <kevinb@redhat.com>
5500
5501 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5502 saved regs value.
5503 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5504 mips_find_saved_regs().
5505 (mips_pop_frame): Likewise.
5506
fbcdb4a3
KB
55072002-08-09 Kevin Buettner <kevinb@redhat.com>
5508
5509 * blockframe.c (frame_saved_regs_register_unwind): Revise
5510 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5511 frames are in use.
5512
3c3bea1c
GS
55132002-08-09 Grace Sainsbury <graces@redhat.com>
5514
5515 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5516 T-packets; the 'a' is not taken as a register number.
5517 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5518 (remote_stopped_data_address): New functions; add to target
5519 vector.
5520 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5521 prototypes to match other implementations of this
5522 function. replace integer argument with pointer -- the length
5523 field in the Z-packet is the length of what is pointed to or 1 if
5524 pointer is null. Add to target vector.
5525 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5526 target vector.
5527
5528 From Mark Salter:
5529 * remote.c (remote_wait): Add support to extract optional
5530 watchpoint information from T-packet. Ignore unrecognized
5531 optional info in T-packet.
5532 (remote_async_wait): Ditto.
5533
5d1d95de
CV
55342002-08-09 Corinna Vinschen <vinschen@redhat.com>
5535
5536 * cli/cli-dump.c: Change fopen modes to use binary open modes
5537 as defined in include/fopen-bin.h throughout.
5538
c86b5b38
MS
55392002-08-08 Michael Snyder <msnyder@redhat.com>
5540
5541 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5542
b30590dc
KB
55432002-08-08 Kevin Buettner <kevinb@redhat.com>
5544
5545 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5546 assertion failure by returning early after a warning.
5547
498868ed
KB
55482002-08-08 Kevin Buettner <kevinb@redhat.com>
5549
5550 * mips-tdep.c (mips_find_saved_regs): Make static.
5551 (mips_frame_init_saved_regs): New function.
5552 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5553 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5554 (mips_find_saved_regs): Delete declaration.
5555
b2dd6311
GS
55562002-08-08 Grace Sainsbury <graces@redhat.com>
5557
3c3bea1c
GS
5558 * remote.c (remote_wait, remote_async_wait): Change
5559 thread_num from int to ULONGEST.
5560 (unpack_varlen_hex): Change result parameter from
5561 int * to ULONGEST *.
b2dd6311 5562
ea47855f
AC
55632002-08-08 Andrew Cagney <ac131313@redhat.com>
5564
5565 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5566 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5567 powerpc*-*-*.
5568 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5569
69db8bae
AC
55702002-08-08 Andrew Cagney <cagney@redhat.com>
5571
5572 * gcore.c (override_derive_stack_segment): Delete variable.
5573 (preempt_derive_stack_segment): Delete function.
5574 (derive_stack_segment): Delete function.
5575 (default_derive_stack_segment): Renamed to derive_stack_segment.
5576 (override_derive_heap_segment): Delete variable.
5577 (preempt_derive_heap_segment): Delete function.
5578 (derive_heap_segment): Delete function.
5579 (default_derive_heap_segment): Rename to derive_heap_segment.
5580
cb811fe7
MS
55812002-08-06 Michael Snyder <msnyder@redhat.com>
5582
5583 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5584 * mips-tdep.c (mips_EABI_use_struct_convention,
5585 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5586 New functions. (mips_use_struct_convention): Delete.
5587 (mips_gdbarch_init): set use_gdbarch_convention.
5588
8b389c40
MS
55892002-08-06 Michael Snyder <msnyder@redhat.com>
5590
5591 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5592 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5593 mips_o32_reg_struct_has_addr): New functions.
5594 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5595
5c27f28a
AC
55962002-08-07 Andrew Cagney <ac131313@redhat.com>
5597
5598 * regcache.c (pseudo_register): Delete function.
5599 (fetch_register): Delete function.
5600 (store_register): Delete function.
5601 (regcache_raw_read, legacy_read_register_gen): Use
5602 target_fetch_registers instead of fetch_register.
5603 (legacy_write_register_gen, regcache_raw_write): Use
5604 target_store_register instead of store_register.
5605 (write_register_bytes): Ditto.
5606
5607 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5608 (STORE_PSEUDO_REGISTER): Delete.
5609 * gdbarch.h, gdbarch.c: Regenerate.
5610
5b331675
CV
56112002-08-06 Corinna Vinschen <vinschen@redhat.com>
5612
5613 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5614 write dump file binary.
5615
6acdf5c7
MS
56162002-08-05 Michael Snyder <msnyder@redhat.com>
5617
5618 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5619 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5620 (mips_gdbarch_init): Set N32 target to be mips64.
5621
b2f01c35
KB
56222002-08-06 Kevin Buettner <kevinb@redhat.com>
5623
5624 * frame.c (find_saved_register): Break out of loop once saved
5625 register address is found. Don't mention sparc in loop comment
5626 anymore.
5627
63db5580
KB
56282002-08-06 Kevin Buettner <kevinb@redhat.com>
5629
5630 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5631 mips_default_saved_regsize to 8.
5632
5e34e75e
AC
56332002-08-06 Andrew Cagney <ac131313@redhat.com>
5634
5635 * gcore.c: Do not include <sys/procfs.h>.
5636 * Makefile.in (gcore.o): Update dependencies.
5637
eb4c54a2
AC
56382002-08-06 Andrew Cagney <cagney@redhat.com>
5639
5640 * configure.tgt: Make arc-*-* obsolete.
5641 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5642 * MAINTAINERS: Make arc-elf obsolete.
5643 * arc-tdep.c: Make file obsolete.
5644 * config/arc/arc.mt: Ditto.
5645 * config/arc/tm-arc.h: Ditto.
5646
ced15480
TR
56472002-08-05 Theodore A. Roth <troth@verinet.com>
5648
c1bab85b 5649 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5650
b4743822
AC
56512002-08-05 Andrew Cagney <ac131313@redhat.com>
5652
5653 * mcore-tdep.c (mcore_gdbarch_init): Use
5654 generic_unwind_get_saved_register instead of
5655 generic_get_saved_register.
5656 * v850-tdep.c (v850_gdbarch_init): Ditto.
5657 * frv-tdep.c (frv_gdbarch_init): Ditto.
5658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5659 * s390-tdep.c (s390_gdbarch_init): Ditto.
5660 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5661 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5662 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5663
3956d554
JB
56642002-08-05 Joel Brobecker <brobecker@gnat.com>
5665
5666 * objfiles.h: Add missing #include "symfile.h"
5667
5668 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5669
8249c0d6
AC
56702002-08-04 Andrew Cagney <ac131313@redhat.com>
5671
5672 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5673 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5674 of FIELD_BITSIZE.
5675
b9d14705
DJ
56762002-08-04 Daniel Jacobowitz <drow@mvista.com>
5677
5678 * NEWS: Cleanup and nitpick.
5679
dd73b9bb
AC
56802002-08-03 Andrew Cagney <ac131313@redhat.com>
5681
5682 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5683
043a27f8
AC
56842002-08-03 Andrew Cagney <ac131313@redhat.com>
5685
5686 * Makefile.in (gdbtk-bp.o): Update dependencies.
5687 (gdbtk-register.o): Ditto.
5688 (gdbtk-varobj.o): Ditto.
5689
46ce284d
AC
56902002-08-03 Andrew Cagney <cagney@redhat.com>
5691
5692 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5693 m68hc11_fetch_pseudo_register.
5694 (m68hc11_pseudo_register_write): Replace
5695 m68hc11_store_pseudo_register.
5696 (m68hc11_gdbarch_init): Update.
5697
b66d6d2e
AC
5698Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5699
5700 * gdbarch.sh: Include "gdb_string.h".
5701 * gdbarch.c: Regenerate.
5702
5703 * regcache.c: Include "gdb_string.h".
5704 * ax-general.c: Ditto.
5705 * varobj.c: Ditto.
5706 * std-regs.c: Ditto.
5707 * fbsd-proc.c: Ditto.
5708 * thread.c: Ditto.
5709
5710 * Makefile.in (regcache.o): Update dependencies.
5711 (thread.o, gdbarch.o): Ditto.
5712 (ax-general.o, gdbarch.o): Ditto.
5713 (varobj.o, std-regs.o): Ditto.
5714 (fbsd-proc.o): Specify dependencies.
5715
29e1842b
AC
57162002-08-02 Andrew Cagney <cagney@redhat.com>
5717
5718 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5719 regnum.
5720 (regcache_cooked_write): Ditto.
5721
68365089
AC
57222002-08-02 Andrew Cagney <ac131313@redhat.com>
5723
5724 * regcache.c (regcache_cooked_read): New function.
5725 (regcache_cooked_write): New function.
5726 (read_register_gen): Rewrite using regcache_cooked_read.
5727 (write_register_gen): Rewrite using regcache_cooked_write.
5728
5729 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5730 Declare.
5731
d8124050
AC
57322002-08-02 Andrew Cagney <cagney@redhat.com>
5733
5734 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5735 Replace the architecture methods register_read and register_write.
5736 * gdbarch.h, gdbarch.c: Regenerate.
5737 * regcache.c (init_regcache_descr): Update.
5738 (read_register_gen): Update.
5739 (write_register_gen): Update.
5740 (supply_register): Update comment.
5741
5742 * sh-tdep.c (sh_gdbarch_init): Update.
5743 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5744 `regcache' and `gdbarch' parameters. Make `buffer' a void
5745 pointer. Update code.
5746 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5747 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5748 void pointer. Update code.
5749 (sh64_register_write): Delete.
5750 (sh4_register_read): Delete.
5751 (sh64_register_read): Delete.
5752 (sh4_register_write): Delete.
5753 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5754 void pointer, `to' parameter a void pointer.
5755 (sh_sh64_register_convert_to_raw): Ditto.
5756
a6425924
KB
57572002-08-01 Kevin Buettner <kevinb@redhat.com>
5758
5759 * mips-tdep.c (mips_register_virtual_type): Use architecture
5760 invariant return values.
5761
ff5922b5
AC
57622002-08-01 Andrew Cagney <cagney@redhat.com>
5763
5764 * linux-proc.c: Include "gdb_string.h".
5765 * Makefile.in (linux-proc.o): Update dependency list.
5766
32a6503c
KB
57672002-08-01 Kevin Buettner <kevinb@redhat.com>
5768
5769 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5770 comment.
5771
ccaa32c7
GS
57722002-08-01 Grace Sainsbury <graces@redhat.com>
5773
5774 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5775 to_insert_watchpoint, to_remove_watchpoint,
5776 to_stopped_by_watchpoint, to_stopped_data_address,
5777 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5778 target vecctor. Define their corresponding macros so they call
5779 them.
5780
5781 * target.c: Add default and debug versions of for
5782 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5783 to_insert_watchpoint, to_remove_watchpoint,
5784 to_stopped_by_watchpoint, to_stopped_data_address,
5785 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5786
78fde5f8
KB
57872002-08-01 Kevin Buettner <kevinb@redhat.com>
5788
5789 * mips-tdep.c (mips_register_virtual_type): New function.
5790 (mips_gdbarch_init): Register mips_register_virtual_type()
5791 with gdbarch machinery.
5792 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5793 this file instead of tm-bigmips.h.
5794 (MIPS_REGSIZE): Delete this macro.
5795 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5796 multiarch version in mips-tdep.c will be found.
5797
db034ac5
AC
57982002-08-01 Andrew Cagney <cagney@redhat.com>
5799
5800 * NEWS: Menion that CHILL has been made obsolete.
5801
5802 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5803 * stabsread.c (read_range_type): Ditto.
5804 * gdbtypes.h: Ditto.
5805 * language.c (binop_type_check): Ditto.
5806 (binop_result_type): Ditto.
5807 (integral_type): Ditto.
5808 (character_type): Ditto.
5809 (string_type): Ditto.
5810 (boolean_type): Ditto.
5811 (structured_type): Ditto.
5812 (lang_bool_type): Ditto.
5813 (binop_type_check): Ditto.
5814 * language.h (_LANG_chill): Ditto.
5815 * dwarfread.c (set_cu_language): Ditto.
5816 * dwarfread.c (CHILL_PRODUCER): Ditto.
5817 * dwarfread.c (handle_producer): Ditto.
5818 * expression.h (enum exp_opcode): Ditto.
5819 * eval.c: Ditto for comments.
5820 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5821 * expprint.c (print_subexp): Ditto.
5822 (print_subexp): Ditto.
5823 * valops.c (value_cast): Ditto.
5824 (search_struct_field): Ditto.
5825 * value.h (COERCE_VARYING_ARRAY): Ditto.
5826 * symfile.c (init_filename_language_table): Ditto.
5827 (add_psymbol_with_dem_name_to_list): Ditto.
5828 * valarith.c (value_binop): Ditto.
5829 (value_neg): Ditto.
5830 * valops.c (value_slice): Ditto.
5831 * symtab.h (union language_specific): Ditto.
5832 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5833 (SYMBOL_DEMANGLED_NAME): Ditto.
5834 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5835 * defs.h (enum language): Ditto.
5836 * symtab.c (got_symtab): Ditto.
5837 * utils.c (fprintf_symbol_filtered): Ditto.
5838
5839 * ch-typeprint.c: Make file obsolete.
5840 * ch-valprint.c: Make file obsolete.
5841 * ch-lang.h: Make file obsolete.
5842 * ch-exp.c: Make file obsolete.
5843 * ch-lang.c: Make file obsolete.
5844
5845 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5846 CHILL_LIB.
5847 (TARGET_FLAGS_TO_PASS): Ditto.
5848 (CHILLFLAGS): Obsolete.
5849 (CHILL): Obsolete.
5850 (CHILL_FOR_TARGET): Obsolete.
5851 (CHILL_LIB): Obsolete.
5852 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5853 ch-valprint.c.
5854 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5855 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5856 ch-lang.o.
5857 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5858 targets.
5859
8aaf0b47
JB
58602002-07-31 Joel Brobecker <brobecker@gnat.com>
5861
5862 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5863 This does not change anything at the moment, but will be helpful
5864 later when full Ada support is integrated.
5865
f3a7b3a5
KB
58662002-07-31 Kevin Buettner <kevinb@redhat.com>
5867
5868 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5869 help message.
5870
fb850278
KB
58712002-07-31 Kevin Buettner <kevinb@redhat.com>
5872
5873 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5874 and save it in a local variable. Use variable in later test.
5875
e3bddbfa
KB
58762002-07-31 Kevin Buettner <kevinb@redhat.com>
5877
5878 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5879 test. (Thanks to Daniel Jacobowitz.)
5880
28d169de
KB
58812002-07-31 Kevin Buettner <kevinb@redhat.com>
5882
5883 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5884 (mips_abi_strings): Add "n64".
5885 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5886
7fe7e44e
KB
58872002-07-31 Kevin Buettner <kevinb@redhat.com>
5888
5889 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5890 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5891
c6caf090
KB
58922002-07-31 Kevin Buettner <kevinb@redhat.com>
5893
5894 * utils.c (host_pointer_to_address, address_to_host_pointer):
5895 Use gdb_assert() instead of explicit call to internal_error().
5896
c41669e0
KB
58972002-07-30 Kevin Buettner <kevinb@redhat.com>
5898
5899 * Makefile.in (rs6000-nat.o): Update dependencies.
5900
5901 From Nicholas Duffek:
5902 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5903 (aix-thread.o): New rule.
5904 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5905 * config/powerpc/aix432.mh: New file.
5906
2fda4977
DJ
59072002-07-30 Daniel Jacobowitz <drow@mvista.com>
5908
5909 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5910 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5911 (fetch_core_registers, ppc_linux_supply_gregset)
5912 (ppc_linux_supply_fpregset): New functions.
5913 (ppc_linux_regset_core_fns): New.
5914 (_initialize_ppc_linux_tdep): Call add_core_fns.
5915 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5916 and ppc_linux_supply_gregset.
5917 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5918 (supply_fpregset): Call ppc_linux_supply_fpregset.
5919 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5920 corelow.o.
5921 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5922
729051e6
DJ
59232002-07-30 Daniel Jacobowitz <drow@mvista.com>
5924
5925 * symtab.c (lookup_symbol): Demangle before lowercasing.
5926
5f8a3188
AC
59272002-07-30 Andrew Cagney <ac131313@redhat.com>
5928
5929 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5930 declaration.
5931 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5932 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5933 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5934 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5935 "gdb_string.h".
5936 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5937 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5938 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5939 (avr-tdep.o, mon960-rom.o): Ditto.
5940 (aout_stabs_gnu_h): Define.
5941 (symtab_h): Remove $(gdb_obstack_h).
5942
67f07146
JB
59432002-07-30 Jim Blandy <jimb@redhat.com>
5944
5945 Patch from David Carlton <carlton@math.stanford.edu>:
5946 * gdbinit.in: Move the `dir' commands that add GDB's own source
5947 directory to the search path to the end, so that the `gdb' source
5948 directory will be searched first.
5949
04ea0df1
AC
59502002-07-29 Andrew Cagney <ac131313@redhat.com>
5951
5952 * gdb_obstack.h: New file.
5953 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5954 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5955 * objfiles.h: Include "gdb_obstack.h".
5956 * Makefile.in (gdb_obstack_h): Define.
5957 (symtab_h): Add $(gdb_obstack_h).
5958 (objfiles_h): Add $(gdb_obstack_h).
5959
5960 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5961 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5962 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5963 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5964 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5965 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5966 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5967 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5968
5969 * Makefile.in (bcache.o): Update dependencies.
5970 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5971 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5972 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5973 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5974 (stabsread.o, symfile.o, symmisc.o): Ditto.
5975 (symtab.o, typeprint.o, macroexp.o): Ditto.
5976 (macrotab.o, mdebugread.o): Ditto.
5977 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5978 (coff_ecoff_h, aout_aout64_h): Define.
5979 (aout_stabs_gnu_h, libaout_h): Define.
5980
d138e37a
AC
59812002-07-29 Andrew Cagney <cagney@redhat.com>
5982
5983 * regcache.c (struct regcache_descr): Rename nr_registers to
5984 nr_cooked_registers. Revise comments describing the structure
5985 member fields.
5986 (init_regcache_descr): Update.
5987 (init_legacy_regcache_descr): Update.
5988 (read_register_gen, write_register_gen): When a cooked register in
5989 the raw register range, directly access the value from the raw
5990 register cache.
5991
460e6ec3
AC
59922002-07-29 Andrew Cagney <ac131313@redhat.com>
5993
5994 * z8k-tdep.c: Do not include "obstack.h".
5995 * h8300-tdep.c, h8500-tdep.c: Ditto.
5996 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5997 * valprint.c, v850-tdep.c: Ditto.
5998 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5999 * mn10200-tdep.c: Ditto.
6000
6001 * Makefile.in (z8k-tdep.o): Update dependencies.
6002 (m68hc11-tdep.o, valprint.o): Ditto.
6003 (v850-tdep.o, d10v-tdep.o): Ditto.
6004 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6005 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6006 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6007 (sh_opc_h, gdb_sim_sh_h): Define.
6008 (elf_sh_h, elf_bfd_h): Define.
6009 (opcode_m68hc11_h): Define.
6010 (OPCODES_SRC, OPCODES_DIR): define.
6011 (OPCODES): Use $(OPCODES_DIR).
6012 (gdb_sim_d10v_h): Rename sim_d10v_h.
6013 (gdb_sim_arm_h): Rename sim_arm_h.
6014
790c9cf0
KB
60152002-07-26 Kevin Buettner <kevinb@redhat.com>
6016
6017 * utils.c (host_pointer_to_address, address_to_host_pointer):
6018 Change internal_error() message to indicate function responsible
6019 for the error.
6020
9647fa49
KB
60212002-07-26 Kevin Buettner <kevinb@redhat.com>
6022
6023 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6024 calls to local_hex_string_custom().
6025
dabbe2c0
KB
60262002-07-26 Kevin Buettner <kevinb@redhat.com>
6027
6028 * irix5-nat.c: Move IRIX shared library support from here...
6029 * solib-irix.c: ...to here. Revised substantially to work with
6030 generic solib framework.
6031
b96d0a4e
KB
6032 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6033 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6034 * mips-irix-tdep.c: New file.
6035
313fb2f6
KB
6036 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6037 (mips-irix-tdep.o, solib-irix.o): New rules.
6038 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6039 solib-irix.o.
6040 * config/mips/irix6.mt (TDEPFILES): Likewise.
6041 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6042
ab2eaf26
KB
60432002-07-26 Kevin Buettner <kevinb@redhat.com>
6044
177e4768 6045 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6046 disabled (via ``#if 0'') includes.
6047
7244546a
KB
60482002-07-26 Kevin Buettner <kevinb@redhat.com>
6049
6050 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6051 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6052 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6053 Add support for the fpscr register.
6054 * rs6000-nat.c (regmap, fetch_inferior_registers)
6055 (store_inferior_registers, fetch_core_registers): Likewise.
6056
dd7be90a
KB
60572002-07-26 Kevin Buettner <kevinb@redhat.com>
6058
6059 * rs6000-nat.c (language.h): Include.
6060 (special_regs): Delete this array.
6061 (regmap): New function.
6062 (fetch_register, store_register): Use regmap() to map gdb
6063 register numbers to ptrace register numbers. Also, use
6064 outputs from regmap() to make decisions regarding type of
6065 ptrace() call to make. In particular, don't compare against
6066 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6067 (fetch_inferior_registers, store_inferior_registers): Where
6068 possible, obtain register numbers from tdep struct. Don't
6069 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6070 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6071 (LAST_UISA_SP_REGNUM): Delete.
6072
11bf77db
KB
60732002-07-25 Kevin Buettner <kevinb@redhat.com>
6074
6075 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6076 (fetch_registers, store_register, fetch_core_registers): Don't
6077 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6078 regcache_collect() as appropriate.
6079 (find_toc_address): Format hex address with local_hex_string().
6080
06afebeb
AC
60812002-07-25 Andrew Cagney <ac131313@redhat.com>
6082
6083 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6084 bfd/elf32-frv.c.
6085
8c554d79
TT
60862002-07-24 Tom Tromey <tromey@redhat.com>
6087
6088 * jv-exp.y: Marked all strings with _().
6089 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6090 internal_error.
6091 (MethodInvocation, CastExpression, parse_number, yyerror,
6092 java_type_from_name, push_expression_name, yylex): Typo fixes.
6093
e4c242d9
DJ
60942002-07-24 Daniel Jacobowitz <drow@mvista.com>
6095
6096 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6097 (tee_file_flush, tee_file_write, tee_file_fputs)
6098 (tee_file_isatty): New.
6099 * ui-file.h (tee_file_new): Add prototype.
6100
ebf56fd3
AS
61012002-07-24 Aidan Skinner <aidan@velvet.net>
6102
6103 * ada-lang.c: Change k&r style function definitions to prototyped
6104 form.
6105 * ada-typeprint.c: Change k&r style function definitions to prototyped
6106 form.
6107 * ada-valprint.c: Change k&r style function definitions to prototyped
6108 form.
6109
7fb623f7
AC
61102002-07-24 Andrew Cagney <cagney@redhat.com>
6111
6112 * README: Remove reference to remote-bug.
6113 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6114 remote-bug.c.
6115 (m88k-nat.o): Delete rule.
6116 (m88k-tdep.o): Delete rule.
6117 (remote-bug.o): Delete rule.
6118 * MAINTAINERS: Mark as obsolete.
6119 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6120 * m88k-tdep.c: Make file obsolete.
6121 * config/m88k/m88k.mh: Ditto.
6122 * config/m88k/delta88v4.mh: Ditto.
6123 * config/m88k/delta88v4.mt: Ditto.
6124 * config/m88k/delta88.mt: Ditto.
6125 * config/m88k/delta88.mh: Ditto.
6126 * remote-bug.c: Ditto.
6127 * config/m88k/tm-delta88.h: Ditto.
6128 * config/m88k/nm-delta88v4.h: Ditto.
6129 * config/m88k/xm-delta88.h: Ditto.
6130 * config/m88k/xm-dgux.h: Ditto.
6131 * config/m88k/tm-m88k.h: Ditto.
6132 * config/m88k/nm-m88k.h: Ditto.
6133 * config/m88k/tm-delta88v4.h: Ditto.
6134 * m88k-nat.c: Ditto.
6135 * cxux-nat.c: Ditto.
6136 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6137 and m88*-*-* obsolete.
6138 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6139 m88*-*-* obsolete.
6140
37611a2b
AC
61412002-07-24 Andrew Cagney <cagney@redhat.com>
6142
6143 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6144 constant. Same for local pointer variables.
6145 (extract_signed_integer): Ditto.
6146 * defs.h (extract_unsigned_integer): Update.
6147 (extract_signed_integer): Update.
6148
1aaa5f99
AC
61492002-07-24 Andrew Cagney <cagney@redhat.com>
6150
6151 * regcache.c (regcache_raw_write): Change buf parameter to a
6152 constant void pointer.
6153 (regcache_raw_read): Change buf parameter to a void pointer.
6154 (legacy_write_register_gen): Change myaddr parameter a constant
6155 void pointer.
6156 (supply_register): Change val parameter to a const void pointer.
6157 * regcache.h (regcache_raw_write): Update declaration.
6158 (regcache_raw_read): Update declaration.
6159 (supply_register): Update declaration.
6160
b4f5539f
TT
61612002-07-24 Tom Tromey <tromey@redhat.com>
6162
6163 * defs.h (gdb_readline_wrapper): Declare.
6164 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6165 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6166 * top.c (gdb_readline_wrapper): New function.
6167 (command_line_input): Use it.
6168
0818c12a
AC
61692002-07-24 Andrew Cagney <cagney@redhat.com>
6170
6171 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6172 regcache_read and regcache_write.
6173 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6174 * regcache.c: Update.
6175 * sh-tdep.c (sh64_push_arguments): Update comment.
6176 (sh_pseudo_register_read): Update.
6177 (sh_pseudo_register_write): Update.
6178 (sh4_register_read): Update.
6179 (sh4_register_write): Update.
6180 (sh64_pseudo_register_read): Update.
6181 (sh64_pseudo_register_write): Update.
6182 (sh64_register_read): Update.
6183 (sh64_register_write): Update.
6184 * i386-tdep.c (i386_extract_return_value): Update.
6185 (i386_extract_struct_value_address): Update.
6186 (i386_extract_return_value): Update.
6187 * blockframe.c (generic_read_register_dummy): Update.
6188 (generic_call_dummy_register_unwind): Update
6189 * infrun.c (write_inferior_status_register): Update.
6190
f7321c06
JB
61912002-07-23 Jim Blandy <jimb@redhat.com>
6192
6193 * parser-defs.h (expression_context_pc): Make this extern.
6194 (Thanks to Michael Snyder.)
6195
2037aebb
AC
61962002-07-23 Andrew Cagney <ac131313@redhat.com>
6197
6198 GDB 5.2.1 released from 5.2 branch.
6199 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6200 * README: Update to mention 5.2.1.
6201
66504d44
MS
62022002-07-23 Mark Salter <msalter@redhat.com>
6203
6204 * remote.c (remote_read_bytes): Fix check for error.
6205
27bae383
KB
62062002-07-22 Kevin Buettner <kevinb@redhat.com>
6207
6208 * aix-thread.c (language.h): Include.
6209 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6210 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6211 Print newlines at end of debug messages.
6212 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6213 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6214
62152002-07-22 Kevin Buettner <kevinb@redhat.com>
6216
6217 * aix-thread.c (ppc-tdep.h): Include.
6218 (special_register_p): New function.
6219 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6220 (store_regs_user_thread): Use register number information from
6221 gdbarch_tdep struct instead of hardcoded offsets relative to
6222 FIRST_UISA_SP_REGNUM.
6223 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6224 special_register_p() instead of using FPLAST_REGNUM and
6225 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6226 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6227 will be MQ's register number.
6228
62292002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6230
6231 * aix-thread.c (ops): Rename to aix_thread_ops.
6232 (base_ops): Rename to base_target.
6233 (ops_attach): Rename to aix_thread_attach.
6234 (ops_detach): Rename to aix_thread_detach.
6235 (ops_resume): Rename to aix_thread_detach.
6236 (ops_wait): Rename to aix_thread_wait.
6237 (ops_kill): Rename to aix_thread_kill.
6238 (init_ops): Rename to init_aix_thread_ops.
6239 (ops_fetch_register): Rename to aix_thread_fetch_register.
6240 (ops_store_register): Rename to aix_thread_store_register.
6241 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6242 (ops_thread_alive): Rename to aix_thread_thread_alive.
6243 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6244 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6245 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6246 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6247 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6248 (store_regs_lib): Rename to store_regs_user_thread.
6249 (store_regs_kern): Rename to store_regs_kernel_thread.
6250
27bae383 62512002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6252
6253 * aix-thread.c (ops_prepare_to_store): Eliminate.
6254 (init_ops): Don't initialize ops.prepare_to_store.
6255 (store_regs_kern): Pre-fetch register buffers from child,
6256 because some registers may not be in the cache. Copy
6257 regs from register cache only if they are cached.
6258 (store_regs_lib): Copy regs from register cache only
6259 if they are cached.
6260 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6261 fill_gprs64): Ditto.
6262
61c5da0b
KB
62632002-07-22 Kevin Buettner <kevinb@redhat.com>
6264
6265 * aix-thread.c (gdb_assert.h): Include.
6266 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6267 register sizes (from register cache) match size of buffer holding
6268 register data.
6269 (fill_sprs32): Change parameter types to match those in the ptrace()
6270 buffer.
6271 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6272 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6273
62742002-07-22 Michael Snyder <msnyder@redhat.com>
6275
6276 * aix-thread.c (supply_sprs64): Cosmetic change.
6277 (supply_sprs32): Cosmetic change.
6278 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6279 (fill_sprs64): Use regcache_collect instead of read_register.
6280 (store_regs_lib): Use regcache_collect instead of
6281 read_register. Use fill_sprs32 instead of fill_sprs64,
6282 if debugging a 32-bit architecture.
6283 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6284 out of the register cache, instead of passing a pointer into
6285 the register cache directly to ptrace. Use regcache_collect
6286 insteaad of read_register.
6287 (ops_prepare_to_store): Use target_read_registers instead
6288 of read_register_bytes.
6289
36479eb1
AS
62902002-07-20 Aidan Skinner <aidan@velvet.net>
6291
6292 * MAINTAINERS: Add self under write after approval.
6293
80ae6ee2
AS
62942002-07-20 Aidan Skinner <aidan@velvet.net>
6295
6296 * ada-tasks.c: Change k&r style function definitions to prototyped
6297 form.
6298
8a8ab2b9
AC
62992002-07-19 Andrew Cagney <ac131313@redhat.com>
6300
6301 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6302 * x86-64-tdep.c: Include "objfiles.h".
6303 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6304 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6305
fb16b900
ML
63062002-07-17 Michal Ludvig <michal@suse.cz>
6307
6308 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6309 (update_context): Initialise cfa variable.
6310
0fe7bf7b
MS
63112002-07-17 Michael Snyder <msnyder@redhat.com>
6312
6313 * aix-thread.c: Shorten some long lines.
6314 Bring comments into line with code spec.
6315
488f131b
JB
63162002-07-18 Joel Brobecker <brobecker@gnat.com>
6317
6318 * infrun.c: Re-indent using gdb_indent.sh.
6319
46c415d2
JB
63202002-07-18 Joel Brobecker <brobecker@gnat.com>
6321
6322 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6323 Leave the indentation temporarily untouched, to minimize the diffs.
6324
cdecafbe
EZ
63252002-07-18 Elena Zannoni <ezannoni@redhat.com>
6326
6327 * stabsread.c: Make os9k sections of the code obsolete,
6328 for real this time.
6329 * stabsread.h: Make os9k sections of the code obsolete.
6330
7b6aa020
ML
63312002-07-18 Michal Ludvig <mludvig@suse.cz>
6332
09ec9b38
ML
6333 * linux-low.c (regsets_store_inferior_registers): Add free()
6334 at the end of a loop to prevent memory leak.
6335 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6336 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6337 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6338 line a comment.
4894ac5d 6339 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6340
233282cd
JB
63412002-07-17 Jim Blandy <jimb@redhat.com>
6342
6343 * macrocmd.c (info_macro_command): Remove newline from error
6344 message.
6345
7b6aa020 63462002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6347
6348 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6349 (sh_gdbarch_init): Use it for sh-dsp.
6350
f7ef9339
KB
63512002-07-16 Kevin Buettner <kevinb@redhat.com>
6352
6353 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6354 64-bit DWARF2 format.
6355
8dd72958
JB
63562002-07-16 Joel Brobecker <brobecker@gnat.com>
6357
6358 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6359 <sys/proc.h> when not available.
6360
a99a9e1b
AC
63612002-07-16 Andrew Cagney <ac131313@redhat.com>
6362
6363 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6364 * stabsread.c: Make os9k sections of the code obsolete.
6365 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6366 * config/i386/i386os9k.mt: Make file obsolete.
6367 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6368 (COMMON_OBS): Remove os9kread.o
6369 (SFILES): Remove os9kread.c.
6370 (os9kread.o, remote-os9k.o): Make target obsolete.
6371 * remote-os9k.c: Make file obsolete.
6372 * os9kread.c: Make file obsolete.
6373 * Makefile.in
6374
7a3085c1
AC
63752002-07-16 Andrew Cagney <ac131313@redhat.com>
6376
6377 * NEWS: Mention that the FR30 has been made obsolete.
6378 * fr30-tdep.c: Make file obsolete.
6379 * config/fr30/tm-fr30.h: Ditto.
6380 * config/fr30/fr30.mt: Ditto.
6381 * configure.tgt: Make fr30-*-elf obsolete.
6382 * MAINTAINERS: Make fr30-elf obsolete.
6383
28a93f5a
PM
63842002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6385
6386 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6387 found is not inside a section.
6388
be006b8b
KB
63892002-07-15 Kevin Buettner <kevinb@redhat.com>
6390
6391 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6392 strerror().
6393 (pdc_realloc): Use xrealloc() instead of realloc().
6394
14fa3751
KB
63952002-07-15 Kevin Buettner <kevinb@redhat.com>
6396
6397 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6398 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6399 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6400 macros.
6401
42cc437f
KB
64022002-07-15 Kevin Buettner <kevinb@redhat.com>
6403
6404 * aix-thread.c (ptrace_check): Eliminate goto.
6405 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6406 problem.
6407
8e2c28d4
KB
64082002-07-15 Kevin Buettner <kevinb@redhat.com>
6409
6410 * aix-thread.c (gdbcmd.h): Include.
6411 (DEBUG, DBG, DBG2, dbg): Eliminate.
6412 (debug_aix_thread): New static global.
6413 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6414 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6415 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6416 invocations to DBG and DBG2 macros to test against
6417 ``debug_aix_thread'' and call fprintf_unfiltered().
6418 (_initialize_aix_thread): Add new command "set debug aix-thread".
6419
30413464
AC
64202002-07-15 Andrew Cagney <ac131313@redhat.com>
6421
6422 From Gerhard Tonn <TON@de.ibm.com>:
6423 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6424 instead of supply_register.
6425
7c43edc1
AC
64262002-07-15 Andrew Cagney <ac131313@redhat.com>
6427
6428 * dwarf2cfi.c: Include "gdb_assert.h".
6429 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6430 non-NULL.
6431 (update_context): Do not use __func__. Add missing ``break''.
6432 (update_context): Do not use __func__.
6433
9364a0ef
EZ
64342002-07-15 Elena Zannoni <ezannoni@redhat.com>
6435
6436 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6437 and its setting. Set gdbarch instruction printing functions
6438 directly. For non-rs6000 case use new function
6439 gdb_print_insn_powerpc.
6440 (gdb_print_insn_powerpc): New function.
6441
3fbeef0b
AC
64422002-07-13 Andrew Cagney <ac131313@redhat.com>
6443
92eb23c5 6444 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6445 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6446 * configure.tgt: Mark d30v-*-* as obsolete.
6447 * d30v-tdep.c: Mark file as obsolete.
6448 * config/d30v/d30v.mt: Ditto.
6449 * config/d30v/tm-d30v.h: Ditto.
6450
aacb1f0a
AS
64512002-07-13 Aidan Skinner <aidan@velvet.net>
6452
6453 * ada-tasks.c (add_task_entry): replace calls to
6454 malloc() with xmalloc
6455 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6456
6457 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6458 ada_finish_decode_line_1, all_sals_for_line
6459 ada_breakpoint_rewrite): replace calls to free() with xfree()
6460
c11d79f2
KB
64612002-07-12 Kevin Buettner <kevinb@redhat.com>
6462
6463 From Nicholas Duffek (with minor changes by Martin Hunt,
6464 Louis Hamilton, and Kevin Buettner):
6465 * aix-thread.c: New file.
6466
8e19ed76
PS
64672002-07-12 Petr Sorfa <petrs@caldera.com>
6468
6469 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6470 complaint for invalid attribute class or form.
6471 (read_func_scope): DW_AT_frame_base
6472 better handling of DW_AT_block*.
6473 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6474 better handling of DW_AT_block*.
6475 (read_common_block): DW_AT_location
6476 better handling of DW_AT_block*.
6477 (read_partial_die): DW_AT_location better handling
6478 of DW_AT_block*.
6479 (new_symbol): DW_AT_external better handling of
6480 DW_AT_block*. Proper initialization of variable
6481 "addr".
6482 (attr_form_is_block): New function that returns true
6483 if the attribute's form is of DW_FORM_block*.
6484
295401f7
DJ
64852002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6486
6487 * valops.c (find_method_list): Remove comment about
6488 removed STATIC_MEMFUNCP argument.
6489 (value_find_oload_method_list): Likewise.
6490
e42dc924
KB
64912002-07-12 Kevin Buettner <kevinb@redhat.com>
6492
6493 From Nicholas Duffek:
6494 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6495 target_new_objfile_hook.
6496
6904b546
KB
64972002-07-12 Kevin Buettner <kevinb@redhat.com>
6498
6499 From Nicholas Duffek:
6500 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6501 csect.
6502
53fe9346
AC
65032002-07-12 Andrew Cagney <cagney@redhat.com>
6504
6505 * MAINTAINERS: Mention --enable-sim-build-warnings.
6506 (m68hc11-elf): Disable sim build warnings.
6507 (m32r-elf): Mark as broken obsolete candidate.
6508 (x86_64-linux-gnu): Mark as buildable with -Werror.
6509 (arm-elf): Change -w to ``,'' which enables warnings but not
6510 -Werror.
6511
af5f3db6
AC
65122002-07-12 Andrew Cagney <ac131313@redhat.com>
6513
6514 * bcache.h: Update copyright.
6515 (struct bstring, struct bcache): Move definition to "bcache.c".
6516 Replaced by opaque declaration.
6517 (bcache_xfree): Replace free_bcache.
6518 (bcache_xmalloc, bcache_memory_used): Declare.
6519
6520 * bcache.c: Update copyright.
6521 (struct bstring, struct bcache): Moved to here from "bcache.h".
6522 Update comments.
6523 (bcache_xmalloc, bcache_memory_used): New functions.
6524 (bcache_xfree): Replace function free_bcache.
6525
6526 * Makefile.in (objfiles.o): Add $(bcache_h).
6527 (objfiles_h): Remove $(bcache_h).
6528 (symfile.o): Add $(bcache_h).
6529
6530 * symmisc.c: Update copyright.
6531 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6532 (print_objfile_statistics): Use bcache_memory_used.
6533
6534 * symfile.c: Include "bcache.h".
6535 (reread_symbols): Use bcache_xfree.
6536 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6537 (add_psymbol_to_list): Pass psymbol_cache by value.
6538 (add_psymbol_with_dem_name_to_list): Ditto.
6539
6540 * objfiles.h: Update copyright.
6541 (struct bcache): Declare opaque. Do not include "bcache.h".
6542 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6543 bcache'' pointers.
6544 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6545
6546 * objfiles.c: Include "bcache.h". Update copyright.
6547 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6548 macro_cache.
6549 (free_objfile): Use bcache_xfree.
6550
444199e7
GS
65512002-07-11 Grace Sainsbury <graces@redhat.com>
6552
6553 * monitor.c (monitor_fetch_register): Make name a constant.
6554 (monitor_store_register): Same.
6555
261397f8
DJ
65562002-07-11 Daniel Jacobowitz <drow@mvista.com>
6557
6558 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6559 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6560 (finish_block) For non-function blocks, hash the symbol table. For
6561 function blocks, mark the symbol table as unhashed.
6562 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6563 (msymbol_hash_iw): Likewise.
6564 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6565 value.
6566 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6567 (lookup_minimal_symbol): Likewise for both.
6568 * symtab.h (struct block): Add `hashtable' flag. Comment the
6569 hashtable.
6570 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6571 (ALL_BLOCK_SYMBOLS): Update.
6572 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6573 (struct symbol): Add `hash_next' pointer.
6574 * symtab.c (lookup_block_symbol): Search using the hash table when
6575 possible.
6576 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6577 (search_symbols, find_addr_symbol): Likewise.
6578
6579 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6580 (read_dst_symtab): Likewise.
6581 * jv-lang.c (get_java_class_symtab): Likewise.
6582 * mdebugread.c: Include "gdb_assert.h".
6583 (shrink_block): Assert that the block being modified is not hashed.
6584 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6585 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6586 symbols.
6587 (dump_symtab): Recognize hashed blocks.
6588 * printcmd.c (print_frame_args): Assert that function blocks do not
6589 have hashed symbol tables.
6590 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6591 (fill_in_ada_prototype, debug_print_block): Likewise.
6592 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6593
6f0eaa01
CV
65942002-07-11 Corinna Vinschen <vinschen@redhat.com>
6595
6596 * stack.c (print_frame): Use result of frame_address_in_block()
6597 instead of fi->pc when evaluating symbols.
6598 (backtrace_command_1): Ditto.
6599
a208b0cb
AC
66002002-07-11 Andrew Cagney <cagney@redhat.com>
6601
6602 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6603 Make static.
6604
6605 * arm-tdep.c (arm_register_name): Make return type constant.
6606
a6b6b089
AC
66072002-07-10 Andrew Cagney <ac131313@redhat.com>
6608
5ae5f592
AC
6609 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6610 prototype.
6611 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6612 * s390-tdep.c (s390_fp_regnum): Ditto.
6613 (s390_read_fp): Ditto.
6614 (s390_pop_frame): Ditto.
6615 (_initialize_s390_tdep): Ditto.
6616 * remote.c (get_remote_state): Ditto.
6617 * procfs.c (mappingflags): Ditto.
6618 * memattr.c (_initialize_mem): Ditto.
6619 * mcore-tdep.c (mcore_pop_frame): Ditto.
6620 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6621 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6622 * language.c (set_case_str): Ditto.
6623 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6624 * frv-tdep.c (new_variant): Ditto.
6625 (frv_stopped_data_address): Ditto.
6626 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6627 (context_alloc): Ditto.
6628 (frame_state_alloc): Ditto.
6629 (unwind_tmp_obstack_init): Ditto.
6630 (unwind_tmp_obstack_free): Ditto.
6631 (cfi_read_fp): Ditto.
6632 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6633 (cris_pop_frame): Ditto.
6634 * c-lang.c (scanning_macro_expansion): Ditto.
6635 (finished_macro_expansion): Ditto.
6636 (c_preprocess_and_parse): Ditto.
6637 * gdbarch.sh: Ditto.
6638 * gdbarch.h, gdbarch.c: Regenerate.
6639 * config/mn10200/tm-mn10200.h: Adjust indentation.
6640 * target.c: Adjust indentation.
6641 * symtab.h: Adjust indentation.
6642 * stabsread.h: Adjust indentation.
6643 * remote-es.c: Adjust indentation.
6644 * os9kread.c: Adjust indentation.
6645
66462002-07-10 Andrew Cagney <ac131313@redhat.com>
6647
a6b6b089
AC
6648 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6649 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6650
a1789893
GS
66512002-07-10 Grace Sainsbury <graces@redhat.com>
6652
6653 * NEWS: Mention m68k, mcore multi-arching.
6654 * MAINTAINERS: Change status of m68k, mcore to reflect
6655 multi-arching.
6656
02f0d45d
DJ
66572002-07-10 Daniel Jacobowitz <drow@mvista.com>
6658
6659 * valops.c (find_overload_match): Free oload_syms.
6660
f15f768e
JB
66612002-07-09 Joel Brobecker <brobecker@gnat.com>
6662
6663 Define HAVE_SYS_PROC_H if sys/proc.h exists
6664 * configure.in: Add check for sys/proc.h
6665 * config.in: Regenerate.
6666 * configure: Regenerate.
6667
902a7139
GS
66682002-07-09 Grace Sainsbury <graces@redhat.com>
6669
6670 * config/m68k/tm-m68k.h: Remove macros wrapped in
6671 #if !GDB_MULTI_ARCH.
6672
a534e424
AC
66732002-07-08 Andrew Cagney <ac131313@redhat.com>
6674
6675 * config.in, configure: Regenerate.
6676
9b94f7bf
MK
66772002-07-08 Mark Kettenis <kettenis@gnu.org>
6678
6679 * dwarf2cfi.c: Include "gcore.h".
6680 (execute_stack_op): Fix implementation of the
6681 DW_OP_deref and DW_OP_deref_size operators by letting do their
6682 lookup in the target.
6683
1d34db41
MK
66842002-07-07 Mark Kettenis <kettenis@gnu.org>
6685
6686 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6687 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6688 tdep->sc_sp_offset.
6689
79d5b63a
DJ
66902002-07-05 Daniel Jacobowitz <drow@mvista.com>
6691
6692 Fix PR gdb/595, gdb/602
6693 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6694 Don't call value_cast, just read the vtable pointer; update comments
6695 to match.
6696
3bb912e8
GS
66972002-07-05 Grace Sainsbury <graces@redhat.com>
6698
6699 * config/mcore/tm-mcore.h: Remove file.
6700 * config/mcore/mcore.mt: Remove definition of TM_FILE
6701 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6702
ca39387d
MK
67032002-07-05 Mark Kettenis <kettenis@gnu.org>
6704
6705 * i386bsd-tdep.c: Include "gdb_string.h".
6706
efdc1108
GS
67072002-07-04 Grace Sainsbury <graces@redhat.com>
6708
6709 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6710 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6711 mcore-tdep.
6712 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6713 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6714 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6715 (RETVAL_REGNUM): Move macros from tm-mcore.h
6716 (mcore_reg_struct_has_addr): New function.
6717 (mcore_gdbarch_init): Added initializations for the macros removed
6718 from tm-mcore.h.
6719
bb21884d
MK
67202002-07-04 Mark Kettenis <kettenis@gnu.org>
6721
6722 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6723 traditonal string branding within the ELF header.
6724
228c6d41
DJ
67252002-07-04 Daniel Jacobowitz <drow@mvista.com>
6726
6727 * symtab.c (remove_params): New function.
6728 (make_symbol_overload_list): Use it instead of cplus_demangle.
6729 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6730
2404952e
MK
67312002-07-04 Mark Kettenis <kettenis@gnu.org>
6732
e5e4acad
MK
6733 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6734
baadce09
MK
6735 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6736 New variables.
6737 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6738 and tdep->sigtramp_end.
6739 * i386obsd-nat.c: New file.
6740 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6741
2404952e
MK
6742 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6743 Don't call get_current_frame().
6744
9b4f1ba7
PM
67452002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6746
6747 * i386-nat.c (child_post_startup_inferior): New function
6748 calling i386_cleanup_dregs if
6749 I386_USE_GENERIC_WATCHPOINTS is defined.
6750 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6751 conditional to acknowledge that i386-nat.c has its
6752 own child_post_startup_inferior function.
6753
c0d1d883
MK
67542002-07-04 Mark Kettenis <kettenis@gnu.org>
6755
00f8375e
MK
6756 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6757 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6758 instead of MAX_REGISTER_RAW_SIZE.
6759 (i386_extract_return_value, i386_extract_struct_value_address):
6760 Convert to use regcache.
6761 (i386_gdbarch_init): Set max_register_raw_size and
6762 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6763 Set extract_return_value and extract_struct_value_address instead
6764 of their deprecated variants.
6765
c0d1d883
MK
6766 Convert i386 target to generic dummy frames.
6767 * i386-tdep.c: Include "symfile.h".
6768 (i386_frameless_signal_p): Consider a function to be frameless if
6769 the pc points at the first instruction of the function.
6770 (i386_frame_chain): Handle (generic) call dummies.
6771 (i386_frame_saved_pc): Likewise.
6772 (i386_frame_init_saved_regs): Remove code dealing with call
6773 dummies on the stack.
6774 (i386_push_dummy_frame): Removed.
6775 (i386_call_dummy_words): Removed.
6776 (i386_fix_call_dummy): Removed.
6777 (i386_push_return_address): New function.
6778 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6779 parameter, and don't call get_current_frame.
6780 (i386_pop_frame): New function.
6781 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6782 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6783 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6784 call_dummy_length to 0, set call_dummy_words to NULL, set
6785 sizeof_call_dummy_words to 0, set fix_call_dummy to
6786 generic_fix_call_dummy, set pc_in_call_dummy to
6787 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6788 generic_push_dummy_frame, set push_return_address to
6789 i386_push_return_address and set frame_chain_valid to
6790 generic_file_frame_chain_valid.
6791
049ee0e4
AC
67922002-07-03 Andrew Cagney <ac131313@redhat.com>
6793
6794 * gdbarch.sh (struct regcache): Add opaque declaration.
6795 (EXTRACT_RETURN_VALUE): New architecture method.
6796 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6797 * gdbarch.h, gdbarch.c: Regenerate.
6798 * arch-utils.c (legacy_extract_return_value): New function.
6799 * arch-utils.h (legacy_extract_return_value): Declare.
6800 * values.c (value_being_returned): Re-enable code handling
6801 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6802 deprecated_grub_regcache_for_registers call to block handling
6803 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6804 (EXTRACT_RETURN_VALUE): Do not define.
6805
4e0d9804
GS
68062002-07-03 Grace Sainsbury <graces@redhat.com>
6807
6808 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6809 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6810 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6811 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6812 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6813 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6814 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6815 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6816 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6817 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6818 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6819 argument so the function fits the prototype in the architecture
6820 vector.
6821 (mcore_pop_frame): Remove argument so the function fits the
6822 prototype. Use get_current_frame instead of the argument.
6823 (mcore_push_arguments): Change type of struct_return so the
6824 function can be used in the architecture vector.
6825 (mcore_store_struct_return): Add.
6826 (mcore_frame_init_saved_regs): Add.
6827 (mcore_gdbarch_init): Add function calls to replace the macros
6828 removed from tm-mcore.h
6829
36160dc4
AC
68302002-07-03 Andrew Cagney <ac131313@redhat.com>
6831
6832 * infcmd.c (print_return_value): Remove compatibility code calling
6833 deprecated_grub_regcache_for_registers.
6834
6835 * values.c: Include "regcache.h".
6836 (value_being_returned): Update. Use
6837 deprecated_grub_regcache_for_registers to extract the register
6838 buffer address.
6839 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6840 ``struct regcache''.
6841 * Makefile.in (values.o): Add dependency on $(regcache_h).
6842
6843 * inferior.h (run_stack_dummy): Change type of second parameter to
6844 a ``struct regcache''.
6845 * valops.c (hand_function_call): Change type of retbuf to ``struct
6846 regcache''. Allocate using regcache_xmalloc, clean using
6847 make_cleanup_regcache_xfree.
6848 * infcmd.c (run_stack_dummy): Update. Use
6849 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6850
6851 * regcache.c (do_regcache_xfree): New function.
6852 (make_cleanup_regcache_xfree): New function.
6853 * regcache.h (make_cleanup_regcache_xfree): Declare.
6854
e64d9b3d
MH
68552002-07-03 Martin M. Hunt <hunt@redhat.com>
6856
4dd79c29
MH
6857 * event-top.c (command_line_handler): Don't read past
6858 beginning of buffer.
e64d9b3d 6859
4dd79c29
MH
68602002-07-03 Martin M. Hunt <hunt@redhat.com>
6861
e64d9b3d
MH
6862 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6863 struct frame_id.
6864 (varobj_create): Store frame_id for root.
6865 (varobj_gen_name): Use xasprintf.
6866 (varobj_update): Save and restore frame using get_frame_id() and
6867 frame_find_by_id().
6868 (create_child): Use xasprintf.
6869 (new_root_variable): Initialize frame_id.
6870 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6871 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6872 to prevent memory leak.
6873
26e6c56a
AC
68742002-07-03 Andrew Cagney <ac131313@redhat.com>
6875
6876 * valops.c (hand_function_call): Move declaration of retbuf to
6877 start of function, allocate using malloc, add a cleanup but before
6878 the inf_status cleanup, cleanup the buffer. Rename local variable
6879 old_chain to inf_status_cleanup.
6880
f436dd25
MH
68812002-07-03 Martin M. Hunt <hunt@redhat.com>
6882
6883 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6884
6885 * cli/cli-decode.c (cmd_func_p): New function.
6886 (cmd_func): New function.
6887
6888 * command.h: Add cmd_func() and cmd_func_p().
6889
4cfe2084
GS
68902002-07-03 Grace Sainsbury <graces@redhat.com>
6891
6892 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6893 (REGISTER_SIZE): Remove.
6894 (MAX_REGISTER_RAW_SIZE): Remove.
6895 (REGISTER_VIRTUAL_TYPE): Remove.
6896 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6897 (REGISTER_NAME): Remove.
6898 (USE_GENERIC_DUMMY_FRAMES): Remove.
6899 (CALL_DUMMY): Remove.
6900 (CALL_DUMMY_START_OFFSET): Remove.
6901 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6902 (CALL_DUMMY_LOCATION): Remove.
6903 (FIX_CALL_DUMMY): Remove.
6904 (CALL_DUMMY_ADDRESS): Remove.
6905 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6906 (SAVE_DUMMY_FRAME_TOS): Remove.
6907 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6908 (mcore_register_virtual_type): New function.
6909 (mcore_register_byte): New function.
6910 (mcore_register_size): New function.
6911 (mcore_register_name): New function.
6912 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6913 macros removed from tm-mcore.h.
6914 (mcore_dump_tdep): Add.
6915 (_initialize_mcore_tdep): Add gdbarch_register call.
6916
4fd667e9
MK
69172002-07-03 Mark Kettenis <kettenis@gnu.org>
6918
6919 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6920 frameless_look_for_prologue, such that we actually call this
6921 function.
6922
42f99ac2
JB
69232002-07-02 Joel Brobecker <brobecker@gnat.com>
6924
6925 * frame.h (frame_address_in_block): New function.
6926
6927 * blockframe.c (frame_address_in_block): New function extracted
6928 from get_frame_block().
6929 (get_frame_block): Use frame_address_in_block().
6930 (block_innermost_frame): Use frame_address_in_block() to match
6931 the frame pc address against the block boundaries rather than
6932 the frame pc directly. This prevents a failure when a frame pc
6933 is actually a return-address pointing immediately after the end
6934 of the given block.
6935
103a1597 69362002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6937
6938 * MAINTAINERS: Add self under write after approval.
6939
69402002-07-02 Grace Sainsbury <graces@redhat.com>
6941
103a1597
GS
6942 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6943 used in architecture vector. The default is
6944 m68k_local_breakpoint_from_pc.
6945 (m68k_local_breakpoint_from_pc): Add.
6946 (enum): Add register numbers from tm-m68k.h.
6947 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6948 vector.
6949 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6950 GDB_MULTI_ARCH_PARTIAL.
6951 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6952 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6953 m68k-tdep.c.
6954 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6955 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6956 to enum in m68k-tdep.c
6957
7a5a0534
JB
69582002-07-02 Joel Brobecker <brobecker@gnat.com>
6959
6960 * solib-osf.c (open_map): Compute the list of shared libraries
6961 loaded by the inferior, rather than the list of libraries loaded
6962 by GDB itself. Otherwise, GDB ends up reading the symbols from
6963 the wrong shared libraries...
6964
6f558d74
MK
69652002-07-02 Mark Kettenis <kettenis@gnu.org>
6966
b7d15bf7
MK
6967 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6968 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6969 macros.
6970 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6971 Remove functions.
6972 (FRAMELESS_SIGNAL): Remove function.
6973 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6974 i386_linux_saved_pc_after_call): Removed.
6975 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6976 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6977 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6978
6bff26de
MK
6979 * i386-tdep.c (i386_frameless_signal_p): New function.
6980 (i386_frame_chain): Deal with frameless signals.
6981 (i386_sigtramp_saved_sp): New function.
6982 (i386_frame_saved_pc): Deal with frameless signals.
6983 (i386_saved_pc_after_call): Make sure the correct value is
6984 returned just after entry into a sigtramp.
6985 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6986 i386fbsd4_sc_sp_offset): New variables.
6987 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6988 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6989 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6990 similiar to what we already did for sc_pc_offset.
6991 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6992 tdep->sc_sp_offset.
6993
6f558d74
MK
6994 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6995
145564b7
ML
69962002-07-02 Michal Ludvig <mludvig@suse.cz>
6997
6998 * config/i386/tm-x86-64linux.h: New.
6999 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7000 definitions.
7001 * config/i386/nm-x86-64.h: Rename to ...
7002 * config/i386/nm-x86-64linux.h: ... this one.
7003 * config/i386/x86-64linux.mh: Reflect the above change.
7004
3a1e71e3
MK
70052002-07-01 Mark Kettenis <kettenis@gnu.org>
7006
21d0e8a4
MK
7007 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7008 with sigcontext_addr. Add sc_sp_offset.
7009 (i386bsd_sigtramp_saved_pc): Remove prototype.
7010 (i386bsd_sicontext_addr): Add prototype.
7011 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7012 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7013 (i386_svr4_sigtramp_saved_pc): Removed.
7014 (i386_svr4_sigcontext_addr): New function.
7015 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7016 Initialize tdep->sigcontext_addr instead. Initialize
7017 tdep->sc_pc_offset and tdep->sc_sp_offset.
7018 (i386_gdbarch_init): Likewise.
7019 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7020 any more.
7021 (i386bsd_sigtramp_saved_pc): Remove function.
7022 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7023 Initialize tdep->sigcontext_addr instead. Initialize
7024 tdep->sc_pc_offset.
7025 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7026 of tdep->sigtramp_saved_pc.
7027 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7028 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7029 instead.
7030
3a1e71e3
MK
7031 * i386-tdep.c (i386_frameless_function_invocation,
7032 i386_frame_num_args, i386_frame_init_saved_regs,
7033 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7034 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7035 i386_extract_return_value, i386_store_return_value,
7036 i386_extract_struct_value_address, i386_register_virtual_type,
7037 i386_register_convertible, i386_register_convert_to_virtual,
7038 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7039 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7040 static.
7041
52e9098c
MK
70422002-07-01 Mark Kettenis <kettenis@gnu.org>
7043
77b13a25
MK
7044 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7045
52e9098c
MK
7046 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7047 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7048 this macro. Include "value.h".
7049
1b372fff
AS
70502002-06-30 Aidan Skinner <aidan@velvet.net>
7051
7052 * ada-exp.tab.c: remove as it's a generated file
7053 * ada-lex.c: remove as it's a generated file
7054
9c5045b5
MK
70552002-06-30 Mark Kettenis <kettenis@gnu.org>
7056
4a93c5bb
MK
7057 * config/i386/tm-i386.h (struct frame_info, struct
7058 frame_saved_regs, struct value, struct type): Remove forward
7059 declarations.
7060
322d4fe0
MK
7061 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7062 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7063 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7064 (FILL_FPXREGSET): Define.
7065
fdd8263d
MK
7066 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7067
482e577b
MK
7068 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7069 i[3456]86-*-netbsd* case.
7070 * config/i386/tm-obsd.h: Removed.
7071 * config/i386/obsd.mt: Removed.
7072 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7073 core-aout.o.
7074 (MH_CFLAGS): Add -DYYDEBUG=0.
7075
6916549a
MK
7076 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7077 i386nbsd_sc_pc_offset on OpenBSD too.
7078
9c5045b5
MK
7079 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7080 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7081 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7082 define.
7083 * i386bsd-tdep.c: Include "arch-utils.h".
7084 (i386bsd_aout_in_solib_call_trampoline): New function.
7085 (i386bsd_init_abi): Set in_solib_call_trampoline to
7086 i386bsd_aout_in_solib_call_trampoline.
7087 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7088 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7089
aa84d1bb
AC
70902002-06-28 Andrew Cagney <ac131313@redhat.com>
7091
7092 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7093 (struct obstack, struct bcache): Add opaque declarations.
7094 * Makefile.in (macrotab_h): Update
7095
b4d83933
AC
70962002-06-28 Andrew Cagney <ac131313@redhat.com>
7097
7098 * blockframe.c (generic_find_dummy_frame): Change return type to
7099 ``struct regcache''.
7100 (struct dummy_frame): Replace field ``registers'' with regcache, a
7101 struct regcache object.
7102 (generic_find_dummy_frame): Update.
7103 (generic_push_dummy_frame): Update. Use regcache_xfree,
7104 regcache_xmalloc and regcache_cpy.
7105 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7106 regcache_xfree.
7107 (deprecated_generic_find_dummy_frame): Update.
7108 (generic_read_register_dummy): Update. Use
7109 regcache_read_as_address.
7110 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7111 (generic_get_saved_register): Update. Use regcache_read.
7112
08c0b5bc
AC
71132002-06-28 Andrew Cagney <ac131313@redhat.com>
7114
7115 * Makefile.in (objfiles_h): Add $(bcache_h).
7116 * objfiles.h: Include "bcache.h".
7117
7118 * Makefile.in (symtab_h): Remove $(bcache_h).
7119 * symtab.h: Do not include "bcache.h".
7120
1f89801a
AC
71212002-06-28 Andrew Cagney <ac131313@redhat.com>
7122
7123 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7124 generic_func_frame_chain_valid.
7125
b9644b58
DB
71262002-06-28 David O'Brien <obrien@FreeBSD.org>
7127
7128 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7129 * config/i386/tm-fbsd.h: Likewise.
7130
dd486634
AC
71312002-06-28 Andrew Cagney <ac131313@redhat.com>
7132
7133 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7134 generic_unwind_get_saved_register.
7135
0b434a00
AC
71362002-06-27 Andrew Cagney <ac131313@redhat.com>
7137
7138 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7139 * regcache.c (supply_register): Add missing argument to
7140 register_buffer call.
7141
f30e5a77
AC
71422002-06-27 Andrew Cagney <ac131313@redhat.com>
7143
7144 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7145 Solaris /bin/grep does not not like it. From Peter Schauer.
7146
9f064c95
TT
71472002-06-26 Tom Tromey <tromey@redhat.com>
7148
7149 * command.h (add_setshow_cmd): Declare.
7150 (add_setshow_cmd_full): Declare.
7151 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7152 returns void. Use add_setshow_cmd_full.
7153 (add_setshow_cmd_full): New function.
7154 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7155 (add_setshow_boolean_cmd): Likewise.
7156
099c7589
JT
71572002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7158
7159 * config/vax/tm-vax.h: Protect from multiple inclusion.
7160 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7161 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7162 * config/vax/tm-vaxbsd.h: ...here. New file.
7163 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7164
1d049c5e
JT
71652002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7166
7167 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7168 (BELIEVE_PCC_PROMOTION): Remove.
7169 (AP_REGNUM): Move to...
7170 * config/vax/nm-vax.h: ...here.
7171 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7172 (vax_breakpoint_from_pc): New function.
7173 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7174 and gdbarch_believe_pcc_promotion.
7175
4791e091
JT
71762002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7177
7178 * Makefile.in (vax_tdep_h): Define.
7179 (vax-tdep.o): Use $(vax_tdep_h).
7180 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7181 (vax_dump_tdep): New function.
7182 (_initialize_vax_tdep): Register vax_dump_tdep.
7183 * vax-tdep.h: Include osabi.h.
7184 (struct gdbarch_tdep): New.
7185
da130f98
AC
71862002-06-26 Andrew Cagney <cagney@redhat.com>
7187
7188 * frame.h (deprecated_generic_find_dummy_frame): Rename
7189 generic_find_dummy_frame.
7190 * blockframe.c (generic_find_dummy_frame): Make static.
7191 (deprecated_generic_find_dummy_frame): New function.
7192 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7193 generic_find_dummy_frame with deprecated_find_dummy_frame.
7194 (sh64_nofp_frame_init_saved_regs): Ditto.
7195 (sh_fp_frame_init_saved_regs): Ditto.
7196 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7197 (s390_frame_chain): Ditto.
7198 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7199
6300c360
GS
72002002-06-26 Grace Sainsbury <graces@redhat.com>
7201
7202 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7203 gdbarch vector are at the top.
7204 (NUM_REGS): Remove.
7205 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7206 (FRAME_ARGS_ADDRESS): Remove.
7207 (FRAME_LOCALS_ADDRESS): Remove.
7208 (FRAME_NUM_ARGS): Remove.
7209 (FRAME_ARGS_SKIP): Remove.
7210 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7211 (m68k_gdbarch_init): Add gdbarch initializations for macros
7212 undefined in tm-m68k.h
7213
1c617db8
GS
72142002-06-26 Grace Sainsbury <graces@redhat.com>
7215
7216 * monitor.h: Add the function regname to monitor_ops
7217 structure. This way NUM_REGS does not have to be a constant.
7218 * monitor.c (monitor_fetch_register): Added support for regname
7219 function. The function is called if the array regnames is NULL.
7220 (monitor_store_register): Same.
da130f98
AC
7221 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7222 regnames array.
1c617db8
GS
7223 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7224 cpu32bug_cmds.regname to point to new function.
7225 * abug-rom.c (abug_regname): Same as above.
7226 (init_abug_cmds): Same.
7227 * dbug-rom.c (dbug_regname): Same as above.
7228 (init_dbug_cmds): Same.
7229 * remote-est.c (est_regname): Same.
7230 (init_est_cmds): Same.
7231 * rom68k-rom.c (rom68k_regname): Same.
7232 (init_rom68k_cmds): Same.
7233
ea9365bb
TT
72342002-06-25 Tom Tromey <tromey@redhat.com>
7235
7236 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7237
72cec141
AC
72382002-06-25 Andrew Cagney <cagney@redhat.com>
7239
7240 * infrun.c (stop_registers): Change variable's type to ``struct
7241 regcache'''.
7242 (xmalloc_inferior_status): Delete function.
7243 (free_inferior_status): Delete function.
7244 (normal_stop): Use regcache_cpy.
7245 (struct inferior_status): Change type of fields ``stop_registers''
7246 and ``registers'' to ``struct regcache''.
7247 (write_inferior_status_register): Use regcache_write.
7248 (save_inferior_status): Instead of calling
7249 xmalloc_inferior_status, allocate the inf_status buffer directly.
7250 Use regcache_dup_no_passthrough and regcache_dup to save the
7251 buffers.
7252 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7253 Replace the stop_registers regcache instead of overriding it. Use
7254 regcache_xfree. Instead of calling free_inferior_status, xfree
7255 the buffer directly.
7256 (discard_inferior_status): Use regcache_xfree. Instead of calling
7257 free_inferior_status, xfree the buffer directly.
7258 (build_infrun): Use regcache_xmalloc.
7259 (_initialize_infrun): Delete redundant call to build_infrun.
7260
7261 * Makefile.in (infcmd.o): Add $(regcache_h).
7262
7263 * infcmd.c: Include "regcache.h".
7264 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7265 obtain the address of `stop_registers' register buffer.
7266 (print_return_value): Ditto.
7267
7268 * inferior.h (struct regcache): Add opaque declaration.
7269 (stop_registers): Change variable's declared type to ``struct
7270 regcache''.
7271
defc6f8c
TT
72722002-06-24 Tom Tromey <tromey@redhat.com>
7273
c0e624e7
TT
7274 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7275 * target.c (initialize_targets): Fixed typo in
7276 trust-readonly-sections `show' documentation.
7277
defc6f8c
TT
7278 * main.c: Marked all strings with _().
7279
2b236d82
DH
72802002-06-24 Don Howard <dhoward@redhat.com>
7281
7282 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7283 that means max CORE_ADDR+1.
7284 (lookup_mem_region): Ditto.
7285 (mem_info_command): Ditto.
7286
942dc0e9
GS
72872002-06-24 Grace Sainsbury <graces@redhat.com>
7288
7289 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7290 (REGISTER_BYTES_OK): Remove.
7291 (REGISTER_BYTES): Remove.
7292 (STORE_STRUCT_RETURN): Remove.
7293 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7294 (STORE_RETURN_VALUE): Remove.
7295 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7296 (FRAME_CHAIN): Remove.
7297 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7298 (FRAME_SAVED_PC): Remove.
7299 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7300 (m68k_store_struct_return): Add.
7301 (m68k_deprecated_extract_return_value): Add.
7302 (m68k_deprecated_extract_struct_value_address): Add.
7303 (m68k_store_return_value): Add.
7304 (m68k_frame_chain): Add.
7305 (m68k_frameless_function_invocation): Add.
7306 (m68k_frame_saved_pc): Add.
7307 (m68k_gdbarch_init): added set_gdbarch calls for new
7308 functions and deleted macros.
7309
03c30d4d
TT
73102002-06-23 Tom Tromey <tromey@redhat.com>
7311
7312 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7313 (ALLDEPFILES): Likewise.
7314 (udiheaders): Removed.
7315 (udip2soc.o): Likewise.
7316 (udi2go32.o): Likewise.
7317 (udr.o): Likewise.
7318 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7319
37e71372
AC
73202002-06-22 Andrew Cagney <ac131313@redhat.com>
7321
06a6ac57
AC
7322 * infrun.c (_initialize_infrun): Delete unnecessary call to
7323 build_infrun.
7324
37e71372
AC
7325 * regcache.h: Update comments describing the regcache_cpy family
7326 of functions.
7327 (regcache_save, regcache_restore): Delete declaration.
7328 (regcache_save_no_passthrough): Delete declaration.
7329 (regcache_restore_no_passthrough): Delete declaration.
7330 * regcache.c (regcache_save): Delete function.
7331 (regcache_save_no_passthrough): Delete function.
7332 (regcache_restore): Delete function.
7333 (regcache_restore_no_passthrough): Delete function.
7334
78f6d055
AC
73352002-06-21 Andrew Cagney <ac131313@redhat.com>
7336
7337 * config/m68k/tm-m68k.h: Fix typo.
7338 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7339 (m68k_frame_init_saved_regs): Declare.
7340
78b119cb
JB
73412002-06-21 Jim Blandy <jimb@redhat.com>
7342
7343 Remove some vestiges of Harris 88k support.
7344 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7345 register numbering quirk.
7346 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7347 odd symbols occurring in Harris 88k ELF targets.
7348
0fbb3da7
TT
73492002-06-21 Tom Tromey <tromey@redhat.com>
7350
7351 * gdb_locale.h: New file.
7352 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7353 (defs_h): Added gdb_locale.h.
7354 * configure, config.in: Rebuilt.
7355 * configure.in (PACKAGE): Define.
7356 * defs.h: Include gdb_locale.h.
7357 * main.c (captured_main): Call setlocale, bindtextdomain,
7358 textdomain.
7359
456f8b9d
DB
73602002-06-21 Dave Brolley <brolley@redhat.com>
7361
7362 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7363 * config/frv/frv.mt: New file.
7364 * config/frv/tm-frv.h: New file.
7365 * configure.tgt: Support frv-*-*.
7366 * Makefile.in (frv-tdep.o): New target.
7367 * frv-tdep.c: New file.
7368 * NEWS: Mention frv.
7369
cdd463f9
DB
73702002-06-21 Dave Brolley <brolley@redhat.com>
7371
7372 * MAINTAINERS: Add self to "Write After Approval" list.
7373
5d3ed2e3
GS
73742002-06-21 Grace Sainsbury <graces@redhat.com>
7375
7376 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7377 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7378 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7379 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7380 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7381
7382 * m68k-tdep.c: Include arch-utils.h
7383 (m68k_register_raw_size): Add.
7384 (m68k_register_virtual_size): Add.
7385 (m68k_register_virtual_type): Add.
7386 (m68k_register_name): Add.
7387 (m68k_stack_align): Add.
7388 (m68k_register_byte): Add.
7389 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7390 tm-m68k.h.
7391
7f8e7424
GS
73922002-06-21 Grace Sainsbury <graces@redhat.com>
7393
a2c6a6d5 7394 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7395 m68k_find_saved_regs.
7396 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7397 references to it with frame->saved_regs.
7f8e7424
GS
7398 (m68k_gdbarch_init): Added function calls to initialize the
7399 gdbarch structure.
a2c6a6d5
GS
7400 (m68k_fix_call_dummy): Add.
7401 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7402 (CALL_DUMMY): Remove.
7403 (CALL_DUMMY_LENGTH): Remove.
7404 (CALL_DUMMY_START_OFFSET): Remove.
7405 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7406 (FIX_CALL_DUMMY): Remove.
7407 (PUSH_DUMMY_FRAME): Remove.
7408 (POP_FRAME): Remove.
7f8e7424 7409
f461f5cf
PM
74102002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7411
7412 * parse.c (parse_fprintf): New function used to avoid calls to
7413 fprintf in bison parser generated debug code.
7414 * parser-defs.h: Declaration of new parse_fprintf function.
7415 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7416 Set YYDEBUG to 1 by default.
7417 Set YYFPRINTF as parse_fprintf.
7418
7f0c12ed
ML
74192002-06-21 Michal Ludvig <mludvig@suse.cz>
7420
7421 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7422 encoding anymore.
7423 (pointer_encoding, enum ptr_encoding): New.
7424 (execute_cfa_program): Take care about pointer encoding.
7425 (dwarf2_build_frame_info): Only call parse_frame_info for
7426 .debug_frame and .eh_frame.
7427 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7428 fixed augmentation handling, added relative addressing,
7429 ignore duplicate FDEs. Added comments.
19d833a2 7430 * dwarf2cfi.c: Reindented.
7f0c12ed 7431
87c4a039
EZ
74322002-06-20 Elena Zannoni <ezannoni@redhat.com>
7433
7434 * event-top.c (command_handler): Don't use space_at_cmd_start
7435 unless there is sbrk() on the host. Assign time and space data
7436 to union fields of the appropriate length.
7437
1cf877ad
ML
74382002-06-20 Michal Ludvig <mludvig@suse.cz>
7439
7440 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7441 x86_64_register_name. Return type changed to 'const char *'.
7442 (x86_64_register_name2nr): Rename to x86_64_register_number.
7443 (x86_64_gdbarch_init): Update to reflect the change.
7444 * x86-64-tdep.h: Ditto.
7445 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7446 (supply_fpregset): Ditto.
7447
3fadccb3
AC
74482002-06-19 Andrew Cagney <cagney@redhat.com>
7449
7450 * regcache.h: Update copyright.
7451 (struct regcache, struct gdbarch): Add opaque declarations.
7452 (current_regcache): Declare global variable.
7453 (regcache_read, regcache_write): Add gdbarch parameter.
7454 (regcache_save, regcache_save_no_passthrough)
7455 (regcache_restore, regcache_restore_no_passthrough)
7456 (regcache_dup, regcache_dup_no_passthrough)
7457 (regcache_cpy, regcache_cpy_no_passthrough)
7458 (deprecated_grub_regcache_for_registers)
7459 (deprecated_grub_regcache_for_register_valid)
7460 (regcache_valid_p): Add function declarations.
7461
7462 * regcache.c: Update copyright.
7463 (regcache_descr_handle): New global variable.
7464 (struct regcache_descr): Define.
7465 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7466 (regcache_descr, xfree_regcache_descr): New functions.
7467 (struct regcache): Define.
7468 (regcache_xmalloc, regcache_xfree): New functions.
7469 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7470 (regcache_dup, regcache_dup_no_passthrough): New functions.
7471 (regcache_valid_p, regcache_read_as_address): New functions.
7472 (deprecated_grub_regcache_for_registers): New function.
7473 (deprecated_grub_regcache_for_register_valid): New function.
7474 (current_regcache): New global variable.
7475 (register_buffer): Add regcache parameter. Update calls.
7476 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7477 (read_register_gen, write_register_gen): Update register_buffer
7478 call. Test for legacy_p instead of gdbarch_register_read_p or
7479 gdbarch_register_write_p.
7480 (regcache_collect): Update register_buffer call.
7481 (build_regcache): Rewrite. Use deprecated grub functions.
7482 (regcache_save, regcache_save_no_passthrough): New functions.
7483 (regcache_restore, regcache_restore_no_passthrough): New
7484 functions.
7485 (_initialize_regcache): Create the regcache_data_handle. Swap
7486 current_regcache global variable.
7487
7488 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7489 parameter to regcache_read and regcache_write calls.
7490 (sh4_register_read): Ditto.
7491 (sh64_pseudo_register_read): Ditto.
7492 (sh64_register_read): Ditto.
7493 (sh_pseudo_register_write): Ditto.
7494 (sh4_register_write): Ditto.
7495 (sh64_pseudo_register_write): Ditto.
7496 (sh64_register_write): Ditto.
7497
7498 * defs.h (XCALLOC): Define.
7499
152d9db6
GS
75002002-06-19 Grace Sainsbury <graces@redhat.com>
7501
7502 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7503 * m68k-tdep.c (m68k_gdbarch_init): Added.
7504 (m68k_dump_tdep): Added.
7505
170911c7
DJ
75062002-06-19 Daniel Jacobowitz <drow@mvista.com>
7507
7508 * ada-lang.c (fill_in_ada_prototype): Update comment.
7509
2e4ebe70
DJ
75102002-06-19 Daniel Jacobowitz <drow@mvista.com>
7511
7512 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7513 MIPS_ABI_LAST.
7514 (mips_abi_string, mips_abi_strings): New.
7515 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7516 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7517 tdep->mips_abi_string. Honor mips_abi_string. Default to
7518 O32 if no ABI is found.
7519 (mips_dump_tdep): Use mips_abi_strings.
7520 (mips_abi_update): New function.
7521 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7522 ``set mips abi'' and ``show mips abi''. Check the size of
7523 mips_abi_strings.
7524
16775908
AC
75252002-06-19 Andrew Cagney <cagney@redhat.com>
7526
7527 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7528 constant.
7529
5051bfa4 75302002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7531
5051bfa4
JB
7532 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7533 current frame using only the first stack size adjustment. All
7534 subsequent size adjustments are not considered to be part of
7535 the "static" part of the current frame.
7536 Compute the address of the saved registers relative to the
7537 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7538 in use in this frame.
7539
56468235
DH
75402002-06-18 Don Howard <dhoward@redhat.com>
7541
7542 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7543 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7544 suggesting this solution.
7545
0b624158
AC
75462002-06-18 Andrew Cagney <ac131313@redhat.com>
7547
7548 * config/romp/xm-rtbsd.h: Delete file.
7549 * config/romp/rtbsd.mh: Delete file.
7550
221ea385
KS
75512002-06-18 Keith Seitz <keiths@redhat.com>
7552
7553 * breakpoint.c (condition_command): Post breakpoint_modify
7554 when a condition is added to an existing breakpoint.
7555 (commands_command): Likewise for commands.
7556 (set_ignore_count): Likewise for ignore counts.
7557 If no tty, do not simply return, still need to send event
7558 notification.
7559 (ignore_command): Only print a newline if the command came
7560 from a tty.
7561 Don't call breakpoints_changed, since this is now properly
7562 handled by set_ignore_count.
7563
5402eed1
AC
75642002-06-18 Andrew Cagney <cagney@redhat.com>
7565
7566 * MAINTAINERS: Note that cris-elf target can be compiled with
7567 -Werror.
7568 * cris-tdep.c (cris_register_name): Make return type constant.
7569 (cris_breakpoint_from_pc): Ditto.
7570
cc22880b
ML
75712002-06-18 Michal Ludvig <mludvig@suse.cz>
7572
7573 * frame.h (struct frame_info): Change type of context to
7574 'struct context'.
7575
fa88f677
AC
75762002-06-17 Andrew Cagney <cagney@redhat.com>
7577
7578 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7579 pointer.
7580 * gdbarch.h, gdbarch.c: Regenerate.
7581 * config/mips/tm-mips.h (mips_register_name): Update.
7582 * i386-tdep.h (i386_register_name): Update.
7583 * mips-tdep.c (mips_register_name): Update
7584 * alpha-tdep.c (alpha_register_name): Update.
7585 * arch-utils.c (legacy_register_name): Update.
7586 * arch-utils.h (legacy_register_name): Update.
7587 * avr-tdep.c (avr_register_name): Update.
7588 * ia64-tdep.c (ia64_register_name): Update.
7589 * i386-tdep.c (i386_register_name): Update.
7590 * sparc-tdep.c (sparc32_register_name): Update.
7591 (sparc64_register_name): Update.
7592 (sparclite_register_name): Update.
7593 (sparclet_register_name): Update.
7594 * sh-tdep.c (sh_generic_register_name): Update.
7595 (sh_sh_register_name): Update.
7596 (sh_sh3_register_name): Update.
7597 (sh_sh3e_register_name): Update.
7598 (sh_sh_dsp_register_name): Update.
7599 (sh_sh3_dsp_register_name): Update.
7600 (sh_sh4_register_name): Update.
7601 (sh_sh64_register_name): Update.
7602 * s390-tdep.c (s390_register_name): Update.
7603 * rs6000-tdep.c (rs6000_register_name): Update.
7604 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7605 (ns32k_register_name_32382): Update.
7606 * d10v-tdep.c (d10v_ts2_register_name): Update.
7607 (d10v_ts3_register_name): Update.
7608 * xstormy16-tdep.c (xstormy16_register_name): Update.
7609 * vax-tdep.c (vax_register_name): Update.
7610 * v850-tdep.c (v850_register_name): Update.
7611 * m68hc11-tdep.c (m68hc11_register_name): Update.
7612 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7613 (am33_register_name): Update.
7614
ea1e7ef6
GS
76152002-06-17 Grace Sainsbury <graces@redhat.com>
7616
7617 * m68k-tdep.c: Reindented.
7618
9b02dd1b
AC
76192002-06-17 Andrew Cagney <ac131313@redhat.com>
7620
7621 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7622 list of predefined types.
7623
8758dec1
MK
76242002-06-16 Mark Kettenis <kettenis@gnu.org>
7625
b6197528
MK
7626 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7627 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7628 REGISTER_CONVERT_TO_RAW): Remove defines.
7629 (i386_register_virtual_type, i386_register_convertible,
7630 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7631 Remove prototypes.
7632 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7633 macros mentioned above.
7634
82b47e62
MK
7635 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7636 (i386lynx_saved_pc_after_call): Remove prototype.
7637 * i386ly-tdep.c: Include "i386-tdep.h".
7638 (i386lynx_saved_pc_after_call): Make static. Use
7639 read_memory_nobpt instead of read_memory. Use
7640 read_memory_unsigned_integer instead of read_memory_integer.
7641 (i386lynx_init_abi): New function.
7642 (i386lynx_coff_osabi_sniffer): New function.
7643 (_initialize_i386bsd_tdep): New function.
7644
8758dec1
MK
7645 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7646 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7647 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7648 (i386_fix_call_dummy): Remove prototype.
7649 * i386-tdep.c (i386_call_dummy_words): New variable.
7650 (i386_gdbarch_init): Adjust for removal of the
7651 macros mentioned above.
7652
e9e68a56
AC
76532002-06-15 Andrew Cagney <ac131313@redhat.com>
7654
7655 * command.h (add_setshow_auto_boolean_cmd): Replace
7656 add_set_auto_boolean_cmd.
7657 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7658 add_set_auto_boolean_cmd.
7659 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7660 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7661 mask-address'' command.
7662 (show_mask_address): Add cmd parameter.
7663 * remote.c (add_packet_config_cmd): Update. Change type of
7664 set_func and show_func to cmd_sfunc_ftype.
7665 (_initialize_remote): Update `set remote Z-packet'
7666 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7667 (show_remote_protocol_e_packet_cmd): Ditto.
7668 (show_remote_protocol_E_packet_cmd): Ditto.
7669 (show_remote_protocol_P_packet_cmd): Ditto.
7670 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7671 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7672 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7673 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7674 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7675 (show_remote_protocol_Z_packet_cmd): Ditto.
7676 (show_remote_protocol_binary_download_cmd): Ditto.
7677 (show_remote_cmd): Pass NULL to all of above.
7678
fc08ec52
MK
76792002-06-15 Mark Kettenis <kettenis@gnu.org>
7680
7681 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7682 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7683 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7684 POP_FRAME): Remove defines.
7685 (i386_push_arguments, i386_store_struct_return,
7686 i386_extract_return_value, i386_store_return_value,
7687 i386_extract_struct_value_address, i386_push_dummy_frame,
7688 i386_pop_frame): Renove prototypes.
7689 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7690 macros mentioned above.
7691
e707bbc2
AC
76922002-06-15 Andrew Cagney <ac131313@redhat.com>
7693
7694 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7695 add_set_boolean_cmd.
7696 (add_setshow_cmd): New function.
7697 * command.h (add_setshow_boolean_cmd): Replace
7698 add_set_boolean_cmd.
7699 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7700 and ``set rdiromatzero''.
7701 * maint.c (_initialize_maint_cmds): Update commented out code.
7702 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7703 * target.c (initialize_targets): Update `set
7704 trust-readonly-sections'.
7705 * remote.c (_initialize_remote): Update `set remotebreak'.
7706
42fdc8df
MK
77072002-06-15 Mark Kettenis <kettenis@gnu.org>
7708
93924b6b
MK
7709 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7710 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7711 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7712 fit into multi-arch framework.
7713 (i386_breakpoint_from_pc): New function.
7714 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7715 above.
7716
42fdc8df
MK
7717 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7718 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7719 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7720 (i386_frameless_function_invocation, i386_frame_num_args,
7721 i386_frame_init_saved_regs): Remove prototypes.
7722 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7723 macros mentioned above.
7724
9773a94b
AC
77252002-06-15 Andrew Cagney <ac131313@redhat.com>
7726
7727 * cli/cli-decode.c (set_cmd_cfunc): Update.
7728 (set_cmd_sfunc): Update.
7729 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7730 (set_cmd_sfunc, set_cmd_cfunc): Update.
7731 * cli/cli-decode.h: Update.
7732
6e157172
MK
77332002-06-15 Mark Kettenis <kettenis@gnu.org>
7734
7735 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7736 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7737
7f19b9a2
AC
77382002-06-15 Andrew Cagney <ac131313@redhat.com>
7739
7740 * defs.h (auto_boolean): Declare enum.
7741 * command.h (cmd_auto_boolean): Delete enum.
7742 * mips-tdep.c (mask_address_var): Update.
7743 (mips_mask_address_p): Update.
7744 (show_mask_address): Update.
7745 * remote.c (struct packet_config): Update.
7746 (update_packet_config): Update.
7747 (show_packet_config_cmd): Update.
7748 (packet_ok): Update.
7749 (add_packet_config_cmd): Update.
7750 (_initialize_remote):
7751 * command.h: Update.
7752 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7753 (do_setshow_command): Update.
7754 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7755 * cli/cli-decode.h: Update.
7756
1cf88de5
MK
77572002-06-15 Mark Kettenis <kettenis@gnu.org>
7758
22ba8cf2
MK
7759 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7760 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7761 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7762 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7763 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7764 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7765
762c5349
MK
7766 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7767 list of DJGPP COFF targets.
7768
091198bb
MK
7769 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7770 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7771 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7772 (FP0_REGNUM): Remove define.
7773 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7774 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7775 (i386_register_virtual_size): Remove protoype.
7776 * i386-tdep.c (i386_register_virtual_size): Removed.
7777 (i386_extract_return_value, i386_store_return_value): Use
7778 FP0_REGNUM instead of NUM_FREGS to determine whether the
7779 floating-point registers are available.
7780 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7781 Adjust for removal of macros mentioned above.
7782
77832002-06-15 Mark Kettenis <kettenis@gnu.org>
7784
fcc9bf01
MK
7785 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7786 comments.
7787 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7788 Remove prototypes.
7789 (supply_gregset, fill_gregset): Remove use of register keyword and
7790 remove declaration for regmap. Use I386_NUM_GREGS instead of
7791 NUM_REGS and NUM_FREGS.
7792 (FPREGSET_FSAVE_OFFSET): Remove.
7793 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7794 NUM_FREGS to determine whether the floating-point registers are
7795 available.
7796
65e78234
MK
7797 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7798 gnu_store_registers): Replace usage of NUM_GREGS with
7799 I386_NUM_GREGS.
7800
98df6387
MK
7801 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7802 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7803 usage of NUM_GREGS with I386_NUM_GREGS.
7804
099a9414
MK
7805 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7806
57976e88
MK
7807 * i386bsd-nat.c: Include "i386-tdep.h".
7808 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7809 I386_NUM_GREGS.
7810
b335f4a6
MK
7811 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7812 and associated comment. They no longer make any sense, since we
7813 don't use this file anymore on Linux.
7814
1cf88de5
MK
7815 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7816 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7817 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7818 elements in these arrays.
7819 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7820 MAX_NUM_REGS.
7821
daa66587
MK
78222002-06-15 Mark Kettenis <kettenis@gnu.org>
7823
7824 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7825 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7826
26e9b323
AC
78272002-06-14 Andrew Cagney <cagney@redhat.com>
7828
7829 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7830 EXTRACT_RETURN_VALUE.
7831 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7832 EXTRACT_STRUCT_VALUE_ADDRESS.
7833 * gdbarch.h, gdbarch.c: Regenerate.
7834
7835 * values.c (value_being_returned): Handle
7836 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7837 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7838
7839 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7840 * arm-tdep.c (arm_gdbarch_init): Update.
7841 * avr-tdep.c (avr_gdbarch_init): Update.
7842 * cris-tdep.c (cris_gdbarch_init): Update.
7843 * d10v-tdep.c (d10v_gdbarch_init): Update.
7844 * ia64-tdep.c (ia64_gdbarch_init): Update.
7845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7846 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7847 * s390-tdep.c (s390_gdbarch_init): Update.
7848 * sh-tdep.c (sh_gdbarch_init): Update.
7849 * s390-tdep.c (s390_gdbarch_init): Update.
7850 * sparc-tdep.c (sparc_gdbarch_init): Update.
7851 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7852 * v850-tdep.c (v850_gdbarch_init): Update.
7853 * vax-tdep.c (vax_gdbarch_init): Update.
7854 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7856
7857 * config/arc/tm-arc.h: Update.
7858 * config/d30v/tm-d30v.h: Update.
7859 * config/fr30/tm-fr30.h: Update.
7860 * config/h8300/tm-h8300.h: Update.
7861 * config/h8500/tm-h8500.h: Update.
7862 * config/i386/tm-i386.h: Update.
7863 * config/i386/tm-ptx.h: Update.
7864 * config/i386/tm-symmetry.h: Update.
7865 * config/i960/tm-i960.h: Update.
7866 * config/m32r/tm-m32r.h: Update.
7867 * config/m68k/tm-delta68.h: Update.
7868 * config/m68k/tm-linux.h: Update.
7869 * config/m68k/tm-m68k.h: Update.
7870 * config/m88k/tm-m88k.h: Update.
7871 * config/mcore/tm-mcore.h: Update.
7872 * config/mips/tm-mips.h: Update.
7873 * config/mn10200/tm-mn10200.h: Update.
7874 * config/pa/tm-hppa.h: Update.
7875 * config/pa/tm-hppa64.h: Update.
7876 * config/sparc/tm-sp64.h: Update.
7877 * config/sparc/tm-sparc.h: Update.
7878 * config/sparc/tm-sparclet.h: Update.
7879 * config/z8k/tm-z8k.h: Update.
7880
5179e78f
AC
78812002-06-14 Andrew Cagney <cagney@redhat.com>
7882
7883 * Makefile.in (i386_linux_tdep_h): Define.
7884 (i386_tdep_h, i387_tdep_h): Define.
7885 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7886 $(i386_tdep_h) and $(i387_tdep_h).
7887 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7888
8201327c
MK
78892002-06-14 Mark Kettenis <kettenis@gnu.org>
7890
edf393ac
MK
7891 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7892 Already covered by the default.
7893
896fb97d
MK
7894 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7895 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7896 (i386_gdbarch_init): Initialize long_double_format and long_double
7897 bit.
7898
8201327c
MK
7899 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7900 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7901 Move these to ...
7902 * config/i386/i386sol2.mh: ... here.
7903 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7904 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7905 (SIGCONTEXT_PC_OFFSET): Remove define.
7906 (IN_SIGTRAMP): Remove define.
7907 * i386-sol2-tdep.c: New file.
7908
7909 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7910 * config/i386/tm-i386nw.h: Removed.
7911
7912 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7913 USE_STRUCT_CONVENTION): Remove defines.
7914 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7915 (get_longjmp_target): Remove prototype.
7916 (IN_SIGTRAMP): Remove define.
7917 (i386bsd_in_sigtramp): Remove prototype.
7918 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7919 function. Update comment accordingly
7920 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7921 (FRAME_SAVED_PC): Remove define.
7922 (i386bsd_frame_saved_pc): Remove prototype.
7923 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7924 GET_LONGJMP_TARGET): Remove defines.
7925 (get_longjmp_target): Remove prototype.
7926 (IN_SIGTRAMP): Remove define.
7927 (i386bsd_in_sigtramp): Remove prototype.
7928 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7929 function. Update comment accordingly
7930 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7931 (FRAME_SAVED_PC): Remove define.
7932 (i386bsd_frame_saved_pc): Remove prototype.
7933 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7934 Remove prototype.
7935 (USE_STRUCT_CONVENTION): Remove prototype.
7936 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7937 declaration.
7938 (_initialize_i386bsd_nat): Revise logic to determine some
7939 constants at compile time when compiling a native GDB. Warn if
7940 things don't match up with what we expect.
7941 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7942 Remove variables.
7943 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7944 to use date stored in `struct gdbarch_tdep'.
7945 (i386bsd_sigcontext_offset): Remove varaible.
7946 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7947 stored in `struct gdbarch_tdep'.
7948 (i386bsd_frame_saved_pc): Make static.
7949 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7950 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7951 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7952 i386fbsd4_sc_pc_offset): New variables.
7953 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7954 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7955 functions.
7956 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7957 functions.
7958 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7959 Modify the value of i386fbsd_sigtramp_start and
7960 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7961 i386fbsd_sigtramp_end.
7962 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7963 function.
7964
7965 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7966 define to i386-linux-tdep.h.
7967 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7968 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7969 defines.
7970 (i386_linux_register_name, i386_linux_register_byte,
7971 i386_linux_register_raw_size): Remove prototypes.
7972 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7973 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7974 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7975 TARGET_WRITE_PC): Remove defines.
7976 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7977 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7978 i386_linux_write_pc): Remove prototypes.
7979 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7980 (get_longjmp_target): Remove prototype.
7981 * i386-linux-tdep.h: New file.
7982 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7983 * i386-linux-tdep.c: Include "i386-tdep.h" and
7984 "i386-linux-tdep.h".
7985 (i386_linux_register_name, i386_linux_register_byte,
7986 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7987 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7988 Make static.
7989 (i386_linux_init_abi): New function.
7990 (_initialize_i386_linux_tdep): New function.
7991
7992 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7993 (i386_saved_pc_after_call): Remove prototype.
7994 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7995 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7996 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7997 (i386_register_name, i386_stab_reg_to_regnum,
7998 i386_dwarf_reg_to_regnum): Remove prototypes.
7999 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8000 SIZEOF_SSE_REGS): Remove defines.
8001 (REGISTER_BYTES): Remove define.
8002 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8003 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8004 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8005 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8006 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8007 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8008 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8009 (get_longjmp_target): Remove prototype.
8010 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8011 (sigtramp_saved_pc): Remove define.
8012 (i386v4_sigtramp_saved_pc): Remove prototype.
8013 * config/i386/tm-go32.h (FRAME_CHAIN,
8014 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8015 (i386go32_frame_saved_pc): Remove prototype.
8016 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8017 (get_longjmp_target): Remove prototype.
8018 * i386-tdep.h: Include "osabi.h".
8019 (enum i386_abi): Removed.
8020 (enum struct_return): New enum.
8021 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8022 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8023 sc_pc_offset members.
8024 (i386_gdbarch_register_os_abi): Remove prototype.
8025 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8026 I386_SSE_NUM_REGS): New defines.
8027 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8028 I386_SSE_SIZEOF_REGS): New defines.
8029 (i386_register_name, i386_register_byte, i386_register_raw_size):
8030 New prototypes.
8031 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8032 (i386bsd_sigtramp_saved_pc): New prototype.
8033 * i386-tdep.c: Don't include "elf-bfd.h".
8034 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8035 i386_frame_chain, i386_saved_pc_after_call): Make static.
8036 (i386_frame_saved_pc): Rewrite to call architecture dependent
8037 function to deal with signal handlers. Make static.
8038 (i386go32_frame_saved_pc): Removed.
8039 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8040 Removed.
8041 (i386_get_longjmp_target): New function.
8042 (default_struct_convention, pcc_struct_convention,
8043 reg_struct_convention, valid_conventions, struct_convention): New
8044 variables.
8045 (i386_use_struct_convention): New function.
8046 (i386v4_sigtramp_saved_pc): Renamed to
8047 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8048 (i386_pc_in_sigtramp): New function.
8049 (i386_abi_names): Removed.
8050 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8051 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8052 Removed.
8053 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8054 i386_gdbarch_register_os_abi): Removed.
8055 (struct i386_abi_handler): Removed.
8056 (i386_abi_handler_list): Removed.
8057 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8058 functions.
8059 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8060 i386_nw_init_abi): New functions.
8061 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8062 Use set_gdbarch_xxx() calls instead of relying on macros for a
8063 number of calls.
8064 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8065 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8066 Register the various architecture variants defined in this file.
8067
ad2f7632
DJ
80682002-06-14 Daniel Jacobowitz <drow@mvista.com>
8069
8070 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8071 (struct main_type): Remove arg_types member. Update comments for
8072 struct field.
8073 (TYPE_ARG_TYPES): Remove.
8074 (TYPE_FN_FIELD_ARGS): Update.
8075 (smash_to_method_type): Update prototype.
8076
8077 * c-typeprint.c (cp_type_print_method_args): Take method type
8078 instead of argument list. Use new argument layout. Simplify.
8079 (c_type_print_args): Use new argument layout. Simplify.
8080 (c_type_print_base): Update call to cp_type_print_method_args.
8081 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8082 argument; use die->type instead. Update call to
8083 smash_to_method_type.
8084 (read_structure_scope): Update call to dwarf2_add_member_fn.
8085 * gdbtypes.c (allocate_stub_method): Update comment.
8086 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8087 Use new argument layout.
8088 (check_stub_method): Use new argument layout. Don't count
8089 void as an argument.
8090 (print_arg_types): Update comments. Use new argument layout.
8091 (recursive_dump_type): Don't print arg_types member.
8092 * hpread.c (hpread_read_struct_type): Use new argument layout.
8093 (fixup_class_method_type): Likewise.
8094 (hpread_type_lookup): Likewise.
8095 * stabsread.c (read_type): Update calls to read_args and
8096 smash_to_method_type.
8097 (read_args): Use new argument layout. Simplify.
8098 * valops.c (typecmp): Use new argument layout. Update parameters
8099 and comments. Simplify.
8100 (hand_function_call): Use new argument layout.
8101 (search_struct_method): Update call to typecmp.
8102 (find_overload_match): Use new argument layout.
8103
6da02953
DJ
81042002-06-13 Daniel Jacobowitz <drow@mvista.com>
8105
8106 * NEWS: Mention multithreaded debug support for gdbserver.
8107
519b2366
DJ
81082002-06-13 Daniel Jacobowitz <drow@mvista.com>
8109
8110 * MAINTAINERS: Mention NEWS.
8111
6c0d6680
DJ
81122002-06-13 Daniel Jacobowitz <drow@mvista.com>
8113
8114 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8115 (struct mips_objfile_private, compare_pdr_entries): New.
8116 (non_heuristic_proc_desc): Read the ".pdr" section if it
8117 is present.
8118
6529d2dd
AC
81192002-06-12 Andrew Cagney <ac131313@redhat.com>
8120
8121 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8122 (arm_debug): New static variable.
8123 (_initialize_arm_tdep): Add ``set debug arm'' command.
8124
26216b98
AC
81252002-06-12 Andrew Cagney <ac131313@redhat.com>
8126
8127 * Makefile.in (sim_arm_h): Define.
8128 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8129 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8130 (arm_register_sim_regno): New function, map an internal REGNUM
8131 onto a simulator register number.
8132 (arm_gdbarch_init): Set register_sim_regno.
8133
814b3ba0
AH
81342002-06-09 Aldy Hernandez <aldyh@redhat.com>
8135
8136 * MAINTAINERS: Add self.
8137
475b0867
JB
81382002-06-11 Jim Blandy <jimb@redhat.com>
8139
919d772c
JB
8140 * source.c (source_info): Mention whether the symtab has
8141 information about preprocessor macros.
8142
475b0867
JB
8143 Call the command `info macro', not `show macro'.
8144 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8145 Fix error message.
8146 (_initialize_macrocmd): Register `info_macro_command' in
8147 `infolist', not `showlist'.
8148
9e364162
DJ
81492002-06-11 Daniel Jacobowitz <drow@mvista.com>
8150
8151 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8152 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8153 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8154 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8155 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8156 unconditionally.
8157 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8158 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8159 (_initialize_mips_tdep): Remove dead code.
8160 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8161 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8162 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8163 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8164 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8165 MIPS_LAST_FP_ARG_REGNUM): Remove.
8166
23aa4c72
ML
81672002-06-11 Michal Ludvig <mludvig@suse.cz>
8168
8169 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8170 (unwind_tmp_obstack_free, parse_frame_info)
8171 (update_context, cfi_read_fp, cfi_write_fp)
8172 (cfi_frame_chain, cfi_init_extra_frame_info)
8173 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8174 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8175
70eb15a4
CV
81762002-06-11 Corinna Vinschen <vinschen@redhat.com>
8177
8178 * v850-tdep.c (v850_type_is_scalar): New function.
8179 (v850_use_struct_convention): Match current gcc implementation
8180 as close as possible.
8181 (v850_push_arguments): Fix stack_offset handling. Don't write
8182 struct_addr into register. This is done by v850_store_struct_return.
8183 (v850_extract_return_value): Care for structs.
8184 (v850_store_return_value): Ditto.
8185 (v850_store_struct_return): Actually write address.
8186
482a4d06
ML
81872002-06-11 Michal Ludvig <mludvig@suse.cz>
8188
8189 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8190 without debug information too.
8191
d855c300
AC
81922002-06-10 Andrew Cagney <ac131313@redhat.com>
8193
8194 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8195 Make multi-arch pure.
8196 * gdbarch.h, gdbarch.c: Re-generate.
8197 * arm-tdep.c (arm_print_float_info): Update.
8198 * arch-utils.h (default_print_float_info): Update.
8199 * arch-utils.c (default_print_float_info): Update.
8200 * infcmd.c (float_info): Update call.
8201
dd12a101
AC
82022002-06-10 Andrew Cagney <ac131313@redhat.com>
8203
8204 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8205 the front of the initialize list.
8206
101dcfbe
AC
82072002-06-10 Andrew Cagney <ac131313@redhat.com>
8208
8209 * infrun.c (struct inferior_status): Replace fields
8210 selected_frame_address and selected_level with field
8211 selected_frame_id.
8212 (save_inferior_status): Update. Use get_frame_id.
8213 (struct restore_selected_frame_args): Delete.
8214 (restore_selected_frame): Update. Use frame_find_by_id.
8215 (restore_inferior_status): Update.
8216
8217 * breakpoint.h (struct breakpoint): Change type of
8218 watchpoint_frame to frame_id.
8219 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8220 call to get_current_frame.
8221 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8222 get_current_frame.
8223 (watchpoint_check): Use frame_find_by_id.
8224
8225 * frame.h (record_selected_frame): Delete declaration.
8226 * stack.c (record_selected_frame): Delete function.
8227
8228 * frame.h (struct frame_id): Define.
8229 (get_frame_id): Declare.
8230 (frame_find_by_id): Declare.
8231 * frame.c (frame_find_by_id): New function.
8232 (get_frame_id): New function.
8233
304270b6
AV
82342002-06-10 Andrey Volkov <avolkov@transas.com>
8235
8236 * ser-e7kpc.c: Fix duplicated define and call of
8237 _initialize_ser_e7000pc
8238
2f2cf184
DJ
82392002-06-09 Daniel Jacobowitz <drow@mvista.com>
8240
8241 * signals/signals.c (target_signal_from_host): Fix #ifdef
8242 SIGRTMIN case.
8243 (do_target_signal_to_host): Likewise.
8244
caaa3122
DJ
82452002-06-09 Daniel Jacobowitz <drow@mvista.com>
8246
8247 * mips-tdep.c (mips_find_abi_section): New function.
8248 (mips_gdbarch_init): Call it.
8249
6ac5df3a
MK
82502002-06-09 Mark Kettenis <kettenis@gnu.org>
8251
8252 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8253 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8254 after Andrew's 2002-06-08 gdbarch change.
8255
82ea117a
MK
82562002-06-09 Mark Kettenis <kettenis@gnu.org>
8257
8258 * i386-linux-nat.c (suppy_gregset): Don't supply
8259 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8260 register cache.
8261 (fill_gregset): Don't fetch it under the same circumstances.
8262
3c25f8c7
AC
82632002-06-09 Andrew Cagney <cagney@redhat.com>
8264
8265 * Makefile.in (callback_h): Define.
8266 (remote_sim_h): Update path to remote-sim.h.
8267 (remote-rdp.o): Add $(callback_h).
8268 (remote-sim.o): Use $(callback_h).
8269 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8270 * remote-rdp.c: Include "gdb/callback.h".
8271
1029b7fa
MK
82722002-06-09 Mark Kettenis <kettenis@gnu.org>
8273
8274 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8275 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8276
616675d3
AC
82772002-06-08 Andrew Cagney <ac131313@redhat.com>
8278
a3efda28
AC
8279 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8280 * rdi-share/serpardr.c: Ditto.
8281 * rdi-share/unixcomm.c: Ditto.
8282 * rdi-share/serdrv.c: Ditto.
8283 * rdi-share/hostchan.h: Ditto.
8284 * rdi-share/hostchan.c: Ditto.
8285 * rdi-share/host.h: Ditto.
8286 * rdi-share/devsw.c: Ditto.
8287
c5f10366
AC
8288 * objfiles.h: Change type of obj_private to void pointer.
8289 * pa64solib.c: Update copyright. Don't include "assert.h", use
8290 strcmp instead of STREQ, use LONGEST, do not use PTR
8291 * somsolib.c: Ditto.
8292
616675d3
AC
8293 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8294 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8295 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8296
e4b415d9
AC
82972002-06-08 Andrew Cagney <ac131313@redhat.com>
8298
8299 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8300 (default_get_saved_register): Delete function.
8301 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8302 generic_unwind_get_saved_register.
8303 * gdbarch.h, gdbarch.c: Re-generate.
8304
ca0d0b52
AC
83052002-06-08 Andrew Cagney <ac131313@redhat.com>
8306
8307 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8308 generic_func_frame_chain_valid.
8309 * gdbarch.h, gdbarch.c: Re-generate.
8310 * blockframe.c (generic_func_frame_chain_valid): Only check
8311 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8312 passing FP to PC_IN_CALL_DUMMY.
8313 Fix PR gdb/360.
8314
76860b5f
AC
83152002-06-08 Andrew Cagney <ac131313@redhat.com>
8316
8317 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8318 (register_gdbarch_data): Initialize init_p.
8319 (gdbarch_data): Initialize data pointer using the init function.
8320 (init_gdbarch_data): Delete function.
8321 (gdbarch_update_p): Update.
8322 (initialize_non_multiarch): Update.
8323 (struct gdbarch): Add field initialized_p.
8324 * gdbarch.h, gdbarch.c: Re-generate.
8325
8dda9770
ML
83262002-06-07 Michal Ludvig <mludvig@suse.cz>
8327
8328 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8329 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8330 better do the things actually here.
8331 * x86-64-tdep.c (x86_64_register_name2nr): New.
8332 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8333 (x86_64_gdbarch_init): Respect the above change.
8334 * x86-64-tdep.h (x86_64_register_name2nr)
8335 (x86_64_register_nr2name): Add prototypes.
8336 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8337
3d79a47c
MS
83382002-06-06 Michael Snyder <msnyder@redhat.com>
8339
7bd91a28
MS
8340 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8341 Delete extra braces and re-indent.
8342 (d10v_store_return_value): Char return values
3d79a47c
MS
8343 must be shifted over by one byte in R0.
8344 (d10v_extract_return_value): Delete extra braces, re-indent.
8345
095a4c96
EZ
83462002-06-06 Elena Zannoni <ezannoni@redhat.com>
8347
8348 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8349 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8350 (d10v_integer_to_address): Rewrite.
8351 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8352 the d10v specific functions which take care of converting to the
8353 correct space.
8354
e8a77ca4
EZ
83552002-06-06 Elena Zannoni <ezannoni@redhat.com>
8356
8357 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8358 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8359
4f2e4a4f
AC
83602002-06-02 Andrew Cagney <ac131313@redhat.com>
8361
8362 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8363 includes.
8364 * config/tm-linux.h: Ditto.
8365 * config/alpha/tm-alphalinux.h: Ditto.
8366 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8367 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8368 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8369 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8370 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8371 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8372 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8373 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8374 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8375 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8376 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8377 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8378 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8379 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8380 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8381 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8382 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8383 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8384 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8385 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8386 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8387 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8388 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8389 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8390 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8391 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8392 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8393 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8394 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8395 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8396 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8397 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8398 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8399 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8400 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8401 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8402 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8403
ae2ab2ce
AS
84042002-05-04 Aidan Skinner <aidan@velvet.net>
8405
8406 * ada-exp.tab.c: New file
8407 * ada-exp.y: New file
8408 * ada-lang.c: New file
8409 * ada-lang.h: New file
8410 * ada-lex.c: New file
8411 * ada-lex.l: New file
8412 * ada-tasks.c: New file
8413 * ada-typeprint.c: New file
8414 * ada-valprint.c: New file
8415
0ddd0135
JT
84162002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8417
8418 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8419 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8420
750fbacc
JT
84212002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8422
8423 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8424 insetead of ppc-linux-tdep.o.
8425 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8426 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8427
df94e18a
AC
84282002-06-02 Andrew Cagney <ac131313@redhat.com>
8429
8430 2002-05-07 Christian Groessler <chris@groessler.org>
8431 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8432 bit register contents for little endian hosts.
8433
1a38ab75
AC
84342002-06-01 Andrew Cagney <ac131313@redhat.com>
8435
8436 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8437 any maintainer.
8438
8b1632ac
AC
84392002-06-01 Andrew Cagney <ac131313@redhat.com>
8440
8441 * gdbarch.h: Regenerate.
8442
627054c8
AC
84432002-06-01 Andrew Cagney <ac131313@redhat.com>
8444
8445 * MAINTAINERS: Add everyone to write-after-approval list.
8446
4f460812
AC
84472002-06-01 Andrew Cagney <ac131313@redhat.com>
8448
8449 * stack.c (frame_info): Use frame_register_unwind instead of
8450 saved_regs. Mention when the SP is on the stack or in a register.
8451
8452 * frame.h (frame_register_unwind_ftype): Define. Document.
8453 (struct frame_info): Add field register_unwind and
8454 register_unwind_cache.
8455 (frame_register_unwind): Declare.
8456 (generic_unwind_get_saved_register): Declare.
8457
8458 * frame.c (frame_register_unwind): New function.
8459 (generic_unwind_get_saved_register): New function.
8460
8461 * blockframe.c (generic_call_dummy_register_unwind): New function.
8462 (frame_saved_regs_register_unwind): New function.
8463 (set_unwind_by_pc): New function.
8464 (create_new_frame): New function.
8465 (get_prev_frame): New function.
8466
de888f76
AC
84672002-05-30 Andrew Cagney <ac131313@redhat.com>
8468
8469 * a29k-share/: Delete directory.
8470 * remote-vx29k.c: Delete file.
8471
2f2c3626
JT
84722002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8473
8474 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8475 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8476
9ce5c36a
JT
84772002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8478
8479 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8480 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8481 (sparc64nbsd-nat.o)
8482 (sparcnbsd-nat.o)
8483 (sparcnbsd-tdep.o): New dependency lists.
8484 * NEWS: Note new UltraSPARC NetBSD native configuration.
8485 * configure.host (sparc64-*-netbsd*): New host.
8486 * configure.tgt (sparc-*-netbsdelf*)
8487 (sparc-*-netbsd*): Set gdb_target to nbsd.
8488 (sparc64-*-netbsd*): New target.
8489 * sparc64nbsd-nat.c: New file.
8490 * sparcnbsd-nat.c: New file.
8491 * sparcnbsd-tdep.c: New file.
8492 * sparcnbsd-tdep.h: New file.
8493 * config/sparc/nbsd.mt: New file.
8494 * config/sparc/nbsd64.mh: New file.
8495 * config/sparc/nbsd64.mt: New file.
8496 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8497 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8498 (HOST_IPC): Remove.
8499 * config/sparc/nbsdaout.mt: Remove.
8500 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8501 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8502 (HOST_IPC): Remove.
8503 * config/sparc/nbsdelf.mt: Remove.
8504 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8505 sparc-nat.c compatiblity defines.
8506 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8507 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8508 * config/sparc/tm-nbsd64.h: New file.
8509 * config/sparc/tm-nbsdaout.h: Remove.
8510 * config/sparc/xm-nbsd.h: Remove.
8511
ef3cf062
JT
85122002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8513
8514 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8515 * sparc-tdep.c: Include osabi.h.
8516 (gdbarch_tdep): Add osabi member.
8517 (_initialize_sparc_tdep): Use gdbarch_register.
8518 (sparc_gdbarch_init): Use generic OS ABI framework.
8519 (sparc_dump_tdep): New function.
8520
ee8ff470
KB
85212002-05-30 Kevin Buettner <kevinb@redhat.com>
8522
8523 * corefile.c (do_captured_read_memory_integer): Return non-zero
8524 result.
8525 (safe_read_memory_integer): Copy result of memory read when
8526 status is non-zero. Also, add comments.
8527
7b112f9c
JT
85282002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8529
8530 * Makefile.in (ppc_tdep_h): Define.
8531 (ppc-linux-nat.o)
8532 (ppc-linux-tdep.o)
8533 (rs6000-tdep.o): Use $(ppc_tdep_h).
8534 (ppc-sysv-tdep.o)
8535 (ppcnbsd-nat.o)
8536 (ppcnbsd-tdep.o): New dependency lists.
8537 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8538 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8539 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8540 (ppc_sysv_abi_broken_use_struct_convention)
8541 (ppc_sysv_abi_use_struct_convention)
8542 (ppc_sysv_abi_push_arguments): Move to...
8543 * ppc-sysv-tdep.c: ...here.
8544 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8545 * rs6000-tdep.c (process_note_abi_tag_sections)
8546 (get_elfosabi): Remove.
8547 (rs6000_gdbarch_init): Use generic OS ABI framework.
8548 (rs6000_dump_tdep): New function.
8549 (_initialize_rs6000_tdep): Use gdbarch_register.
8550 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8551 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8552 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8553 of ppc-linux-tdep.o.
8554 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8555 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8556 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8557 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8558 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8559 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8560
480dd42a
JB
85612002-05-29 Jim Blandy <jimb@redhat.com>
8562
8563 * macroscope.c (default_macro_scope): Put `void' in empty argument
8564 list.
8565
4182591f
AC
85662002-05-29 Andrew Cagney <ac131313@redhat.com>
8567
8568 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8569 * arch-utils.c: Include "sim-regno.h".
8570 * gdbarch.sh: Don't include "sim-regno.h".
8571 * gdbarch.h, gdbarch.c: Regenerate.
8572 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8573 here.
8574 * arch-utils.h (legacy_register_sim_regno): To here.
8575 * remote-sim.c (legacy_register_sim_regno): Move function from
8576 here.
8577 * arch-utils.c (legacy_register_sim_regno): To here.
8578
8238d0bf
AC
85792002-05-28 Andrew Cagney <ac131313@redhat.com>
8580
8581 * sim-regno.h: New file.
8582 * Makefile.in (sim_regno_h): Define.
8583 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8584 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8585 (legacy_register_sim_regno): New function.
8586 (one2one_register_sim_regno): New function.
8587 (gdbsim_fetch_register): Rewrite.
8588 (gdbsim_store_register): Only store a register when
8589 REGISTER_SIM_REGNO is valid.
8590 * d10v-tdep.c: Include "sim-regno.h".
8591 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8592 (d10v_ts3_register_sim_regno): Ditto.
8593 * gdbarch.sh: Include "sim-regno.h".
8594 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8595 * gdbarch.h, gdbarch.c: Regenerate.
8596 * arch-utils.h (default_register_sim_regno): Delete declaration.
8597 * arch-utils.c (default_register_sim_regno): Delete function.
8598
485721b1
JT
85992002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8600
8601 * ppcnbsd-nat.c: Rewrite.
8602 * ppcnbsd-tdep.c: New file.
8603 * ppcnbsd-tdep.h: New file.
8604 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8605 solib.o, and solib-svr4.o.
8606 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8607 nbsd-tdep.o, and corelow.o.
8608
697f244d
AC
86092002-05-28 Andrew Cagney <ac131313@redhat.com>
8610
8611 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8612 `tr' and `sed'. Mention that `broken' targets are not expected to
8613 build.
8614
f08caad1 86152002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8616
8617 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8618 Let PC point right after the prologue before looking up symbols.
8619
3139facc
MH
86202002-05-27 Martin M. Hunt <hunt@redhat.com>
8621
8622 * i386-tdep.c (i386_register_virtual_type): Return
8623 builtin_type_vec128i for SSE registers.
8624
8625 * gdbtypes.h (builtin_type_vec128i): Declare.
8626
8627 * gdbtypes.c (build_builtin_type_vec128i): New function.
8628 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8629 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8630 (build_gdbtypes): Initialize new builtin vector types.
8631 (_initialize_gdbtypes): Register new vector types with gdbarch.
8632
6e3ba3b8
JT
86332002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8634
8635 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8636 since it has been multi-arch'd.
8637 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8638 Move Alpha and VAX multi-arch news entries to same section
8639 as other multi-arch news.
8640
93d5585d
JT
86412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8642
8643 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8644 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8645 static. Rename some register numbers to put them in ns32k-tdep
8646 private namespace.
8647 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8648 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8649 functions.
8650 (_initialize_ns32k_tdep): Use gdbarch_register.
8651 * ns32k-tdep.h: New file.
8652 * ns32knbsd-tdep.c: New file.
8653 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8654 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8655 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8656 REGISTER_BYTES, REGISTER_BYTE): Remove.
8657 * config/ns32k/tm-ns32k.h: New file.
8658 * config/ns32k/tm-umax.h: Remove.
8659
efb2c70e
JT
86602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8661
8662 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8663 ns32k_store_struct_return, ns32k_extract_return_value,
8664 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8665 functions.
8666 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8667 ns32k_saved_pc_after_call.
8668 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8669 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8670 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8671 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8672 ns32k_extract_struct_value_address.
8673
7bcc927b
JT
86742002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8675
8676 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8677 ns32k_fix_call_dummy): New.
8678 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8679 ns32k_call_dummy_words.
8680 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8681 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8682 CALL_DUMMY_NARGS): Remove.
8683 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8684
78f9d765
JT
86852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8686
8687 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8688 ns32k_frame_saved_pc, ns32k_frame_args_address,
8689 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8690 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8691 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8692 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8693 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8694 (BREAKPOINT): Remove..
8695 (FRAME_CHAIN): Define as ns32k_frame_chain.
8696 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8697 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8698 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8699 (FRAME_FIND_SAVED_REGS): Remove.
8700 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8701 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8702 (POP_FRAME): Define as ns32k_pop_frame.
8703
f2c762e0
JT
87042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8705
8706 * ns32k-tdep.c (ns32k_register_byte_32082,
8707 ns32k_register_byte_32382, ns32k_register_raw_size,
8708 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8709 functions.
8710 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8711 ns32k_register_byte_32382.
8712 * config/ns32k/tm-umax.h: Update copyright years.
8713 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8714 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8715 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8716 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8717 (ns32k_get_enter_addr): Fix prototype.
8718
af137673
JT
87192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8720
8721 * ns32k-tdep.c: Update copyright years.
8722 (ns32k_register_name_32082): New function.
8723 (ns32k_register_name_32382): Ditto.
8724 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8725 (REGISTER_NAME): Define as ns32k_register_name_32382.
8726 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8727 (REGISTER_NAME): Define as ns32k_register_name_32082.
8728
a8bc7b56
JB
87292002-05-24 Jim Blandy <jimb@redhat.com>
8730
8731 * dwarf2read.c (free_line_header): Use xfree, not free.
8732
83a45910
JT
87332002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8734
8735 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8736 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8737
0db71247
AC
87382002-05-23 Andrew Cagney <ac131313@redhat.com>
8739
8740 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8741
b9e5e4dd
AC
87422002-05-23 Andrew Cagney <ac131313@redhat.com>
8743
8744 From Ross Alexander at NEC Europe:
8745 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8746
de530e84
MS
87472002-05-23 Michael Snyder <msnyder@redhat.com>
8748
8749 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8750 for input, rather than parse_and_eval_address.
8751
b91b96f4
AC
87522002-05-23 Andrew Cagney <ac131313@redhat.com>
8753
8754 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8755 * Makefile.in (sim_d10v_h): Update definition.
8756
8b279e7a
AC
87572002-05-24 Andrew Cagney <cagney@redhat.com>
8758
8759 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8760 change `2002-05-22 Michael Snyder' below.
8761 (d10v_push_arguments): Ditto.
8762 (d10v_extract_return_value): Ditto.
8763
0a3d0425
JB
87642002-05-23 Jim Blandy <jimb@redhat.com>
8765
8766 * macrotab.c (check_for_redefinition): Don't complain if the new
8767 definition is the same as the previous one. Take more arguments
8768 to allow the comparison.
8769 (macro_define_object, macro_define_function): Pass more arguments
8770 to check_for_redefinition.
8771
78eac43e
MS
87722002-05-22 Michael Snyder <msnyder@redhat.com>
8773
8774 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8775 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8776 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8777 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8778 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8779 Add a temp variable to save a call (and a memory read).
8780 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8781 if possible (so that PC_IN_CALL_DUMMY will work).
8782
9bc1edb8
CV
87832002-05-22 Corinna Vinschen <vinschen@redhat.com>
8784
8785 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8786
005ef3d2
ML
87872002-05-22 Michal Ludvig <mludvig@suse.cz>
8788
8789 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8790 fde->cie_ptr.
8791 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8792 (dwarf2_build_frame_info): Add offset to fde->initial_location
8793 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8794 (execute_stack_op): Change type of 'result' from ULONGEST to
8795 CORE_ADDR.
005ef3d2 8796
fcf4f891
JT
87972002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8798
8799 * config/alpha/tm-nbsd.h: Include solib.h.
8800
cfef91e4
JT
88012002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8802
8803 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8804 assumptions about the host's byte order.
8805
9964235a
JT
88062002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8807
8808 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8809 to dependency list.
8810 * alphanbsd-tdep.c: Include solib-svr4.h.
8811 * shnbsd-tdep.c: Ditto.
8812
9eeef8ef
JT
88132002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8814
8815 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8816 nbsd-tdep.h to dependency list.
8817 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8818 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8819 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8820 nbsdaout.mh and nbsdelf.mh consistently.
8821 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8822 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8823 nbsdaout.mt and nbsdelf.mh consistently.
8824 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8825 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8826 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8827 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8828 a.out shared library stuff from here...
8829 * config/nm-nbsdaout.h: ...to here.
8830 * config/tm-nbsd.h: Remove.
8831 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8832 * config/arm/nbsd.mh: Remove.
8833 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8834 nbsd-tdep.o.
8835 * config/arm/nbsdaout.mh: New file.
8836 * config/arm/nbsdelf.mh: New file.
8837 * config/arm/nm-nbsdaout.h: New file.
8838 * config/i386/nbsd.mh: Remove.
8839 * config/i386/nbsd.mt: Remove.
8840 * config/i386/nbsdaout.mh: New file.
8841 * config/i386/nbsdaout.mt: New file.
8842 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8843 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8844 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8845 i386_register_u_addr): Remove.
8846 * config/i386/nm-nbsdaout.h: New file.
8847 * config/i386/nm-nbsdelf.h: Remove.
8848 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8849 (USE_STRUCT_CONVENTION): Remove.
8850 * config/i386/tm-nbsdaout.h: New file.
8851 * config/i386/tm-nbsdelf.h: Remove.
8852 * config/m68k/nbsd.mh: Remove.
8853 * config/m68k/nbsd.mt: Remove.
8854 * config/m68k/nbsdaout.mh: New file.
8855 * config/m68k/nbsdaout.mt: New file.
8856 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8857 * config/m68k/nm-nbsdaout.h: New file.
8858 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8859 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8860 * config/ns32k/nbsd.mh: Remove.
8861 * config/ns32k/nbsd.mt: Remove.
8862 * config/ns32k/nbsdaout.mh: New file.
8863 * config/ns32k/nbsdaout.mt: New file.
8864 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8865 * config/ns32k/nm-nbsdaout.h: New file.
8866 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8867 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8868 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8869 (SVR4_SHARED_LIBS): Remove.
8870 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8871 * config/sparc/nbsd.mh: Remove.
8872 * config/sparc/nbsd.mt: Remove.
8873 * config/sparc/nbsdaout.mh: New file.
8874 * config/sparc/nbsdaout.mt: New file.
8875 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8876 * config/sparc/nbsdelf.mt: New file.
8877 * config/sparc/nm-nbsdaout.h: New file.
8878 * config/sparc/nm-nbsdelf.h: Remove.
8879 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8880 * config/sparc/tm-nbsdaout.h: New file.
8881
257ce470
JT
88822002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8883
8884 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8885 mipsnbsd-tdep.c
8886 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8887
76a6d5fe
JT
88882002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8889
8890 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8891 shnbsd-nat.c.
8892 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8893
45888261
JT
88942002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8895
8896 * NEWS: Note new MIPS NetBSD native configuration.
8897 * configure.host (mips*-*-netbsd*): New host.
8898 * configure.tgt (mips*-*-netbsd*): New target.
8899 * mipsnbsd-nat.c: New file.
8900 * mipsnbsd-tdep.c: New file.
8901 * mipsnbsd-tdep.h: New file.
8902 * config/mips/nbsd.mh: New file.
8903 * config/mips/nbsd.mt: New file.
8904 * config/mips/nm-nbsd.h: New file.
8905 * config/mips/tm-nbsd.h: New file.
8906
70f80edf
JT
89072002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8908
8909 * Makefile.in (SFILES): Add osabi.c.
8910 (COMMON_OBS): Add osabi.o.
8911 (osabi.o): New dependency list.
8912 * osabi.c: New file.
8913 * osabi.h: New file.
8914 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8915
8916 * Makefile.in (alpha_tdep_h): Define and use instead of
8917 alpha-tdep.h.
8918 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8919 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8920 Remove.
8921 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8922 * alpha-tdep.h: Include osabi.h.
8923 (alpha_abi): Remove.
8924 (gdbarch_tdep): Use generic OS ABI framework.
8925 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8926 gdbarch_register_osabi.
8927 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8928 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8929 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8930
8931 * Makefile.in (sh_tdep_h): Add osabi.h.
8932 * sh-tdep.h (sh_osabi): Remove.
8933 (gdbarch_tdep): Use generic OS ABI framework.
8934 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8935 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8936 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8937 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8938
8939 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8940 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8941 gdbarch_register_osabi.
8942 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8943 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8944 (get_elfosabi): Rename to...
8945 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8946 ABI framework support routines.
8947 (arm_gdbarch_init): Use generic OS ABI framework.
8948 (arm_dump_tdep): Likewise.
8949 (_initialize_arm_tdep): Likewise.
8950 * arm-tdep.h: Include osabi.h.
8951 (arm_abi): Remove.
8952 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8953 osabi member.
8954 (arm_gdbarch_register_os_abi): Remove prototype.
8955 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8956 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8957
8958 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8959 * mips-tdep.c: Include osabi.h.
8960 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8961 OS ABI framework.
8962
d194345b
KH
89632002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8964
8965 * h8300-tdep.c: Fix formatting.
8966
70c6b0d1
EZ
89672002-05-20 Elena Zannoni <ezannoni@redhat.com>
8968
8969 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8970 printing vector registers.
8971
165b8e33
AC
89722002-05-19 Andrew Cagney <ac131313@redhat.com>
8973
8974 From Fernando Nasser:
8975 * remote.c (remote_async_open_1): Re-throw the exception when the
8976 connection fails.
8977 (remote_cisco_open): Ditto.
8978 (remote_open_1): Ditto.
8979
36918e70
AC
89802002-05-19 Andrew Cagney <ac131313@redhat.com>
8981
8982 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8983 (remote_start_remote): Add uiout parameter. Pass through to
8984 remote_start_remote_dummy.
8985 (remote_open_1): Use catch_exception instead of catch_errors.
8986 (remote_async_open_1): Ditto.
8987 (remote_cisco_open): Ditto.
8988
ae44c0c4
AC
89892002-05-19 Andrew Cagney <ac131313@redhat.com>
8990
8991 * remote.c (remote_start_remote): Replace PTR with void pointer.
8992 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8993 static.
8994
8efe637d
AC
89952002-05-18 Andrew Cagney <ac131313@redhat.com>
8996
8997 * gdb_indent.sh: Allow the script to be run in the sim directory.
8998
2f1b5984
MK
89992002-05-18 Mark Kettenis <kettenis@gnu.org>
9000
f0f625e2
MK
9001 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9002 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9003
2f1b5984
MK
9004 * corelow.c (core_open): Only call set_gdbarch_from_file if
9005 exec_bfd is NULL.
9006
fc974602
AV
90072002-05-17 Andrey Volkov <avolkov@transas.com>
9008
9009 * h8300-tdep.c: Add support of EXR register
9010 * config/h8300/tm-h8300.h: Ditto.
9011
906709f4
AV
90122002-05-17 Andrey Volkov <avolkov@transas.com>
9013
9014 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9015
6e591d68
AV
90162002-05-17 Andrey Volkov <avolkov@transas.com>
9017
9018 * h8300-tdep.c: Change literal regnums to REGNO.
9019
84f0252a
JB
90202002-05-17 Jim Blandy <jimb@redhat.com>
9021
e0e9281e
JB
9022 * NEWS: Note addition of macro support.
9023
84f0252a
JB
9024 Expand preprocessor macros in C expressions.
9025 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9026 (scan_macro_expansion, scanning_macro_expansion,
9027 finished_macro_expansion): New function declarations.
9028 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9029 variable declarations.
9030 * parser-defs.h (expression_context_pc): New declaration.
9031 * parse.c (expression_context_pc): New variable.
9032 (parse_exp_1): Set expression_context_pc, as well as
9033 expression_context_block.
9034 * c-exp.y (yylex): If we're not already reading the result of a
9035 macro expansion, try to macro-expand the next token. When we're
9036 done scanning a macro expansion, switch back to the mainline text.
9037 Commas and `if's in a macro's expansion don't terminate the input.
9038 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9039 (macro_original_text, macro_expanded_text,
9040 expression_macro_lookup_func, expression_macro_lookup_baton): New
9041 variables.
9042 (scan_macro_expansion, scanning_macro_expansion,
9043 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9044 c_preprocess_and_parse): New functions.
9045 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9046 c_preprocess_and_parse, instead of c_parse.
9047 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9048 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9049
1c509ca8
JR
9050Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9051
9052 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9053 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9054 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9055
2250ee0c
CV
90562002-05-17 Corinna Vinschen <vinschen@redhat.com>
9057
9058 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9059
ab3b8126
JT
90602002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9061
9062 * Makefile.in (sh_tdep_h): Define and use.
9063 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9064 register enum): Move to...
9065 * * sh-tdep.h: ...here.
9066 * sh-tdep.c: Include sh-tdep.h.
9067 * sh3-rom.c: Likewise.
9068 * shnbsd-tdep.c: Likewise.
9069
ed9d4749
MS
90702002-05-16 Michael Snyder <msnyder@redhat.com>
9071
9072 * arm-tdep.c: Spelling fix in comment.
9073
2e276125
JB
90742002-05-16 Jim Blandy <jimb@redhat.com>
9075
6821892e
JB
9076 Add commands for manually expanding macros and showing their
9077 definitions.
9078 * macrocmd.c, macroscope.c, macroscope.h: New files.
9079 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9080 (macroscope_h): New variable.
9081 (HFILES_NO_SRCDIR): Add macroscope.h.
9082 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9083 (macroscope.o, macrocmd.o): New rules.
9084
2e276125
JB
9085 Teach the Dwarf 2 reader to read macro information.
9086 * dwarf2read.c: #include "macrotab.h".
9087 (dwarf_macinfo_buffer): New variable.
9088 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9089 dwarf_macinfo_size.
9090 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9091 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9092 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9093 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9094 dwarf2_macro_spaces_in_definition): New complaints.
9095 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9096 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9097 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9098 the partial symbol table.
9099 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9100 from what's recorded in the partial symbol table.
9101 (read_file_scope): If the compilation unit has a
9102 `DW_AT_macro_info' attribute, read its macro information.
9103 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9104
2f53fe6c
DJ
91052002-05-16 Daniel Jacobowitz <drow@mvista.com>
9106
9107 Fix PR gdb/546
9108 * ser-tcp.c: Don't include <netinet/udp.h>.
9109
2be99286
SC
91102002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9111
9112 * MAINTAINERS: Update my email address.
9113
c9af212b 91142002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9115
9116 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9117 include file of the same name.
9118
bf5f1a52
CV
91192002-05-16 Corinna Vinschen <vinschen@redhat.com>
9120
9121 * configure.tgt: Mark v850 as multi-arched.
9122 * config/v850/tm-v850.h: Remove file.
9123 * config/v850/v850.mt: Eliminate TM_FILE.
9124
435e042a
CV
91252002-05-16 Corinna Vinschen <vinschen@redhat.com>
9126
9127 * v850-tdep.c: Full multi-arch.
9128 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9129 Define GDB_MULTI_ARCH to 2.
9130
9819c6c8
PM
91312002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9132
9133 * p-exp.y (current_type): New static variable.
9134 Carries the type of the expression at the position that is parsed.
9135 (push_current_type, pop_current_type): Two new functions. Used
9136 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9137 (search_field): New static variable. Set to one after parsing a point
9138 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9139 (FIELDNAME): New token. After a point only a token belonging to
9140 current_type type definition is allowed.
9141 (all over token rules): reset and change current_type according
9142 to rules.
9143 (exp '[' rule): insert implicit array index field if
9144 exp is a pascal string type.
9145
3a06899a
CV
91462002-05-16 Corinna Vinschen <vinschen@redhat.com>
9147
9148 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9149 frame info. Use frame_info's saved_regs instead of matching member
9150 in extra_frame_info throughout.
9151 (v850_frame_init_saved_regs): New function.
9152 (v850_init_extra_frame_info): Move most functionality into
9153 v850_frame_init_saved_regs().
9154 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9155 (v850_frame_find_saved_regs): Remove declaration.
9156 (FRAME_FIND_SAVED_REGS): Remove definition.
9157 (v850_frame_init_saved_regs): Add declaration.
9158 (FRAME_INIT_SAVED_REGS): Add definition.
9159
6ed14b0e
CV
91602002-05-16 Corinna Vinschen <vinschen@redhat.com>
9161
9162 * v850-tdep.c: Begin multi-arch'ing v850.
9163 (v850_target_architecture_hook): Remove function.
9164 (v850_gdbarch_init): New function. Add code previously in
9165 v850_target_architecture_hook().
9166 (_initialize_v850_tdep): Don't set target_architecture_hook.
9167 Call register_gdbarch_init() instead.
9168
42725910
DJ
91692002-05-16 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9172 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9173 (fixup_class_method_type): Likewise.
9174
99d9066e
JB
91752002-05-15 Jim Blandy <jimb@redhat.com>
9176
9177 Add macro structures to GDB's symbol tables. Nobody puts anything
9178 in them yet.
9179 * symtab.h (struct symtab): New member: `macro_table'.
9180 * buildsym.h (pending_macros): New global variable.
9181 * buildsym.c: #include "macrotab.h".
9182 (buildsym_init): Initialize `pending_macros'.
9183 (end_symtab): If we found macro information while reading a CU's
9184 debugging info, do build a symtab structure for it. Make the
9185 symtab point to the macro information, and clear the
9186 `pending_macros' pointer which held it while we were reading the
9187 debug info.
9188 (really_free_pendings): Free any pending macro table.
9189 * objfiles.h (struct objfile): New member: `macro_cache'.
9190 * objfiles.c (allocate_objfile): Set allocate and free functions
9191 for the macro cache's objstack.
9192 (free_objfile): Empty the macro cache's obstack.
9193 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9194 set new allocate and free functions for it.
9195 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9196 free functions for the macro cache's objstack. (Why is this
9197 function building its own objfile?)
9198 * symmisc.c (print_objfile_statistics): Print statistics on the
9199 macro bcache.
9200 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9201
c899585b
RE
92022002-05-15 Richard Earnshaw <rearnsha@arm.com>
9203
9204 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9205 (REGISTER_U_ADDR): Delete definition.
9206 (arm_register_u_addr): Delete declaration.
9207
a6cdd8c5
RE
92082002-05-15 Richard Earnshaw <rearnsha@arm.com>
9209
9210 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9211 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9212
c97dcfc7
AC
92132002-05-14 Andrew Cagney <ac131313@redhat.com>
9214
9215 * regcache.c (register_valid): Revise comments refering to "Not
9216 available" and "unavailable".
9217 * frame.c (frame_register_read): Ditto.
9218 * findvar.c (value_of_register): Ditto.
9219
93021b7d
AC
92202002-05-15 Andrew Cagney <cagney@redhat.com>
9221
9222 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9223 (remote-sim.o): Update dependencies.
9224 (d10v-tdep.o): Specify dependencies.
9225 (sim_d10v_h): Define.
9226
a86bc61c
JB
92272002-05-14 Jim Blandy <jimb@redhat.com>
9228
9229 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9230 * macrotab.c (macro_lookup_inclusion, find_definition,
9231 new_macro_table): Same.
9232
9233 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9234 not `! strcmp ()'. This is a dubious improvement.
9235 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9236
9237 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9238 although it's not necessary, to avoid a warning.
9239
2fdde8f8
DJ
92402002-05-14 Daniel Jacobowitz <drow@mvista.com>
9241
9242 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9243 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9244 TYPE_INSTANCE_FLAGS.
9245 (struct main_type): New.
9246 (struct type): Move most members to struct main_type. Change
9247 cv_type and as_type to new type_chain member. Add instance_flags.
9248 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9249 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9250 (finish_cv_type): Remove prototype.
9251 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9252 Set TYPE_CHAIN.
9253 (alloc_type_instance): New function.
9254 (smash_type): New function.
9255 (make_pointer_type, make_reference_type, make_function_type)
9256 (smash_to_member_type, smash_to_method_type): Call smash_type.
9257 (make_qualified_type): New function.
9258 (make_type_with_address_space): Call make_qualified_type.
9259 (make_cv_type): Likewise.
9260 (finish_cv_type): Remove unnecessary function.
9261 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9262 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9263 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9264 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9265 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9266 * hpread.c (hpread_read_struct_type): Likewise.
9267 * stabsread.c (read_struct_type): Likewise.
9268
843fedf4
EZ
92692002-05-14 Elena Zannoni <ezannoni@redhat.com>
9270
9271 * configure.tgt: Add a catch all sh* target, for cases like
9272 sh[2,3,4]-elf and sh-hms.
9273
05a6c72c
KS
92742002-05-14 Keith Seitz <keiths@redhat.com>
9275
9276 * event-loop.c (create_file_handler): Don't do anything but
9277 update data when we are given a fd which we are already
9278 monitoring.
9279
5d085aaf
ML
92802002-05-14 Michal Ludvig <mludvig@suse.cz>
9281
9282 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9283 (update_context): Use __func__ in warnings.
9284
9db8d71f
DJ
92852002-05-14 Daniel Jacobowitz <drow@mvista.com>
9286
9287 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9288 and tcp_close to net_open and net_close.
9289 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9290 using UDP if requested. Don't try to disable Nagle on UDP
9291 sockets.
9292 * remote.c (remote_serial_open): New function. Warn about UDP.
9293 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9294
5dbc6baa
EZ
92952002-05-13 Elena Zannoni <ezannoni@redhat.com>
9296
9297 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9298
cc3023f7
EZ
92992002-05-13 Elena Zannoni <ezannoni@redhat.com>
9300
9301 * configure.tgt: Remove sh-hms target.
9302 * MAINTAINERS: Don't list sh-hms as a separate target.
9303
ec2bcbe7
JB
93042002-05-13 Jim Blandy <jimb@redhat.com>
9305
9306 Add first preprocessor macro-expansion files.
9307 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9308 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9309 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9310 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9311 (COMMON_OBS): Add macrotab.o, macroexp.o.
9312 (macroexp.o, macrotab.o): New rules.
9313
6d531722
AC
93142002-05-13 Andrew Cagney <ac131313@redhat.com>
9315
9316 * config/m88k/tm-m88k.h: Update copyright.
9317 (m88k_target_write_pc): Declare
9318 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9319 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9320 (SHIFT_INST_REGS): Update definition.
9321 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9322 using old definition of TARGET_WRITE_PC.
9323 * regcache.c (generic_target_write_pc): Delete code handling
9324 NNPC_REGNUM.
9325 * gdbarch.sh (NNPC_REGNUM): Delete.
9326 * gdbarch.h, gdbarch.c: Regenerate.
9327
3e3f2739
RE
93282002-05-13 Richard Earnshaw <rearnsha@arm.com>
9329
9330 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9331 builtin reg number.
9332
0004e5a2
DJ
93332002-05-13 Daniel Jacobowitz <drow@mvista.com>
9334
9335 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9336 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9337 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9338 access macros.
9339 * c-typeprint.c (cp_type_print_method_args): Likewise.
9340 (c_type_print_args): Likewise.
9341 * d10v-tdep.c (d10v_push_arguments): Likewise.
9342 (d10v_extract_return_value): Likewise.
9343 * expprint.c (print_subexp): Likewise.
9344 * gdbtypes.c (lookup_primitive_typename): Likewise.
9345 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9346 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9347 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9348 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9349 (TYPE_VECTOR): Likewise.
9350 * hpread.c (hpread_read_struct_type)
9351 (fix_static_member_physnames, fixup_class_method_type)
9352 (hpread_type_lookup): Likewise.
9353 * mdebugread.c (parse_symbol, parse_type): Likewise.
9354 * p-lang.c (is_pascal_string_type): Likewise.
9355 * valops.c (hand_function_call): Likewise.
9356 * x86-64-tdep.c (classify_argument): Likewise.
9357
9358 * hpread.c (hpread_read_function_type)
9359 (hpread_read_doc_function_type): Call replace_type.
9360 * dstread.c (create_new_type): Delete.
9361 (decode_dst_structure, process_dst_function): Call alloc_type.
9362 Use type access macros.
9363
dff95cc7
MK
93642002-05-12 Mark Kettenis <kettenis@gnu.org>
9365
9366 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9367 the're not supported by the current architecture.
9368 (i387_fill_fxsave): Likewise.
9369
bbcd32ad
FF
93702002-05-12 Fred Fish <fnf@redhat.com>
9371
9372 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9373 sect_index_xxx members to index the first slot in section_offsets
9374 if all of the section_offsets are zero.
9375
89cf4787
MK
93762002-05-12 Mark Kettenis <kettenis@gnu.org>
9377
9378 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9379 checked in with last change.
9380
1f77ffc5
MK
93812002-05-12 Mark Kettenis <kettenis@gnu.org>
9382
9383 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9384 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9385 config.sub.
9386
89b8b4a9
DJ
93872002-05-12 Daniel Jacobowitz <drow@mvista.com>
9388
9389 * Makefile.in: Update dependencies.
9390
14a5e767
AC
93912002-05-11 Andrew Cagney <ac131313@redhat.com>
9392
9393 * language.c (local_hex_string_custom): Simplify. Do not depend
9394 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9395
9396 * memattr.c (mem_info_command): Replace calls to
9397 longest_local_hex_string and longest_local_hex_string_custom.
9398 * buildsym.c (make_blockvector): Ditto.
9399 * solib.c (info_sharedlibrary_command): Ditto.
9400 * tracepoint.c (tracepoints_info): Ditto.
9401 * symtab.c (print_msymbol_info): Ditto.
9402
9403 * language.c (local_hex_string): Delete.
9404 (local_hex_string_custom): Delete.
9405 (longest_local_hex_string): Rename to local_hex_string.
9406 (longest_local_hex_string_custom): Rename to
9407 local_hex_string_custom.
9408 * language.h (local_hex_string): Change parameter type to LONGEST.
9409 (local_hex_string_custom): Ditto.
9410 (longest_local_hex_string): Delete declaration.
9411 (longest_local_hex_string_custom): Ditto.
9412
9413 * solib.c: Update copyright.
9414 * memattr.c: Update copyright.
9415
13d01224
AC
94162002-05-11 Andrew Cagney <ac131313@redhat.com>
9417
9418 * arch-utils.h (legacy_register_to_value): Declare.
9419 (legacy_value_to_register): Declare.
9420 (legacy_convert_register_p): Declare.
9421 * arch-utils.c (legacy_register_to_value): New function.
9422 (legacy_value_to_register): New function.
9423 (legacy_convert_register_p): New function.
9424
9425 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9426 (VALUE_TO_REGISTER): Define.
9427 (CONVERT_REGISTER_P): Define.
9428 * gdbarch.h, gdbarch.c: Regenerate.
9429
9430 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9431 VALUE_TO_REGISTER.
9432 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9433 CONVERT_REGISTER_P.
9434
4a1970e4
DJ
94352005-05-11 Daniel Jacobowitz <drow@mvista.com>
9436 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9437
9438 * Makefile.in: Update dependencies for valops.c.
9439 * valops.c: Include "gdb_assert.h".
9440 (typecmp): Skip THIS parameter to methods.
9441 (find_method_list): Remove static_memfuncp argument,
9442 update callers. Check for stub methods.
9443 (find_value_oload_method_list): Don't set *static_memfuncp.
9444 (find_overload_match): Don't check for stub methods. Assert
9445 that methods are not stubbed. Handle static methods.
9446 (value_find_oload_method_list): Remove static_memfuncp argument.
9447 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9448 to the argument list for static stub methods.
9449 * value.h (value_find_oload_method_list): Update prototype.
9450
b2e75d78
AC
94512002-05-11 Andrew Cagney <ac131313@redhat.com>
9452
9453 * arch-utils.h (generic_register_size): Declare.
9454 (generic_register_raw_size, generic_register_virtual_size): Delete
9455 declarations.
9456 * arch-utils.c (generic_register_raw_size): Delete.
9457 (generic_register_size): New function.
9458 (generic_register_virtual_size): Delete.
9459
9460 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9461 default generic_register_size.
9462 * gdbarch.h, gdbarch.c: Re-generate.
9463
9464 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9465 register_virtual_size.
9466 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9467 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9468
451fbdda
AC
94692002-05-11 Andrew Cagney <ac131313@redhat.com>
9470
9471 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9472 * gdbarch.h, gdbarch.c: Regenerate.
9473 * gnu-v3-abi.c: Update copyright.
9474 (vtable_address_point_offset): Update.
9475 (gnuv3_rtti_type): Update.
9476 (gnuv3_baseclass_offset): Update.
9477 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9478 (init_fetch_link_map_offsets): Update.
9479 * remote.c (get_remote_state): Update.
9480
6d2f5cea
DJ
94812002-05-11 Daniel Jacobowitz <drow@mvista.com>
9482
9483 * TODO: Remove value_headof/value_from_vtable_info comment.
9484 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9485 * values.c (value_headof, value_from_vtable_info): Delete.
9486 * value.h (value_from_vtable_info): Delete prototype.
9487
d2324da4
AC
94882002-05-11 Andrew Cagney <ac131313@redhat.com>
9489
9490 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9491 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9492 $(gdb_regex_h).
9493 (gdb_assert_h): Define.
9494 (gdb_wait_h): Define.
9495 (gdb_regex_h): Define.
9496
5c717440
DJ
94972002-05-11 Daniel Jacobowitz <drow@mvista.com>
9498
9499 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9500 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9501
6c7861b3
JT
95022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9503
9504 * nbsd-tdep.c: Fix comment.
9505
ea5bc2a6
JT
95062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9507
9508 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9509 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9510 (nbsd-tdep.o): New dependency list.
9511 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9512 nbsd-tdep.h.
9513 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9514 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9515 * nbsd-tdep.c: New file.
9516 * nbsd-tdep.h: New file.
9517 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9518 nbsd-tdep.h.
9519 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9520 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9521 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9522 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9523
b28da865
JT
95242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9525
9526 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9527 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9528 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9529 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9530 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9531 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9532
4b8ff1fa
JT
95332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9534
9535 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9536 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9537 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9538 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9539 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9540 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9541 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9542
dfe6eb1f
JT
95432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9544
9545 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9546 fetch_elfcore_registers to...
9547 * i386nbsd-tdep.c: ...here.
9548 (i386nbsd_use_struct_convention): Rename to...
9549 (i386nbsd_aout_use_struct_convention): ...this.
9550 (i386nbsd_supply_reg): New function.
9551 (i386nbsd_fill_reg): New function.
9552 (fetch_core_registers): Use i386nbsd_supply_reg.
9553 (fetch_elfcore_registers): Likewise.
9554 (_initialize_i386nbsd_tdep): New function.
9555 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9556 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9557 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9558 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9559 (i386nbsd_aout_use_struct_convention): ...this.
9560
20cb8cda
JT
95612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9562
9563 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9564 (store_inferior_registers): Use shnbsd_fill_reg.
9565 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9566 sh_nbsd_supply_register): Collapse into...
9567 (shnbsd_supply_reg): ...this.
9568 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9569 (shnbsd_fill_reg): ...this.
9570 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9571 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9572 (fetch_core_registers): Use shnbsd_supply_reg.
9573 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9574 (sh_nbsd_core_fns): Rename to...
9575 (shnbsd_core_fns): ...this.
9576 (sh_nbsd_elfcore_fns): Rename to...
9577 (shnbsd_elfcore_fns): ...this.
9578 (sh_nbsd_init_abi): Rename to...
9579 (shnbsd_init_abi): ...this.
9580 (_initialize_sh_nbsd_tdep): Rename to...
9581 (_initialize_shnbsd_tdep): ...this.
9582 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9583 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9584 sh_nbsd_fill_register): Remove prototypes.
9585 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9586
e750d25e
JT
95872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9588
9589 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9590 (i387-nat.o): Delete dependency list.
9591 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9592 (x86-64-linux-nat.o): Likewise.
9593 * i387-nat.c: Delete file, moving contents to...
9594 * i387-tdep.c: ...here.
9595 * i387-nat.h: Rename...
9596 * i387-tdep.h: ...to this.
9597 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9598 * i386-linux-nat.c: Likewise.
9599 * i386bsd-nat.c: Likewise.
9600 * i386gnu-nat.c: Likewise.
9601 * i386nbsd-nat.c: Likewise.
9602 * i386v4-nat.c: Likewise.
9603 * x86-64-linux-nat.c: Likewise.
9604 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9605 * config/i386/go32.mh (NATDEPFILES): Likewise.
9606 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9607 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9608 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9609 * config/i386/linux.mh (NATDEPFILES): Likewise.
9610 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9611 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9612 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9613 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9614
1aee598a
JT
96152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9616
9617 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9618 (alphanbsd-nat.o): Remove dependency list.
9619 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9620 * alphanbsd-nat.c: Delete. Contents moved to...
9621 * alphanbsd-tdep.c: ...here.
9622 (_initialize_alphanbsd_tdep): Register core functions.
9623 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9624
12bcb0fe
JT
96252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9626
9627 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9628 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9629 (alphanbsd-nat.o): Likewise.
9630 (alphabsd-tdep.o): New dependency list.
9631 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9632 (fill_gregset): Use alphabsd_fill_reg.
9633 (supply_fpregset): Use alphabsd_supply_fpreg.
9634 (fill_fpregset): Use alphabsd_fill_fpreg.
9635 (fetch_inferior_registers): Use struct reg and struct fpreg
9636 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9637 and alphabsd_supply_fpreg.
9638 (store_inferior_registers): Use struct reg and struct fpreg
9639 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9640 and alphabsd_fill_fpreg.
9641 * alphabsd-tdep.c: New file.
9642 * alphabsd-tdep.h: New file.
9643 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9644 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9645 alphabsd_supply_fpreg.
9646 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9647 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9648
361d1df0
EC
96492002-05-11 Eric Christopher <echristo@redhat.com>
9650
9651 * mips-tdep.c (mips_double_register_type): Fix thinko.
9652 (mips_single_register_type): Ditto.
9653 * MAINTAINERS: Add self.
9654
92dd7cee
MK
96552002-05-11 Mark Kettenis <kettenis@gnu.org>
9656
9657 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9658 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9659 right thing on architectures with different endianness and/or
9660 integer sizes.
9661
e27da16d
JT
96622002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9663
9664 From Christian Limpach <chris@Pin.LU>
9665 * configure.in: Change sed expression which comments out
9666 NATDEPFILES to also comment out continuation lines.
9667 * configure: Regenerate.
9668
ddde02bd
EZ
96692002-05-10 Elena Zannoni <ezannoni@redhat.com>
9670
9671 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9672 big patch.
9673
1c922164
EZ
96742002-05-10 Elena Zannoni <ezannoni@redhat.com>
9675
9676 * sh-tdep.c: Include correct file.
9677
283150cd
EZ
96782002-05-10 Elena Zannoni <ezannoni@redhat.com>
9679
9680 New support for sh64-elf (sh5) target.
9681
9682 * configure.tgt: For sh64-elf target, default to sh-elf.
9683
9684 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9685 (struct gdbarch_tdep): Add new fields for new registers and ABI
9686 info.
361d1df0 9687
283150cd
EZ
9688 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9689 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9690 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9691 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9692 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9693 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9694 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9695 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9696 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9697 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9698 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9699 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9700 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9701 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9702 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9703 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9704 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9705 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9706 sign_extend, sh64_nofp_frame_init_saved_regs,
9707 sh64_init_extra_frame_info, sh64_get_saved_register,
9708 sh64_extract_struct_value_address, sh64_pop_frame,
9709 sh64_push_arguments, sh64_extract_return_value,
9710 sh64_store_return_value, sh64_show_media_regs,
9711 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9712 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9713 sh_sh64_register_virtual_type,
9714 sh_sh64_register_convert_to_virtual,
9715 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9716 sh64_register_read, sh64_pseudo_register_write,
9717 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9718 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9719 sh64_do_pseudo_register, sh_compact_do_registers_info,
9720 sh64_do_registers_info, sh_gdbarch_init): New functions.
9721
3117ed25
EZ
97222002-05-10 Elena Zannoni <ezannoni@redhat.com>
9723
9724 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9725
2654e6d4
DJ
97262002-05-10 Daniel Jacobowitz <drow@mvista.com>
9727
9728 * linespec.c (decode_line_1): Check for a double quote after
9729 a filename correctly.
9730
9ab3e532
JB
97312002-05-10 Jim Blandy <jimb@redhat.com>
9732
9733 Properly track the size of the current objfile's .debug_line section.
9734 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9735 (DWARF_LINE_SIZE): New macro.
9736 (dwarf2_build_psymtabs_hard): Record the line section's size in
9737 the partial symbol table.
9738 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9739 symbol table.
9740
126fa72d
PS
97412002-05-10 Petr Sorfa <petrs@caldera.com>
9742
9743 * ia64-tdep.c: Handle breakpoints on L instruction type
9744 in MLX instruction bundle by moving the breakpoint to
9745 the third slot (X instruction type) as L holds only data.
9746
1f077a3e
KB
97472002-05-10 Kevin Buettner <kevinb@redhat.com>
9748
9749 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9750 (process_one_symbol): Complain about discarding local symbols
9751 due to a misplaced N_LBRAC entry.
9752
8120c9d5 97532002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9754
9755 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9756 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9757 decrease the depth we are at, in the case of templates.
361d1df0 9758
67b2c998
DJ
97592002-05-09 Daniel Jacobowitz <drow@mvista.com>
9760
9761 * mips-tdep.c (mips_float_register_type): New function.
9762 (mips_double_register_type): New function.
9763 (mips_print_register): Use them.
9764 (do_fp_register_row): Likewise.
9765
fd326606
DJ
97662002-05-09 Daniel Jacobowitz <drow@mvista.com>
9767
6609d9af 9768 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9769 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9770 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9771
bef35864
MS
97722002-05-09 Michael Snyder <msnyder@redhat.com>
9773
9774 * remote-rdp.c (remote_rdp_can_run): Remove.
9775
c55a3f73
TT
97762002-05-09 Tom Tromey <tromey@redhat.com>
9777
9778 * jv-valprint.c (java_val_print): Handle `char' as a special case
9779 of TYPE_CODE_INT.
9780
b8d5e71d
MS
97812002-05-09 Michael Snyder <msnyder@redhat.com>
9782
9783 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9784 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9785 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9786 str r(0123),[sp,#nn].
361d1df0 9787 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9788 order-independent by placing it in a loop.
9789
e2cd42dd
MS
97902002-05-06 Michael Snyder <msnyder@redhat.com>
9791
9792 * stabsread.c (read_type): Add recognition for new attribute:
9793 "@V;" means that an array type is actually a vector.
9794 This is analogous to the vector flag that's been added to dwarf2.
9795
3ce1502b
MK
97962002-05-09 Mark Kettenis <kettenis@gnu.org>
9797
9798 * i386-tdep.h (i386_abi): New enum.
9799 (struct gdbarch_tdep): Replace os_ident member with abi.
9800 (i386_gdbarch_register_os_abi): New prototype.
9801 * i386-tdep.c (i386_abi_names): New array.
9802 (process_note_abi_tag_sections): Removed.
9803 (process_note_sections): New function.
9804 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9805 (struct i386_abi_handler): New struct.
9806 (i386_abi_handler_list): New variable.
9807 (i386_gdbarch_register_os_abi): New function.
9808 (i386_gdbarch_init): Adapt for the changes given above.
9809
084c156a
DJ
98102002-05-08 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * gregset.h: Say "GNU/Linux".
9813
6599f021
EZ
98142002-05-08 Elena Zannoni <ezannoni@redhat.com>
9815
9816 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9817 (build_gdbtypes): Build builtin_type_v2_float.
9818 (_initialize_gdbtypes): Register new builtin type.
9819
40af4b0c
AC
98202002-05-08 Andrew Cagney <ac131313@redhat.com>
9821
9822 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9823 (clear_gdbarch_swap): New function.
9824 (initialize_non_multiarch): Call.
9825 (gdbarch_update_p): Before calling init(), swap out and clear the
9826 existing architecture.
9827 * gdbarch.c: Regenerate.
9828
4fe84f46
JT
98292002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9830
9831 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9832 alphanbsd-tdep.c.
9833
4015edd1
JT
98342002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9835
9836 * sh-nbsd-nat.c: Rename to...
9837 * shnbsd-nat.c: ...this.
9838 * sh-nbsd-tdep.c: Rename to...
9839 * shnbsd-tdep.c: ...this.
9840 * sh-nbsd-tdep.h: Rename to...
9841 * shnbsd-tdep.h: ...this.
9842 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9843 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9844
0e2bd219
RE
98452002-05-08 Richard Earnshaw <rearnsha@arm.com>
9846
9847 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9848 concatenation for command help messages.
9849
13a38d45
JT
98502002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9851
9852 * NEWS: Note new sh*-*-netbsdelf* configuration.
9853 * configure.host: Set gdb_host_cpu to sh for all sh*.
9854 (sh*-*-netbsdelf*): New host.
9855 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9856 (sh*-*-netbsdelf*): New target.
9857 * sh-nbsd-nat.c: New file.
9858 * sh-nbsd-tdep.c: New file.
9859 * sh-nbsd-tdep.h: New file.
9860 * config/sh/nbsd.mh: New file.
9861 * config/sh/nbsd.mt: New file.
9862 * config/sh/nm-nbsd.h: New file.
9863 * config/sh/tm-nbsd.h: New file.
9864
d658f924
JT
98652002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9866
9867 * sh-tdep.c (sh_osabi_names): Declare.
9868 (process_note_abi_tag_sections): New function.
9869 (get_elfosabi): Ditto.
9870 (sh_gdbarch_register_os_abi): Ditto.
9871 (sh_dump_tdep): Ditto.
9872 _initialize_sh_tdep): Use gdbarch_register to register
9873 sh_gdbarch_init and sh_dump_tdep.
9874 * config/sh/tm-sh.h (sh_osabi): Declare.
9875 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9876
848cfffb
AC
98772002-05-07 Andrew Cagney <ac131313@redhat.com>
9878
9879 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9880 (thumb_scan_prologue): Ditto.
9881 (arm_find_callers_reg): Ditto.
9882 (arm_frame_chain): Ditto.
9883 (arm_init_extra_frame_info): Ditto.
9884 (arm_frame_saved_pc): Ditto.
9885 (arm_pop_frame): Ditto.
9886 (arm_push_return_address): New function.
9887 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9888 call_dummy_location, call_dummy_breakpoint_offset_p,
9889 call_dummy_breakpoint_offset, call_dummy_p,
9890 call_dummy_stack_adjust_p, call_dummy_words,
9891 sizeof_call_dummy_words, call_dummy_start_offset,
9892 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9893 call_dummy_address, push_return_address and push_dummy_frame for
9894 generic dummy frames.
9895
e7d717c0
JT
98962002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9897
9898 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9899 size computation for alloca.
9900 (sh_fp_frame_init_saved_regs): Likewise.
9901
7bbcf283
RE
99022002-05-07 Richard Earnshaw <rearnsha@arm.com>
9903
9904 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9905 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9906 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9907 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9908 * remote-rdp.c (remote_rdp_fetch_register): Use
9909 ARM_MAX_REGISTER_RAW_SIZE.
9910 (remote_rdp_store_register): Likewise.
9911
4657573b
ML
99122002-05-07 Michal Ludvig <mludvig@suse.cz>
9913
361d1df0 9914 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9915 added default labels to switch {} statements.
9916 * x86-64-tdep.c: Ditto.
9917 * x86-64-linux-nat.c: Ditto.
9918
010f3b2f
JT
99192002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9920
9921 * solib.h: Protect against multiple inclusion.
9922
debd256d
JB
99232002-05-06 Jim Blandy <jimb@redhat.com>
9924
9ab3e532
JB
9925 Add first preprocessor macro-expansion files.
9926 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9927 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9928 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9929 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9930 (COMMON_OBS): Add macrotab.o, macroexp.o.
9931 (macroexp.o, macrotab.o): New rules.
9932
debd256d
JB
9933 Separate the job of reading the line number info statement program
9934 header (...expialidocious) out into its own function.
9935 * dwarf2read.c (struct line_head, struct filenames, struct
9936 directories): Replace with...
9937 (struct line_header): New structure, containing the full
9938 contents of the statement program header, including the
9939 include directory and file name tables.
9940 (read_file_scope): If we have line number info, instead of just
9941 calling dwarf_decode_lines to do all the work, call
9942 dwarf_decode_line_header first to get a `struct line_header'
9943 containing the data in the statement program header, and then
9944 pass that to dwarf_decode_lines, which will pick up where that
9945 left off. Be sure to clean up the `struct line_header' object.
9946 (dwarf_decode_line_header, free_line_header, add_include_dir,
9947 add_file_name): New functions.
9948 (dwarf_decode_lines): Move all the code to read the statement
9949 program header into dwarf_decode_line_header. Take the line
9950 header it built as the first argument, instead of the offset to
9951 the compilation unit's line number info. Use the new `struct
9952 line_header' type instead of the old structures. No need to do
9953 cleanups here now, since we don't allocate anything.
9954 (dwarf2_statement_list_fits_in_line_number_section,
9955 dwarf2_line_header_too_long): New complaints.
9956
ac3aafc7
EZ
99572002-05-06 Elena Zannoni <ezannoni@redhat.com>
9958
9959 * gdbtypes.c (init_vector_type): New function.
9960 (build_builtin_type_vec128): Simplify the representation of SIMD
9961 registers.
9962 (build_gdbtypes): Initialize new builtin vector types.
9963 (_initialize_gdbtypes): Register new vector types with gdbarch.
9964 (builtin_type_v4_float, builtin_type_v4_int32,
9965 builtin_type_v8_int16, builtin_type_v16_int8,
9966 builtin_type_v2_int32, builtin_type_v4_int16,
9967 builtin_type_v8_int8): New (renamed) SIMD types.
9968
13e49980
MK
99692002-05-06 Mark Kettenis <kettenis@gnu.org>
9970
9971 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9972 (i387_fill_fxsave): Likewise.
9973
997b20b8
AO
99742002-05-05 Alexandre Oliva <aoliva@redhat.com>
9975
9976 * alpha-tdep.c (alpha_extract_return_value): Don't use
9977 non-constant array size in prototype.
9978
535c96ce
AC
99792002-05-04 Andrew Cagney <ac131313@redhat.com>
9980
9981 From Brian Taylor <briant at model dot com>:
9982 * ui-out.c (ui_out_field_core_addr): Use the function
9983 longest_local_hex_string_custom'to format addresses > 32 bits
9984 wide.
9985
9986 * ui-out.c (ui_out_field_core_addr): Update comment.
9987
bedfa57b
AC
99882002-05-04 Andrew Cagney <ac131313@redhat.com>
9989
9990 * stack.c (select_and_print_frame): Make static. Delete the
9991 parameter `level'.
9992 (func_command): Update call.
9993 (select_frame_command): Delete code computing the frame level.
9994 * frame.h (select_and_print_frame): Delete declaration.
9995
f621c63e
AC
99962002-05-04 Andrew Cagney <ac131313@redhat.com>
9997
9998 * sparc-tdep.c (sparc_get_saved_register): Comment why
9999 get_prev_frame call is safe.
10000
0f7d239c
AC
100012002-05-04 Andrew Cagney <ac131313@redhat.com>
10002
10003 * frame.h (select_frame): Delete level parameter.
10004 * stack.c (select_frame): Update. Use frame_relative_level to
10005 obtain the frame's level.
10006 (select_and_print_frame): Update call.
10007 (select_frame_command): Ditto.
10008 (up_silently_base): Ditto.
10009 (down_silently_base): Ditto.
10010 * ocd.c (ocd_start_remote): Ditto.
10011 * remote-rdp.c (remote_rdp_open): Ditto.
10012 * remote-mips.c (mips_initialize): Ditto.
10013 (common_open): Ditto.
10014 * remote-e7000.c (e7000_start_remote): Ditto.
10015 * m3-nat.c (select_thread): Ditto.
10016 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10017 (child_get_current_exception_event): Ditto.
10018 * varobj.c (varobj_create): Ditto.
10019 (varobj_update): Ditto.
10020 (c_value_of_root): Ditto.
10021 * tracepoint.c (finish_tfind_command): Ditto.
10022 * corelow.c (core_open): Ditto.
10023 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10024 * thread.c (info_threads_command): Ditto.
10025 (switch_to_thread): Ditto.
10026 * infrun.c (normal_stop): Ditto.
10027 (restore_selected_frame): Ditto.
10028 (restore_inferior_status): Ditto.
10029 * breakpoint.c (insert_breakpoints): Ditto.
10030 (watchpoint_check): Ditto.
10031 (bpstat_stop_status): Ditto.
10032 (do_enable_breakpoint): Ditto.
10033 * blockframe.c (flush_cached_frames): Ditto.
10034 (reinit_frame_cache): Ditto.
10035
71d6c7b1
AC
100362002-05-04 Andrew Cagney <ac131313@redhat.com>
10037
10038 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10039 maintainer.
10040
cda6c68a
JB
100412002-05-04 Jim Blandy <jimb@redhat.com>
10042
10043 * gdbtypes.c (replace_type): Doc fix.
10044
5c1c87f0
AC
100452002-05-04 Andrew Cagney <ac131313@redhat.com>
10046
10047 * valprint.c (strcat_longest): Delete commented out function.
10048 Update copyright.
10049
cd9bfe15
AC
100502002-05-04 Andrew Cagney <ac131313@redhat.com>
10051
10052 * MAINTAINERS: Mark a29k as deleted.
10053 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10054 Move new configurations to the top.
10055 * configure.tgt: Remove a29k.
10056 * config/a29k/tm-vx29k.h: Delete.
10057 * config/a29k/vx29k.mt: Delete.
10058 * config/a29k/tm-a29k.h: Delete.
10059 * config/a29k/a29k-udi.mt: Delete.
10060 * config/a29k/a29k.mt: Delete.
10061 * a29k-tdep.c: Delete.
10062 * remote-udi.c: Delete.
10063 * remote-mm.c: Delete.
10064 * remote-eb.c: Delete.
10065 * remote-adapt.c: Delete.
10066 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10067 * config/s390/s390x.mt: Ditto.
10068 * config/s390/s390.mt: Ditto.
10069 * config/sparc/sparclynx.mh: Ditto.
10070 * config/sparc/linux.mh: Ditto.
10071 * config/pa/hppaosf.mh: Ditto.
10072 * config/pa/hppabsd.mh: Ditto.
10073 * config/ns32k/nbsd.mt: Ditto.
10074 * config/mips/vr5000.mt: Ditto.
10075 * config/m68k/sun3os4.mh: Ditto.
10076 * config/m68k/nbsd.mt: Ditto.
10077 * config/m68k/m68klynx.mh: Ditto.
10078 * config/m32r/m32r.mt: Ditto.
10079 * config/i386/x86-64linux.mt: Ditto.
10080 * config/i386/nbsdelf.mt: Ditto.
10081 * config/i386/nbsd.mt: Ditto.
10082 * config/i386/i386lynx.mh: Ditto.
10083
bf0c5130
AC
100842002-05-04 Andrew Cagney <ac131313@redhat.com>
10085
10086 * target.c (debug_print_register): New function. Handle oversize
10087 registers.
10088 (debug_to_fetch_registers): Call.
10089 (debug_to_store_registers): Call.
10090
2ae1c2d2
JB
100912002-05-03 Jim Blandy <jimb@redhat.com>
10092
13a393b0
JB
10093 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10094 (read_type): Doc fix.
10095 * gdbtypes.c (replace_type): Doc fix.
10096
2ae1c2d2
JB
10097 * stabsread.c (multiply_defined_struct): New complaint.
10098 (read_struct_type): If the type we were passed isn't empty, or
10099 incomplete, don't read the new struct type into it; complain,
10100 and return the original type unchanged. Take a new `type_code'
10101 argument, which is the type code for the new type.
10102 (read_type): Rather than storing the type's type code here, pass
10103 it as an argument to read_struct_type, and let that take care of
10104 storing it. That way, we don't overwrite the original type code,
10105 so read_struct_type can use it to decide whether we're overwriting
10106 something we shouldn't.
10107 (complain_about_struct_wipeout): New function.
10108
8de9bdc4
AC
101092002-05-03 Andrew Cagney <ac131313@redhat.com>
10110
10111 * gdbarch.sh: Assert that gdbarch is non-NULL.
10112 * gdbarch.c: Regenerate.
10113
f773fdbb
JM
101142002-05-03 Jason Merrill <jason@redhat.com>
10115
10116 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10117 and return NULL.
10118
0e04a514
ML
101192002-05-03 Michal Ludvig <mludvig@suse.cz>
10120
10121 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10122 (x86_64_dwarf2gdb_regno_map_length),
10123 (x86_64_dwarf2_reg_to_regnum): Added.
10124 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10125 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10126 (_initialize_x86_64_tdep): Synced with the change above.
10127 (x86_64_skip_prologue): Reformulated message.
10128
065432a8
PM
101292002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10130
10131 * f-exp.y: Also use new prev_lexptr variable
10132 to improve error reporting. Based on Michael Snyder
10133 2002-04-24 dated patch to c-exp.y.
10134 * jv-exp.y: Likewise.
10135 * m2-exp.y: Likewise.
10136
a3162708
EZ
101372002-05-02 Elena Zannoni <ezannoni@redhat.com>
10138
10139 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10140 we are dealing with vectors.
10141
03620c38
PM
101422002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10143
10144 * config/m68k/tm-nbsd.h: Obvious fix,
10145 correct machine name.
10146
6604db2e
PM
101472002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10148
10149 * p-typeprint.c (pascal_type_print_base): Add support
10150 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10151
0906b739
PM
101522002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10153
10154 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10155 for fondamental pascal 'char' type.
10156
e2625b33
PM
101572002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10158
10159 * p-lang.h (is_pascal_string_type): Declaration changed,
10160 new sixth argument of type char ** added.
361d1df0 10161 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10162 changed. Args length_pos, length_size, string_pos, char_size
10163 can now be NULL. New argument arrayname set to the field
10164 name of the char array. Return value set to char array
10165 field index plus one.
361d1df0 10166 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10167 is_pascal_string_type function.
10168
cf17c188
AC
101692002-05-02 Andrew Cagney <cagney@redhat.com>
10170
10171 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10172 <cagney@redhat.com> change.
10173 * gdbarch.c: Regenerate.
10174
52bca491
AC
101752002-05-02 Andrew Cagney <cagney@redhat.com>
10176
10177 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10178 before probing for a new one. Detect errorenous gdbarch_init
10179 functions.
10180 * gdbarch.c: Regenerate.
10181
d5e72505
AC
101822002-05-01 Andrew Cagney <cagney@redhat.com>
10183
10184 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10185 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10186 * config/v850/tm-v850.h: Ditto. Update copyright.
10187
af566d9f
AC
101882002-04-30 Andrew Cagney <ac131313@redhat.com>
10189
10190 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10191 current_gdbarch.
10192
880d85fa
MS
101932002-04-30 Michael Snyder <msnyder@redhat.com>
10194
94c30b78
MS
10195 * arm-tdep.c: Whitespace clean-ups.
10196 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10197 should have been removed as part of 4/24 change.
10198
6f5987a6
KB
101992002-04-30 Kevin Buettner <kevinb@redhat.com>
10200
10201 * rs6000-tdep.c: Added comment describing how fpscr register
10202 numbers were chosen.
10203
1a113c93
MS
102042002-04-30 Michael Snyder <msnyder@redhat.com>
10205
10206 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10207
9a6f53fe
EZ
102082002-04-29 Elena Zannoni <ezannoni@redhat.com>
10209
10210 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10211 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10212 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10213
11ed25ac
KB
102142002-04-29 Kevin Buettner <kevinb@redhat.com>
10215
10216 From Louis Hamilton <hamilton@redhat.com>:
10217 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10218 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10219 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10220 not bfd-private xcoff data, to determine wordsize.
10221 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10222
ae232405
AC
102232002-04-29 Andrew Cagney <ac131313@redhat.com>
10224
10225 GDB 5.2 released from 5.2 branch.
10226
91fd20f7
ML
102272002-04-29 Michal Ludvig <mludvig@suse.cz>
10228
10229 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10230 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10231 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10232
2dc5091b
EZ
102332002-04-29 Elena Zannoni <ezannoni@redhat.com>
10234
10235 * rs6000-tdep.c (rs6000_extract_return_value,
10236 rs6000_store_return_value): Handle returning vectors.
10237 (rs6000_gdbarch_init): Use
10238 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10239 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10240 New function.
10241 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10242 vectors.
10243 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10244 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10245
2b9848d8
PM
102462002-04-24 Pierre Muller <ics.u-strasbg.fr>
10247
10248 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10249 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10250 with fprintf_unfiltered (gdb_stderr,...).
10251
f8d17dc5
PM
102522002-04-24 Pierre Muller <ics.u-strasbg.fr>
10253
10254 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10255 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10256 Replace fprintf (stderr,...
10257 with fprintf_unfiltered (gdb_stderr,....
10258 * remote-es.c: Likewise.
10259 * remote-os9k.c: Likewise.
10260 * remote-st.c: Likewise.
10261
2f2f1ad1
AS
102622002-04-28 Andreas Schwab <schwab@suse.de>
10263
10264 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10265 linux-proc.o and gcore.o.
10266
b6779aa2
AC
102672002-04-26 Michal Ludvig <mludvig@suse.cz>
10268
10269 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10270 code without frame pointers.
10271
7e57f5f4
AC
102722002-04-26 Andrew Cagney <ac131313@redhat.com>
10273
10274 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10275 ON_STACK is needed.
10276
2ceb85d0
BE
102772002-04-26 Ben Elliston <bje@redhat.com>
10278
10279 * target.c (do_xfer_memory): Correct reference to the new option
10280 "trust-readonly-sections".
10281
f5f8a009
EZ
102822002-04-26 Elena Zannoni <ezannoni@redhat.com>
10283
10284 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10285 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10286 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10287 vectors.
10288 (read_array_type): Record the fact that this array type is really a
10289 vector (i.e. are passed in by value).
10290
5868c862
JT
102912002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10292
10293 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10294 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10295 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10296 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10297 * alpha-linux-tdep.c: Include frame.h.
10298 (alpha_linux_sigcontext_addr): New function.
10299 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10300 alpha_linux_sigcontext_addr.
10301 * alpha-osf1-tdep.c: Include gdbcore.h.
10302 (alpha_osf1_sigcontext_addr): New function.
10303 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10304 alpha_osf1_sigcontext_addr.
10305 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10306 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10307
bfb01f37
AC
103082002-04-26 Andrew Cagney <ac131313@redhat.com>
10309
361d1df0 10310 * stack.c (selected_frame_level):
bfb01f37
AC
10311 (select_frame): Do not set selected_frame_level.
10312 * frame.h (selected_frame_level): Delete declaration.
10313
15813d3f
AC
103142002-04-26 Andrew Cagney <ac131313@redhat.com>
10315
10316 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10317 convert_from_func_ptr-addr when AIX / PowerOpen.
10318
6096c27a
AC
103192002-04-25 Andrew Cagney <ac131313@redhat.com>
10320
10321 * valops.c (hand_function_call): Call
10322 generic_save_call_dummy_addr.
10323 * frame.h (generic_save_call_dummy_addr): Declare.
10324 * blockframe.c (struct dummy_frame): Add fields call_lo and
10325 call_hi.
10326 (generic_find_dummy_frame): Check for PC in range call_lo to
10327 call_hi instead of entry_point_address.
10328 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10329 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10330 (generic_save_call_dummy_addr): New function.
10331
f510d44e
DM
103322002-04-24 David S. Miller <davem@redhat.com>
10333
10334 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10335 sparc_skip_prologue.
10336 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10337 information to find prologue when possible.
10338 (sparc_prologue_frameless_p): Call examine_prologue directly.
10339 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10340 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10341 second argument.
10342 (SKIP_PROLOGUE): Likewise.
10343
15d72a92
JT
103442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10345
10346 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10347 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10348 indicate that the condition it was testing is always true.
10349 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10350 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10351 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10352
accc6d1f
JT
103532002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10354
10355 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10356 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10357 tdep->jb_pc and tdep->jb_elt_size.
10358 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10359 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10360 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10361 * alpha-nat.c (get_longjmp_target): Remove.
10362 (JB_ELEMENT_SIZE): Ditto.
10363 (JB_PC): Ditto.
10364 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10365 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10366 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10367 to alpha_get_longjmp_target.
10368 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10369 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10370 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10371
1bfdc549
AC
103722002-04-25 Andrew Cagney <ac131313@redhat.com>
10373
10374 * README: Update to GDB 5.2.
10375
1bd316f0
AC
103762002-04-25 Andrew Cagney <ac131313@redhat.com>
10377
10378 * gdbarch.sh (LC_ALL): Set to `c'.
10379
2e5ff58c
TR
103802002-04-25 Theodore A. Roth <troth@verinet.com>
10381
10382 * avr-tdep.c: Ran through gdb_indent.sh.
10383
e33ce519
TR
103842002-04-25 Theodore A. Roth <troth@verinet.com>
10385
10386 * MAINTAINERS: Add myself as AVR maintainer.
10387 * NEWS: Note new target avr.
10388
8818c391
TR
103892002-04-25 Theodore A. Roth <troth@verinet.com>
10390
10391 * Makefile.in: Add support for AVR target.
10392 * configure.tgt: Add support for AVR target.
10393 * avr-tdep.c: New file
10394 * config/avr/avr.mt: New file.
10395
79509c2d
TR
103962002-04-25 Theodore A. Roth <troth@verinet.com>
10397
10398 * MAINTAINERS: Add myself to write-after-approval.
10399
dac8068e
PM
104002002-04-24 Pierre Muller <ics.u-strasbg.fr>
10401
10402 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10403 with fprintf_unfiltered (gdb_stderr,....
10404
25bf3106
PM
104052002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10406
10407 Fix PR gdb/508.
10408 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10409
24467a86
PM
104102002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10411
10412 * p-exp.y: Also use new prev_lexptr variable
10413 to improve error reporting. Based on Michael Snyder
10414 2002-04-24 dated patch to c-exp.y.
10415
95b80706
JT
104162002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10417
10418 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10419 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10420 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10421 to 0.
10422 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10423 and struct value.
10424 (FUNCTION_START_OFFSET): Remove.
10425 (BREAKPOINT): Ditto.
10426
e90cc612
JT
104272002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10428
10429 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10430 * NEWS: Ditto.
10431
6c72f9f9
JT
104322002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10433
10434 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10435 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10436 alpha_linux_pc_in_sigtramp.
10437 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10438 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10439 alpha_osf1_pc_in_sigtramp.
10440 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10441 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10442 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10443 alphafbsd_pc_in_sigtramp.
10444 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10445 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10446 alphanbsd_pc_in_sigtramp.
10447 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10448 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10449
5e4f3379
JT
104502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10451
10452 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10453
da8ca43d
JT
104542002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10455
10456 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10457 alphanbsd-tdep.c.
10458 (alphanbsd-nat.o): New dependency list.
10459 (alphanbsd-tdep.o): Ditto.
10460 * NEWS: Note new native NetBSD/alpha configuration.
10461 * alphanbsd-nat.c: New file.
10462 * alphanbsd-tdep.c: Ditto.
10463 * configure.host (alpha*-*-netbsd*): New host.
10464 * configure.tgt (alpha*-*-netbsd*): New target.
10465 * config/alpha/nbsd.mh: New file.
10466 * config/alpha/nbsd.mt: Ditto.
10467 * config/alpha/nm-nbsd.h: Ditto.
10468 * config/alpha/tm-nbsd.h: Ditto.
10469
36a6271d
JT
104702002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10471
10472 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10473 (alpha-osf1-tdep.o): New dependency list.
10474 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10475 and skip_sigtramp_frame members.
10476 * alpha-linux-tdep.c: Include gdbcore.h.
10477 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10478 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10479 * alpha-osf1-tdep.c: New file.
10480 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10481 alpha-osf1-dep.c.
10482 (alpha_frame_past_sigtramp_frame): New function.
10483 (alpha_dynamic_sigtramp_offset): Ditto.
10484 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10485 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10486 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10487 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10488 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10489 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10490 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10491 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10492 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10493 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10494 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10495 to find_solib_trampoline_target.
10496 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10497 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10498 (SKIP_TRAMPOLINE_CODE): Remove.
10499 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10500 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10501 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10502 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10503 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10504 (PROC_SIGTRAMP_MAGIC): Ditto.
10505 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10506 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10507 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10508 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10509 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10510
2f4bc57b
JT
105112002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10512
10513 * NEWS: Note that Alpha targets are now multi-arch.
10514
665132f9
MS
105152002-04-24 Michael Snyder <msnyder@redhat.com>
10516
10517 * parser-defs.h (prev_lexptr): New external variable.
10518 * parse.c (parse_exp_1): Set prev_lexptr to null before
10519 calling the language-specific parser.
10520 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10521 (yyerror): Use prev_lexptr in error reporting.
10522
32872fa7
DJ
105232002-04-24 Daniel Jacobowitz <drow@mvista.com>
10524
10525 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10526 * gregset.h: If FILL_FPXREGSET is defined, provide
10527 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10528 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10529 is defined, call fill_fpxregset.
10530
57e76fac
MS
105312002-04-24 Roland McGrath <roland@frob.com>
10532
10533 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10534 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10535 (supply_gregset, supply_fpregset): New functions.
10536
10537 * gnu-nat.c (gnu_find_memory_regions): New function.
10538 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10539 (gnu_xfer_memory): Add a cast.
10540
f43845b3
MS
105412002-04-24 Michael Snyder <msnyder@redhat.com>
10542
361d1df0 10543 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10544 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10545 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10546 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10547 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10548 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10549
a0abec03
AC
10550Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10551
10552 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10553 NUM_PSEUDO_REGS can be used.
10554
d7bd68ca
AC
105552002-04-24 Andrew Cagney <ac131313@redhat.com>
10556
10557 * arch-utils.h: Update copyright.
10558
10559 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10560 * gdbarch.h, gdbarch.c: Re-generate.
10561
10562 * inferior.h (IN_SIGTRAMP): Delete definition.
10563 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10564 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10565
10566 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10567 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10568 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10569 (find_proc_framesize): Ditto.
10570 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10571 (alpha_init_extra_frame_info): Ditto.
10572 * infrun.c (handle_inferior_event): Ditto.
10573 (handle_inferior_event): Ditto.
10574 (check_sigtramp2): Ditto.
10575 * blockframe.c (create_new_frame): Ditto.
10576 (get_prev_frame): Ditto.
10577 * ppc-linux-tdep.c: Update comments.
10578 * i386-linux-tdep.c: Update comments.
10579 * breakpoint.c (bpstat_what): Update comment.
10580
4867e41e
DM
105812002-04-24 David S. Miller <davem@redhat.com>
10582
21d83aa5
DM
10583 * i960-tdep.c (register_in_window_p): New function.
10584 (i960_find_saved_register): Use it instead of
10585 REGISTER_IN_WINDOW_P.
10586 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10587
4867e41e
DM
10588 * symtab.h (find_stab_function_addr): Kill extern.
10589 * minsyms.c (find_stab_function_addr): Remove from here...
10590 * dbxread.c: ... to here, and mark it static.
10591
69cdf6a2
DM
105922002-04-20 David S. Miller <davem@redhat.com>
10593
10594 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10595 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10596
5a595886
DM
105972002-04-21 David S. Miller <davem@redhat.com>
10598
10599 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10600 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10601 (vx_write_register): Likewise.
10602
1da1a192
JB
106032002-04-23 J. Brobecker <brobecker@gnat.com>
10604
10605 * source.c (is_regular_file): New function.
10606 (openp): Check wether file to open is a regular file
10607 to avoid opening directories.
10608
baa6f10b
JT
106092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10610
10611 * findvar.c (extract_signed_integer): Cast printf argument
10612 to suppress format warning.
10613 (extract_unsigned_integer): Likewise.
10614 * infcmd.c (registers_info): Likewise.
10615 * top.c (get_prompt_1): Likewise.
10616 * valops.c (value_assign): Likewise.
10617 * valprint.c (print_decimal): Likewise.
10618
b2c4da81
L
106192002-04-22 H.J. Lu (hjl@gnu.org)
10620
10621 * c-exp.y (typebase): Support
361d1df0 10622
b2c4da81
L
10623 [long|long long|short] [signed|unsigned] [int|]
10624
10625 and
10626
10627 signed [long|long long|short] int
10628
f267bd6a
JT
106292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10630
10631 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10632 and vax-tdep.h.
10633 * vax-tdep.h: New file.
10634 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10635 Make several routines static.
10636 (vax_get_saved_register): New function.
10637 (vax_gdbarch_init): New function.
10638 (_initialize_vax_tdep): Register vax_gdbarch_init.
10639 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10640 Remove macros now under the control of gdbarch.
10641
da3c6d4a
MS
106422002-04-22 Michael Snyder <msnyder@redhat.com>
10643
11d3b27d
MS
10644 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10645 Some whitespace and coding standards tweaks.
da3c6d4a 10646
a33f7558
JT
106472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10648
10649 * vax-tdep.c: Include regcache.h.
10650 (vax_call_dummy_words): New.
10651 (sizeof_vax_call_dummy_words): New.
10652 (vax_fix_call_dummy): New function.
10653 (vax_saved_pc_after_call): Ditto.
10654 * config/vax/tm-vax.h: Don't include regcache.h.
10655 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10656 (CALL_DUMMY): Remove.
10657 (CALL_DUMMY_WORDS): Define.
10658 (SIZEOF_CALL_DUMMY_WORDS): Define.
10659 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10660
47a73475
MS
106612002-04-18 Michael Snyder <msnyder@redhat.com>
10662
10663 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10664
52efde73
JT
106652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10666
10667 * vax-tdep.c (vax_frame_chain): New function.
10668 (vax_push_dummy_frame): Ditto.
10669 (vax_pop_frame): Ditto.
10670 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10671 (FRAMELESS_FUNCTION_INVOCATION): Use
10672 generic_frameless_function_invocation_not.
10673 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10674 (POP_FRAME): Use vax_pop_frame.
10675
ea74468c
JT
106762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10677
10678 * vax-tdep.c (vax_store_struct_return): New function.
10679 (vax_extract_return_value): Ditto.
10680 (vax_store_return_value): Ditto.
10681 (vax_extract_struct_value_address): Ditto.
10682 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10683 vax_store_struct_return.
10684 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10685 (STORE_RETURN_VALUE): Use vax_store_return_value.
10686 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10687
5516aa92
JT
106882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10689
10690 * vax-tdep.c (vax_frame_saved_pc): New function.
10691 (vax_frame_args_address_correct): Ditto.
10692 (vax_frame_args_address): Ditto.
10693 (vax_frame_locals_address): Ditto.
10694 (vax_frame_num_args): Move code to be in proximity to
10695 other frame-related functions.
10696 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10697 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10698 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10699 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10700 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10701
36af0b35
L
107022002-04-22 H.J. Lu (hjl@gnu.org)
10703
10704 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10705 includedir.
10706
ab62c900
JT
107072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10708
10709 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10710 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10711 (FRAME_INIT_SAVED_REGS): New macro.
10712
7232b100
JT
107132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10714
10715 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10716
b70d2aee
JT
107172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10718
10719 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10720 where needed.
10721 (fetch_osf_core_registers): Likewise.
10722 (supply_gregset): Likewise.
10723
a0e8a2d1 107242002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10725
a0e8a2d1
JB
10726 * symfile.h (get_section_index): Define.
10727 * symfile.c (get_section_index): New function.
10728 * mdebugread.c (SC_IS_SBSS): New macro.
10729 (SC_IS_BSS): Return true for the scBss storage class only, as
10730 the scSBss storage class refers to the .sbss section.
10731 (parse_partial_symbols): Discard the symbols which associated
10732 section does not exist.
10733 Make sure to use the .sbss section index for symbols which
10734 storage class is scBss, rather than using the .bss section index.
10735
51eb8b08
JT
107362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10737
10738 * vax-tdep.c: Update copyright years.
10739 (vax_register_name): New function.
10740 (vax_register_byte): Ditto.
10741 (vax_register_raw_size): Ditto.
10742 (vax_register_virtual_size): Ditto.
10743 (vax_register_virtual_type): Ditto.
10744 * config/vax/tm-vax.h: Update copyright years.
10745 (REGISTER_NAMES): Remove.
10746 (REGISTER_NAME): Define.
10747 (REGISTER_BYTE): Use vax_register_byte.
10748 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10749 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10750 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10751
6cc1c0a8
AC
107522002-04-21 Andrew Cagney <ac131313@redhat.com>
10753
10754 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10755 declaration
10756 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10757
9319a2fe
DM
107582002-04-21 David S. Miller <davem@redhat.com>
10759
10760 * arch-utils.c (generic_prologue_frameless_p): Kill
10761 SKIP_PROLOGUE_FRAMELESS_P code.
10762 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10763 references.
10764 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10765 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10766 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10767 references.
10768 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10769 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10770 (sparc_gdbarch_init): Pass it to
10771 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10772
e9ed6d01
JT
107732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10774
10775 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10776 (alphabsd-nat.o): New dependency list.
10777
36012033
JT
107782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10779
10780 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10781 alphafbsd-tdep.c.
10782 (alpha-linux-tdep.o): New dependency list.
10783 (alphafbsd-tdep.o): Likewise.
10784
3379287a
JT
107852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10786
10787 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10788 to here...
10789 * alpha-tdep.c: ...from here.
10790 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10791
4bcbd6cb
JT
107922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10793
10794 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10795 prototype from here...
10796 * alpha-tdep.h: ...to here.
10797
b31da25e
AC
107982002-04-21 Andrew Cagney <ac131313@redhat.com>
10799
10800 * frame.h (selected_frame_level): Document as deprecated.
10801 (frame_relative_level): Declare.
10802 * stack.c (frame_relative_level): New function.
10803 (selected_frame_level): Document as deprecated.
10804 (select_frame): Do not set the selected_frame_level.
10805
10806 * stack.c (frame_info, record_selected_frame): Update.
10807 (frame_command, current_frame_command): Update.
10808 (up_silently_base, up_command, down_silently_base): Update.
10809 (down_command): Update.
10810 * inflow.c (kill_command): Update.
10811 * tracepoint.c (finish_tfind_command): Update.
10812 * corelow.c (core_open): Update.
10813 * thread.c (info_threads_command): Update.
10814 (do_captured_thread_select): Update.
10815 * infcmd.c (finish_command): Update.
10816 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10817
9c1d6fe5
JT
108182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10819
10820 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10821
ab89facf
AC
108222002-04-21 Andrew Cagney <ac131313@redhat.com>
10823
10824 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10825 type const.
10826
82a4efa1
JT
108272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10828
10829 * alphafbsd-tdep.c: Update copyright years. Include
10830 alpha-tdep.h.
10831 (alphafbsd_use_struct_convention): Make static.
10832 (alphafbsd_init_abi): New function.
10833 (_initialize_alphafbsd_tdep): New function.
10834 * config/alpha/tm-fbsd.h: Update copyright years.
10835 (USE_STRUCT_CONVENTION): Remove.
10836
44dffaac
JT
108372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10838
10839 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10840 an Alpha ABI variant.
10841 (alpha_abi_handler_list): Declare.
10842 (alpha_gdbarch_register_os_abi): New function.
10843 (alpha_gdbarch_init): Give registered ABI variant handlers a
10844 chance to tweak the gdbarch once we have set up defaults.
10845 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10846
65585be4
JT
108472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10848
10849 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10850 to standard_coerce_float_to_double.
10851 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10852
d9b023cc
JT
108532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10854
10855 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10856 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10857 from gdbarch_tdep rather than a constant.
10858 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10859 the default text address for all Alpha Unix ABIs.
10860 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10861 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10862
dc129d82
JT
108632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10864
10865 * alpha-tdep.h: New file. Includes several Alpha target constants
10866 taken from...
10867 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10868 let gdbarch deal with.
10869 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10870 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10871 to dependency list.
10872 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10873 Alpha target register names.
10874 * alphabsd-nat.c: Likewise.
10875 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10876 Alpha target register names. Make serveral routines static.
10877 (alpha_get_saved_register): New function.
10878 (alpha_abi_names): New.
10879 (process_note_abi_tag_sections): New function.
10880 (get_elfosabi): New function.
10881 (alpha_gdbarch_init): New function.
10882 (alpha_dump_tdep): New function.
10883 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10884
d49d1e0a
AC
108852002-04-21 Andrew Cagney <ac131313@redhat.com>
10886
10887 * frame.c (find_saved_register): Delete #ifdef
10888 HAVE_REGISTER_WINDOWS code.
10889 * config/sparc/tm-sparc.h: Update comments.
10890 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10891
92e8c9ed
AC
108922002-04-21 Andrew Cagney <ac131313@redhat.com>
10893
10894 * i960-tdep.c (i960_find_saved_register): New function.
10895 (i960_get_saved_register): New function.
10896 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10897 (i960_get_saved_register): Declare.
10898 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10899
e1925118
DM
109002002-04-20 David S. Miller <davem@redhat.com>
10901
10902 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10903
29673b29
AC
109042002-04-20 Andrew Cagney <ac131313@redhat.com>
10905
10906 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10907 instead of NUM_PSEUDO_REGS.
10908
6c86dcd5
DM
109092002-04-20 David S. Miller <davem@redhat.com>
10910
10911 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10912 GDB_MULTI_ARCH_PARTIAL
10913 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10914 define, let tm-sp64.h do it.
10915
aa40ec90
JT
109162002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10917
10918 * frame.c (find_saved_register): Avoid a NULL pointer
10919 dereference and actually walk the frame list.
10920
0f79675b
AC
109212002-04-20 Andrew Cagney <ac131313@redhat.com>
10922
10923 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10924 sorted in most most-recent-used order. Document.
10925 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10926
f91305dd 109272002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10928
10929 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10930 instead of ->prev.
10931 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10932 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10933 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10934 instead of ->prev.
10935
73d322b1
EZ
109362002-04-19 Elena Zannoni <ezannoni@redhat.com>
10937
10938 Fix PR gdb/471.
10939 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10940 (build_builtin_type_vec128): Ditto.
10941 (append_composite_type_field): Fix calculation of type length in
10942 union case.
10943
ccd9a834
EZ
109442002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10945
10946 * config/djgpp/README: Update.
10947
10948 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10949 compiler warnings.
10950
a57f9e49
JT
109512002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10952
10953 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10954 (alpha_setup_arbitrary_frame): ...to this.
10955 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10956 for alpha_setup_arbitrary_frame.
10957
f4f9705a
AC
109582002-04-18 Andrew Cagney <cagney@redhat.com>
10959
10960 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10961 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10962
f4f9705a
AC
10963 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10964 * target.h (memory_breakpoint_from_pc): Update declaration.
10965 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10966
10967 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10968 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10969 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10970 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10971 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10972 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10973 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10974 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10975 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10976 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10977 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10978 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10979
10980 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10981 const pointer.
10982 * monitor.c (monitor_insert_breakpoint): Ditto.
10983 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10984
10985 * config/mcore/tm-mcore.h: Update copyright.
10986 * mem-break.c: Ditto.
10987 * xstormy16-tdep.c: Ditto.
10988
29f319b8
PM
109892002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10990
10991 * p-exp.y: Add precedence rule for '^' token.
10992 This removes the shift/reduce conflicts.
10993 Remove the comment concerning these shift/reduce conflicts.
10994
ebeac11a
EZ
109952002-04-18 Elena Zannoni <ezannoni@redhat.com>
10996
10997 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10998 (registers_powerpc_nofp): New register set for processors
10999 without floating point unit.
11000
27c31547
DM
110012002-04-18 David S. Miller <davem@redhat.com>
11002
11003 * MAINTAINERS: Add myself to write-after-approval.
11004
47a73475
MS
110052002-04-17 Michael Snyder <msnyder@redhat.com>
11006
11007 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11008
953836b2
AC
110092002-04-17 Andrew Cagney <ac131313@redhat.com>
11010
11011 * rs6000-tdep.c (frame_initial_stack_address): Use
11012 frame_register_read to read the alloca_reg.
11013
8b0d4340
AC
110142002-04-17 Andrew Cagney <ac131313@redhat.com>
11015
11016 * frame.c (find_saved_register): Find saved registers in the next
11017 not prev frame.
11018 Fix PR gdb/365.
11019
d8864532
AC
110202002-04-17 Andrew Cagney <ac131313@redhat.com>
11021
11022 * gdbarch.sh (LANG): Set to ``c''.
11023
36cc83a3 110242002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11025
36cc83a3 11026 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11027
2f4150cc 110282002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11029
11030 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11031 Update copyright.
11032
628703c6 11033 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11034 Also fix PR gdb/391.
361d1df0 11035
56157b4a
AC
110362002-04-14 Andrew Cagney <ac131313@redhat.com>
11037
11038 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11039 * aclocal.m4, configure: Re-generate.
11040 Fix PR gdb/391.
361d1df0 11041
6d1e3329
EZ
110422002-04-14 Elena Zannoni <ezannoni@redhat.com>
11043
11044 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11045 instead of tm_print_insn.
11046
cb06fa07
EZ
110472002-04-14 Elena Zannoni <ezannoni@redhat.com>
11048
11049 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11050
f208ba17
AC
110512002-04-14 Andrew Cagney <ac131313@redhat.com>
11052
11053 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11054 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11055 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11056
20f01a46
DH
110572002-04-12 Don Howard <dhoward@redhat.com>
11058
11059 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11060 max_user_call_depth.
11061 (init_cmd_lists): Initialize the new value;
11062 * cli/cli-script.c (execute_user_command): Limit the call depth of
11063 user defined commands. This avoids a core-dump when user commands
11064 are infinitly recursive.
11065
a88376a3
KB
110662002-04-12 Kevin Buettner <kevinb@redhat.com>
11067
11068 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11069 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11070 from tdep struct instead of DEFAULT_LR_SAVE.
11071 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11072 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11073 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11074
f2172603
MS
110752002-04-12 Michael Snyder <msnyder@redhat.com>
11076
694f61fb 11077 * Remote.c: Spelling fix.
20fe79c8
MS
11078 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11079 If no symbol found for "sbrk", try "_sbrk".
11080 (make_output_phdrs): Use bfd_section_name.
11081 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11082 * eval.c: Indentation fix-ups.
169a7369
MS
11083 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11084 in case it gets applied to an address that is already
11085 in the instruction space.
de74f71f
MS
11086 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11087 * symfile.c: Fix indentation, long lines.
f2172603
MS
11088 * source.c: White space fix-up.
11089
cda5a58a
AC
110902002-04-12 Andrew Cagney <cagney@redhat.com>
11091
11092 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11093 * frame.c (frame_register_read): New function. Return non-zero on
11094 success.
11095 (read_relative_register_raw_bytes_for_frame): Delete.
11096 (read_relative_register_raw_bytes): Delete.
11097 * frame.h (frame_register_read): Declare.
11098 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11099 * sh-tdep.c: Ditto.
11100 * infcmd.c (do_registers_info): Ditto.
11101 * hppa-tdep.c: Ditto.
11102 * rs6000-tdep.c: Ditto.
11103 * h8500-tdep.c: Ditto.
11104 * mips-tdep.c: Ditto.
11105 * h8300-tdep.c: Ditto.
11106 * z8k-tdep.c: Ditto.
11107
2ea5f656
KB
111082002-04-12 Kevin Buettner <kevinb@redhat.com>
11109
11110 From Jimi X <jimix@watson.ibm.com>:
11111 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11112 64-bit SysV ABI.
11113
27b15785
KB
111142002-04-12 Kevin Buettner <kevinb@redhat.com>
11115
11116 From Jimi X <jimix@watson.ibm.com>:
11117 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11118 bfd info.
11119
5d57ee30
KB
111202002-04-12 Kevin Buettner <kevinb@redhat.com>
11121
11122 From Jimi X <jimix@watson.ibm.com>:
11123 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11124 register sets for these processor variants.
11125
bc1e36ca
DJ
111262002-04-11 Daniel Jacobowitz <drow@mvista.com>
11127
bc1e36ca
DJ
11128 * regformats/reg-ppc.dat: Support FPSCR.
11129
e3f36dbd
KB
111302002-04-11 Kevin Buettner <kevinb@redhat.com>
11131
11132 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11133 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11134 Add fpscr as an invalid/unfetchable register.
11135 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11136 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11137 (fill_fpregset): Add support for register fpscr.
11138 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11139 (fill_gregset): Account for the fact that register ``mq'' might
11140 not exist.
11141 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11142 (registers_power): Add fpscr to register set at slot 71.
11143 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11144 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11145
943c9c25
MS
111462002-04-11 Michael Snyder <msnyder@redhat.com>
11147
11148 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11149 * configure: Regenerate.
11150 * config.in: Regenerate.
11151 * acconfig.h: Add define for _SYSCALL32.
11152 * core-sol2.c: Remove #define _SYSCALL32.
11153 * solib-legacy.c: Remove #define _SYSCALL32.
11154
d8c0a2e7
AC
111552002-04-10 Andrew Cagney <ac131313@redhat.com>
11156
11157 * stack.c (select_frame): Cleanup internal error message, do not
11158 use %p.
11159
7cc19214
AC
111602002-04-10 Andrew Cagney <ac131313@redhat.com>
11161
11162 * stack.c (select_frame): Check that selected_frame and the
11163 specified level are as expected.
11164 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11165 Update copyright.
11166 * frame.h (struct frame_info): Add field `level'. Update
11167 copyright.
11168 Work-in-progress PR gdb/464.
11169
67a2b77e
AC
111702002-04-10 Andrew Cagney <ac131313@redhat.com>
11171
11172 * maint.c (maint_print_section_info): Rename print_section_info.
11173 (print_bfd_section_info, print_objfile_section_info): Update.
11174 * inferior.h (struct gdbarch): Add opaque declaration.
11175 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11176 * gdbarch.h: Regenerate.
11177
8cfda98c
ML
111782002-04-10 Michal Ludvig <mludvig@suse.cz>
11179
11180 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11181 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11182 (kernel_u_size): Added.
11183 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11184 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11185
ca439ad2 111862002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11187
ca439ad2
JI
11188 * valarith.c (find_size_for_pointer_math): New function, either returns
11189 the size for a pointer's target, returns 1 for void *, or errors for
11190 incomplete types.
11191 (value_add, value_sub): use find_size_for_pointer_math.
11192
2f2893d9
DJ
111932002-04-09 Daniel Jacobowitz <drow@mvista.com>
11194
11195 * linux-low.c (linux_look_up_symbols): New hook.
11196 (linux_target_ops): Add linux_look_up_symbols.
11197 * remote-utils.c (decode_address): New function.
11198 (look_up_one_symbol): New function.
11199 * server.c (handle_query): Call target look_up_symbols hook.
11200 * server.h (look_up_one_symbol): Add prototype.
11201 * target.h (struct target_ops): Add look_up_symbols hook.
11202
96cb11df
AC
112032002-04-09 Andrew Cagney <ac131313@redhat.com>
11204
11205 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11206 override FP_REGNUM with frame->fp. Update copyright.
11207 * parse.c (num_std_regs, std_regs): Delete.
11208 (target_map_name_to_register): Do not search std_regs. Update
11209 function description.
11210 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11211 declarations. Update copyright.
11212 Fix PR gdb/251.
361d1df0 11213
97658e92
DJ
112142002-04-09 Daniel Jacobowitz <drow@mvista.com>
11215
11216 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11217 after the last symbol in a block.
11218
6044e3eb
PM
112192002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11220
11221 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11222 is non zero as a found symbol.
11223
0406ec40
AC
112242002-04-08 Andrew Cagney <ac131313@redhat.com>
11225
11226 * findvar.c: Include "builtin-regs.h".
11227 (value_of_register): Call value_of_builtin_reg when applicable.
11228 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11229 (target_map_name_to_register): Call
11230 builtin_reg_map_name_to_regnum.
11231 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11232 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11233 (builtin_regs_h): Define.
11234 (builtin-regs.o): New target.
11235 (findvar.o): Add $(builtin_regs_h).
11236 * builtin-regs.c, builtin-regs.h: New files.
11237 * std-regs.c: New file.
11238 Partial fix for PR gdb/251.
11239
56a6dfb9
KB
112402002-04-08 Kevin Buettner <kevinb@redhat.com>
11241
11242 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11243 it's no longer required.
11244
3a808432
AC
112452002-04-08 Andrew Cagney <ac131313@redhat.com>
11246
11247 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11248
7c40d541
KB
112492002-04-08 Kevin Buettner <kevinb@redhat.com>
11250
11251 From Jimi X <jimix@watson.ibm.com>:
11252 * rs6000-tdep.c (rs6000_software_single_step): Use
11253 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11254 and size. Use target_insert_breakpoint() and
11255 target_remove_breakpoint() to insert and remove breakpoints
11256 instead of explicit memory reads and writes.
11257
cc9836a8
KB
112582002-04-08 Kevin Buettner <kevinb@redhat.com>
11259
11260 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11261 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11262 ELF_OBJECT_FORMAT ifdef.
11263
7495d1dc
KB
112642002-04-08 Kevin Buettner <kevinb@redhat.com>
11265
11266 From Jimi X <jimix@watson.ibm.com>:
11267 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11268
4288e836
KB
112692002-04-08 Kevin Buettner <kevinb@redhat.com>
11270
11271 From Jimi X <jimix@watson.ibm.com>:
11272 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11273 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11274
a4e4e501
MK
112752002-04-07 Mark Kettenis <kettenis@gnu.org>
11276
11277 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11278 s/asprintf/xasprintf/.
11279 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11280
006defba
AC
112812002-04-07 Andrew Cagney <ac131313@redhat.com>
11282
11283 I believe Jeff Law denies responsability for this one:
11284 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11285 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11286 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11287 Work-around for PR gdb/366.
11288
7aa83cac
EZ
112892002-04-07 Elena Zannoni <ezannoni@redhat.com>
11290
11291 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11292 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11293 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11294
cf1fcca1
EZ
112952002-04-07 Elena Zannoni <ezannoni@redhat.com>
11296
11297 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11298 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11299 information.
11300
3f289e6f
AC
113012002-04-07 Andrew Cagney <ac131313@redhat.com>
11302
11303 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11304 maintainer.
11305
129188f6
AC
113062002-04-07 Andrew Cagney <ac131313@redhat.com>
11307
11308 * README (Reporting Bugs in GDB): Document the bug web page as the
11309 prefered way of submitting bugs.
11310 Fix PR gdb/402.
11311
1200cd6e
AC
113122002-04-06 Andrew Cagney <ac131313@redhat.com>
11313
11314 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11315 -1. Update comment.
11316 * gdbarch.h, gdbarch.c: Re-generate.
11317
2853c33c
AS
113182002-04-07 Andreas Schwab <schwab@suse.de>
11319
11320 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11321 buffer to regcache_collect.
11322
c2169756
AC
113232002-04-06 Andrew Cagney <ac131313@redhat.com>
11324
11325 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11326 * gdbarch.c, gdbarch.h: Re-generate.
11327
25f1b008
AC
113282002-04-06 Andrew Cagney <ac131313@redhat.com>
11329
11330 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11331 declaration. Fix -Werror.
11332
59263426
DJ
113332002-04-05 Daniel Jacobowitz <drow@mvista.com>
11334
11335 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11336 * gdbarch.c: Regenerate.
11337
f5db4da3
MS
113382002-04-05 Michael Snyder <msnyder@redhat.com>
11339
80f8a6eb
MS
11340 * breakpoint.c (clear_command): Rewrite middle section to
11341 combine two loops with identical control conditions.
11342 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11343 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11344
ad3dcc5c
L
113452002-04-05 H.J. Lu (hjl@gnu.org)
11346
11347 * solib-svr4.c (bkpt_names): Add "__start".
11348
f32e7a74
AC
113492002-04-04 Andrew Cagney <ac131313@redhat.com>
11350
11351 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11352 as test for 64 bit target.
11353
8227c0ff
AC
113542002-04-05 Andrew Cagney <ac131313@redhat.com>
11355
11356 * h8500-tdep.c (h8500_write_fp): Delete function.
11357 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11358 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11359 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11361 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11362 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11363 (s390_write_fp):
11364 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11365 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11366 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11367 (d10v_write_fp): Delete function.
11368 * inferior.h (write_fp, generic_target_write_fp): Delete
11369 declarations.
11370 * regcache.c (generic_target_write_fp): Delete function.
11371 (write_fp): Delete function.
11372 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11373 * gdbarch.h, gdbarch.c: Regenerate.
11374 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11375 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11376 (sparc64_write_fp): Delete declaration.
11377 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11378 (h8500_write_fp): Delete declaration.
11379
2757dd86
AC
113802002-04-04 Andrew Cagney <ac131313@redhat.com>
11381
11382 * sparc-tdep.c (sparc64_write_fp): Delete.
11383 (sparc_push_dummy_frame): Replace write_fp call with code to store
11384 the FP directly.
11385 (sparc_gdbarch_init): Do not initialize write_fp.
11386
c69255e1
KB
113872002-04-05 Kevin Buettner <kevinb@redhat.com>
11388
11389 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11390 clause.
11391
ae767bfb
JB
113922002-03-29 Jim Blandy <jimb@redhat.com>
11393
11394 * stack.c (get_selected_block): Add new argument `addr_in_block',
11395 used to return the exact code address we used to select the block,
11396 not just the block.
11397 * blockframe.c (get_frame_block, get_current_block): Same.
11398 * frame.h (get_frame_block, get_current_block,
11399 get_selected_block): Update declarations.
11400 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11401 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11402
84d2ac95
MS
114032002-04-05 Michael Snyder <msnyder@redhat.com>
11404
11405 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11406 warning message.
11407
596aa3bf
JB
114082002-04-05 J. Brobecker <brobecker@gnat.com>
11409
11410 * utils.c (xfullpath): New function.
11411 * defs.h (xfullpath): Add declaration.
11412 * source.c (openp): Use xfullpath in place of gdb_realpath to
11413 avoid resolving the basename part of filenames when the
11414 associated file is a symbolic link. This fixes a potential
11415 inconsistency between the filenames known to GDB and the
11416 filenames it prints in the annotations.
11417 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11418 to be able to match a filename with either the real filename, or
11419 the name of any symbolic link to this file.
11420 (lookup_partial_symtab): Ditto.
11421
c02f5703
MS
114222002-04-04 Michael Snyder <msnyder@redhat.com>
11423
11424 * breakpoint.c: Add support for hardware breakpoints in overlays.
11425 (overlay_events_enabled): New state variable.
11426 (insert_breakpoints): Use overlay_events_enabled to decide
11427 whether to attempt to set a breakpoint at the overlay load addr.
11428 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11429 (remove_breakpoint): Use overlay_events_enabled to decide
11430 whether breakpoints need to be removed from overlay load addr.
11431 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11432 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11433 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11434 disable_overlay_breakpoints): Update overlay_events_enabled.
11435
5fb290d7
DJ
114362002-04-04 Daniel Jacobowitz <drow@mvista.com>
11437
11438 * dwarf2read.c (struct function_range): New.
11439 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11440 (check_cu_functions): New.
11441 (read_file_scope): Initialize global function lists.
11442 Call dwarf_decode_line after processing children.
11443 (read_func_scope): Add to global function list.
11444 (dwarf_decode_lines): Call check_cu_functions everywhere
11445 record_line is called. Call record_line with a linenumber
11446 of 0 to mark sequence ends.
11447
7b3fabf0
ML
114482002-04-04 Michal Ludvig <mludvig@suse.cz>
11449
361d1df0 11450 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11451 change sync with glibc.
11452
bce58c09
JB
114532002-04-03 Jim Blandy <jimb@redhat.com>
11454
11455 * configure.in: Call AC_C_INLINE.
11456 * configure: Regenerated.
361d1df0 11457
2fccf04a
DJ
114582002-04-01 Daniel Jacobowitz <drow@mvista.com>
11459
11460 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11461 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11462
2d1bfe2e
MK
114632002-03-31 Mark Kettenis <kettenis@gnu.org>
11464
a5941fbf
MK
11465 * NEWS: Mention gcore support on FreeBSD/i386.
11466
a90cd31d
MK
11467 * fbsd-proc.c: New file.
11468 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11469 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11470
2d1bfe2e
MK
11471 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11472 while statement.
11473
9eb6e5a1
JB
114742002-03-29 Jim Blandy <jimb@redhat.com>
11475
11476 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11477 unescaped newlines in string literals, but newer ones don't. So
11478 escape them.
11479
f02df580
MS
114802002-03-26 Michael Snyder <msnyder@redhat.com>
11481 Andrew Cagney <cagney@redhat.com>
11482
361d1df0 11483 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11484 restore file to memory.
11485 * cli/cli-dump.h: New file.
11486 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11487 * NEWS: Mention new commands.
f02df580 11488
109f874e
MS
114892002-03-28 Michael Snyder <msnyder@redhat.com>
11490
11491 * symfile.c (symbol_file_add): Move test for null symbols to later.
11492
520f6ade
AC
114932002-03-27 Andrew Cagney <ac131313@redhat.com>
11494
11495 From veksler at il.ibm.com:
11496 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11497 the xstrduped original path.
11498 Fix PR gdb/417.
11499
d4654627
MS
115002002-03-27 Michael Snyder <msnyder@redhat.com>
11501
11502 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11503 * infcmd.c (_initialize_infcmd): Ditto.
11504 * language.c (_initialize_language): Ditto.
11505 * symfile.c (_initialize_symfile): Ditto.
11506 * top.c (_init_main): Ditto.
11507 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11508
6be8bc0c
EZ
115092002-03-27 Elena Zannoni <ezannoni@redhat.com>
11510
11511 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11512 vector registers handling.
11513 (skip_prologue): Handle new AltiVec instructions. Fill in new
11514 fields of frame data.
11515 (frame_get_saved_regs): Fill in information for AltiVec registers.
11516
12af6855
JB
115172002-03-27 Jim Blandy <jimb@redhat.com>
11518
11519 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11520 a function; leave this macro here to invoke that function.
11521 (symbol_init_mangled_name): Declaration for that function.
11522 * symtab.c (symbol_init_mangled_name): New function.
11523
dc672865
AC
115242002-03-27 Andrew Cagney <ac131313@redhat.com>
11525
11526 * valarith.c: Replace strerror with safe_strerror.
11527 * tracepoint.c: Ditto.
11528 * lin-lwp.c: Ditto.
11529 * go32-nat.c: Ditto.
11530 * inflow.c: Ditto.
11531 * gnu-nat.c: Ditto.
11532
d96429cd
AS
115332002-03-27 Andreas Schwab <schwab@suse.de>
11534
11535 * event-top.c (command_line_handler): Remove useless if.
11536
7e336ba1
AJ
115372002-03-27 Andreas Jaeger <aj@suse.de>
11538
11539 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11540 comment.
11541
de220d0f
ML
115422002-03-27 Michal Ludvig <mludvig@suse.cz>
11543
11544 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11545 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11546 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11547 (x86_64_linux_dr_get_status, supply_gregset),
11548 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11549 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11550 (x86_64_register_info_table): Add.
11551 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11552 (x86_64_register_raw_size, x86_64_register_virtual_type),
11553 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11554 general x86_64_register_info_table.
11555 (i386_gdbarch_init): gdbarch_register_bytes is now set
11556 dynamicaly during initialization.
11557 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11558 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11559
0e98d0a7
DJ
115602002-03-27 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * gdbserver/server.c (main): Call target_signal_to_host_p
11563 and target_signal_to_host on signals received from the remote.
11564 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11565 target_signal_from_host on signals sent to the remote.
11566 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11567 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11568
3130066b
DJ
115692002-03-27 Daniel Jacobowitz <drow@mvista.com>
11570
11571 * signals/signals.c: Include "server.h" in gdbserver build.
11572 (target_signal_from_name): Don't use STREQ.
11573 (_initialize_signals): Likewise. Don't include function in
11574 gdbserver build.
11575
9aedf4f4
DJ
115762002-03-27 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * signals.c: Moved to...
11579 * signals/signals.c: Here.
7e336ba1 11580 * Makefile (signals.o): Update.
9aedf4f4 11581
3fa41cdb
JL
115822002-03-26 Jeff Law (law@redhat.com)
11583
11584 * somread.c (som_symtab_read): Remove some commented out code and
11585 updated related comments. Do not set the minimal symbol table to
11586 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11587 in a dynamic executable.
11588 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11589 where we are unable to find the minimal symbol for the given
11590 PC value.
11591
ee677e8d
MS
115922002-03-25 Jeff Law (law@redhat.com)
11593
11594 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11595
e76e1718
ML
115962002-03-25 Michal Ludvig <mludvig@suse.cz>
11597
11598 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11599
18a642a1
AC
116002002-03-23 Andrew Cagney <ac131313@redhat.com>
11601
11602 * command.h: Update copyright.
11603 (struct cmd_list_element): Replace definition with opaque
11604 declaration.
11605 (enum cmd_types): Document that it will eventually be moved to
11606 cli/cli-decode.h
11607 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11608 (MALLOCED_REPLACEMENT): Delete macro.
11609 * Makefile.in (cli_decode_h): Add $(command_h).
11610 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11611 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11612 * completer.c: Include "cli/cli-decode.h".
11613 * maint.c: Include "cli/cli-decode.h".
11614 * cli/cli-decode.h: Include "command.h".
11615 (enum command_class): Delete.
11616 (enum cmd_types): Comment out.
11617 (enum cmd_auto_boolean): Delete.
11618 (enum var_types): Delete.
11619
b2875cc0
AC
116202002-03-23 Andrew Cagney <ac131313@redhat.com>
11621
11622 * cli/cli-decode.c: Include "gdb_assert.h".
11623 (add_set_or_show_cmd): New static function.
11624 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11625 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11626 all fields, such as func, from the set command.
11627
3b45974e
AC
116282002-03-23 Andrew Cagney <ac131313@redhat.com>
11629
11630 * MAINTAINERS (sh-elf): Change warning flag to -w.
11631
823ca731
AC
116322002-03-23 Andrew Cagney <cagney@redhat.com>
11633
11634 * defs.h (error): Add printf format attribute.
11635 * thread-db.c (thread_from_lwp): Fix error format string.
11636 * stack.c (parse_frame_specification): Ditto.
11637 * cli/cli-decode.c (undef_cmd_error): Ditto.
11638 * scm-lang.c (scm_lookup_name): Ditto.
11639 * tracepoint.c (trace_error): Ditto.
11640 * remote-utils.c (usage): Ditto.
11641 * remote.c (compare_sections_command): Ditto.
11642 Fix PR gdb/328.
11643
0e101458
AC
116442002-03-22 Andrew Cagney <ac131313@redhat.com>
11645
11646 * gdbtypes.c (append_composite_type_field): New function.
11647 (init_composite_type): New function.
11648 * gdbtypes.h (append_composite_type_field): Declare.
11649 (init_composite_type): Ditto.
11650
8e0662df
EZ
116512002-03-22 Elena Zannoni <ezannoni@redhat.com>
11652
11653 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11654 function.
8e0662df
EZ
11655 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11656 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11657 structure returning convention for SYSV ABI case, but not
11658 for GNU/Linux, FreeBSD, or NetBSD.
11659
3121eff0
DJ
116602002-03-22 Daniel Jacobowitz <drow@mvista.com>
11661
11662 * symtab.h (lookup_block_symbol): Add mangled_name argument
11663 to prototype.
11664
11665 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11666 with new mangled_name argument.
11667 * linespec.c (decode_line_1): Likewise.
11668 * valops (value_of_this): Likewise.
11669 * symtab.c (lookup_transparent_type): Likewise.
11670 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11671 (lookup_symbol): If we are given a mangled name, pass it down
11672 to lookup_symbol_aux.
11673 (lookup_block_symbol): If we are given a mangled name to check
11674 against, only return symbols which match it.
11675
349b409f
CF
116762002-03-22 Christopher Faylor <cgf@redhat.com>
11677
11678 * win32-nat.c (child_create_inferior): Check for proper shell to use
11679 here, in case the user changes it on the fly.
11680 (_initialize_inftarg): Remove shell path considerations.
11681
2a873819
EZ
116822002-03-21 Elena Zannoni <ezannoni@redhat.com>
11683
11684 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11685 for gdbarch_max_register_raw_size and max_register_virtual_size.
11686 Adjust copyright year.
11687
a1b9830c
DJ
116882002-03-21 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11691 in a function to cover the entire beginning of the function
11692 as well if it does not already.
11693
8b5790f2
TR
116942002-03-21 Tom Rix <trix@redhat.com>
11695
11696 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11697 (rs6000_ptrace64): Renamed from ptrace64.
11698
bdbe5747
MH
116992002-03-20 Martin M. Hunt <hunt@redhat.com>
11700
11701 * gdbserver/remote-utils.c (remote_open): Don't call
11702 getprotobyname, we're all using TCP here so just use
11703 IPPROTO_TCP.
7e336ba1 11704 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11705
117062002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11707
bdbe5747
MH
11708 * regcache.c (_initialize_regcache): No need to call
11709 build_regcache() at this time; it gets called whenever
11710 the gdbarch changes.
11711
7781cd62
DB
117122002-03-20 David O'Brien <obrien@FreeBSD.org>
11713
11714 * sparc-nat.c: Include sys/param.h where possible.
11715
f65ca430
DJ
117162002-03-20 Daniel Jacobowitz <drow@mvista.com>
11717
11718 Fix PR gdb/422.
11719 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11720 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11721 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11722 complex types.
11723 * stabsread.c (rs6000_builtin_type): Likewise.
11724 (read_sun_floating_type): Likewise.
11725
0c867556
PS
117262002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11727
11728 * stabsread.c (read_member_functions): Remove skip code for duplicate
11729 constructor/destructor methods. Use standard parsing for these
11730 methods and just do not chain them to the list of methods after
11731 parsing.
11732
12b9c64f
AO
117332002-03-19 Alexandre Oliva <aoliva@redhat.com>
11734
11735 * coffread.c: Remove redundant static declarations. Replace
11736 occurrences of `PTR' with `void *'.
11737 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11738 * top.h (quit_cover): Likewise.
11739 * defs.h (catch_errors): Likewise.
11740
349c5d5f
AC
117412002-03-18 Andrew Cagney <ac131313@redhat.com>
11742
11743 * defs.h (XMALLOC): Define.
11744 * gdb-events.sh (XMALLOC): Delete macro.
11745 * gdb-events.c, gdb-events.h: Regenerate.
11746 * gdbarch.sh (XMALLOC): Delete macro.
11747 * gdbarch.c: Regenerate.
11748 * serial.c (XMALLOC): Delete macro.
11749 * ui-file.c (XMALLOC): Ditto.
11750 * ser-unix.h (XMALLOC): Ditto.
11751 * sh-tdep.c (XMALLOC): Ditto.
11752 * ui-out.c (XMALLOC): Ditto.
11753 * utils.c (XMALLOC): Ditto.
11754 * i386-tdep.c (XMALLOC): Ditto.
11755 * gdb-events.c (XMALLOC): Ditto.
11756 * d10v-tdep.c (XMALLOC): Ditto.
11757 * cli-out.c (XMALLOC): Ditto.
11758
11759 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11760 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11761 * ui-file.c, ui-out.c: Ditto.
11762
7d0766f3
AC
117632002-03-18 Andrew Cagney <ac131313@redhat.com>
11764
11765 * command.h (struct cmd_list_element): Add field context.
11766 (set_cmd_context, get_cmd_context): Declare.
11767 * cli/cli-decode.h: Ditto.
11768 * cli/cli-decode.c (get_cmd_context): New function.
11769 (set_cmd_context): New function.
11770 (add_cmd): Initialize context.
11771 Part of fixing PR gdb/145 and PR gdb/146.
11772
5913bcb0
AC
117732002-03-17 Andrew Cagney <ac131313@redhat.com>
11774
1868c04e
AC
11775 * cli/cli-decode.c (cmd_type): New function.
11776 * command.h (cmd_type): Declare.
11777 * infrun.c (set_schedlock_func): Call function cmd_type.
11778 * kod.c (kod_set_os): Call cmd_type.
11779 * cris-tdep.c (cris_version_update): Use function cmd_type.
11780 (cris_mode_update, cris_abi_update): Ditto.
11781
5913bcb0
AC
11782 * command.h: (execute_cmd_post_hook): Declare.
11783 (execute_cmd_pre_hook): Declare.
11784 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11785 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11786 functions. Execute pre/post hook while ensuring that afterwords
11787 hook_in is cleared.
11788 * top.c (execute_command): Use execute_cmd_post_hook, and
11789 execute_cmd_pre_hook to execute pre/post commands.
11790 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11791 hook_stop_stub.
11792 (hook_stop_stub): Call execute_cmd_pre_hook.
11793
b51450c9
AC
117942002-03-17 Andrew Cagney <ac131313@redhat.com>
11795
11796 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11797 set'' and this leads to a core dump. Move xstrdup of
11798 operating_system to after check that it is not NULL.
11799
f66c9f11
AC
118002002-03-17 Andrew Cagney <ac131313@redhat.com>
11801
8e694ecf
AC
11802 * kod.c (kod_set_os): Remove unnecessary check that
11803 ``command->type'' is set_cmd.
11804
f66c9f11
AC
11805 * valprint.c (set_input_radix): Use input_radix.
11806 (set_output_radix): Use output_radix.
11807 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11808 isn't reverted.
11809
9d01611c
AC
118102002-03-16 Andrew Cagney <ac131313@redhat.com>
11811
11812 * value.h (struct value): Delete field ``substring_addr''. Change
11813 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11814 force_core_addr_align and force_pointer_aligh.
11815
11816 * value.h (struct value): Fix typo in above change.
9d01611c 11817
4156bb53
PS
118182002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11819
11820 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11821 to fix internal_error from ``maintenance print architecture''.
11822
0e5e3ea6
PS
118232002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11824
11825 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11826 for gcc versions after gcc-2.8.1.
11827
9b013045
PS
118282002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11829
11830 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11831 for method resolution. Restore adjustment of ``this'' pointer after
11832 calling value_struct_elt, which was accidentally removed during the
11833 HP merge.
11834
376c9600
AC
118352002-03-15 Andrew Cagney <ac131313@redhat.com>
11836
11837 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11838 value_of_register.
11839 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11840 get_saved_register.
11841 * value.h (value_of_register): Update.
11842
a4db0f07
RH
118432002-03-14 Richard Henderson <rth@redhat.com>
11844
11845 * configure.in: Detect declaration for canonicalize_file_name.
11846 * utils.c (canonicalize_file_name): Declare, if needed.
11847 (gdb_realpath): Prefer realpath if available and usable.
11848 * config.in, configure: Rebuild.
11849
96383835
RH
118502002-03-14 Richard Henderson <rth@redhat.com>
11851
11852 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11853 a constant array bound.
11854
11855 * MAINTAINERS: Add myself to write-after-approval.
11856
75245b24
MS
118572002-03-14 Michael Snyder <msnyder@redhat.com>
11858
11859 * symfile.c (syms_from_objfile): Return immediately if no syms.
11860 (symbol_file_add): Return immediately if no syms.
11861 (find_sym_fns): Return immediately if no syms.
11862
e641a1ca
ML
118632002-03-13 Michal Ludvig <mludvig@suse.cz>
11864
11865 * gdbserver/remote-util.c (remote_open): Print remote-side's
11866 IP address when remote debugging over the network.
7e336ba1 11867
df08bfec
DB
118682002-03-12 David O'Brien <obrien@FreeBSD.org>
11869
11870 * config/sparc/fbsd.mh: Fix copyright.
11871 * config/sparc/fbsd.mt: Likewise.
11872
9a57864f
RE
118732002-03-11 Richard Earnshaw <rearnsha@arm.com>
11874
11875 * MAINTAINERS: Fix typo in name of gdb warnings option.
11876 (x86-64): Fix formating so that this can be parsed by awk.
11877
dd7bf85e
DJ
118782002-03-10 Daniel Jacobowitz <drow@mvista.com>
11879
11880 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11881 * defs.h: Include "gdb/signals.h".
11882 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11883
33a0a2ac
ML
118842002-03-10 Michal Ludvig <mludvig@suse.cz>
11885
11886 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11887 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11888 from x86-64-tdep.h
11889
dd824b04
DJ
118902002-03-10 Daniel Jacobowitz <drow@mvista.com>
11891 Don Howard <dhoward@redhat.com>
11892
11893 * mips-tdep.c (ST0_FR): Define.
11894 (mips2_fp_compat): New function, temporarily disabled.
11895 (mips_read_fp_register_single): New function.
11896 (mips_read_fp_register_double): New function.
11897 (mips_print_register): Use them.
11898 (do_fp_register_row): Likewise.
11899
6a41ff59
AC
119002002-03-09 Andrew Cagney <ac131313@redhat.com>
11901
11902 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11903 approval''.
11904
4ea09c10
PS
119052002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11906
11907 * stabsread.c (read_member_functions): Fix is_stub test for
11908 static member functions, improve comment.
11909
6ccc741d
RE
119102002-03-07 Richard Earnshaw <rearnsha@arm.com>
11911
11912 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11913 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11914 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11915 commands that set boolean values.
11916 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11917 (arm_rdi_resume): Always initialize PC.
11918 (arm_rdi_open): Don't use rslt as a boolean.
11919 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11920 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11921 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11922 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11923
438013df
AO
119242002-03-06 Alexandre Oliva <aoliva@redhat.com>
11925
11926 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11927 * configure: Rebuilt.
11928
70ed8774
SC
119292002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11930
11931 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11932 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11933
5ba2abeb
AC
119342002-03-06 Andrew Cagney <ac131313@redhat.com>
11935
11936 * cli/cli-decode.c (set_cmd_completer): New function.
11937 * command.h (set_cmd_completer): Declare.
11938 * cli/cli-decode.h (set_cmd_completer): Ditto.
11939
11940 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11941 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11942 * win32-nat.c (_initialize_inftarg): Ditto.
11943 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11944 * proc-api.c (_initialize_proc_api): Ditto.
11945 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11946 * source.c (_initialize_source): Ditto.
11947 * exec.c (_initialize_exec): Ditto.
11948 * solib.c (_initialize_solib): Ditto.
11949 * top.c (init_main): Ditto.
11950 * tracepoint.c (_initialize_tracepoint): Ditto.
11951 * symfile.c (_initialize_symfile): Ditto.
11952 * printcmd.c (_initialize_printcmd): Ditto.
11953 * infcmd.c (_initialize_infcmd): Ditto.
11954 * corefile.c (_initialize_core): Ditto.
11955
f779ca99
AC
119562002-03-05 Andrew Cagney <ac131313@redhat.com>
11957
11958 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11959
01a3934b
AC
119602002-03-05 Andrew Cagney <ac131313@redhat.com>
11961
11962 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11963
37057839
AC
119642002-03-05 Andrew Cagney <ac131313@redhat.com>
11965
11966 * NEWS: Update headings, 5.2 has branched.
11967
c6ecbae5
DJ
119682002-03-04 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11971 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11972 (register_addr, REGISTER_RAW_SIZE): Likewise.
11973 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11974 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11975
e9f30c21
ML
119762002-03-03 Michal Ludvig <mludvig@suse.cz>
11977
11978 * MAINTAINERS (x86-64): Add myself.
11979 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11980 changed value_ptr -> struct value *
11981
54394ac3
DB
119822002-03-01 David O'Brien <obrien@FreeBSD.org>
11983
11984 * configure.host (sparc64-*-freebsd): Add.
11985 * configure.tgt: Likewise.
11986 * config/sparc/fbsd.mh: New file.
11987 * config/sparc/fbsd.mt: Likewise.
11988 * config/sparc/nm-fbsd.h: Likewise.
11989 * config/sparc/tm-fbsd.h: Likewise.
11990
bfe95955
DJ
119912002-03-01 Daniel Jacobowitz <drow@mvista.com>
11992
11993 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11994 regformats/reg-s390x.dat.
11995
f33c6cbf
AC
119962002-03-01 Andrew Cagney <ac131313@redhat.com>
11997
11998 * utils.c: Add FIXME explaining true/false problem.
11999
5ecaa7dd
AC
120002002-02-28 Andrew Cagney <ac131313@redhat.com>
12001
12002 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12003
2a251cc2
MC
120042002-02-28 Michael Chastain <mec@shout.net>
12005
12006 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12007
6a8031a3 120082002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12009
12010 * gdbserver/linux-s390-low.c: New file.
12011 * regformats/reg-s390.dat: New file.
12012 * regformats/reg-s390x.dat: New file.
12013 * gdbserver/configure.srv: Add S/390.
12014 * gdbserver/Makefile.in: Add S/390.
12015 * configure.tgt: Enable gdbserver for S/390.
12016
ac469903
EZ
120172002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12018
12019 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12020 first line of the doc string for "info dos", except at the end of
12021 the sentence, since the short help stops at the first period.
12022
985cb1a3
JM
120232002-02-28 Jason Merrill <jason@redhat.com>
12024
12025 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12026
c570663e
FF
120272002-02-27 Fred Fish <fnf@redhat.com>
12028
12029 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12030 comment (dumy -> dummy).
12031
43630227
PS
120322002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12033
12034 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12035
b84911e8
RB
120362002-02-27 Rodney Brown <rbrown64@csc.com.au>
12037
12038 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12039
58caa3dc
DJ
120402002-02-27 Daniel Jacobowitz <drow@mvista.com>
12041
12042 * gdbserver/acconfig.h: New file.
12043 * gdbserver/i387-fp.c: New file.
12044 * gdbserver/i387-fp.h: New file.
12045 * gdbserver/linux-x86-64.c: New file.
12046 * regformats/reg-x86-64.dat: New file.
12047 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12048 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12049 * gdbserver/configure.in: Add support for regsets.
12050 * gdbserver/config.in: Regenerate.
12051 * gdbserver/configure: Regenerate.
12052 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12053 * gdbserver/linux-low.h: New file.
12054 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12055 for regsets.
12056 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12057 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12058 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12059 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12060 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12061 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12062 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12063 "i387-fp.h". Add PTRACE_GETREGS and friends.
12064 * gdbserver/regcache.c (supply_register): New function.
12065 (supply_register_by_name): New function.
12066 (collect_register): New function.
12067 (collect_register_by_name): New function.
12068
93652174
DJ
120692002-02-27 Daniel Jacobowitz <drow@mvista.com>
12070
12071 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12072 (config.status): Add configure.srv dependency.
12073 (server_h): Add config.h dependency.
12074
a02e4a61
DJ
120752002-02-27 Daniel Jacobowitz <drow@mvista.com>
12076
12077 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12078 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12079 * gdbserver/configure.srv: Change i386-*-linux* to use
12080 reg-i386-linux.o.
12081
ce0eebec
AC
120822002-02-26 Andrew Cagney <ac131313@redhat.com>
12083
12084 * x86-64-tdep.c: Re-indent. Update copyright date.
12085
82dbc5f7
AC
120862002-02-26 Andrew Cagney <ac131313@redhat.com>
12087
12088 From Michal Ludvig <mludvig@suse.cz>:
12089 * x86-64-tdep.c (value.h): Delete.
12090 (gdb_assert.h): Include.
12091 (x86_64_register_convert_to_virtual,
12092 x86_64_register_convert_to_raw ): Add check which lets only
12093 floating-point values to be converted.
12094 (value_push): Delete.
12095 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12096 (i386_gdbarch_init): Number of register_bytes fixed.
12097
e4621584
AC
120982002-02-26 Andrew Cagney <ac131313@redhat.com>
12099
12100 * MAINTAINERS: Add x86-64 target.
12101
81a9a963
AC
121022002-02-26 Andrew Cagney <ac131313@redhat.com>
12103
12104 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12105 * osfsolib.c (solib_map_sections): Ditto.
12106 * irix5-nat.c (solib_map_sections): Ditto.
12107 * corelow.c (gdb_check_format): Ditto.
12108 * symfile.c (symfile_bfd_open): Ditto.
12109 * solib.c (solib_map_sections): Ditto.
12110 Fix PR gdb/354.
7e336ba1 12111
0f017ab9
AC
121122002-02-26 Andrew Cagney <ac131313@redhat.com>
12113
12114 * remote.c (_initialize_remote): By default, disable ``e'' and
12115 ``E'' step out-of-range packets.
12116
75738c29
AS
121172002-02-26 Andreas Schwab <schwab@suse.de>
12118
12119 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12120 m68k_linux_frame_saved_pc.
12121 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12122 in_sigtramp.
12123 (SIGCONTEXT_PC_OFFSET): Remove.
12124 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12125 m68k_linux_sigtramp_saved_pc): New functions.
12126 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12127 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12128 (UCONTEXT_PC_OFFSET): Define.
12129 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12130 non-RT and RT signal trampolines.
12131
7e8ed687
RE
121322002-02-26 Richard Earnshaw <rearnsha@arm.com>
12133
12134 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12135 (TARGET_NBPG, STACK_END_ADDR): Delete
12136 (VARIABLES_INSIDE_BLOCK): Delete.
12137
6972bc8b
AC
121382002-02-25 Andrew Cagney <ac131313@redhat.com>
12139
12140 * utils.c (perror_with_name): Make string parameter constant.
12141 (print_sys_errmsg): Ditto.
12142 (query): Ditto.
12143 * defs.h (perror_with_name): Update.
12144 (print_sys_errmsg): Update.
12145 (query): Update.
12146
aa32f823
DJ
121472002-02-25 Daniel Jacobowitz <drow@mvista.com>
12148
12149 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12150 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12151
19caaa45
PS
121522002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12153
12154 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12155 if it already matches the current architecture from the exec file.
12156 Include arch-utils.h for gdbarch_info_init prototype.
12157 * Makefile.in (rs6000-nat.o): Update dependencies.
12158
d951901f
EZ
121592002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12160
12161 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12162 list of exported variables.
12163
7ea81414
DJ
121642002-02-24 Daniel Jacobowitz <drow@mvista.com>
12165
12166 * gdbserver/configure.srv: New file.
12167 * gdbserver/configure.in: Use configure.srv instead
12168 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12169 from it.
12170 * gdbserver/configure: Regenerated.
12171 * gdbserver/terminal.h: New file.
12172 * gdbserver/Makefile.in: Update for configure changes. Remove
12173 more unneeded include paths.
12174
080fe24b
AC
121752002-02-24 Andrew Cagney <ac131313@redhat.com>
12176
12177 From wiz at danbala:
12178 * config/sparc/tm-sp64.h: Fix grammar and typos.
12179 Fix PR gdb/287.
12180
8605d56e
AC
121812002-02-24 Andrew Cagney <ac131313@redhat.com>
12182
12183 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12184 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12185 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12186 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12187 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12188 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12189 * s390-tdep.c: Ditto.
92362027
AC
12190 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12191 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12192 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12193 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12194 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12195 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12196 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12197 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12198 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12199 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12200 Fix PR gdb/378.
7e336ba1 12201
8ed32cc0
AC
122022002-02-23 Andrew Cagney <ac131313@redhat.com>
12203
a3007b6f
AC
12204 * lin-thread.c: Delete file.
12205 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12206 to gdb_proc_service.h.
12207 * configure: Re-generate.
12208
50a9e2f1
AC
12209 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12210 * serial.c (serial_open): Delete check for "ocd".
12211 Fix PR gdb/349.
12212
8b6e7932
AC
12213 * Makefile.in (linux-thread.o): Delete target.
12214 * linux-thread.c: Delete file.
12215
d155c46b
AC
12216 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12217 renamed SH files to be consistent.
12218
8ed32cc0
AC
12219 * symtab.c (sort_search_symbols): Use xfree.
12220
0e18d038
RE
122212002-02-23 Richard Earnshaw <rearnsha@arm.com>
12222
12223 * arm-linux-tdep.c (arm_linux_init_abi): Register
12224 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12225 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12226 definition with undef, since we don't want the sysvr4 definition.
12227 (SKIP_TRAMPOLINE_CODE): Likewise.
12228
27aac7ff
AC
122292002-02-23 Andrew Cagney <ac131313@redhat.com>
12230
12231 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12232
12233 * configure.in: (AC_CHECK_FUNCS) Added test for
12234 canonicalize_file_name Regenerated.
12235 * config.in, configure: Regenerated.
12236 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12237 defined use canonicalize_file_name.
7e336ba1 12238
65a6e0ee
MC
122392002-02-23 Michael Chastain <mec@shout.net>
12240
12241 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12242
47b95330
AC
122432002-02-23 Andrew Cagney <ac131313@redhat.com>
12244
12245 * README: Remove references to cygnus.com.
12246 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12247 dot com'' form. Remove references to cygnus.com and sourceware.
12248
696f451b
AC
122492002-02-23 Andrew Cagney <ac131313@redhat.com>
12250
12251 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12252 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12253 1003.1-2001 no longer allows "head -1".
12254 * gdb/Makefile.in (version.c): Likewise.
12255 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12256 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12257 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12258
bbaca940
AC
122592002-02-23 Andrew Cagney <ac131313@redhat.com>
12260
12261 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12262 * command.h (cmd_cfunc_eq): Declare.
12263 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12264
12265 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12266 ``struct cmd_list_element *''.
12267 * cli/cli-cmds.c (is_complete_command): Update. Use
12268 cmd_cfunc_eq.
12269 * top.c (execute_command): Pass the command to
12270 is_complete_command.
12271 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12272
b8b8b047
AC
122732002-02-23 Andrew Cagney <ac131313@redhat.com>
12274
12275 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12276 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12277 architecture defines.
12278 * s390-tdep.c (s390_gdbarch_init): Likewise.
12279
19d3fc80
RE
122802002-02-23 Richard Earnshaw <rearnsha@arm.com>
12281
12282 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12283 (arm_linux_push_arguments): Likewise.
12284 (arm_linux_init_abi): Register them. Also register linux-specific
12285 call_dummy_words.
12286 (find_minsym_and_objfile): Use strcmp, not STREQ.
12287 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12288 (arm_linux_call_dummy_words): Delete declaration.
12289 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12290 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12291 declarations.
12292 (LOWEST_PC): Delete.
12293
3ab13650
PS
122942002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12295
12296 * maint.c (print_section_info): Do not prepend `0x' to filepos
12297 output, it will be handled by local_hex_string_custom.
12298
19d3fc80 122992002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12300
12301 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12302 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12303 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12304
d85a5daf
JB
123052002-02-22 Jim Blandy <jimb@redhat.com>
12306
12307 Indicate that the bcache functions don't change the strings
12308 they're passed.
12309 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12310 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12311
eeb25b8a
PM
123122002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12313
12314 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12315
6badb179
CF
123162002-02-21 Christopher Faylor <cgf@redhat.com>
12317
12318 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12319 find the complete path to a loaded DLL.
12320
e8717518
FF
123212002-02-21 Fred Fish <fnf@redhat.com>
12322
12323 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12324 that marks the end of the range of a function, enter a line number
12325 entry that has a line number of zero and a PC offset that matches
12326 the end of the function. This starts a range of PC's for which no
12327 line number information is known.
12328 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12329 PC's for which no line number info is found (line number is zero)
12330 then we didn't find any valid line information.
12331 * symtab.h: Document use of zero line number entry.
12332
9abe5450
EZ
123332002-02-21 Elena Zannoni <ezannoni@redhat.com>
12334
12335 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12336 (have_ptrace_getvrregs): Define for run time checks.
12337 (gdb_vrregset_t): New type for Altivec register handling.
12338 (fetch_register, store_register): Fetch/store altivec register
12339 when needed.
12340 (fetch_altivec_register, store_altivec_register): New functions.
12341 (supply_vrregset, fill_vrregset): New functions.
12342 (fetch_altivec_registers, store_altivec_registers): New functions.
12343 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12344 registers as well.
12345
aaa38bb5
AJ
123462002-02-21 Jiri Smid <smid@suse.cz>
12347
12348 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12349
b34db576
RE
123502002-02-21 Richard Earnshaw <rearnsha@arm.com>
12351
12352 * Makefile.in (armnbsd-nat.o): Update dependencies.
12353 * armnbsd-nat.c (supply_gregset): New function. Common code to
12354 supply the integer register set.
12355 (supply_fparegset): New function. Similar for FPA registers.
12356 (fetch_regs, fetch_fp_regs): Use them.
12357 (fetch_core_registers): Likewise.
12358 (fetch_elfcore_registers): New function.
12359 (arm_netbsd_elfcore_fns): New core-file type specification.
12360 (_initialize_arm_netbsd_nat): Register it.
12361
3e56fc4b
RE
123622002-02-21 Richard Earnshaw <rearnsha@arm.com>
12363
12364 * armnbsd-nat.c: Include gdbcore.h.
12365 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12366 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12367 'void' to declaration, to shut up ARI.
12368 (fetch_core_registers): Make static. Rewrite using supply_register.
12369 (arm_netbsd_core_fns): New core-file type specification.
12370 (_initialize_arm_netbsd_nat): New function.
12371
097f6b0b
CF
123722002-02-21 Christopher Faylor <cgf@redhat.com>
12373
12374 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12375 value.
12376
c914e0cc
CF
123772002-02-20 Christopher Faylor <cgf@redhat.com>
12378
12379 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12380 fails.
12381
385fa495
DJ
123822002-02-20 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * jv-exp.y (parse_number): Change type of implicit longs
12385 to builtin_type_uint64.
12386
e5f1222d
DJ
123872002-02-20 Daniel Jacobowitz <drow@mvista.com>
12388
12389 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12390 to be an integer instead of a `union wait'.
12391
75c9abc6
DJ
123922002-02-20 Daniel Jacobowitz <drow@mvista.com>
12393
12394 * mips-linux-nat.c: Call the operating system GNU/Linux.
12395 * mips-linux-tdep.c: Likewise.
12396 * mips-tdep.c: Likewise.
12397
551792a5
DJ
123982002-02-20 Daniel Jacobowitz <drow@mvista.com>
12399
12400 Fix PR gdb/265.
12401 * jv-exp.y (parse_number): Handle 64-bit integers.
12402
ee6e2b82
DJ
124032002-02-20 Daniel Jacobowitz <drow@mvista.com>
12404
12405 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12406 AC_STDC_HEADERS to AC_HEADER_STDC.
12407 * gdbserver/configure: Regenerated.
12408
a48442a0
RE
124092002-02-20 Richard Earnshaw <rearnsha@arm.com>
12410
12411 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12412 is defined.
12413 * sparc-tdep.c (get_longjmp_target): Likewise.
12414
fe419ffc
RE
124152002-02-20 Richard Earnshaw <rearnsha@arm.com>
12416
12417 * News: Add news about ARM and Multi-arch. Mention the new target
12418 arm*-*-netbsd*.
12419
5832ed7e
JB
124202002-02-19 Jim Blandy <jimb@redhat.com>
12421
12422 * stabsread.c (error_type_complaint): Improve error message.
12423
84563040
DJ
124242002-02-19 Daniel Jacobowitz <drow@mvista.com>
12425
12426 * gdbserver/README: Update documentation.
12427 * gdbserver/configure.in: Update configury to match documentation.
12428 * gdbserver/Makefile.in: Likewise.
12429 * gdbserver/configure: Regenerated.
12430 * gdbserver/aclocal.m4: New file, generated by aclocal.
12431 * gdbserver/config.in: New file, generated by autoheader.
12432
375fd65b
RE
124332002-02-19 Richard Earnshaw <rearnsha@arm.com>
12434
12435 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12436 armnbsd-nat.c.
12437
08216dd7
RE
124382002-02-19 Richard Earnshaw <rearnsha@arm.com>
12439
12440 * arm-tdep.h (enum arm_float_model): New enum.
12441 (struct gdbarch_tdep): Add fp_model.
12442 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12443 up floating-point conversions until we know the floating-point model
12444 in use by the inferior. Don't complain about being unable to
12445 determine the ABI of the inferior when we don't have one.
12446 (arm_extract_return_value): Support different floating-point models.
12447 (arm_store_return_value): Likewise.
aaa38bb5 12448 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12449 ARM_FLOAT_SOFT.
12450 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12451
65d6d66a
PS
124522002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12453
12454 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12455 of ``current_gdbarch''.
12456
47221191
RE
124572002-02-19 Richard Earnshaw <rearnsha@arm.com>
12458
12459 * armnbsd-nat.c : ANSIfy all function declarations.
12460 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12461 (fetch_inferior_registers): Re-implement in terms of above.
12462 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12463 (store_inferior_registers): Re-implement in terms of above.
12464
fdf39c9a
RE
124652002-02-19 Richard Earnshaw <rearnsha@arm.com>
12466
aaa38bb5 12467 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12468 kernel.
12469 * arm-linux-tdep.c: Likewise.
12470 * config/arm/tm-linux.h: Likewise.
12471
93247f88
RE
124722002-02-19 Richard Earnshaw <rearnsha@arm.com>
12473
12474 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12475 * config/arm/nbsd.mt (TM_FILE): Delete.
12476 * config/arm/tm-nbsd.h: Delete.
12477
d7b486e7
RE
124782002-02-19 Richard Earnshaw <rearnsha@arm.com>
12479
12480 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12481 Initialize CALL_DUMMY_LENGTH.
12482
41d39a95
RE
124832002-02-19 Richard Earnshaw <rearnsha@arm.com>
12484
12485 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12486 function.
12487 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12488 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12489 defines one thing and that is incorrect for this port.
12490 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12491
e1195560
PM
124922002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12493
12494 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12495
c1748f97
PM
124962002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12497
12498 * win32-nat.c (display_selector): New function. Displays information
12499 about the information returned by GetThreadSelectorEntry API function.
12500 (display_selectors): New function. Displays the infomation of
12501 the selector given as argument, or of CS, DS ans FS selectors
12502 if no argument is given.
12503 ( _initialize_inftarg): Add "w32" as info prefix command.
12504 Add "info w32 selector" as command calling display_selectors.
12505
e41e6bbf
PM
125062002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12507
12508 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12509 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12510 if not defined.
12511
0d3a9f48
RE
125122002-02-18 Richard Earnshaw <rearnsha@arm.com>
12513
12514 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12515
3fb4b924
RE
125162002-02-18 Richard Earnshaw <rearnsha@arm.com>
12517
12518 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12519 (arm_fix_call_dummy): Call it.
12520 (arm_call_dummy_breakpoint_offset): Delete.
12521 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12522 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12523
7f55af32
AC
125242002-02-18 Andrew Cagney <ac131313@redhat.com>
12525
12526 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12527 Default to func_frame_chain_valid.
12528 * gdbarch.h, gdbarch.c: Re-generate.
12529 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12530
05f13b9c
EZ
125312002-02-18 Elena Zannoni <ezannoni@redhat.com>
12532
12533 * ppc-linux-nat.c: Update copyright.
12534 (fetch_register, store_register): Add tid parameter, don't compute
12535 tid here.
12536 (fetch_ppc_registers, store_ppc_registers): Add tid
12537 parameter. Pass it along to callees.
12538 (fetch_inferior_registers, store_inferior_registers): Compute tid
12539 here, and pass it to calleed functions.
12540 (fill_gregset, supply_fpregset): Clean up formatting.
12541
d7afb4c9
RE
125422002-02-18 Richard Earnshaw <rearnsha@arm.com>
12543
12544 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12545 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12546
9df628e0
RE
125472002-02-18 Richard Earnshaw <rearnsha@arm.com>
12548
12549 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12550 * gdbarch.c gdbarch.h: Regenerate.
12551 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12552 function.
12553 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12554 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12555 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12556
12557 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12558 * arm-tdep.c (arm_get_longjmp_target): New function.
12559 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12560 this to a positive value register arm_get_longjmp_target as the
12561 longjmp handler.
12562 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12563 (arm_linux_init_abi): Set up longjmp description in tdep.
12564 * armnbsd-nat.c (get_longjmp_target): Delete.
12565 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12566 description in tdep.
12567 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12568 (get_longjmp_target): Delete declaration.
12569 (GET_LONGJMP_TARGET): Delete.
12570 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12571 (GET_LONGJMP_TARGET): Delete.
12572
57bc8964
KB
125732002-02-17 Kevin Buettner <kevinb@redhat.com>
12574
12575 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12576 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12577 of ``current_gdbarch''.
12578
83d31a92
TT
125792002-02-17 Tom Tromey <tromey@redhat.com>
12580
12581 * cli/cli-cmds.c (compare_strings): New function.
12582 (complete_command): Only print each unique item once.
12583 * completer.h (complete_line): Declare.
12584 * completer.c (complete_line): New function.
12585 (line_completion_function): Use it.
12586
17ef5d92
AC
125872002-02-16 Andrew Cagney <ac131313@redhat.com>
12588
12589 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12590 * gdbarch.h, gdbarch.c: Re-generate.
12591
491b8946
DJ
125922002-02-16 Daniel Jacobowitz <drow@mvista.com>
12593
12594 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12595
125962002-02-16 Daniel Jacobowitz <drow@mvista.com>
12597
12598 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12599 * valops.c (value_arg_coerce): Don't take the address of a reference
12600 to convert an argument to a reference.
12601
dfe7f3ac
CF
126022002-02-15 Christopher Faylor <cgf@redhat.com>
12603
12604 * win32-nat.c (get_image_name): New function.
12605 (handle_load_dll): Use get_image_name function.
12606 (get_child_debug_event): Avoid registering debug events until possibly
12607 execed process is started.
12608 (child_create_inferior): Allow invocation via shell so that command
12609 line redirection, etc. works ok.
12610 (_initialize_inftarg): Add new command: "set shell" to control whether
12611 a shell is used to start a process.
12612
1d33e73a
DJ
126132002-02-15 Daniel Jacobowitz <drow@mvista.com>
12614
12615 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12616 instead of find_register_by_number.
12617 (cannot_store_register): Likewise.
12618
48cd0caa
PM
126192002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12620
aaa38bb5 12621 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12622 fprintf_unfiltered (gdb_stderr, ...).
12623
8656e7d8
DJ
126242002-02-15 Daniel Jacobowitz <drow@mvista.com>
12625
12626 * gdbserver/gdbserver.1: Document --attach.
12627
66e810cd
RE
126282002-02-15 Richard Earnshaw <rearnsha@arm.com>
12629
12630 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12631 descriptions.
12632 * arm-tdep.c (arm_default_arm_le_breakpoint)
12633 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12634 (arm_default_thumb_be_breakpoint): New. Initialize them from
12635 traditional breakpoint defines.
12636 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12637 (arm_gdbarch_init): Initialize new breakpoint variables.
12638 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12639 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12640 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12641 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12642 code out to ...
12643 (arm_netbsd_init_abi_common): ... here; new function.
12644 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12645 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12646 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12647 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12648
97e03143
RE
126492002-02-15 Richard Earnshaw <rearnsha@arm.com>
12650
12651 * arm-tdep.h (enum arm_abi): New enum.
12652 (struct gdbarch_tdep): New structure.
12653 (LOWEST_PC): Provide a default.
12654 (arm_gdbarch_register_os_abi): Declare new function.
12655 * arm-tdep.c (arm_abi_names): New array.
12656 (process_note_abi_tag_sections): New function.
12657 (get_elfosabi): New function.
12658 (arm_gdbarch_register_os_abi): New function.
12659 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12660 support for that ABI has been built in, then call the appropriate
12661 configuration routine. Use gdbarch_num_regs() to get the number
12662 of registers.
12663 (arm_dump_tdep): New function.
12664 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12665 place-holder functions.
12666 (_initialize_arm_tdep): Register them.
12667 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12668
12669 * armnbsd-tdep.c: New file.
12670 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12671 * config/arm/nbsd.mt (TDEPFILES): Add it.
12672 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12673
12674 * armnbsd-nat.c: Include regcache.h.
12675 * Makefile.in (armnbsd-nat.o): Update dependency list.
12676
12677 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12678
ad68be46
DJ
126792002-02-14 Daniel Jacobowitz <drow@mvista.com>
12680
12681 * gdbserver/Makefile.in: Fix typos in target rules.
12682
003d6d1d
DJ
126832002-02-14 Daniel Jacobowitz <drow@mvista.com>
12684
aaa38bb5 12685 Fix part of PR gdb/267.
003d6d1d
DJ
12686 * linespec.c (find_methods): Handle constructors specially for now.
12687
6b230f1b
CV
126882002-02-14 Corinna Vinschen <vinschen@redhat.com>
12689
12690 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12691 handling.
12692 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12693 standard_coerce_float_to_double().
12694
1ea98d12
CF
126952002-02-14 Christopher Faylor <cgf@redhat.com>
12696
12697 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12698 GDBINIT_FILENAME.
12699
dd47e6fd
EZ
127002002-02-14 Elena Zannoni <ezannoni@redhat.com>
12701
12702 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12703 find_variant_by_name, because it confuses the multiarch
12704 framework. Return NULL if there isn't an architecture with the
12705 user supplied name, instead of forcing a different one without
12706 recording the change with the multiarch machinery.
12707 (find_variant_by_name): Delete.
12708
d7e39b9e
PS
127092002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12710
12711 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12712 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12713
76e42a4f
MH
127142002-02-13 Martin M. Hunt <hunt@redhat.com>
12715
aaa38bb5 12716 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12717 print_frame_info_listing_hook, set current_source_symtab.
12718
0a30fbc4
DJ
127192002-02-14 Daniel Jacobowitz <drow@mvista.com>
12720
12721 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12722 and remove unused $(INCLUDE_DIR).
12723 Add regcache.c to OBS.
12724 Add generated register protocol files to clean target.
12725 Update dependencies for new objects, obsolete old target code.
12726
12727 * gdbserver/linux-low.c: Remove all platform-specific code to
12728 new files. Remove various dead code. Update to use regcache
12729 functionality.
12730 * gdbserver/remote-utils.c (fromhex): Add return statement
12731 to quiet warning.
12732 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12733 constant.
12734 (input_interrupt): Add integer parameter to match prototype
12735 of a signal handler.
12736 (outreg): Use register_data ().
12737 (prepare_resume_reply): Use gdbserver_expedite_regs.
12738 * gdbserver/server.c (main): Dynamically allocate own_buf because
12739 PBUFSIZ is no longer constant. Use registers_to_string () and
12740 registers_from_string ().
12741 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12742 for error (), fatal (), and warning (). Update definition of
12743 PBUFSIZ to use regcache functionality. Add include guard.
12744 * gdbserver/utils.c (fatal): Add missing ``const''.
12745 (warning): New function.
12746
12747 * regformats/regdat.sh: Include "regcache.h" in generated files.
12748 Provide init_registers () function.
12749 * regformats/regdef.h: Add prototype for set_register_cache ().
12750 Add include guard.
12751
12752 * gdbserver/linux-arm-low.c: New file.
12753 * gdbserver/linux-i386-low.c: New file.
12754 * gdbserver/linux-ia64-low.c: New file.
12755 * gdbserver/linux-m68k-low.c: New file.
12756 * gdbserver/linux-mips-low.c: New file.
12757 * gdbserver/linux-ppc-low.c: New file.
12758 * gdbserver/linux-sh-low.c: New file.
12759
12760 * gdbserver/regcache.c: New file.
12761 * gdbserver/regcache.h: New file.
12762
12763 * gdbserver/low-linux.c: Removed obsolete file.
12764
4cc841d0
DJ
127652002-02-14 Daniel Jacobowitz <drow@mvista.com>
12766
12767 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12768 * config/i386/linux.mt: Likewise.
12769 * config/ia64/linux.mt: Likewise.
12770 * config/m68k/linux.mh: Likewise.
12771 * config/powerpc/linux.mh: Likewise.
12772 * config/mips/linux.mt: Likewise.
12773
12774 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12775
12776 * config/i386/i386lynx.mh: Mark gdbserver variables
12777 as (currently) obsolete for this target.
12778 * config/i386/nbsd.mt: Likewise.
12779 * config/i386/nbsdelf.mt: Likewise.
12780 * config/m32r/m32r.mt: Likewise.
12781 * config/m68k/m68klynx.mh: Likewise.
12782 * config/m68k/nbsd.mt: Likewise.
12783 * config/m68k/sun3os4.mh: Likewise.
12784 * config/mips/vr5000.mt: Likewise.
12785 * config/ns32k/nbsd.mt: Likewise.
12786 * config/pa/hppabsd.mh: Likewise.
12787 * config/pa/hppaosf.mh: Likewise.
12788 * config/powerpc/nbsd.mt: Likewise.
12789 * config/rs6000/rs6000lynx.mh: Likewise.
12790 * config/s390/s390.mt: Likewise.
12791 * config/s390/s390x.mt: Likewise.
12792 * config/sparc/sparclynx.mh: Likewise.
12793 * config/sparc/sun4os4.mh: Likewise.
12794 * config/i386/x86-64linux.mt: Likewise.
12795 * config/sparc/linux.mh: Likewise.
12796
a85f51e7
DJ
127972002-02-14 Daniel Jacobowitz <drow@mvista.com>
12798
12799 * configure.tgt: Configure gdbserver only for known working
12800 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12801 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12802 SUBDIRS if it is configured. Update comment for ${nativefile}.
12803 * configure: Regenerated.
12804
65554fef
MS
128052002-02-13 Michael Snyder <msnyder@redhat.com>
12806
670a52db
MS
12807 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12808
6dbdc4a3
MS
12809 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12810 (default_gcore_mach): Just return 0, work around a problem in bfd.
12811 (default_gcore_target): OK to return NULL if exec_bfd is null.
12812 (make_mem_sec): Use a cast, avoid a warning.
12813
12814 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12815 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12816 sizeof (host pointer) != sizeof (target pointer)).
12817 (procfs_make_note_section): Avoid overflow in psargs string.
12818
aaa38bb5 12819 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12820 implementation return an error.
12821
128222002-02-13 Rodney Brown <rbrown64@csc.com.au>
12823
12824 * procfs.c (procfs_make_note_section): Provide a default definition
12825 (for alpha-dec-osf4.0f). Fix typos.
12826
1e4d76e7
EZ
128272002-02-13 Elena Zannoni <ezannoni@redhat.com>
12828
12829 * linux-proc.c: Add include of regcache.h.
12830 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12831
b6d1a1d5
AC
128322002-02-13 Andrew Cagney <ac131313@redhat.com>
12833
12834 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12835 * memattr.c (create_mem_region): Disallow useless empty region.
12836 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12837 non-overlapping.
b6d1a1d5 12838
6c6ea35e
MC
128392002-02-13 Michael Chastain <mec@shout.net>
12840
12841 * defs.h: Kill CONST_PTR.
12842 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12843 * c-lang.c (c_builtin_types): Likewise.
12844 * ch-lang.c (ch_builtin_types): Likewise.
12845 * f-lang.c (f_builtin_types): Likewise.
12846 * language.c (unknown_builtin_types): Likewise.
12847 * m2-lang.c (m2_builtin_types): Likewise.
12848 * p-lang.c (pascal_builtin_types): Likewise.
12849 * scm-lang.c (c_builtin_types): Likewise.
12850
3e0b0f48
KS
128512002-02-13 Keith Seitz <keiths@redhat.com>
12852
12853 * arm-tdep.h (arm_get_next_pc): Add declaration.
12854
67255d04
RE
128552002-02-13 Richard Earnshaw <rearnsha@arm.com>
12856
12857 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12858 with other related struct-returning functions.
12859 (arm_extract_struct_value_address): New function.
12860 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12861 initialize float_format, double_format and long_double_format as
12862 appropriate to the endianness of the target.
12863 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12864 (arm_use_struct_convention): Delete declaration.
12865 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12866
079777f6
KS
128672002-02-13 Keith Seitz <keiths@redhat.com>
12868
12869 * defs.h (core_addr_to_string_nz): New function.
12870
34588f23
MK
128712002-02-13 Mark Kettenis <kettenis@gnu.org>
12872
12873 Apply missing bits of 2002-01-15 patch.
12874 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12875 (fill_fpregset): Use i387_fill_fsave.
12876
49b563f9
KS
128772002-02-12 Keith Seitz <keiths@redhat.com>
12878
49b563f9
KS
12879 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12880 (core_addr_to_string_nz): New function.
12881
aeb98c60
RE
128822002-02-11 Richard Earnshaw <rearnsha@arm.com>
12883
12884 * arm-linux-nat.c: Really include arm-tdep.h.
12885 * config/arm/tm-linux.h (struct type, struct value): Declare.
12886
65554fef
MS
128872002-02-11 Michael Snyder <msnyder@redhat.com>
12888
12889 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12890 (gcore section): Ifdef for Solaris and Unixware only.
12891 (procfs_do_thread_registers): Unixware needs one lwpstatus
12892 per thread (not one prstatus or pstatus).
12893 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12894 not over all gdb threads. For unixware, call elfcore_write_pstatus
12895 once before iterating over threads.
12896
34e8f22d
RE
128972002-02-11 Richard Earnshaw <rearnsha@arm.com>
12898
12899 * arm-tdep.h: New file.
12900 * arm-tdep.c: Include arm-tdep.h.
12901 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12902 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12903 (arm_print_float_info, arm_register_type, convert_to_extended)
12904 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12905 (arm_extract_return_value, arm_register_name): Make static.
12906 (arm_software_single_step): Similarly. Fix types in declaration.
12907 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12908 (arm_store_return_value, arm_store_struct_return): New functions.
12909 (arm_gdbarch_init): Register the above functions. Also register
12910 call_dummy_start_offset, sizeof_call_dummy_words,
12911 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12912 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12913 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12914 prologue_cache.saved_regs here, rather than ...
12915 (_initialize_arm_tdep): ... here.
12916 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12917 declarations.
12918 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12919 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12920 (arm_print_float_info, arm_register_type, convert_to_extended)
12921 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12922 (arm_extract_return_value, arm_register_name): Delete declarations.
12923 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12924 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12925 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12926 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12927 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12928 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12929 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12930 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12931 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12932 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12933 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12934 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12935 interface.
12936 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12937 * remote-rdi.c remote-rdp.c: Likewise.
12938 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12939 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12940 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12941 definition.
12942
12943 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12944 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12945 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12946 from non-ARM_ prefixed definitions.
12947 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12948 all uses of above.
12949 * remote-rdi.c remote-rdp.c: Likewise.
12950 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12951
148754e5
RE
129522002-02-11 Richard Earnshaw <rearnsha@arm.com>
12953
12954 * arm-tdep.c (arm_frameless_function_invocation)
12955 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12956 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12957 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12958 (arm_pop_frame, arm_get_next_pc): Make static.
12959 (arm_gdbarch_init): Register above in gdbarch structure.
12960 (arm_read_fp): Renamed from arm_target_read_fp.
12961 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12962 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12963 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12964 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12965 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12966 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12967 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12968 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12969 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12970 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12971 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12972
434d2d4f
DJ
129732002-02-10 Daniel Jacobowitz <drow@mvista.com>
12974
12975 * symtab.c (compare_search_syms): New function.
12976 (sort_search_symbols): New function.
12977 (search_symbols): Sort symbols after searching rather than
12978 before.
12979
55241689
AC
129802002-02-10 Andrew Cagney <ac131313@redhat.com>
12981
12982 * NEWS: Linux -> GNU/Linux.
12983
028c194b
AC
129842002-02-10 Andrew Cagney <ac131313@redhat.com>
12985
12986 * gdbarch.sh: For for level one methods, disallow a definition
12987 when partially multi-arched. Add comments explaining rationale.
12988 * gdbarch.h: Re-generate.
12989
6acf50cd
AC
129902002-02-10 Andrew Cagney <ac131313@redhat.com>
12991
12992 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12993 multi-arch partial.
aaa38bb5 12994
50248794
AC
129952002-02-10 Andrew Cagney <ac131313@redhat.com>
12996
12997 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12998 field. Use diff -u.
12999 * gdbarch.c: Re-generate.
13000
c30e0066
AC
130012002-02-10 Andrew Cagney <ac131313@redhat.com>
13002
9b56c5f3 13003 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
13004 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13005 partial.
13006
6e6d6484
AC
130072002-02-10 Andrew Cagney <ac131313@redhat.com>
13008
13009 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13010 multi-arch partial.
13011 (PUSH_ARGUMENTS): Switch to using predefault.
13012 * gdbarch.c: Regenerate.
13013
c203844d
AC
130142002-02-10 Andrew Cagney <ac131313@redhat.com>
13015
13016 * valops.c (PUSH_ARGUMENTS): Delete definition.
13017 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13018 partial. Default to default_push_arguments.
13019 * gdbarch.h, gdbarch.c: Regenerate.
13020
b5a2688f
AC
130212002-02-09 Andrew Cagney <ac131313@redhat.com>
13022
13023 * defs.h (throw_exception): Rename return_to_top_level. Update
13024 comments.
13025 * utils.c (error_stream, internal_verror, quit): Ditto.
13026 * top.c (throw_exception, catcher): Ditto.
13027 * sparclet-rom.c (sparclet_load): Ditto.
13028 * remote.c (interrupt_query, minitelnet): Ditto.
13029 * remote-sds.c (interrupt_query): Ditto.
13030 * remote-mips.c (mips_error, mips_kill): Ditto.
13031 * ocd.c (interrupt_query): Ditto.
13032 * monitor.c (monitor_interrupt_query): Ditto.
13033 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13034 * target.h: Update comment.
aaa38bb5 13035
b5a2688f 13036 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13037
2fa5c1e0
AC
130382002-02-09 Andrew Cagney <ac131313@redhat.com>
13039
13040 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13041 default_double_format.
13042 * gdbarch.h, gdbarch.c: Re-generate.
13043 * findvar.c (floatformat_unknown): Delete variable definition.
13044 * doublest.h (floatformat_unknown): Delete variable declaration.
13045
da966255
JB
130462002-02-09 Jim Blandy <jimb@redhat.com>
13047
13048 * stabsread.c (read_type): Add code to parse Sun's syntax for
13049 prototyped function types.
13050
123a4891
AC
130512002-02-09 Andrew Cagney <ac131313@redhat.com>
13052
13053 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13054 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13055
fb39c8f3
PS
130562002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13057
13058 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13059 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13060 now _initialize_xcoffsolib gets called again and overrides the
13061 commands from solib.c in a native configuration.
13062
0b87a11d
MK
130632002-02-09 Mark Kettenis <kettenis@gnu.org>
13064
13065 * doublest.c (store_typed_floating): Don't try to return a value.
13066 Fixes PR gdb/290.
13067
bdc2fc72
JB
130682002-02-08 Jim Blandy <jimb@redhat.com>
13069
13070 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13071 is prototyped and has no arguments, print its argument list as
13072 `(void)'.
13073
da69bbcf
CD
130742002-02-08 Chris Demetriou <cgd@broadcom.com>
13075
13076 * MAINTAINERS (write-after-approval): Add myself.
13077 (paper-trail): I've escaped!
aaa38bb5 13078
b69571f5
CF
130792002-02-08 Christopher Faylor <cgf@redhat.com>
13080
13081 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13082 changes.
13083 (_initialize_check_for_gdb_ini): Ditto.
13084
f6871398
MH
130852002-02-08 Martin M. Hunt <hunt@redhat.com>
13086
13087 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13088 xaprintf -> xasprintf.
13089
4e52d31c
PM
130902002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13091
13092 * win32-nat.c: Remove use of printf and sprintf functions.
13093
39bbf761
RE
130942002-02-08 Richard Earnshaw <rearnsha@arm.com>
13095
13096 * arm-tdep.c (arm_frame_chain_valid): Make static.
13097 (arm_push_arguments): Likewise.
13098 (arm_gdbarch_init): New function.
13099 (_initialize_arm_tdep): Call it.
13100 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13101 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13102 (FRAME_CHAIN_VALID): Delete.
13103 (arm_frame_chain_valid): Delete declaration.
13104 (PUSH_ARGUMENTS): Delete.
13105 (arm_push_arguments): Delete declaration.
13106 (CALL_DUMMY_P): Delete.
13107
9c9532c9
CV
131082002-02-08 Andrew Cagney <ac131313@redhat.com>
13109 Corinna Vinschen <vinschen@redhat.com>
13110
13111 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13112 on builtin float types.
13113
4e8f7a8b
DJ
131142002-02-08 Daniel Jacobowitz <drow@mvista.com>
13115
13116 * utils.c: Include <curses.h> before "bfd.h".
13117 * tui/tui-hooks.c: Likewise.
13118 * tui/tui.c: Likewise.
13119 * tui/tuiCommand.c: Likewise.
13120 * tui/tuiData.c: Likewise.
13121 * tui/tuiDataWin.c: Likewise.
13122 * tui/tuiDisassem.c: Likewise.
13123 * tui/tuiGeneralWin.c: Likewise.
13124 * tui/tuiIO.c: Likewise.
13125 * tui/tuiLayout.c: Likewise.
13126 * tui/tuiRegs.c: Likewise.
13127 * tui/tuiSource.c: Likewise.
13128 * tui/tuiSourceWin.c: Likewise.
13129 * tui/tuiStack.c: Likewise.
13130 * tui/tuiWin.c: Likewise.
13131
cd4bffcf
EZ
131322002-02-07 Elena Zannoni <ezannoni@redhat.com>
13133
13134 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13135 to include space for pseudoregs as well. Update loops accordingly.
13136 (sh_fp_frame_init_saved_regs): Ditto.
13137 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13138
26806ce2
AC
131392002-02-07 Andrew Cagney <ac131313@redhat.com>
13140
13141 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13142 Add Richard Earnshaw to Arm maintainers.
13143
97fdab62
AC
131442002-02-07 Andrew Cagney <ac131313@redhat.com>
13145
a6b98203
AC
13146 * defs.h (warning_begin): Delete declaration.
13147
97fdab62
AC
13148 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13149 Delete macro.
13150
78b29b40
MS
131512002-02-07 Michael Snyder <msnyder@redhat.com>
13152
aaa38bb5 13153 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13154 Logic bug, remove misplaced else.
13155
d8849953
KD
131562002-02-07 Klee Dienes <klee@apple.com>
13157
13158 * fork-inferior.c (fork_inferior): Add '!' to the list of
13159 characters that need to be quoted when building a string for the
13160 shell. Quote '!' specifically with a backslash, since CSH chokes
13161 when trying to evaluate "str!str".
aaa38bb5 13162
095778a0
NC
131632002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13164
13165 * rdi-share/host.h: Only provide a typedef for bool if it is not
13166 defined.
13167
1900040c
MS
131682002-02-04 Michael Snyder <msnyder@redhat.com>
13169
13170 * breakpoint.h (enum bptype): Add new overlay event bp type.
13171 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13172
1900040c
MS
13173 * breakpoint.c (create_internal_breakpoint): New function.
13174 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13175 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13176 (create_thread_event_breakpoint): Ditto.
13177 (create_solib_event_breakpoint): Ditto.
13178 (create_overlay_event_breakpoint): New function.
13179 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13180 (update_breakpoints_after_exec): Delete and re-initialize
13181 overlay event breakpoints after an exec. Add FIXME comment
13182 about longjmp breakpoint.
13183 (print_it_typical): Ignore overlay event breakpoints.
13184 (print_one_breakpoint): Ditto.
13185 (mention): Ditto.
13186 (bpstat_what): Do not stop for overlay event breakpoints.
13187 (delete_breakpoint): Don't delete overlay event breakpoints.
13188 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13189 (breakpoint_re_set): Re-create overlay event breakpoint.
13190
13191 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13192 (overlay_manual_command): Disable overlay breakpoints.
13193 (overlay_off_command): Disable overlay breakpoints.
13194
082fc60d
RE
131952002-02-06 Richard Earnshaw <rearnsha@arm.com>
13196
13197 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13198 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13199 to here from config/tm-arm.h.
13200 (coff_sym_is_thumb): Make static.
13201 (arm_elf_make_msymbol_special): New function.
13202 (arm_coff_make_msymbol_special): New function.
13203 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13204 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13205 (coff_sym_is_thumb): Delete declaration.
13206 (arm_elf_make_msymbol_special): Declare.
13207 (arm_coff_make_msymbol_special): Declare.
13208 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13209 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13210
039c5766
RE
132112002-02-06 Richard Earnshaw <rearnsha@arm.com>
13212
13213 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13214
132152002-02-06 Richard Earnshaw <rearnsha@arm.com>
13216
13217 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13218 * gdbarch.c gdbarch.h: Regenerate.
13219 * arch-utils.c (default_print_float_info): New function.
13220 * arch-utils.h (default_print_float_info): Prototype it.
13221 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13222 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13223 (PRINT_FLOAT_INFO): Document it.
13224
13225 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13226 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13227 (PRINT_FLOAT_INFO): Define.
13228
58fa08f0
PM
132292002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13230
aaa38bb5 13231 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13232 Add typecast to sprintf argument to suppress a warning.
13233
7393af7c
PM
132342002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13235
58fa08f0 13236 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13237 to allow easier handling of pass state.
13238 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13239 that gives exception name and address.
13240 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13241 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13242 exceptions added.
aaa38bb5
AJ
13243 (child_continue): Correctly report continue_status.
13244 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13245 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13246 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13247 the exception should be passed to debuggee or not.
13248
6af4589c
MS
132492002-02-05 Michael Snyder <msnyder@redhat.com>
13250
13251 * regcache.c (fetch_register): Call target_fetch_register
13252 only if we don't call FETCH_PSEUDO_REGISTER.
13253 (store_register): Call target_store_register only if we
13254 don't call STORE_PSEUDO_REGISTER.
13255
a2cf933a
EZ
132562002-02-05 Elena Zannoni <ezannoni@redhat.com>
13257
13258 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13259 ELF_MAKE_MSYMBOL_SPECIAL.
13260 * gdbarch.c, gdbarch.h: Regenerate.
13261 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13262 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13263 * elfread.c (elf_symtab_read): Compile use of
13264 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13265 multiarched.
13266 * coffread.c (coff_symtab_read): Ditto, for
13267 COFF_MAKE_MSYMBOL_SPECIAL.
13268
6bb7be43
JB
132692002-02-05 Jim Blandy <jimb@redhat.com>
13270
13271 * solib-svr4.c (svr4_truncate_ptr): New function.
13272 (svr4_relocate_section_addresses): Do the address arithmetic with
13273 the appropriate truncation for target addresses, even when
13274 CORE_ADDR is larger than a target address.
13275
e18651ec
DJ
132762002-02-05 Daniel Jacobowitz <drow@mvista.com>
13277
13278 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13279 to (int *).
13280
6b2725be
DJ
132812002-02-05 Daniel Jacobowitz <drow@mvista.com>
13282
13283 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13284 code.
13285
fca9e603
DJ
132862002-02-05 Daniel Jacobowitz <drow@mvista.com>
13287
13288 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13289
6c537a52
DJ
132902002-02-05 Daniel Jacobowitz <drow@mvista.com>
13291
13292 * gdbserver/linux-low.c: Remove unused include files.
13293
d844cde6
DJ
132942002-02-05 Daniel Jacobowitz <drow@mvista.com>
13295
13296 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13297 (read_inferior_memory): Use it.
13298 (write_inferior_memory): Likewise.
13299
d07c63e7
DJ
133002002-02-05 Daniel Jacobowitz <drow@mvista.com>
13301
13302 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13303 grubbing through sys_errlist.
13304
da6d8c04
DJ
133052002-02-05 Daniel Jacobowitz <drow@mvista.com>
13306
13307 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13308
5b421780
PM
133092002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13310 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13311
9f60d481
AC
133122002-02-04 Andrew Cagney <ac131313@redhat.com>
13313
13314 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13315 (do_sfunc, set_cmd_sfunc): New functions.
13316
13317 * command.h (struct cmd_list_element): Add field func.
13318 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13319 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13320 * cli/cli-decode.h: Ditto.
13321
13322 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13323 (help_all, help_cmd_list): Ditto.
13324 (find_cmd, complete_on_cmdlist): Ditto.
13325 * top.c (execute_command): Ditto.
13326
13327 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13328 function.sfunc.
13329
13330 * infcmd.c (notice_args_read): Fix function signature.
13331
13332 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13333 * cli/cli-decode.c (add_set_cmd): Ditto.
13334 * utils.c (initialize_utils): Ditto.
13335 * maint.c (_initialize_maint_cmds): Ditto.
13336 * infrun.c (_initialize_infrun): Ditto.
13337 * demangle.c (_initialize_demangler): Ditto.
13338 * remote.c (add_packet_config_cmd): Ditto.
13339 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13340 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13341 * proc-api.c (_initialize_proc_api): Ditto.
13342 * kod.c (_initialize_kod): Ditto.
13343 * valprint.c (_initialize_valprint): Ditto.
13344 * top.c (init_main): Ditto.
13345 * infcmd.c (_initialize_infcmd): Ditto.
13346 * corefile.c (_initialize_core): Ditto.
13347 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13348 * arch-utils.c (initialize_current_architecture): Ditto.
13349 (_initialize_gdbarch_utils): Ditto.
13350 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13351
13352 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13353 * wince.c (_initialize_inftarg): Ditto.
13354 * symfile.c (_initialize_symfile): Ditto.
13355 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13356 * language.c (_initialize_language): Ditto.
13357 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13358
f9ba0717
MS
133592002-02-04 Michael Snyder <msnyder@redhat.com>
13360
13361 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13362
0c74b2a7
DJ
133632002-02-04 Daniel Jacobowitz <drow@mvista.com>
13364
13365 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13366 Add rules for building the register data files.
13367
c638789f
DJ
133682002-02-04 Daniel Jacobowitz <drow@mvista.com>
13369
13370 * regformats/regdat.sh: Add braces to the definition of
13371 expedite_regs_${arch}.
13372
db253027
DJ
133732002-02-04 Daniel Jacobowitz <drow@mvista.com>
13374
13375 * regformats/regdef.h (struct reg): Add comment describing the
13376 requirements for offset and size fields.
13377
206be19c
AS
133782002-02-04 Andreas Schwab <schwab@suse.de>
13379
13380 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13381 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13382
181c1381
RE
133832002-02-04 Richard Earnshaw <rearnsha@arm.com>
13384
13385 * gdbarch.sh (copyright): Update years in generated header.
13386 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13387 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13388 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13389 * dbxread.c: Likewise.
13390 * dwarfread.c: Likewise.
13391 * elfread.c: Likewise.
13392 * somread.c: Likewise.
13393
13394 * arm-tdep.c (arm_smash_text_address): New function.
13395 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13396
fa4ba8da
PM
133972002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13398
13399 Add support for hardware watchpoints on win32 native.
aaa38bb5 13400 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13401 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13402 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13403 of debug registers.
13404 (debug_registers_changed): New variable. Reflects when debug registers
13405 are changed and need to be written to inferior.
aaa38bb5 13406 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13407 was set, used when new threads are created.
13408 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13409 i386-nat code.
13410 (thread_rec): Set dr array if id is the thread of current_event .
13411 (child_continue, child_resume): Change the debug registers for all
13412 threads if debug_registers_changed.
13413 (child_add_thread): Change the debug registers if debug_registers_used.
13414 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13415 Link nm.h to new nm-cygwin.h file.
13416 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13417 of hardware registers.
13418
a73c86fb
AC
134192002-02-03 Andrew Cagney <ac131313@redhat.com>
13420
13421 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13422 Restore behavour broken by 2002-01-20 Andrew Cagney
13423 <ac131313@redhat.com> IEEE_FLOAT removal.
13424
acf5ed49
DJ
134252002-02-03 Daniel Jacobowitz <drow@mvista.com>
13426
13427 * c-valprint.c (c_val_print): Pass a proper valaddr to
13428 cp_print_class_method.
13429 * valops.c (search_struct_method): If there is only one method
13430 and args is NULL, return that method.
13431
493d28d5
DJ
134322002-02-03 Daniel Jacobowitz <drow@mvista.com>
13433
13434 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13435 accessing tag_name directly.
13436
7495dfdb
DJ
134372002-02-03 Daniel Jacobowitz <drow@mvista.com>
13438
13439 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13440 of accessing tag_name directly.
13441
dd6bda65
DJ
134422002-02-03 Daniel Jacobowitz <drow@mvista.com>
13443
13444 PR gdb/280
13445 * gdbtypes.c (replace_type): New function.
13446 * gdbtypes.h (replace_type): Add prototype.
13447 * stabsread.c (read_type): Use replace_type.
13448
88fe217c
RE
134492002-02-03 Richard Earnshaw <rearnsha@arm.com>
13450
13451 * Makefile.in (memattr.o): Add missing dependencies rule.
13452
e5d66720
PS
134532002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13454
13455 * breakpoint.c (break_at_finish_command): Really export.
13456 (break_at_finish_at_depth_command): Ditto.
13457 (tbreak_at_finish_command): Ditto.
13458 * hppa-tdep.c: Include completer.h.
13459 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13460 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13461
fffee0be
AC
134622002-02-01 Andrew Cagney <ac131313@redhat.com>
13463
13464 * utils.c (do_write): New function.
13465 (error_stream): Rewrite combining the code from error_begin and
13466 verror.
13467 (verror): Rewrite using error_stream.
13468 (error_begin): Delete function.
13469
255e7dbf
AC
134702002-02-01 Andrew Cagney <ac131313@redhat.com>
13471
13472 * utils.c (error_begin): Make static.
13473 * defs.h (error_begin): Delete declaration.
13474
13475 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13476 (decode_line_1): Use cplusplus_error instead of error_begin,
13477 cplusplus_hint and return_to_top_level.
13478 * coffread.c (coff_symfile_read): Use error instead of error_begin
13479 and return_to_top_level.
13480 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13481
ddfe3c15
AC
134822002-02-01 Andrew Cagney <ac131313@redhat.com>
13483
13484 * language.h (type_error, range_error): Make string parameter
13485 constant.
13486 * language.c (warning_pre_print): Delete extern declaration.
13487 * dwarfread.c (warning_pre_print): Ditto.
13488 * language.c (type_error, range_error): Rewrite to use verror and
13489 vwarning instead of warning_begin.
13490
03ac34d5
MS
134912002-02-01 Michael Snyder <msnyder@redhat.com>
13492
261c4ca2
MS
13493 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13494 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13495
e00d1dc8
AC
134962002-02-01 Andrew Cagney <ac131313@redhat.com>
13497
13498 * command.h (NO_FUNCTION): Delete macro.
13499 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13500 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13501 * tracepoint.c (_initialize_tracepoint): Ditto.
13502 * cli/cli-decode.c (add_set_cmd): Ditto.
13503 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13504
76b79d6e
DJ
135052002-02-01 Daniel Jacobowitz <drow@mvista.com>
13506
13507 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13508 Update ``this'' pointer when calling virtual functions.
13509
799f9e91
MS
135102002-02-01 Michael Snyder <msnyder@redhat.com>
13511
c7bd442c 13512 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13513 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13514
3cf384d4
DJ
135152002-02-01 Daniel Jacobowitz <drow@mvista.com>
13516
13517 * regformats/reg-arm.dat: New file.
13518 * regformats/reg-i386.dat: New file.
13519 * regformats/reg-ia64.dat: New file.
13520 * regformats/reg-m68k.dat: New file.
13521 * regformats/reg-mips.dat: New file.
13522 * regformats/reg-ppc.dat: New file.
13523 * regformats/reg-sh.dat: New file.
13524 * regformats/regdef.h: New file.
13525 * regformats/regdat.sh: New file.
13526
0defa245
RE
135272002-02-01 Richard Earnshaw <reanrsha@arm.com>
13528
13529 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13530 (arm_frame_args_address, arm_frame_locals_address): New functions.
13531 (arm_frame_num_args): New function.
13532 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13533 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13534 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13535
405f26e6
MS
135362002-01-31 Michael Snyder <msnyder@redhat.com>
13537
502fd408
MS
13538 * breakpoint.c (break_at_finish_command): Export.
13539 (break_at_finish_at_depth_command): Export.
13540 (tbreak_at_finish_command): Export.
d6020d45 13541 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13542 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13543 "txbreak" commands, which are HPPA specific.
502fd408 13544
7d35e135
MS
13545 * printcmd.c (disassemble_command): Remove an ancient
13546 artifact of an old merge.
13547
aaa38bb5 13548 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13549 Define enum constant values for overlay mode.
13550 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13551 (overlay_is_mapped, overlay_auto_command,
13552 overlay_manual_command): Ditto.
d874f1e2 13553
aaa38bb5
AJ
13554 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13555 breakpoint_here_p, breakpoint_inserted_here_p,
13556 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13557 describe_other_breakpoints, check_duplicates, clear_command):
13558 Coding standard fixes.
13559
8add0441 13560 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13561 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13562 code: check bfd SEC_READONLY flag for section.
13563
e351066e
AC
135642002-01-31 Andrew Cagney <ac131313@redhat.com>
13565
7d35e135 13566 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13567
8a48e967
DJ
135682002-01-30 Daniel Jacobowitz <drow@mvista.com>
13569
13570 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13571 data symbols, since we search based on textlow and texthigh.
13572 (find_pc_sect_symtab): Likewise.
13573
f5a96129
AC
135742002-01-30 Andrew Cagney <ac131313@redhat.com>
13575
13576 * defs.h (vwarning): Declare.
f5a96129
AC
13577 * utils.c (vwarning): New function.
13578 (warning): Call vwarning.
13579 (warning_begin): Delete function.
13580
13581 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13582 the warning message.
13583 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13584 warning_begin.
13585
cefd4ef5
MS
135862002-01-30 Michael Snyder <msnyder@redhat.com>
13587
1a703748
MS
13588 * NEWS: Mention "set trust-readonly-sections" command.
13589 Mention generate-core-file command.
cefd4ef5 13590
3a11626d
MS
135912002-01-15 Michael Snyder <msnyder@redhat.com>
13592
13593 * target.c: New command, "set trust-readonly-sections on".
13594 (do_xfer_memory): Honor the suggestion to trust readonly sections
13595 by reading them from the object file instead of from the target.
13596 (initialize_targets): Register command "set trust-readonly-sections".
13597
d1c7e53b
AC
135982002-01-29 Andrew Cagney <ac131313@redhat.com>
13599
13600 * parse.c (target_map_name_to_register): Simplify, search regs and
13601 pseudo-regs using a single loop.
13602
e2c9a72c
AC
136032002-01-30 Andrew Cagney <ac131313@redhat.com>
13604
13605 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13606
69824b4e
MK
136072002-01-15 Rodney Brown <rbrown64@csc.com.au>
13608
13609 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13610 * config/i386/i386v42mp.mh: Add i387-nat.o .
13611 * i386v4-nat.c: Include i387-nat.h.
13612 (supply_fpregset): Use i387_supply_fsave.
13613 (fill_fpregset): Use i387_fill_fsave.
13614
6eb69eab
RE
136152002-01-30 Richard Earnshaw <rearnsha@arm.com>
13616
13617 * arm-tdep.c (arm_call_dummy_words): Define.
13618 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13619 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13620 (CALL_DUMMY_WORDS): Define.
13621 (arm_call_dummy_words): Declare.
13622 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13623 (arm_linux_call_dummy_words): Declare.
13624
9852326a
AS
136252002-01-30 Andreas Schwab <schwab@suse.de>
13626
13627 * m68klinux-nat.c: Fix last change to use regcache_collect
13628 instead of referencing registers[] directly.
13629
977a3030
AC
136302002-01-29 Andrew Cagney <ac131313@redhat.com>
13631
13632 * parse.c (target_map_name_to_register): Delete code wrapped in
13633 #ifdef REGISTER_NAME_ALIAS_HOOK.
13634
2076c72b
MS
136352002-01-28 Michael Snyder <msnyder@redhat.com>
13636
13637 * regcache.c (legacy_read_register_gen): Need to be able to
13638 read pseudo-register as well as real register.
13639 (legacy_write_register_gen): Ditto.
13640
8fcc723b
AC
136412002-01-28 Andrew Cagney <ac131313@redhat.com>
13642
13643 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13644 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13645 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13646 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13647 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13648 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13649 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13650 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13651 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13652 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13653 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13654 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13655 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13656 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13657 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13658 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13659 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13660 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13661 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13662 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13663
afe64c1a
AC
136642002-01-28 Andrew Cagney <ac131313@redhat.com>
13665
13666 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13667 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13668 (initialize_current_architecture): Update target_byte_order using
13669 information from BFD.
aaa38bb5 13670 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13671 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13672
75bc7ddf
AC
136732002-01-28 Andrew Cagney <ac131313@redhat.com>
13674
13675 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13676 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13677
13678 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13679 #ifdef INVALID_FLOAT.
13680 * infcmd.c (do_registers_info): Ditto.
13681 * values.c (unpack_double): Ditto. Add comment.
13682
13683 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13684 already commented out.
13685
0280a90a
AS
136862002-01-26 Andreas Schwab <schwab@suse.de>
13687
13688 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13689 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13690 registers and add support for PTRACE_GETREGS.
13691
7072a954
AC
136922002-01-24 Andrew Cagney <ac131313@redhat.com>
13693
13694 GDB 5.1.1 released from 5.1 branch.
13695 * NEWS: Add 5.1.1 news.
13696 * README: Sync with 5.1 branch.
13697
86f902e0
FF
136982002-01-23 Fred Fish <fnf@redhat.com>
13699
13700 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13701 stabstring on initial malloc. Reallocing will copy it for us,
13702 if necessary.
13703
8af51c36
EZ
137042002-01-23 Elena Zannoni <ezannoni@redhat.com>
13705
aaa38bb5 13706 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13707 (HFILES_NO_SRCDIR): Remove hpread.h.
13708 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13709 (hpread.o): Update dependencies.
13710 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13711
13712 * hp-psymtab-read.c: Remove file.
13713 * hp-symtab-read.c: Remove file.
13714 * hpread.h: Remove file.
13715
13716 * hpread.c: Merge all contents of hp-psymtab-read.c,
13717 hp-symtab-read.c and hpread.h into this file, as it was prior to
13718 January 1999.
13719
13720 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13721 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13722 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13723 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13724
dc5cfeb6
EZ
137252002-01-23 Elena Zannoni <ezannoni@redhat.com>
13726
13727 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13728 fill_gregset): Call gdbarch_tdep() just once, assign result to
13729 variable and use that, instead of calling the function several
13730 times.
13731
ea87b71b
AO
137322002-01-24 Alexandre Oliva <aoliva@redhat.com>
13733
13734 * configure.host: Accept sparcv9 as alias for sparc64.
13735 * configure.tgt: Likewise.
13736
13fc0c2f
KB
137372002-01-22 Kevin Buettner <kevinb@redhat.com>
13738
13739 * solib-aix5.c (build_so_list_from_mapfile)
13740 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13741 arguments is not reversed.
13742 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13743 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13744
7bd872fe
EZ
137452002-01-22 Elena Zannoni <ezannoni@redhat.com>
13746
13747 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13748 modified version of obsolete sh_fetch_pseudo_register.
13749 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13750 (sh4_register_read): New function.
13751 (sh_pseudo_register_write): New function. Renamed and modified
13752 version of obsolete sh_store_pseudo_register.
13753 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13754 (sh4_register_write): New function.
13755 (sh_gdbarch_init): Remove setting of gdbarch function
13756 fetch_pseudo_register and store_pseudo_register. Remove setting of
13757 register_convert_to_raw, register_convert_to_virtual,
13758 register_convertible.
13759 (sh_sh4_register_convertible): Delete. No longer needed. All is
13760 taken care by architecture specific functions
13761 register_read/register_write.
13762 (sh_sh4_register_convert_to_virtual): Make static.
13763 (sh_sh4_register_convert_to_raw): Ditto.
13764
069e84fd
AC
137652002-01-22 Andrew Cagney <ac131313@redhat.com>
13766
13767 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13768 (floatformat_is_nan, floatformat_mantissa): Ditto.
13769
13770 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13771 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13772 builtin_type_ieee_double_little,
13773 builtin_type_ieee_double_littlebyte_bigword,
13774 builtin_type_m68881_ext, builtin_type_i960_ext,
13775 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13776 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13777 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13778 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13779
211a4f69
CV
137802002-01-22 Corinna Vinschen <vinschen@redhat.com>
13781
13782 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13783 parameter. Set frameless flag if it exists and depended of
13784 whether the scanned function is frameless or not.
13785 (xstormy16_skip_prologue): If function is frameless, return
13786 result of xstormy16_scan_prologue().
13787 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13788 call.
13789
f81353e4
EZ
137902002-01-21 Elena Zannoni <ezannoni@redhat.com>
13791
13792 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13793 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13794 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13795 sh_sh4_register_byte, sh_sh4_register_raw_size,
13796 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13797 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13798 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13799 sh_store_pseudo_register, sh_do_pseudo_register): Call
13800 gdbarch_tdep() just once, assign result to variable and use that,
13801 instead of calling the function several times.
13802
63c73a17
MK
138032002-01-20 Mark Kettenis <kettenis@gnu.org>
13804
13805 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13806 macros instead of LAST_FPU_CTRL_REGNUM.
13807 (store_register): Likewise.
13808
39ad761d
JB
138092002-01-21 Jim Blandy <jimb@redhat.com>
13810
13811 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13812 is up-to-date before running the program, not just when a program
13813 exits.
13814
3d74b771
FF
138152002-01-21 Fred Fish <fnf@redhat.com>
13816
13817 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13818 when we have found all instructions we are looking for.
13819
966fbf70
RE
138202002-01-21 Richard Earnshaw <rearnsha@arm.com>
13821
13822 * arm-tdep.c (arm_register_name): New function.
13823 (arm_registers_names): Make static.
13824 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13825 (arm_register_name): Declare.
13826 (REGISTER_NAME): Use it.
13827
c3b4394c
RE
138282002-01-21 Richard Earnshaw <rearnsha@arm.com>
13829 Kevin Buettner <kevinb@redhat.com>
13830
13831 Convert arm targets to new FRAME interface.
13832 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13833 (arm_frame_find_save_regs): Delete.
13834 (arm_frame_init_saved_regs): New.
13835 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13836 Allocate extra_info as required. Convert all uses of fsr.regs
13837 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13838 to use extra_info.
13839 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13840 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13841 (check_prologue_cache, save_prologue_cache): Likewise.
13842 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13843 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13844 (FRAME_FIND_SAVED_REGS): Delete.
13845 (arm_frame_find_saved_regs): Delete prototype.
13846 (arm_frame_init_saved_regs): New prototype.
13847 (FRAME_INIT_SAVED_REGS): Define.
13848
61d99182
AC
138492002-01-20 Andrew Cagney <ac131313@redhat.com>
13850
13851 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13852
6aaea291
AC
138532002-01-20 Andrew Cagney <ac131313@redhat.com>
13854
13855 From Jeff Law <law@redhat.com>:
13856 * infttrace.c: Include <sys/pstat.h>.
13857 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13858 exec file if the ttrace equivalent fails.
13859
15f698d2
AC
138602002-01-20 Andrew Cagney <ac131313@redhat.com>
13861
13862 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13863 (closeLogFile): Ditto.
13864
f86ddd7c
MC
138652002-01-20 Michael Chastain <mec@shout.net>
13866
13867 * top.c (print_gdb_version): Bump copyright year to 2002.
13868
904507ce
AC
138692002-01-20 Andrew Cagney <ac131313@redhat.com>
13870
13871 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13872 Zannoni and Eli Zaretskii.
13873
d7f0b9ce
DJ
138742002-01-20 Daniel Jacobowitz <drow@mvista.com>
13875
13876 * buildsym.c: Update copyright years.
13877 * c-typeprint.c: Likewise.
13878 * dwarf2read.c: Likewise.
13879 * f-typeprint.c: Likewise.
13880 * gdbtypes.c: Likewise.
13881 * gdbtypes.h: Likewise.
13882 * hp-symtab-read.c: Likewise.
13883 * hpread.c: Likewise.
13884 * mdebugread.c: Likewise.
13885 * p-typeprint.c: Likewise.
13886
3fd3d7d2
AC
138872002-01-20 Andrew Cagney <ac131313@redhat.com>
13888
13889 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13890 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13891 byte-order selectable.
13892 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13893 * arch-utils.c: Ditto.
13894 (set_endian): Ditto.
13895 (set_endian_from_file): Ditto.
13896 * gdbserver/low-sim.c (create_inferior): Ditto.
13897 * gdbarch.sh: Ditto.
13898 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13899 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13900 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13901 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13902 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13903 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13904 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13905 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13906 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13907 macro definition.
13908 * config/mips/tm-wince.h: Remove #undef of macro
13909 TARGET_BYTE_ORDER_SELECTABLE.
13910 * config/sh/tm-wince.h: Ditto.
13911
b02dede2
DJ
139122002-01-20 Daniel Jacobowitz <drow@mvista.com>
13913
13914 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13915 member function fields. Add accessor macro
13916 TYPE_FN_FIELD_ARTIFICIAL.
13917 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13918 * c-typeprint.c (c_type_print_base): Skip artificial member
13919 functions.
13920
c3643761
DJ
139212002-01-20 Daniel Jacobowitz <drow@mvista.com>
13922
13923 * f-typeprint.c: Delete unused function f_type_print_args.
13924 * p-typeprint.c: Delete unused function pascal_type_print_args.
13925
8176bb6d
DJ
139262002-01-20 Daniel Jacobowitz <drow@mvista.com>
13927
13928 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13929 comment. Add ``artificial'' to ``union field_location''.
13930
13931 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13932
13933 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13934 * mdebugread.c (parse_symbol): Likewise.
13935 * stabsread.c (define_symbol): Likewise.
13936 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13937 initializing TYPE_FIELD_BITPOS to n (obsolete).
13938 (hpread_doc_function_type): Likewise.
13939 * hpread.c (hpread_function_type): Likewise.
13940
7fd60527
AC
139412002-01-20 Andrew Cagney <ac131313@redhat.com>
13942
13943 * configure.in (host_makefile_frag): Only require a host makefile
13944 fragment when a native build.
13945 * configure: Re-generate.
13946
c2f05ac9
AC
139472002-01-20 Andrew Cagney <ac131313@redhat.com>
13948
13949 * doublest.h (floatformat_from_type): Declare.
13950 * doublest.c (floatformat_from_type): New function.
13951 (convert_typed_floating): Use.
13952
13953 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13954 call to function floatformat_from_type.
13955
13956 * gdbarch.sh (IEEE_FLOAT): Delete.
13957 * gdbarch.h, gdbarch.c: Re-generate.
13958 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13959 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13960 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13961 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13962 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13963 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13964 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13965 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13966 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13967 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13968 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13969 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13970
13971 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13972 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13973 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13974 * sh-tdep.c (sh_gdbarch_init): Ditto.
13975 * mips-tdep.c (mips_gdbarch_init): Ditto.
13976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13977 * cris-tdep.c (cris_gdbarch_init): Ditto.
13978
abf22e64
AJ
139792002-01-20 Jiri Smid <smid@suse.cz>
13980
13981 * configure.host, configure.tgt: Support x86-64.
13982 * NEWS: Note new target x86-64.
13983
b7c4cbf8
AJ
13984 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13985 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13986 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13987 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13988 x86-64-linux-nat.o): Fix dependencies.
13989
82600034
AC
139902002-01-19 Andrew Cagney <ac131313@redhat.com>
13991
13992 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13993 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13994 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13995 * config/sparc/xm-sun4os4.h: Delete file.
13996 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13997
bbe5c628
AC
139982002-01-19 Andrew Cagney <ac131313@redhat.com>
13999
14000 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14001 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14002 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14003 * config/i386/i386lynx.mh (XM_FILE): Delete.
14004 * config/rs6000/xm-rs6000ly.h: Delete file.
14005 * config/sparc/xm-sparclynx.h: Delete file.
14006 * config/m68k/xm-m68klynx.h: Delete file.
14007 * config/i386/xm-i386lynx.h: Delete file.
14008 * config/xm-lynx.h: Delete file.
14009 * config/djgpp/fnchange.lst: Update.
14010
f8453e34
JT
140112002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14012
14013 * alpha-tdep.c (alpha_register_byte): New function.
14014 (alpha_register_raw_size): Ditto.
14015 (alpha_register_virtual_size): Ditto.
14016 (alpha_skip_prologue_internal): Renamed from
14017 alpha_skip_prologue.
14018 (alpha_skip_prologue): New version that calls
14019 alpha_skip_prologue_internal.
14020 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14021 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14022 second argument from alpha_skip_prologue.
14023 (REGISTER_BYTE): Use alpha_register_byte.
14024 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14025 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14026 (FRAMELESS_FUNCTION_INVOCATION): Use
14027 generic_frameless_function_invocation_not.
14028 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14029 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14030
52d9e613
AC
140312002-01-19 Andrew Cagney <ac131313@redhat.com>
14032
14033 * config/mips/xm-news-mips.h: Delete file.
14034 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14035
14036 * config/m88k/xm-m88k.h: Delete file.
14037 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14038 * config/m88k/xm-delta88v4.h: Ditto.
14039 * config/m88k/xm-delta88.h: Ditto.
14040
14041 * config/alpha/xm-fbsd.h: Delete file.
14042 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14043
14044 * config/sparc/xm-sparc.h: Delete file.
14045 * Makefile.in (xm-sun4os4.h): Delete dependency.
14046 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14047 * config/sparc/xm-sun4os4.h: Ditto.
14048 * config/sparc/xm-linux.h: Ditto.
14049
14050 * config/i386/xm-windows.h: Delete file.
14051
2d1b2124
AC
140522002-01-19 Andrew Cagney <ac131313@redhat.com>
14053
14054 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14055 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14056
ee1f65f0
JT
140572002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14058
14059 * alpha-tdep.c (alpha_call_dummy_words): New.
14060 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14061 (CALL_DUMMY_P): Define.
14062 (CALL_DUMMY_WORDS): Define.
14063 (SIZEOF_CALL_DUMMY_WORDS): Define.
14064
98081e55
PB
140652002-01-19 Per Bothner <per@bothner.com>
14066
14067 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14068 isn't NULL, which can happen with some gcj-3.x-produced code.
14069
0d056799
JT
140702002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14071
14072 * alpha-tdep.c (alpha_register_virtual_type): New function.
14073 (alpha_init_frame_pc_first): Ditto.
14074 (alpha_fix_call_dummy): Ditto.
14075 (alpha_store_struct_return): Ditto.
14076 (alpha_extract_struct_value_address): Ditto.
14077 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14078 alpha_register_virtual_type.
14079 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14080 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14081 alpha_extract_struct_value_address.
14082 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14083 (INIT_FRAME_PC): Use init_frame_pc_noop.
14084 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14085
4604bcad
MK
140862002-01-19 Mark Kettenis <kettenis@gnu.org>
14087
14088 * i386gnu-nat.c: Include "i386-tdep.h".
14089 (fetch_fpregs): Simplify code dealing with uninitialized floating
14090 point states such that it doesn't require FP7_REGNUM.
14091
140f9984
JT
140922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14093
abf22e64
AJ
14094 * alpha-tdep.c (frame_extra_info): New.
14095 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14096 frame->extra_info.
14097 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14098 (alpha_frame_saved_pc): Use frame->extra_info.
14099 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14100 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14101 (init_extra_frame_info): Rename to...
14102 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14103 (alpha_print_extra_frame_info): New function.
140f9984
JT
14104 (alpha_frame_locals_address): Ditto.
14105 (alpha_frame_args_address): Ditto.
abf22e64 14106 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14107 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14108 alpha_frame_args_address.
abf22e64 14109 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14110 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14111 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14112 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14113 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14114 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14115
d734c450
JT
141162002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14117
14118 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14119 (alpha_cannot_fetch_register): Ditto.
14120 (alpha_cannot_store_register): Ditto.
14121 (alpha_register_convertible): Ditto.
14122 (alpha_use_struct_convention): Ditto.
14123 * config/alpha/tm-alpha.h: Update copyright years.
14124 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14125 (INNER_THAN): Use core_addr_lessthan.
14126 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14127 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14128 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14129 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14130 (FRAME_CHAIN): Remove unnecessary cast.
14131
b4ceaee6
AC
141322002-01-18 Andrew Cagney <ac131313@redhat.com>
14133
14134 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14135 obsolete.
14136
0a65a603
AC
141372002-01-18 Andrew Cagney <ac131313@redhat.com>
14138
14139 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14140 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14141 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14142 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14143 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14144 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14145 * x86-64-linux-nat.c: Ditto.
14146
636a6dfc
JT
141472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14148
abf22e64 14149 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14150 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14151 (REGISTER_NAME): Define.
14152
acceddb6
JT
141532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14154
14155 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14156
ec32e4be
JT
141572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14158
14159 * alpha-tdep.c: Update copyright years.
14160 (alpha_next_pc): New function.
14161 (alpha_software_single_step): Ditto.
14162 * config/alpha/tm-alpha.h: Add prototype for
14163 alpha_software_single_step.
14164
e771a871
JT
141652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14166
14167 * alphabsd-nat.c: Update copyright years.
14168 (fill_gregset): Use regcache_collect.
14169 (fill_fpregset): Likewise.
14170 (fetch_inferior_registers): Only fetch integer registers
14171 if requested to do so.
14172 (store_inferior_registers): Only store integer registers
14173 if requested to do so.
14174
7708fa01
AC
141752002-01-17 Andrew Cagney <ac131313@redhat.com>
14176
14177 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14178 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14179 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14180 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14181 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14182 * config/arm/linux.mh (XDEPFILES): Delete.
14183 * config/arm/nbsd.mh (XDEPFILES): Delete.
14184 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14185 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14186 * config/i386/i386m3.mh (XDEPFILES): Delete.
14187 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14188 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14189 * config/i386/fbsd.mh (XDEPFILES): Delete.
14190 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14191 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14192 * config/i386/i386v4.mh (XDEPFILES): Delete.
14193 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14194 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14195 * config/i386/i386aix.mh (XDEPFILES): Delete.
14196 * config/i386/go32.mh (XDEPFILES): Delete.
14197 * config/i386/cygwin.mh (XDEPFILES): Delete.
14198 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14199 * config/i386/i386mach.mh (XDEPFILES): Delete.
14200 * config/i386/i386v32.mh (XDEPFILES): Delete.
14201 * config/i386/linux.mh (XDEPFILES): Delete.
14202 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14203 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14204 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14205 * config/i386/i386sco.mh (XDEPFILES): Delete.
14206 * config/i386/i386v.mh (XDEPFILES): Delete.
14207 * config/i386/nbsd.mh (XDEPFILES): Delete.
14208 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14209 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14210 * config/i386/symmetry.mh (XDEPFILES): Delete.
14211 * config/i386/obsd.mh (XDEPFILES): Delete.
14212 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14213 * config/ia64/linux.mh (XDEPFILES): Delete.
14214 * config/ia64/aix.mh (XDEPFILES): Delete.
14215 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14216 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14217 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14218 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14219 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14220 * config/m68k/linux.mh (XDEPFILES): Delete.
14221 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14222 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14223 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14224 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14225 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14226 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14227 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14228 * config/m88k/delta88.mh (XDEPFILES): Delete.
14229 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14230 * config/m88k/m88k.mh (XDEPFILES): Delete.
14231 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14232 * config/mips/linux.mh (XDEPFILES): Delete.
14233 * config/mips/irix6.mh (XDEPFILES): Delete.
14234 * config/mips/irix5.mh (XDEPFILES): Delete.
14235 * config/mips/irix4.mh (XDEPFILES): Delete.
14236 * config/mips/irix3.mh (XDEPFILES): Delete.
14237 * config/mips/decstation.mh (XDEPFILES): Delete.
14238 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14239 (NATDEPFILES): Move core-aout.o to here.
14240 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14241 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14242 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14243 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14244 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14245 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14246 * config/pa/hpux11.mh (XDEPFILES): Delete.
14247 * config/powerpc/aix.mh (XDEPFILES): Delete.
14248 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14249 * config/powerpc/linux.mh (XDEPFILES): Delete.
14250 * config/romp/rtbsd.mh: Rename XDEPFILES.
14251 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14252 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14253 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14254 * config/s390/s390.mh (XDEPFILES): Delete.
14255 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14256 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14257 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14258 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14259 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14260 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14261 * config/sparc/linux.mh (XDEPFILES): Delete.
14262 * config/vax/vaxult.mh (XDEPFILES): Delete.
14263 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14264 * Makefile.in (DEPFILES): Remove XDEPFILES.
14265
375fc983
AC
142662002-01-17 Andrew Cagney <ac131313@redhat.com>
14267
14268 * utils.c (internal_verror): Fix comments, default is yes not no.
14269 Update queries to match. Default to quit and dump core.
14270
8926118c
AC
142712002-01-17 Andrew Cagney <ac131313@redhat.com>
14272
14273 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14274 copyright.
14275 * defs.h, event-top.c, gdbcmd.h: Ditto.
14276 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14277 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14278 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14279 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14280 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14281 * mi/mi-main.c:Ditto.
14282
14283 * stack.c, symfile.c: Update copyright.
14284
45b7b345
DJ
142852002-01-17 Daniel Jacobowitz <drow@mvista.com>
14286
db728ff7
DJ
14287 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14288 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14289 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14290 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14291
db728ff7
DJ
142922002-01-17 Daniel Jacobowitz <drow@mvista.com>
14293
14294 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14295 * gdbserver/low-lynx.c (myattach): Likewise.
14296 * gdbserver/low-nbsd.c (myattach): Likewise.
14297 * gdbserver/low-sim.c (myattach): Likewise.
14298 * gdbserver/low-sparc.c (myattach): Likewise.
14299 * gdbserver/low-sun3.c (myattach): Likewise.
14300
14301 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14302
db728ff7 14303 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14304 (main): Handle "--attach".
14305
8de3c354
AC
143062002-01-16 Andrew Cagney <ac131313@redhat.com>
14307
14308 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14309 maintainer.
14310
b0129042
DJ
143112002-01-15 Daniel Jacobowitz <drow@mvista.com>
14312
14313 * c-typeprint.c (is_type_conversion_operator): Add additional
14314 check for non-conversion operators.
14315
ba8679fb 143162002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14317
14318 * linux-proc.c: Add "info proc" command, a la procfs.c.
14319 (read_mapping): New function, abstract and re-use code.
14320 (linux_find_memory_regions): Use new func read_mapping.
14321 (linux_info_proc_cmd): New function, implement "info proc".
14322 (_initialize_linux_proc): Add new command "info proc".
14323
e4f9b4d5
MS
143242002-01-15 Michael Snyder <msnyder@redhat.com>
14325
14326 * symfile.c (generic_load): Use bfd_map_over_sections method
14327 instead of manipulating bfd structure members directly.
14328 (add_section_size_callback): New function, bfd sections callback
14329 used by generic_load.
14330 (load_sections_callback): New function, bfd sections callback
14331 used by generic_load.
14332
08cf96df
EZ
143332002-01-15 Elena Zannoni <ezannoni@redhat.com>
14334
abf22e64 14335 [Based on work by Jim Blandy]
08cf96df
EZ
14336 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14337 (builtin_type_vec128): Export.
14338 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14339 types.
14340 (builtin_type_vec128): New builtin type for 128 bit vector
14341 registers.
14342 (build_gdbtypes): Initialize builtin_type_v16qi and
14343 builtin_type_v8hi. Create the vec128 register builtin type
14344 structure.
14345 (build_builtin_type_vec128): New function.
abf22e64 14346 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14347 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14348 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14349 AltiVec register to new builtin type.
14350
d7242108
DJ
143512001-01-15 Daniel Jacobowitz <drow@mvista.com>
14352
14353 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14354 to make_cv_type.
14355
4ee3352d
AC
143562002-01-14 Andrew Cagney <ac131313@redhat.com>
14357
14358 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14359 CLEAN_UP_REGISTER_VALUE.
14360 * regcache.c (supply_register): Update only call.
14361
f015b2e7
AC
143622002-01-14 Andrew Cagney <ac131313@redhat.com>
14363
14364 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14365 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14366 a29k-*-vxworks* targets as obsolete.
14367
356ae49d
MS
143682002-01-14 Michael Snyder <msnyder@redhat.com>
14369
14370 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14371 until we can resolve portability issues.
14372 * gregset.h: Remove references to fpxregs.
14373 * gcore.c (gcore_command): Initialize note_sec to NULL.
14374
ade8f45e
AC
143752002-01-13 Andrew Cagney <ac131313@redhat.com>
14376
14377 * signals.c (target_signal_to_name): Rewrite. Only use
14378 signals[].name when in bounds and non-NULL.
abf22e64 14379
89c49e7a
AC
143802002-01-13 Andrew Cagney <ac131313@redhat.com>
14381
14382 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14383 * signals.c (target_signal_to_name): Verify that SIG is within the
14384 bounds of the signals array.
14385
4daa9f9f
AC
143862002-01-13 Andrew Cagney <ac131313@redhat.com>
14387
14388 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14389
ba4bbdcb
KS
143902002-01-13 Keith Seitz <keiths@redhat.com>
14391
14392 * stack.c (print_frame_info_base): Print the frame's pc
14393 only if when print_frame_info_listing_hook is not defined.
14394
575bbeb6
KS
143952002-01-13 Keith Seitz <keiths@redhat.com>
14396
14397 * varobj.c (varobj_set_value): Make sure that there were no
14398 errors evaluating the object before attempting to set its
14399 value.
14400 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14401 so this offset adjustment is no longer necessary.
14402 (create_child): Don't set the error flag if the child is
14403 a CPLUS_FAKE_CHILD.
14404 (value_of_child): If value_fetch_lazy fails, return NULL
14405 so that callers will be notified that an error occurred.
14406 (c_value_of_variable): Delay check of variable's validity
14407 until later. We actually want all structs and unions to have
14408 the value "{...}".
14409 Do not return "???" for variables which could not be evaluated.
14410 This error condition must be returned to the caller so that it
14411 can get the error condition from gdb.
14412 (cplus_name_of_child): Adjust index for vptr before figuring
14413 out the name of the child.
14414 (cplus_value_of_child): If a child's (real) parent is not valid,
14415 don't even bother trying to give a value for it. Just return
14416 an error. Change all instances in this function.
14417 (cplus_type_of_child): If our parent is one of the "fake"
14418 parents, we need to get at the type of the real parent, and
14419 derive the child's true type using this information.
14420
b76898ab
AC
144212002-01-13 Andrew Cagney <ac131313@redhat.com>
14422
14423 From 2002-01-09 John Marshall <johnm@falch.net>:
14424 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14425 sources.redhat.com, and tweak some related URLs which had
14426 suffered from linkrot.
14427
b6649e88
AC
144282002-01-13 Andrew Cagney <ac131313@redhat.com>
14429
14430 From Jeff law:
14431 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14432 structures passed in registers.
14433
82cc5033
EZ
144342002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14435
14436 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14437 white space which prevented compilation. Reported by DSK
14438 <dsk@student.unsw.edu.au>.
14439
ba5f2f8a
MS
144402002-01-11 Michael Snyder <msnyder@redhat.com>
14441
fbd35540
MS
14442 * symfile.c (build_section_addr_info_from_section_tab):
14443 Use bfd access method instead of manipulating bfd directly.
14444 (syms_from_objfile): Ditto.
14445 (simple_overlay_update_1): Ditto.
14446 (simple_overlay_update): Ditto.
14447 (generic_load): Ditto.
14448 (overlay_unmapped_address): FIXME comment, bfd access methods.
14449 (sections_overlap): FIXME comment, bfd access methods.
14450 (pc_in_mapped_range): FIXME comment, bfd access methods.
14451 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14452 (section_is_mapped): FIXME comment, bfd access methods.
14453 (section_is_overlay): FIXME comment, bfd access methods.
14454
ba5f2f8a
MS
14455 * symfile.c (generic_load): Whitespace and long line cleanups.
14456 Remove duplicate variable, change several local variables to
14457 more appropriate data types.
14458 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14459
17df2af6
AC
144602002-01-12 Andrew Cagney <ac131313@redhat.com>
14461
14462 From Peter Schauer:
14463 * language.c (longest_local_hex_string_custom): Use phex_nz to
14464 convert NUM to a hex string.
14465
ec920329
EZ
144662002-01-12 Elena Zannoni <ezannoni@redhat.com>
14467
14468 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14469 the function.
538a76d6 14470 Update Copyright year.
ec920329 14471
3abd2e01
AC
144722002-01-12 Andrew Cagney <ac131313@redhat.com>
14473
14474 * language.c (longest_raw_hex_string): Delete unused function.
14475
b21b22e0
PS
144762002-01-11 Petr Sorfa <petrs@caldera.com>
14477
14478 * MAINTAINERS (write-after-approval): Add myself.
14479 * dwarf2read.c (read_tag_string_type): Handling of
14480 DW_AT_byte_size.
14481 (read_tag_string_type): FORTRAN fix to prevent propagation of
14482 first string size.
14483 (set_cu_language): Handling of DW_LANG_Fortran95
14484
747fe712
RE
144852002-01-11 Richard Earnshaw <rearnsha@arm.com>
14486
14487 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14488 GETPID(inferior_ptid).
14489 (store_inferior_registers): Likewise.
14490
f1bea926
JM
144912002-01-10 Jason Merrill <jason@redhat.com>
14492
14493 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14494 Fix DW_OP_minus.
14495
ae940673
AC
144962002-01-10 Andrew Cagney <ac131313@redhat.com>
14497
14498 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14499 and bfd/elf32-sh-nbsd.c.
14500
00546b04
MS
145012002-01-10 Michael Snyder <msnyder@redhat.com>
14502
352ed7b4
MS
14503 * NEWS: Mention --pid and corefile/proc-id behavior change.
14504
c18be923
MS
14505 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14506 * gcore.c: Include cli/cli-decode.h instead of command.h.
14507
00546b04
MS
14508 * main.c (captured_main): Add new command line option "--pid".
14509 If the second command line argument (following the symbol-file)
14510 begins with a digit, try to attach to it before trying to open
14511 it as a corefile.
14512 (print_gdb_help): Document the "--pid" argument.
14513
db60ec62
EZ
145142002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14515
14516 * completer.c (command_completer): New function.
14517
14518 * completer.h <command_completer>: Add prototype.
14519
14520 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14521 completer for the "help" command.
14522
39c22d1a
JM
145232002-01-09 Jason Merrill <jason@redhat.com>
14524
14525 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14526
c564377f
MS
145272002-01-09 Michael Snyder <msnyder@redhat.com>
14528
975aec09
MS
14529 * i386-linux-nat.c (fill_fpxregset): Make global.
14530 (store_fpxregset): Ditto.
14531
db4a10fa
MS
14532 * gregset.h (gdb_fpxregset_t): Define.
14533 (supply_fpxregset): Prototype.
14534 (fill_fpxregset): Prototype.
14535
c564377f
MS
14536 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14537
c3d45d70
RE
145382002-01-09 Richard Earnshaw <rearnsha@arm.com>
14539
14540 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14541 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14542 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14543
fcc87af1
AC
145442002-01-09 Andrew Cagney <ac131313@redhat.com>
14545
14546 * MAINTAINERS: Update target maintainer rules so that any
14547 Maintainer can approve a tested patch for a maintenance-only
14548 target.
14549
dd96c05b
RE
145502002-01-09 Richard Earnshaw <rearnsha@arm.com>
14551
d4297db9 14552 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14553
d4297db9 14554 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14555 IN_SIGTRAMP.
14556
145fdc6e
MS
145572002-01-08 Michael Snyder <msnyder@redhat.com>
14558
14559 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14560 real name of the executable, rather than the /proc name.
14561
be4d1333
MS
145622002-01-03 Michael Snyder <msnyder@redhat.com>
14563
14564 Implement a "generate-core-file" command in gdb, save target state.
14565 * gcore.c: New file. Implement new command 'generate-core-file'.
14566 Save a corefile image of the current state of the inferior.
14567 * linux-proc.c: Add linux-specific code for saving corefiles.
14568 * target.h (struct target_ops): Add new target vectors for saving
14569 corefiles; to_find_memory_regions and to_make_corefile_notes.
14570 (target_find_memory_regions): New macro.
14571 (target_make_corefile_notes): New macro.
14572 * target.c (update_current_target): Inherit new target methods.
14573 (dummy_find_memory_regions): New place-holder method.
14574 (dummy_make_corefile_notes): New place-holder method.
14575 (init_dummy_target): Initialize new dummy target vectors.
14576 * exec.c (exec_set_find_memory_regions): New function.
14577 Allow the exec_ops vector for memory regions to be taken over.
14578 (exec_make_note_section): New function, target vector method.
14579 * defs.h (exec_set_find_memory_regions): Export prototype.
14580 * procfs.c (proc_find_memory_regions): New function, corefile method.
14581 (procfs_make_note_section): New function, corefile method.
14582 (init_procfs_ops): Set new target vector pointers.
14583 (find_memory_regions_callback): New function.
14584 (procfs_do_thread_registers): New function.
14585 (procfs_corefile_thread_callback): New function.
14586 * sol-thread.c (sol_find_memory_regions): New function.
14587 (sol_make_note_section): New function.
14588 (init_sol_thread_ops): Initialize new target vectors.
14589 * inftarg.c (inftarg_set_find_memory_regions): New function.
14590 Allow to_find_memory_regions vector to be taken over.
14591 (inftarg_set_make_corefile_notes): New function.
14592 Allow to_make_corefile_notes vector to be taken over.
14593 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14594 interface layer if not target_has_execution (may be a corefile).
14595 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14596 * config/sparc/sun4sol2.mh: Ditto.
14597 * config/alpha/alpha-linux.mh: Ditto.
14598 * config/arm/linux.mh: Ditto.
14599 * config/i386/x86-64linux.mh: Ditto.
14600 * config/ia64/linux.mh: Ditto.
14601 * config/m68k/linux.mh: Ditto.
14602 * config/mips/linux.mh: Ditto.
14603 * config/powerpc/linux.mh: Ditto.
14604 * config/sparc/linux.mh: Ditto.
14605
c6b92abd
MS
146062002-01-07 Michael Snyder <msnyder@redhat.com>
14607
14608 * arm-linux-nat.c: Remove references to regcache.c internal data
14609 (registers[] and register_valid[]).
14610
4b09dc8c
MS
146112002-01-07 Michael Snyder <msnyder@redhat.com>
14612
abf22e64
AJ
14613 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14614 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14615 symbol file and shlibs.
14616 * Makefile.in: Add rule for linux-proc.o.
14617 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14618 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14619 * config/arm/linux.mh: Ditto.
14620 * config/i386/linux.mh: Ditto.
14621 * config/i386/x86-64linux.mh: Ditto.
14622 * config/ia64/linux.mh: Ditto.
14623 * config/m68k/linux.mh: Ditto.
14624 * config/mips/linux.mh: Ditto.
14625 * config/powerpc/linux.mh: Ditto.
14626 * config/sparc/linux.mh: Ditto.
14627
c25b74ac
PM
146282002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14629
14630 * win32-nat.c: Add i386-tdep.h dependency.
14631
94cd915f
MS
146322002-01-07 Michael Snyder <msnyder@redhat.com>
14633
c7cccb76
MS
14634 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14635 instead of bfd_get_arch_size. Don't bail out just because
14636 there's no exec_bfd.
abf22e64 14637
34c0bd93
MS
14638 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14639 * p-valprint.c (pascal_object_print_value): Ditto.
14640 * somread.c (som_symtab_read): Ditto.
14641 * symfile.c (simple_free_overlay_region_table): Ditto.
14642 * valops.c (value_assign): Ditto.
14643
21c1c920
MS
14644 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14645 use tilde_expand and strerror for opening save-tracepoints file.
14646
5bbd998e
MS
14647 * thread-db.c (thread_db_new_objfile): Indendation fix.
14648
94cd915f
MS
14649 * infptrace.c (GDB_MAX_ALLOCA): New define.
14650 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14651 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14652 can be overridden with whatever value is appropriate to the host).
14653 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14654 alloca to allocate potentially large buffer.
14655 * rs6000-nat.c (child_xfer_memory): Ditto.
14656 * symm-nat.c (child_xfer_memory): Ditto.
14657 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14658
494e8a93
JSC
146592002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14660
14661 From Nick Clifton <nickc@redhat.com>
14662 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14663
d0e1d48e
MS
146642002-01-07 Michael Snyder <msnyder@redhat.com>
14665
abf22e64 14666 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14667 Don't use exec_bfd if it's NULL.
14668
290b2c7a
MK
146692002-01-06 Mark Kettenis <kettenis@gnu.org>
14670
abf22e64 14671 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14672
aef21287
AC
146732002-01-06 Andrew Cagney <ac131313@redhat.com>
14674
14675 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14676 * gnu-nat.c: Ditto.
14677
30efa627
AC
146782002-01-06 Andrew Cagney <ac131313@redhat.com>
14679
14680 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14681 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14682 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14683 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14684 z8k-coff have not been multi-arched. Update z8k-coff build
14685 status.
14686
9b4ff276
AC
146872002-01-06 Andrew Cagney <ac131313@redhat.com>
14688
14689 * MAINTAINERS: Mark a29k target as obsolete.
14690 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14691 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14692 comments.
14693 * NEWS: Note that a29k targets are obsolete.
14694 * a29k-tdep.c: Mark as obsolete.
14695 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14696 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14697 a29k-*-vxworks* targets as obsolete.
14698 * remote-adapt.c: Obsolete.
14699 * remote-eb.c: Obsolete.
14700 * remote-mm.c: Obsolete.
14701 * remote-udi.c: Obsolete.
14702 * config/a29k/a29k-udi.mt: Obsolete.
14703 * config/a29k/a29k.mt: Obsolete.
14704 * config/a29k/tm-a29k.h: Obsolete.
14705 * config/a29k/tm-vx29k.h: Obsolete.
14706 * config/a29k/vx29k.mt: Obsolete.
14707
a9011d31
AC
147082002-01-05 Andrew Cagney <ac131313@redhat.com>
14709
14710 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14711 with BFD_ENDIAN_BIG.
14712
9299404e
AC
147132002-01-05 Andrew Cagney <ac131313@redhat.com>
14714
14715 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14716 * configure, config.in: Re-generate.
14717 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14718 * defs.h: Do not include <endian.h>.
14719
7e89e357
JT
147202002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14721
14722 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14723 * config.in: Regenerate.
14724 * configure.in: Update copyright years.
14725 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14726 * configure: Regenerate.
14727 * i386bsd-nat.c: Update copyright years.
14728 (fill_gregset): Use regcache_collect.
14729 (fetch_inferior_registers): Only fetch integer registers
14730 if requested to do so. Add support for XMM registers
14731 using PT_GETXMMREGS.
14732 (store_inferior_registers): Only store integer registers
14733 if requested to do so. Add support for XMM registers
14734 using PT_SETXMMREGS.
14735 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14736 (store_inferior_registers): Remove.
14737 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14738 (fetch_elfcore_registers): New function.
14739 (i386nbsd_elfcore_fns): New.
14740 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14741 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14742 i386bsd-nat.o.
14743 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14744 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14745 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14746 * config/i386/tm-nbsd.h: Update copyright years.
14747 (HAVE_SSE_REGS): Define.
14748 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14749 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14750 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14751 (SIGCONTEXT_PC_OFFSET): Remove.
14752 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14753
a752853e
AC
147542002-01-05 Andrew Cagney <ac131313@redhat.com>
14755
14756 * configure.tgt: Remove powerpc-*-macos* target.
14757 * config/m68k/xm-mpw.h: Delete file.
14758 * config/xm-mpw.h: Delete file.
14759 * ser-mac.c: Delete file.
14760 * mpw-make.sed: Delete file.
14761 * mpw-config.in: Delete file.
14762 * mac-xdep.c: Delete file.
14763 * mac-gdb.r: Delete file.
14764 * mac-defs.h: Delete file.
14765 * mac-nat.c: Delete file.
14766 * config/powerpc/macos.mh: Delete file.
14767 * config/powerpc/macos.mt: Delete file.
14768 * config/powerpc/nm-macos.h: Delete file.
14769 * config/powerpc/tm-macos.h: Delete file.
14770 * source.c (openp, open_source_file): Remove obsolete code.
14771 * top.c (gdb_readline): Ditto.
14772 * utils.c (query): Ditto.
14773 * event-top.c (display_gdb_prompt): Ditto.
14774 * Makefile.in (ser-mac.o): Delete obsolete target.
14775 * NEWS: Update.
14776
d7449b42
AC
147772002-01-04 Andrew Cagney <ac131313@redhat.com>
14778
14779 * defs.h (BIG_ENDIAN): Delete macro definition.
14780 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14781 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14782 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14783 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14784 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14785 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14786 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14787 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14788 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14789 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14790 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14791 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14792 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14793 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14794 * gdbarch.c: Re-generate.
14795
356374e8
DJ
147962002-01-04 Daniel Jacobowitz <drow@mvista.com>
14797
14798 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14799 for core files.
14800
a2b8f8f8
JT
148012002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14802
14803 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14804
12466af9
AC
148052002-01-04 Andrew Cagney <ac131313@redhat.com>
14806
14807 * value.h (value_ptr): Delete typedef.
14808
3549ab40
JT
148092002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14810
14811 * i386nbsd-nat.c: Update copyright years.
14812 Include i386-tdep.h.
14813
fedbd091
EZ
148142002-01-04 Elena Zannoni <ezannoni@redhat.com>
14815
14816 * stabsread.c: Update copyright years.
14817
14818 From Debashis Mahata <debashis.mahata@wipro.com>:
14819 (read_struct_fields): Deal with Sun C compiler erroneous stab
14820 output for structs and unions.
fec8b34f 14821 Fix PR gdb/269.
fedbd091 14822
eb43544b
DJ
148232002-01-04 Daniel Jacobowitz <drow@mvista.com>
14824
14825 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14826 prototype.
14827
1514d34e
DJ
148282002-01-04 Daniel Jacobowitz <drow@mvista.com>
14829
14830 * cp-abi.c: Fix whitespace.
14831 (baseclass_offset): New wrapper function.
14832 * cp-abi.h (baseclass_offset): Add prototype.
14833 (struct cp_abi_ops): Add baseclass_offset pointer.
14834
14835 * valops.c (vb_match): Move to...
14836 * gnu-v2-abi.c (vb_match): here.
14837 * valops.c (baseclass_offset): Move to...
14838 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14839
14840 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14841
14842 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14843 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14844 * hpacc-abi.c (init_hpacc_ops): Likewise.
14845
7f8c9282
DJ
148462002-01-04 Daniel Jacobowitz <drow@mvista.com>
14847
14848 * valops.c (find_overload_match): Accept obj as a
14849 reference parameter. Update it before returning.
14850 * value.h (find_overload_match): Update prototype.
14851 * eval.c (evaluate_subexp_standard): Pass object to
14852 find_overload_match by reference.
14853
f23631e4
AC
148542002-01-03 Andrew Cagney <ac131313@redhat.com>
14855
14856 * valarith.c: Replace value_ptr with struct value pointer. Remove
14857 register attribute from value declarations.
14858 * valops.c: Ditto.
14859 * value.h: Ditto.
14860 * scm-lang.c (scm_lookup_name): Ditto.
14861
79e10fab 148622002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14863
79e10fab
AC
14864 Abstract the functionality of iterating over mapped memory
14865 regions into a general purpose iterator function.
abf22e64 14866 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14867 iterator for memory sections.
14868 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14869 (solib_mappings_callback): New function, callback for above.
14870 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14871 (info_mappings_callback): New function, callback for above.
14872
14873 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14874
c5ad026a
MK
148752002-01-01 Mark Kettenis <kettenis@gnu.org>
14876
d2a7c97a
MK
14877 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14878 * i386-tdep.c: Include "elf-bfd.h".
14879 (process_note_abi_tag_sections): New function.
14880 (i386_gdbarch_init): Add code to recognize various OS/ABI
14881 combinations.
14882
c5ad026a
MK
14883 * maint.c (_initialize_maint_cmds): Add missing \ in
14884 string-literal.
14885
a1a5b71e 14886For older changes see ChangeLog-2001
c906108c
SS
14887\f
14888Local Variables:
14889mode: change-log
14890left-margin: 8
14891fill-column: 74
14892version-control: never
14893End:
This page took 0.99525 seconds and 4 git commands to generate.