* osabi.c: Include "gdb_assert.h" and "gdb_string.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
05816f70
MK
12002-12-14 Mark Kettenis <kettenis@gnu.org>
2
3 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
4 (struct gdb_osabi_handler): Remove member `arch'. Add member
5 `arch_info'.
6 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
7 construct a `struct bfd_arch_info' and store it in the `struct
8 gdb_osabi_handler' that is created.
9 (gdbarch_init_osabi): Check for compatibility based on machine
10 type and architecture.
11 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
12 comment.
13 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
14 second argument in call to gdbarch_register_osabi.
15 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
16 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
17 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
18 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
19 * arm-tdep.c (_initialize_arm_tdep): Likewise.
20 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
21 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
22 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
23 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
24 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
25 * i386-tdep.c (_initialize_i386_tdep): Likewise.
26 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
27 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
28 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
29 _initialize_i386bsd_tdep and updated likewise.
30 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
31 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
32 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
33 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
34 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
35 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
36 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
37 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
38 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
39 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
40
743b930b
KB
412002-12-20 Kevin Buettner <kevinb@redhat.com>
42
43 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
44 DT_MIPS_RLD_MAP case for 64-bit targets.
45
3758ac48
KB
462002-12-20 Kevin Buettner <kevinb@redhat.com>
47
48 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
49 ``temp_saved_regs'', not the pointer or other storage contiguous
50 to this pointer.
51
19ed69dd
KB
522002-12-20 Kevin Buettner <kevinb@redhat.com>
53
54 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
55 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
56 (mips_linux_get_longjmp_target): Delete declarations.
57 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
58 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
59 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
60 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
61 (mips_linux_get_longjmp_target)
62 (mips_linux_svr4_fetch_link_map_offsets): Make static.
63 (mips_linux_init_abi): New function.
64 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
65
7990a578
EZ
662002-12-19 Keith Seitz <keiths@redhat.com>
67
68 patch committed by Elena Zannoni <ezannoni@redhat.com>
69 * thread.c (do_captured_list_thread_ids): Call prune_threads and
70 target_find_new_threads. Fix for PR mi/669.
71
84fba31b
DC
722002-12-19 David Carlton <carlton@math.stanford.edu>
73
74 * linespec.c (decode_line_1): Move code into decode_all_digits.
75 (decode_all_digits): New function.
76
2fc70c99
KB
772002-12-19 Kevin Buettner <kevinb@redhat.com>
78
79 * exec.c (print_section_info): Select a format string to use with
80 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
81
2f107107
AC
822002-12-18 Andrew Cagney <ac131313@redhat.com>
83
84 * frame.c (deprecated_update_current_frame_pc_hack): Replace
85 deprecated_update_current_frame_pc_hack.
86 (deprecated_update_frame_base_hack): New function.
87 * frame.h (deprecated_update_frame_pc_hack): Replace
88 (deprecated_update_frame_base_hack): Declare.
89 * infrun.c (normal_stop): Update.
90
c9012c71
AC
912002-12-18 Andrew Cagney <ac131313@redhat.com>
92
93 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
94 frame_extra_info_zalloc.
95 (rs6000_frame_args_address): Use get_frame_extra_info.
96 (frame_get_saved_regs): Use get_frame_saved_regs.
97 (frame_initial_stack_address): Use get_frame_saved_regs and
98 get_frame_extra_info.
99 (frame_initial_stack_address): Use get_frame_extra_info.
100
6819ae38
KB
1012002-12-17 Kevin Buettner <kevinb@redhat.com>
102
103 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
104 array size.
105 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
106 checks for r3900_regnames[].
107
625602f2
RE
1082002-12-17 Richard Earnshaw <rearnsha@arm.com>
109
110 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
111 All uses changed
112 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
113
38d49aff
DC
1142002-12-17 David Carlton <carlton@math.stanford.edu>
115
116 * symtab.c (lookup_partial_symbol): Don't search past the end of
117 the partial symbols.
118
30f7db39
AC
1192002-12-17 Andrew Cagney <ac131313@redhat.com>
120
121 * stack.c (frame_info): Use get_frame_saved_regs.
122 * breakpoint.c (until_break_command): Use get_frame_pc.
123
23136709
KB
1242002-12-16 Kevin Buettner <kevinb@redhat.com>
125
126 * buildsym.c (block_end_complaint, anon_block_end_complaint)
127 (innerblock_complaint, innerblock_anon_complaint)
128 (blockvector_complaint): Delete deprecated complaint structs.
129 (finish_block, make_blockvector, end_symtab): Replace calls
130 to complain() with calls to complaint().
131 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
132 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
133 (unexpected_type_complaint, bad_sclass_complaint)
134 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
135 Delete deprecated complaint structs.
136 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
137 Replace calls to complain() with calls to complaint().
138 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
139 (unknown_symtype_complaint, unknown_symchar_complaint)
140 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
141 (lbrac_mismatch_complaint, repeated_header_complaint)
142 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
143 Delete deprecated complaint structs.
144 (unknown_symtype_complaint, lbrac_mismatch_complaint)
145 (repeated_header_complaint)
146 (function_outside_compiliation_unit_complaint): New functions.
147 (add_old_header_file, find_corresponding_bincl_psymtab)
148 (set_namestring, find_stab_function_addr, read_dbx_symtab)
149 (process_one_symbol): Replace calls to complain() with, possibly
150 indirect, calls to complaint().
151 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
152 (unknown_attribute_form, unknown_attribute_length)
153 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
154 (const_ignored, botched_modified_type, op_deref2, op_deref4)
155 (basereg_not_handled, dup_user_type_allocation)
156 (dup_user_type_definition, missing_tag, bad_array_element_type)
157 (subscript_data_items, unhandled_array_subscript_format)
158 (unknown_array_subscript_format, not_row_major)
159 (missing_at_name): Delete deprecated complaint structs.
160 (bad_die_ref_complaint, unknown_attribute_form_complaint)
161 (dup_user_type_definition_complaint)
162 (bad_array_element_type_complaint): New functions.
163 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
164 (decode_subscript_data_item, dwarf_read_array_type)
165 (read_tag_string_type, read_subroutine_type, read_func_scope)
166 (locval, scan_partial_symbols, decode_modified_type)
167 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
168 (attribute_size): Replace calls to complain() with, possibly
169 indirect, calls to complaint().
170 * elfread.c (section_info_complaint, section_info_dup_complaint)
171 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
172 Delete deprecated complaint structs.
173 (elf_symtab_read, elfstab_offset_sections): Replace calls to
174 complain() with calls to complaint().
175 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
176 struct.
177 (stub_noname_complaint): New function.
178 (check_typedef, add_mangled_type): Replace calls to complain()
179 with calls to complaint().
180 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
181 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
182 (hpread_unhandled_type_complaint, hpread_struct_complaint)
183 (hpread_array_complaint, hpread_type_lookup_complaint)
184 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
185 (hpread_unhandled_common_complaint)
186 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
187 struct definitions and declarations.
188 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
189 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
190 Replace calls to complain() with, possibly indirect, calls to
191 complaint().
192 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
193 Likewise.
194 * mdebugread.c (bad_file_number_complaint, index_complaint)
195 (aux_index_complaint, block_index_complaint)
196 (unknown_ext_complaint, unknown_sym_complaint)
197 (unknown_st_complaint, block_overflow_complaint)
198 (basic_type_complaint, unknown_type_qual_complaint)
199 (array_index_type_complaint, bad_tag_guess_complaint)
200 (block_member_complaint, stEnd_complaint)
201 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
202 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
203 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
204 (bad_continued_complaint, bad_rfd_entry_complaint)
205 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
206 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
207 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
208 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
209 complaint structs.
210 (index_complaint, unknown_ext_complaint, basic_type_complaint)
211 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
212 (unexpected_type_code_complaint)
213 (function_outside_compilation_unit_complaint): New functions.
214 (parse_symbol, parse_type, upgrade_type, parse_procedure)
215 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
216 Replace calls to complain() with, possibly indirect calls to
217 complaint().
218 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
219 Delete deprecated complaint structs.
220 (lookup__objc_class, lookup_child_selector): Replace complain()
221 with complaint().
222 * remote-vx.c (cant_contact_target): Delete deprecated complaint
223 struct.
224 (vx_lookup_symbol): Replace complain() with complaint().
225 * stabsread.c (invalid_cpp_abbrev_complaint)
226 (invalid_cpp_type_complaint, member_fn_complaint)
227 (const_vol_complaint, error_type_complaint)
228 (invalid_member_complaint, range_type_base_complaint)
229 (reg_value_complaint, vtbl_notfound_complaint)
230 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
231 (unresolved_sym_chain_complaint, stabs_general_complaint)
232 (lrs_general_complaint, multiply_defined_struct): Delete
233 deprecated complaint structs.
234 (invalid_cpp_abbrev_complaint, ref_value_complaint)
235 (stabs_general_complaint, lrs_general_complaint)
236 (msg_unknown_complaint): New functions.
237 (dbx_lookup_type, read_cfront_baseclasses)
238 (read_cfront_member_functions, resolve_symbol_reference)
239 (define_symbol, resolve_live_range, add_live_range, read_type)
240 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
241 (read_one_struct_field, read_baseclasses, read_tilde_fields)
242 (read_cfront_static_fields, attach_fields_to_type)
243 (complain_about_struct_wipeout, read_range_type)
244 (common_block_start, common_block_end, cleanup_undefined_types)
245 (scan_file_globals): Replace complain() with complaint().
246 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
247 Delete deprecated complaint struct declarations.
248 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
249 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
250 (bf_not_found_complaint, ef_complaint, eb_complaint)
251 (function_outside_compilation_unit_complaint): New functions.
252 (record_include_begin, record_include_end, enter_line_range)
253 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
254 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
255 complain() with complaint().
256
1a14e234
AC
2572002-12-16 Andrew Cagney <ac131313@redhat.com>
258
259 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
260 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
261 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
262 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
263 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
264 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
265 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
266 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
267 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
268 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
269 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
270 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
271 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
272 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
273 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
274 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
275 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
276 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
277 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
278 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
279 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
280 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
281 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
282 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
283 * config/m88k/xm-dgux.h: Delete.
284 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
285 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
286 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
287 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
288 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
289 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
290 * ch-valprint.c: Delete.
291
04e68871
DJ
2922002-12-15 Daniel Jacobowitz <drow@mvista.com>
293
294 * infrun.c (handle_inferior_event): Rearrange code to resume if
295 no catchpoint triggers for an event.
296
deb3b17b
DJ
2972002-12-15 Daniel Jacobowitz <drow@mvista.com>
298
299 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
300 and TARGET_WAITKIND_VFORKED cases.
301
675bf4cb
DJ
3022002-12-15 Daniel Jacobowitz <drow@mvista.com>
303
304 * infrun.c (handle_inferior_event): Assume that catchpoints
305 are not affected by DECR_PC_AFTER_BREAK.
306
81e56179
DJ
3072002-12-15 Daniel Jacobowitz <drow@mvista.com>
308
309 * target.c (update_current_target): Don't inherit DONT_USE.
310 * target.h (struct target_ops): Remove DONT_USE.
311 (target_next): Remove macro.
312
a3edc55b
MK
3132002-12-15 Mark Kettenis <kettenis@gnu.org>
314
315 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
316
b508a996
RE
3172002-12-14 Richard Earnshaw <rearnsha@arm.com>
318
319 * arm-tdep.c (convert_from_extended): New argument to hold the
320 type of floating point result we want to convert to. Make input
321 argument const. Fix all callers.
322 (convert_to_extended): Similarly.
323 (arm_extract_return_value): Now takes a regcache argument. Change
324 code to use regcache accessor functions. Correctly extract
325 smaller-than-word results on big-endian machines.
326 (arm_store_return_value): Now takes a regcache argument. Change
327 code to use regcache accessor functions. Correctly zero/sign extend
328 smaller than word results before storing into r0.
329 (arm_gdbarch_init): Register new-style extract_return_value and
330 store_return_value functions.
331
3197744f
MS
3322002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
333
334 * thread-db.c (thread_from_lwp): Uniquify error msg.
335 (lwp_from_thread): Ditto.
336 (check_event): Ditto.
337 (find_new_threads_callback): Ditto.
338 (thread_db_pid_to_str): Ditto.
339
6baff1d2
AC
3402002-12-13 Andrew Cagney <ac131313@redhat.com>
341
342 * frame.h (get_frame_saved_regs): Declare.
343 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
344 pointer.
345 * frame.c (get_frame_saved_regs): New function.
346 (frame_saved_regs_zalloc): Return the allocated saved_regs.
347
b87efeee
AC
3482002-12-13 Andrew Cagney <ac131313@redhat.com>
349
350 * frame.c (deprecated_update_current_frame_pc_hack): New
351 function.
352 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
353 * infrun.c (normal_stop): Use said function instead of directly
354 modifying the frame's PC.
355
3de2dc4f
AO
3562002-12-13 Alexandre Oliva <aoliva@redhat.com>
357
358 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
359
fe29b929
KB
3602002-12-13 Kevin Buettner <kevinb@redhat.com>
361
362 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
363 config/mips/tm-irix6.h (NUM_REGS): Delete.
364 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
365 (temp_saved_regs): Declare as a pointer rather than an array.
366 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
367 that ``temp_saved_regs'' has storage allocated to it and that
368 it's the correct size.
369
c04e0a08
JJ
3702002-12-13 Jeff Johnston <jjohnstn@redhat.com>
371
372 * defs.h (init_last_source_visited): New prototype.
373 (add_path): Ditto.
374 * source.c (add_path): New function that adds to a specified path.
375 (mod_path): Change to call add_path.
376 (init_last_source_visited): New function to allow interfaces to
377 initialize static variable: last_source_visited. Part of fix
378 for PR gdb/741.
379 * Makefile.in: Add support for mi/mi-cmd-env.c.
380
c689142b
AC
3812002-12-13 Andrew Cagney <ac131313@redhat.com>
382
383 * frame.h (frame_id_unwind): Declare.
384 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
385 id_unwind_cache.
386 (frame_id_unwind_ftype): Declare.
387 * frame.c (frame_id_unwind): New function.
388 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
389 (create_new_frame, get_prev_frame): Pass id_unwind to
390 set_unwind_by_pc.
391 (frame_saved_regs_id_unwind): New function.
392 (frame_saved_regs_id_unwind): New function.
393 * dummy-frame.c (dummy_frame_id_unwind): New function.
394 (struct dummy_frame): Add field id.
395 (generic_push_dummy_frame): Initialize `id'.
396 * dummy-frame.h (dummy_frame_id_unwind): Declare.
397
18ea5ba4
AC
3982002-12-13 Andrew Cagney <ac131313@redhat.com>
399
400 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
401 pass that to set_momentary_breakpoint. Move comments to where they
402 belong.
403 * frame.h (set_current_frame): Delete declaration.
404 * frame.c (set_current_frame): Delete function.
405
2c517d0e
AC
4062002-12-13 Andrew Cagney <ac131313@redhat.com>
407
408 * frame.c (frame_extra_info_zalloc): New function.
409 * frame.h (frame_extra_info_zalloc): Declare.
410
516b1f28
JB
4112002-12-13 Joel Brobecker <brobecker@gnat.com>
412
413 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
414 in the previous prototype change to set_momentary_breakpoint.
415
fbb265fc
DJ
4162002-12-12 Daniel Jacobowitz <drow@mvista.com>
417
418 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
419 and saw_child_exec.
420 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
421 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
422 (stop_stepping): Remove outdated check for child vfork events.
423
4fd7f624
AC
4242002-12-12 Andrew Cagney <ac131313@redhat.com>
425
426 * GDB 5.3 released from gdb_5_3-branch.
427
4c9ba7e0
DJ
4282002-12-11 Daniel Jacobowitz <drow@mvista.com>
429
430 * corelow.c (init_core_ops): Delete references to to_require_attach
431 and to_require_detach.
432 * exec.c (init_exec_ops): Likewise.
433 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
434 hppa_require_detach directly.
435 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
436 * inftarg.c (child_detach): Remove.
437 (child_detach_from_process): Rename to child_detach, remove
438 after_fork argument.
439 (child_attach): Remove.
440 (child_attach_to_process): Rename to child_attach, remove after_fork
441 argument.
442 (init_child_ops): Delete references to to_require_attach
443 and to_require_detach.
444 * infttrace.c (hppa_require_attach): Update comment.
445 * target.c (cleanup_target, update_current_target)
446 (init_dummy_target, setup_target_debug): Delete references to
447 to_require_attach and to_require_detach.
448 (find_default_require_detach, find_default_require_attach)
449 (debug_to_require_attach, debug_to_require_detach): Remove
450 functions.
451 * target.h (struct target_ops): Remove to_require_attach
452 and to_require_detach.
453 (target_require_attach, target_require_detach): Delete macros.
454 (find_default_require_detach, find_default_require_attach): Delete
455 prototypes.
456 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
457
0394eb2a
AC
4582002-12-11 Andrew Cagney <ac131313@redhat.com>
459
460 * frame.c (get_frame_extra_info): New function.
461 * frame.h (get_frame_extra_info): Declare.
462
818dd999
AC
4632002-12-11 Andrew Cagney <ac131313@redhat.com>
464
465 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
466 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
467 with `struct frame_id'.
468 (set_longjmp_resume_breakpoint): Ditto.
469 * infrun.c (handle_inferior_event): Update.
470 * breakpoint.c (watch_command_1, until_break_command): Update.
471 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
472 (handle_inferior_event, step_over_function): Update.
473 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
474 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
475 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
476 * infcmd.c (finish_command, run_stack_dummy): Update.
477
4d3c2250
KB
4782002-12-11 Kevin Buettner <kevinb@redhat.com>
479
480 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
481 (dwarf2_non_const_array_bound_ignored)
482 (dwarf2_missing_line_number_section)
483 (dwarf2_statement_list_fits_in_line_number_section)
484 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
485 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
486 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
487 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
488 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
489 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
490 (dwarf2_missing_member_fn_type_complaint)
491 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
492 (dwarf2_const_value_length_mismatch)
493 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
494 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
495 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
496 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
497 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
498 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
499 complaints using deprecated struct..
500 (dwarf2_non_const_array_bound_ignored_complaint)
501 (dwarf2_complex_location_expr_complaint)
502 (dwarf2_unsupported_at_frame_base_complaint)
503 (dwarf2_const_value_length_mismatch_complaint)
504 (dwarf2_macros_too_long_complaint)
505 (dwarf2_macro_malformed_definition_complaint)
506 (dwarf2_invalid_attrib_class_complaint): New functions.
507 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
508 (read_structure_scope, read_array_type, read_common_block)
509 (read_tag_pointer_type, read_base_type, read_partial_die)
510 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
511 (new_symbol, dwarf2_const_value, read_type_die)
512 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
513 (parse_macro_definition, dwarf_decode_macros): Replace calls to
514 complain() with, possibly indirect, calls to complaint().
515
95486978
AC
5162002-12-11 Andrew Cagney <cagney@redhat.com>
517
518 * frame.c (deprecated_get_frame_saved_regs): Rename
519 get_frame_saved_regs.
520 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
521 * sparc-tdep.c: Update.
522 * hppa-tdep.c: Update.
523 * h8500-tdep.c: Update.
524
321432c0
KB
5252002-12-11 Kevin Buettner <kevinb@redhat.com>
526
527 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
528 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
529 ``char *'' for return and parameter types.
530 * gdbarch.h, gdbarch.c: Regenerate.
531 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
532 return type from ``char *'' to ``const char *''.
533 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
534 const.
535
5a4d6ff4
MK
5362002-12-11 Mark Kettenis <kettenis@gnu.org>
537
538 * i386-tdep.c: Include "dummy-frame.h".
539 (i386_frame_chain, i386_frame_saved_pc): Replace
540 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
541 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
542
a5afb99f
AC
5432002-12-10 Andrew Cagney <cagney@redhat.com>
544
545 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
546 Change to a function with predicate.
547 * gdbarch.h, gdbarch.c: Re-generate.
548 * frame.c (get_prev_frame): Update. Test
549 DEPRECATED_INIT_FRAME_PC_P.
550 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
551 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
552 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
553 * alpha-tdep.c (alpha_gdbarch_init): Update.
554 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
555 * mips-tdep.c (mips_gdbarch_init): Update.
556 * i386-interix-tdep.c (i386_interix_init_abi): Update.
557 * arm-tdep.c: Update comments.
558 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
559 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
560 * frv-tdep.c (frv_gdbarch_init): Ditto.
561 * x86-64-tdep.c (x86_64_init_abi): Ditto.
562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
563 * s390-tdep.c (s390_gdbarch_init): Ditto.
564 * v850-tdep.c (v850_gdbarch_init): Ditto.
565 * vax-tdep.c (vax_gdbarch_init): Ditto.
566 * sh-tdep.c (sh_gdbarch_init): Ditto.
567 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
571 * i386-tdep.c (i386_gdbarch_init): Ditto.
572 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
573 * cris-tdep.c (cris_gdbarch_init): Ditto.
574 * avr-tdep.c (avr_gdbarch_init): Ditto.
575 * arm-tdep.c (arm_gdbarch_init): Ditto.
576 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
577 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
578
6604731b
DJ
5792002-12-10 Daniel Jacobowitz <drow@mvista.com>
580
581 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
582 CHILD_FOLLOW_FORK.
583 * hppah-nat.c (saved_vfork_pid): Add.
584 (child_post_follow_vfork): Remove.
585 (child_follow_fork): New function.
586 (child_wait): Call detach_breakpoints after receiving the child vfork.
587 Call child_resume directly instead of going through resume ().
588 Make sure we have the exec before reporting the vfork.
589 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
590 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
591 (follow_fork): New function. Call target_follow_fork.
592 (follow_inferior_reset_breakpoints): New function broken out from
593 old follow_inferior_fork.
594 (resume): Remove hack to follow exec after vfork.
595 * inftarg.c (child_post_follow_vfork): Remove.
596 (child_follow_fork): New function.
597 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
598 * target.c (cleanup_target): Replace to_post_follow_vfork with
599 to_follow_fork.
600 (update_current_target): Likewise.
601 (setup_target_debug): Likewise.
602 (debug_to_post_follow_vfork): Remove.
603 (debug_to_follow_fork): New function.
604 * target.h (struct target_ops): Replace to_post_folow_vfork with
605 to_follow_fork.
606 (child_post_follow_vfork): Remove prototype.
607 (child_follow_fork): Add prototype.
608 (target_post_follow_vfork): Remove macro.
609 (target_follow_fork): Add macro.
610
7d2830a3
DJ
6112002-12-10 Daniel Jacobowitz <drow@mvista.com>
612
613 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
614 (child_post_follow_vfork): Cancel pending exec event if we follow
615 the parent.
616 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
617 events have been processed. Return a fake TARGET_WAITKIND_EXECD
618 event at the following wait call if necessary.
619 * infrun.c (follow_vfork): Don't follow_exec here.
620 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
621 case about HP/UX 10.20. Remove code pushed down to
622 hppah-nat.c:child_wait.
623 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
624 vfork_in_flight is set.
625
6262002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
627
628 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
629 for the parent's fork event.
630 * infrun.c (handle_inferior_event): Only expect one fork event.
631 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
632 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
633
50631d4f
AC
6342002-12-10 Andrew Cagney <ac131313@redhat.com>
635
bc124bd3
AC
636 * PROBLEMS: Delete reference to PR gdb/725.
637
50631d4f
AC
638 * MAINTAINERS (gdb.c++): Add David Carlton.
639
808013d1
DC
6402002-12-09 David Carlton <carlton@math.stanford.edu>
641
642 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
643 * cli/cli-cmds.c: Ditto.
644
31deffe5
AC
6452002-12-09 Andrew Cagney <cagney@redhat.com>
646
6cbda714
AC
647 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
648 function address in <>.
31deffe5
AC
649 * gdbarch.c: Re-generate.
650
2692ddb3
DC
6512002-12-09 David Carlton <carlton@math.stanford.edu>
652
653 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
654
f3c39e76
DC
6552002-12-09 David Carlton <carlton@math.stanford.edu>
656
657 * linespec.c (symtab_from_filename): New function.
658 (decode_line_1): Move code into symtab_from_filename.
659
1b84163e
KB
6602002-12-09 Kevin Buettner <kevinb@redhat.com>
661
662 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
663
bdd78e62
AC
6642002-12-07 Andrew Cagney <ac131313@redhat.com>
665
666 * f-valprint.c (info_common_command): Use get_frame_pc.
667 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
668 * ax-gdb.c (agent_command): Ditto.
669 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
670 (rs6000_pop_frame): Ditto.
671 (rs6000_frameless_function_invocation): Ditto.
672 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
673 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
674 * macroscope.c (default_macro_scope): Ditto.
675 * stack.c (print_frame_info_base): Ditto.
676 (print_frame, frame_info, print_frame_label_vars): Ditto.
677 (return_command, func_command, get_frame_language): Ditto.
678 * infcmd.c (finish_command): Ditto.
679 * dummy-frame.c (cached_find_dummy_frame): Ditto.
680 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
681 (break_at_finish_at_depth_command_1): Ditto.
682 (break_at_finish_command_1): Ditto.
683 (until_break_command, get_catch_sals): Ditto.
684 * blockframe.c (func_frame_chain_valid): Ditto.
685 (frameless_look_for_prologue): Ditto.
686 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
687
408400e7
AC
6882002-12-08 Andrew Cagney <ac131313@redhat.com>
689
690 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
691 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
692
97f46953
AC
6932002-12-08 Andrew Cagney <ac131313@redhat.com>
694
695 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
696 to pure functions.
697 * gdbarch.h, gdbarch.c: Re-generate.
698 * frame.c (get_prev_frame): Explictly assign prev's pc with value
699 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
700
701 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
702 declaration to a function returning a CORE_ADDR.
703 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
704 * arch-utils.c (init_frame_pc_noop): Return the PC value.
705 (init_frame_pc_default): Ditto.
706 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
707 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
708 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
709 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
710 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
711 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
712
713 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
714 to init_frame_pc_noop.
715 (i386_interix_init_frame_pc): Delete function.
716 * z8k-tdep.c (init_frame_pc): Delete function.
717 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
718 (INIT_FRAME_PC_FIRST): Ditto.
719 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
720 (INIT_FRAME_PC_FIRST): Ditto.
721 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
722 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
723 init_frame_pc_noop.
724 (INIT_FRAME_PC_FIRST): Convert to an expression.
725 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
726
8b36eed8
AC
7272002-12-08 Andrew Cagney <ac131313@redhat.com>
728
729 * blockframe.c: Use get_frame_base instead of directly accessing
730 the `struct frame_info' member frame.
731 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
732 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
733
aeeccc89
EZ
7342002-12-08 Elena Zannoni <ezannoni@redhat.com>
735
736 * Makefile.in (readline_h): Define.
737 (completer.o): Depend on readline_h.
738 (corelow.o): Ditto.
739 (event-top.o): Ditto.
740 (exec.o): Ditto.
741 (solib.o): Ditto.
742 (source.o): Ditto.
743 (symfile.o): Ditto.
744 (symmisc.o): Ditto.
745 (top.o): Ditto.
746 (tracepoint.o): Ditto.
747 (utils.o): Ditto.
748 (cli-dump.o): Ditto.
749 (tui-hooks.o): Ditto.
750 (tuiWin.o): Ditto.
751
38017ce8
EZ
7522002-12-08 Elena Zannoni <ezannoni@redhat.com>
753
754 More cleanup from import of readline 4.3.
755 * completer.h (complete_line, readline_line_completion_function):
756 Update prototypes.
757 (line_completion_function): Removed, not used outside of completer.c.
758 * completer.c (readline_line_completion_function,
759 complete_function, line_completion_function): Use const for first
760 parameter.
761 (line_completion_function): Make static.
762 (filename_completer): filename_completion_function is now called
763 rl_filename_completion_function
764 * corelow.c: Include <readline/readline.h>.
765 * exec.c: Ditto.
766 * solib.c: Ditto.
767 * source.c: Ditto.
768 * symfile.c: Ditto.
769 * symmisc.c: Ditto.
770 * top.c (init_main): No need to coerce
771 readline_line_completion_function anymore.
772 * cli/cli-dump.c: Include <readline/readline.h>.
773
75e3c1f9
AC
7742002-12-08 Andrew Cagney <ac131313@redhat.com>
775
776 * stack.c (frame_info): Use get_prev_frame.
777 * blockframe.c (frame_address_in_block): Ditto.
778 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
779 (rs6000_frameless_function_invocation): Ditto.
780 (rs6000_frame_saved_pc): Ditto.
781 (rs6000_frame_chain): Ditto.
782 * arch-utils.c (init_frame_pc_default): Ditto.
783
0d2b8049
AC
7842002-12-08 Andrew Cagney <ac131313@redhat.com>
785
786 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
787 Delete redundant definition.
788
9255ee31
EZ
7892002-12-08 Elena Zannoni <ezannoni@redhat.com>
790
791 Import of readline 4.3:
792 * cli/cli-cmds.c: Include readline/tilde.h.
793 * cli/cli-setshow.c: Ditto.
794 * defs.h: Don't declare tilde_expand anymore, since readline
795 exports it.
796
3442dad6 7972002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
798
799 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
800 -Werror on this file.
801
52f87c51
AC
8022002-12-07 Andrew Cagney <ac131313@redhat.com>
803
804 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
805 the format name.
806 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
807 * gdbarch.c: Regenerate.
808
2ca6c561
AC
8092002-12-06 Andrew Cagney <ac131313@redhat.com>
810
811 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
812 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
813 provide a default value.
814 * gdbarch.h, gdbarch.c: Regenerate.
815 * frame.c (get_prev_frame): Update. Check
816 DEPRECATED_INIT_FRAME_PC_FIRST_P.
817 * s390-tdep.c (s390_gdbarch_init): Update.
818 * mips-tdep.c (mips_gdbarch_init): Update.
819 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
820 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
821 * alpha-tdep.c (alpha_gdbarch_init): Update.
822
e162d11b
EZ
8232002-12-06 Elena Zannoni <ezannoni@redhat.com>
824
825 * ia64-linux-nat.c: Include gdb_string.h.
826 * alpha-nat.c: Ditto.
2b298b5d
EZ
827 * ppc-linux-nat.c: Ditto.
828 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
829 Update dependencies.
e162d11b 830
aa0cd9c1
AC
8312002-12-05 Andrew Cagney <ac131313@redhat.com>
832
833 * gdbthread.h: Include "frame.h".
834 (struct thread_info): Replace step_frame_address with
835 step_frame_id.
836 * inferior.h: Include "frame.h".
837 (step_frame_id): Replace external variable step_frame_address.
838 * gdbthread.h (save_infrun_state): Replace step_frame_address
839 parameter with step_frame_id parameter.
840 (load_infrun_state): Ditto.
841 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
842 * infcmd.c (step_frame_id, step_1, step_once): Update.
843 * thread.c (load_infrun_state, save_infrun_state): Update.
844 * infrun.c (clear_proceed_status, save_inferior_status): Update.
845 (handle_inferior_event, step_over_function): Update.
846 (normal_stop, context_switch, restore_inferior_status): Update.
847 (struct inferior_status): Replace step_frame_address with
848 step_frame_id.
849
a9a9bd0f
DC
8502002-12-05 David Carlton <carlton@math.stanford.edu>
851
852 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
853 DW_TAG_member as well as a declaration as being a C++ static data
854 member.
855 (read_structure_scope): Combine tests for DW_TAG_member and
856 DW_TAG_variable.
857
614b3b14
DC
8582002-12-05 David Carlton <carlton@math.stanford.edu>
859
860 * linespec.c (decode_compound): New function.
861 (decode_line_1): Move code into decode_compound.
862
e4051eeb
DC
8632002-12-05 David Carlton <carlton@math.stanford.edu>
864
865 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
866 argument.
867 (lookup_symbol_aux): Do the 'field_of_this' check before checking
868 the static block. See PR gdb/804.
869
f61e8913
DC
8702002-12-05 David Carlton <carlton@math.stanford.edu>
871
872 * symtab.c (lookup_symbol_aux_block): New function.
873 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
874
1e9f55d0
AC
8752002-12-05 Andrew Cagney <ac131313@redhat.com>
876
877 * gdbarch.sh: Dump the predicate function and macro values.
878 (read): Print error on standard error.
879 * gdbarch.c: Regenerate.
880
d1973055
KB
8812002-12-04 Kevin Buettner <kevinb@redhat.com>
882
883 * Makefile.in (mips_tdep_h): Define.
884 (mips-tdep.o): Add mips_tdep_h to dependency list.
885 * mips-tdep.h: New file.
886 * mips-tdep.c (mips-tdep.h): Include.
887 (enum mips_abi): Move to mips-tdep.h.
888 (mips_abi): New function.
889
f1253c7b
DC
8902002-12-04 David Carlton <carlton@math.stanford.edu>
891
892 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
893
406bc4de
DC
8942002-12-04 David Carlton <carlton@math.stanford.edu>
895
896 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
897 function.
898 (lookup_symbol_aux_minsyms): New function.
899
2a3750c5
JB
9002002-12-04 J. Brobecker <brobecker@gnat.com>
901
902 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
903
961d8652
JB
9042002-12-04 J. Brobecker <brobecker@gnat.com>
905
906 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
907 which is an obsolete macro name.
908
38c52d5a
DJ
9092002-12-04 Daniel Jacobowitz <drow@mvista.com>
910
911 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
912 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
913
d8ef46f5
DJ
9142002-12-03 H.J. Lu (hjl@gnu.org)
915
916 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
917 (create_breakpoints): Make sure the addr_string field is not
918 NULL.
919
02ae7771
AC
9202002-12-03 Andrew Cagney <ac131313@redhat.com>
921
922 * sparc-nat.c (fetch_inferior_registers)
923 (store_inferior_registers): Add comment on problem of LWP vs
924 threads.
925
926 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
927 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
928 (lin_lwp_store_registers): Remove.
929 (init_lin_lwp_ops): Use fetch_inferior_registers
930 and store_inferior_registers directly.
931 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
932 (store_inferior_registers): Likewise.
933 Fix PR gdb/725.
934
7a424e99
AC
9352002-12-03 Andrew Cagney <ac131313@redhat.com>
936
937 * frame.h (get_frame_id): Convert to a function.
938 (null_frame_id, frame_id_p): Declare.
939 (frame_id_eq, frame_id_inner): Declare.
940 (frame_id_build): New function.
941 * frame.c (get_frame_id): Update. Use null_frame_id.
942 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
943 frame_id_inner.
944 (null_frame_id, frame_id_p): Define.
945 (frame_id_eq, frame_id_inner): Define.
946 (frame_id_build): New function.
947 * varobj.c (varobj_create): Update.
948 (varobj_update): Update.
949 * valops.c (value_assign): Update.
950 (new_root_variable): Update.
951 * infrun.c (save_inferior_status): Update.
952 * breakpoint.c (watch_command_1): Update.
953
891c7f5f
JB
9542002-12-03 J. Brobecker <brobecker@gnat.com>
955
956 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
957 (SNAP2): Likewise.
958
144da3c1
AC
9592002-12-03 Andrew Cagney <cagney@redhat.com>
960
46248966
AC
961 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
962 patch.
963
144da3c1
AC
964 * PROBLEMS: Mention PR gdb/725.
965
03c6228e
AS
9662002-12-03 Andreas Schwab <schwab@suse.de>
967
968 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
969
36e53c63
AF
9702002-12-02 Adam Fedor <fedor@gnu.org>
971 Klee Dienes <kdienes@apple.com>
972
973 * objc-lang.c (objc_printstr): Add width arg to match
974 printstr prototype.
975 (compare_selectors): Add 'const' to arg types.
976 (compare_classes): Likewise.
977 (find_imps): Cast msym pointer to avoid compiler warning.
978 (print_object_command): Validate the address before
979 passing it to the print routine.
980 (find_objc_msgcall_submethod): Change function argument to
981 return an int.
982 * objc-lang.h: Add 'extern' to all function declarations.
983 (value_nsstring): Add declaration.
984
504d5c7e
JB
9852002-12-02 J. Brobecker <brobecker@gnat.com>
986
987 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
988 Fixes a build failure on HP/UX.
989
990 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
991 failure on HP/UX.
992 (hpread_has_name): Advance declaration to avoid a compilation warning.
993 (pst_syms_count): Add missing variable type. By change, the compiler
994 was defaulting to int, which seems a good choice. Fixes a compilation
995 warning.
996 (pst_syms_size): Likewise.
997
59623e27
JB
9982002-12-02 J. Brobecker <brobecker@gnat.com>
999
1000 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1001 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1002 later to set the proper gdbarch methods depending on the osabi.
1003 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1004
a09a320d
JB
10052002-12-02 J. Brobecker <brobecker@gnat.com>
1006
1007 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1008 * osabi.c (gdb_osabi_name): Add strings images for the two new
1009 enum values.
1010 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1011
8a81a99e
AC
10122002-12-02 Andrew Cagney <ac131313@redhat.com>
1013
1014 * MAINTAINERS (Java): Global maintainers are responible for Java.
1015 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1016 part Java maintainers.
1017
7af35dad
JB
10182002-12-02 J. Brobecker <brobecker@gnat.com>
1019
1020 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1021 Fixes a compilation failure on AiX.
1022
f4ede9bc
JB
10232002-12-02 J. Brobecker <brobecker@gnat.com>
1024
1025 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1026 why aix-thread.o is not listed.
1027
ae45cd16
AC
10282002-12-01 Andrew Cagney <ac131313@redhat.com>
1029
1030 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1031 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1032 * gdbarch.h, gdbarch.c: Re-generate.
1033 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1034 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1035 * config/pa/tm-hppa.h, frame.h: Update.
1036 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1037 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1038 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1039 * cris-tdep.c, alpha-tdep.c: Update.
1040 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1041 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1042 (get_prev_frame): Ditto.
1043
020cc13c
AC
10442002-11-30 Andrew Cagney <cagney@redhat.com>
1045
1046 * exec.c (xfer_memory): Replace boolean with int.
1047 * p-exp.y: Use 0 instead of false.
1048 * corelow.c (gdb_check_format): Change return type to int from
1049 boolean.
1050 * utils.c: Don't include <curses.h> or <term.h> first.
1051
1d9b2aa8
SC
10522002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1053
1054 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1055 (m68hc11_register_byte): Remove.
1056 (m68hc11_gdbarch_init): Don't set the above.
1057
a193e397
AC
10582002-11-29 Andrew Cagney <cagney@redhat.com>
1059
1060 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1061 by calling get_selected_frame.
1062 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1063 set_current_frame, create_new_frame, select_frame and
1064 get_current_frame.
1065 * remote-e7000.c (e7000_start_remote): Ditto.
1066 * remote-mips.c (common_open): Ditto
1067 * remote-rdp.c (remote_rdp_open): Ditto.
1068
b5fc49aa
AS
10692002-11-29 Andreas Schwab <schwab@suse.de>
1070
1071 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1072 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1073 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1074 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1075 read_memory_unsigned_integer instead of read_memory_integer when
1076 dealing with addresses and instruction opcodes.
1077 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1078 (m68k_linux_frame_saved_pc): Likewise.
1079
6e7f8b9c
AC
10802002-11-29 Andrew Cagney <ac131313@redhat.com>
1081
1082 * stack.c (selected_frame, select_frame): Move from here ...
1083 * frame.c (selected_frame, select_frame): ... to here. Include
1084 "language.h".
1085 * Makefile.in (frame.o): Update dependencies.
1086 * frame.c (get_selected_frame): New function.
1087 * frame.h (get_selected_frame): Declare.
1088 (deprecated_selected_frame): Rename selected_frame.
1089 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1090 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1091 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1092 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1093 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1094 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1095 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1096 * z8k-tdep.c, cli/cli-cmds.c: Update.
1097
805e2818
AC
10982002-11-29 Andrew Cagney <ac131313@redhat.com>
1099
1100 * frame.h (get_selected_block): Add comments.
1101
1058bca7
AC
11022002-11-28 Andrew Cagney <ac131313@redhat.com>
1103
1104 * frame.c (pc_notcurrent): New function.
1105 (find_frame_sal): New function.
1106 * frame.h (find_frame_sal): Declare.
1107 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1108 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1109 find_pc_line.
1058bca7
AC
1110 (frame_info): Ditto.
1111 * ada-lang.c (find_printable_frame): Ditto.
1112
d92419e5
JB
11132002-11-28 J. Brobecker <brobecker@gnat.com>
1114
1115 * configure.in: Check that the pthdebug library is recent enough
1116 before enabling thread support on native AiX.
1117 * configure: Regenerate.
1118
1119 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1120 from the list of object files as it is now appended by configure
1121 if thread support is enabled.
1122 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1123 if thread support is enabled.
1124
8c69fc49
AC
11252002-11-28 Andrew Cagney <cagney@redhat.com>
1126
1127 * stack.c (get_selected_block): In-line get_current_block.
1128 * frame.h (get_current_block): Delete declaration.
1129 * blockframe.c (get_current_block): Delete function.
1130
07555a72
AC
11312002-11-28 Andrew Cagney <ac131313@redhat.com>
1132
1133 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1134 USE_GENERIC_DUMMY_FRAMES.
1135 * gdbarch.h, gdbarch.c: Regenerate.
1136 * valops.c, frame.c: Update.
1137 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1138 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1139 * config/pa/tm-hppa.h, blockframe.c: Update.
1140 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1141 * m68k-tdep.c, alpha-tdep.c: Ditto.
1142
1143 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1144 * mips-tdep.c: Ditto.
1145
b99fa2d2
AC
11462002-11-27 Andrew Cagney <ac131313@redhat.com>
1147
1148 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1149 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1150 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1151 * gdbarch.c, gdbarch.h: Re-generate.
1152 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1153 (CALL_DUMMY_LOCATION): Delete macro definition.
1154 (PC_IN_CALL_DUMMY): Delete macro definitions.
1155
1156 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1157 default is already generic_pc_in_call_dummy.
1158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1159 * v850-tdep.c (v850_gdbarch_init): Ditto.
1160 * sh-tdep.c (sh_gdbarch_init): Ditto.
1161 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1162 * mips-tdep.c (mips_gdbarch_init): Ditto.
1163 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1166 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1167 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1168 * avr-tdep.c (avr_gdbarch_init): Ditto.
1169
1170 * arm-tdep.c (arm_gdbarch_init): Do not set
1171 use_generic_dummy_frames, default is already 1.
1172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1173 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1174 * v850-tdep.c (v850_gdbarch_init): Ditto.
1175 * sh-tdep.c (sh_gdbarch_init): Ditto.
1176 * s390-tdep.c (s390_gdbarch_init): Ditto.
1177 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1178 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1179 * mips-tdep.c (mips_gdbarch_init): Ditto.
1180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1182 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1183 * i386-tdep.c (i386_gdbarch_init): Ditto.
1184 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1185 * frv-tdep.c (frv_gdbarch_init): Ditto.
1186 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1187 * cris-tdep.c (cris_gdbarch_init): Ditto.
1188 * avr-tdep.c (avr_gdbarch_init): Ditto.
1189
1190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1191 call_dummy_location, default is already AT_ENTRY_POINT.
1192 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1193 * v850-tdep.c (v850_gdbarch_init): Ditto.
1194 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1195 * sh-tdep.c (sh_gdbarch_init): Ditto.
1196 * s390-tdep.c (s390_gdbarch_init): Ditto.
1197 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1198 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1199 * mips-tdep.c (mips_gdbarch_init): Ditto.
1200 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1202 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1203 * i386-tdep.c (i386_gdbarch_init): Ditto.
1204 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1205 * frv-tdep.c (frv_gdbarch_init): Ditto.
1206 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1207 * cris-tdep.c (cris_gdbarch_init): Ditto.
1208 * avr-tdep.c (avr_gdbarch_init): Ditto.
1209 * arm-tdep.c (arm_gdbarch_init): Ditto.
1210 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1211
abc0af47
AC
12122002-11-28 Andrew Cagney <cagney@redhat.com>
1213
1214 * frame.h: Update comments on set_current_frame, create_new_frame,
1215 flush_cached_frames, reinit_frame_cache, select_frame and
1216 selected_frame.
1217
ed5cedc5
AC
12182002-11-27 Andrew Cagney <cagney@redhat.com>
1219
1220 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1221 deprecated pc_in_call_dummy function.
1222 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1223 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1224 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1225 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1226 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1227
b2a1bd4f
MH
12282002-11-26 Martin M. Hunt <hunt@redhat.com>
1229
1230 * Makefile.in: Remove Tix dependencies.
1231 * acinclude.m4: Ditto.
1232 * aclocal.m4: Ditto.
1233 * configure.in: Ditto.
1234 * configure: Regenerated.
1235
f09cffaa
AC
12362002-11-26 Andrew Cagney <ac131313@redhat.com>
1237
1238 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1239 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1240 * gdbarch.c: Re-generate.
1241
e92b0cc9
AC
12422002-11-26 Andrew Cagney <ac131313@redhat.com>
1243
1244 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1245 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1246 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1247 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1248 pc_in_call_dummy_at_entry_point.
1249 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1250 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1251 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1252 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1253 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1254 pc_in_call_dummy_on_stack.
1255 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1256 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1257 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1258 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1259 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1260
b4b88177
AC
12612002-11-26 Andrew Cagney <ac131313@redhat.com>
1262
1263 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1264 pc_in_call_dummy_before_text_end
1265 (deprecated_pc_in_call_dummy_after_text_end): Rename
1266 pc_in_call_dummy_after_text_end.
1267 (deprecated_pc_in_call_dummy_on_stack): Rename
1268 pc_in_call_dummy_on_stack.
1269 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1270 pc_in_call_dummy_at_entry_point.
1271 * m68k-tdep.c (m68k_gdbarch_init): Update.
1272 * s390-tdep.c (s390_gdbarch_init): Update.
1273 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1274 * vax-tdep.c (vax_gdbarch_init): Update.
1275 * sparc-tdep.c (sparc_gdbarch_init): Update.
1276 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1277 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1278 * i386-tdep.c (i386_gdbarch_init): Update.
1279 * frv-tdep.c (frv_gdbarch_init): Update.
1280 * cris-tdep.c (cris_gdbarch_init): Update.
1281 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1282 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1283 (deprecated_pc_in_call_dummy_after_text_end)
1284 (deprecated_pc_in_call_dummy_on_stack)
1285 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1286 * alpha-tdep.c (alpha_gdbarch_init): Update.
1287
eb784848
DJ
12882002-11-25 Daniel Jacobowitz <drow@mvista.com>
1289
1290 * acconfig.h (HAVE_PREAD64): Add.
1291 * configure.in: Check for pread64.
1292 * config.in: Regenerated.
1293 * configure: Regenerated.
1294 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1295 * linux-proc.c (linux_proc_xfer_memory): New function.
1296 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1297
933c6fe4
DC
12982002-11-25 David Carlton <carlton@math.stanford.edu>
1299
1300 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1301 pdi's with no name.
1302
158a8022
AC
13032002-11-25 Andrew Cagney <ac131313@redhat.com>
1304
1305 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1306 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1307
481d0f41
JB
13082002-11-25 Jim Blandy <jimb@redhat.com>
1309
e8289572
JB
1310 * symfile.c (init_objfile_sect_indices): New function.
1311 (default_symfile_offsets): Move the section-index-initializing
1312 stuff into init_objfile_sect_indices, and call that.
1313
b29c9944
JB
1314 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1315 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1316
13de58df
JB
1317 * symfile.c (syms_from_objfile): Adjust indentation.
1318
481d0f41
JB
1319 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1320 || info_verbose isn't true.
1321
7d6a26a7
AC
13222002-11-24 Andrew Cagney <ac131313@redhat.com>
1323
1324 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1325 default to get_frame_base.
1326 * gdbarch.h, gdbarch.c: Regenerate.
1327 * arch-utils.c (default_frame_address): Delete function.
1328 * arch-utils.h (default_frame_address): Delete declaration
1329
6abe1021
PM
13302002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1331
1332 * varobj.c (find_frame_addr_in_frame_chain):
1333 Use get_frame_base instead of FRAME_FP,
1334 obvious fix.
1335
c193f6ac
AC
13362002-11-19 Andrew Cagney <ac131313@redhat.com>
1337
1338 * frame.h (FRAME_FP): Delete macro.
1339 (get_frame_base): New function declaration.
1340 * frame.c (get_frame_base): New function.
1341 (get_frame_id): Use ->frame.
1342 (frame_find_by_id): Rewrite to use get_frame_id.
1343 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1344 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1345 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1346 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1347 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1348 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1349 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1350
e5d2af14
AC
13512002-11-24 Andrew Cagney <ac131313@redhat.com>
1352
1353 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1354
931d12c6
AC
13552002-11-24 Andrew Cagney <ac131313@redhat.com>
1356
1357 * frame.c (set_unwind_by_pc): Revert change below, use
1358 PC_IN_CALL_DUMMY.
1359 (get_prev_frame): Ditto.
1360
5e0f933e
AC
13612002-11-24 Andrew Cagney <ac131313@redhat.com>
1362
1363 * dummy-frame.c (pc_in_dummy_frame): New function.
1364 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1365 (find_dummy_frame): Update comment.
1366 (generic_pop_current_frame): Use get_frame_type.
1367 * dummy-frame.h (pc_in_dummy_frame): Declare.
1368 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1369 (create_new_frame): Use pc_in_dummy_frame.
1370 (get_prev_frame): Use pc_in_dummy_frame.
1371 (frame_saved_regs_register_unwind): Use get_prev_frame.
1372 (deprecated_generic_get_saved_register): Use get_prev_frame.
1373
7d8547c9
AC
13742002-11-23 Andrew Cagney <ac131313@redhat.com>
1375
1376 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1377 from here ...
1378 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1379 (varobj_create): Note that frame ID should be used.
1380 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1381
0225421b
AC
13822002-11-23 Andrew Cagney <ac131313@redhat.com>
1383
1384 * breakpoint.c: Include "gdb_assert.h".
1385 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1386 not being used.
1387 * Makefile.in (breakpoint.o): Update dependencies.
1388 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1389 deprecated_frame_in_dummy.
1390 * stack.c (print_frame_info_base): Ditto.
1391 (frame_info): Ditto.
1392 (print_frame_info_base): Ditto. Delete dead code.
1393
32eeb91a
AS
13942002-11-23 Andreas Schwab <schwab@suse.de>
1395
1396 * Makefile.in (m68k_tdep_h): Define.
1397 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1398 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1399 * m68k-tdep.c: Move register number enum ...
1400 * m68k-tdep.h: ... to this new file and rename the constants from
1401 E_* to M68K_*. All uses changed.
1402 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1403 * abug-rom.c: Include "m68k-tdep.h". Use
1404 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1405 * cpu32bug-rom.c: Likewise.
1406 * dbug-rom.c: Likewise.
1407 * m68k-tdep.c: Likewise.
1408 * m68klinux-nat.c: Likewise.
1409 * remote-est.c: Likewise.
1410 * rom68k-rom.c: Likewise.
1411 * config/m68k/tm-linux.h: Likewise.
1412
9648bac8
AC
14132002-11-23 Andrew Cagney <ac131313@redhat.com>
1414
1415 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1416 dummy frame initialization code.
1417 * mips-tdep.c (mips_gdbarch_init): Ditto.
1418
91a175b3
CF
14192002-11-22 Christopher Faylor <cgf@redhat.com>
1420
1421 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1422 attach will hang.
1423
f4ded5b1
AC
14242002-11-22 Andrew Cagney <ac131313@redhat.com>
1425
1426 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1427 to default_frame_address.
1428 * gdbarch.h, gdbarch.c: Re-generate.
1429
1430 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1431 or frame_locals_address to default_frame_address.
1432 * m68k-tdep.c (m68k_gdbarch_init): Update.
1433 * i386-tdep.c (i386_gdbarch_init): Update.
1434 * frv-tdep.c (frv_gdbarch_init): Update.
1435 * sh-tdep.c (sh_gdbarch_init): Update.
1436 * v850-tdep.c (v850_gdbarch_init): Update.
1437 * sparc-tdep.c (sparc_gdbarch_init): Update.
1438 * mips-tdep.c (mips_gdbarch_init): Update.
1439 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1440 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1442
1443 * cris-tdep.c (cris_frame_args_address): Delete function.
1444 (cris_frame_locals_address): Delete function.
1445 (cris_gdbarch_init): Do not set frame_args_address or
1446 frame_locals_address.
1447
f7c1e0f3
MS
14482002-11-22 Michael Snyder <msnyder@redhat.com>
1449
1450 * thread-db.c (thread_db_load): Tell the user what's going on
1451 if dlopen fails on libthread_db.
1452
03dac896
AS
14532002-11-23 Andreas Schwab <schwab@suse.de>
1454
1455 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1456 invariant return values.
1457
7a67d0fe
AS
14582002-11-22 Andreas Schwab <schwab@suse.de>
1459
1460 * valops.c (value_slice): Move declaration of `offset' to avoid
1461 warning.
1462
5633f842
CF
14632002-11-22 Christopher Faylor <cgf@redhat.com>
1464
1465 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1466 (struct so_stuff): Add end_addr field.
1467 (register_loaded_dll): Calculate and store end address of loaded dll.
1468 (solib_address): New function.
1469 (child_solib_loaded_library_pathname): Pass carefully constructed
1470 section info to safe_symbol_file_add rather than ignoring it.
1471 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1472 DLL is loaded.
1473 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1474 (child_create_inferior): Fix a compiler warning.
1475 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1476 (solib_address): Declare new function.
1477
d85fe7f7
AS
14782002-11-22 Andreas Schwab <schwab@suse.de>
1479
1480 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1481 and FPS registers.
1482
8308e54c
DJ
14832002-11-21 Daniel Jacobowitz <drow@mvista.com>
1484
1485 * maint.c (_initialize_maint_cmds): Fix typo. From
1486 Francesco Potorti` <pot@gnu.org>.
1487
8997bd5e
AC
14882002-11-21 Andrew Cagney <cagney@redhat.com>
1489
1490 * mips-tdep.c (mips_dump_tdep): Delete references to
1491 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1492 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1493 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1494 * printcmd.c (build_address_symbolic): Delete calls to
1495 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1496 (address_info): Ditto.
1497 Fix PR gdb/773.
1498
4e87b832
KD
14992002-11-19 Klee Dienes <kdienes@apple.com>
1500 Adam Fedor <fedor@gnu.org>
1501
1502 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1503 the ability to explicitly specify the quote characters and word
1504 break characters; if NULL is specified for either, use the old
1505 behavior of using the characters used by the completer.
1506 (skip_chars): New function. Convenience wrapper around
1507 skip_quoted_chars to provide the original skip_chars behavior.
1508 * completer.h (skip_quoted_chars): Add prototype.
1509
9ba8d803
AC
15102002-11-19 Andrew Cagney <ac131313@redhat.com>
1511
1512 Problems reported by Paul Eggert.
1513 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1514
0a595803
AS
15152002-11-19 Andreas Schwab <schwab@suse.de>
1516
1517 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1518 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1519 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1520 (m68k_linux_frame_saved_pc): Move to ...
1521 * m68klinux-tdep.c: ... here. New file.
1522 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1523 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1524
e8afa4d7
AF
15252002-11-19 Adam Fedor <fedor@gnu.org>
1526
1527 * objc-exp.y: Revert to old skip_quoted usage.
1528
a76c9d72
AF
15292002-11-19 Adam Fedor <fedor@gnu.org>
1530
1531 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1532 (objc_lang_h): Define.
1533 (YYFILES): Add objc-exp.tab.c.
1534 (local-maintainer-clean): Remove objc-exp.tab.c.
1535 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1536
fd0e9d45
PM
15372002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1538
1539 * p-exp.y (typecast rule): Add automatic dereference of
1540 pascal classes if needed.
1541 (THIS): Set current_type.
1542 Automatically dereference pascal classes.
1543 (typebase rule): Add ^typebase recognition.
1544
82eeeb94
AF
15452002-11-18 Adam Fedor <fedor@gnu.org>
1546
1547 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1548 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1549 (op_name): Handle OP_OBJC_SELF.
1550 * Makefile.in (expprint.o): Add additional depends.
1551
646df18d
AF
15522002-11-18 Adam Fedor <fedor@gnu.org>
1553
1554 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1555 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1556 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1557 * objc-exp.y: Likewise.
1558
379b85df
AF
15592002-11-18 Adam Fedor <fedor@gnu.org>
1560
1561 * gdb/parser-defs.h: (struct objc_class_str): New structure
1562 for parsing ObjC classes.
1563
85cf597a
AC
15642002-11-18 Andrew Cagney <ac131313@redhat.com>
1565
1566 * stack.c (frame_relative_level): Copy function from here ...
1567 * frame.c (frame_relative_level): ...to here.
1568
5a203e44
AC
15692002-11-18 Andrew Cagney <ac131313@redhat.com>
1570
1571 * frame.h (enum frame_type): Define.
1572 (get_frame_type): Declare.
1573 (struct frame_info): Add field `type'. Delete field
1574 signal_handler_caller.
1575 (deprecated_set_frame_signal_handler_caller): Declare.
1576 * frame.c (get_frame_type): New function.
1577 (deprecated_set_frame_type): New function.
1578 (create_new_frame): Set the frame's type.
1579 (get_prev_frame): Similar.
1580 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1581 * s390-tdep.c: Ditto.
1582 * m68klinux-nat.c: Ditto.
1583 * ns32k-tdep.c: Ditto.
1584 * x86-64-linux-tdep.c: Ditto.
1585 * vax-tdep.c: Ditto.
1586 * rs6000-tdep.c: Ditto.
1587 * ppc-linux-tdep.c: Ditto.
1588 * i386-interix-tdep.c: Ditto.
1589 * mips-tdep.c: Ditto.
1590 * m68k-tdep.c: Ditto.
1591 * hppa-tdep.c: Ditto.
1592 * ia64-tdep.c: Ditto.
1593 * cris-tdep.c: Ditto.
1594 * arm-tdep.c: Ditto.
1595 * alpha-tdep.c: Ditto.
1596 * i386-tdep.c: Ditto.
1597 * stack.c: Ditto.
1598 * ada-lang.c: Ditto.
1599 * blockframe.c: Update.
1600 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1601 deprecated_set_frame_type instead of signal_handler_caller.
1602 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1603 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1604 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1605
bf4ae8b2
KD
16062002-11-18 Klee Dienes <kdienes@apple.com>
1607
1608 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1609
a672ef13
KD
16102002-11-18 Klee Dienes <kdienes@apple.com>
1611
1612 * buildsym.c (pop_context): Add comment.
1613
0c5e171a
KD
16142002-11-18 Klee Dienes <kdienes@apple.com>
1615
1616 * buildsym.h (pop_context): Convert to function, defined in
1617 buildsym.c.
1618 * buildsym.c: Include gdb_assert.h.
1619 (pop_context): Implement as C function. Add check for stack
1620 underflow.
1621 * dbxread.c (process_one_symbol): Complain and stop processing
1622 that symbol if we are already at the top of the context stack for
1623 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1624 when processing N_RBRAC.
1625
8a1f4c4c
DJ
16262002-11-16 Daniel Jacobowitz <drow@mvista.com>
1627
1628 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1629 define.
1630 (struct target_waitstatus): Add opaque definition.
1631 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1632 * exec.c (init_exec_ops): Likewise.
1633 * fork-child.c (clone_and_follow_inferior): Remove.
1634 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1635 * inferior.h (clone_and_follow_inferior): Remove prototype.
1636 * infrun.c (follow_fork_mode_both): Remove.
1637 (follow_fork_mode_kind_names): Remove commented out "both".
1638 (follow_inferior_fork): Remove follow_fork_mode_both support.
1639 * inftarg.c (child_clone_and_follow_inferior): Remove.
1640 (child_post_follow_inferior_by_clone): Remove.
1641 (init_child_ops): Don't set to_clone_and_follow_inferior
1642 or to_post_follow_inferior_by_clone.
1643 * target.c (default_clone_and_follow_inferior): Remove.
1644 (cleanup_target): Don't set to_clone_and_follow_inferior
1645 or to_post_follow_inferior_by_clone.
1646 (find_default_clone_and_follow_inferior): Remove.
1647 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1648 (debug_to_clone_and_follow_inferior): Remove.
1649 (debug_to_post_follow_inferior_by_clone): Remove.
1650 (setup_target_debug): Don't set to_clone_and_follow_inferior
1651 or to_post_follow_inferior_by_clone.
1652 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1653 and to_post_follow_inferior_by_clone.
1654 (child_clone_and_follow_inferior): Remove prototype.
1655 (child_post_follow_inferior_by_clone): Remove prototype.
1656 (target_clone_and_follow_inferior): Remove macro.
1657 (target_post_follow_inferior_by_clone): Remove macro.
1658 (find_default_clone_and_follow_inferior): Remove prototype.
1659
47932f85
DJ
16602002-11-16 Daniel Jacobowitz <drow@mvista.com>
1661
1662 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1663 inferior_has_vforked, and inferior_has_execd instead of
1664 target_has_forked, target_has_vforked, and target_has_execd.
1665 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1666 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1667 (CHILD_WAIT): Define.
1668 (child_wait): Add prototype.
1669 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1670 Add prototype.
1671 (hpux_has_vforked): Likewise, from child_has_vforked.
1672 (hpux_has_execd): Likewise, from child_has_execd.
1673 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1674 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1675 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1676 and hpux_has_syscall_event instead of the target hooks.
1677 * infrun.c (inferior_has_forked, inferior_has_vforked)
1678 (inferior_has_execd): New functions.
1679 * inftarg.c (not_same_real_pid): Remove.
1680 (child_wait): Remove references to not_same_real_pid,
1681 target_has_forked, target_has_vforked, target_has_execd,
1682 and target_has_syscall_event.
1683 (child_has_forked, child_has_vforked, child_has_execd)
1684 (child_has_syscall_event): Remove.
1685 (init_child_ops): Remove references to child_has_forked,
1686 child_has_vforked, child_has_execd, and child_has_syscall_event.
1687 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1688 (hpux_has_vforked): Likewise, from child_has_vforked.
1689 (hpux_has_execd): Likewise, from child_has_execd.
1690 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1691 * target.c (cleanup_target): Remove references to
1692 to_has_forked, to_has_vforked, to_has_execd, and
1693 to_has_syscall_event.
1694 (update_current_target): Likewise.
1695 (setup_target_debug): Likewise.
1696 (debug_to_has_forked): Remove.
1697 (debug_to_has_vforked): Remove.
1698 (debug_to_has_execd): Remove.
1699 (debug_to_has_syscall_event): Remove.
1700 * target.h (struct target_ops): Remove to_has_forked.
1701 to_has_vforked, to_has_execd, and to_has_syscall_event.
1702 (child_has_forked, child_has_vforked, child_has_execd)
1703 (child_has_syscall_event): Remove prototypes.
1704 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1705 prototypes.
1706 (target_has_forked, target_has_vforked, target_has_execd)
1707 (target_has_syscall_event): Remove macros.
1708
4088142a
DJ
17092002-11-16 Daniel Jacobowitz <drow@mvista.com>
1710
1711 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1712 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1713 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1714 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1715 * target.c (cleanup_target): Remove reference to
1716 to_can_follow_vfork_prior_to_exec.
1717 (update_current_target): Likewise.
1718 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1719 (setup_target_debug): Remove reference to
1720 to_can_follow_vfork_prior_to_exec.
1721 * target.h (struct target_ops): Remove
1722 to_can_follow_vfork_prior_to_exec.
1723 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1724 (target_can_follow_vfork_prior_to_exec): Remove definition.
1725 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1726 define.
1727 * infrun.c (follow_vfork_when_exec): Remove.
1728 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1729 (follow_exec): Likewise.
1730 (handle_inferior_event): Likewise.
1731 (keep_going): Likewise.
1732
18cde8d5
AC
17332002-11-15 Andrew Cagney <cagney@redhat.com>
1734
1735 * frame.c (generic_unwind_get_saved_register): Make static.
1736 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1737 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1738 defaults to generic_unwind_get_saved_register.
1739 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1740 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1741 * frv-tdep.c (frv_gdbarch_init): Ditto.
1742 * i386-tdep.c (i386_gdbarch_init): Ditto.
1743 * s390-tdep.c (s390_gdbarch_init): Ditto.
1744 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1745 * v850-tdep.c (v850_gdbarch_init): Ditto.
1746 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1747 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1748 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1749
a6b063af
AC
17502002-11-15 Andrew Cagney <cagney@redhat.com>
1751
1752 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1753 i386-tdep.c.
1754
f407986f
AC
17552002-11-15 Andrew Cagney <cagney@redhat.com>
1756
1757 * frame.h (sigtramp_saved_pc): Delete declaration.
1758 * blockframe.c (sigtramp_saved_pc): Delete function.
1759 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1760 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1761 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1762 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1763
f18c5a73
AC
17642002-11-15 Andrew Cagney <ac131313@redhat.com>
1765
1766 * frame.c (frame_pc_unwind): New function.
1767 (frame_saved_regs_pc_unwind): New function.
1768 (frame_register_unwind): Pass unwind_cache instead of
1769 register_unwind_cache.
1770 (set_unwind_by_pc): Add unwind_pc parameter, set.
1771 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1772 (get_prev_frame): Ditto.
1773 * frame.h (frame_pc_unwind_ftype): Declare.
1774 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1775 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1776 (frame_pc_unwind): Declare.
1777 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1778 (struct dummy_frame): Add comment mentioning that values are for
1779 previous frame.
1780 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1781 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1782 (generic_file_frame_chain_valid): Ditto.
1783 * stack.c (frame_info): Ditto.
1784
d9285969 17852002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1786
1787 * linespec.c (locate_first_half): New function.
1788 (decode_line_1): Move code into locate_first_half.
1789
d741b867
AC
17902002-11-15 Andrew Cagney <ac131313@redhat.com>
1791
1792 * complaints.h: Add comment explaining how to eliminate a
1793 deprecated_complain call.
24382c5c 1794 * complaints.h: Fix spelling errors.
d741b867 1795
82d03c99
DC
17962002-11-15 David Carlton <carlton@math.stanford.edu>
1797
1798 * printcmd.c: Remove #include "disasm.h".
1799
c97eb5d9
AC
18002002-11-14 Andrew Cagney <ac131313@redhat.com>
1801
1802 * frame.h: Move the most relevant interface functions to the start
1803 of the file.
1804
524d7c18
AC
18052002-11-14 Andrew Cagney <ac131313@redhat.com>
1806
1807 * regcache.h (deprecated_registers): Rename registers.
1808 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1809 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1810 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1811 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1812 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1813 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1814 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1815 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1816 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1817 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1818 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1819 * v850ice.c: Update.
1820
6411e720
AC
1821Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1822
1823 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1824 NULL buffer.
1825
73937e03
AC
18262002-11-13 Andrew Cagney <cagney@redhat.com>
1827
1828 * regcache.h (deprecated_read_register_bytes): Rename
1829 read_register_bytes.
1830 (deprecated_write_register_bytes): Rename write_register_bytes.
1831 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1832 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1833 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1834 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1835 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1836 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1837 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1838 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1839 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1840 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1841 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1842 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1843 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1844 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1845
fb0cd46e
JB
18462002-11-13 Jim Blandy <jimb@redhat.com>
1847
1848 * findvar.c (read_var_value): Doc fix.
1849
2d28509a
AC
18502002-11-13 Andrew Cagney <cagney@redhat.com>
1851
1852 * regcache.c (struct regcache): Replace passthough_p with
1853 readonly_p.
1854 (regcache_xmalloc): Initialize readonly_p.
1855 (build_regcache): Initialize readonly_p.
1856 (regcache_save): New function.
1857 (regcache_restore): New function.
1858 (regcache_cpy): Re-implement using regcache_save and
1859 regcache_restore.
1860 (regcache_raw_read): Update.
1861 (regcache_cooked_read): When a read-only cache, checked for cached
1862 pseudo register values.
1863 (regcache_raw_write): Assert that the cache is not read-only.
1864 Remove code handling a non-passthrough cache.
1865 * regcache.h (regcache_save): Declare.
1866 (regcache_restore): Declare.
1867
067df2e5
AC
18682002-11-13 Andrew Cagney <cagney@redhat.com>
1869
1870 * regcache.c (struct regcache_descr): Add fields
1871 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1872 (init_legacy_regcache_descr): Compute the size of a cooked
1873 register cache and then assign that to sizeof_raw_registers. Set
1874 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1875 (init_legacy_regcache_descr): Ditto.
1876
51b1fe4e
AC
18772002-11-13 Andrew Cagney <cagney@redhat.com>
1878
1879 * regcache.c (register_buffer): Move to near start of file, update
1880 description.
1881 (regcache_raw_read): Use.
1882 (regcache_raw_write): Use.
1883 (struct regcache): Rename raw_registers to registers and
1884 raw_register_valid_p to register_valid_p.
1885 (regcache_xmalloc): Update.
1886 (regcache_xfree): Update.
1887 (register_buffer): Update.
1888 (regcache_cpy): Update.
1889 (regcache_cpy_no_passthrough): Update.
1890 (regcache_valid_p): Update.
1891 (deprecated_grub_regcache_for_registers): Update.
1892 (deprecated_grub_regcache_for_register_valid): Update.
1893 (set_register_cached): Update.
1894 (regcache_raw_write): Update.
1895
80b4c677
PM
18962002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1897
1898 * p-exp.y (name_not_typename): Use copy_name to
1899 set current_type variable for fields of THIS.
1900
0f3fafde
DJ
19012002-11-12 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1904 * monitor.c (init_base_monitor_ops): Likewise.
1905 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1906 * remote-array.c (init_array_ops): Likewise.
1907 * remote-e7000.c (init_e7000_ops): Likewise.
1908 * remote-es.c (init_es1800_ops): Likewise.
1909 (init_es1800_child_ops): Likewise.
1910 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1911 * remote-sim.c (init_gdbsim_ops): Likewise.
1912 * remote-st.c (init_st2000_ops): Likewise.
1913 * sol-thread.c (init_sol_core_ops): Likewise.
1914 (init_sol_thread_ops): Likewise.
1915 * v850ice.c (init_850ice_ops): Likewise.
1916 * win32-nat.c (init_child_ops): Likewise.
1917 * wince.c (init_child_ops): Likewise.
1918
82c0260e
AC
19192002-11-12 Andrew Cagney <ac131313@redhat.com>
1920
1921 * utils.c (gdb_realpath): Make rp a constant pointer.
1922
70d35819
AC
19232002-11-12 Andrew Cagney <ac131313@redhat.com>
1924
1925 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1926 a constant buffer; cannonicalize_file_name(); realpath() with a
1927 pathconf() defined buffer, xstrdup().
1928
9835a8b0
AC
19292002-11-12 Andrew Cagney <ac131313@redhat.com>
1930
1931 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1932 to hang2.C; hang3.c to hang3.C.
1933
3f47be5c
EZ
19342002-11-11 Elena Zannoni <ezannoni@redhat.com>
1935
1936 * findvar.c (read_var_value): Reenable TLS code.
1937
19382002-11-11 Elena Zannoni <ezannoni@redhat.com>
1939 Jim Blandy <jimb@redhat.com>
1940
1941 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1942 * target.c (update_current_target): Add
1943 to_get_thread_local_address.
1944 * target.h (to_get_thread_local_address): Export.
1945 (target_get_thread_local_address): Define.
1946 (target_get_thread_local_address_p): Define.
1947 * thread-db.c: Include solib-svr4.h.
1948 (td_thr_tls_get_addr_p): Define.
1949 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1950 (thread_db_get_thread_local_address): New function.
1951 (init_thread_db_ops): Initialize to_get_thread_local_address.
1952 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1953 * configure: Regenerate.
1954 * config.in: Regenerate.
1955
636b1a6d
DC
19562002-11-11 David Carlton <carlton@math.stanford.edu>
1957
1958 * linespec.c (set_flags): New function.
1959 (decode_line_1): Move code into set_flags.
1960
44fe14ab
DC
19612002-11-11 David Carlton <carlton@math.stanford.edu>
1962
1963 * linespec.c (decode_line_1): Move chunks of code to separate
1964 functions.
1965 (initialize_defaults): New function.
1966 (decode_indirect): New function.
1967
e6f181f5
AC
19682002-11-11 Andrew Cagney <ac131313@redhat.com>
1969
8971b011
AC
1970 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1971 instead of void_code_ptr.
1972 (sigtramp_saved_pc): Ditto.
1973
e6f181f5
AC
1974 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1975 i386_fp_regnum_p.
1976
01ad7f36
DJ
19772002-11-10 Daniel Jacobowitz <drow@mvista.com>
1978
1979 * gdbtypes.h (struct main_type): Move artificial flag out of
1980 loc. New member of ``struct field'' named static_kind. Reduce
1981 overloaded meaning of bitsize.
1982 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1983 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1984 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1985
1986 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1987 new fields.
1988 (template_to_fixed_record_type, template_to_static_fixed_type)
1989 (to_record_with_fixed_variant_part): Likewise.
1990 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1991 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1992 * dwarfread.c (struct_type, enum_type): Likewise.
1993 * hpread.c (hpread_read_enum_type)
1994 (hpread_read_function_type, hpread_read_doc_function_type)
1995 (hpread_read_struct_type): Likewise.
1996 * mdebugread.c (parse_symbol): Likewise.
1997
bf1e52be
AC
19982002-11-10 Andrew Cagney <ac131313@redhat.com>
1999
2000 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2001 * stack.c (print_frame_info_base): Update.
2002 (print_frame_info_base, frame_info): Update.
2003 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2004 (sparc_frame_saved_pc): Update.
2005 * ada-lang.c (find_printable_frame): Update.
2006 * breakpoint.c (deprecated_frame_in_dummy): Update.
2007
ce556f85
MK
20082002-11-09 Mark Kettenis <kettenis@gnu.org>
2009
2010 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2011 defined.
2012 (regmap): Extend to cover all registers.
2013 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2014 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2015 definitions.
2016 (fetch_register, sore_register): Simplify.
2017 (old_fetch_inferior_registers, old_store_inferior_registers):
2018 Remove functions.
2019 (cannot_fetch_register, cannot_store_register): Change
2020 implementation to use regmap array to decide which registers
2021 cannot be fetched/stored. This removes $orig_eax from the
2022 registers that cannot be fetched/stored.
2023 (fetch_inferior_registers): Call fetch_register directly instead
2024 of calling old_fetch_inferior_registers.
2025 (store_inferior_registers): Call store_register directly instead
2026 of calling old_store_inferior_registers.
2027 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2028 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2029 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2030
932bb524
KD
20312002-11-09 Klee Dienes <kdienes@apple.com>
2032
2033 * i387-tdep.c (i387_supply_register): When called with NULL as a
2034 buffer, mark the register as not provided (to mirror the behavior
2035 of supply_register).
2036 (i387_supply_fxsave): Ditto.
2037 (i387_supply_fsave): Ditto (inherits the behavior from
2038 i387_supply_register).
2039
ebe68b27
KD
20402002-11-09 Klee Dienes <kdienes@apple.com>
2041
2042 * blockframe.c (sigtramp_saved_pc): Use
2043 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2044 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2045 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2046
15220c65
AC
20472002-11-09 Andrew Cagney <ac131313@redhat.com>
2048
2049 * frame.c (get_prev_frame): Test prev_p to identify a previously
2050 unwound frame. Initialize prev_p.
2051 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2052 comment.
2053
95adb866
AC
20542002-11-09 Andrew Cagney <ac131313@redhat.com>
2055
2056 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2057 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2058 more comments. Zap dead code.
2059
e71ecd70
MK
20602002-11-09 Mark Kettenis <kettenis@gnu.org>
2061
2062 * infcmd.c (print_vector_info, print_float_info): Move code that
2063 checks whether the target has any registers and whether there is a
2064 selected frame up, such that it is also used if a target provides
2065 multi-arch definitions of these functions.
2066
c525330d
AC
20672002-11-08 Andrew Cagney <ac131313@redhat.com>
2068
72bdd927
AC
2069 * Makefile.in (DESTDIR): Define.
2070 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2071 prefix.
2072
c525330d
AC
2073 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2074 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2075
38c968cf
AC
20762002-11-08 Andrew Cagney <ac131313@redhat.com>
2077
2078 * i386-linux-tdep.c: Include "reggroups.h".
2079 (i386_linux_register_reggroup_p): New function.
2080 (i386_linux_init_abi): Set register_reggroup_p to
2081 i386_linux_register_reggroup_p.
2082 * i386-tdep.h (i386_register_reggroup_p): Declare.
2083 * i386-tdep.c: Include "reggroups.h".
2084 (i386_init_reggroups): New function.
2085 (i386_add_reggroups): New function.
2086 (i386_register_reggroup_p): New function.
2087 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2088 (_initialize_i386_tdep): Call i386_init_reggroups.
2089 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2090 specific reggroups.
2091
19e33363
MK
20922002-11-09 Mark Kettenis <kettenis@gnu.org>
2093
371a6e84
MK
2094 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2095 request that's available in *BSD.
2096
94ba925a
MK
2097 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2098
19e33363
MK
2099 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2100 FDOFF_REGNUM.
2101
8779790c
AC
21022002-11-08 Andrew Cagney <ac131313@redhat.com>
2103
2104 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2105 * dummy-frame.c (find_dummy_frame): Rename
2106 generic_find_dummy_frame, make static. Return the dummy frame
2107 instead of the regcache.
2108 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2109 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2110 (dummy_frame_register_unwind): Rename
2111 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2112 * dummy-frame.h (dummy_frame_register_unwind): Rename
2113 generic_call_dummy_register_unwind.
2114
8674b74f
MK
21152002-11-08 Mark Kettenis <kettenis@gnu.org>
2116
2117 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2118 except the inclusion of "i386/tm-i386.h", to...
2119 * config/i386/nm-i386v42mp.h: ...here.
2120 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2121
4c1e7e9d
AC
21222002-11-08 Andrew Cagney <ac131313@redhat.com>
2123
2124 * Makefile.in (frame.o): Update dependencies.
2125 * blockframe.c (current_frame, frame_obstack_alloc)
2126 (frame_saved_regs_zalloc, get_current_frame)
2127 (set_current_frame, create_new_frame)
2128 (set_unwind_by_pc, get_next_frame)
2129 (flush_cached_frames, reinit_frame_cache)
2130 (frame_saved_regs_register_unwind)
2131 (deprecated_generic_get_saved_register)
2132 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2133 (_initialize_blockframe): Move frame code from here...
2134 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2135 "annotate.h" and "dummy-frame.h".
2136 (_initialize_frame): New function.
2137
921e78cf
JB
21382002-11-08 Jim Blandy <jimb@redhat.com>
2139
2140 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2141 when we finish a function a context.
2142 * buildsym.h (outermost_context_p): New macro.
2143 (Bug analyzed by David Edelsohn.)
2144
9c1412c1
AC
21452002-11-08 Andrew Cagney <ac131313@redhat.com>
2146
2147 * blockframe.c: Include "dummy-frame.h".
2148 (struct dummy_frame, dummy_frame_stack)
2149 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2150 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2151 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2152 (generic_save_call_dummy_addr, generic_pop_current_frame)
2153 (generic_pop_dummy_frame, generic_fix_call_dummy)
2154 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2155 dummy frame code from here...
2156 * dummy-frame.c: ...to here. New file.
2157 * dummy-frame.h: New file.
2158 (generic_call_dummy_register_unwind): Declare.
2159 (generic_find_dummy_frame): Declare.
2160 * Makefile.in (SFILES): Add dummy-frame.c.
2161 (dummy-frame.o): Specify dependencies.
2162 (dummy_frame_h): Define.
2163 (COMMON_OBS): Add dummy-frame.o.
2164 (blockframe.o): Update dependencies.
2165
208d8187
JB
21662002-11-08 Jim Blandy <jimb@redhat.com>
2167
2168 * dwarf2read.c (read_func_scope): Restore local_symbols and
2169 param_symbols after we finish the function context. (Based on a
2170 patch from David Edelsohn.)
2171
413dad4d
DC
21722002-11-08 David Carlton <carlton@math.stanford.edu>
2173
2174 * linespec.c (symbol_found): New function.
2175 (minsym_found): New function.
2176 (decode_line_1): Separate out some code into separate functions.
2177
5512c44a
JB
21782002-11-08 Joel Brobecker <brobecker@gnat.com>
2179
2180 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2181 the benefit of the interix target.
2182 * i386-tdep.h (i386_frameless_signal_p): Declare.
2183
1b33ef47
AC
21842002-11-08 Andrew Cagney <ac131313@redhat.com>
2185
2186 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2187 declaration that snuck in from change below.
2188
23a34459
AC
21892002-11-06 Andrew Cagney <cagney@redhat.com>
2190
2191 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2192 all callers.
2193 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2194 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2195 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2196 (i386_mxcsr_regnum_p): new function. Use instead of
2197 MXCSR_REGNUM_P.
2198 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2199 (i386_sse_regnum_p): Declare.
2200 (i386_mxcsr_regnum_p): Declare.
2201 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2202 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2203 (IS_FP_REGNUM): Update definition.
2204 (IS_FPU_CTRL_REGNUM): Update definition..
2205 (IS_SSE_REGNUM): Update definition..
2206 * i386v-nat.c (register_u_addr): Update.
2207 * go32-nat.c (fetch_register): Update.
2208 (store_register): Update.
2209
d709c020
JB
22102002-11-07 Joel Brobecker <brobecker@gnat.com>
2211
2212 Preparation work to convert the hppa targets to multiarch partial.
2213
2214 * hppa-tdep.c: Add new functions replacing macro bodies from
2215 config/pa/tm-hppa.h. These function will be used to initialize
2216 the gdbarch structure. Import some comments from tm-hppa.h,
2217 and place them where appropriate, to avoid loosing them when
2218 we cleanup this file.
2219 (hppa_reg_struct_has_addr): New function.
2220 (hppa_inner_than): New function.
2221 (hppa_stack_align): New function.
2222 (hppa_pc_requires_run_before_use): New function.
2223 (hppa_instruction_nullified): New function.
2224 (hppa_register_byte): New function.
2225 (hppa_register_virtual_type): New function.
2226 (hppa_store_struct_return): New function.
2227 (hppa_cannot_store_register): New function.
2228 (hppa_frame_args_address): New function.
2229 (hppa_frame_locals_address): New function.
2230 (hppa_smash_text_address): New function.
2231 (hppa_coerce_float_to_double): New function. Requires the inclusion
2232 of "language.h".
2233
2234 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2235
2236 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2237 gdbarch-eligible macro to a call to the new associated function
2238 created in hppa-tdep.c.
2239 (INNER_THAN): Likewise.
2240 (STACK_ALIGN): Likewise.
2241 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2242 (INSTRUCTION_NULLIFIED): Likewise.
2243 (REGISTER_BYTE): Likewise.
2244 (REGISTER_VIRTUAL_TYPE): Likewise.
2245 (STORE_STRUCT_RETURN): Likewise.
2246 (CANNOT_STORE_REGISTER): Likewise.
2247 (FRAME_ARGS_ADDRESS): Likewise.
2248 (FRAME_LOCALS_ADDRESS): Likewise.
2249 (SMASH_TEXT_ADDRESS): Likewise.
2250 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2251 (ABOUT_TO_RETURN): Delete, as no longer used.
2252
83c31e7d
FN
22532002-11-07 Fernando Nasser <fnasser@redhat.com>
2254
2255 * printcmd.c (disassemble_command): Remove obsolete function.
2256 (_initialize_printcmd): Do not create disassemble command here.
2257 * cli/cli-cmds.c (disassemble_command): New function. Implements
2258 disassemble command.
2259 (init_cli_cmds): Create disassemble command here instead.
2260
0ec30a36
AC
22612002-11-07 Andrew Cagney <ac131313@redhat.com>
2262
2263 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2264
e600bd34
AC
22652002-11-07 Andrew Cagney <ac131313@redhat.com>
2266
2267 * regcache.h (regcache_cooked_read_using_offset_hack)
2268 (regcache_cooked_write_using_offset_hack): Delete declarations.
2269 (register_changed): Delete declaration.
2270 * regcache.c (regcache_cooked_read_using_offset_hack)
2271 (regcache_cooked_write_using_offset_hack): Delete functions.
2272 (cooked_xfer_using_offset_hack): Delete function.
2273 (register_changed): Delete function.
2274
568f8739
JB
22752002-11-07 Jim Blandy <jimb@redhat.com>
2276
2277 * macroscope.c: #include "complaints.h".
2278 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2279 but not in the macro table.
2280 * Makefile.in (macroscope.o): Record dependency.
2281
b0718b7b
JB
22822002-11-07 Joel Brobecker <brobecker@gnat.com>
2283
2284 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2285
2b9e5f3f
AC
22862002-11-07 Andrew Cagney <ac131313@redhat.com>
2287
2288 * regcache.c (deprecated_registers_fetched): Update.
2289 * regcache.h (deprecated_registers_fetched): Rename
2290 registers_fetched.
2291 * remote-vxsparc.c (vx_read_register): Update.
2292 * remote-vxmips.c (vx_read_register): Update.
2293 * remote-vx68.c (vx_read_register): Update.
2294 * irix5-nat.c (fetch_core_registers): Update.
2295 * mipsm3-nat.c (fetch_inferior_registers): Update.
2296 * sun3-nat.c (fetch_inferior_registers): Update.
2297 * symm-nat.c (fetch_inferior_registers): Update.
2298 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2299 (fetch_core_registers): Update.
2300 (fetch_kcore_registers): Update.
2301 * mips-nat.c (fetch_inferior_registers): Update.
2302 * corelow.c (get_core_registers): Update.
2303 * a68v-nat.c (fetch_inferior_registers): Update.
2304
e6e68f1f
JB
23052002-11-06 Joel Brobecker <brobecker@gnat.com>
2306
2307 Put in place the framework necessary for multiarching the hppa targets.
2308 * hppa-tdep.c (hppa_gdbarch_init): New function.
2309 (hppa_dump_tdep): New function.
2310 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2311 tdep structure dumper.
2312 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2313 until the multi-arching conversion has partially been completed.
2314
492254e9
AC
23152002-11-06 Andrew Cagney <ac131313@redhat.com>
2316
2317 * valops.c (value_assign): Merge lval_register case into
2318 lval_reg_frame_relative. Use frame_register and
2319 regcache_cooked_write instead of get_saved_register and
2320 write_register_bytes. After flushing the register cache, try to
2321 re-select the selected frame.
2322
8262ee23
AC
23232002-11-06 Andrew Cagney <ac131313@redhat.com>
2324
2325 * regcache.h (deprecated_register_valid): Rename register_valid.
2326 * regcache.c: Update.
2327 * ia64-aix-nat.c: Update.
2328 * i386gnu-nat.c: Update.
2329 * alpha-nat.c: Update.
2330 * sparc-nat.c: Update.
2331 * lynx-nat.c: Update.
2332 * remote-mips.c: Update.
2333
4facf7e8
JB
23342002-11-06 Joel Brobecker <brobecker@gnat.com>
2335
2336 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2337 to end of file, to be more consistent with the pratice followed
2338 by other targets.
2339
f9418c0f
AC
23402002-11-06 Andrew Cagney <ac131313@redhat.com>
2341
2342 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2343 (print_float_info): Print registers in float_reggroup.
2344 (print_vector_info): Print registers in vector_reggroup.
2345 (default_print_registers_info): When all, print registers in
2346 all_reggroup. Otherwize, print registers in general_reggroup.
2347 (registers_info): Rewrite. Add support for register groups.
2348 Eliminate a goto.
2349
3fe235a7
EZ
23502002-11-06 Elena Zannoni <ezannoni@redhat.com>
2351
2352 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2353 ages.
2354 (symtab_symbol_info): Remove eons old ifdeffed out code.
2355 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2356 command.
2357
ef944135
TR
23582002-11-06 Theodore A. Roth <troth@openavr.org>
2359
2360 * c-exp.y: Add missing semi-colons.
2361 * f-exp.y: Add missing semi-colons.
2362 * m2-exp.y: Add missing semi-colons.
2363 * p-exp.y: Add missing semi-colons.
2364 Add empty action to start rule to avoid a type clash error when
2365 building with bison >= 1.50.
2366
f8302a57
JB
23672002-11-06 Jim Blandy <jimb@redhat.com>
2368
2369 * macrotab.h (struct macro_source_file): Doc fix.
2370
6e382aa3
JJ
23712002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2372
2373 * varobj.c (child_exists, cplus_number_of_children): Change
2374 STREQ macro references to strcmp.
2375 (cplus_name_of_child): Change code to handle the fact that
2376 fields are not necessarily contiguous with regards to their
2377 access control. This is a fix for PR gdb/792.
2378
a216a322
AC
23792002-11-05 Andrew Cagney <ac131313@redhat.com>
2380
2381 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2382 * gdbarch.h, gdbarch.c: Regnerate.
2383 * frame.h (frame_register): Declare.
2384 * frame.c (frame_register): New function.
2385 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2386 GET_SAVED_REGISTER, otherwize call
2387 generic_unwind_get_saved_register.
2388 (frame_register_read): Use frame_register instead of
2389 get_saved_register.
2390
7d5b6fdd
EZ
23912002-11-05 Elena Zannoni <ezannoni@redhat.com>
2392
2393 From Jim Ingham <jingham@apple.com>:
2394 * event-top.c (gdb_disable_readline): New function.
2395 (_initialize_event_loop): Move comment.
2396
b7c64260
EZ
23972002-11-05 Elena Zannoni <ezannoni@redhat.com>
2398
2399 * event-loop.c (start_event_loop): Add comment.
2400 Update copyright.
2401
c2e1b8f2
AC
24022002-11-05 Andrew Cagney <ac131313@redhat.com>
2403
2404 * infcmd.c (default_print_registers_info): Do not call
2405 PRINT_REGISTER_HOOK.
2406
87647bb0
AC
24072002-11-05 Andrew Cagney <ac131313@redhat.com>
2408
2409 * sparc-tdep.c (sparc_print_register_hook): Make static.
2410 (sparc_print_registers_info): New function.
2411 (sparc_do_registers_info): New function.
2412 (sparclet_print_registers_info): New function.
2413 (sparclet_do_registers_info): New function.
2414 (do_sparc_print_registers_info): New function.
2415 (sparc_print_registers): New static function, clone of infcmd.c's
2416 default_print_registers_info.
2417 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2418 (sparclet_do_registers_info): Declare.
2419 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2420 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2421 Re-define.
2422 (sparc_do_registers_info): Declare.
2423 (PRINT_REGISTER_HOOK): Delete macro.
2424 (sparc_print_register_hook): Delete declaration.
2425
8155455b
DC
24262002-11-05 David Carlton <carlton@math.stanford.edu>
2427
2428 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2429 functions.
2430 (lookup_symbol_aux_local): New function.
2431 (lookup_symbol_aux_symtabs): New function.
2432 (lookup_symbol_aux_psymtabs): New function.
2433
29924310
DC
24342002-11-05 David Carlton <carlton@math.stanford.edu>
2435
2436 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2437 previous values of 'objfile' and 'block'.
2438
cc303028
PM
24392002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2440
2441 * values.c (value_change_enclosing_type): Set
2442 enclosing_type field correctly also for the case where
2443 more memory needs to be allocated.
2444
1d70089a
MK
24452002-11-03 Mark Kettenis <kettenis@gnu.org>
2446
f16a25ae
MK
2447 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2448 of puts_filtered.
2449
1d70089a
MK
2450 * i387-tdep.c (i387_print_float_info): Replace calls to
2451 register_read and deprecated_read_register_gen with calls to
2452 frame_register_read, and make the necessary adjustments to the
2453 surrounding code.
2454
7e20f3fb
AC
24552002-11-02 Andrew Cagney <ac131313@redhat.com>
2456
2457 * gdbarch.sh (register_reggroup_p): Allow default value.
2458 * gdbarch.h, gdbarch.c: Regenerate.
2459
192dbe33
AC
24602002-11-02 Andrew Cagney <ac131313@redhat.com>
2461
2462 * regcache.h: Add coment indicating replacements for deprecated
2463 functions.
2464
b59ff9d5
AC
24652002-11-02 Andrew Cagney <cagney@redhat.com>
2466
2467 * reggroups.h, reggroups.c: New files.
2468 * regcache.c: Include "reggroups.h".
2469 (enum regcache_dump_what): Add `regcache_dump_groups'.
2470 (regcache_dump): Contract size of the "Type" column. When
2471 specified, dump the register's groups.
2472 (maintenance_print_register_groups): New function.
2473 (_initialize_regcache): Add command `maint print register-groups'.
2474 * Makefile.in (COMMON_OBS): Add reggroups.o
2475 (SFILES): Add reggroups.c.
2476 (reggroups_h): Define.
2477 (regcache.o, gdbarch.o): Update dependencies.
2478 (reggroups.o): Specify dependencies.
2479 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2480 Add opaque declaration for `struct reggroup' in generated .h file.
2481 Include "reggroups.h" in generated .c file.
2482 gdbarch.h, gdbarch.c: Re-generate.
2483
4caf0990
AC
24842002-11-02 Andrew Cagney <cagney@redhat.com>
2485
2486 * regcache.h (deprecated_read_register_gen): Rename
2487 read_register_gen.
2488 (deprecated_write_register_gen): Rename write_register_gen.
2489 * i387-tdep.c: Update.
2490 * x86-64-linux-nat.c: Update
2491 * wince.c: Update.
2492 * thread-db.c: Update.
2493 * win32-nat.c: Update.
2494 * mips-tdep.c: Update.
2495 * d10v-tdep.c: Update.
2496 * cris-tdep.c: Update.
2497 * remote-sim.c: Update.
2498 * remote-rdi.c: Update.
2499 * remote-rdp.c: Update.
2500 * frame.c: Update.
2501 * target.c: Update.
2502 * blockframe.c: Update.
2503 * x86-64-tdep.c: Update.
2504 * xstormy16-tdep.c: Update.
2505 * sh-tdep.c: Update.
2506 * s390-tdep.c: Update.
2507 * rs6000-tdep.c: Update.
2508 * sparc-tdep.c: Update.
2509 * i386-tdep.c: Update.
2510 * dwarf2cfi.c: Update.
2511 * regcache.c: Update.
2512
7a7adcdf
JB
25132002-11-01 Joel Brobecker <brobecker@gnat.com>
2514
2515 New interix-specific files:
2516 * config/i386/nm-interix.h: New file.
2517 * config/i386/interix.mh: New file.
2518 * config/i386/interix.mt: New file.
2519 * i386-interix-nat.c: New file.
2520 * i386-interix-tdep.c: New file.
2521
bdcdd535
AC
25222002-11-01 Andrew Cagney <cagney@redhat.com>
2523
2524 * frame.h (deprecated_generic_get_saved_register): Rename
2525 generic_get_saved_register.
2526 * blockframe.c (deprecated_generic_get_saved_register): Update.
2527 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2528 (xstormy16_frame_saved_register): Update.
2529 * sh-tdep.c (sh_gdbarch_init): Update.
2530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2531 * ia64-tdep.c (ia64_get_saved_register): Update.
2532 * cris-tdep.c (cris_gdbarch_init): Update.
2533 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2534 * arm-tdep.c (arm_gdbarch_init): Update.
2535
2a4b7c45
DJ
25362002-10-31 Daniel Jacobowitz <drow@mvista.com>
2537
2538 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2539
ef17e74b
DJ
25402002-10-31 Daniel Jacobowitz <drow@mvista.com>
2541
2542 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2543 trampolines in sigaction.
2544
4904ba5b
AC
25452002-10-31 Andrew Cagney <cagney@redhat.com>
2546
2547 * h8300-tdep.c: Include "gdb_assert.h".
2548 (h8300_print_register): Add gdbarch, file and frame parameters.
2549 Use frame_read_unsigned_register to read the register's value.
2550 Use fprintf_filtered to display output.
2551 (h8300_print_registers_info): Replace h8300_do_registers_info.
2552 (h8300_gdbarch_init): Set print_registers_info.
2553
f908a0eb
AC
25542002-10-31 Andrew Cagney <cagney@redhat.com>
2555
2556 * frame.c (frame_read_unsigned_register): New function.
2557 (frame_read_signed_register): New function.
2558 * frame.h (frame_read_unsigned_register): Declare.
2559 (frame_read_signed_register): Declare.
2560
c5646e11
AC
25612002-10-31 Andrew Cagney <cagney@redhat.com>
2562
2563 * h8500-tdep.c (h8500_print_registers_info): New static function,
2564 clone of infcmd.c's default_print_registers_info.
2565 (h8500_do_registers_info): New funtion.
2566 (h8500_print_register_hook): Rename print_register_hook, make
2567 static.
2568
2569 * config/h8500/tm-h8500.h: Update copyright.
2570 (DEPRECATED_DO_REGISTERS_INFO): Define.
2571 (h8500_do_registers_info: Declare.
2572 (PRINT_REGISTER_HOOK): Delete macro.
2573 (print_register_hook): Delete function.
2574
0bdd672b
AC
25752002-10-31 Andrew Cagney <cagney@redhat.com>
2576
2577 * z8k-tdep.c (z8k_print_register_hook): Make static.
2578 (z8k_print_registers_info): New static function, clone of
2579 infcmd.c's default_print_registers_info.
2580 (z8k_do_registers_info): New function. Wrap
2581 z8k_print_registers_info.
2582 * config/z8k/tm-z8k.h: Update copyright.
2583 (PRINT_REGISTER_HOOK): Delete macro.
2584 (z8k_print_register_hook): Delete declaration.
2585 (DEPRECATED_DO_REGISTERS_INFO): Define.
2586 (z8k_do_registers_info): Declare.
2587
bf9c25dc
JB
25882002-10-30 Joel Brobecker <brobecker@gnat.com>
2589
2590 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2591 as this is already provided by value.h, and was actually causing
2592 a compilation error because of a conflict in parameter type
2593 declaration due to a missing const keyword.
2594 (low_text_segment_addres): Fix a compilation warning.
2595
2c665b51
DJ
25962002-10-29 Daniel Jacobowitz <drow@mvista.com>
2597
2598 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2599 registers without a name.
2600 (mips_linux_cannot_store_register): Don't store registers without
2601 a name.
2602
e70ea697
DC
26032002-10-28 David Carlton <carlton@math.stanford.edu>
2604
2605 * symtab.c (find_addr_symbol): Delete. (It was already commented
2606 out.)
2607 * symtab.h: Delete prototype for find_addr_symbol.
2608
903ad3a6
AC
26092002-10-26 Andrew Cagney <cagney@redhat.com>
2610
2611 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2612 DO_REGISTERS_INFO.
2613 gdbarch.h, gdbarch.c: Re-generate.
2614 * infcmd.c (default_print_registers_info): Update reference.
2615 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2616 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2617 * sh-tdep.c (sh_gdbarch_init): Ditto.
2618 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2619 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2620
ab91194c
MK
26212002-10-26 Mark Kettenis <kettenis@gnu.org>
2622
e3033f15
MK
2623 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2624 cfi_init_extra_frame_info.
2625 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2626 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2627
b83b026c
MK
2628 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2629 target where necessary. Add more comments and remove the ones
2630 that don't provide any useful information.
2631
267bf4bb
MK
2632 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2633 deprecated_read_register_dummy with
2634 frame_unwind_unsigned_register.
2635
751f1375
MK
2636 * i386-tdep.c (i386_extract_struct_value_address): Use
2637 regcache_raw_read_unsigned instead of
2638 regcache_cooked_read_unsigned since we know that the register
2639 we're reading isn't a pseudo register. Rename variable 'val' into
2640 the more descriptive 'addr'.
2641
26abbdc4
MK
2642 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2643 (x86_64_push_return_address): Add comment.
2644 (x86_64_pop_frame): Make static.
2645 (examine_argument): Clarify comment.
2646 (x86_64_skip_prologue): Make prolog_expact variable static.
2647
9f1549cc
MK
2648 * dwarf2cfi.c: Fix some formatting problems.
2649 (context_cpy, read_encoded_pointer): Clarify comments.
2650
ab91194c
MK
2651 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2652 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2653 i386 target back into x86_64_gdbarch_init. Add some comments and
2654 remove meaningless ones.
2655
72367fb4
AC
26562002-10-25 Andrew Cagney <cagney@redhat.com>
2657
2658 * complaints.h (struct deprecated_complaint): Rename `struct
2659 complaint'.
2660 * complaints.c (complain): Update.
2661 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2662 incorrect comment indicating that "symfile.h" was being included
2663 for the `struct complaint' definition.
2664 * remote-vx.c: Update.
2665 * objc-lang.c: Update.
2666 * xcoffread.c: Update.
2667 * hpread.c: Update.
2668 * mdebugread.c: Update.
2669 * stabsread.c: Update.
2670 * dwarf2read.c: Update.
2671 * dwarfread.c: Update.
2672 * elfread.c: Update.
2673 * coffread.c: Update.
2674 * stabsread.h: Update.
2675 * dbxread.c: Update.
2676 * buildsym.c: Update.
2677 * gdbtypes.c: Update.
2678 * macrotab.c: Update.
2679
1f2baacc
MK
26802002-10-25 Mark Kettenis <kettenis@gnu.org>
2681
0c1a73d6
MK
2682 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2683 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2684 (x86_64_init_abi): ...new function.
2685
6aee4d54 2686 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2687 * i386v-nat.c: Include "i386-tdep.h".
2688
8f9cbe01
AC
26892002-10-25 Andrew Cagney <cagney@redhat.com>
2690
5f11f355
AC
2691 * gdbtypes.c (address_space_name_to_int): Update.
2692 (address_space_int_to_name): Update.
2693 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2694 multi-arch predicate.
2695 (address_class_name_to_type_flags): Ditto.
2696 * gdbarch.h, gdbarch.c: Re-generate.
2697
8f9cbe01
AC
2698 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2699
e8d96a5d
MH
27002002-10-24 Martin M. Hunt <hunt@redhat.com>
2701
2702 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2703
fe39c653
EZ
27042002-10-24 Elena Zannoni <ezannoni@redhat.com>
2705
2706 * symtab.h (INIT_SAL): Delete macro.
2707 (init_sal): Export.
2708 * symtab.c (init_sal): New function.
2709
2710 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2711 to init_sal function call.
2712 (find_sal_from_funcs_and_line): Ditto.
2713 (all_sals_for_line): Ditto.
2714 * breakpoint.c (create_internal_breakpoint): Ditto.
2715 (create_fork_vfork_event_catchpoint): Ditto.
2716 (create_exec_event_catchpoint): Ditto.
2717 (parse_breakpoint_sals): Ditto.
2718 (watch_command_1): Ditto.
2719 (handle_gnu_4_16_catch_command): Ditto.
2720 (clear_command): Ditto.
2721 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2722 * infcmd.c (run_stack_dummy): Ditto.
2723 * infrun.c (process_event_stop_test): Ditto.
2724 (check_sigtramp2): Ditto.
2725 (step_over_function): Ditto.
2726 * linespec.c (decode_line_2): Ditto.
2727 (decode_line_1): Ditto.
2728 * source.c (line_info): Ditto.
2729 * symtab.c (find_pc_sect_line): Ditto.
2730
baed091b
ML
27312002-10-24 Michal Ludvig <mludvig@suse.cz>
2732
2733 * dwarf2cfi.c (struct context)
2734 (struct context_reg): Moved to dwarf2cfi.h
2735 (context_alloc, frame_state_alloc, context_cpy):
2736 Made extern instead of static, removed prototypes.
2737 * dwarf2cfi.h (struct context)
2738 (struct context_reg): New, moved from dwarf2cfi.c
2739 (context_alloc, frame_state_alloc, context_cpy):
2740 New prototypes.
2741 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2742 Changed from static to extern.
2743 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2744 (LINUX_SIGCONTEXT_FP_OFFSET)
2745 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2746 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2747 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2748 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2749 set_gdbarch_*() calls now use x86-64 specific functions
2750 instead of DWARF2 CFI ones.
2751 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2752 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2753 (x86_64_init_extra_frame_info): New prototypes.
2754
c38da1af
DC
27552002-10-23 David Carlton <carlton@math.stanford.edu>
2756
2757 * linespec.c: #include "parser-defs.h".
2758 Delete prototype for find_template_name_end.
2759 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2760
fb9b6b35
JJ
27612002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2762
2763 * NEWS: add recent mi fixes.
2764 * varobj.c (struct varobj): Add new "updated" flag.
2765 (new_variable): Default "updated" flag to 0.
2766 (varobj_set_value): Set "updated" flag to 1 if value
2767 changes.
2768 (varobj_update): Check varobj "updated" flag before
2769 comparing old and refreshed values. Fix for
2770 PR gdb/702.
2771
8da065d5
DC
27722002-10-23 David Carlton <carlton@math.stanford.edu>
2773
2774 * parse.c (parse_exp_1): Use BLOCK_START.
2775 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2776 SYMBOL_BLOCK_VALUE.
2777 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2778
87f2f08c
DC
27792002-10-23 David Carlton <carlton@math.stanford.edu>
2780
2781 * symtab.c: Delete cplusplus_hint.
2782 Delete prototype for find_template_name_end.
2783
88cda038
EZ
27842002-10-23 Elena Zannoni <ezannoni@redhat.com>
2785
2786 * symtab.h: Update comment.
2787
2625d86c
MS
27882002-10-23 Michael Snyder <msnyder@redhat.com>
2789
2790 * printcmd.c (address_info): Restore quotes in output.
2791 * valops.c (value_of_local): Restore quotes in error message.
2792
9cc0d196
EZ
27932002-10-23 Elena Zannoni <ezannoni@redhat.com>
2794
2795 * symtab.c (symbol_demangled_name): New function.
2796 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2797 turning most of it into a function.
2798 (symbol_demangled_name): Export.
2799
19de93d0
MS
28002002-10-23 Michael Snyder <msnyder@redhat.com>
2801
2802 * valops.c (value_of_local): Restore quotes in error message.
2803
89aad1f9
EZ
28042002-10-23 Elena Zannoni <ezannoni@redhat.com>
2805
2806 * symtab.c (symbol_init_language_specific): New function.
2807 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2808 turning most of it into a function.
2809 (symbol_init_language_specific): Export.
2810
d9fa45fe
DC
28112002-10-23 David Carlton <carlton@math.stanford.edu>
2812
2813 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2814 (dwarf_attr_name): Ditto.
2815 (dwarf_type_encoding_name): Ditto.
2816 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2817 (process_die): Handle DW_TAG_namespace,
2818 DW_TAG_imported_declaration, DW_TAG_imported_module.
2819 (read_namespace): New function.
2820
1045b512
JB
28212002-10-22 Joel Brobecker <brobecker@gnat.com>
2822
2823 * configure.in: Define NEW_PROC_API on Interix too.
2824 * configure: Regenerate.
2825
28262002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2827
2828 * configure: Regenerate using the proper version of autoconf.
2829
3987b9d4
EZ
28302002-10-21 Elena Zannoni <ezannoni@redhat.com>
2831
2832 * findvar.c (read_var_value): Temporarily disable TLS code, until
2833 complete TLS support is added.
2834
9d774e44
EZ
28352002-10-21 Jim Blandy <jimb@redhat.com>
2836 Elena Zannoni <ezannoni@redhat.com>
2837
2838 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2839 for thread local storage locations.
2840 (struct symbol): Add objfile field.
2841 (SYMBOL_OBJFILE): Define.
2842 * dwarf2read.c (is_thread_local): New static variable.
2843 (new_symbol): If variable is in thread local fill in address class
2844 and objfile appropriately.
2845 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2846 stack operation.
2847 * printcmd.c (address_info): Print the information for thread
2848 local storage variable.
2849 * findvar.c (read_var_value): In case of thread local variable,
2850 defer to the target vector code to compute address.
2851
bc4a16ae
EZ
28522002-10-21 Elena Zannoni <ezannoni@redhat.com>
2853
2854 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2855 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2856
407caf07
EZ
28572002-10-21 Elena Zannoni <ezannoni@redhat.com>
2858
2859 * symtab.h (address_class): Rename
2860 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2861 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2862 * printcmd.c (address_info): Ditto.
2863 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2864
005328e3
MK
28652002-10-20 Mark Kettenis <kettenis@gnu.org>
2866
afdb036a
MK
2867 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2868 DBREG_DRX macro to acces debug registers.
2869
ca02e098
MK
2870 * Makefile.in (i386obsd-tdep.o): New target.
2871
03cc47f7
MK
2872 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2873 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2874
005328e3
MK
2875 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2876 * config/i386/obsd.mt: New file.
2877 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2878 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2879 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2880 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2881 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2882 * i386obsd-tdep.c: New file.
2883
9c96f9f2
AF
28842002-10-19 Adam Fedor <fedor@gnu.org>
2885
2886 * objc-exp.y (name_not_typename): Fix invalid comment.
2887
ce1ed485
MK
28882002-10-20 Mark Kettenis <kettenis@gnu.org>
2889
2890 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2891 to allocate partial syms and macro byte caches.
2892
1efc7aaa
DC
28932002-10-18 David Carlton <carlton@math.stanford.edu>
2894
2895 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2896
7e1d63ec
AF
28972002-10-18 Adam Fedor <fedor@gnu.org>
2898
2899 * stabsread.c (find_name_end): New function.
2900 (define_symbol): Use it.
2901
6e8d29a9
DJ
29022002-10-18 Daniel Jacobowitz <drow@mvista.com>
2903
2904 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2905 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2906 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2907 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2908
1efc7aaa 29092002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2910
2911 * symfile.h: Add opaque declaration for struct obstack.
2912 Declare obsavestring to take a const char *.
2913 * symfile.c (obsavestring): Make first argument a const char *.
2914
1aeae86e
AF
29152002-10-16 Adam Fedor <fedor@gnu.org>
2916
2917 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2918 names when matching breakpoints in current file.
2919
8b2dbe47
KB
29202002-10-16 Kevin Buettner <kevinb@redhat.com>
2921
2922 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2923 (read_tag_pointer_type): Add address class support.
2924 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2925 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2926 New methods.
2927 * gdbarch.h, gdbarch.c: Regenerate.
2928 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2929 (make_type_with_address_space, recursive_type_dump): Add address
2930 class support.
2931 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2932 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2933 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2934
74451869
KD
29352002-10-16 Klee Dienes <kdienes@apple.com>
2936
2937 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2938 to get the last character of a char[] buffer, not
2939 name[sizeof(vptr_name)-1].
2940
ff4cb3e8
AF
29412002-10-14 Adam Fedor <fedor@gnu.org>
2942
2943 * symtab.h: New objc_specific struct.
2944 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2945 (SYMBOL_DEMANGLED_NAME): Likewise.
2946
da2cf7e0
AF
29472002-10-14 Adam Fedor <fedor@gnu.org>
2948
2949 * symfile.c (init_filename_language_table): Add ObjC file extension.
2950
4a351cef
AF
29512002-10-14 Adam Fedor <fedor@gnu.org>
2952
2953 * utils.c (puts_filtered_tabular): New function.
2954 (fprintf_symbol_filtered): Get ObjC demangled name.
2955 * defs.h (puts_filtered_tabular): Declared.
2956
9750e763
KB
29572002-10-14 Kevin Buettner <kevinb@redhat.com>
2958
2959 * c-lang.h (c_type_print_varspec_prefix): Delete.
2960 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2961 ``need_post_space'' parameter. Adjust all callers.
2962
eee771c1
DJ
29632002-10-14 Daniel Jacobowitz <drow@mvista.com>
2964
2965 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2966 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2967 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2968 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2969
46c82446
AF
29702002-10-13 Adam Fedor <fedor@gnu.org>
2971
2972 * source.c (print_source_lines): Update comments.
2973
d069f99d
AF
29742002-10-13 Adam Fedor <fedor@gnu.org>
2975
2976 * valops.c (value_of_local): New function.
2977 (value_of_this): Use it.
2978 * value.h (value_of_local): Declared.
2979
53c551b7
AF
29802002-10-13 Adam Fedor <fedor@gnu.org>
2981
2982 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2983 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2984
eb392fbf
AF
29852002-10-12 Adam Fedor <fedor@gnu.org>
2986
2987 * language.c (binop_result_type): Add language_objc to case.
2988 (integral_type): Likewise.
2989 (character_type): Likewise.
2990 (string_type): Likewise.
2991 (boolean_type): Likewise.
2992 (structured_type): Likewise.
2993 (binop_type_check): Likewise.
2994
e2b23ee9
AF
29952002-10-11 Adam Fedor <fedor@gnu.org>
2996
2997 * printcmd.c (address_info): Print 'self' for ObjC.
2998
b01ab485
AF
29992002-10-11 Adam Fedor <fedor@gnu.org>
3000
3001 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3002 OP_SELF.
3003
806e6073
AF
30042002-10-11 Adam Fedor <fedor@gnu.org>
3005
3006 * language.h (CAST_IS_CONVERSION): Add language_objc.
3007
50f85cdf
AF
30082002-10-11 Adam Fedor <fedor@gnu.org>
3009
3010 * defs.h (enum language): Add language_objc.
3011
0d540cdf
KD
30122002-10-11 Klee Dienes <kdienes@apple.com>
3013
69266111 3014 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3015 * gdbcore.h (read_memory_typed_address): Add prototype.
3016 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3017 to read a value destined for a CORE_ADDR, not read_memory_integer.
3018 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3019 (f77_get_dynamic_lowerbound): Ditto.
3020
d5dc7960
MH
30212002-10-11 Martin M. Hunt <hunt@redhat.com>
3022
3023 * utils.c (string_to_core_addr): After turning string into
3024 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3025 which will do necessary sign-extension, etc.
3026
8343f86c
DJ
30272002-10-11 Daniel Jacobowitz <drow@mvista.com>
3028
3029 * c-exp.y (THIS): Delete token and grammar rule.
3030 (yylex): Don't return THIS.
3031 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3032 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3033 * demangle.c (cplus_markers): Update comment. Put '$'
3034 first. Remove CPLUS_MARKER.
3035 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3036 * jv-exp.y (THIS): Delete token and grammar rule.
3037 (yylex): Don't return THIS.
3038 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3039 * objc-exp.y (THIS): Delete token and grammar rule.
3040 (yylex): Don't return THIS.
3041 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3042 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3043 (read_member_functions): Likewise for opname.
3044 (read_tilde_fields): Use is_cplus_marker.
3045
3046 * defs.h (CPLUS_MARKER): Don't define.
3047 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3048 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3049 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3050 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3051 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3052
3053 * config/i386/tm-i386v4.h: Delete file.
3054 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3055 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3056 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3057 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3058 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3059 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3060 * config/i386/i386v4.mt (TM_FILE): Likewise.
3061 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3062
967c0d83
MM
30632002-10-10 Marko Mlinar <markom@opencores.org>
3064
3065 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3066 accidentially not commited 2002-10-09
3067 * gdbarch.h, gdbarch.c: Re-generate.
3068
f74fa174
MM
30692002-10-09 Marko Mlinar <markom@opencores.org>
3070
3071 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3072 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3073 * gdbarch.h, gdbarch.c: Re-generate.
3074
57349743
JB
30752002-10-08 Petr Sorfa <petrs@caldera.com>
3076
3077 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3078
3079 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3080 so we can work on more than one compilation unit at a time. This
3081 helps prepare GDB to handle inter-CU die references.
3082 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3083 the code to be defined before struct comp_unit_head.
3084 (comp_unit_head): Added new members - offset, cu_head,
3085 begin_die, next and dwarf2_abbrevs.
3086 (dwarf2_abbrevs): Removed single static var; now member of
3087 struct comp_unit_head.
3088 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3089 members.
3090 (psymtab_to_symtab_1): Changed to work with the new
3091 struct comp_unit_head.
3092 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3093 constructs the dwarf2_abbrevs[] inside the cu_header.
3094 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3095 dwarf2_abbrev table to clean up.
3096 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3097 handling of dwarf2_abbrevs inside the cu_header.
3098 (read_partial_die): Now supports the call to the new
3099 dwarf2_lookup_abbrev.
3100 (read_full_die): Now supports the call to the new
3101 dwarf2_lookup_abbrev.
3102
4092aadb
CF
31032002-10-06 Christopher Faylor <cgf@redhat.com>
3104
3105 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3106 insure that shell variables, such as "transformed_name" are propagated
3107 to later shell statements in rule.
3108
af0b2512
MK
31092002-10-06 Mark Kettenis <kettenis@gnu.org>
3110
3111 * config/i386/nm-i386sco.h: Add protection against
3112 multiple-inclusion. Include "i386/nm-i386v.h".
3113 (REGISTER_U_ADDR): Remove define.
3114 (i386_register_u_addr): Remove prototype.
3115
d6020d45
MS
31162002-10-04 Michael Snyder <msnyder@redhat.com>
3117
3118 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3119 before treating it as a single-step event.
3120
7248f48e
AF
31212002-10-03 Adam Fedor <fedor@gnu.org>
3122
3123 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3124 (objc_demangle): Remove assignment in if statements, Replace
3125 free with xfree.
3126 (add_msglist): Likewise.
3127 (end_msglist): Likewise.
3128 (complare_selectors): Likewise.
3129 (selectors_info): Likewise.
3130 (compare_classes): Likewise.
3131 (classes_info): Likewise.
3132 (print_object_command): Likewise.
3133 (find_objc_msgcall_submethod): Replace PTR with void *.
3134 * objc-lang.h: Remove check for __STDC__.
3135
52c6a6ac
JJ
31362002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3137
3138 * ui-out.h (ui_out_field_fmt_int): New prototype.
3139 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3140 of field width and alignment.
3141 * stack.c (print_frame_info_base): When printing frame level, use
3142 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3143 PR gdb/192
3144
7e3cec17
JJ
31452002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3146
3147 * MAINTAINERS: Add self to Write After Approval list.
3148
a58dd373
EZ
31492002-10-02 Elena Zannoni <ezannoni@redhat.com>
3150
3151 * infcmd.c (interrupt_target_command_wrapper): Delete.
3152 (interrupt_target_command): Make non static.
3153 (nofp_registers_info): Make static.
3154 * stack.c (return_command_wrapper): Delete.
3155 (return_command): Make non static.
3156
cee6ddeb
EZ
31572002-10-02 Elena Zannoni <ezannoni@redhat.com>
3158
3159 * event-top.c (gdb_setup_readline): New function. Code moved from
3160 _initialize_event_loop().
3161 (_initialize_event_loop): Call gdb_setup_readline().
3162
c4ed33b9
AC
31632002-10-02 Andrew Cagney <ac131313@redhat.com>
3164
3165 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3166 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3167 * gdbarch.h, gdbarch.c: Re-generate.
3168
cef4f5dd
DJ
31692002-10-02 Daniel Jacobowitz <drow@mvista.com>
3170
3171 Fix PR gdb/778
3172 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3173 before recursing.
3174 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3175 of fill_in_vptr_fieldno.
3176
36dc181b 31772002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3178
36dc181b
EZ
3179 * inferior.h (registers_info, stepi_command, nexti_command,
3180 continue_command, interrupt_target_command): Export from infcmd.c.
3181 * frame.h (args_info, selected_frame_level_changed_hook,
3182 return_command): Export from stack.c.
3183 * v850ice.c (stepi_command, nexti_command, continue_command): use
3184 prototypes from inferior.h.
3185 * tracepoint.c (registers_info, args_info, locals_info): Use
3186 prototypes from frame.h and inferior.h.
3187 * Makefile.in (mi-main.o): Add dependency on frame.h.
3188
6f99cb26
AC
31892002-10-02 Andrew Cagney <ac131313@redhat.com>
3190
da3eff49
AC
3191 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3192 value in register 3 adjusted by ppc_gp0_regnum.
3193
6f99cb26
AC
3194 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3195
da615bee
MM
31962002-10-02 Marko Mlinar <markom@opencores.org>
3197
3198 * MAINTAINERS: Add myself to the Write After Approval list.
3199
d154bee2
AO
32002002-10-01 Alexandre Oliva <aoliva@redhat.com>
3201
62a49b2c
AO
3202 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3203 of the section for the N64 ABI, fixed.
3204
d154bee2
AO
3205 * config/mips/tm-irix6.h: Include solib.h.
3206
ed348acc
EZ
32072002-10-01 Elena Zannoni <ezannoni@redhat.com>
3208
3209 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3210 GNU operators.
3211
da0f9dcd
AC
32122002-10-01 Andrew Cagney <ac131313@redhat.com>
3213
3214 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3215 and that "mi0" syntax has been removed.
3216
bdf64bac
DC
32172002-09-30 David Carlton <carlton@math.stanford.edu>
3218
3219 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3220 * ppc-sysv-tdep.c: #include "gdb_string.h".
3221 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3222 pacify GCC.
3223
54c2a1e6
AC
32242002-10-01 Andrew Cagney <ac131313@redhat.com>
3225
3226 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3227 "vrsave"'s register number.
3228
cedea778
AC
32292002-09-30 Andrew Cagney <ac131313@redhat.com>
3230
3231 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3232 use frame_unwind_signed_register to obtain the PC.
3233 (mips_frame_chain): Handle a generic dummy frame.
3234 (mips_init_extra_frame_info): When a generic dummy frame, don't
3235 re-compute the frame base.
3236 (mips_pop_frame): Handle generic dummy frames.
3237 (mips_gdbarch_init): When generic dummy frames, set
3238 use_generic_dummy_frames, push_dummy_frame to
3239 generic_push_dummy_frame, pc_in_call_dummy to
3240 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3241 generic_save_dummy_frame_tos.
3242
68315eb8
AC
32432002-09-30 Andrew Cagney <ac131313@redhat.com>
3244
3245 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3246 against TOP when TOP was explictly set.
3247 (generic_push_dummy_frame): Set TOP to zero.
3248
3b8630c3
EZ
32492002-09-30 Elena Zannoni <ezannoni@redhat.com>
3250
3251 * event-loop.c (start_event_loop): Rename variable 'result' to
3252 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3253
28ee05e9
KS
32542002-09-30 Keith Seitz <keiths@redhat.com>
3255
3256 * gdb-events.sh (selected_thread_changed): New event.
3257 * gdb-events.c: Regenerated.
3258 * gdb-events.h: Regenerated.
3259
6eecb1c8
HPN
32602002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3261
3262 * MAINTAINERS: Add self to Write After Approval list.
3263
92df71f0
FN
32642002-09-30 Fernando Nasser <fnasser@redhat.com>
3265
3b8630c3
EZ
3266 * disasm.c: New file.
3267 * disasm.h: New file.
92df71f0
FN
3268 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3269 (compare_lines): Ditto.
3270 (dump_insns): Ditto.
3b8630c3
EZ
3271 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3272 argument.
92df71f0 3273 (do_assembly_only): Ditto.
3b8630c3
EZ
3274 (do_disassembly): Renamed to gdb_disassembly and moved to
3275 disasm.c. Sdded uiout argument.
3276 * Makefile.in: Add new files. Reorder SFILES list. Update
3277 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3278
0c22854d
AC
32792002-09-29 Andrew Cagney <ac131313@redhat.com>
3280
3281 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3282 bfd/elf64-alpha-fbsd.c.
3283
e67f2023
AC
32842002-09-29 Andrew Cagney <ac131313@redhat.com>
3285
3286 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3287 i386gnu-tdep.c.
3288
89396210
AC
32892002-09-29 Andrew Cagney <ac131313@redhat.com>
3290
3291 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3292 __FUNCTION__.
3293 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3294 function name.
3295 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3296 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3297 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3298 (S_msg_sig_post_reply): Ditto.
3299
7079c36c
CV
33002002-09-28 Corinna Vinschen <vinschen@redhat.com>
3301
89396210
AC
3302 * sh-tdep.c (sh_use_struct_convention): Use definition according
3303 to ABI.
7079c36c
CV
3304 (sh_push_arguments): Store in register with correct endianess.
3305 (sh_default_store_return_value): Ditto.
3306 (sh_gdbarch_init): Set sizeof long double to 8.
3307
975ac915
MK
33082002-09-27 Mark Kettenis <kettenis@gnu.org>
3309
3310 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3311 Fix some whitespace problems.
3312
9bbe19fb
DC
33132002-09-27 David Carlton <carlton@math.stanford.edu>
3314
3315 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3316 (mcore-tdep.o): Ditto.
3317 (ns32k-tdep.o): Ditto.
3318 (ns32knbsd-tdep.o): Ditto.
3319 (sh3-rom.o): Ditto.
3320 (vax-tdep.o): Ditto.
3321 * cris-tdep.c: #include "gdb_string.h"
3322 * mcore-tdep.c: Ditto.
3323 * ns32k-tdep.c: Ditto.
3324 * ns32knbsd-tdep.c: Ditto.
3325 * sh3-rom.c: Ditto.
3326 * vax-tdep.c: Ditto.
3327
43b2fdc7
DC
33282002-09-27 David Carlton <carlton@math.stanford.edu>
3329
3330 * config/djgpp/fnchange.lst: Add entries for
3331 gdb/testsuite/gdb.c++/m-static files.
3332
e8cfbbd9
JW
33332002-09-27 Jim Wilson <wilson@redhat.com>
3334
3335 * MAINTAINERS: Add myself to the Write After Approval list.
3336
43b2fdc7 33372002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3338
3339 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3340
3341
9f3b7f07
AC
33422002-09-26 Andrew Cagney <ac131313@redhat.com>
3343
3344 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3345 frame.
3346
11269d7e
AC
33472002-09-26 Andrew Cagney <ac131313@redhat.com>
3348
3349 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3350 (rs6000_struct_return_address): Delete variable.
3351 (rs6000_store_struct_return): Update.
3352 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3353 deprecated_extract_struct_value_address.
3354 (rs6000_frame_align): New function.
3355 (rs6000_gdbarch_init): Set frame_align.
3356
f15ab4a7
AC
33572002-09-26 Andrew Cagney <ac131313@redhat.com>
3358
3359 From Grace Sainsbury <graces@redhat.com>:
3360 * Makefile.in (gdbtk-main.o): New target.
3361 (gdb.o): New target.
3362 (main_h): Define.
3363 (main.o): Update dependencies.
3364 (gdb$(EXEEXT)): Add gdb.o.
3365 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3366 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3367 (SUBDIR_GDBTK_CLEAN): Set.
3368 (install-gdbtk): Install the insight binary.
3369 (uninstall-gdbtk): New target.
3370 (all-gdbtk, clean-gdbtk): New rule.
3371 * top.c (use_windows): Default to zero.
3372 * main.c: Include "main.h".
3373 (main): Delete.
3374 (struct captured_main_args): Delete.
3375 (gdb_main): New function.
3376 * main.h: New file.
3377 * gdb.c: New File.
3378
e36180d7
AC
33792002-09-25 Andrew Cagney <cagney@redhat.com>
3380
3381 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3382 (frame_map_regnum_to_name): New function.
3383 (frame_map_name_to_regnum): New function.
3384 * frame.h (frame_map_name_to_regnum): Declare.
3385 (frame_map_regnum_to_name): Declare.
3386 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3387 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3388 * parse.c: Do not include "builtin-regs.h".
3389 (target_map_name_to_register): Delete function.
3390 (write_dollar_variable): Use frame_map_name_to_regnum.
3391 * parser-defs.h (target_map_name_to_register): Delete declaration.
3392 * expprint.c: Include "frame.h".
3393 (print_subexp): Use frame_map_regnum_to_name.
3394 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3395 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3396
8b69000d
AC
33972002-09-25 Andrew Cagney <ac131313@redhat.com>
3398
3399 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3400 wasn't saved, and the next innermost frame is a dummy, return the
3401 dummy frame's link register.
3402
046ca86a
JB
34032002-09-24 Jim Blandy <jimb@redhat.com>
3404
3405 Fix from Paul Breed:
3406 * main.c (captured_main): Add a `break' after the case for 'b'.
3407
94b66fa7
KS
34082002-09-24 Keith Seitz <keiths@redhat.com>
3409
3410 * varobj.c (c_type_of_child): Use get_target_type instead
3411 of TYPE_TARGET_TYPE.
3412
c214a6fd
FN
34132002-09-22 Fernando Nasser <fnasser@redhat.com>
3414
53cb0458
FN
3415 * source.c (get_current_or_default_source_symtab_and_line): Remove
3416 function.
3417 (set_default_source_symtab_and_line): New function. Attempts to
3418 determine a source file to list lines from if one is not currently
3419 defined.
3420 (get_current_source_symtab_and_line): Initialize sal.pc and
3421 sal.end fields.
3422 (set_current_source_symtab_and_line): Mark argument as const.
3423 * source.h: Update declarations and comments.
3424 * linespec.c (decode_line_1): Replace call to removed routine above.
3425 * stack.c (print_frame_info_base): Ditto.
3426 * cli/cli-cmds.c (edit_command): Ditto.
3427 (list_command): Ditto.
3428
34292002-09-22 Fernando Nasser <fnasser@redhat.com>
3430
d6020d45 3431 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3432 sal.pc and sal.end fields.
c214a6fd
FN
3433 (get_current_or_default_source_symtab_and_line): Ditto.
3434 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3435 so we do not cause a new source symtab to be searched for (reverting an
3436 unintentional change from the 2002-09-20 patch).
3437 * scm-lang.c (scm_unpac): Ditto.
3438
cc3b68a5
AC
34392002-09-21 Andrew Cagney <cagney@redhat.com>
3440
3441 * complaints.c (symfile_explanations): Remove new-line from
3442 ``isolated_message''.
3443 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3444 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3445
5835abe7
NC
34462002-09-20 Nick Clifton <nickc@redhat.com>
3447
3448 * NEWS: Announce that V850EA ISA is no longer supported.
3449 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3450
a15ef5f5
DC
34512002-09-20 David Carlton <carlton@math.stanford.edu>
3452
06ba1b39
DC
3453 * Makefile.in (c-lang.o): Correct dependencies.
3454 (utils.o): Gather dependencies.
3455 (charset.o): Move.
a15ef5f5
DC
3456 * c-lang.c: #include "gdb_string.h"
3457
87885426
FN
34582002-09-20 Fernando Nasser <fnasser@redhat.com>
3459
3460 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3461 * cli/cli-cmds.c (list_command): New function. Implements the new
3462 cli edit command.
3463 (_init_cli_cmds): Add new command definition.
3464 * gdb.1: Document edit command.
3465 * doc/gdb.texinfo: Document edit command.
3466
34672002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3468
3469 * source.c: Make global variables current_source_symtab and
3470 current_source_line static.
3471 (list_command): Moved to cli/cli-cmds.c.
3472 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3473 (get_first_line_listed): New accessor function.
3474 (get_lines_to_list): New accessor function.
3475 (get_current_source_symtab_and_line): New function. Retrieves the
3476 position in the source code that we consider current.
3477 (get_current_or_default_source_symtab_and_line): New function.
3478 Like the above but attempts to determine a default position if one
3479 is not currently defined.
3480 (set_current_source_symtab_and_line): New function. Sets the source
3481 code position considered current and returns the previously set one.
3482 (clear_current_source_symtab_and_line): Reset stored information about
3483 a current source line.
3484 (_initialize_source): Remove registration for the "list" command and
3485 its alias.
3486 * source.h: Add declarations for the new functions above.
3487 * symtab.h: Remove declarations for the global variables mentioned
3488 above.
3489 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3490 obtain current source line.
3491 * linespec.c (decode_line_1): Ditto.
3492 * macroscope.c (default_macro_scope): Ditto.
3493 * scm-lang.c (scm_unpac): Ditto.
3494 * stack.c (print_frame_info_base): Ditto.
3495 * symfile.c (clear_symtab_users): Ditto.
3496 * symtab.c (decode_line_spec): Ditto.
3497 * cli/cli-cmds.c (list_command): Moved here from source.c.
3498 (ambiguous_line_spec): Moved here from source.c.
3499 (_init_cli_cmds): Add definition for "list" and its alias.
3500 * Makefile.in: Update dependencies.
3501
ddd216ea
CV
35022002-09-20 Corinna Vinschen <vinschen@redhat.com>
3503
3504 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3505 with what gcc thinks is correct.
3506
6d305052
CV
35072002-09-20 Corinna Vinschen <vinschen@redhat.com>
3508
3509 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3510 multiple register push instruction.
3511
234b45d4
KB
35122002-09-19 Jim Blandy <jimb@redhat.com>
3513
3514 Add support for distinct host and target character sets.
3515 * charset.c, charset.h: New files.
3516 * c-exp.y: #include "charset.h".
3517 (yylex): Convert character and string literals to the target
3518 character set, before returning them as the semantic value of the
3519 token.
3520 * c-lang.c: #include "charset.h".
3521 (c_emit_char): Use charset-specific methods to recognize
3522 characters with backslash escape forms, to decide which characters
3523 to print literally and which to print using numeric escape
3524 sequences, and to convert target characters to host characters
3525 before printing.
3526 * utils.c: #include "charset.h".
3527 (no_control_char_error): New function.
3528 (parse_escape): Use charset-specific methods to recognize
3529 backslash escapes, parse `control character' notation, and convert
3530 characters from the host character set to the target character set.
3531 * configure.in: Set the default host character set.
3532 Check where to find iconv, and what its argument types might be.
3533 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3534 * Makefile.in (SFILES): List charset.c.
3535 (COMMON_OBS): List charset.o.
3536 (charset.o): New rule.
3537 (charset_h): New header dependency variable.
3538 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3539 (LIBICONV): New variable, set by configure.
3540 (CLIBS): Include $(LIBICONV) here.
3541 * aclocal.m4, config.in, configure: Regenerated.
3542
525d6a61
JB
35432002-09-19 Joel Brobecker <brobecker@gnat.com>
3544
3545 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3546 bison 1.35 warning.
3547
3ed93867
RE
35482002-09-19 Richard Earnshaw <rearnsha@arm.com>
3549
3550 * gdb_mbuild.sh: New file.
3551
437666f8
AC
35522002-09-19 Andrew Cagney <ac131313@redhat.com>
3553
3554 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3555
389e51db
AC
35562002-09-18 Andrew Cagney <ac131313@redhat.com>
3557
3558 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3559 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3560 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3561 valops.c, value.h: Revert previous change.
3562
3b4efeaa
MS
35632002-09-18 Michael Snyder <msnyder@redhat.com>
3564
3565 Preliminary support for Objective-C:
3566 * defs.h (language_objc): New enum value.
3567 (puts_filtered_tabular): Declaration only, exported from utils.c.
3568 (skip_quoted): Delete, declared in completer.h.
3569 * c-exp.y: Include completer.h.
3570 * p-exp.y: Ditto.
3571 * jv-exp.y: Ditto.
3572 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3573 New operator enum values.
3574 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3575 * language.c (binop_result_type): Handle language_objc case.
3576 (integral_type, character_type, string_type, boolean_type,
3577 structured_type, binop_type_check): Ditto.
3578 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3579 (struct objc_specific): Add to general_symbol_info.
3580 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3581 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3582 * parser-defs.h (struct objc_class_str): New struct type.
3583 (start_msglist, end_msglist, add_msglist): Declaration only,
3584 exported from objc-lang.c.
3585 * value.h (value_of_local, value_nsstring,
3586 call_function_by_hand_expecting_type): Exported from valops.c.
3587 * valops.c (find_function_addr): Export.
3588 (call_function_by_hand_expecting_type): New function.
3589 (value_of_local): New function.
3590 * symfile.c (init_filename_language_table): Add ".m" extension
3591 for Objective-C.
3592 * utils.c (puts_filtered_tabular): New function.
3593 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3594 (set/show demangle): Extend help-string to refer to ObjC.
3595 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3596 * stabsread.c (symbol_reference_defined): Objective-C symbols
3597 may contain colons: make allowances when scanning stabs strings
3598 for colons.
3599 (objc_find_colon): New function.
3600 * printcmd.c (address_info): If language == objc then print
3601 "self" instead of "this".
3602 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3603 OP_NSSTRING, and OP_SELF.
3604 (prefixify_subexp): Ditto.
3605 * source.c (print_source_lines): Mention objc in comment.
3606 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3607 method names.
3608
b9caf505
AC
36092002-09-18 Andrew Cagney <ac131313@redhat.com>
3610
3611 * complaints.h: Update copyright.
3612 (struct complaints): Declare.
3613 (struct complaint): Make `message' constant.
3614 (internal_complaint): Declare.
3615 (complaint): Declare.
3616 (complaint_root): Delete declaration.
3617 (symfile_complaints): Delete declaration.
3618 (struct complaints): Add opaque declaration.
3619 (clear_complaints): Add a complaints parameter.
3620 * complaints.c: Update copyright.
3621 (enum complaint_series): Define.
3622 (complaint_root): Delete.
3623 (struct complaints): Define.
3624 (complaint_sentinel, symfile_complaint_book): New variables.
3625 (symfile_explanations, symfile_complaints): New variables.
3626 New variables.
3627 (get_complaints): New function.
3628 (vcomplaint): New function.
3629 (complaint): New function.
3630 (internal_complaint): New function.
3631 (complain): Call vcomplain with symfile_complaint.
3632 (clear_complaints): Rewrite.
3633 (_initialize_complaints): Use add_setshow_command.
3634 * Makefile.in (complaints.o): Update dependencies.
3635 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3636 to call to clear_complaints.
3637 (new_symfile_objfile, reread_symbols): Ditto.
3638 (oldsyms_complaint): Delete.
3639 (empty_symtab_complaint, unknown_option_complaint): Delete.
3640 (free_named_symtabs): Use complaint instead of complain.
3641
d2e6263c
MS
36422002-09-18 Michael Snyder <msnyder@redhat.com>
3643
5fb2031a
AC
3644 Contributed by Apple Computer, Inc. Merged with current sources
3645 by Adam Fedor <fedor@doc.com> [cagney].
3646
d2e6263c
MS
3647 * objc-lang.c: First clean-up round: comments, indentation.
3648 * objc-lang.h: Ditto.
3649 * objc-lang.y: Ditto.
3650
dec43320
AC
36512002-09-18 Andrew Cagney <ac131313@redhat.com>
3652
3653 * maint.c (maintenance_internal_error): Print the parameter as the
3654 error message.
3655 (maintenance_internal_warning): New function.
3656 (_initialize_maint_cmds): Add command `maint internal-warning'.
3657
3658 * defs.h (internal_warning, internal_vwarning): Declare.
3659 * utils.c (struct internal_problem): Define.
3660 (internal_vproblem): New function.
3661 (internal_warning): New function.
3662 (internal_vwarning): New function.
3663 (internal_warning_problem, internal_error_problem): New variables.
3664 (internal_verror): Just call internal_vproblem.
3665
b81654f1
MS
36662002-09-18 Michael Snyder <msnyder@redhat.com>
3667
3668 * objc-lang.c: New file, support for Objective-C.
3669 Preliminary check-in, not yet integrated into gdb.
3670 * objc-lang.h: New file.
3671 * objc-exp.y: New file.
3672
0542c381
AC
36732002-09-18 Andrew Cagney <ac131313@redhat.com>
3674
7bda5e4a
AC
3675 * infrun.c (signal_stop_update): Convert definition to ISO C.
3676 (signal_print_update): Ditto.
3677 (signal_pass_update): Ditto.
3678 * inflow.c (terminal_save_ours): Ditto.
3679
5247b418
AC
3680 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3681 comments.
3682
fc60962c
AC
3683 * config/djgpp/fnchange.lst: Handle name clashes between
3684 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3685 bfd/coff-tic80.c.
3686
0542c381
AC
3687 * i386-linux-tdep.h: Fix tipo.
3688
5b924b9b
AF
36892002-09-18 Adam Fedor <fedor@gnu.org>
3690
3691 * MAINTAINERS: Add myself to the Write After Approval list.
3692
5afc051b
JB
36932002-09-18 Jim Blandy <jimb@redhat.com>
3694
3695 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3696 texthigh and textlow to reader-specific structs caused
3697 objfile_relocate to miss them. This is fixable, but the work that
3698 the change was supposed to prepare GDB for never got done anyway.
3699
eb944380
DC
37002002-09-18 David Carlton <carlton@math.stanford.edu>
3701
3702 * MAINTAINERS: Alphabetize Write After Approval list.
3703
948e66d9
DJ
37042002-09-18 Daniel Jacobowitz <drow@mvista.com>
3705
3706 Fix PR gdb/709
3707 * values.c (value_static_field): Call read_var_value.
3708
dc604539
AC
37092002-09-18 Andrew Cagney <ac131313@redhat.com>
3710
3711 * valops.c (hand_function_call): Align the initial stack pointer
3712 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3713 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3714 return value.
3715 * mips-tdep.c (mips_frame_align): New function.
3716 (mips_gdbarch_init): Set frame_align.
3717 * gdbarch.sh (FRAME_ALIGN): New method.
3718 * gdbarch.h, gdbarch.c: Re-generate.
3719
cb7e422f
ML
37202002-09-18 Michal Ludvig <mludvig@suse.cz>
3721
3722 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3723 registers.
3724
a094c6fb
AC
37252002-09-17 Andrew Cagney <ac131313@redhat.com>
3726
3727 * NEWS: Mention that MIPS $fp behavior changed.
3728 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3729 reference to FP_REGNUM.
3730 (mipsnbsd_cannot_store_register): Ditto.
3731 * mips-linux-nat.c: Update copyright.
3732 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3733 (mips_linux_cannot_store_register): Ditto.
3734 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3735 * config/mips/tm-mips.h: Update copyright.
3736 (FP_REGNUM): Delete macro.
3737 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3738 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3739 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3740 (mips_r3041_reg_names, mips_r3051_reg_names)
3741 (mips_r3081_reg_names): Replace "fp" with "".
3742 Fix PR gdb/480.
3743
45cf40d1
TR
37442002-09-17 Theodore A. Roth <troth@verinet.com>
3745
3746 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3747 generic_read_register_dummy() (PR gdb/703).
3748 (avr_push_return_address): #if 0 out unused vars.
3749 (avr_gdbarch_init): Enable use of avr_push_return_address().
3750
c7e701b5
MS
37512002-09-17 Michael Snyder <msnyder@redhat.com>
3752
d76ba2a5 3753 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3754 RTE will take care of it.
3755
20bcf01c
AC
37562002-09-17 Andrew Cagney <ac131313@redhat.com>
3757
3758 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3759 invalid, return SP_REGNUM.
3760
009a9971 37612002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3762
3763 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3764 point registers without sign extension.
3765
135c175f
AC
37662002-09-17 Andrew Cagney <cagney@redhat.com>
3767
3768 * blockframe.c (deprecated_read_register_dummy): Rename
3769 generic_read_register_dummy.
3770 * frame.c (frame_unwind_signed_register): New function.
3771 (frame_unwind_unsigned_register): New function.
3772 * frame.h (frame_unwind_signed_register): Declare.
3773 (frame_unwind_unsigned_register): Declare.
3774 (deprecated_read_register_dummy): Rename
3775 generic_read_register_dummy.
3776
3777 * h8300-tdep.c (h8300_frame_chain): Update.
3778 (h8300_frame_saved_pc): Update.
3779 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3780 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3781 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3782 (s390_frame_chain): Update.
3783 * v850-tdep.c (v850_find_callers_reg): Update.
3784 (v850_frame_saved_pc): Update.
3785 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3786 (m32r_find_callers_reg): Update.
3787 (m32r_frame_saved_pc): Update.
3788 * sh-tdep.c (sh_find_callers_reg): Update.
3789 (sh64_get_saved_pr): Update.
3790 (sh_init_extra_frame_info): Update.
3791 (sh_init_extra_frame_info): Update.
3792 (sh64_init_extra_frame_info): Update.
3793 (sh64_init_extra_frame_info): Update.
3794 * mcore-tdep.c (mcore_find_callers_reg): Update.
3795 (mcore_frame_saved_pc): Update.
3796 (mcore_init_extra_frame_info): Update.
3797 * i386-tdep.c (i386_frame_saved_pc): Update.
3798 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3799 (ia64_init_extra_frame_info): Update.
3800 (ia64_init_extra_frame_info): Update.
3801 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3802 * cris-tdep.c (cris_init_extra_frame_info): Update.
3803 * avr-tdep.c (avr_frame_chain): Update.
3804 (avr_init_extra_frame_info): Update.
3805 (avr_frame_saved_pc): Update.
3806 * arm-tdep.c (arm_find_callers_reg): Update.
3807 (arm_init_extra_frame_info): Update.
3808 (arm_frame_saved_pc): Update.
3809
a741e514
TT
38102002-09-17 Tom Tromey <tromey@redhat.com>
3811
3812 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3813 is "'".
3814
d1a8e808
CV
38152002-09-17 Corinna Vinschen <vinschen@redhat.com>
3816
3817 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3818 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3819 NEXT_PROLOGUE_INSN.
3820 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3821 NEXT_PROLOGUE_INSN.
3822
d9025a18
JB
38232002-09-16 Joel Brobecker <brobecker@gnat.com>
3824
3825 * osfsolib.c: Remove file, replaced by solib-osf.c.
3826 * Makefile.in: Remove compilation rules for osfsolib.c.
3827
1b2ef1b6
DC
38282002-09-16 David Carlton <carlton@math.stanford.edu>
3829
3830 * cp-valprint.c (cp_print_class_method): Correct args to
3831 check_stub_method_group.
3832
928e48af
CV
38332002-09-16 Corinna Vinschen <vinschen@redhat.com>
3834
3835 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3836 `set architecture'. Unify naming convention of functions.
3837 (h8300_skip_prologue): Improve prologue analysis.
3838 (h8300_push_arguments): Rewritten to more closely match GCC's
3839 bizarre argument-passing behavior, along with the comment describing
3840 said behavior.
3841 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3842 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3843 sim, remote-e7000.c, remote-hms.c and remote.c
3844
5e3397bb
MK
38452002-09-15 Mark Kettenis <kettenis@gnu.org>
3846
3847 * i386-tdep.c (gdb_print_insn_i386): Removed.
3848 (i386_print_insn): New function.
3849 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3850 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3851 tm_print_insn_info.
3852
f710f4fc
MK
38532002-09-14 Mark Kettenis <kettenis@gnu.org>
3854
3855 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3856 zero.
3857
db54fef4
CV
38582002-09-14 Corinna Vinschen <vinschen@redhat.com>
3859
3860 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3861 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3862 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3863
2becadee
CF
38642002-09-13 Christopher Faylor <cgf@redhat.com>
3865
3866 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3867
de17c821
DJ
38682002-09-13 Daniel Jacobowitz <drow@mvista.com>
3869
3870 * gdbtypes.c (check_stub_method): Make static.
3871 (check_stub_method_group): New function.
3872 * gdbtypes.h: Update prototypes.
3873 * cp-support.c: New file.
3874 * cp-support.h: New file.
3875
3876 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3877 (update_method_name_from_physname): New function.
3878 (read_member_functions): Correct method names for operators
3879 and v3 constructors/destructors. Separate v2 constructors and
3880 destructors.
3881 * Makefile.in (stabsread.o): Update dependencies.
3882 (SFILES): Add cp-support.c.
3883 (COMMON_OBS): Add cp-support.o.
3884 (cp_support_h, cp-support.o): Add.
3885
3886 * cp-valprint.c (cp_print_class_method): Call
3887 check_stub_method_group instead of check_stub_method. Remove
3888 extraneous QUITs.
3889 * p-valprint.c (pascal_object_print_class_method): Likewise.
3890 * valops.c (search_struct_method): Likewise.
3891 (find_method_list, value_struct_elt_for_reference): Likewise.
3892
e76cff22
AC
38932002-09-13 Andrew Cagney <cagney@redhat.com>
3894
3895 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3896 * gdbarch.h, gdbarch.c: Regenerate.
3897
905abb3f
AC
38982002-09-13 Andrew Cagney <ac131313@redhat.com>
3899
3900 * frame.c (find_saved_register): Delete function.
3901 * frame.h (find_saved_register): Delete declaration.
3902 Fix PR gdb/631.
3903
64159455
AC
3904Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3905
3906 * mips-tdep.c (read_next_frame_reg): Re-hack using
3907 frame_register_unwind.
3908
795e1e11
AC
3909Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3910
3911 * mips-tdep.c (mips_get_saved_register): Re-hack using
3912 frame_register_unwind.
3913
5720643c
JB
39142002-09-12 Joel Brobecker <brobecker@gnat.com>
3915
3916 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3917 vector. Will be useful for Interix.
3918 * gdbarch.h, gdbarch.c: Regenerate.
3919
3920 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3921 name of the malloc function by NAME_OF_MALLOC.
3922
3bada2a2
JB
39232002-09-12 Joel Brobecker <brobecker@gnat.com>
3924
3925 * value.h (find_function_in_inferior): Add const keyword to
3926 one of the parameters. Allows us to invoke this function with
3927 a const char *.
3928 * valops.c (find_function_in_inferior): Likewise.
3929
3db26b01
JB
39302002-09-12 Joel Brobecker <brobecker@gnat.com>
3931
3932 * exec.c (xfer_memory): Fix compilation warning with old versions
3933 of GCC.
3934 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3935
17c5ed2c
DC
39362002-09-12 David Carlton <carlton@math.stanford.edu>
3937
3938 * symtab.h: Run through gdb_indent.h.
3939 Add 2002 to Copyright year list.
3940
ecd1107e
AM
39412002-09-12 Alan Modra <amodra@bigpond.net.au>
3942
3943 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3944 mach constants.
3945 * MAINTAINERS: Add myself to write after approval list.
3946
e64f66d1
JB
39472002-09-11 J. Brobecker <brobecker@gnat.com>
3948
3949 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3950
f9395794
JB
39512002-09-11 J. Brobecker <brobecker@gnat.com>
3952
3953 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3954 Interix.
3955
1a303dec
MS
39562002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3957
3958 * procfs.c (do_detach): Clear current signal, not just fault.
3959 Corrects problem with breakpoint trap signal leaking to detached
3960 process on Tru64.
3961
c0219d42
MS
39622002-09-10 Michael Snyder <msnyder@redhat.com>
3963
3964 * buildsym.c (finish_block): Protect against null pointer.
3965
9d84ac84
AC
39662002-09-10 Andrew Cagney <cagney@redhat.com>
3967
3968 * infcmd.c (default_print_registers_info): Send all output to
3969 ``file'' instead of ``gdb_stdout''.
3970
77d8f2b4
MS
39712002-09-10 Michael Snyder <msnyder@redhat.com>
3972
3973 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3974 LONGEST, and use signed register read (addresses are sign-
3975 extended for mips).
3976
99656a61
SC
39772002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3978
3979 * event-loop.c (gdb_do_one_event): Make public.
3980 * event-loop.h (gdb_do_one_event): Declare.
3981
da12f4d8
JL
39822002-09-10 Jeff Law <law@redhat.com>
3983
3984 * infttrace.c (child_resume): Simplify and rework to avoid
3985 TT_PROC_CONTINUE.
3986
d0aee0c4
FF
39872002-09-09 Fred Fish <fnf@intrinsity.com>
3988
3989 * printcmd.c (print_scalar_formatted): "len" is the number of
3990 target bytes, NOT the number of target bits.
3991
7cb3ec5e
EZ
39922002-09-09 Elena Zannoni <ezannoni@redhat.com>
3993
3994 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3995 * top.c (init_main): Set rl_terminal_name.
3996
4dc81987
AS
39972002-09-08 Aidan Skinner <aidan@velvet.net>
3998
3999 * ada-lang.c (ada_array_bound, ada_type_match,
4000 _initialize_ada_language): Fix K&R definitions.
4001 * ada-tasks.c (get_current_task): Fix K&R definitions.
4002 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4003
842330b4
CF
40042002-09-07 Christopher Faylor <cgf@redhat.com>
4005
4006 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4007 Add XP.
4008
43156d82
MK
40092002-09-06 Mark Kettenis <kettenis@gnu.org>
4010
66da5fd8
MK
4011 * i386-tdep.c (i386_register_virtual_type,
4012 i386_register_convertible, i386_register_convert_to_virtual,
4013 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4014 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4015 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4016 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4017 Don't set push_arguments twice.
4018
4b218c18
MK
4019 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4020 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4021 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4022 sigtramp_end to NULL.
4023 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4024 defines.
4025 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4026
4cc314d5
MK
4027 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4028 whitespace.
4029
43156d82
MK
4030 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4031 * gdbarch.h, gdbarch.c: Re-generate.
4032 * blockframe.c (find_pc_sect_partial_function): Convert to use
4033 SIGTRAMP_START_P predicate.
4034
6672060b
MS
40352002-09-05 Michael Snyder <msnyder@redhat.com>
4036
a90c3637
MS
4037 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4038 generic_dummy_frame method and old method. Also distinguish
4039 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4040 (arm_extract_return_value): Use new regcache method.
a90c3637 4041
6672060b
MS
4042 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4043 adjustment that doesn't conform to the ABI.
4044 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4045 saved regcache, not from current regcache.
4046
299ffc64
AC
40472002-09-05 Andrew Cagney <ac131313@redhat.com>
4048
4049 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4050 * README: Update.
4051
a3a2ee65
JT
40522002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4053
4054 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4055 if arm_apcs_32 is false.
4056
2bc7eea9
AC
40572002-09-04 Andrew Cagney <ac131313@redhat.com>
4058
4059 GDB 5.3 branch created.
4060
8a55a7c5
TR
40612002-09-03 Theodore A. Roth <troth@verinet.com>
4062
4063 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4064 generic_unwind_get_saved_register.
4065
e26fb1d7
DC
40662002-09-03 David Carlton <carlton@math.stanford.edu>
4067
4068 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4069 argument (PR gdb/653). Update call to smash_to_method_type.
4070 (read_structure_scope): Update call to dwarf2_add_member_fn.
4071
30d52491
ML
40722002-09-03 Michal Ludvig <mludvig@suse.cz>
4073
4074 * x86-64-linux-tdep.c: Include gdb_string.h
4075 * x86-64-linux-nat.c: Ditto.
4076
06891d83
JT
40772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4078
4079 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4080 when YYDEBUG is set to 1.
4081 * c-exp.y: Likewise.
4082 * f-exp.y: Likewise.
4083 * jv-exp.y: Likewise.
4084 * m2-exp.y: Likewise.
4085 * p-exp.y: Likewise.
4086
7d400e77
JT
40872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4088
4089 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4090 dependency list.
4091 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4092 solib_svr4_fetch_link_map_offsets to
4093 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4094 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4095 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4096 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4097 solib-svr4.o, and solib-legacy.o.
4098 * config/i386/tm-nbsd.h: Include solib.h.
4099
704a27c4
JT
41002002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4101
4102 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4103 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4104 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4105 comment noting that this needs its own target configuration.
4106 * config/i386/nbsd.mt: New file.
4107 * config/i386/nbsdaout.mt: Remove.
4108 * config/i386/nbsdelf.mt: Ditto.
4109 * config/i386/tm-nbsdaout.h: Ditto.
4110
d66198e1
JT
41112002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4112
4113 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4114 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4115 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4116 tdep->sigtramp_end.
4117 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4118 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4119 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4120
3cac699e
JT
41212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4122
4123 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4124 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4125 * i386-tdep.h (i386bsd_init_abi): New prototype.
4126 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4127 function declaration.
4128 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4129 for NetBSD-a.out or NetBSD-ELF.
4130 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4131 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4132 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4133 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4134 and nbsd-tdep.h.
4135 (i386nbsd_pc_in_sigtramp): New function.
4136 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4137 i386nbsd_pc_in_sigtramp.
4138 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4139 and i386nbsdelf_init_abi OS ABI handlers.
4140 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4141 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4142
7010ca0a
MK
41432002-09-02 Mark Kettenis <kettenis@gnu.org>
4144
4145 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4146 registers if the target really has them.
4147
6dd93b72
JT
41482002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4149
4150 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4151 than nbsd-tdep.h.
4152
2ca8ae21
JT
41532002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4154
4155 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4156 list.
4157 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4158 (alphanbsd_skip_sigtramp_frame): New functions.
4159 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4160 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4161 to alphanbsd_sigcontext_addr.
4162
3d9b49b0
JT
41632002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4164
4165 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4166 list.
4167 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4168 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4169 nbsd_pc_in_sigtramp.
4170 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4171 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4172 * nbsd-tdep.c: Include gdb_string.h.
4173 (nbsd_pc_in_sigtramp): New function.
4174 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4175 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4176 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4177 ppcnbsd_pc_in_sigtramp.
4178 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4179 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4180 shnbsd_pc_in_sigtramp.
4181 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4182 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4183 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4184
c860120c
PM
41852002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4186
4187 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4188 watchpoints to NULL.
4189 (insert_breakpoints): set val field of watchpoints if NULL.
4190
4191
c7612d53
JB
41922002-08-29 Jim Blandy <jimb@redhat.com>
4193
4194 * symtab.c (lookup_symbol_aux): In the cases where we find a
4195 minimal symbol of an appropriate name and use its address to
4196 select a symtab to read and search, use `name' (as passed to us)
4197 as the demangled name when searching the symtab's global and
4198 static blocks, not the minsym's name.
4199
66609862
KS
42002002-08-29 Keith Seitz <keiths@redhat.com>
4201
4202 * stack.c (print_frame_info_base): Always set current_source_symtab
4203 and current_source_line.
4204
151fefe2
JB
42052002-08-29 Donn Terry <donnte@microsoft.com>
4206
4207 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4208
bfb3754e
KS
42092002-08-28 Keith Seitz <keiths@redhat.com>
4210
4211 * stack.c (select_frame): Add FIXME concerning selected-frame
4212 events.
4213 (select_frame_command): Send selected-frame-level-changed
4214 event notification, but only if the level actually changed.
4215 (up_silently_base): Add selected-frame-level-changed event
4216 notification.
4217 (down_silently_base): Likewise.
4218
e822a2a0
AC
42192002-08-28 Andrew Cagney <ac131313@redhat.com>
4220
4221 * Makefile.in: Update dependencies for all gdb/*.c files.
4222
309367d4
TT
42232002-08-27 Tom Tromey <tromey@redhat.com>
4224
4225 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4226 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4227 Update dependencies.
4228 * i387-tdep.c: Include gdb_string.h.
4229 * osabi.c: Likewise.
4230 * i386-linux-nat.c: Likewise.
4231 * lin-lwp.c: Likewise.
4232 * ax-gdb.c: Likewise.
4233 * signals/signals.c: Likewise.
4234 * jv-valprint.c: Likewise.
4235 * p-lang.c: Likewise.
4236 * c-valprint.c: Likewise.
4237 * cp-abi.c: Likewise.
4238
e1507482
EZ
42392002-08-27 Elena Zannoni <ezannoni@redhat.com>
4240
4241 * cli/cli-script.h (copy_command_lines): Export.
4242 * breakpoint.c: Include cli/cli-script.h.
4243 * Makefile.in (breakpoint.o): Update dependencies.
4244
c6510018
MS
42452002-08-26 Michael Snyder <msnyder@redhat.com>
4246
4247 * breakpoint.c (insert_breakpoints): Protect all references
4248 to 'process_warning'. Shorten long lines.
4249
c2b8ed2c
MS
42502002-08-26 Joel Brobecker <brobecker@gnat.com>
4251
4252 * cli/cli-script.c (copy_command_lines): New function.
4253 * defs.h (copy_command_lines): Export.
4254 * testsuite/gdb.base/commands.exp: New tests for commands
4255 attached to a temporary breakpoint, and for commands that
4256 delete the breakpoint they are attached to.
4257
42582002-08-26 Michael Snyder <msnyder@redhat.com>
4259
4260 * breakpoint.c (bpstat_stop_status): Instead of copying the
4261 pointer to the breakpoint commands struct, make a new copy
4262 of the struct and point to that.
4263 (bpstat_clear): Free the commands struct.
4264 (bpstat_clear_actions): Free the commands struct.
4265 (bpstat_do_actions): Free the command actions. Also execute
4266 the local cleanups, instead of deleting them.
4267 (delete_breakpoint): Leave the commands field of the bpstat
4268 chain alone -- it will be freed later.
4269
64b84175
KB
42702002-08-26 Kevin Buettner <kevinb@redhat.com>
4271
4272 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4273 deleted in 2002-08-20 commit. This function is still used by
4274 ppc-linux-nat.c.
4275
55970da6
KS
42762002-08-26 Keith Seitz <keiths@redhat.com>
4277
4278 * gdb-events.sh: Add selected-frame-level-changed event.
4279 * gdb-events.c: Regenerated.
4280 * gdb-events.h: Regenerated.
4281
a790ad35
SC
42822002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4283
4284 Fix PR gdb/393:
4285 * inflow.c (terminal_save_ours): New function to save terminal
4286 settings.
4287 * inferior.h (terminal_save_ours): Declare.
4288 * target.c (debug_to_terminal_save_ours): New function.
4289 (cleanup_target): Defaults to_terminal_save_ours.
4290 (update_current_target): Inherit to_terminal_save_ours.
4291 (setup_target_debug): Set to_terminal_save_ours.
4292 * target.h (target_terminal_save_ours): New to save terminal settings.
4293 (target_ops): New member to_terminal_save_ours.
4294 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4295 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4296 * inftarg.c (init_child_ops): Likewise.
4297 * m3-nat.c (init_m3_ops): Likewise.
4298 * procfs.c (init_procfs_ops): Likewise.
4299 * wince.c (init_child_ops): Likewise.
4300 * win32-nat.c (init_child_ops): Likewise.
4301 * sol-thread.c (init_sol_thread_ops): Likewise.
4302
c00dcbe9
MK
43032002-08-26 Mark Kettenis <kettenis@gnu.org>
4304
3d7f4f49
MK
4305 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4306 use regcache_* functions.
4307 (i386_gdbarch_init): Set store_return_value instead of
4308 deprecated_store_return_value.
4309
c00dcbe9
MK
4310 * regcache.c (regcache_raw_write_signed,
4311 regcache_raw_write_unsigned): New functions.
4312 * regcache.h (regcache_raw_write_signed,
4313 regcache_raw_write_unsigned): New prototypes.
4314
0e0d15ca
AC
43152002-08-25 Andrew Cagney <ac131313@redhat.com>
4316
4317 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4318 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4319 source file dependencies. Cleanup corresponding generator rules.
4320
d3b22ed5
AC
43212002-08-25 Andrew Cagney <ac131313@redhat.com>
4322
4323 * regcache.h (register_offset_hack): Declare.
4324 (regcache_cooked_read_using_offset_hack): Declare.
4325 (regcache_cooked_write_using_offset_hack): Declare.
4326
4327 * regcache.c (register_offset_hack): New function.
4328 (regcache_cooked_read_using_offset_hack): New function.
4329 (regcache_cooked_write_using_offset_hack): New function.
4330 (regcache_dump): Check that the registers, according to their
4331 offset, are packed hard against each other.
4332 (cooked_xfer_using_offset_hack): New function.
4333
bb425013
AC
43342002-08-25 Andrew Cagney <ac131313@redhat.com>
4335
4336 * regcache.c (struct regcache_descr): Add field register_type.
4337 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4338 in as a parameter
4339 (init_regcache_descr): Initialize register_type. Pass the descr
4340 to init_legacy_regcache_descr. Use register_type instead of
4341 REGISTER_VIRTUAL_TYPE.
4342 (register_type): New function.
4343 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4344 * regcache.h (register_type): Declare.
4345
d0403e00
AC
43462002-08-25 Andrew Cagney <ac131313@redhat.com>
4347
4348 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4349 instead of deprecated_store_return_value. Fix fallout from
4350 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4351
0ed04cce
AC
43522002-08-25 Andrew Cagney <ac131313@redhat.com>
4353
4354 * regcache.c (max_register_size): New function.
4355 (init_legacy_regcache_descr): Ensure that max_register_size is
4356 large enough for REGISTER_VIRTUAL_SIZE.
4357 * regcache.h (max_register_size): Declare.
4358
46d79c04
AC
43592002-08-24 Andrew Cagney <ac131313@redhat.com>
4360
4361 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4362 store_return_value.
4363 (e500_extract_return_value): Change type of valbuf pointer to
4364 void.
4365
853c7bd0
MK
43662002-08-24 Mark Kettenis <kettenis@gnu.org>
4367
cd87e769
MK
4368 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4369 workaround.
4370
853c7bd0
MK
4371 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4372 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4373 long long) to prevent compiler warning on 64-bit systems.
4374
ebba8386
AC
43752002-08-23 Andrew Cagney <cagney@redhat.com>
4376
4377 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4378 (DEPRECATED_STORE_RETURN_VALUE): New method.
4379 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4380 * gdbarch.h, gdbarch.c: Re-generate.
4381
4382 * values.c (set_return_value): Pass current_regcache to
4383 STORE_RETURN_VALUE.
4384 * arch-utils.h (legacy_store_return_value): Declare.
4385 * arch-utils.c (legacy_store_return_value): New function.
4386 (legacy_extract_return_value): Update parameters.
4387
4388 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4389 STORE_RETURN_VALUE.
4390 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4391 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4392 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4393 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4394 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4395 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4396 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4397 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4398 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4399 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4400
4401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4402 * i386-tdep.c (i386_extract_return_value): Update.
4403 * arch-utils.c (legacy_extract_return_value): Update.
4404 * frv-tdep.c (frv_gdbarch_init): Update.
4405 * cris-tdep.c (cris_gdbarch_init): Update.
4406 * d10v-tdep.c (d10v_gdbarch_init): Update.
4407 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4408 * m68k-tdep.c (m68k_gdbarch_init): Update.
4409 * mcore-tdep.c (mcore_gdbarch_init): Update.
4410 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4411 * s390-tdep.c (s390_gdbarch_init): Update.
4412 * sparc-tdep.c (sparc_gdbarch_init): Update.
4413 * sh-tdep.c (sh_gdbarch_init): Update.
4414 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4415 * v850-tdep.c (v850_gdbarch_init): Update.
4416 * avr-tdep.c (avr_gdbarch_init): Update.
4417 * ia64-tdep.c (ia64_gdbarch_init): Update.
4418 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4419 * vax-tdep.c (vax_gdbarch_init): Update.
4420 * alpha-tdep.c (alpha_gdbarch_init): Update.
4421 * arm-tdep.c (arm_gdbarch_init): Update.
4422 * mips-tdep.c (mips_gdbarch_init): Update.
4423 * i386-tdep.c (i386_gdbarch_init): Update.
4424
5bd8c6d0
AC
44252002-08-23 Andrew Cagney <ac131313@redhat.com>
4426
4427 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4428 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4429
e73e1724
MK
44302002-08-24 Mark Kettenis <kettenis@gnu.org>
4431
4432 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4433 problems.
4434
3e6564e1
JB
44352002-08-23 Joel Brobecker <brobecker@gnat.com>
4436
4437 * infrun.c (handle_inferior_event): Move a comment outside of a
4438 function call, in order to avoid indent reformatting this part
4439 of the code in an unreadable way.
4440
81d0cc19
GS
44412002-08-23 Grace Sainsbury <graces@redhat.com>
4442
4443 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4444 when breakpoints fail. Move general breakpoint error messages to
4445 insert_breakpoints.
4446 * breakpoint.c (insert_breakpoints): Change warnings when
4447 breakpoints are nto inserted to specify the type. Remove call to
4448 memory_error when hardware breakpoints can't be inserted. Remove
4449 multiple calls to warning so all messages are sent to the user at
4450 once.
4451 (delete_breakpoints): Make insert error messsages more explicit.
4452
17574093
DJ
44532002-08-23 Daniel Jacobowitz <drow@mvista.com>
4454
4455 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4456 gdbserver/ChangeLog.
4457
8acc2935
MK
44582002-08-23 Mark Kettenis <kettenis@gnu.org>
4459
dfe01d39
MK
4460 * i386-tdep.c: Include "objfiles.h".
4461 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4462 skip_trampoline_code.
4463 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4464 (CPLUS_MARKER): Define to '.'.
4465
8acc2935
MK
4466 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4467 member.
4468 (linux_corefile_thread_callback): Increase args->num_notes.
4469 (linux_make_note_section): Initialize thread_args.num_notes, and
4470 use it to determine whether notes for any threads were created.
4471
151fefe2 44722002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4473
4474 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4475 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4476 and PCUNKILL.
4477 (write_with_trace): Conditionalize out the switch branch handling
4478 PCSHOLD if the corresponding macro is not defined. Likewise for
4479 PRSABORT and PRSTOP.
4480 This change will be needed by the Interix port.
4481
e1507482
EZ
44822002-08-22 Elena Zannoni <ezannoni@redhat.com>
4483
4484 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4485 write_register wherever possible instead of manipulating the
4486 register bytes directly.
4487 Assign VALUE_CONTENTS to a variable and use that.
4488 The GPR numbers are now dependent on the architecture.
4489
96ff0de4
EZ
44902002-08-22 Elena Zannoni <ezannoni@redhat.com>
4491
4492 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4493 ev_offset fields.
4494 (skip_prologue): Add support for BookE/e500 instructions.
4495 (e500_extract_return_value): New function.
4496 (frame_get_saved_regs): Add support for saving ev registers and
4497 pseudo gpr's.
4498 (e500_store_return_value): New function.
4499 (rs6000_gdbarch_init): Move up default intializations of
4500 deprecated_extract_return_value and store_return_value. Overwrite
4501 init of store_return_value with e500 specific version.
4502 Set extract_return_value for e500.
4503
fbefca5b
EZ
45042002-08-22 Elena Zannoni <ezannoni@redhat.com>
4505
4506 * blockframe.c (generic_call_dummy_register_unwind): Use
4507 regcache_cooked_read to catch cases in which the variable is
4508 stored in a pseudo register.
4509
4d210288
AC
45102002-08-22 Andrew Cagney <cagney@redhat.com>
4511
4512 * NEWS: Mention that the i960 has been made obsolete.
4513 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4514 i960-tdep.c
4515 (remote-nrom.o): Obsolete target.
4516 (remote-nindy.o, i960-tdep.o): Ditto.
4517 * remote-nrom.c: Make file obsolete.
4518 * remote-nindy.c, remote-vx960.c: Ditto.
4519 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4520 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4521 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4522 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4523 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4524 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4525 i960-*-vxworks* obsolete.
4526 * MAINTAINERS: Note that the i960 is obsolete.
4527
6c0c456d
CV
45282002-08-21 Corinna Vinschen <vinschen@redhat.com
4529
4530 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4531 detach to allow reinitialization.
4532
9f9d12b3
AC
45332002-08-22 Andrew Cagney <ac131313@redhat.com>
4534
4535 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4536 attempt).
4537
ebeb39fe
JB
45382002-08-22 Jim Blandy <jimb@redhat.com>
4539
4540 * coffread.c (coff_symfile_read): Don't try to read the line
4541 number table from disk if the image file doesn't have a symbol
4542 table; we'll never actually look at the info anyway, and Windows
4543 ships DLL's with bogus file offsets for the line number data.
4544
5bf1c677
EZ
45452002-08-21 Elena Zannoni <ezannoni@redhat.com>
4546
4547 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4548 an e500 executable.
4549
71b8ef93
MS
45502002-08-21 Michael Snyder <msnyder@redhat.com>
4551
4552 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4553 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4554 (DEFAULT_MIPS_TYPE): Delete unused macro.
4555 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4556 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4557
d174216d
JB
45582002-08-21 Jim Blandy <jimb@redhat.com>
4559
4560 * valops.c (value_cast): Simplify and correct logic for doing a
4561 static cast from a pointer to a base class to a pointer to a
4562 derived class.
4563
0ab7a791
AC
45642002-08-21 Andrew Cagney <ac131313@redhat.com>
4565
4566 * infcmd.c (default_print_registers_info): Replace
4567 do_registers_info.
4568 (registers_info): Use gdbarch_print_registers_info instead of
4569 DO_REGISTERS_INFO.
4570 * inferior.h (default_print_registers_info): Replace
4571 do_registers_info.
4572 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4573 (DO_REGISTERS_INFO): Change to a predicate function.
4574 * gdbarch.h, gdbarch.c: Regenerate.
4575
e23792cc
KS
45762002-08-21 Keith Seitz <keiths@redhat.com>
4577
4578 * gdb-events.sh: Add target-changed event.
4579 * gdb-events.c: Regenerated.
4580 * gdb-events.c: Regenerated.
4581 * valops.c (value_assign): Add target-changed event notification
4582 to inlval_register, lval_memory, and lval_reg_frame_relative.
4583
9fb14e79
JB
45842002-08-21 Joel Brobecker <brobecker@gnat.com>
4585
4586 * NEWS: Add an entry regarding the improvement of the next/step
4587 operation on Alpha Tru64 multi-processor machines.
4588
6d39a69f
AC
45892002-08-21 Andrew Cagney <ac131313@redhat.com>
4590
72acd513
AC
4591 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4592 directores.
342af04b 4593 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4594 * Makefile.in (install-gdbtk): Move to install section.
4595 (rdi-share/libangsd.a): Move to end of file.
4596
fa5f27c7
AC
45972002-08-19 Andrew Cagney <ac131313@redhat.com>
4598
4599 * frame.c (frame_register_unwind): When a register, set addrp to
4600 the register's byte.
4601
5a89d8aa
MS
46022002-08-20 Michael Snyder <msnyder@redhat.com>
4603
4604 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4605 used locally, so move them from the target machine header to here.
4606 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4607 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4608 Make static.
4609 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4610
822e978b
AC
46112002-08-20 Andrew Cagney <cagney@redhat.com>
4612
4613 * NEWS: Mention that the Apollo line was made obsolete.
4614 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4615 m68*-hp-hpux* obsolete.
4616 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4617 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4618 * buildsym.c (make_blockvector): Make static.
4619 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4620 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4621 (ALLDEPFILES): Remove dstread.c.
4622 (dstread.o): Obsolete make rule.
4623 * dstread.c: Makefile obsolete.
4624 * dst.h: Ditto.
4625 * config/m68k/hp300hpux.mt: Ditto.
4626 * config/m68k/hp300hpux.mh: Ditto.
4627 * config/m68k/hp300bsd.mt: Ditto.
4628 * config/m68k/hp300bsd.mh: Ditto.
4629 * config/m68k/apollo68b.mt: Ditto.
4630 * config/m68k/apollo68v.mh: Ditto.
4631 * config/m68k/apollo68b.mh: Ditto.
4632
e41b17f0
MS
46332002-08-20 Michael Snyder <msnyder@redhat.com>
4634
4635 * mips-tdep.c (mips_in_return_stub): Make static.
4636 (mips_gdbarch_init): Set in_solib_return_trampoline.
4637 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4638
d50355b6
MS
46392002-08-20 Michael Snyder <msnyder@redhat.com>
4640
4641 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4642 * gdbarch.c, gdbarch.h: Regenerate.
4643 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4644 Add.
4645 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4646
757a7cc6
MS
46472002-08-20 Michael Snyder <msnyder@redhat.com>
4648
4649 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4650 (mips_gdbarch_init): Set skip_trampoline_code,
4651 in_solib_call_trampoline.
4652 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4653 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4654
c8001721
EZ
46552002-08-20 Elena Zannoni <ezannoni@redhat.com>
4656
4657 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4658
4659 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4660 vector type for ev registers.
4661 (e500_pseudo_register_read): New function.
4662 (e500_pseudo_register_write): New function.
4663 (e500_dwarf2_reg_to_regnum): New function.
4664 (PPC_UISA_NOFP_SPRS): New macro.
4665 (PPC_EV_REGS): New macro.
4666 (PPC_GPRS_PSEUDO_REGS): New macro.
4667 (registers_e500): New register set for e500.
4668 (variants): Add e500 variant.
4669 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4670 before setting architectural dependent variations. Initialize ev
4671 registers numbers. Add case for e500 architecture. Set the
4672 number of pseudo registers.
4673
64366f1c
EZ
46742002-08-20 Elena Zannoni <ezannoni@redhat.com>
4675
4676 * rs6000-tdep.c: Clean up comments.
4677
7e78f0ca
AC
46782002-08-20 Andrew Cagney <cagney@redhat.com>
4679
4680 * h8300-tdep.c: Re-indent file.
4681
697f7479
JB
46822002-08-20 Jim Blandy <jimb@redhat.com>
4683
4684 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4685 default for this.
697f7479 4686
e86ae29f
KS
46872002-08-20 Keith Seitz <keiths@redhat.com>
4688
4689 * breakpoints.c (watch_command_1): Use internal breakpoint
4690 when setting a watchpoint_scope breakpoint.
4691
216b504f
EZ
46922002-08-20 Elena Zannoni <ezannoni@redhat.com>
4693
4694 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4695 (build_builtin_type_vec64i): Ditto.
4696 (build_builtin_type_vec128): Ditto.
4697 (build_builtin_type_vec128i): Ditto.
4698
f7ab6ec6
MS
46992002-08-19 Michael Snyder <msnyder@redhat.com>
4700
4701 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4702 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4703 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4704 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4705 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4706 CALL_DUMMY_ADDRESS): Delete.
4707 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4708 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4709 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4710 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4711 push_return_address.
4712 (mips_register_raw_size, mips_eabi_use_struct_convention,
4713 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4714 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4715 mips_init_extra_frame_info, mips_eabi_push_arguments,
4716 mips_n32n64_push_arguments, mips_push_return_address,
4717 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4718 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4719
b5d1566e
MS
47202002-08-19 Michael Snyder <msnyder@redhat.com>
4721
4722 * mips-tdep.c (mips_frame_num_args): New function.
4723 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4724 frame_saved_pc, frame_args_address, frame_locals_address,
4725 frame_num_args, and frame_args_skip.
4726 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4727 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4728 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4729 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4730
2f1488ce
MS
47312002-08-20 Michael Snyder <msnyder@redhat.com>
4732
4733 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4734 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4735 * mips-tdep.c (mips_store_struct_return): New function.
4736 (mips_extract_struct_value_address): New function.
4737 (mips_gdbarch_init): Set store_struct_return and
4738 extract_struct_value_address.
4739
41ff2da1
DC
47402002-08-20 David Carlton <carlton@math.stanford.edu>
4741
4742 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4743 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4744 (read_file_scope): Check that line_header is nonzero before
4745 decoding macro information.
4746
e5451d58
MK
47472002-08-20 Mark Kettenis <kettenis@gnu.org>
4748
4749 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4750 flag the general-purpose registers as floating-point on targets
4751 that don't support the floating-point registers.
4752
4a6daafa
EZ
47532002-08-20 Elena Zannoni <ezannoni@redhat.com>
4754
4755 * rs6000-tdep.c (altivec_register_p): Delete.
4756 (rs6000_do_altivec_registers): Delete.
4757 (rs6000_altivec_registers_info): Delete.
4758 (rs6000_do_registers_info): Delete.
4759 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4760 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4761
ab4327e0
EZ
47622002-08-20 Elena Zannoni <ezannoni@redhat.com>
4763
4764 * infcmd.c (do_registers_info): Print vector registers in hex
4765 format only.
4766 (print_vector_info): Check that printing registers
4767 makes sense.
4768 (print_float_info): Ditto.
4769
cb1d2653
AC
47702002-08-20 Andrew Cagney <ac131313@redhat.com>
4771
4772 * mips-tdep.c (mips_gdbarch_init): Update.
4773 (mips_o32_extract_return_value): Rewrite.
4774 (mips_o32_store_return_value): Rewrite.
4775 (mips_o32_xfer_return_value): New function.
4776 (mips_xfer_register): Tweak debug print message. Allow for
4777 buf_offset when dumping the value transfered.
4778
dfc3d9b2
AC
47792002-08-20 Andrew Cagney <ac131313@redhat.com>
4780
4781 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4782 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4783 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4784 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4785 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4786
7807aa61
MS
47872002-08-14 Michael Snyder <msnyder@redhat.com>
4788
4789 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4790
489461e2
EZ
47912002-08-19 Elena Zannoni <ezannoni@redhat.com>
4792
4793 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4794 register.
4795 (P): New macro to define a register as a pseudo register.
4796 (R, R4, R8, R16, FR32, R64, R0): Updated.
4797 (struct variant): Add new fields for number of pseudo registers
4798 and number of total registers.
4799 (tot_num_registers): New macro replacing....
4800 (num_registers): ...deleted macro.
4801 (num_registers): New function.
4802 (num_pseudo_registers): New function.
4803 (variants): Update all variants to intialize new fields correctly.
4804 Postpone initialization of number of pseudo regs and real regs.
4805 (init_variants): New function.
4806 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4807 registers offsets.
4808
fcaffe4c
DC
48092002-08-19 David Carlton <carlton@math.stanford.edu>
4810
2c2738a0
DC
4811 * valops.c (search_struct_field): Change error message to treat
4812 return value of 0 from value_static_field as meaning that field is
4813 optimized out.
4814 (value_struct_elt_for_reference): Ditto.
4815 * values.c (value_static_field): Treat an unresolved location the
4816 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4817 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4818 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4819 * MAINTAINERS: Add self to Write After Approval list.
4820
88658117
AC
48212002-08-19 Andrew Cagney <ac131313@redhat.com>
4822
4823 * mips-tdep.c (mips_xfer_register): New function.
4824 (mips_n32n64_extract_return_value): Rewrite.
4825 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4826 instead of deprecated_extract_return_value.
4827
21283beb
EZ
48282002-08-19 Elena Zannoni <ezannoni@redhat.com>
4829
4830 * rs6000-tdep.c (TDEP): Delete macro.
4831 (branch_dest): Replace use of TDEP macro with its body.
4832 (rs6000_pop_frame): Ditto.
4833 (rs6000_push_arguments): Ditto.
4834 (rs6000_skip_trampoline_code): Ditto.
4835 (rs6000_frame_saved_pc): Ditto.
4836 (rs6000_frame_chain): Ditto.
4837 (rs6000_register_name): Ditto.
4838 (rs6000_register_byte): Ditto.
4839 (rs6000_register_raw_size): Ditto.
4840 (rs6000_register_virtual_type): Ditto.
4841 (rs6000_register_convertible): Ditto.
4842 (rs6000_convert_from_func_ptr_addr): Ditto.
4843
bf072999
DJ
48442002-08-19 Daniel Jacobowitz <drow@mvista.com>
4845
4846 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4847 conditionally.
4848 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4849 MIPS_LINUX_JB_ELEMENT_SIZE.
4850 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4851 for MAX_REGISTER_RAW_SIZE arrays.
4852 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4853 MIPS_LINUX_JB_ELEMENT_SIZE.
4854
9b949a49
PM
48552002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4856
4857 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4858
6d3e79c6
AS
48592002-08-19 Aidan Skinner <aidan@velvet.net>
4860
4861 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4862 ada-valprint.c ada-tasks.c.
4863 (YYFILES): Add ada-exp.y.
4864 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4865 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4866 (ada-exp.tab.o): New target.
4867
06c0b04e
AC
48682002-08-18 Andrew Cagney <ac131313@redhat.com>
4869
4870 * regcache.c (regcache_xfer_part): New function.
4871 (regcache_raw_read_part): New function.
4872 (regcache_raw_write_part): New function.
4873 (regcache_cooked_read_part): New function.
4874 (regcache_cooked_write_part): New function.
4875 * regcache.h (regcache_raw_read_part): Declare.
4876 (regcache_raw_write_part): Declare.
4877 (regcache_cooked_read_part): Declare.
4878 (regcache_cooked_write_part): Declare.
4879
92d1e331
DJ
48802002-08-18 Daniel Jacobowitz <drow@mvista.com>
4881
4882 * remote.c (remote_open_1): Add async_p.
4883 (remote_async_open_1): Delete.
4884 (open_remote_target): Delete.
4885 (remote_open, extended_remote_open): Update calls to remote_open_1.
4886 (remote_async_open, extended_remote_async_open): Call
4887 remote_open_1 instead of remote_async_open_1.
4888
247055de
MK
48892002-08-19 Mark Kettenis <kettenis@gnu.org>
4890
4891 * blockframe.c: Fix a few coding standard violations.
4892
641eda39
MK
48932002-08-19 Mark Kettenis <kettenis@gnu.org>
4894
0b717710
MK
4895 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4896 here from ...
4897 * config/i386/tm-i386sco5.h: ... here. File removed.
4898 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4899
26d28e12 4900 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4901 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4902 (TM_FILE): Set to tm-i386.h.
4903 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4904 * config/i386/tm-i386v.h: Remove file.
4905 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4906 instead of "i386/tm-i386v.h".
4907 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4908 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4909 "i386/tm-i386v.h".
4910 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4911 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4912 "i386/tm-i386.h".
4913
d4e0bab4
MK
49142002-08-18 Mark Kettenis <kettenis@gnu.org>
4915
4916 * config/i386/nm-i386v.h: Add protection against
4917 multiple-inclusion.
4918 (i386_register_u_addr): Remove prototype.
4919 (register_u_addr): New prototype.
4920 (REGISTER_U_ADDR): Redefine accordingly.
4921 * i386v-nat.c: Improve several comments.
4922 (i386_register_u_addr): Change signature and rename to
4923 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4924 ubase variable.
4925
46cac009
AC
49262002-08-18 Andrew Cagney <ac131313@redhat.com>
4927
4928 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4929 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4930 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4931 deprecated_extract_return_value.
4932 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4933 rename mips_o32o64_push_arguments.
4934 (mips_gdbarch_init): Update.
4935 (mips_extract_return_value): Delete.
4936 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4937 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4938 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4939 (mips_n32n64_extract_return_value): Clone
4940 mips_extract_return_value.
4941 (mips_store_return_value): Delete.
4942 (mips_o32_store_return_value): Clone mips_store_return_value.
4943 (mips_o64_store_return_value): Clone mips_store_return_value.
4944 (mips_eabi_store_return_value): Clone mips_store_return_value.
4945 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4946
d2e4a39e
AS
49472002-08-18 Aidan Skinner <aidan@velvet.net>
4948
0c30c098
AS
4949 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4950 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4951
49522002-08-18 Aidan Skinner <aidan@velvet.net>
4953
4954 * ada-lang.c: Run through gdb_indent.sh.
4955 * ada-lang.h: Run through gdb_indent.sh.
4956 * ada-tasks.c: Run through gdb_indent.sh.
4957 * ada-typeprint.c: Run through gdb_indent.sh.
4958 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4959
01fc4e33
AC
49602002-08-18 Andrew Cagney <ac131313@redhat.com>
4961
4962 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4963 ABI.
4964
d8ee244c
MK
49652002-08-18 Mark Kettenis <kettenis@gnu.org>
4966
c38d8261
MK
4967 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4968
222db64c
MK
4969 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4970 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4971
c2848c82
MK
4972 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4973 write_register_gen instead of write_register_bytes.
4974
d8ee244c
MK
4975 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4976 i[3456]-*-osf1mk* configurations have been made obsolete.
4977 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4978 i[3456]86-*-osf1mk* hosts obsolete.
4979 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4980 targets obsolete.
4981 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4982 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4983 config/i386/i386m3.mt, config/i386/nm-m3.h,
4984 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4985 config/i386/i386mk.mh, config/i386/i386mk.mt,
4986 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4987 obsolete.
4988 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4989 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4990 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4991
61d8d407
AC
49922002-08-18 Andrew Cagney <ac131313@redhat.com>
4993
4994 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4995 (hppa_value_returned_from_stack): Declare.
4996 (hppa_extract_return_value): Declare.
4997 * config/pa/hppa.mt: New file.
4998 * configure.tgt: Recognize hppa*-*-*.
4999 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5000
0c52bd59
MK
50012002-08-18 Mark Kettenis <kettenis@gnu.org>
5002
5003 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5004 comment.
5005
b5686e99
MK
50062002-08-17 Mark Kettenis <kettenis@gnu.org>
5007
5008 * top.c (gdb_rl_operate_and_get_next): Make sure
5009 operate-and-get-next functions correctly even when the history
5010 list is completely filled.
5011
c1bab85b
AC
50122002-08-18 Andrew Cagney <ac131313@redhat.com>
5013
5014 * MAINTAINERS (Target Instruction Set Architectures): Rename
5015 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5016 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5017 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5018 already listed under Host/Native.
5019
5020 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5021 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5022 mips*-*-*.
5023
32089c7c
AC
50242002-08-17 Andrew Cagney <ac131313@redhat.com>
5025
5026 * config/ia64/ia64.mt: New file.
5027 * config/alpha/alpha.mt: New file.
5028 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5029 ia64-linux-gnu. Mention that ia64-elf is broken.
5030 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5031
b4671f85
MK
50322002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5033
5034 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5035 generic_func_frame_valid instead of func_frame_valid.
5036
c8edd8b4
JB
50372002-08-16 Joel Brobecker <brobecker@gnat.com>
5038
5039 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5040 procfs appears to be broken when debugging on multi-processor
5041 machines. So enable software single stepping in order to avoid
5042 using the procfs interface to do next/step operations, using
5043 internal breakpoints instead.
5044
5045 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5046 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5047 make this pc address equal to the value it would have if the
5048 system stepping capability was used. Also set a new flag used
5049 to ensure that we don't readjust the PC one more time later.
5050
5051 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5052 address by DECR_PC_AFTER_BREAK when software single step is
5053 in use for this architecture, as this has already been taken
5054 care of in handle_inferior_event().
5055
238617f6
JB
50562002-08-16 Joel Brobecker <brobecker@gnat.com>
5057
5058 * infrun.c (handle_inferior_event): Minor reformatting, to make
5059 a rather long condition expression easier to read.
5060
541a7aac
AC
50612002-08-16 Andrew Cagney <ac131313@redhat.com>
5062
5063 * Makefile.in (gdbtk.o): Move to end of file.
5064 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5065 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5066 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5067 (gdbtk-wrapper.o, gdbres.o): Ditto.
5068
f92d4a7b
AC
50692002-08-16 Andrew Cagney <ac131313@redhat.com>
5070
5071 * Makefile.in (copying.o): Separate out compile rule.
5072 (hpux-thread.o, procfs.o, signals.o): Ditto.
5073 (v850ice.o, z8k-tdep.o): Ditto.
5074 (tui-file.o): Move to TUI section.
5075 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5076 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5077
1cce71eb
JB
50782002-08-16 Joel Brobecker <brobecker@gnat.com>
5079
5080 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5081 skip_trampoline_code, for better namespace-proofing.
5082
5083 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5084
0851f23d
JB
50852002-08-16 Joel Brobecker <brobecker@gnat.com>
5086
5087 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5088
f8d40ec8
JB
50892002-08-16 Joel Brobecker <brobecker@gnat.com>
5090
5091 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5092 signal, check whether we hit a breakpoint before checking for a
5093 single step breakpoint. Otherwise, GDB fails to notice that a
5094 breakpoint has been hit when stepping onto a breakpoint.
5095
63d022e0
KS
50962002-08-16 Keith Seitz <keiths@redhat.com>
5097
5098 * gdb-events.sh (clear_gdb_event_hooks): New function.
5099 * gdb-events.c: Regenerate.
5100 * gdb-events.h: Regenerate.
5101
6e31adb3
AC
51022002-08-16 Andrew Cagney <ac131313@redhat.com>
5103
5104 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5105 not_a_sw_breakpoint.
5106 * breakpoint.h (bpstat_stop_status): Add parameter names.
5107
c8189ed1
GS
51082002-08-16 Grace Sainsbury <graces@redhat.com>
5109
5110 * remote.c (remote_insert_hw_breakpoint)
5111 (remote_remove_hw_breakpoint): Fix calculation of length field
5112 for Z-packet.
5113
d05285fa
MS
51142002-08-15 Michael Snyder <msnyder@redhat.com>
5115
466d7106
MS
5116 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5117 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5118 (supply_fpregset): Ditto.
5119
d05285fa
MS
5120 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5121 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5122 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5123 (TARGET_READ_SP): Delete.
bf1f5b4c 5124 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5125 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5126 Delete.
5127 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5128 from macros to functions.
bf1f5b4c 5129
d05285fa
MS
5130 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5131 (mips_register_convertible, mips_register_convert_to_virtual,
5132 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5133 (mips_read_sp): New function.
5134 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5135 (mips_do_registers_info): Make static.
5136 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5137 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5138 (mips_register_convert_from_type, mips_register_convert_to_type):
5139 New functions.
5140 (mips_gdbarch_init): Set up function_start_offset,
5141 register_virtual_size, pc_in_sigtramp.
d05285fa 5142
e76f1f2e
AC
51432002-08-15 Andrew Cagney <ac131313@redhat.com>
5144
5145 * infcmd.c (vector_info): New function.
5146 (_initialize_infcmd): Add command "info vector".
5147 (print_vector_info): New function.
5148
5149 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5150 * gdbarch.h, gdbarch.c: Regenerate.
5151
4782dc19
AC
51522002-08-15 Andrew Cagney <ac131313@redhat.com>
5153
5154 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5155 ``print_all''. Only print vector registers when ``print_all''.
5156
23e3a7ac
AC
51572002-08-15 Andrew Cagney <ac131313@redhat.com>
5158
8e186fd6
AC
5159 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5160 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5161
23e3a7ac
AC
5162 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5163 Add `args' parameter.
5164 * gdbarch.h, gdbarch.c: Regenerate.
5165
5166 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5167
5168 * infcmd.c (float_info): Call print_float_info.
5169 (print_float_info): New function. By default, print the
5170 floating-point registers.
5171
5172 * arch-utils.h (default_print_float_info): Delete declaration.
5173 * arch-utils.c (default_print_float_info): Delete function.
5174
e0ca2bb9
MK
51752002-08-16 Mark Kettenis <kettenis@gnu.org>
5176
3f733acc
MK
5177 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5178 out define.
5179
7d8d2918
MK
5180 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5181 FRAME.
5182
1c7cc583
MK
5183 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5184 * configure.host: Make i[3456]86-*-aix host obsolete.
5185 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5186 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5187 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5188 config/i386/xm-i386aix.h: Make files obsolete.
5189 * i386aix-nat.c: Make file obsolete.
5190 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5191 (i386aix-nat.o): Make target obsolete.
5192
e0ca2bb9
MK
5193 * config/i386/nm-gnu.h: Removed.
5194 * config/i386/nm-i386gnu.h: New file.
5195 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5196 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5197 Moved here from ...
5198 * config/i386/tm-i386gnu.h: ... here. Removed.
5199 * config/i386/xm-i386gnu.h: Removed.
5200 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5201 (NAT_FILE): Set to nm-i386gnu.h.
5202 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5203 * i386-tdep.c: New file.
5204 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5205 (i386gnu-tdep.o): Specify dependencies.
5206
16057ec7 52072002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5208
6b99ee2e
MK
5209 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5210 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5211 Adjust a few comments to reflect reality a bit closer.
5212 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5213 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5214 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5215 target_insert_watchpoint, target_remove_watchpoint):
5216 Move defines to ...
5217 * config/i386/nm-i386sco5.h: ... here.
5218 (kernel_u_size): Add prototype. Improve a few comments and add
5219 protection against multiple inclusion.
5220
d9a6f65c
MK
5221 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5222 out define.
5223
047eff6a
MK
5224 * uw-thread.c (SP_ARG0): Define if not already defined.
5225 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5226
dcdb1290
MK
5227 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5228
5d2d0b2a
MK
5229 * config/i386/tm-i386.h: Don't include "regcache.h".
5230
61113f8b
MK
5231 * i387-tdep.h (i387_print_float_info): New prototype.
5232 * i387-tdep.c (print_i387_value, print_i387_ext,
5233 print_i387_status_word, print_i387_control_word): Add `struct
5234 ui_file *' argument and use it for output.
5235 (i387_print_float_info): Renamed from i387_float_info. Add
5236 `struct gdbarch *' and `struct ui_file *' arguments and use the
5237 latter for output.
5238 * i386-tdep.c: Include "i387-tdep.h".
5239 (i386_gdbarch_init): Set print_float_info.
5240 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5241 (FLOAT_INFO): Remove define.
5242
46e0f506
MS
52432002-08-13 Michael Snyder <msnyder@redhat.com>
5244
5245 * mips-tdep.c (mips_push_arguments): Rename to
5246 mips_eabi_push_arguments, and tune for EABI.
5247 (MIPS_REGS_HAVE_HOME_P): Delete.
5248 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5249 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5250 Delete references to mips_regs_have_home_p.
5251
409268de
KS
52522002-08-14 Keith Seitz <keiths@redhat.com>
5253
5254 * Makefile.in (install-gdbtk): Create insight plugin directory.
5255 Install plugins.tcl file.
5256
ffc6a242
KS
52572002-08-14 Keith Seitz <keiths@redhat.com>
5258
5259 * configure.in: Move SUBDIRS to near top of the file so that
5260 --enable options may add things to it.
5261 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5262 * configure: Regenerate.
5263
ebafbe83
MS
52642002-08-13 Michael Snyder <msnyder@redhat.com>
5265
5266 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5267 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5268 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5269
32f6f25d
AC
52702002-08-13 Andrew Cagney <ac131313@redhat.com>
5271
5272 * vax-tdep.c (vax_get_saved_register): Delete function.
5273 (vax_gdbarch_init): Update.
5274 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5275 (ns32k_gdbarch_init): Update.
5276 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5277 (alpha_gdbarch_init): Update.
5278
53826de9
AC
52792002-08-13 Andrew Cagney <cagney@redhat.com>
5280
5281 * regcache.c (init_regcache_descr): Overallocate the
5282 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5283 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5284 nr_raw_registers.
5285 (set_register_cached): Add range checking assertions. Use
5286 current_regcache.
5287
16057ec7 52882002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5289
5290 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5291 numbers for MMX registers.
5292
7b4c2dce
AC
52932002-08-13 Andrew Cagney <cagney@redhat.com>
5294
5295 * i386-tdep.c (i386_gdbarch_init): Use
5296 generic_unwind_get_saved_register.
5297
1e03ad20
KB
52982002-08-13 Kevin Buettner <kevinb@redhat.com>
5299
5300 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5301 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5302 target vector.
5303 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5304 Delete. Add comment regarding this now-deleted target method.
5305
548bcbec
SC
53062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5307
5308 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5309 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5310 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5311 real PC and the page number (if it's within the memory bank window).
5312 (m68hc11_pseudo_register_write): Likewise when saving.
5313 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5314 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5315 (m68hc11_register_raw_size): And use 32-bit for it.
5316 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5317 16K memory bank is used by the prog; also use the virtual pc.
5318
7df11f59
SC
53192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5320
5321 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5322 (m68hc11_gdbarch_init): Install it in gdbarch.
5323 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5324 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5325 (MSYMBOL_SIZE): New for documentation.
5326 (insn_return_kind): Enum to specify how a function returns.
5327 (frame_extra_info): Cleanup and record the return mode.
5328 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5329 register in address computation.
5330 (m68hc11_get_return_insn): New to obtain the return instruction used
5331 by the function.
5332 (m68hc11_frame_init_saved_regs): Take into account the return
5333 instruction used by the function for far and interrupt functions.
5334 (m68hc11_init_extra_frame_info): Take into account page register.
5335 (m68hc11_frame_args_address): Adjust according to the return mode.
5336 (show_regs): Print page register only when it's used.
5337
5706502a
SC
53382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5339
5340 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5341 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5342 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5343 registers.
5344 (m68hc11_register_raw_size): Likewise.
5345
28fc6740
AC
53462002-08-13 Andrew Cagney <cagney@redhat.com>
5347
5348 * i386-tdep.c (i386_register_name): Handle mmx registers.
5349 (mmx_regnum_p): New function.
5350 (i386_mmx_names): New array.
5351 (mmx_num_regs): New variable.
5352 (i386_pseudo_register_read): New function.
5353 (i386_pseudo_register_write): New function.
5354 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5355
5356 * regcache.c (regcache_raw_read_unsigned): New function.
5357 (regcache_raw_read_signed): New function.
5358 * regcache.h (regcache_raw_read_unsigned): Declare.
5359 (regcache_raw_read_signed): Declare.
5360
a378f419
AC
53612002-08-13 Andrew Cagney <cagney@redhat.com>
5362
5363 * regcache.c (regcache_raw_read_as_address): Delete function.
5364 (regcache_cooked_read_signed): New function.
5365 (regcache_cooked_read_unsigned): New function.
5366 * regcache.h (regcache_cooked_read_signed): Declare.
5367 (regcache_cooked_read_unsigned): Declare.
5368 (regcache_raw_read_as_address): Delete declaration.
5369
5370 * blockframe.c (generic_read_register_dummy): Use
5371 regcache_cooked_read_unsigned.
5372 * i386-tdep.c (i386_extract_struct_value_address): Use
5373 regcache_cooked_read_unsigned.
5374
81967506
SC
53752002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5376
5377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5378 double sizes according to ELF ABI flags.
5379 (gdbarch_tdep): Record elf_flags.
5380
ffe1f3ee
SC
53812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5382
5383 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5384 (m6812_prolog): They can appear in 68HC12 function prologue.
5385 (m68hc11_frame_chain): Cleanup.
5386
98216c5d
AC
53872002-08-12 Andrew Cagney <cagney@redhat.com>
5388
5389 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5390 declarations.
5391 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5392 (i386_linux_register_raw_size): Delete function.
5393 (i386_linux_init_abi): Update.
5394 * i386-tdep.c (i386_register_raw_size): Delete function.
5395 (i386_register_byte): Delete function.
5396 (i386_gdbarch_init): Update.
5397 (i386_register_size): Delete array.
5398 (i386_register_offset): Delete array.
5399
5400 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5401 (REGISTER_RAW_SIZE): Delete macro.
5402 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5403 (REGISTER_BYTE): Delete macro.
5404
3b19021e
AS
54052002-08-11 Aidan Skinner <aidan@velvet.net>
5406
5407 * ada-lang.c (ada_lookup_partial_symbol)
5408 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5409 prototype names so that grep ^func works properly.
5410
5411 * ada-lang.c (ada_array_element_type)
5412 (ada_lookup_partial_symbol): Fix typos in parameter list.
5413
5414 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5415 Fix prototype names so that grep ^func works properly.
5416
b063e7a2
AC
54172002-08-10 Andrew Cagney <cagney@redhat.com>
5418 Elena Zannoni <ezannoni@redhat.com>
5419 Martin M. Hunt <hunt@redhat.com>
5420
5421 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5422 (build_builtin_type_vec128i): Set the vector bit.
5423 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5424 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5425 (build_builtin_type_vec64): New function.
5426 (build_builtin_type_vec64i): New function.
5427 (build_gdbtypes): Initialize builtin_type_vec64 and
5428 builtin_type_vec64i.
5429
a7e3c2ad
AC
54302002-08-09 Andrew Cagney <cagney@redhat.com>
5431
5432 * regcache.c (regcache_dump): Compare the register offset
5433 with REGISTER_BYTE.
5434 * arch-utils.c (generic_register_byte): New function.
5435 * arch-utils.h (generic_register_byte): Declare.
5436 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5437 * gdbarch.h, gdbarch.c: Regenerate.
5438
af030b9a
AC
54392002-08-09 Andrew Cagney <cagney@redhat.com>
5440
5441 * regcache.c: Include "gdbcmd.h"
5442 (_initialize_regcache): Add commands "maintenance print
5443 registers", "maintenance print raw-registers" and "maintenance
5444 print cooked-registers".
5445 (enum regcache_dump_what): Define.
5446 (dump_endian_bytes): New function.
5447 (regcache_dump): New function.
5448 (regcache_print): New function.
5449 (maintenance_print_registers): New function.
5450 (maintenance_print_raw_registers): New function.
5451 (maintenance_print_cooked_registers): New function.
5452 * Makefile.in (regcache.o): Update dependencies.
5453
cb3d25d1
MS
54542002-08-09 Michael Snyder <msnyder@redhat.com>
5455
5456 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5457 (mips_push_arguments): Correct some comments. Use paddr_nz
5458 for printing addresses in debug output. Replace static
5459 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5460 (mips_n32n64_push_arguments): New function, cloned from
5461 mips_push_arguments and tuned for the n32/n64 ABI.
5462 (mips_push_register): Buffer needs dynamic allocation.
5463 (mips_print_register): Ditto.
5464 (do_gp_register_row): Ditto.
5465 (mips_store_return_value): Ditto.
5466 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5467
2163ab9d
DH
54682002-08-09 Don Howard <dhoward@redhat.com>
5469
5470 * memattr.c (mem_info_command): Print special case of upper bound
5471 as max CORE_ADDR + 1.
5472
b78bcb18
MS
54732002-08-08 Michael Snyder <msnyder@redhat.com>
5474
5475 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5476 returns structs by ref if they're too big to fit in two registers.
5477
ffabd70d
KB
54782002-08-09 Kevin Buettner <kevinb@redhat.com>
5479
5480 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5481 saved regs value.
5482 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5483 mips_find_saved_regs().
5484 (mips_pop_frame): Likewise.
5485
fbcdb4a3
KB
54862002-08-09 Kevin Buettner <kevinb@redhat.com>
5487
5488 * blockframe.c (frame_saved_regs_register_unwind): Revise
5489 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5490 frames are in use.
5491
3c3bea1c
GS
54922002-08-09 Grace Sainsbury <graces@redhat.com>
5493
5494 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5495 T-packets; the 'a' is not taken as a register number.
5496 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5497 (remote_stopped_data_address): New functions; add to target
5498 vector.
5499 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5500 prototypes to match other implementations of this
5501 function. replace integer argument with pointer -- the length
5502 field in the Z-packet is the length of what is pointed to or 1 if
5503 pointer is null. Add to target vector.
5504 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5505 target vector.
5506
5507 From Mark Salter:
5508 * remote.c (remote_wait): Add support to extract optional
5509 watchpoint information from T-packet. Ignore unrecognized
5510 optional info in T-packet.
5511 (remote_async_wait): Ditto.
5512
5d1d95de
CV
55132002-08-09 Corinna Vinschen <vinschen@redhat.com>
5514
5515 * cli/cli-dump.c: Change fopen modes to use binary open modes
5516 as defined in include/fopen-bin.h throughout.
5517
c86b5b38
MS
55182002-08-08 Michael Snyder <msnyder@redhat.com>
5519
5520 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5521
b30590dc
KB
55222002-08-08 Kevin Buettner <kevinb@redhat.com>
5523
5524 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5525 assertion failure by returning early after a warning.
5526
498868ed
KB
55272002-08-08 Kevin Buettner <kevinb@redhat.com>
5528
5529 * mips-tdep.c (mips_find_saved_regs): Make static.
5530 (mips_frame_init_saved_regs): New function.
5531 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5532 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5533 (mips_find_saved_regs): Delete declaration.
5534
b2dd6311
GS
55352002-08-08 Grace Sainsbury <graces@redhat.com>
5536
3c3bea1c
GS
5537 * remote.c (remote_wait, remote_async_wait): Change
5538 thread_num from int to ULONGEST.
5539 (unpack_varlen_hex): Change result parameter from
5540 int * to ULONGEST *.
b2dd6311 5541
ea47855f
AC
55422002-08-08 Andrew Cagney <ac131313@redhat.com>
5543
5544 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5545 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5546 powerpc*-*-*.
5547 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5548
69db8bae
AC
55492002-08-08 Andrew Cagney <cagney@redhat.com>
5550
5551 * gcore.c (override_derive_stack_segment): Delete variable.
5552 (preempt_derive_stack_segment): Delete function.
5553 (derive_stack_segment): Delete function.
5554 (default_derive_stack_segment): Renamed to derive_stack_segment.
5555 (override_derive_heap_segment): Delete variable.
5556 (preempt_derive_heap_segment): Delete function.
5557 (derive_heap_segment): Delete function.
5558 (default_derive_heap_segment): Rename to derive_heap_segment.
5559
cb811fe7
MS
55602002-08-06 Michael Snyder <msnyder@redhat.com>
5561
5562 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5563 * mips-tdep.c (mips_EABI_use_struct_convention,
5564 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5565 New functions. (mips_use_struct_convention): Delete.
5566 (mips_gdbarch_init): set use_gdbarch_convention.
5567
8b389c40
MS
55682002-08-06 Michael Snyder <msnyder@redhat.com>
5569
5570 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5571 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5572 mips_o32_reg_struct_has_addr): New functions.
5573 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5574
5c27f28a
AC
55752002-08-07 Andrew Cagney <ac131313@redhat.com>
5576
5577 * regcache.c (pseudo_register): Delete function.
5578 (fetch_register): Delete function.
5579 (store_register): Delete function.
5580 (regcache_raw_read, legacy_read_register_gen): Use
5581 target_fetch_registers instead of fetch_register.
5582 (legacy_write_register_gen, regcache_raw_write): Use
5583 target_store_register instead of store_register.
5584 (write_register_bytes): Ditto.
5585
5586 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5587 (STORE_PSEUDO_REGISTER): Delete.
5588 * gdbarch.h, gdbarch.c: Regenerate.
5589
5b331675
CV
55902002-08-06 Corinna Vinschen <vinschen@redhat.com>
5591
5592 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5593 write dump file binary.
5594
6acdf5c7
MS
55952002-08-05 Michael Snyder <msnyder@redhat.com>
5596
5597 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5598 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5599 (mips_gdbarch_init): Set N32 target to be mips64.
5600
b2f01c35
KB
56012002-08-06 Kevin Buettner <kevinb@redhat.com>
5602
5603 * frame.c (find_saved_register): Break out of loop once saved
5604 register address is found. Don't mention sparc in loop comment
5605 anymore.
5606
63db5580
KB
56072002-08-06 Kevin Buettner <kevinb@redhat.com>
5608
5609 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5610 mips_default_saved_regsize to 8.
5611
5e34e75e
AC
56122002-08-06 Andrew Cagney <ac131313@redhat.com>
5613
5614 * gcore.c: Do not include <sys/procfs.h>.
5615 * Makefile.in (gcore.o): Update dependencies.
5616
eb4c54a2
AC
56172002-08-06 Andrew Cagney <cagney@redhat.com>
5618
5619 * configure.tgt: Make arc-*-* obsolete.
5620 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5621 * MAINTAINERS: Make arc-elf obsolete.
5622 * arc-tdep.c: Make file obsolete.
5623 * config/arc/arc.mt: Ditto.
5624 * config/arc/tm-arc.h: Ditto.
5625
ced15480
TR
56262002-08-05 Theodore A. Roth <troth@verinet.com>
5627
c1bab85b 5628 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5629
b4743822
AC
56302002-08-05 Andrew Cagney <ac131313@redhat.com>
5631
5632 * mcore-tdep.c (mcore_gdbarch_init): Use
5633 generic_unwind_get_saved_register instead of
5634 generic_get_saved_register.
5635 * v850-tdep.c (v850_gdbarch_init): Ditto.
5636 * frv-tdep.c (frv_gdbarch_init): Ditto.
5637 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5638 * s390-tdep.c (s390_gdbarch_init): Ditto.
5639 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5640 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5641 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5642
3956d554
JB
56432002-08-05 Joel Brobecker <brobecker@gnat.com>
5644
5645 * objfiles.h: Add missing #include "symfile.h"
5646
5647 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5648
8249c0d6
AC
56492002-08-04 Andrew Cagney <ac131313@redhat.com>
5650
5651 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5652 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5653 of FIELD_BITSIZE.
5654
b9d14705
DJ
56552002-08-04 Daniel Jacobowitz <drow@mvista.com>
5656
5657 * NEWS: Cleanup and nitpick.
5658
dd73b9bb
AC
56592002-08-03 Andrew Cagney <ac131313@redhat.com>
5660
5661 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5662
043a27f8
AC
56632002-08-03 Andrew Cagney <ac131313@redhat.com>
5664
5665 * Makefile.in (gdbtk-bp.o): Update dependencies.
5666 (gdbtk-register.o): Ditto.
5667 (gdbtk-varobj.o): Ditto.
5668
46ce284d
AC
56692002-08-03 Andrew Cagney <cagney@redhat.com>
5670
5671 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5672 m68hc11_fetch_pseudo_register.
5673 (m68hc11_pseudo_register_write): Replace
5674 m68hc11_store_pseudo_register.
5675 (m68hc11_gdbarch_init): Update.
5676
b66d6d2e
AC
5677Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5678
5679 * gdbarch.sh: Include "gdb_string.h".
5680 * gdbarch.c: Regenerate.
5681
5682 * regcache.c: Include "gdb_string.h".
5683 * ax-general.c: Ditto.
5684 * varobj.c: Ditto.
5685 * std-regs.c: Ditto.
5686 * fbsd-proc.c: Ditto.
5687 * thread.c: Ditto.
5688
5689 * Makefile.in (regcache.o): Update dependencies.
5690 (thread.o, gdbarch.o): Ditto.
5691 (ax-general.o, gdbarch.o): Ditto.
5692 (varobj.o, std-regs.o): Ditto.
5693 (fbsd-proc.o): Specify dependencies.
5694
29e1842b
AC
56952002-08-02 Andrew Cagney <cagney@redhat.com>
5696
5697 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5698 regnum.
5699 (regcache_cooked_write): Ditto.
5700
68365089
AC
57012002-08-02 Andrew Cagney <ac131313@redhat.com>
5702
5703 * regcache.c (regcache_cooked_read): New function.
5704 (regcache_cooked_write): New function.
5705 (read_register_gen): Rewrite using regcache_cooked_read.
5706 (write_register_gen): Rewrite using regcache_cooked_write.
5707
5708 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5709 Declare.
5710
d8124050
AC
57112002-08-02 Andrew Cagney <cagney@redhat.com>
5712
5713 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5714 Replace the architecture methods register_read and register_write.
5715 * gdbarch.h, gdbarch.c: Regenerate.
5716 * regcache.c (init_regcache_descr): Update.
5717 (read_register_gen): Update.
5718 (write_register_gen): Update.
5719 (supply_register): Update comment.
5720
5721 * sh-tdep.c (sh_gdbarch_init): Update.
5722 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5723 `regcache' and `gdbarch' parameters. Make `buffer' a void
5724 pointer. Update code.
5725 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5726 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5727 void pointer. Update code.
5728 (sh64_register_write): Delete.
5729 (sh4_register_read): Delete.
5730 (sh64_register_read): Delete.
5731 (sh4_register_write): Delete.
5732 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5733 void pointer, `to' parameter a void pointer.
5734 (sh_sh64_register_convert_to_raw): Ditto.
5735
a6425924
KB
57362002-08-01 Kevin Buettner <kevinb@redhat.com>
5737
5738 * mips-tdep.c (mips_register_virtual_type): Use architecture
5739 invariant return values.
5740
ff5922b5
AC
57412002-08-01 Andrew Cagney <cagney@redhat.com>
5742
5743 * linux-proc.c: Include "gdb_string.h".
5744 * Makefile.in (linux-proc.o): Update dependency list.
5745
32a6503c
KB
57462002-08-01 Kevin Buettner <kevinb@redhat.com>
5747
5748 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5749 comment.
5750
ccaa32c7
GS
57512002-08-01 Grace Sainsbury <graces@redhat.com>
5752
5753 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5754 to_insert_watchpoint, to_remove_watchpoint,
5755 to_stopped_by_watchpoint, to_stopped_data_address,
5756 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5757 target vecctor. Define their corresponding macros so they call
5758 them.
5759
5760 * target.c: Add default and debug versions of for
5761 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5762 to_insert_watchpoint, to_remove_watchpoint,
5763 to_stopped_by_watchpoint, to_stopped_data_address,
5764 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5765
78fde5f8
KB
57662002-08-01 Kevin Buettner <kevinb@redhat.com>
5767
5768 * mips-tdep.c (mips_register_virtual_type): New function.
5769 (mips_gdbarch_init): Register mips_register_virtual_type()
5770 with gdbarch machinery.
5771 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5772 this file instead of tm-bigmips.h.
5773 (MIPS_REGSIZE): Delete this macro.
5774 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5775 multiarch version in mips-tdep.c will be found.
5776
db034ac5
AC
57772002-08-01 Andrew Cagney <cagney@redhat.com>
5778
5779 * NEWS: Menion that CHILL has been made obsolete.
5780
5781 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5782 * stabsread.c (read_range_type): Ditto.
5783 * gdbtypes.h: Ditto.
5784 * language.c (binop_type_check): Ditto.
5785 (binop_result_type): Ditto.
5786 (integral_type): Ditto.
5787 (character_type): Ditto.
5788 (string_type): Ditto.
5789 (boolean_type): Ditto.
5790 (structured_type): Ditto.
5791 (lang_bool_type): Ditto.
5792 (binop_type_check): Ditto.
5793 * language.h (_LANG_chill): Ditto.
5794 * dwarfread.c (set_cu_language): Ditto.
5795 * dwarfread.c (CHILL_PRODUCER): Ditto.
5796 * dwarfread.c (handle_producer): Ditto.
5797 * expression.h (enum exp_opcode): Ditto.
5798 * eval.c: Ditto for comments.
5799 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5800 * expprint.c (print_subexp): Ditto.
5801 (print_subexp): Ditto.
5802 * valops.c (value_cast): Ditto.
5803 (search_struct_field): Ditto.
5804 * value.h (COERCE_VARYING_ARRAY): Ditto.
5805 * symfile.c (init_filename_language_table): Ditto.
5806 (add_psymbol_with_dem_name_to_list): Ditto.
5807 * valarith.c (value_binop): Ditto.
5808 (value_neg): Ditto.
5809 * valops.c (value_slice): Ditto.
5810 * symtab.h (union language_specific): Ditto.
5811 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5812 (SYMBOL_DEMANGLED_NAME): Ditto.
5813 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5814 * defs.h (enum language): Ditto.
5815 * symtab.c (got_symtab): Ditto.
5816 * utils.c (fprintf_symbol_filtered): Ditto.
5817
5818 * ch-typeprint.c: Make file obsolete.
5819 * ch-valprint.c: Make file obsolete.
5820 * ch-lang.h: Make file obsolete.
5821 * ch-exp.c: Make file obsolete.
5822 * ch-lang.c: Make file obsolete.
5823
5824 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5825 CHILL_LIB.
5826 (TARGET_FLAGS_TO_PASS): Ditto.
5827 (CHILLFLAGS): Obsolete.
5828 (CHILL): Obsolete.
5829 (CHILL_FOR_TARGET): Obsolete.
5830 (CHILL_LIB): Obsolete.
5831 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5832 ch-valprint.c.
5833 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5834 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5835 ch-lang.o.
5836 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5837 targets.
5838
8aaf0b47
JB
58392002-07-31 Joel Brobecker <brobecker@gnat.com>
5840
5841 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5842 This does not change anything at the moment, but will be helpful
5843 later when full Ada support is integrated.
5844
f3a7b3a5
KB
58452002-07-31 Kevin Buettner <kevinb@redhat.com>
5846
5847 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5848 help message.
5849
fb850278
KB
58502002-07-31 Kevin Buettner <kevinb@redhat.com>
5851
5852 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5853 and save it in a local variable. Use variable in later test.
5854
e3bddbfa
KB
58552002-07-31 Kevin Buettner <kevinb@redhat.com>
5856
5857 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5858 test. (Thanks to Daniel Jacobowitz.)
5859
28d169de
KB
58602002-07-31 Kevin Buettner <kevinb@redhat.com>
5861
5862 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5863 (mips_abi_strings): Add "n64".
5864 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5865
7fe7e44e
KB
58662002-07-31 Kevin Buettner <kevinb@redhat.com>
5867
5868 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5869 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5870
c6caf090
KB
58712002-07-31 Kevin Buettner <kevinb@redhat.com>
5872
5873 * utils.c (host_pointer_to_address, address_to_host_pointer):
5874 Use gdb_assert() instead of explicit call to internal_error().
5875
c41669e0
KB
58762002-07-30 Kevin Buettner <kevinb@redhat.com>
5877
5878 * Makefile.in (rs6000-nat.o): Update dependencies.
5879
5880 From Nicholas Duffek:
5881 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5882 (aix-thread.o): New rule.
5883 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5884 * config/powerpc/aix432.mh: New file.
5885
2fda4977
DJ
58862002-07-30 Daniel Jacobowitz <drow@mvista.com>
5887
5888 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5889 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5890 (fetch_core_registers, ppc_linux_supply_gregset)
5891 (ppc_linux_supply_fpregset): New functions.
5892 (ppc_linux_regset_core_fns): New.
5893 (_initialize_ppc_linux_tdep): Call add_core_fns.
5894 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5895 and ppc_linux_supply_gregset.
5896 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5897 (supply_fpregset): Call ppc_linux_supply_fpregset.
5898 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5899 corelow.o.
5900 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5901
729051e6
DJ
59022002-07-30 Daniel Jacobowitz <drow@mvista.com>
5903
5904 * symtab.c (lookup_symbol): Demangle before lowercasing.
5905
5f8a3188
AC
59062002-07-30 Andrew Cagney <ac131313@redhat.com>
5907
5908 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5909 declaration.
5910 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5911 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5912 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5913 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5914 "gdb_string.h".
5915 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5916 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5917 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5918 (avr-tdep.o, mon960-rom.o): Ditto.
5919 (aout_stabs_gnu_h): Define.
5920 (symtab_h): Remove $(gdb_obstack_h).
5921
67f07146
JB
59222002-07-30 Jim Blandy <jimb@redhat.com>
5923
5924 Patch from David Carlton <carlton@math.stanford.edu>:
5925 * gdbinit.in: Move the `dir' commands that add GDB's own source
5926 directory to the search path to the end, so that the `gdb' source
5927 directory will be searched first.
5928
04ea0df1
AC
59292002-07-29 Andrew Cagney <ac131313@redhat.com>
5930
5931 * gdb_obstack.h: New file.
5932 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5933 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5934 * objfiles.h: Include "gdb_obstack.h".
5935 * Makefile.in (gdb_obstack_h): Define.
5936 (symtab_h): Add $(gdb_obstack_h).
5937 (objfiles_h): Add $(gdb_obstack_h).
5938
5939 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5940 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5941 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5942 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5943 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5944 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5945 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5946 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5947
5948 * Makefile.in (bcache.o): Update dependencies.
5949 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5950 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5951 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5952 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5953 (stabsread.o, symfile.o, symmisc.o): Ditto.
5954 (symtab.o, typeprint.o, macroexp.o): Ditto.
5955 (macrotab.o, mdebugread.o): Ditto.
5956 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5957 (coff_ecoff_h, aout_aout64_h): Define.
5958 (aout_stabs_gnu_h, libaout_h): Define.
5959
d138e37a
AC
59602002-07-29 Andrew Cagney <cagney@redhat.com>
5961
5962 * regcache.c (struct regcache_descr): Rename nr_registers to
5963 nr_cooked_registers. Revise comments describing the structure
5964 member fields.
5965 (init_regcache_descr): Update.
5966 (init_legacy_regcache_descr): Update.
5967 (read_register_gen, write_register_gen): When a cooked register in
5968 the raw register range, directly access the value from the raw
5969 register cache.
5970
460e6ec3
AC
59712002-07-29 Andrew Cagney <ac131313@redhat.com>
5972
5973 * z8k-tdep.c: Do not include "obstack.h".
5974 * h8300-tdep.c, h8500-tdep.c: Ditto.
5975 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5976 * valprint.c, v850-tdep.c: Ditto.
5977 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5978 * mn10200-tdep.c: Ditto.
5979
5980 * Makefile.in (z8k-tdep.o): Update dependencies.
5981 (m68hc11-tdep.o, valprint.o): Ditto.
5982 (v850-tdep.o, d10v-tdep.o): Ditto.
5983 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5984 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5985 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5986 (sh_opc_h, gdb_sim_sh_h): Define.
5987 (elf_sh_h, elf_bfd_h): Define.
5988 (opcode_m68hc11_h): Define.
5989 (OPCODES_SRC, OPCODES_DIR): define.
5990 (OPCODES): Use $(OPCODES_DIR).
5991 (gdb_sim_d10v_h): Rename sim_d10v_h.
5992 (gdb_sim_arm_h): Rename sim_arm_h.
5993
790c9cf0
KB
59942002-07-26 Kevin Buettner <kevinb@redhat.com>
5995
5996 * utils.c (host_pointer_to_address, address_to_host_pointer):
5997 Change internal_error() message to indicate function responsible
5998 for the error.
5999
9647fa49
KB
60002002-07-26 Kevin Buettner <kevinb@redhat.com>
6001
6002 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6003 calls to local_hex_string_custom().
6004
dabbe2c0
KB
60052002-07-26 Kevin Buettner <kevinb@redhat.com>
6006
6007 * irix5-nat.c: Move IRIX shared library support from here...
6008 * solib-irix.c: ...to here. Revised substantially to work with
6009 generic solib framework.
6010
b96d0a4e
KB
6011 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6012 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6013 * mips-irix-tdep.c: New file.
6014
313fb2f6
KB
6015 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6016 (mips-irix-tdep.o, solib-irix.o): New rules.
6017 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6018 solib-irix.o.
6019 * config/mips/irix6.mt (TDEPFILES): Likewise.
6020 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6021
ab2eaf26
KB
60222002-07-26 Kevin Buettner <kevinb@redhat.com>
6023
177e4768 6024 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6025 disabled (via ``#if 0'') includes.
6026
7244546a
KB
60272002-07-26 Kevin Buettner <kevinb@redhat.com>
6028
6029 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6030 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6031 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6032 Add support for the fpscr register.
6033 * rs6000-nat.c (regmap, fetch_inferior_registers)
6034 (store_inferior_registers, fetch_core_registers): Likewise.
6035
dd7be90a
KB
60362002-07-26 Kevin Buettner <kevinb@redhat.com>
6037
6038 * rs6000-nat.c (language.h): Include.
6039 (special_regs): Delete this array.
6040 (regmap): New function.
6041 (fetch_register, store_register): Use regmap() to map gdb
6042 register numbers to ptrace register numbers. Also, use
6043 outputs from regmap() to make decisions regarding type of
6044 ptrace() call to make. In particular, don't compare against
6045 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6046 (fetch_inferior_registers, store_inferior_registers): Where
6047 possible, obtain register numbers from tdep struct. Don't
6048 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6049 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6050 (LAST_UISA_SP_REGNUM): Delete.
6051
11bf77db
KB
60522002-07-25 Kevin Buettner <kevinb@redhat.com>
6053
6054 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6055 (fetch_registers, store_register, fetch_core_registers): Don't
6056 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6057 regcache_collect() as appropriate.
6058 (find_toc_address): Format hex address with local_hex_string().
6059
06afebeb
AC
60602002-07-25 Andrew Cagney <ac131313@redhat.com>
6061
6062 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6063 bfd/elf32-frv.c.
6064
8c554d79
TT
60652002-07-24 Tom Tromey <tromey@redhat.com>
6066
6067 * jv-exp.y: Marked all strings with _().
6068 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6069 internal_error.
6070 (MethodInvocation, CastExpression, parse_number, yyerror,
6071 java_type_from_name, push_expression_name, yylex): Typo fixes.
6072
e4c242d9
DJ
60732002-07-24 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6076 (tee_file_flush, tee_file_write, tee_file_fputs)
6077 (tee_file_isatty): New.
6078 * ui-file.h (tee_file_new): Add prototype.
6079
ebf56fd3
AS
60802002-07-24 Aidan Skinner <aidan@velvet.net>
6081
6082 * ada-lang.c: Change k&r style function definitions to prototyped
6083 form.
6084 * ada-typeprint.c: Change k&r style function definitions to prototyped
6085 form.
6086 * ada-valprint.c: Change k&r style function definitions to prototyped
6087 form.
6088
7fb623f7
AC
60892002-07-24 Andrew Cagney <cagney@redhat.com>
6090
6091 * README: Remove reference to remote-bug.
6092 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6093 remote-bug.c.
6094 (m88k-nat.o): Delete rule.
6095 (m88k-tdep.o): Delete rule.
6096 (remote-bug.o): Delete rule.
6097 * MAINTAINERS: Mark as obsolete.
6098 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6099 * m88k-tdep.c: Make file obsolete.
6100 * config/m88k/m88k.mh: Ditto.
6101 * config/m88k/delta88v4.mh: Ditto.
6102 * config/m88k/delta88v4.mt: Ditto.
6103 * config/m88k/delta88.mt: Ditto.
6104 * config/m88k/delta88.mh: Ditto.
6105 * remote-bug.c: Ditto.
6106 * config/m88k/tm-delta88.h: Ditto.
6107 * config/m88k/nm-delta88v4.h: Ditto.
6108 * config/m88k/xm-delta88.h: Ditto.
6109 * config/m88k/xm-dgux.h: Ditto.
6110 * config/m88k/tm-m88k.h: Ditto.
6111 * config/m88k/nm-m88k.h: Ditto.
6112 * config/m88k/tm-delta88v4.h: Ditto.
6113 * m88k-nat.c: Ditto.
6114 * cxux-nat.c: Ditto.
6115 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6116 and m88*-*-* obsolete.
6117 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6118 m88*-*-* obsolete.
6119
37611a2b
AC
61202002-07-24 Andrew Cagney <cagney@redhat.com>
6121
6122 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6123 constant. Same for local pointer variables.
6124 (extract_signed_integer): Ditto.
6125 * defs.h (extract_unsigned_integer): Update.
6126 (extract_signed_integer): Update.
6127
1aaa5f99
AC
61282002-07-24 Andrew Cagney <cagney@redhat.com>
6129
6130 * regcache.c (regcache_raw_write): Change buf parameter to a
6131 constant void pointer.
6132 (regcache_raw_read): Change buf parameter to a void pointer.
6133 (legacy_write_register_gen): Change myaddr parameter a constant
6134 void pointer.
6135 (supply_register): Change val parameter to a const void pointer.
6136 * regcache.h (regcache_raw_write): Update declaration.
6137 (regcache_raw_read): Update declaration.
6138 (supply_register): Update declaration.
6139
b4f5539f
TT
61402002-07-24 Tom Tromey <tromey@redhat.com>
6141
6142 * defs.h (gdb_readline_wrapper): Declare.
6143 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6144 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6145 * top.c (gdb_readline_wrapper): New function.
6146 (command_line_input): Use it.
6147
0818c12a
AC
61482002-07-24 Andrew Cagney <cagney@redhat.com>
6149
6150 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6151 regcache_read and regcache_write.
6152 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6153 * regcache.c: Update.
6154 * sh-tdep.c (sh64_push_arguments): Update comment.
6155 (sh_pseudo_register_read): Update.
6156 (sh_pseudo_register_write): Update.
6157 (sh4_register_read): Update.
6158 (sh4_register_write): Update.
6159 (sh64_pseudo_register_read): Update.
6160 (sh64_pseudo_register_write): Update.
6161 (sh64_register_read): Update.
6162 (sh64_register_write): Update.
6163 * i386-tdep.c (i386_extract_return_value): Update.
6164 (i386_extract_struct_value_address): Update.
6165 (i386_extract_return_value): Update.
6166 * blockframe.c (generic_read_register_dummy): Update.
6167 (generic_call_dummy_register_unwind): Update
6168 * infrun.c (write_inferior_status_register): Update.
6169
f7321c06
JB
61702002-07-23 Jim Blandy <jimb@redhat.com>
6171
6172 * parser-defs.h (expression_context_pc): Make this extern.
6173 (Thanks to Michael Snyder.)
6174
2037aebb
AC
61752002-07-23 Andrew Cagney <ac131313@redhat.com>
6176
6177 GDB 5.2.1 released from 5.2 branch.
6178 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6179 * README: Update to mention 5.2.1.
6180
66504d44
MS
61812002-07-23 Mark Salter <msalter@redhat.com>
6182
6183 * remote.c (remote_read_bytes): Fix check for error.
6184
27bae383
KB
61852002-07-22 Kevin Buettner <kevinb@redhat.com>
6186
6187 * aix-thread.c (language.h): Include.
6188 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6189 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6190 Print newlines at end of debug messages.
6191 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6192 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6193
61942002-07-22 Kevin Buettner <kevinb@redhat.com>
6195
6196 * aix-thread.c (ppc-tdep.h): Include.
6197 (special_register_p): New function.
6198 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6199 (store_regs_user_thread): Use register number information from
6200 gdbarch_tdep struct instead of hardcoded offsets relative to
6201 FIRST_UISA_SP_REGNUM.
6202 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6203 special_register_p() instead of using FPLAST_REGNUM and
6204 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6205 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6206 will be MQ's register number.
6207
62082002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6209
6210 * aix-thread.c (ops): Rename to aix_thread_ops.
6211 (base_ops): Rename to base_target.
6212 (ops_attach): Rename to aix_thread_attach.
6213 (ops_detach): Rename to aix_thread_detach.
6214 (ops_resume): Rename to aix_thread_detach.
6215 (ops_wait): Rename to aix_thread_wait.
6216 (ops_kill): Rename to aix_thread_kill.
6217 (init_ops): Rename to init_aix_thread_ops.
6218 (ops_fetch_register): Rename to aix_thread_fetch_register.
6219 (ops_store_register): Rename to aix_thread_store_register.
6220 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6221 (ops_thread_alive): Rename to aix_thread_thread_alive.
6222 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6223 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6224 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6225 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6226 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6227 (store_regs_lib): Rename to store_regs_user_thread.
6228 (store_regs_kern): Rename to store_regs_kernel_thread.
6229
27bae383 62302002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6231
6232 * aix-thread.c (ops_prepare_to_store): Eliminate.
6233 (init_ops): Don't initialize ops.prepare_to_store.
6234 (store_regs_kern): Pre-fetch register buffers from child,
6235 because some registers may not be in the cache. Copy
6236 regs from register cache only if they are cached.
6237 (store_regs_lib): Copy regs from register cache only
6238 if they are cached.
6239 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6240 fill_gprs64): Ditto.
6241
61c5da0b
KB
62422002-07-22 Kevin Buettner <kevinb@redhat.com>
6243
6244 * aix-thread.c (gdb_assert.h): Include.
6245 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6246 register sizes (from register cache) match size of buffer holding
6247 register data.
6248 (fill_sprs32): Change parameter types to match those in the ptrace()
6249 buffer.
6250 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6251 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6252
62532002-07-22 Michael Snyder <msnyder@redhat.com>
6254
6255 * aix-thread.c (supply_sprs64): Cosmetic change.
6256 (supply_sprs32): Cosmetic change.
6257 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6258 (fill_sprs64): Use regcache_collect instead of read_register.
6259 (store_regs_lib): Use regcache_collect instead of
6260 read_register. Use fill_sprs32 instead of fill_sprs64,
6261 if debugging a 32-bit architecture.
6262 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6263 out of the register cache, instead of passing a pointer into
6264 the register cache directly to ptrace. Use regcache_collect
6265 insteaad of read_register.
6266 (ops_prepare_to_store): Use target_read_registers instead
6267 of read_register_bytes.
6268
36479eb1
AS
62692002-07-20 Aidan Skinner <aidan@velvet.net>
6270
6271 * MAINTAINERS: Add self under write after approval.
6272
80ae6ee2
AS
62732002-07-20 Aidan Skinner <aidan@velvet.net>
6274
6275 * ada-tasks.c: Change k&r style function definitions to prototyped
6276 form.
6277
8a8ab2b9
AC
62782002-07-19 Andrew Cagney <ac131313@redhat.com>
6279
6280 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6281 * x86-64-tdep.c: Include "objfiles.h".
6282 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6283 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6284
fb16b900
ML
62852002-07-17 Michal Ludvig <michal@suse.cz>
6286
6287 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6288 (update_context): Initialise cfa variable.
6289
0fe7bf7b
MS
62902002-07-17 Michael Snyder <msnyder@redhat.com>
6291
6292 * aix-thread.c: Shorten some long lines.
6293 Bring comments into line with code spec.
6294
488f131b
JB
62952002-07-18 Joel Brobecker <brobecker@gnat.com>
6296
6297 * infrun.c: Re-indent using gdb_indent.sh.
6298
46c415d2
JB
62992002-07-18 Joel Brobecker <brobecker@gnat.com>
6300
6301 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6302 Leave the indentation temporarily untouched, to minimize the diffs.
6303
cdecafbe
EZ
63042002-07-18 Elena Zannoni <ezannoni@redhat.com>
6305
6306 * stabsread.c: Make os9k sections of the code obsolete,
6307 for real this time.
6308 * stabsread.h: Make os9k sections of the code obsolete.
6309
7b6aa020
ML
63102002-07-18 Michal Ludvig <mludvig@suse.cz>
6311
09ec9b38
ML
6312 * linux-low.c (regsets_store_inferior_registers): Add free()
6313 at the end of a loop to prevent memory leak.
6314 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6315 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6316 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6317 line a comment.
4894ac5d 6318 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6319
233282cd
JB
63202002-07-17 Jim Blandy <jimb@redhat.com>
6321
6322 * macrocmd.c (info_macro_command): Remove newline from error
6323 message.
6324
7b6aa020 63252002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6326
6327 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6328 (sh_gdbarch_init): Use it for sh-dsp.
6329
f7ef9339
KB
63302002-07-16 Kevin Buettner <kevinb@redhat.com>
6331
6332 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6333 64-bit DWARF2 format.
6334
8dd72958
JB
63352002-07-16 Joel Brobecker <brobecker@gnat.com>
6336
6337 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6338 <sys/proc.h> when not available.
6339
a99a9e1b
AC
63402002-07-16 Andrew Cagney <ac131313@redhat.com>
6341
6342 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6343 * stabsread.c: Make os9k sections of the code obsolete.
6344 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6345 * config/i386/i386os9k.mt: Make file obsolete.
6346 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6347 (COMMON_OBS): Remove os9kread.o
6348 (SFILES): Remove os9kread.c.
6349 (os9kread.o, remote-os9k.o): Make target obsolete.
6350 * remote-os9k.c: Make file obsolete.
6351 * os9kread.c: Make file obsolete.
6352 * Makefile.in
6353
7a3085c1
AC
63542002-07-16 Andrew Cagney <ac131313@redhat.com>
6355
6356 * NEWS: Mention that the FR30 has been made obsolete.
6357 * fr30-tdep.c: Make file obsolete.
6358 * config/fr30/tm-fr30.h: Ditto.
6359 * config/fr30/fr30.mt: Ditto.
6360 * configure.tgt: Make fr30-*-elf obsolete.
6361 * MAINTAINERS: Make fr30-elf obsolete.
6362
28a93f5a
PM
63632002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6364
6365 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6366 found is not inside a section.
6367
be006b8b
KB
63682002-07-15 Kevin Buettner <kevinb@redhat.com>
6369
6370 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6371 strerror().
6372 (pdc_realloc): Use xrealloc() instead of realloc().
6373
14fa3751
KB
63742002-07-15 Kevin Buettner <kevinb@redhat.com>
6375
6376 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6377 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6378 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6379 macros.
6380
42cc437f
KB
63812002-07-15 Kevin Buettner <kevinb@redhat.com>
6382
6383 * aix-thread.c (ptrace_check): Eliminate goto.
6384 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6385 problem.
6386
8e2c28d4
KB
63872002-07-15 Kevin Buettner <kevinb@redhat.com>
6388
6389 * aix-thread.c (gdbcmd.h): Include.
6390 (DEBUG, DBG, DBG2, dbg): Eliminate.
6391 (debug_aix_thread): New static global.
6392 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6393 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6394 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6395 invocations to DBG and DBG2 macros to test against
6396 ``debug_aix_thread'' and call fprintf_unfiltered().
6397 (_initialize_aix_thread): Add new command "set debug aix-thread".
6398
30413464
AC
63992002-07-15 Andrew Cagney <ac131313@redhat.com>
6400
6401 From Gerhard Tonn <TON@de.ibm.com>:
6402 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6403 instead of supply_register.
6404
7c43edc1
AC
64052002-07-15 Andrew Cagney <ac131313@redhat.com>
6406
6407 * dwarf2cfi.c: Include "gdb_assert.h".
6408 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6409 non-NULL.
6410 (update_context): Do not use __func__. Add missing ``break''.
6411 (update_context): Do not use __func__.
6412
9364a0ef
EZ
64132002-07-15 Elena Zannoni <ezannoni@redhat.com>
6414
6415 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6416 and its setting. Set gdbarch instruction printing functions
6417 directly. For non-rs6000 case use new function
6418 gdb_print_insn_powerpc.
6419 (gdb_print_insn_powerpc): New function.
6420
3fbeef0b
AC
64212002-07-13 Andrew Cagney <ac131313@redhat.com>
6422
92eb23c5 6423 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6424 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6425 * configure.tgt: Mark d30v-*-* as obsolete.
6426 * d30v-tdep.c: Mark file as obsolete.
6427 * config/d30v/d30v.mt: Ditto.
6428 * config/d30v/tm-d30v.h: Ditto.
6429
aacb1f0a
AS
64302002-07-13 Aidan Skinner <aidan@velvet.net>
6431
6432 * ada-tasks.c (add_task_entry): replace calls to
6433 malloc() with xmalloc
6434 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6435
6436 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6437 ada_finish_decode_line_1, all_sals_for_line
6438 ada_breakpoint_rewrite): replace calls to free() with xfree()
6439
c11d79f2
KB
64402002-07-12 Kevin Buettner <kevinb@redhat.com>
6441
6442 From Nicholas Duffek (with minor changes by Martin Hunt,
6443 Louis Hamilton, and Kevin Buettner):
6444 * aix-thread.c: New file.
6445
8e19ed76
PS
64462002-07-12 Petr Sorfa <petrs@caldera.com>
6447
6448 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6449 complaint for invalid attribute class or form.
6450 (read_func_scope): DW_AT_frame_base
6451 better handling of DW_AT_block*.
6452 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6453 better handling of DW_AT_block*.
6454 (read_common_block): DW_AT_location
6455 better handling of DW_AT_block*.
6456 (read_partial_die): DW_AT_location better handling
6457 of DW_AT_block*.
6458 (new_symbol): DW_AT_external better handling of
6459 DW_AT_block*. Proper initialization of variable
6460 "addr".
6461 (attr_form_is_block): New function that returns true
6462 if the attribute's form is of DW_FORM_block*.
6463
295401f7
DJ
64642002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6465
6466 * valops.c (find_method_list): Remove comment about
6467 removed STATIC_MEMFUNCP argument.
6468 (value_find_oload_method_list): Likewise.
6469
e42dc924
KB
64702002-07-12 Kevin Buettner <kevinb@redhat.com>
6471
6472 From Nicholas Duffek:
6473 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6474 target_new_objfile_hook.
6475
6904b546
KB
64762002-07-12 Kevin Buettner <kevinb@redhat.com>
6477
6478 From Nicholas Duffek:
6479 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6480 csect.
6481
53fe9346
AC
64822002-07-12 Andrew Cagney <cagney@redhat.com>
6483
6484 * MAINTAINERS: Mention --enable-sim-build-warnings.
6485 (m68hc11-elf): Disable sim build warnings.
6486 (m32r-elf): Mark as broken obsolete candidate.
6487 (x86_64-linux-gnu): Mark as buildable with -Werror.
6488 (arm-elf): Change -w to ``,'' which enables warnings but not
6489 -Werror.
6490
af5f3db6
AC
64912002-07-12 Andrew Cagney <ac131313@redhat.com>
6492
6493 * bcache.h: Update copyright.
6494 (struct bstring, struct bcache): Move definition to "bcache.c".
6495 Replaced by opaque declaration.
6496 (bcache_xfree): Replace free_bcache.
6497 (bcache_xmalloc, bcache_memory_used): Declare.
6498
6499 * bcache.c: Update copyright.
6500 (struct bstring, struct bcache): Moved to here from "bcache.h".
6501 Update comments.
6502 (bcache_xmalloc, bcache_memory_used): New functions.
6503 (bcache_xfree): Replace function free_bcache.
6504
6505 * Makefile.in (objfiles.o): Add $(bcache_h).
6506 (objfiles_h): Remove $(bcache_h).
6507 (symfile.o): Add $(bcache_h).
6508
6509 * symmisc.c: Update copyright.
6510 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6511 (print_objfile_statistics): Use bcache_memory_used.
6512
6513 * symfile.c: Include "bcache.h".
6514 (reread_symbols): Use bcache_xfree.
6515 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6516 (add_psymbol_to_list): Pass psymbol_cache by value.
6517 (add_psymbol_with_dem_name_to_list): Ditto.
6518
6519 * objfiles.h: Update copyright.
6520 (struct bcache): Declare opaque. Do not include "bcache.h".
6521 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6522 bcache'' pointers.
6523 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6524
6525 * objfiles.c: Include "bcache.h". Update copyright.
6526 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6527 macro_cache.
6528 (free_objfile): Use bcache_xfree.
6529
444199e7
GS
65302002-07-11 Grace Sainsbury <graces@redhat.com>
6531
6532 * monitor.c (monitor_fetch_register): Make name a constant.
6533 (monitor_store_register): Same.
6534
261397f8
DJ
65352002-07-11 Daniel Jacobowitz <drow@mvista.com>
6536
6537 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6538 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6539 (finish_block) For non-function blocks, hash the symbol table. For
6540 function blocks, mark the symbol table as unhashed.
6541 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6542 (msymbol_hash_iw): Likewise.
6543 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6544 value.
6545 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6546 (lookup_minimal_symbol): Likewise for both.
6547 * symtab.h (struct block): Add `hashtable' flag. Comment the
6548 hashtable.
6549 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6550 (ALL_BLOCK_SYMBOLS): Update.
6551 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6552 (struct symbol): Add `hash_next' pointer.
6553 * symtab.c (lookup_block_symbol): Search using the hash table when
6554 possible.
6555 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6556 (search_symbols, find_addr_symbol): Likewise.
6557
6558 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6559 (read_dst_symtab): Likewise.
6560 * jv-lang.c (get_java_class_symtab): Likewise.
6561 * mdebugread.c: Include "gdb_assert.h".
6562 (shrink_block): Assert that the block being modified is not hashed.
6563 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6564 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6565 symbols.
6566 (dump_symtab): Recognize hashed blocks.
6567 * printcmd.c (print_frame_args): Assert that function blocks do not
6568 have hashed symbol tables.
6569 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6570 (fill_in_ada_prototype, debug_print_block): Likewise.
6571 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6572
6f0eaa01
CV
65732002-07-11 Corinna Vinschen <vinschen@redhat.com>
6574
6575 * stack.c (print_frame): Use result of frame_address_in_block()
6576 instead of fi->pc when evaluating symbols.
6577 (backtrace_command_1): Ditto.
6578
a208b0cb
AC
65792002-07-11 Andrew Cagney <cagney@redhat.com>
6580
6581 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6582 Make static.
6583
6584 * arm-tdep.c (arm_register_name): Make return type constant.
6585
a6b6b089
AC
65862002-07-10 Andrew Cagney <ac131313@redhat.com>
6587
5ae5f592
AC
6588 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6589 prototype.
6590 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6591 * s390-tdep.c (s390_fp_regnum): Ditto.
6592 (s390_read_fp): Ditto.
6593 (s390_pop_frame): Ditto.
6594 (_initialize_s390_tdep): Ditto.
6595 * remote.c (get_remote_state): Ditto.
6596 * procfs.c (mappingflags): Ditto.
6597 * memattr.c (_initialize_mem): Ditto.
6598 * mcore-tdep.c (mcore_pop_frame): Ditto.
6599 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6600 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6601 * language.c (set_case_str): Ditto.
6602 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6603 * frv-tdep.c (new_variant): Ditto.
6604 (frv_stopped_data_address): Ditto.
6605 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6606 (context_alloc): Ditto.
6607 (frame_state_alloc): Ditto.
6608 (unwind_tmp_obstack_init): Ditto.
6609 (unwind_tmp_obstack_free): Ditto.
6610 (cfi_read_fp): Ditto.
6611 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6612 (cris_pop_frame): Ditto.
6613 * c-lang.c (scanning_macro_expansion): Ditto.
6614 (finished_macro_expansion): Ditto.
6615 (c_preprocess_and_parse): Ditto.
6616 * gdbarch.sh: Ditto.
6617 * gdbarch.h, gdbarch.c: Regenerate.
6618 * config/mn10200/tm-mn10200.h: Adjust indentation.
6619 * target.c: Adjust indentation.
6620 * symtab.h: Adjust indentation.
6621 * stabsread.h: Adjust indentation.
6622 * remote-es.c: Adjust indentation.
6623 * os9kread.c: Adjust indentation.
6624
66252002-07-10 Andrew Cagney <ac131313@redhat.com>
6626
a6b6b089
AC
6627 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6628 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6629
a1789893
GS
66302002-07-10 Grace Sainsbury <graces@redhat.com>
6631
6632 * NEWS: Mention m68k, mcore multi-arching.
6633 * MAINTAINERS: Change status of m68k, mcore to reflect
6634 multi-arching.
6635
02f0d45d
DJ
66362002-07-10 Daniel Jacobowitz <drow@mvista.com>
6637
6638 * valops.c (find_overload_match): Free oload_syms.
6639
f15f768e
JB
66402002-07-09 Joel Brobecker <brobecker@gnat.com>
6641
6642 Define HAVE_SYS_PROC_H if sys/proc.h exists
6643 * configure.in: Add check for sys/proc.h
6644 * config.in: Regenerate.
6645 * configure: Regenerate.
6646
902a7139
GS
66472002-07-09 Grace Sainsbury <graces@redhat.com>
6648
6649 * config/m68k/tm-m68k.h: Remove macros wrapped in
6650 #if !GDB_MULTI_ARCH.
6651
a534e424
AC
66522002-07-08 Andrew Cagney <ac131313@redhat.com>
6653
6654 * config.in, configure: Regenerate.
6655
9b94f7bf
MK
66562002-07-08 Mark Kettenis <kettenis@gnu.org>
6657
6658 * dwarf2cfi.c: Include "gcore.h".
6659 (execute_stack_op): Fix implementation of the
6660 DW_OP_deref and DW_OP_deref_size operators by letting do their
6661 lookup in the target.
6662
1d34db41
MK
66632002-07-07 Mark Kettenis <kettenis@gnu.org>
6664
6665 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6666 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6667 tdep->sc_sp_offset.
6668
79d5b63a
DJ
66692002-07-05 Daniel Jacobowitz <drow@mvista.com>
6670
6671 Fix PR gdb/595, gdb/602
6672 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6673 Don't call value_cast, just read the vtable pointer; update comments
6674 to match.
6675
3bb912e8
GS
66762002-07-05 Grace Sainsbury <graces@redhat.com>
6677
6678 * config/mcore/tm-mcore.h: Remove file.
6679 * config/mcore/mcore.mt: Remove definition of TM_FILE
6680 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6681
ca39387d
MK
66822002-07-05 Mark Kettenis <kettenis@gnu.org>
6683
6684 * i386bsd-tdep.c: Include "gdb_string.h".
6685
efdc1108
GS
66862002-07-04 Grace Sainsbury <graces@redhat.com>
6687
6688 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6689 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6690 mcore-tdep.
6691 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6692 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6693 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6694 (RETVAL_REGNUM): Move macros from tm-mcore.h
6695 (mcore_reg_struct_has_addr): New function.
6696 (mcore_gdbarch_init): Added initializations for the macros removed
6697 from tm-mcore.h.
6698
bb21884d
MK
66992002-07-04 Mark Kettenis <kettenis@gnu.org>
6700
6701 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6702 traditonal string branding within the ELF header.
6703
228c6d41
DJ
67042002-07-04 Daniel Jacobowitz <drow@mvista.com>
6705
6706 * symtab.c (remove_params): New function.
6707 (make_symbol_overload_list): Use it instead of cplus_demangle.
6708 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6709
2404952e
MK
67102002-07-04 Mark Kettenis <kettenis@gnu.org>
6711
e5e4acad
MK
6712 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6713
baadce09
MK
6714 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6715 New variables.
6716 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6717 and tdep->sigtramp_end.
6718 * i386obsd-nat.c: New file.
6719 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6720
2404952e
MK
6721 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6722 Don't call get_current_frame().
6723
9b4f1ba7
PM
67242002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6725
6726 * i386-nat.c (child_post_startup_inferior): New function
6727 calling i386_cleanup_dregs if
6728 I386_USE_GENERIC_WATCHPOINTS is defined.
6729 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6730 conditional to acknowledge that i386-nat.c has its
6731 own child_post_startup_inferior function.
6732
c0d1d883
MK
67332002-07-04 Mark Kettenis <kettenis@gnu.org>
6734
00f8375e
MK
6735 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6736 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6737 instead of MAX_REGISTER_RAW_SIZE.
6738 (i386_extract_return_value, i386_extract_struct_value_address):
6739 Convert to use regcache.
6740 (i386_gdbarch_init): Set max_register_raw_size and
6741 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6742 Set extract_return_value and extract_struct_value_address instead
6743 of their deprecated variants.
6744
c0d1d883
MK
6745 Convert i386 target to generic dummy frames.
6746 * i386-tdep.c: Include "symfile.h".
6747 (i386_frameless_signal_p): Consider a function to be frameless if
6748 the pc points at the first instruction of the function.
6749 (i386_frame_chain): Handle (generic) call dummies.
6750 (i386_frame_saved_pc): Likewise.
6751 (i386_frame_init_saved_regs): Remove code dealing with call
6752 dummies on the stack.
6753 (i386_push_dummy_frame): Removed.
6754 (i386_call_dummy_words): Removed.
6755 (i386_fix_call_dummy): Removed.
6756 (i386_push_return_address): New function.
6757 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6758 parameter, and don't call get_current_frame.
6759 (i386_pop_frame): New function.
6760 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6761 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6762 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6763 call_dummy_length to 0, set call_dummy_words to NULL, set
6764 sizeof_call_dummy_words to 0, set fix_call_dummy to
6765 generic_fix_call_dummy, set pc_in_call_dummy to
6766 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6767 generic_push_dummy_frame, set push_return_address to
6768 i386_push_return_address and set frame_chain_valid to
6769 generic_file_frame_chain_valid.
6770
049ee0e4
AC
67712002-07-03 Andrew Cagney <ac131313@redhat.com>
6772
6773 * gdbarch.sh (struct regcache): Add opaque declaration.
6774 (EXTRACT_RETURN_VALUE): New architecture method.
6775 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6776 * gdbarch.h, gdbarch.c: Regenerate.
6777 * arch-utils.c (legacy_extract_return_value): New function.
6778 * arch-utils.h (legacy_extract_return_value): Declare.
6779 * values.c (value_being_returned): Re-enable code handling
6780 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6781 deprecated_grub_regcache_for_registers call to block handling
6782 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6783 (EXTRACT_RETURN_VALUE): Do not define.
6784
4e0d9804
GS
67852002-07-03 Grace Sainsbury <graces@redhat.com>
6786
6787 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6788 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6789 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6790 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6791 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6792 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6793 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6794 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6795 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6796 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6797 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6798 argument so the function fits the prototype in the architecture
6799 vector.
6800 (mcore_pop_frame): Remove argument so the function fits the
6801 prototype. Use get_current_frame instead of the argument.
6802 (mcore_push_arguments): Change type of struct_return so the
6803 function can be used in the architecture vector.
6804 (mcore_store_struct_return): Add.
6805 (mcore_frame_init_saved_regs): Add.
6806 (mcore_gdbarch_init): Add function calls to replace the macros
6807 removed from tm-mcore.h
6808
36160dc4
AC
68092002-07-03 Andrew Cagney <ac131313@redhat.com>
6810
6811 * infcmd.c (print_return_value): Remove compatibility code calling
6812 deprecated_grub_regcache_for_registers.
6813
6814 * values.c: Include "regcache.h".
6815 (value_being_returned): Update. Use
6816 deprecated_grub_regcache_for_registers to extract the register
6817 buffer address.
6818 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6819 ``struct regcache''.
6820 * Makefile.in (values.o): Add dependency on $(regcache_h).
6821
6822 * inferior.h (run_stack_dummy): Change type of second parameter to
6823 a ``struct regcache''.
6824 * valops.c (hand_function_call): Change type of retbuf to ``struct
6825 regcache''. Allocate using regcache_xmalloc, clean using
6826 make_cleanup_regcache_xfree.
6827 * infcmd.c (run_stack_dummy): Update. Use
6828 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6829
6830 * regcache.c (do_regcache_xfree): New function.
6831 (make_cleanup_regcache_xfree): New function.
6832 * regcache.h (make_cleanup_regcache_xfree): Declare.
6833
e64d9b3d
MH
68342002-07-03 Martin M. Hunt <hunt@redhat.com>
6835
4dd79c29
MH
6836 * event-top.c (command_line_handler): Don't read past
6837 beginning of buffer.
e64d9b3d 6838
4dd79c29
MH
68392002-07-03 Martin M. Hunt <hunt@redhat.com>
6840
e64d9b3d
MH
6841 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6842 struct frame_id.
6843 (varobj_create): Store frame_id for root.
6844 (varobj_gen_name): Use xasprintf.
6845 (varobj_update): Save and restore frame using get_frame_id() and
6846 frame_find_by_id().
6847 (create_child): Use xasprintf.
6848 (new_root_variable): Initialize frame_id.
6849 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6850 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6851 to prevent memory leak.
6852
26e6c56a
AC
68532002-07-03 Andrew Cagney <ac131313@redhat.com>
6854
6855 * valops.c (hand_function_call): Move declaration of retbuf to
6856 start of function, allocate using malloc, add a cleanup but before
6857 the inf_status cleanup, cleanup the buffer. Rename local variable
6858 old_chain to inf_status_cleanup.
6859
f436dd25
MH
68602002-07-03 Martin M. Hunt <hunt@redhat.com>
6861
6862 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6863
6864 * cli/cli-decode.c (cmd_func_p): New function.
6865 (cmd_func): New function.
6866
6867 * command.h: Add cmd_func() and cmd_func_p().
6868
4cfe2084
GS
68692002-07-03 Grace Sainsbury <graces@redhat.com>
6870
6871 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6872 (REGISTER_SIZE): Remove.
6873 (MAX_REGISTER_RAW_SIZE): Remove.
6874 (REGISTER_VIRTUAL_TYPE): Remove.
6875 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6876 (REGISTER_NAME): Remove.
6877 (USE_GENERIC_DUMMY_FRAMES): Remove.
6878 (CALL_DUMMY): Remove.
6879 (CALL_DUMMY_START_OFFSET): Remove.
6880 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6881 (CALL_DUMMY_LOCATION): Remove.
6882 (FIX_CALL_DUMMY): Remove.
6883 (CALL_DUMMY_ADDRESS): Remove.
6884 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6885 (SAVE_DUMMY_FRAME_TOS): Remove.
6886 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6887 (mcore_register_virtual_type): New function.
6888 (mcore_register_byte): New function.
6889 (mcore_register_size): New function.
6890 (mcore_register_name): New function.
6891 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6892 macros removed from tm-mcore.h.
6893 (mcore_dump_tdep): Add.
6894 (_initialize_mcore_tdep): Add gdbarch_register call.
6895
4fd667e9
MK
68962002-07-03 Mark Kettenis <kettenis@gnu.org>
6897
6898 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6899 frameless_look_for_prologue, such that we actually call this
6900 function.
6901
42f99ac2
JB
69022002-07-02 Joel Brobecker <brobecker@gnat.com>
6903
6904 * frame.h (frame_address_in_block): New function.
6905
6906 * blockframe.c (frame_address_in_block): New function extracted
6907 from get_frame_block().
6908 (get_frame_block): Use frame_address_in_block().
6909 (block_innermost_frame): Use frame_address_in_block() to match
6910 the frame pc address against the block boundaries rather than
6911 the frame pc directly. This prevents a failure when a frame pc
6912 is actually a return-address pointing immediately after the end
6913 of the given block.
6914
103a1597 69152002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6916
6917 * MAINTAINERS: Add self under write after approval.
6918
69192002-07-02 Grace Sainsbury <graces@redhat.com>
6920
103a1597
GS
6921 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6922 used in architecture vector. The default is
6923 m68k_local_breakpoint_from_pc.
6924 (m68k_local_breakpoint_from_pc): Add.
6925 (enum): Add register numbers from tm-m68k.h.
6926 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6927 vector.
6928 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6929 GDB_MULTI_ARCH_PARTIAL.
6930 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6931 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6932 m68k-tdep.c.
6933 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6934 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6935 to enum in m68k-tdep.c
6936
7a5a0534
JB
69372002-07-02 Joel Brobecker <brobecker@gnat.com>
6938
6939 * solib-osf.c (open_map): Compute the list of shared libraries
6940 loaded by the inferior, rather than the list of libraries loaded
6941 by GDB itself. Otherwise, GDB ends up reading the symbols from
6942 the wrong shared libraries...
6943
6f558d74
MK
69442002-07-02 Mark Kettenis <kettenis@gnu.org>
6945
b7d15bf7
MK
6946 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6947 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6948 macros.
6949 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6950 Remove functions.
6951 (FRAMELESS_SIGNAL): Remove function.
6952 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6953 i386_linux_saved_pc_after_call): Removed.
6954 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6955 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6956 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6957
6bff26de
MK
6958 * i386-tdep.c (i386_frameless_signal_p): New function.
6959 (i386_frame_chain): Deal with frameless signals.
6960 (i386_sigtramp_saved_sp): New function.
6961 (i386_frame_saved_pc): Deal with frameless signals.
6962 (i386_saved_pc_after_call): Make sure the correct value is
6963 returned just after entry into a sigtramp.
6964 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6965 i386fbsd4_sc_sp_offset): New variables.
6966 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6967 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6968 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6969 similiar to what we already did for sc_pc_offset.
6970 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6971 tdep->sc_sp_offset.
6972
6f558d74
MK
6973 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6974
145564b7
ML
69752002-07-02 Michal Ludvig <mludvig@suse.cz>
6976
6977 * config/i386/tm-x86-64linux.h: New.
6978 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6979 definitions.
6980 * config/i386/nm-x86-64.h: Rename to ...
6981 * config/i386/nm-x86-64linux.h: ... this one.
6982 * config/i386/x86-64linux.mh: Reflect the above change.
6983
3a1e71e3
MK
69842002-07-01 Mark Kettenis <kettenis@gnu.org>
6985
21d0e8a4
MK
6986 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6987 with sigcontext_addr. Add sc_sp_offset.
6988 (i386bsd_sigtramp_saved_pc): Remove prototype.
6989 (i386bsd_sicontext_addr): Add prototype.
6990 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6991 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6992 (i386_svr4_sigtramp_saved_pc): Removed.
6993 (i386_svr4_sigcontext_addr): New function.
6994 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6995 Initialize tdep->sigcontext_addr instead. Initialize
6996 tdep->sc_pc_offset and tdep->sc_sp_offset.
6997 (i386_gdbarch_init): Likewise.
6998 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6999 any more.
7000 (i386bsd_sigtramp_saved_pc): Remove function.
7001 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7002 Initialize tdep->sigcontext_addr instead. Initialize
7003 tdep->sc_pc_offset.
7004 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7005 of tdep->sigtramp_saved_pc.
7006 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7007 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7008 instead.
7009
3a1e71e3
MK
7010 * i386-tdep.c (i386_frameless_function_invocation,
7011 i386_frame_num_args, i386_frame_init_saved_regs,
7012 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7013 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7014 i386_extract_return_value, i386_store_return_value,
7015 i386_extract_struct_value_address, i386_register_virtual_type,
7016 i386_register_convertible, i386_register_convert_to_virtual,
7017 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7018 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7019 static.
7020
52e9098c
MK
70212002-07-01 Mark Kettenis <kettenis@gnu.org>
7022
77b13a25
MK
7023 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7024
52e9098c
MK
7025 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7026 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7027 this macro. Include "value.h".
7028
1b372fff
AS
70292002-06-30 Aidan Skinner <aidan@velvet.net>
7030
7031 * ada-exp.tab.c: remove as it's a generated file
7032 * ada-lex.c: remove as it's a generated file
7033
9c5045b5
MK
70342002-06-30 Mark Kettenis <kettenis@gnu.org>
7035
4a93c5bb
MK
7036 * config/i386/tm-i386.h (struct frame_info, struct
7037 frame_saved_regs, struct value, struct type): Remove forward
7038 declarations.
7039
322d4fe0
MK
7040 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7041 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7042 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7043 (FILL_FPXREGSET): Define.
7044
fdd8263d
MK
7045 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7046
482e577b
MK
7047 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7048 i[3456]86-*-netbsd* case.
7049 * config/i386/tm-obsd.h: Removed.
7050 * config/i386/obsd.mt: Removed.
7051 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7052 core-aout.o.
7053 (MH_CFLAGS): Add -DYYDEBUG=0.
7054
6916549a
MK
7055 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7056 i386nbsd_sc_pc_offset on OpenBSD too.
7057
9c5045b5
MK
7058 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7059 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7060 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7061 define.
7062 * i386bsd-tdep.c: Include "arch-utils.h".
7063 (i386bsd_aout_in_solib_call_trampoline): New function.
7064 (i386bsd_init_abi): Set in_solib_call_trampoline to
7065 i386bsd_aout_in_solib_call_trampoline.
7066 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7067 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7068
aa84d1bb
AC
70692002-06-28 Andrew Cagney <ac131313@redhat.com>
7070
7071 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7072 (struct obstack, struct bcache): Add opaque declarations.
7073 * Makefile.in (macrotab_h): Update
7074
b4d83933
AC
70752002-06-28 Andrew Cagney <ac131313@redhat.com>
7076
7077 * blockframe.c (generic_find_dummy_frame): Change return type to
7078 ``struct regcache''.
7079 (struct dummy_frame): Replace field ``registers'' with regcache, a
7080 struct regcache object.
7081 (generic_find_dummy_frame): Update.
7082 (generic_push_dummy_frame): Update. Use regcache_xfree,
7083 regcache_xmalloc and regcache_cpy.
7084 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7085 regcache_xfree.
7086 (deprecated_generic_find_dummy_frame): Update.
7087 (generic_read_register_dummy): Update. Use
7088 regcache_read_as_address.
7089 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7090 (generic_get_saved_register): Update. Use regcache_read.
7091
08c0b5bc
AC
70922002-06-28 Andrew Cagney <ac131313@redhat.com>
7093
7094 * Makefile.in (objfiles_h): Add $(bcache_h).
7095 * objfiles.h: Include "bcache.h".
7096
7097 * Makefile.in (symtab_h): Remove $(bcache_h).
7098 * symtab.h: Do not include "bcache.h".
7099
1f89801a
AC
71002002-06-28 Andrew Cagney <ac131313@redhat.com>
7101
7102 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7103 generic_func_frame_chain_valid.
7104
b9644b58
DB
71052002-06-28 David O'Brien <obrien@FreeBSD.org>
7106
7107 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7108 * config/i386/tm-fbsd.h: Likewise.
7109
dd486634
AC
71102002-06-28 Andrew Cagney <ac131313@redhat.com>
7111
7112 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7113 generic_unwind_get_saved_register.
7114
0b434a00
AC
71152002-06-27 Andrew Cagney <ac131313@redhat.com>
7116
7117 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7118 * regcache.c (supply_register): Add missing argument to
7119 register_buffer call.
7120
f30e5a77
AC
71212002-06-27 Andrew Cagney <ac131313@redhat.com>
7122
7123 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7124 Solaris /bin/grep does not not like it. From Peter Schauer.
7125
9f064c95
TT
71262002-06-26 Tom Tromey <tromey@redhat.com>
7127
7128 * command.h (add_setshow_cmd): Declare.
7129 (add_setshow_cmd_full): Declare.
7130 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7131 returns void. Use add_setshow_cmd_full.
7132 (add_setshow_cmd_full): New function.
7133 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7134 (add_setshow_boolean_cmd): Likewise.
7135
099c7589
JT
71362002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7137
7138 * config/vax/tm-vax.h: Protect from multiple inclusion.
7139 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7140 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7141 * config/vax/tm-vaxbsd.h: ...here. New file.
7142 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7143
1d049c5e
JT
71442002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7145
7146 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7147 (BELIEVE_PCC_PROMOTION): Remove.
7148 (AP_REGNUM): Move to...
7149 * config/vax/nm-vax.h: ...here.
7150 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7151 (vax_breakpoint_from_pc): New function.
7152 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7153 and gdbarch_believe_pcc_promotion.
7154
4791e091
JT
71552002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7156
7157 * Makefile.in (vax_tdep_h): Define.
7158 (vax-tdep.o): Use $(vax_tdep_h).
7159 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7160 (vax_dump_tdep): New function.
7161 (_initialize_vax_tdep): Register vax_dump_tdep.
7162 * vax-tdep.h: Include osabi.h.
7163 (struct gdbarch_tdep): New.
7164
da130f98
AC
71652002-06-26 Andrew Cagney <cagney@redhat.com>
7166
7167 * frame.h (deprecated_generic_find_dummy_frame): Rename
7168 generic_find_dummy_frame.
7169 * blockframe.c (generic_find_dummy_frame): Make static.
7170 (deprecated_generic_find_dummy_frame): New function.
7171 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7172 generic_find_dummy_frame with deprecated_find_dummy_frame.
7173 (sh64_nofp_frame_init_saved_regs): Ditto.
7174 (sh_fp_frame_init_saved_regs): Ditto.
7175 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7176 (s390_frame_chain): Ditto.
7177 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7178
6300c360
GS
71792002-06-26 Grace Sainsbury <graces@redhat.com>
7180
7181 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7182 gdbarch vector are at the top.
7183 (NUM_REGS): Remove.
7184 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7185 (FRAME_ARGS_ADDRESS): Remove.
7186 (FRAME_LOCALS_ADDRESS): Remove.
7187 (FRAME_NUM_ARGS): Remove.
7188 (FRAME_ARGS_SKIP): Remove.
7189 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7190 (m68k_gdbarch_init): Add gdbarch initializations for macros
7191 undefined in tm-m68k.h
7192
1c617db8
GS
71932002-06-26 Grace Sainsbury <graces@redhat.com>
7194
7195 * monitor.h: Add the function regname to monitor_ops
7196 structure. This way NUM_REGS does not have to be a constant.
7197 * monitor.c (monitor_fetch_register): Added support for regname
7198 function. The function is called if the array regnames is NULL.
7199 (monitor_store_register): Same.
da130f98
AC
7200 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7201 regnames array.
1c617db8
GS
7202 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7203 cpu32bug_cmds.regname to point to new function.
7204 * abug-rom.c (abug_regname): Same as above.
7205 (init_abug_cmds): Same.
7206 * dbug-rom.c (dbug_regname): Same as above.
7207 (init_dbug_cmds): Same.
7208 * remote-est.c (est_regname): Same.
7209 (init_est_cmds): Same.
7210 * rom68k-rom.c (rom68k_regname): Same.
7211 (init_rom68k_cmds): Same.
7212
ea9365bb
TT
72132002-06-25 Tom Tromey <tromey@redhat.com>
7214
7215 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7216
72cec141
AC
72172002-06-25 Andrew Cagney <cagney@redhat.com>
7218
7219 * infrun.c (stop_registers): Change variable's type to ``struct
7220 regcache'''.
7221 (xmalloc_inferior_status): Delete function.
7222 (free_inferior_status): Delete function.
7223 (normal_stop): Use regcache_cpy.
7224 (struct inferior_status): Change type of fields ``stop_registers''
7225 and ``registers'' to ``struct regcache''.
7226 (write_inferior_status_register): Use regcache_write.
7227 (save_inferior_status): Instead of calling
7228 xmalloc_inferior_status, allocate the inf_status buffer directly.
7229 Use regcache_dup_no_passthrough and regcache_dup to save the
7230 buffers.
7231 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7232 Replace the stop_registers regcache instead of overriding it. Use
7233 regcache_xfree. Instead of calling free_inferior_status, xfree
7234 the buffer directly.
7235 (discard_inferior_status): Use regcache_xfree. Instead of calling
7236 free_inferior_status, xfree the buffer directly.
7237 (build_infrun): Use regcache_xmalloc.
7238 (_initialize_infrun): Delete redundant call to build_infrun.
7239
7240 * Makefile.in (infcmd.o): Add $(regcache_h).
7241
7242 * infcmd.c: Include "regcache.h".
7243 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7244 obtain the address of `stop_registers' register buffer.
7245 (print_return_value): Ditto.
7246
7247 * inferior.h (struct regcache): Add opaque declaration.
7248 (stop_registers): Change variable's declared type to ``struct
7249 regcache''.
7250
defc6f8c
TT
72512002-06-24 Tom Tromey <tromey@redhat.com>
7252
c0e624e7
TT
7253 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7254 * target.c (initialize_targets): Fixed typo in
7255 trust-readonly-sections `show' documentation.
7256
defc6f8c
TT
7257 * main.c: Marked all strings with _().
7258
2b236d82
DH
72592002-06-24 Don Howard <dhoward@redhat.com>
7260
7261 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7262 that means max CORE_ADDR+1.
7263 (lookup_mem_region): Ditto.
7264 (mem_info_command): Ditto.
7265
942dc0e9
GS
72662002-06-24 Grace Sainsbury <graces@redhat.com>
7267
7268 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7269 (REGISTER_BYTES_OK): Remove.
7270 (REGISTER_BYTES): Remove.
7271 (STORE_STRUCT_RETURN): Remove.
7272 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7273 (STORE_RETURN_VALUE): Remove.
7274 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7275 (FRAME_CHAIN): Remove.
7276 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7277 (FRAME_SAVED_PC): Remove.
7278 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7279 (m68k_store_struct_return): Add.
7280 (m68k_deprecated_extract_return_value): Add.
7281 (m68k_deprecated_extract_struct_value_address): Add.
7282 (m68k_store_return_value): Add.
7283 (m68k_frame_chain): Add.
7284 (m68k_frameless_function_invocation): Add.
7285 (m68k_frame_saved_pc): Add.
7286 (m68k_gdbarch_init): added set_gdbarch calls for new
7287 functions and deleted macros.
7288
03c30d4d
TT
72892002-06-23 Tom Tromey <tromey@redhat.com>
7290
7291 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7292 (ALLDEPFILES): Likewise.
7293 (udiheaders): Removed.
7294 (udip2soc.o): Likewise.
7295 (udi2go32.o): Likewise.
7296 (udr.o): Likewise.
7297 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7298
37e71372
AC
72992002-06-22 Andrew Cagney <ac131313@redhat.com>
7300
06a6ac57
AC
7301 * infrun.c (_initialize_infrun): Delete unnecessary call to
7302 build_infrun.
7303
37e71372
AC
7304 * regcache.h: Update comments describing the regcache_cpy family
7305 of functions.
7306 (regcache_save, regcache_restore): Delete declaration.
7307 (regcache_save_no_passthrough): Delete declaration.
7308 (regcache_restore_no_passthrough): Delete declaration.
7309 * regcache.c (regcache_save): Delete function.
7310 (regcache_save_no_passthrough): Delete function.
7311 (regcache_restore): Delete function.
7312 (regcache_restore_no_passthrough): Delete function.
7313
78f6d055
AC
73142002-06-21 Andrew Cagney <ac131313@redhat.com>
7315
7316 * config/m68k/tm-m68k.h: Fix typo.
7317 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7318 (m68k_frame_init_saved_regs): Declare.
7319
78b119cb
JB
73202002-06-21 Jim Blandy <jimb@redhat.com>
7321
7322 Remove some vestiges of Harris 88k support.
7323 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7324 register numbering quirk.
7325 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7326 odd symbols occurring in Harris 88k ELF targets.
7327
0fbb3da7
TT
73282002-06-21 Tom Tromey <tromey@redhat.com>
7329
7330 * gdb_locale.h: New file.
7331 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7332 (defs_h): Added gdb_locale.h.
7333 * configure, config.in: Rebuilt.
7334 * configure.in (PACKAGE): Define.
7335 * defs.h: Include gdb_locale.h.
7336 * main.c (captured_main): Call setlocale, bindtextdomain,
7337 textdomain.
7338
456f8b9d
DB
73392002-06-21 Dave Brolley <brolley@redhat.com>
7340
7341 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7342 * config/frv/frv.mt: New file.
7343 * config/frv/tm-frv.h: New file.
7344 * configure.tgt: Support frv-*-*.
7345 * Makefile.in (frv-tdep.o): New target.
7346 * frv-tdep.c: New file.
7347 * NEWS: Mention frv.
7348
cdd463f9
DB
73492002-06-21 Dave Brolley <brolley@redhat.com>
7350
7351 * MAINTAINERS: Add self to "Write After Approval" list.
7352
5d3ed2e3
GS
73532002-06-21 Grace Sainsbury <graces@redhat.com>
7354
7355 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7356 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7357 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7358 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7359 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7360
7361 * m68k-tdep.c: Include arch-utils.h
7362 (m68k_register_raw_size): Add.
7363 (m68k_register_virtual_size): Add.
7364 (m68k_register_virtual_type): Add.
7365 (m68k_register_name): Add.
7366 (m68k_stack_align): Add.
7367 (m68k_register_byte): Add.
7368 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7369 tm-m68k.h.
7370
7f8e7424
GS
73712002-06-21 Grace Sainsbury <graces@redhat.com>
7372
a2c6a6d5 7373 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7374 m68k_find_saved_regs.
7375 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7376 references to it with frame->saved_regs.
7f8e7424
GS
7377 (m68k_gdbarch_init): Added function calls to initialize the
7378 gdbarch structure.
a2c6a6d5
GS
7379 (m68k_fix_call_dummy): Add.
7380 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7381 (CALL_DUMMY): Remove.
7382 (CALL_DUMMY_LENGTH): Remove.
7383 (CALL_DUMMY_START_OFFSET): Remove.
7384 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7385 (FIX_CALL_DUMMY): Remove.
7386 (PUSH_DUMMY_FRAME): Remove.
7387 (POP_FRAME): Remove.
7f8e7424 7388
f461f5cf
PM
73892002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7390
7391 * parse.c (parse_fprintf): New function used to avoid calls to
7392 fprintf in bison parser generated debug code.
7393 * parser-defs.h: Declaration of new parse_fprintf function.
7394 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7395 Set YYDEBUG to 1 by default.
7396 Set YYFPRINTF as parse_fprintf.
7397
7f0c12ed
ML
73982002-06-21 Michal Ludvig <mludvig@suse.cz>
7399
7400 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7401 encoding anymore.
7402 (pointer_encoding, enum ptr_encoding): New.
7403 (execute_cfa_program): Take care about pointer encoding.
7404 (dwarf2_build_frame_info): Only call parse_frame_info for
7405 .debug_frame and .eh_frame.
7406 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7407 fixed augmentation handling, added relative addressing,
7408 ignore duplicate FDEs. Added comments.
19d833a2 7409 * dwarf2cfi.c: Reindented.
7f0c12ed 7410
87c4a039
EZ
74112002-06-20 Elena Zannoni <ezannoni@redhat.com>
7412
7413 * event-top.c (command_handler): Don't use space_at_cmd_start
7414 unless there is sbrk() on the host. Assign time and space data
7415 to union fields of the appropriate length.
7416
1cf877ad
ML
74172002-06-20 Michal Ludvig <mludvig@suse.cz>
7418
7419 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7420 x86_64_register_name. Return type changed to 'const char *'.
7421 (x86_64_register_name2nr): Rename to x86_64_register_number.
7422 (x86_64_gdbarch_init): Update to reflect the change.
7423 * x86-64-tdep.h: Ditto.
7424 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7425 (supply_fpregset): Ditto.
7426
3fadccb3
AC
74272002-06-19 Andrew Cagney <cagney@redhat.com>
7428
7429 * regcache.h: Update copyright.
7430 (struct regcache, struct gdbarch): Add opaque declarations.
7431 (current_regcache): Declare global variable.
7432 (regcache_read, regcache_write): Add gdbarch parameter.
7433 (regcache_save, regcache_save_no_passthrough)
7434 (regcache_restore, regcache_restore_no_passthrough)
7435 (regcache_dup, regcache_dup_no_passthrough)
7436 (regcache_cpy, regcache_cpy_no_passthrough)
7437 (deprecated_grub_regcache_for_registers)
7438 (deprecated_grub_regcache_for_register_valid)
7439 (regcache_valid_p): Add function declarations.
7440
7441 * regcache.c: Update copyright.
7442 (regcache_descr_handle): New global variable.
7443 (struct regcache_descr): Define.
7444 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7445 (regcache_descr, xfree_regcache_descr): New functions.
7446 (struct regcache): Define.
7447 (regcache_xmalloc, regcache_xfree): New functions.
7448 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7449 (regcache_dup, regcache_dup_no_passthrough): New functions.
7450 (regcache_valid_p, regcache_read_as_address): New functions.
7451 (deprecated_grub_regcache_for_registers): New function.
7452 (deprecated_grub_regcache_for_register_valid): New function.
7453 (current_regcache): New global variable.
7454 (register_buffer): Add regcache parameter. Update calls.
7455 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7456 (read_register_gen, write_register_gen): Update register_buffer
7457 call. Test for legacy_p instead of gdbarch_register_read_p or
7458 gdbarch_register_write_p.
7459 (regcache_collect): Update register_buffer call.
7460 (build_regcache): Rewrite. Use deprecated grub functions.
7461 (regcache_save, regcache_save_no_passthrough): New functions.
7462 (regcache_restore, regcache_restore_no_passthrough): New
7463 functions.
7464 (_initialize_regcache): Create the regcache_data_handle. Swap
7465 current_regcache global variable.
7466
7467 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7468 parameter to regcache_read and regcache_write calls.
7469 (sh4_register_read): Ditto.
7470 (sh64_pseudo_register_read): Ditto.
7471 (sh64_register_read): Ditto.
7472 (sh_pseudo_register_write): Ditto.
7473 (sh4_register_write): Ditto.
7474 (sh64_pseudo_register_write): Ditto.
7475 (sh64_register_write): Ditto.
7476
7477 * defs.h (XCALLOC): Define.
7478
152d9db6
GS
74792002-06-19 Grace Sainsbury <graces@redhat.com>
7480
7481 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7482 * m68k-tdep.c (m68k_gdbarch_init): Added.
7483 (m68k_dump_tdep): Added.
7484
170911c7
DJ
74852002-06-19 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * ada-lang.c (fill_in_ada_prototype): Update comment.
7488
2e4ebe70
DJ
74892002-06-19 Daniel Jacobowitz <drow@mvista.com>
7490
7491 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7492 MIPS_ABI_LAST.
7493 (mips_abi_string, mips_abi_strings): New.
7494 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7495 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7496 tdep->mips_abi_string. Honor mips_abi_string. Default to
7497 O32 if no ABI is found.
7498 (mips_dump_tdep): Use mips_abi_strings.
7499 (mips_abi_update): New function.
7500 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7501 ``set mips abi'' and ``show mips abi''. Check the size of
7502 mips_abi_strings.
7503
16775908
AC
75042002-06-19 Andrew Cagney <cagney@redhat.com>
7505
7506 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7507 constant.
7508
5051bfa4 75092002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7510
5051bfa4
JB
7511 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7512 current frame using only the first stack size adjustment. All
7513 subsequent size adjustments are not considered to be part of
7514 the "static" part of the current frame.
7515 Compute the address of the saved registers relative to the
7516 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7517 in use in this frame.
7518
56468235
DH
75192002-06-18 Don Howard <dhoward@redhat.com>
7520
7521 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7522 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7523 suggesting this solution.
7524
0b624158
AC
75252002-06-18 Andrew Cagney <ac131313@redhat.com>
7526
7527 * config/romp/xm-rtbsd.h: Delete file.
7528 * config/romp/rtbsd.mh: Delete file.
7529
221ea385
KS
75302002-06-18 Keith Seitz <keiths@redhat.com>
7531
7532 * breakpoint.c (condition_command): Post breakpoint_modify
7533 when a condition is added to an existing breakpoint.
7534 (commands_command): Likewise for commands.
7535 (set_ignore_count): Likewise for ignore counts.
7536 If no tty, do not simply return, still need to send event
7537 notification.
7538 (ignore_command): Only print a newline if the command came
7539 from a tty.
7540 Don't call breakpoints_changed, since this is now properly
7541 handled by set_ignore_count.
7542
5402eed1
AC
75432002-06-18 Andrew Cagney <cagney@redhat.com>
7544
7545 * MAINTAINERS: Note that cris-elf target can be compiled with
7546 -Werror.
7547 * cris-tdep.c (cris_register_name): Make return type constant.
7548 (cris_breakpoint_from_pc): Ditto.
7549
cc22880b
ML
75502002-06-18 Michal Ludvig <mludvig@suse.cz>
7551
7552 * frame.h (struct frame_info): Change type of context to
7553 'struct context'.
7554
fa88f677
AC
75552002-06-17 Andrew Cagney <cagney@redhat.com>
7556
7557 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7558 pointer.
7559 * gdbarch.h, gdbarch.c: Regenerate.
7560 * config/mips/tm-mips.h (mips_register_name): Update.
7561 * i386-tdep.h (i386_register_name): Update.
7562 * mips-tdep.c (mips_register_name): Update
7563 * alpha-tdep.c (alpha_register_name): Update.
7564 * arch-utils.c (legacy_register_name): Update.
7565 * arch-utils.h (legacy_register_name): Update.
7566 * avr-tdep.c (avr_register_name): Update.
7567 * ia64-tdep.c (ia64_register_name): Update.
7568 * i386-tdep.c (i386_register_name): Update.
7569 * sparc-tdep.c (sparc32_register_name): Update.
7570 (sparc64_register_name): Update.
7571 (sparclite_register_name): Update.
7572 (sparclet_register_name): Update.
7573 * sh-tdep.c (sh_generic_register_name): Update.
7574 (sh_sh_register_name): Update.
7575 (sh_sh3_register_name): Update.
7576 (sh_sh3e_register_name): Update.
7577 (sh_sh_dsp_register_name): Update.
7578 (sh_sh3_dsp_register_name): Update.
7579 (sh_sh4_register_name): Update.
7580 (sh_sh64_register_name): Update.
7581 * s390-tdep.c (s390_register_name): Update.
7582 * rs6000-tdep.c (rs6000_register_name): Update.
7583 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7584 (ns32k_register_name_32382): Update.
7585 * d10v-tdep.c (d10v_ts2_register_name): Update.
7586 (d10v_ts3_register_name): Update.
7587 * xstormy16-tdep.c (xstormy16_register_name): Update.
7588 * vax-tdep.c (vax_register_name): Update.
7589 * v850-tdep.c (v850_register_name): Update.
7590 * m68hc11-tdep.c (m68hc11_register_name): Update.
7591 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7592 (am33_register_name): Update.
7593
ea1e7ef6
GS
75942002-06-17 Grace Sainsbury <graces@redhat.com>
7595
7596 * m68k-tdep.c: Reindented.
7597
9b02dd1b
AC
75982002-06-17 Andrew Cagney <ac131313@redhat.com>
7599
7600 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7601 list of predefined types.
7602
8758dec1
MK
76032002-06-16 Mark Kettenis <kettenis@gnu.org>
7604
b6197528
MK
7605 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7606 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7607 REGISTER_CONVERT_TO_RAW): Remove defines.
7608 (i386_register_virtual_type, i386_register_convertible,
7609 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7610 Remove prototypes.
7611 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7612 macros mentioned above.
7613
82b47e62
MK
7614 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7615 (i386lynx_saved_pc_after_call): Remove prototype.
7616 * i386ly-tdep.c: Include "i386-tdep.h".
7617 (i386lynx_saved_pc_after_call): Make static. Use
7618 read_memory_nobpt instead of read_memory. Use
7619 read_memory_unsigned_integer instead of read_memory_integer.
7620 (i386lynx_init_abi): New function.
7621 (i386lynx_coff_osabi_sniffer): New function.
7622 (_initialize_i386bsd_tdep): New function.
7623
8758dec1
MK
7624 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7625 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7626 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7627 (i386_fix_call_dummy): Remove prototype.
7628 * i386-tdep.c (i386_call_dummy_words): New variable.
7629 (i386_gdbarch_init): Adjust for removal of the
7630 macros mentioned above.
7631
e9e68a56
AC
76322002-06-15 Andrew Cagney <ac131313@redhat.com>
7633
7634 * command.h (add_setshow_auto_boolean_cmd): Replace
7635 add_set_auto_boolean_cmd.
7636 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7637 add_set_auto_boolean_cmd.
7638 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7639 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7640 mask-address'' command.
7641 (show_mask_address): Add cmd parameter.
7642 * remote.c (add_packet_config_cmd): Update. Change type of
7643 set_func and show_func to cmd_sfunc_ftype.
7644 (_initialize_remote): Update `set remote Z-packet'
7645 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7646 (show_remote_protocol_e_packet_cmd): Ditto.
7647 (show_remote_protocol_E_packet_cmd): Ditto.
7648 (show_remote_protocol_P_packet_cmd): Ditto.
7649 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7650 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7651 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7652 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7653 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7654 (show_remote_protocol_Z_packet_cmd): Ditto.
7655 (show_remote_protocol_binary_download_cmd): Ditto.
7656 (show_remote_cmd): Pass NULL to all of above.
7657
fc08ec52
MK
76582002-06-15 Mark Kettenis <kettenis@gnu.org>
7659
7660 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7661 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7662 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7663 POP_FRAME): Remove defines.
7664 (i386_push_arguments, i386_store_struct_return,
7665 i386_extract_return_value, i386_store_return_value,
7666 i386_extract_struct_value_address, i386_push_dummy_frame,
7667 i386_pop_frame): Renove prototypes.
7668 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7669 macros mentioned above.
7670
e707bbc2
AC
76712002-06-15 Andrew Cagney <ac131313@redhat.com>
7672
7673 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7674 add_set_boolean_cmd.
7675 (add_setshow_cmd): New function.
7676 * command.h (add_setshow_boolean_cmd): Replace
7677 add_set_boolean_cmd.
7678 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7679 and ``set rdiromatzero''.
7680 * maint.c (_initialize_maint_cmds): Update commented out code.
7681 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7682 * target.c (initialize_targets): Update `set
7683 trust-readonly-sections'.
7684 * remote.c (_initialize_remote): Update `set remotebreak'.
7685
42fdc8df
MK
76862002-06-15 Mark Kettenis <kettenis@gnu.org>
7687
93924b6b
MK
7688 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7689 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7690 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7691 fit into multi-arch framework.
7692 (i386_breakpoint_from_pc): New function.
7693 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7694 above.
7695
42fdc8df
MK
7696 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7697 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7698 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7699 (i386_frameless_function_invocation, i386_frame_num_args,
7700 i386_frame_init_saved_regs): Remove prototypes.
7701 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7702 macros mentioned above.
7703
9773a94b
AC
77042002-06-15 Andrew Cagney <ac131313@redhat.com>
7705
7706 * cli/cli-decode.c (set_cmd_cfunc): Update.
7707 (set_cmd_sfunc): Update.
7708 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7709 (set_cmd_sfunc, set_cmd_cfunc): Update.
7710 * cli/cli-decode.h: Update.
7711
6e157172
MK
77122002-06-15 Mark Kettenis <kettenis@gnu.org>
7713
7714 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7715 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7716
7f19b9a2
AC
77172002-06-15 Andrew Cagney <ac131313@redhat.com>
7718
7719 * defs.h (auto_boolean): Declare enum.
7720 * command.h (cmd_auto_boolean): Delete enum.
7721 * mips-tdep.c (mask_address_var): Update.
7722 (mips_mask_address_p): Update.
7723 (show_mask_address): Update.
7724 * remote.c (struct packet_config): Update.
7725 (update_packet_config): Update.
7726 (show_packet_config_cmd): Update.
7727 (packet_ok): Update.
7728 (add_packet_config_cmd): Update.
7729 (_initialize_remote):
7730 * command.h: Update.
7731 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7732 (do_setshow_command): Update.
7733 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7734 * cli/cli-decode.h: Update.
7735
1cf88de5
MK
77362002-06-15 Mark Kettenis <kettenis@gnu.org>
7737
22ba8cf2
MK
7738 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7739 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7740 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7741 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7742 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7743 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7744
762c5349
MK
7745 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7746 list of DJGPP COFF targets.
7747
091198bb
MK
7748 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7749 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7750 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7751 (FP0_REGNUM): Remove define.
7752 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7753 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7754 (i386_register_virtual_size): Remove protoype.
7755 * i386-tdep.c (i386_register_virtual_size): Removed.
7756 (i386_extract_return_value, i386_store_return_value): Use
7757 FP0_REGNUM instead of NUM_FREGS to determine whether the
7758 floating-point registers are available.
7759 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7760 Adjust for removal of macros mentioned above.
7761
77622002-06-15 Mark Kettenis <kettenis@gnu.org>
7763
fcc9bf01
MK
7764 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7765 comments.
7766 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7767 Remove prototypes.
7768 (supply_gregset, fill_gregset): Remove use of register keyword and
7769 remove declaration for regmap. Use I386_NUM_GREGS instead of
7770 NUM_REGS and NUM_FREGS.
7771 (FPREGSET_FSAVE_OFFSET): Remove.
7772 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7773 NUM_FREGS to determine whether the floating-point registers are
7774 available.
7775
65e78234
MK
7776 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7777 gnu_store_registers): Replace usage of NUM_GREGS with
7778 I386_NUM_GREGS.
7779
98df6387
MK
7780 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7781 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7782 usage of NUM_GREGS with I386_NUM_GREGS.
7783
099a9414
MK
7784 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7785
57976e88
MK
7786 * i386bsd-nat.c: Include "i386-tdep.h".
7787 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7788 I386_NUM_GREGS.
7789
b335f4a6
MK
7790 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7791 and associated comment. They no longer make any sense, since we
7792 don't use this file anymore on Linux.
7793
1cf88de5
MK
7794 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7795 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7796 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7797 elements in these arrays.
7798 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7799 MAX_NUM_REGS.
7800
daa66587
MK
78012002-06-15 Mark Kettenis <kettenis@gnu.org>
7802
7803 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7804 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7805
26e9b323
AC
78062002-06-14 Andrew Cagney <cagney@redhat.com>
7807
7808 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7809 EXTRACT_RETURN_VALUE.
7810 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7811 EXTRACT_STRUCT_VALUE_ADDRESS.
7812 * gdbarch.h, gdbarch.c: Regenerate.
7813
7814 * values.c (value_being_returned): Handle
7815 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7816 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7817
7818 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7819 * arm-tdep.c (arm_gdbarch_init): Update.
7820 * avr-tdep.c (avr_gdbarch_init): Update.
7821 * cris-tdep.c (cris_gdbarch_init): Update.
7822 * d10v-tdep.c (d10v_gdbarch_init): Update.
7823 * ia64-tdep.c (ia64_gdbarch_init): Update.
7824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7825 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7826 * s390-tdep.c (s390_gdbarch_init): Update.
7827 * sh-tdep.c (sh_gdbarch_init): Update.
7828 * s390-tdep.c (s390_gdbarch_init): Update.
7829 * sparc-tdep.c (sparc_gdbarch_init): Update.
7830 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7831 * v850-tdep.c (v850_gdbarch_init): Update.
7832 * vax-tdep.c (vax_gdbarch_init): Update.
7833 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7835
7836 * config/arc/tm-arc.h: Update.
7837 * config/d30v/tm-d30v.h: Update.
7838 * config/fr30/tm-fr30.h: Update.
7839 * config/h8300/tm-h8300.h: Update.
7840 * config/h8500/tm-h8500.h: Update.
7841 * config/i386/tm-i386.h: Update.
7842 * config/i386/tm-ptx.h: Update.
7843 * config/i386/tm-symmetry.h: Update.
7844 * config/i960/tm-i960.h: Update.
7845 * config/m32r/tm-m32r.h: Update.
7846 * config/m68k/tm-delta68.h: Update.
7847 * config/m68k/tm-linux.h: Update.
7848 * config/m68k/tm-m68k.h: Update.
7849 * config/m88k/tm-m88k.h: Update.
7850 * config/mcore/tm-mcore.h: Update.
7851 * config/mips/tm-mips.h: Update.
7852 * config/mn10200/tm-mn10200.h: Update.
7853 * config/pa/tm-hppa.h: Update.
7854 * config/pa/tm-hppa64.h: Update.
7855 * config/sparc/tm-sp64.h: Update.
7856 * config/sparc/tm-sparc.h: Update.
7857 * config/sparc/tm-sparclet.h: Update.
7858 * config/z8k/tm-z8k.h: Update.
7859
5179e78f
AC
78602002-06-14 Andrew Cagney <cagney@redhat.com>
7861
7862 * Makefile.in (i386_linux_tdep_h): Define.
7863 (i386_tdep_h, i387_tdep_h): Define.
7864 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7865 $(i386_tdep_h) and $(i387_tdep_h).
7866 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7867
8201327c
MK
78682002-06-14 Mark Kettenis <kettenis@gnu.org>
7869
edf393ac
MK
7870 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7871 Already covered by the default.
7872
896fb97d
MK
7873 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7874 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7875 (i386_gdbarch_init): Initialize long_double_format and long_double
7876 bit.
7877
8201327c
MK
7878 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7879 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7880 Move these to ...
7881 * config/i386/i386sol2.mh: ... here.
7882 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7883 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7884 (SIGCONTEXT_PC_OFFSET): Remove define.
7885 (IN_SIGTRAMP): Remove define.
7886 * i386-sol2-tdep.c: New file.
7887
7888 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7889 * config/i386/tm-i386nw.h: Removed.
7890
7891 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7892 USE_STRUCT_CONVENTION): Remove defines.
7893 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7894 (get_longjmp_target): Remove prototype.
7895 (IN_SIGTRAMP): Remove define.
7896 (i386bsd_in_sigtramp): Remove prototype.
7897 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7898 function. Update comment accordingly
7899 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7900 (FRAME_SAVED_PC): Remove define.
7901 (i386bsd_frame_saved_pc): Remove prototype.
7902 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7903 GET_LONGJMP_TARGET): Remove defines.
7904 (get_longjmp_target): Remove prototype.
7905 (IN_SIGTRAMP): Remove define.
7906 (i386bsd_in_sigtramp): Remove prototype.
7907 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7908 function. Update comment accordingly
7909 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7910 (FRAME_SAVED_PC): Remove define.
7911 (i386bsd_frame_saved_pc): Remove prototype.
7912 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7913 Remove prototype.
7914 (USE_STRUCT_CONVENTION): Remove prototype.
7915 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7916 declaration.
7917 (_initialize_i386bsd_nat): Revise logic to determine some
7918 constants at compile time when compiling a native GDB. Warn if
7919 things don't match up with what we expect.
7920 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7921 Remove variables.
7922 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7923 to use date stored in `struct gdbarch_tdep'.
7924 (i386bsd_sigcontext_offset): Remove varaible.
7925 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7926 stored in `struct gdbarch_tdep'.
7927 (i386bsd_frame_saved_pc): Make static.
7928 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7929 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7930 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7931 i386fbsd4_sc_pc_offset): New variables.
7932 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7933 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7934 functions.
7935 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7936 functions.
7937 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7938 Modify the value of i386fbsd_sigtramp_start and
7939 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7940 i386fbsd_sigtramp_end.
7941 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7942 function.
7943
7944 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7945 define to i386-linux-tdep.h.
7946 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7947 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7948 defines.
7949 (i386_linux_register_name, i386_linux_register_byte,
7950 i386_linux_register_raw_size): Remove prototypes.
7951 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7952 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7953 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7954 TARGET_WRITE_PC): Remove defines.
7955 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7956 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7957 i386_linux_write_pc): Remove prototypes.
7958 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7959 (get_longjmp_target): Remove prototype.
7960 * i386-linux-tdep.h: New file.
7961 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7962 * i386-linux-tdep.c: Include "i386-tdep.h" and
7963 "i386-linux-tdep.h".
7964 (i386_linux_register_name, i386_linux_register_byte,
7965 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7966 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7967 Make static.
7968 (i386_linux_init_abi): New function.
7969 (_initialize_i386_linux_tdep): New function.
7970
7971 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7972 (i386_saved_pc_after_call): Remove prototype.
7973 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7974 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7975 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7976 (i386_register_name, i386_stab_reg_to_regnum,
7977 i386_dwarf_reg_to_regnum): Remove prototypes.
7978 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7979 SIZEOF_SSE_REGS): Remove defines.
7980 (REGISTER_BYTES): Remove define.
7981 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7982 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7983 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7984 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7985 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7986 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7987 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7988 (get_longjmp_target): Remove prototype.
7989 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7990 (sigtramp_saved_pc): Remove define.
7991 (i386v4_sigtramp_saved_pc): Remove prototype.
7992 * config/i386/tm-go32.h (FRAME_CHAIN,
7993 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7994 (i386go32_frame_saved_pc): Remove prototype.
7995 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7996 (get_longjmp_target): Remove prototype.
7997 * i386-tdep.h: Include "osabi.h".
7998 (enum i386_abi): Removed.
7999 (enum struct_return): New enum.
8000 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8001 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8002 sc_pc_offset members.
8003 (i386_gdbarch_register_os_abi): Remove prototype.
8004 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8005 I386_SSE_NUM_REGS): New defines.
8006 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8007 I386_SSE_SIZEOF_REGS): New defines.
8008 (i386_register_name, i386_register_byte, i386_register_raw_size):
8009 New prototypes.
8010 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8011 (i386bsd_sigtramp_saved_pc): New prototype.
8012 * i386-tdep.c: Don't include "elf-bfd.h".
8013 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8014 i386_frame_chain, i386_saved_pc_after_call): Make static.
8015 (i386_frame_saved_pc): Rewrite to call architecture dependent
8016 function to deal with signal handlers. Make static.
8017 (i386go32_frame_saved_pc): Removed.
8018 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8019 Removed.
8020 (i386_get_longjmp_target): New function.
8021 (default_struct_convention, pcc_struct_convention,
8022 reg_struct_convention, valid_conventions, struct_convention): New
8023 variables.
8024 (i386_use_struct_convention): New function.
8025 (i386v4_sigtramp_saved_pc): Renamed to
8026 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8027 (i386_pc_in_sigtramp): New function.
8028 (i386_abi_names): Removed.
8029 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8030 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8031 Removed.
8032 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8033 i386_gdbarch_register_os_abi): Removed.
8034 (struct i386_abi_handler): Removed.
8035 (i386_abi_handler_list): Removed.
8036 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8037 functions.
8038 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8039 i386_nw_init_abi): New functions.
8040 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8041 Use set_gdbarch_xxx() calls instead of relying on macros for a
8042 number of calls.
8043 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8044 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8045 Register the various architecture variants defined in this file.
8046
ad2f7632
DJ
80472002-06-14 Daniel Jacobowitz <drow@mvista.com>
8048
8049 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8050 (struct main_type): Remove arg_types member. Update comments for
8051 struct field.
8052 (TYPE_ARG_TYPES): Remove.
8053 (TYPE_FN_FIELD_ARGS): Update.
8054 (smash_to_method_type): Update prototype.
8055
8056 * c-typeprint.c (cp_type_print_method_args): Take method type
8057 instead of argument list. Use new argument layout. Simplify.
8058 (c_type_print_args): Use new argument layout. Simplify.
8059 (c_type_print_base): Update call to cp_type_print_method_args.
8060 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8061 argument; use die->type instead. Update call to
8062 smash_to_method_type.
8063 (read_structure_scope): Update call to dwarf2_add_member_fn.
8064 * gdbtypes.c (allocate_stub_method): Update comment.
8065 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8066 Use new argument layout.
8067 (check_stub_method): Use new argument layout. Don't count
8068 void as an argument.
8069 (print_arg_types): Update comments. Use new argument layout.
8070 (recursive_dump_type): Don't print arg_types member.
8071 * hpread.c (hpread_read_struct_type): Use new argument layout.
8072 (fixup_class_method_type): Likewise.
8073 (hpread_type_lookup): Likewise.
8074 * stabsread.c (read_type): Update calls to read_args and
8075 smash_to_method_type.
8076 (read_args): Use new argument layout. Simplify.
8077 * valops.c (typecmp): Use new argument layout. Update parameters
8078 and comments. Simplify.
8079 (hand_function_call): Use new argument layout.
8080 (search_struct_method): Update call to typecmp.
8081 (find_overload_match): Use new argument layout.
8082
6da02953
DJ
80832002-06-13 Daniel Jacobowitz <drow@mvista.com>
8084
8085 * NEWS: Mention multithreaded debug support for gdbserver.
8086
519b2366
DJ
80872002-06-13 Daniel Jacobowitz <drow@mvista.com>
8088
8089 * MAINTAINERS: Mention NEWS.
8090
6c0d6680
DJ
80912002-06-13 Daniel Jacobowitz <drow@mvista.com>
8092
8093 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8094 (struct mips_objfile_private, compare_pdr_entries): New.
8095 (non_heuristic_proc_desc): Read the ".pdr" section if it
8096 is present.
8097
6529d2dd
AC
80982002-06-12 Andrew Cagney <ac131313@redhat.com>
8099
8100 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8101 (arm_debug): New static variable.
8102 (_initialize_arm_tdep): Add ``set debug arm'' command.
8103
26216b98
AC
81042002-06-12 Andrew Cagney <ac131313@redhat.com>
8105
8106 * Makefile.in (sim_arm_h): Define.
8107 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8108 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8109 (arm_register_sim_regno): New function, map an internal REGNUM
8110 onto a simulator register number.
8111 (arm_gdbarch_init): Set register_sim_regno.
8112
814b3ba0
AH
81132002-06-09 Aldy Hernandez <aldyh@redhat.com>
8114
8115 * MAINTAINERS: Add self.
8116
475b0867
JB
81172002-06-11 Jim Blandy <jimb@redhat.com>
8118
919d772c
JB
8119 * source.c (source_info): Mention whether the symtab has
8120 information about preprocessor macros.
8121
475b0867
JB
8122 Call the command `info macro', not `show macro'.
8123 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8124 Fix error message.
8125 (_initialize_macrocmd): Register `info_macro_command' in
8126 `infolist', not `showlist'.
8127
9e364162
DJ
81282002-06-11 Daniel Jacobowitz <drow@mvista.com>
8129
8130 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8131 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8132 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8133 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8134 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8135 unconditionally.
8136 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8137 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8138 (_initialize_mips_tdep): Remove dead code.
8139 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8140 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8141 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8142 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8143 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8144 MIPS_LAST_FP_ARG_REGNUM): Remove.
8145
23aa4c72
ML
81462002-06-11 Michal Ludvig <mludvig@suse.cz>
8147
8148 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8149 (unwind_tmp_obstack_free, parse_frame_info)
8150 (update_context, cfi_read_fp, cfi_write_fp)
8151 (cfi_frame_chain, cfi_init_extra_frame_info)
8152 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8153 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8154
70eb15a4
CV
81552002-06-11 Corinna Vinschen <vinschen@redhat.com>
8156
8157 * v850-tdep.c (v850_type_is_scalar): New function.
8158 (v850_use_struct_convention): Match current gcc implementation
8159 as close as possible.
8160 (v850_push_arguments): Fix stack_offset handling. Don't write
8161 struct_addr into register. This is done by v850_store_struct_return.
8162 (v850_extract_return_value): Care for structs.
8163 (v850_store_return_value): Ditto.
8164 (v850_store_struct_return): Actually write address.
8165
482a4d06
ML
81662002-06-11 Michal Ludvig <mludvig@suse.cz>
8167
8168 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8169 without debug information too.
8170
d855c300
AC
81712002-06-10 Andrew Cagney <ac131313@redhat.com>
8172
8173 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8174 Make multi-arch pure.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * arm-tdep.c (arm_print_float_info): Update.
8177 * arch-utils.h (default_print_float_info): Update.
8178 * arch-utils.c (default_print_float_info): Update.
8179 * infcmd.c (float_info): Update call.
8180
dd12a101
AC
81812002-06-10 Andrew Cagney <ac131313@redhat.com>
8182
8183 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8184 the front of the initialize list.
8185
101dcfbe
AC
81862002-06-10 Andrew Cagney <ac131313@redhat.com>
8187
8188 * infrun.c (struct inferior_status): Replace fields
8189 selected_frame_address and selected_level with field
8190 selected_frame_id.
8191 (save_inferior_status): Update. Use get_frame_id.
8192 (struct restore_selected_frame_args): Delete.
8193 (restore_selected_frame): Update. Use frame_find_by_id.
8194 (restore_inferior_status): Update.
8195
8196 * breakpoint.h (struct breakpoint): Change type of
8197 watchpoint_frame to frame_id.
8198 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8199 call to get_current_frame.
8200 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8201 get_current_frame.
8202 (watchpoint_check): Use frame_find_by_id.
8203
8204 * frame.h (record_selected_frame): Delete declaration.
8205 * stack.c (record_selected_frame): Delete function.
8206
8207 * frame.h (struct frame_id): Define.
8208 (get_frame_id): Declare.
8209 (frame_find_by_id): Declare.
8210 * frame.c (frame_find_by_id): New function.
8211 (get_frame_id): New function.
8212
304270b6
AV
82132002-06-10 Andrey Volkov <avolkov@transas.com>
8214
8215 * ser-e7kpc.c: Fix duplicated define and call of
8216 _initialize_ser_e7000pc
8217
2f2cf184
DJ
82182002-06-09 Daniel Jacobowitz <drow@mvista.com>
8219
8220 * signals/signals.c (target_signal_from_host): Fix #ifdef
8221 SIGRTMIN case.
8222 (do_target_signal_to_host): Likewise.
8223
caaa3122
DJ
82242002-06-09 Daniel Jacobowitz <drow@mvista.com>
8225
8226 * mips-tdep.c (mips_find_abi_section): New function.
8227 (mips_gdbarch_init): Call it.
8228
6ac5df3a
MK
82292002-06-09 Mark Kettenis <kettenis@gnu.org>
8230
8231 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8232 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8233 after Andrew's 2002-06-08 gdbarch change.
8234
82ea117a
MK
82352002-06-09 Mark Kettenis <kettenis@gnu.org>
8236
8237 * i386-linux-nat.c (suppy_gregset): Don't supply
8238 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8239 register cache.
8240 (fill_gregset): Don't fetch it under the same circumstances.
8241
3c25f8c7
AC
82422002-06-09 Andrew Cagney <cagney@redhat.com>
8243
8244 * Makefile.in (callback_h): Define.
8245 (remote_sim_h): Update path to remote-sim.h.
8246 (remote-rdp.o): Add $(callback_h).
8247 (remote-sim.o): Use $(callback_h).
8248 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8249 * remote-rdp.c: Include "gdb/callback.h".
8250
1029b7fa
MK
82512002-06-09 Mark Kettenis <kettenis@gnu.org>
8252
8253 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8254 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8255
616675d3
AC
82562002-06-08 Andrew Cagney <ac131313@redhat.com>
8257
a3efda28
AC
8258 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8259 * rdi-share/serpardr.c: Ditto.
8260 * rdi-share/unixcomm.c: Ditto.
8261 * rdi-share/serdrv.c: Ditto.
8262 * rdi-share/hostchan.h: Ditto.
8263 * rdi-share/hostchan.c: Ditto.
8264 * rdi-share/host.h: Ditto.
8265 * rdi-share/devsw.c: Ditto.
8266
c5f10366
AC
8267 * objfiles.h: Change type of obj_private to void pointer.
8268 * pa64solib.c: Update copyright. Don't include "assert.h", use
8269 strcmp instead of STREQ, use LONGEST, do not use PTR
8270 * somsolib.c: Ditto.
8271
616675d3
AC
8272 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8273 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8274 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8275
e4b415d9
AC
82762002-06-08 Andrew Cagney <ac131313@redhat.com>
8277
8278 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8279 (default_get_saved_register): Delete function.
8280 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8281 generic_unwind_get_saved_register.
8282 * gdbarch.h, gdbarch.c: Re-generate.
8283
ca0d0b52
AC
82842002-06-08 Andrew Cagney <ac131313@redhat.com>
8285
8286 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8287 generic_func_frame_chain_valid.
8288 * gdbarch.h, gdbarch.c: Re-generate.
8289 * blockframe.c (generic_func_frame_chain_valid): Only check
8290 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8291 passing FP to PC_IN_CALL_DUMMY.
8292 Fix PR gdb/360.
8293
76860b5f
AC
82942002-06-08 Andrew Cagney <ac131313@redhat.com>
8295
8296 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8297 (register_gdbarch_data): Initialize init_p.
8298 (gdbarch_data): Initialize data pointer using the init function.
8299 (init_gdbarch_data): Delete function.
8300 (gdbarch_update_p): Update.
8301 (initialize_non_multiarch): Update.
8302 (struct gdbarch): Add field initialized_p.
8303 * gdbarch.h, gdbarch.c: Re-generate.
8304
8dda9770
ML
83052002-06-07 Michal Ludvig <mludvig@suse.cz>
8306
8307 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8308 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8309 better do the things actually here.
8310 * x86-64-tdep.c (x86_64_register_name2nr): New.
8311 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8312 (x86_64_gdbarch_init): Respect the above change.
8313 * x86-64-tdep.h (x86_64_register_name2nr)
8314 (x86_64_register_nr2name): Add prototypes.
8315 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8316
3d79a47c
MS
83172002-06-06 Michael Snyder <msnyder@redhat.com>
8318
7bd91a28
MS
8319 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8320 Delete extra braces and re-indent.
8321 (d10v_store_return_value): Char return values
3d79a47c
MS
8322 must be shifted over by one byte in R0.
8323 (d10v_extract_return_value): Delete extra braces, re-indent.
8324
095a4c96
EZ
83252002-06-06 Elena Zannoni <ezannoni@redhat.com>
8326
8327 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8328 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8329 (d10v_integer_to_address): Rewrite.
8330 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8331 the d10v specific functions which take care of converting to the
8332 correct space.
8333
e8a77ca4
EZ
83342002-06-06 Elena Zannoni <ezannoni@redhat.com>
8335
8336 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8337 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8338
4f2e4a4f
AC
83392002-06-02 Andrew Cagney <ac131313@redhat.com>
8340
8341 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8342 includes.
8343 * config/tm-linux.h: Ditto.
8344 * config/alpha/tm-alphalinux.h: Ditto.
8345 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8346 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8347 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8348 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8349 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8350 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8351 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8352 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8353 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8354 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8355 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8356 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8357 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8358 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8359 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8360 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8361 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8362 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8363 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8364 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8365 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8366 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8367 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8368 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8369 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8370 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8371 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8372 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8373 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8374 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8375 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8376 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8377 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8378 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8379 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8380 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8381 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8382
ae2ab2ce
AS
83832002-05-04 Aidan Skinner <aidan@velvet.net>
8384
8385 * ada-exp.tab.c: New file
8386 * ada-exp.y: New file
8387 * ada-lang.c: New file
8388 * ada-lang.h: New file
8389 * ada-lex.c: New file
8390 * ada-lex.l: New file
8391 * ada-tasks.c: New file
8392 * ada-typeprint.c: New file
8393 * ada-valprint.c: New file
8394
0ddd0135
JT
83952002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8396
8397 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8398 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8399
750fbacc
JT
84002002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8401
8402 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8403 insetead of ppc-linux-tdep.o.
8404 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8405 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8406
df94e18a
AC
84072002-06-02 Andrew Cagney <ac131313@redhat.com>
8408
8409 2002-05-07 Christian Groessler <chris@groessler.org>
8410 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8411 bit register contents for little endian hosts.
8412
1a38ab75
AC
84132002-06-01 Andrew Cagney <ac131313@redhat.com>
8414
8415 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8416 any maintainer.
8417
8b1632ac
AC
84182002-06-01 Andrew Cagney <ac131313@redhat.com>
8419
8420 * gdbarch.h: Regenerate.
8421
627054c8
AC
84222002-06-01 Andrew Cagney <ac131313@redhat.com>
8423
8424 * MAINTAINERS: Add everyone to write-after-approval list.
8425
4f460812
AC
84262002-06-01 Andrew Cagney <ac131313@redhat.com>
8427
8428 * stack.c (frame_info): Use frame_register_unwind instead of
8429 saved_regs. Mention when the SP is on the stack or in a register.
8430
8431 * frame.h (frame_register_unwind_ftype): Define. Document.
8432 (struct frame_info): Add field register_unwind and
8433 register_unwind_cache.
8434 (frame_register_unwind): Declare.
8435 (generic_unwind_get_saved_register): Declare.
8436
8437 * frame.c (frame_register_unwind): New function.
8438 (generic_unwind_get_saved_register): New function.
8439
8440 * blockframe.c (generic_call_dummy_register_unwind): New function.
8441 (frame_saved_regs_register_unwind): New function.
8442 (set_unwind_by_pc): New function.
8443 (create_new_frame): New function.
8444 (get_prev_frame): New function.
8445
de888f76
AC
84462002-05-30 Andrew Cagney <ac131313@redhat.com>
8447
8448 * a29k-share/: Delete directory.
8449 * remote-vx29k.c: Delete file.
8450
2f2c3626
JT
84512002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8452
8453 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8454 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8455
9ce5c36a
JT
84562002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8457
8458 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8459 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8460 (sparc64nbsd-nat.o)
8461 (sparcnbsd-nat.o)
8462 (sparcnbsd-tdep.o): New dependency lists.
8463 * NEWS: Note new UltraSPARC NetBSD native configuration.
8464 * configure.host (sparc64-*-netbsd*): New host.
8465 * configure.tgt (sparc-*-netbsdelf*)
8466 (sparc-*-netbsd*): Set gdb_target to nbsd.
8467 (sparc64-*-netbsd*): New target.
8468 * sparc64nbsd-nat.c: New file.
8469 * sparcnbsd-nat.c: New file.
8470 * sparcnbsd-tdep.c: New file.
8471 * sparcnbsd-tdep.h: New file.
8472 * config/sparc/nbsd.mt: New file.
8473 * config/sparc/nbsd64.mh: New file.
8474 * config/sparc/nbsd64.mt: New file.
8475 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8476 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8477 (HOST_IPC): Remove.
8478 * config/sparc/nbsdaout.mt: Remove.
8479 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8480 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8481 (HOST_IPC): Remove.
8482 * config/sparc/nbsdelf.mt: Remove.
8483 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8484 sparc-nat.c compatiblity defines.
8485 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8486 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8487 * config/sparc/tm-nbsd64.h: New file.
8488 * config/sparc/tm-nbsdaout.h: Remove.
8489 * config/sparc/xm-nbsd.h: Remove.
8490
ef3cf062
JT
84912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8492
8493 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8494 * sparc-tdep.c: Include osabi.h.
8495 (gdbarch_tdep): Add osabi member.
8496 (_initialize_sparc_tdep): Use gdbarch_register.
8497 (sparc_gdbarch_init): Use generic OS ABI framework.
8498 (sparc_dump_tdep): New function.
8499
ee8ff470
KB
85002002-05-30 Kevin Buettner <kevinb@redhat.com>
8501
8502 * corefile.c (do_captured_read_memory_integer): Return non-zero
8503 result.
8504 (safe_read_memory_integer): Copy result of memory read when
8505 status is non-zero. Also, add comments.
8506
7b112f9c
JT
85072002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8508
8509 * Makefile.in (ppc_tdep_h): Define.
8510 (ppc-linux-nat.o)
8511 (ppc-linux-tdep.o)
8512 (rs6000-tdep.o): Use $(ppc_tdep_h).
8513 (ppc-sysv-tdep.o)
8514 (ppcnbsd-nat.o)
8515 (ppcnbsd-tdep.o): New dependency lists.
8516 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8517 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8518 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8519 (ppc_sysv_abi_broken_use_struct_convention)
8520 (ppc_sysv_abi_use_struct_convention)
8521 (ppc_sysv_abi_push_arguments): Move to...
8522 * ppc-sysv-tdep.c: ...here.
8523 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8524 * rs6000-tdep.c (process_note_abi_tag_sections)
8525 (get_elfosabi): Remove.
8526 (rs6000_gdbarch_init): Use generic OS ABI framework.
8527 (rs6000_dump_tdep): New function.
8528 (_initialize_rs6000_tdep): Use gdbarch_register.
8529 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8530 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8531 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8532 of ppc-linux-tdep.o.
8533 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8534 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8535 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8536 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8537 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8538 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8539
480dd42a
JB
85402002-05-29 Jim Blandy <jimb@redhat.com>
8541
8542 * macroscope.c (default_macro_scope): Put `void' in empty argument
8543 list.
8544
4182591f
AC
85452002-05-29 Andrew Cagney <ac131313@redhat.com>
8546
8547 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8548 * arch-utils.c: Include "sim-regno.h".
8549 * gdbarch.sh: Don't include "sim-regno.h".
8550 * gdbarch.h, gdbarch.c: Regenerate.
8551 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8552 here.
8553 * arch-utils.h (legacy_register_sim_regno): To here.
8554 * remote-sim.c (legacy_register_sim_regno): Move function from
8555 here.
8556 * arch-utils.c (legacy_register_sim_regno): To here.
8557
8238d0bf
AC
85582002-05-28 Andrew Cagney <ac131313@redhat.com>
8559
8560 * sim-regno.h: New file.
8561 * Makefile.in (sim_regno_h): Define.
8562 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8563 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8564 (legacy_register_sim_regno): New function.
8565 (one2one_register_sim_regno): New function.
8566 (gdbsim_fetch_register): Rewrite.
8567 (gdbsim_store_register): Only store a register when
8568 REGISTER_SIM_REGNO is valid.
8569 * d10v-tdep.c: Include "sim-regno.h".
8570 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8571 (d10v_ts3_register_sim_regno): Ditto.
8572 * gdbarch.sh: Include "sim-regno.h".
8573 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8574 * gdbarch.h, gdbarch.c: Regenerate.
8575 * arch-utils.h (default_register_sim_regno): Delete declaration.
8576 * arch-utils.c (default_register_sim_regno): Delete function.
8577
485721b1
JT
85782002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8579
8580 * ppcnbsd-nat.c: Rewrite.
8581 * ppcnbsd-tdep.c: New file.
8582 * ppcnbsd-tdep.h: New file.
8583 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8584 solib.o, and solib-svr4.o.
8585 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8586 nbsd-tdep.o, and corelow.o.
8587
697f244d
AC
85882002-05-28 Andrew Cagney <ac131313@redhat.com>
8589
8590 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8591 `tr' and `sed'. Mention that `broken' targets are not expected to
8592 build.
8593
f08caad1 85942002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8595
8596 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8597 Let PC point right after the prologue before looking up symbols.
8598
3139facc
MH
85992002-05-27 Martin M. Hunt <hunt@redhat.com>
8600
8601 * i386-tdep.c (i386_register_virtual_type): Return
8602 builtin_type_vec128i for SSE registers.
8603
8604 * gdbtypes.h (builtin_type_vec128i): Declare.
8605
8606 * gdbtypes.c (build_builtin_type_vec128i): New function.
8607 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8608 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8609 (build_gdbtypes): Initialize new builtin vector types.
8610 (_initialize_gdbtypes): Register new vector types with gdbarch.
8611
6e3ba3b8
JT
86122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8613
8614 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8615 since it has been multi-arch'd.
8616 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8617 Move Alpha and VAX multi-arch news entries to same section
8618 as other multi-arch news.
8619
93d5585d
JT
86202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8621
8622 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8623 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8624 static. Rename some register numbers to put them in ns32k-tdep
8625 private namespace.
8626 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8627 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8628 functions.
8629 (_initialize_ns32k_tdep): Use gdbarch_register.
8630 * ns32k-tdep.h: New file.
8631 * ns32knbsd-tdep.c: New file.
8632 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8633 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8634 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8635 REGISTER_BYTES, REGISTER_BYTE): Remove.
8636 * config/ns32k/tm-ns32k.h: New file.
8637 * config/ns32k/tm-umax.h: Remove.
8638
efb2c70e
JT
86392002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8640
8641 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8642 ns32k_store_struct_return, ns32k_extract_return_value,
8643 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8644 functions.
8645 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8646 ns32k_saved_pc_after_call.
8647 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8648 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8649 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8650 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8651 ns32k_extract_struct_value_address.
8652
7bcc927b
JT
86532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8654
8655 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8656 ns32k_fix_call_dummy): New.
8657 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8658 ns32k_call_dummy_words.
8659 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8660 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8661 CALL_DUMMY_NARGS): Remove.
8662 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8663
78f9d765
JT
86642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8665
8666 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8667 ns32k_frame_saved_pc, ns32k_frame_args_address,
8668 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8669 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8670 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8671 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8672 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8673 (BREAKPOINT): Remove..
8674 (FRAME_CHAIN): Define as ns32k_frame_chain.
8675 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8676 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8677 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8678 (FRAME_FIND_SAVED_REGS): Remove.
8679 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8680 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8681 (POP_FRAME): Define as ns32k_pop_frame.
8682
f2c762e0
JT
86832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8684
8685 * ns32k-tdep.c (ns32k_register_byte_32082,
8686 ns32k_register_byte_32382, ns32k_register_raw_size,
8687 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8688 functions.
8689 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8690 ns32k_register_byte_32382.
8691 * config/ns32k/tm-umax.h: Update copyright years.
8692 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8693 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8694 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8695 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8696 (ns32k_get_enter_addr): Fix prototype.
8697
af137673
JT
86982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8699
8700 * ns32k-tdep.c: Update copyright years.
8701 (ns32k_register_name_32082): New function.
8702 (ns32k_register_name_32382): Ditto.
8703 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8704 (REGISTER_NAME): Define as ns32k_register_name_32382.
8705 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8706 (REGISTER_NAME): Define as ns32k_register_name_32082.
8707
a8bc7b56
JB
87082002-05-24 Jim Blandy <jimb@redhat.com>
8709
8710 * dwarf2read.c (free_line_header): Use xfree, not free.
8711
83a45910
JT
87122002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8713
8714 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8715 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8716
0db71247
AC
87172002-05-23 Andrew Cagney <ac131313@redhat.com>
8718
8719 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8720
b9e5e4dd
AC
87212002-05-23 Andrew Cagney <ac131313@redhat.com>
8722
8723 From Ross Alexander at NEC Europe:
8724 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8725
de530e84
MS
87262002-05-23 Michael Snyder <msnyder@redhat.com>
8727
8728 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8729 for input, rather than parse_and_eval_address.
8730
b91b96f4
AC
87312002-05-23 Andrew Cagney <ac131313@redhat.com>
8732
8733 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8734 * Makefile.in (sim_d10v_h): Update definition.
8735
8b279e7a
AC
87362002-05-24 Andrew Cagney <cagney@redhat.com>
8737
8738 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8739 change `2002-05-22 Michael Snyder' below.
8740 (d10v_push_arguments): Ditto.
8741 (d10v_extract_return_value): Ditto.
8742
0a3d0425
JB
87432002-05-23 Jim Blandy <jimb@redhat.com>
8744
8745 * macrotab.c (check_for_redefinition): Don't complain if the new
8746 definition is the same as the previous one. Take more arguments
8747 to allow the comparison.
8748 (macro_define_object, macro_define_function): Pass more arguments
8749 to check_for_redefinition.
8750
78eac43e
MS
87512002-05-22 Michael Snyder <msnyder@redhat.com>
8752
8753 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8754 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8755 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8756 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8757 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8758 Add a temp variable to save a call (and a memory read).
8759 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8760 if possible (so that PC_IN_CALL_DUMMY will work).
8761
9bc1edb8
CV
87622002-05-22 Corinna Vinschen <vinschen@redhat.com>
8763
8764 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8765
005ef3d2
ML
87662002-05-22 Michal Ludvig <mludvig@suse.cz>
8767
8768 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8769 fde->cie_ptr.
8770 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8771 (dwarf2_build_frame_info): Add offset to fde->initial_location
8772 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8773 (execute_stack_op): Change type of 'result' from ULONGEST to
8774 CORE_ADDR.
005ef3d2 8775
fcf4f891
JT
87762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8777
8778 * config/alpha/tm-nbsd.h: Include solib.h.
8779
cfef91e4
JT
87802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8781
8782 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8783 assumptions about the host's byte order.
8784
9964235a
JT
87852002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8786
8787 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8788 to dependency list.
8789 * alphanbsd-tdep.c: Include solib-svr4.h.
8790 * shnbsd-tdep.c: Ditto.
8791
9eeef8ef
JT
87922002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8793
8794 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8795 nbsd-tdep.h to dependency list.
8796 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8797 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8798 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8799 nbsdaout.mh and nbsdelf.mh consistently.
8800 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8801 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8802 nbsdaout.mt and nbsdelf.mh consistently.
8803 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8804 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8805 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8806 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8807 a.out shared library stuff from here...
8808 * config/nm-nbsdaout.h: ...to here.
8809 * config/tm-nbsd.h: Remove.
8810 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8811 * config/arm/nbsd.mh: Remove.
8812 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8813 nbsd-tdep.o.
8814 * config/arm/nbsdaout.mh: New file.
8815 * config/arm/nbsdelf.mh: New file.
8816 * config/arm/nm-nbsdaout.h: New file.
8817 * config/i386/nbsd.mh: Remove.
8818 * config/i386/nbsd.mt: Remove.
8819 * config/i386/nbsdaout.mh: New file.
8820 * config/i386/nbsdaout.mt: New file.
8821 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8822 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8823 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8824 i386_register_u_addr): Remove.
8825 * config/i386/nm-nbsdaout.h: New file.
8826 * config/i386/nm-nbsdelf.h: Remove.
8827 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8828 (USE_STRUCT_CONVENTION): Remove.
8829 * config/i386/tm-nbsdaout.h: New file.
8830 * config/i386/tm-nbsdelf.h: Remove.
8831 * config/m68k/nbsd.mh: Remove.
8832 * config/m68k/nbsd.mt: Remove.
8833 * config/m68k/nbsdaout.mh: New file.
8834 * config/m68k/nbsdaout.mt: New file.
8835 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8836 * config/m68k/nm-nbsdaout.h: New file.
8837 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8838 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8839 * config/ns32k/nbsd.mh: Remove.
8840 * config/ns32k/nbsd.mt: Remove.
8841 * config/ns32k/nbsdaout.mh: New file.
8842 * config/ns32k/nbsdaout.mt: New file.
8843 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8844 * config/ns32k/nm-nbsdaout.h: New file.
8845 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8846 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8847 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8848 (SVR4_SHARED_LIBS): Remove.
8849 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8850 * config/sparc/nbsd.mh: Remove.
8851 * config/sparc/nbsd.mt: Remove.
8852 * config/sparc/nbsdaout.mh: New file.
8853 * config/sparc/nbsdaout.mt: New file.
8854 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8855 * config/sparc/nbsdelf.mt: New file.
8856 * config/sparc/nm-nbsdaout.h: New file.
8857 * config/sparc/nm-nbsdelf.h: Remove.
8858 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8859 * config/sparc/tm-nbsdaout.h: New file.
8860
257ce470
JT
88612002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8862
8863 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8864 mipsnbsd-tdep.c
8865 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8866
76a6d5fe
JT
88672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8868
8869 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8870 shnbsd-nat.c.
8871 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8872
45888261
JT
88732002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8874
8875 * NEWS: Note new MIPS NetBSD native configuration.
8876 * configure.host (mips*-*-netbsd*): New host.
8877 * configure.tgt (mips*-*-netbsd*): New target.
8878 * mipsnbsd-nat.c: New file.
8879 * mipsnbsd-tdep.c: New file.
8880 * mipsnbsd-tdep.h: New file.
8881 * config/mips/nbsd.mh: New file.
8882 * config/mips/nbsd.mt: New file.
8883 * config/mips/nm-nbsd.h: New file.
8884 * config/mips/tm-nbsd.h: New file.
8885
70f80edf
JT
88862002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8887
8888 * Makefile.in (SFILES): Add osabi.c.
8889 (COMMON_OBS): Add osabi.o.
8890 (osabi.o): New dependency list.
8891 * osabi.c: New file.
8892 * osabi.h: New file.
8893 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8894
8895 * Makefile.in (alpha_tdep_h): Define and use instead of
8896 alpha-tdep.h.
8897 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8898 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8899 Remove.
8900 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8901 * alpha-tdep.h: Include osabi.h.
8902 (alpha_abi): Remove.
8903 (gdbarch_tdep): Use generic OS ABI framework.
8904 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8905 gdbarch_register_osabi.
8906 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8907 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8908 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8909
8910 * Makefile.in (sh_tdep_h): Add osabi.h.
8911 * sh-tdep.h (sh_osabi): Remove.
8912 (gdbarch_tdep): Use generic OS ABI framework.
8913 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8914 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8915 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8916 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8917
8918 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8919 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8920 gdbarch_register_osabi.
8921 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8922 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8923 (get_elfosabi): Rename to...
8924 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8925 ABI framework support routines.
8926 (arm_gdbarch_init): Use generic OS ABI framework.
8927 (arm_dump_tdep): Likewise.
8928 (_initialize_arm_tdep): Likewise.
8929 * arm-tdep.h: Include osabi.h.
8930 (arm_abi): Remove.
8931 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8932 osabi member.
8933 (arm_gdbarch_register_os_abi): Remove prototype.
8934 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8935 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8936
8937 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8938 * mips-tdep.c: Include osabi.h.
8939 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8940 OS ABI framework.
8941
d194345b
KH
89422002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8943
8944 * h8300-tdep.c: Fix formatting.
8945
70c6b0d1
EZ
89462002-05-20 Elena Zannoni <ezannoni@redhat.com>
8947
8948 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8949 printing vector registers.
8950
165b8e33
AC
89512002-05-19 Andrew Cagney <ac131313@redhat.com>
8952
8953 From Fernando Nasser:
8954 * remote.c (remote_async_open_1): Re-throw the exception when the
8955 connection fails.
8956 (remote_cisco_open): Ditto.
8957 (remote_open_1): Ditto.
8958
36918e70
AC
89592002-05-19 Andrew Cagney <ac131313@redhat.com>
8960
8961 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8962 (remote_start_remote): Add uiout parameter. Pass through to
8963 remote_start_remote_dummy.
8964 (remote_open_1): Use catch_exception instead of catch_errors.
8965 (remote_async_open_1): Ditto.
8966 (remote_cisco_open): Ditto.
8967
ae44c0c4
AC
89682002-05-19 Andrew Cagney <ac131313@redhat.com>
8969
8970 * remote.c (remote_start_remote): Replace PTR with void pointer.
8971 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8972 static.
8973
8efe637d
AC
89742002-05-18 Andrew Cagney <ac131313@redhat.com>
8975
8976 * gdb_indent.sh: Allow the script to be run in the sim directory.
8977
2f1b5984
MK
89782002-05-18 Mark Kettenis <kettenis@gnu.org>
8979
f0f625e2
MK
8980 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8981 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8982
2f1b5984
MK
8983 * corelow.c (core_open): Only call set_gdbarch_from_file if
8984 exec_bfd is NULL.
8985
fc974602
AV
89862002-05-17 Andrey Volkov <avolkov@transas.com>
8987
8988 * h8300-tdep.c: Add support of EXR register
8989 * config/h8300/tm-h8300.h: Ditto.
8990
906709f4
AV
89912002-05-17 Andrey Volkov <avolkov@transas.com>
8992
8993 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8994
6e591d68
AV
89952002-05-17 Andrey Volkov <avolkov@transas.com>
8996
8997 * h8300-tdep.c: Change literal regnums to REGNO.
8998
84f0252a
JB
89992002-05-17 Jim Blandy <jimb@redhat.com>
9000
e0e9281e
JB
9001 * NEWS: Note addition of macro support.
9002
84f0252a
JB
9003 Expand preprocessor macros in C expressions.
9004 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9005 (scan_macro_expansion, scanning_macro_expansion,
9006 finished_macro_expansion): New function declarations.
9007 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9008 variable declarations.
9009 * parser-defs.h (expression_context_pc): New declaration.
9010 * parse.c (expression_context_pc): New variable.
9011 (parse_exp_1): Set expression_context_pc, as well as
9012 expression_context_block.
9013 * c-exp.y (yylex): If we're not already reading the result of a
9014 macro expansion, try to macro-expand the next token. When we're
9015 done scanning a macro expansion, switch back to the mainline text.
9016 Commas and `if's in a macro's expansion don't terminate the input.
9017 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9018 (macro_original_text, macro_expanded_text,
9019 expression_macro_lookup_func, expression_macro_lookup_baton): New
9020 variables.
9021 (scan_macro_expansion, scanning_macro_expansion,
9022 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9023 c_preprocess_and_parse): New functions.
9024 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9025 c_preprocess_and_parse, instead of c_parse.
9026 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9027 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9028
1c509ca8
JR
9029Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9030
9031 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9032 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9033 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9034
2250ee0c
CV
90352002-05-17 Corinna Vinschen <vinschen@redhat.com>
9036
9037 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9038
ab3b8126
JT
90392002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9040
9041 * Makefile.in (sh_tdep_h): Define and use.
9042 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9043 register enum): Move to...
9044 * * sh-tdep.h: ...here.
9045 * sh-tdep.c: Include sh-tdep.h.
9046 * sh3-rom.c: Likewise.
9047 * shnbsd-tdep.c: Likewise.
9048
ed9d4749
MS
90492002-05-16 Michael Snyder <msnyder@redhat.com>
9050
9051 * arm-tdep.c: Spelling fix in comment.
9052
2e276125
JB
90532002-05-16 Jim Blandy <jimb@redhat.com>
9054
6821892e
JB
9055 Add commands for manually expanding macros and showing their
9056 definitions.
9057 * macrocmd.c, macroscope.c, macroscope.h: New files.
9058 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9059 (macroscope_h): New variable.
9060 (HFILES_NO_SRCDIR): Add macroscope.h.
9061 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9062 (macroscope.o, macrocmd.o): New rules.
9063
2e276125
JB
9064 Teach the Dwarf 2 reader to read macro information.
9065 * dwarf2read.c: #include "macrotab.h".
9066 (dwarf_macinfo_buffer): New variable.
9067 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9068 dwarf_macinfo_size.
9069 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9070 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9071 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9072 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9073 dwarf2_macro_spaces_in_definition): New complaints.
9074 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9075 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9076 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9077 the partial symbol table.
9078 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9079 from what's recorded in the partial symbol table.
9080 (read_file_scope): If the compilation unit has a
9081 `DW_AT_macro_info' attribute, read its macro information.
9082 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9083
2f53fe6c
DJ
90842002-05-16 Daniel Jacobowitz <drow@mvista.com>
9085
9086 Fix PR gdb/546
9087 * ser-tcp.c: Don't include <netinet/udp.h>.
9088
2be99286
SC
90892002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9090
9091 * MAINTAINERS: Update my email address.
9092
c9af212b 90932002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9094
9095 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9096 include file of the same name.
9097
bf5f1a52
CV
90982002-05-16 Corinna Vinschen <vinschen@redhat.com>
9099
9100 * configure.tgt: Mark v850 as multi-arched.
9101 * config/v850/tm-v850.h: Remove file.
9102 * config/v850/v850.mt: Eliminate TM_FILE.
9103
435e042a
CV
91042002-05-16 Corinna Vinschen <vinschen@redhat.com>
9105
9106 * v850-tdep.c: Full multi-arch.
9107 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9108 Define GDB_MULTI_ARCH to 2.
9109
9819c6c8
PM
91102002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9111
9112 * p-exp.y (current_type): New static variable.
9113 Carries the type of the expression at the position that is parsed.
9114 (push_current_type, pop_current_type): Two new functions. Used
9115 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9116 (search_field): New static variable. Set to one after parsing a point
9117 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9118 (FIELDNAME): New token. After a point only a token belonging to
9119 current_type type definition is allowed.
9120 (all over token rules): reset and change current_type according
9121 to rules.
9122 (exp '[' rule): insert implicit array index field if
9123 exp is a pascal string type.
9124
3a06899a
CV
91252002-05-16 Corinna Vinschen <vinschen@redhat.com>
9126
9127 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9128 frame info. Use frame_info's saved_regs instead of matching member
9129 in extra_frame_info throughout.
9130 (v850_frame_init_saved_regs): New function.
9131 (v850_init_extra_frame_info): Move most functionality into
9132 v850_frame_init_saved_regs().
9133 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9134 (v850_frame_find_saved_regs): Remove declaration.
9135 (FRAME_FIND_SAVED_REGS): Remove definition.
9136 (v850_frame_init_saved_regs): Add declaration.
9137 (FRAME_INIT_SAVED_REGS): Add definition.
9138
6ed14b0e
CV
91392002-05-16 Corinna Vinschen <vinschen@redhat.com>
9140
9141 * v850-tdep.c: Begin multi-arch'ing v850.
9142 (v850_target_architecture_hook): Remove function.
9143 (v850_gdbarch_init): New function. Add code previously in
9144 v850_target_architecture_hook().
9145 (_initialize_v850_tdep): Don't set target_architecture_hook.
9146 Call register_gdbarch_init() instead.
9147
42725910
DJ
91482002-05-16 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9151 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9152 (fixup_class_method_type): Likewise.
9153
99d9066e
JB
91542002-05-15 Jim Blandy <jimb@redhat.com>
9155
9156 Add macro structures to GDB's symbol tables. Nobody puts anything
9157 in them yet.
9158 * symtab.h (struct symtab): New member: `macro_table'.
9159 * buildsym.h (pending_macros): New global variable.
9160 * buildsym.c: #include "macrotab.h".
9161 (buildsym_init): Initialize `pending_macros'.
9162 (end_symtab): If we found macro information while reading a CU's
9163 debugging info, do build a symtab structure for it. Make the
9164 symtab point to the macro information, and clear the
9165 `pending_macros' pointer which held it while we were reading the
9166 debug info.
9167 (really_free_pendings): Free any pending macro table.
9168 * objfiles.h (struct objfile): New member: `macro_cache'.
9169 * objfiles.c (allocate_objfile): Set allocate and free functions
9170 for the macro cache's objstack.
9171 (free_objfile): Empty the macro cache's obstack.
9172 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9173 set new allocate and free functions for it.
9174 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9175 free functions for the macro cache's objstack. (Why is this
9176 function building its own objfile?)
9177 * symmisc.c (print_objfile_statistics): Print statistics on the
9178 macro bcache.
9179 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9180
c899585b
RE
91812002-05-15 Richard Earnshaw <rearnsha@arm.com>
9182
9183 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9184 (REGISTER_U_ADDR): Delete definition.
9185 (arm_register_u_addr): Delete declaration.
9186
a6cdd8c5
RE
91872002-05-15 Richard Earnshaw <rearnsha@arm.com>
9188
9189 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9190 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9191
c97dcfc7
AC
91922002-05-14 Andrew Cagney <ac131313@redhat.com>
9193
9194 * regcache.c (register_valid): Revise comments refering to "Not
9195 available" and "unavailable".
9196 * frame.c (frame_register_read): Ditto.
9197 * findvar.c (value_of_register): Ditto.
9198
93021b7d
AC
91992002-05-15 Andrew Cagney <cagney@redhat.com>
9200
9201 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9202 (remote-sim.o): Update dependencies.
9203 (d10v-tdep.o): Specify dependencies.
9204 (sim_d10v_h): Define.
9205
a86bc61c
JB
92062002-05-14 Jim Blandy <jimb@redhat.com>
9207
9208 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9209 * macrotab.c (macro_lookup_inclusion, find_definition,
9210 new_macro_table): Same.
9211
9212 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9213 not `! strcmp ()'. This is a dubious improvement.
9214 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9215
9216 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9217 although it's not necessary, to avoid a warning.
9218
2fdde8f8
DJ
92192002-05-14 Daniel Jacobowitz <drow@mvista.com>
9220
9221 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9222 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9223 TYPE_INSTANCE_FLAGS.
9224 (struct main_type): New.
9225 (struct type): Move most members to struct main_type. Change
9226 cv_type and as_type to new type_chain member. Add instance_flags.
9227 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9228 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9229 (finish_cv_type): Remove prototype.
9230 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9231 Set TYPE_CHAIN.
9232 (alloc_type_instance): New function.
9233 (smash_type): New function.
9234 (make_pointer_type, make_reference_type, make_function_type)
9235 (smash_to_member_type, smash_to_method_type): Call smash_type.
9236 (make_qualified_type): New function.
9237 (make_type_with_address_space): Call make_qualified_type.
9238 (make_cv_type): Likewise.
9239 (finish_cv_type): Remove unnecessary function.
9240 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9241 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9242 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9243 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9244 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9245 * hpread.c (hpread_read_struct_type): Likewise.
9246 * stabsread.c (read_struct_type): Likewise.
9247
843fedf4
EZ
92482002-05-14 Elena Zannoni <ezannoni@redhat.com>
9249
9250 * configure.tgt: Add a catch all sh* target, for cases like
9251 sh[2,3,4]-elf and sh-hms.
9252
05a6c72c
KS
92532002-05-14 Keith Seitz <keiths@redhat.com>
9254
9255 * event-loop.c (create_file_handler): Don't do anything but
9256 update data when we are given a fd which we are already
9257 monitoring.
9258
5d085aaf
ML
92592002-05-14 Michal Ludvig <mludvig@suse.cz>
9260
9261 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9262 (update_context): Use __func__ in warnings.
9263
9db8d71f
DJ
92642002-05-14 Daniel Jacobowitz <drow@mvista.com>
9265
9266 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9267 and tcp_close to net_open and net_close.
9268 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9269 using UDP if requested. Don't try to disable Nagle on UDP
9270 sockets.
9271 * remote.c (remote_serial_open): New function. Warn about UDP.
9272 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9273
5dbc6baa
EZ
92742002-05-13 Elena Zannoni <ezannoni@redhat.com>
9275
9276 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9277
cc3023f7
EZ
92782002-05-13 Elena Zannoni <ezannoni@redhat.com>
9279
9280 * configure.tgt: Remove sh-hms target.
9281 * MAINTAINERS: Don't list sh-hms as a separate target.
9282
ec2bcbe7
JB
92832002-05-13 Jim Blandy <jimb@redhat.com>
9284
9285 Add first preprocessor macro-expansion files.
9286 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9287 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9288 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9289 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9290 (COMMON_OBS): Add macrotab.o, macroexp.o.
9291 (macroexp.o, macrotab.o): New rules.
9292
6d531722
AC
92932002-05-13 Andrew Cagney <ac131313@redhat.com>
9294
9295 * config/m88k/tm-m88k.h: Update copyright.
9296 (m88k_target_write_pc): Declare
9297 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9298 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9299 (SHIFT_INST_REGS): Update definition.
9300 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9301 using old definition of TARGET_WRITE_PC.
9302 * regcache.c (generic_target_write_pc): Delete code handling
9303 NNPC_REGNUM.
9304 * gdbarch.sh (NNPC_REGNUM): Delete.
9305 * gdbarch.h, gdbarch.c: Regenerate.
9306
3e3f2739
RE
93072002-05-13 Richard Earnshaw <rearnsha@arm.com>
9308
9309 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9310 builtin reg number.
9311
0004e5a2
DJ
93122002-05-13 Daniel Jacobowitz <drow@mvista.com>
9313
9314 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9315 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9316 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9317 access macros.
9318 * c-typeprint.c (cp_type_print_method_args): Likewise.
9319 (c_type_print_args): Likewise.
9320 * d10v-tdep.c (d10v_push_arguments): Likewise.
9321 (d10v_extract_return_value): Likewise.
9322 * expprint.c (print_subexp): Likewise.
9323 * gdbtypes.c (lookup_primitive_typename): Likewise.
9324 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9325 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9326 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9327 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9328 (TYPE_VECTOR): Likewise.
9329 * hpread.c (hpread_read_struct_type)
9330 (fix_static_member_physnames, fixup_class_method_type)
9331 (hpread_type_lookup): Likewise.
9332 * mdebugread.c (parse_symbol, parse_type): Likewise.
9333 * p-lang.c (is_pascal_string_type): Likewise.
9334 * valops.c (hand_function_call): Likewise.
9335 * x86-64-tdep.c (classify_argument): Likewise.
9336
9337 * hpread.c (hpread_read_function_type)
9338 (hpread_read_doc_function_type): Call replace_type.
9339 * dstread.c (create_new_type): Delete.
9340 (decode_dst_structure, process_dst_function): Call alloc_type.
9341 Use type access macros.
9342
dff95cc7
MK
93432002-05-12 Mark Kettenis <kettenis@gnu.org>
9344
9345 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9346 the're not supported by the current architecture.
9347 (i387_fill_fxsave): Likewise.
9348
bbcd32ad
FF
93492002-05-12 Fred Fish <fnf@redhat.com>
9350
9351 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9352 sect_index_xxx members to index the first slot in section_offsets
9353 if all of the section_offsets are zero.
9354
89cf4787
MK
93552002-05-12 Mark Kettenis <kettenis@gnu.org>
9356
9357 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9358 checked in with last change.
9359
1f77ffc5
MK
93602002-05-12 Mark Kettenis <kettenis@gnu.org>
9361
9362 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9363 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9364 config.sub.
9365
89b8b4a9
DJ
93662002-05-12 Daniel Jacobowitz <drow@mvista.com>
9367
9368 * Makefile.in: Update dependencies.
9369
14a5e767
AC
93702002-05-11 Andrew Cagney <ac131313@redhat.com>
9371
9372 * language.c (local_hex_string_custom): Simplify. Do not depend
9373 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9374
9375 * memattr.c (mem_info_command): Replace calls to
9376 longest_local_hex_string and longest_local_hex_string_custom.
9377 * buildsym.c (make_blockvector): Ditto.
9378 * solib.c (info_sharedlibrary_command): Ditto.
9379 * tracepoint.c (tracepoints_info): Ditto.
9380 * symtab.c (print_msymbol_info): Ditto.
9381
9382 * language.c (local_hex_string): Delete.
9383 (local_hex_string_custom): Delete.
9384 (longest_local_hex_string): Rename to local_hex_string.
9385 (longest_local_hex_string_custom): Rename to
9386 local_hex_string_custom.
9387 * language.h (local_hex_string): Change parameter type to LONGEST.
9388 (local_hex_string_custom): Ditto.
9389 (longest_local_hex_string): Delete declaration.
9390 (longest_local_hex_string_custom): Ditto.
9391
9392 * solib.c: Update copyright.
9393 * memattr.c: Update copyright.
9394
13d01224
AC
93952002-05-11 Andrew Cagney <ac131313@redhat.com>
9396
9397 * arch-utils.h (legacy_register_to_value): Declare.
9398 (legacy_value_to_register): Declare.
9399 (legacy_convert_register_p): Declare.
9400 * arch-utils.c (legacy_register_to_value): New function.
9401 (legacy_value_to_register): New function.
9402 (legacy_convert_register_p): New function.
9403
9404 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9405 (VALUE_TO_REGISTER): Define.
9406 (CONVERT_REGISTER_P): Define.
9407 * gdbarch.h, gdbarch.c: Regenerate.
9408
9409 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9410 VALUE_TO_REGISTER.
9411 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9412 CONVERT_REGISTER_P.
9413
4a1970e4
DJ
94142005-05-11 Daniel Jacobowitz <drow@mvista.com>
9415 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9416
9417 * Makefile.in: Update dependencies for valops.c.
9418 * valops.c: Include "gdb_assert.h".
9419 (typecmp): Skip THIS parameter to methods.
9420 (find_method_list): Remove static_memfuncp argument,
9421 update callers. Check for stub methods.
9422 (find_value_oload_method_list): Don't set *static_memfuncp.
9423 (find_overload_match): Don't check for stub methods. Assert
9424 that methods are not stubbed. Handle static methods.
9425 (value_find_oload_method_list): Remove static_memfuncp argument.
9426 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9427 to the argument list for static stub methods.
9428 * value.h (value_find_oload_method_list): Update prototype.
9429
b2e75d78
AC
94302002-05-11 Andrew Cagney <ac131313@redhat.com>
9431
9432 * arch-utils.h (generic_register_size): Declare.
9433 (generic_register_raw_size, generic_register_virtual_size): Delete
9434 declarations.
9435 * arch-utils.c (generic_register_raw_size): Delete.
9436 (generic_register_size): New function.
9437 (generic_register_virtual_size): Delete.
9438
9439 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9440 default generic_register_size.
9441 * gdbarch.h, gdbarch.c: Re-generate.
9442
9443 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9444 register_virtual_size.
9445 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9446 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9447
451fbdda
AC
94482002-05-11 Andrew Cagney <ac131313@redhat.com>
9449
9450 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9451 * gdbarch.h, gdbarch.c: Regenerate.
9452 * gnu-v3-abi.c: Update copyright.
9453 (vtable_address_point_offset): Update.
9454 (gnuv3_rtti_type): Update.
9455 (gnuv3_baseclass_offset): Update.
9456 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9457 (init_fetch_link_map_offsets): Update.
9458 * remote.c (get_remote_state): Update.
9459
6d2f5cea
DJ
94602002-05-11 Daniel Jacobowitz <drow@mvista.com>
9461
9462 * TODO: Remove value_headof/value_from_vtable_info comment.
9463 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9464 * values.c (value_headof, value_from_vtable_info): Delete.
9465 * value.h (value_from_vtable_info): Delete prototype.
9466
d2324da4
AC
94672002-05-11 Andrew Cagney <ac131313@redhat.com>
9468
9469 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9470 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9471 $(gdb_regex_h).
9472 (gdb_assert_h): Define.
9473 (gdb_wait_h): Define.
9474 (gdb_regex_h): Define.
9475
5c717440
DJ
94762002-05-11 Daniel Jacobowitz <drow@mvista.com>
9477
9478 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9479 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9480
6c7861b3
JT
94812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * nbsd-tdep.c: Fix comment.
9484
ea5bc2a6
JT
94852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9486
9487 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9488 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9489 (nbsd-tdep.o): New dependency list.
9490 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9491 nbsd-tdep.h.
9492 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9493 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9494 * nbsd-tdep.c: New file.
9495 * nbsd-tdep.h: New file.
9496 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9497 nbsd-tdep.h.
9498 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9499 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9500 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9501 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9502
b28da865
JT
95032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9504
9505 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9506 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9507 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9508 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9509 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9510 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9511
4b8ff1fa
JT
95122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9513
9514 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9515 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9516 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9517 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9518 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9519 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9520 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9521
dfe6eb1f
JT
95222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9523
9524 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9525 fetch_elfcore_registers to...
9526 * i386nbsd-tdep.c: ...here.
9527 (i386nbsd_use_struct_convention): Rename to...
9528 (i386nbsd_aout_use_struct_convention): ...this.
9529 (i386nbsd_supply_reg): New function.
9530 (i386nbsd_fill_reg): New function.
9531 (fetch_core_registers): Use i386nbsd_supply_reg.
9532 (fetch_elfcore_registers): Likewise.
9533 (_initialize_i386nbsd_tdep): New function.
9534 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9535 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9536 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9537 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9538 (i386nbsd_aout_use_struct_convention): ...this.
9539
20cb8cda
JT
95402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9541
9542 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9543 (store_inferior_registers): Use shnbsd_fill_reg.
9544 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9545 sh_nbsd_supply_register): Collapse into...
9546 (shnbsd_supply_reg): ...this.
9547 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9548 (shnbsd_fill_reg): ...this.
9549 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9550 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9551 (fetch_core_registers): Use shnbsd_supply_reg.
9552 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9553 (sh_nbsd_core_fns): Rename to...
9554 (shnbsd_core_fns): ...this.
9555 (sh_nbsd_elfcore_fns): Rename to...
9556 (shnbsd_elfcore_fns): ...this.
9557 (sh_nbsd_init_abi): Rename to...
9558 (shnbsd_init_abi): ...this.
9559 (_initialize_sh_nbsd_tdep): Rename to...
9560 (_initialize_shnbsd_tdep): ...this.
9561 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9562 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9563 sh_nbsd_fill_register): Remove prototypes.
9564 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9565
e750d25e
JT
95662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9567
9568 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9569 (i387-nat.o): Delete dependency list.
9570 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9571 (x86-64-linux-nat.o): Likewise.
9572 * i387-nat.c: Delete file, moving contents to...
9573 * i387-tdep.c: ...here.
9574 * i387-nat.h: Rename...
9575 * i387-tdep.h: ...to this.
9576 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9577 * i386-linux-nat.c: Likewise.
9578 * i386bsd-nat.c: Likewise.
9579 * i386gnu-nat.c: Likewise.
9580 * i386nbsd-nat.c: Likewise.
9581 * i386v4-nat.c: Likewise.
9582 * x86-64-linux-nat.c: Likewise.
9583 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9584 * config/i386/go32.mh (NATDEPFILES): Likewise.
9585 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9586 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9587 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9588 * config/i386/linux.mh (NATDEPFILES): Likewise.
9589 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9590 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9591 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9592 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9593
1aee598a
JT
95942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9595
9596 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9597 (alphanbsd-nat.o): Remove dependency list.
9598 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9599 * alphanbsd-nat.c: Delete. Contents moved to...
9600 * alphanbsd-tdep.c: ...here.
9601 (_initialize_alphanbsd_tdep): Register core functions.
9602 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9603
12bcb0fe
JT
96042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9605
9606 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9607 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9608 (alphanbsd-nat.o): Likewise.
9609 (alphabsd-tdep.o): New dependency list.
9610 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9611 (fill_gregset): Use alphabsd_fill_reg.
9612 (supply_fpregset): Use alphabsd_supply_fpreg.
9613 (fill_fpregset): Use alphabsd_fill_fpreg.
9614 (fetch_inferior_registers): Use struct reg and struct fpreg
9615 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9616 and alphabsd_supply_fpreg.
9617 (store_inferior_registers): Use struct reg and struct fpreg
9618 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9619 and alphabsd_fill_fpreg.
9620 * alphabsd-tdep.c: New file.
9621 * alphabsd-tdep.h: New file.
9622 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9623 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9624 alphabsd_supply_fpreg.
9625 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9626 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9627
361d1df0
EC
96282002-05-11 Eric Christopher <echristo@redhat.com>
9629
9630 * mips-tdep.c (mips_double_register_type): Fix thinko.
9631 (mips_single_register_type): Ditto.
9632 * MAINTAINERS: Add self.
9633
92dd7cee
MK
96342002-05-11 Mark Kettenis <kettenis@gnu.org>
9635
9636 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9637 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9638 right thing on architectures with different endianness and/or
9639 integer sizes.
9640
e27da16d
JT
96412002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9642
9643 From Christian Limpach <chris@Pin.LU>
9644 * configure.in: Change sed expression which comments out
9645 NATDEPFILES to also comment out continuation lines.
9646 * configure: Regenerate.
9647
ddde02bd
EZ
96482002-05-10 Elena Zannoni <ezannoni@redhat.com>
9649
9650 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9651 big patch.
9652
1c922164
EZ
96532002-05-10 Elena Zannoni <ezannoni@redhat.com>
9654
9655 * sh-tdep.c: Include correct file.
9656
283150cd
EZ
96572002-05-10 Elena Zannoni <ezannoni@redhat.com>
9658
9659 New support for sh64-elf (sh5) target.
9660
9661 * configure.tgt: For sh64-elf target, default to sh-elf.
9662
9663 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9664 (struct gdbarch_tdep): Add new fields for new registers and ABI
9665 info.
361d1df0 9666
283150cd
EZ
9667 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9668 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9669 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9670 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9671 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9672 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9673 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9674 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9675 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9676 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9677 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9678 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9679 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9680 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9681 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9682 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9683 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9684 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9685 sign_extend, sh64_nofp_frame_init_saved_regs,
9686 sh64_init_extra_frame_info, sh64_get_saved_register,
9687 sh64_extract_struct_value_address, sh64_pop_frame,
9688 sh64_push_arguments, sh64_extract_return_value,
9689 sh64_store_return_value, sh64_show_media_regs,
9690 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9691 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9692 sh_sh64_register_virtual_type,
9693 sh_sh64_register_convert_to_virtual,
9694 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9695 sh64_register_read, sh64_pseudo_register_write,
9696 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9697 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9698 sh64_do_pseudo_register, sh_compact_do_registers_info,
9699 sh64_do_registers_info, sh_gdbarch_init): New functions.
9700
3117ed25
EZ
97012002-05-10 Elena Zannoni <ezannoni@redhat.com>
9702
9703 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9704
2654e6d4
DJ
97052002-05-10 Daniel Jacobowitz <drow@mvista.com>
9706
9707 * linespec.c (decode_line_1): Check for a double quote after
9708 a filename correctly.
9709
9ab3e532
JB
97102002-05-10 Jim Blandy <jimb@redhat.com>
9711
9712 Properly track the size of the current objfile's .debug_line section.
9713 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9714 (DWARF_LINE_SIZE): New macro.
9715 (dwarf2_build_psymtabs_hard): Record the line section's size in
9716 the partial symbol table.
9717 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9718 symbol table.
9719
126fa72d
PS
97202002-05-10 Petr Sorfa <petrs@caldera.com>
9721
9722 * ia64-tdep.c: Handle breakpoints on L instruction type
9723 in MLX instruction bundle by moving the breakpoint to
9724 the third slot (X instruction type) as L holds only data.
9725
1f077a3e
KB
97262002-05-10 Kevin Buettner <kevinb@redhat.com>
9727
9728 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9729 (process_one_symbol): Complain about discarding local symbols
9730 due to a misplaced N_LBRAC entry.
9731
8120c9d5 97322002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9733
9734 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9735 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9736 decrease the depth we are at, in the case of templates.
361d1df0 9737
67b2c998
DJ
97382002-05-09 Daniel Jacobowitz <drow@mvista.com>
9739
9740 * mips-tdep.c (mips_float_register_type): New function.
9741 (mips_double_register_type): New function.
9742 (mips_print_register): Use them.
9743 (do_fp_register_row): Likewise.
9744
fd326606
DJ
97452002-05-09 Daniel Jacobowitz <drow@mvista.com>
9746
6609d9af 9747 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9748 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9749 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9750
bef35864
MS
97512002-05-09 Michael Snyder <msnyder@redhat.com>
9752
9753 * remote-rdp.c (remote_rdp_can_run): Remove.
9754
c55a3f73
TT
97552002-05-09 Tom Tromey <tromey@redhat.com>
9756
9757 * jv-valprint.c (java_val_print): Handle `char' as a special case
9758 of TYPE_CODE_INT.
9759
b8d5e71d
MS
97602002-05-09 Michael Snyder <msnyder@redhat.com>
9761
9762 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9763 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9764 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9765 str r(0123),[sp,#nn].
361d1df0 9766 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9767 order-independent by placing it in a loop.
9768
e2cd42dd
MS
97692002-05-06 Michael Snyder <msnyder@redhat.com>
9770
9771 * stabsread.c (read_type): Add recognition for new attribute:
9772 "@V;" means that an array type is actually a vector.
9773 This is analogous to the vector flag that's been added to dwarf2.
9774
3ce1502b
MK
97752002-05-09 Mark Kettenis <kettenis@gnu.org>
9776
9777 * i386-tdep.h (i386_abi): New enum.
9778 (struct gdbarch_tdep): Replace os_ident member with abi.
9779 (i386_gdbarch_register_os_abi): New prototype.
9780 * i386-tdep.c (i386_abi_names): New array.
9781 (process_note_abi_tag_sections): Removed.
9782 (process_note_sections): New function.
9783 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9784 (struct i386_abi_handler): New struct.
9785 (i386_abi_handler_list): New variable.
9786 (i386_gdbarch_register_os_abi): New function.
9787 (i386_gdbarch_init): Adapt for the changes given above.
9788
084c156a
DJ
97892002-05-08 Daniel Jacobowitz <drow@mvista.com>
9790
9791 * gregset.h: Say "GNU/Linux".
9792
6599f021
EZ
97932002-05-08 Elena Zannoni <ezannoni@redhat.com>
9794
9795 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9796 (build_gdbtypes): Build builtin_type_v2_float.
9797 (_initialize_gdbtypes): Register new builtin type.
9798
40af4b0c
AC
97992002-05-08 Andrew Cagney <ac131313@redhat.com>
9800
9801 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9802 (clear_gdbarch_swap): New function.
9803 (initialize_non_multiarch): Call.
9804 (gdbarch_update_p): Before calling init(), swap out and clear the
9805 existing architecture.
9806 * gdbarch.c: Regenerate.
9807
4fe84f46
JT
98082002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9809
9810 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9811 alphanbsd-tdep.c.
9812
4015edd1
JT
98132002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9814
9815 * sh-nbsd-nat.c: Rename to...
9816 * shnbsd-nat.c: ...this.
9817 * sh-nbsd-tdep.c: Rename to...
9818 * shnbsd-tdep.c: ...this.
9819 * sh-nbsd-tdep.h: Rename to...
9820 * shnbsd-tdep.h: ...this.
9821 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9822 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9823
0e2bd219
RE
98242002-05-08 Richard Earnshaw <rearnsha@arm.com>
9825
9826 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9827 concatenation for command help messages.
9828
13a38d45
JT
98292002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9830
9831 * NEWS: Note new sh*-*-netbsdelf* configuration.
9832 * configure.host: Set gdb_host_cpu to sh for all sh*.
9833 (sh*-*-netbsdelf*): New host.
9834 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9835 (sh*-*-netbsdelf*): New target.
9836 * sh-nbsd-nat.c: New file.
9837 * sh-nbsd-tdep.c: New file.
9838 * sh-nbsd-tdep.h: New file.
9839 * config/sh/nbsd.mh: New file.
9840 * config/sh/nbsd.mt: New file.
9841 * config/sh/nm-nbsd.h: New file.
9842 * config/sh/tm-nbsd.h: New file.
9843
d658f924
JT
98442002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9845
9846 * sh-tdep.c (sh_osabi_names): Declare.
9847 (process_note_abi_tag_sections): New function.
9848 (get_elfosabi): Ditto.
9849 (sh_gdbarch_register_os_abi): Ditto.
9850 (sh_dump_tdep): Ditto.
9851 _initialize_sh_tdep): Use gdbarch_register to register
9852 sh_gdbarch_init and sh_dump_tdep.
9853 * config/sh/tm-sh.h (sh_osabi): Declare.
9854 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9855
848cfffb
AC
98562002-05-07 Andrew Cagney <ac131313@redhat.com>
9857
9858 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9859 (thumb_scan_prologue): Ditto.
9860 (arm_find_callers_reg): Ditto.
9861 (arm_frame_chain): Ditto.
9862 (arm_init_extra_frame_info): Ditto.
9863 (arm_frame_saved_pc): Ditto.
9864 (arm_pop_frame): Ditto.
9865 (arm_push_return_address): New function.
9866 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9867 call_dummy_location, call_dummy_breakpoint_offset_p,
9868 call_dummy_breakpoint_offset, call_dummy_p,
9869 call_dummy_stack_adjust_p, call_dummy_words,
9870 sizeof_call_dummy_words, call_dummy_start_offset,
9871 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9872 call_dummy_address, push_return_address and push_dummy_frame for
9873 generic dummy frames.
9874
e7d717c0
JT
98752002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9876
9877 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9878 size computation for alloca.
9879 (sh_fp_frame_init_saved_regs): Likewise.
9880
7bbcf283
RE
98812002-05-07 Richard Earnshaw <rearnsha@arm.com>
9882
9883 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9884 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9885 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9886 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9887 * remote-rdp.c (remote_rdp_fetch_register): Use
9888 ARM_MAX_REGISTER_RAW_SIZE.
9889 (remote_rdp_store_register): Likewise.
9890
4657573b
ML
98912002-05-07 Michal Ludvig <mludvig@suse.cz>
9892
361d1df0 9893 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9894 added default labels to switch {} statements.
9895 * x86-64-tdep.c: Ditto.
9896 * x86-64-linux-nat.c: Ditto.
9897
010f3b2f
JT
98982002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9899
9900 * solib.h: Protect against multiple inclusion.
9901
debd256d
JB
99022002-05-06 Jim Blandy <jimb@redhat.com>
9903
9ab3e532
JB
9904 Add first preprocessor macro-expansion files.
9905 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9906 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9907 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9908 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9909 (COMMON_OBS): Add macrotab.o, macroexp.o.
9910 (macroexp.o, macrotab.o): New rules.
9911
debd256d
JB
9912 Separate the job of reading the line number info statement program
9913 header (...expialidocious) out into its own function.
9914 * dwarf2read.c (struct line_head, struct filenames, struct
9915 directories): Replace with...
9916 (struct line_header): New structure, containing the full
9917 contents of the statement program header, including the
9918 include directory and file name tables.
9919 (read_file_scope): If we have line number info, instead of just
9920 calling dwarf_decode_lines to do all the work, call
9921 dwarf_decode_line_header first to get a `struct line_header'
9922 containing the data in the statement program header, and then
9923 pass that to dwarf_decode_lines, which will pick up where that
9924 left off. Be sure to clean up the `struct line_header' object.
9925 (dwarf_decode_line_header, free_line_header, add_include_dir,
9926 add_file_name): New functions.
9927 (dwarf_decode_lines): Move all the code to read the statement
9928 program header into dwarf_decode_line_header. Take the line
9929 header it built as the first argument, instead of the offset to
9930 the compilation unit's line number info. Use the new `struct
9931 line_header' type instead of the old structures. No need to do
9932 cleanups here now, since we don't allocate anything.
9933 (dwarf2_statement_list_fits_in_line_number_section,
9934 dwarf2_line_header_too_long): New complaints.
9935
ac3aafc7
EZ
99362002-05-06 Elena Zannoni <ezannoni@redhat.com>
9937
9938 * gdbtypes.c (init_vector_type): New function.
9939 (build_builtin_type_vec128): Simplify the representation of SIMD
9940 registers.
9941 (build_gdbtypes): Initialize new builtin vector types.
9942 (_initialize_gdbtypes): Register new vector types with gdbarch.
9943 (builtin_type_v4_float, builtin_type_v4_int32,
9944 builtin_type_v8_int16, builtin_type_v16_int8,
9945 builtin_type_v2_int32, builtin_type_v4_int16,
9946 builtin_type_v8_int8): New (renamed) SIMD types.
9947
13e49980
MK
99482002-05-06 Mark Kettenis <kettenis@gnu.org>
9949
9950 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9951 (i387_fill_fxsave): Likewise.
9952
997b20b8
AO
99532002-05-05 Alexandre Oliva <aoliva@redhat.com>
9954
9955 * alpha-tdep.c (alpha_extract_return_value): Don't use
9956 non-constant array size in prototype.
9957
535c96ce
AC
99582002-05-04 Andrew Cagney <ac131313@redhat.com>
9959
9960 From Brian Taylor <briant at model dot com>:
9961 * ui-out.c (ui_out_field_core_addr): Use the function
9962 longest_local_hex_string_custom'to format addresses > 32 bits
9963 wide.
9964
9965 * ui-out.c (ui_out_field_core_addr): Update comment.
9966
bedfa57b
AC
99672002-05-04 Andrew Cagney <ac131313@redhat.com>
9968
9969 * stack.c (select_and_print_frame): Make static. Delete the
9970 parameter `level'.
9971 (func_command): Update call.
9972 (select_frame_command): Delete code computing the frame level.
9973 * frame.h (select_and_print_frame): Delete declaration.
9974
f621c63e
AC
99752002-05-04 Andrew Cagney <ac131313@redhat.com>
9976
9977 * sparc-tdep.c (sparc_get_saved_register): Comment why
9978 get_prev_frame call is safe.
9979
0f7d239c
AC
99802002-05-04 Andrew Cagney <ac131313@redhat.com>
9981
9982 * frame.h (select_frame): Delete level parameter.
9983 * stack.c (select_frame): Update. Use frame_relative_level to
9984 obtain the frame's level.
9985 (select_and_print_frame): Update call.
9986 (select_frame_command): Ditto.
9987 (up_silently_base): Ditto.
9988 (down_silently_base): Ditto.
9989 * ocd.c (ocd_start_remote): Ditto.
9990 * remote-rdp.c (remote_rdp_open): Ditto.
9991 * remote-mips.c (mips_initialize): Ditto.
9992 (common_open): Ditto.
9993 * remote-e7000.c (e7000_start_remote): Ditto.
9994 * m3-nat.c (select_thread): Ditto.
9995 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9996 (child_get_current_exception_event): Ditto.
9997 * varobj.c (varobj_create): Ditto.
9998 (varobj_update): Ditto.
9999 (c_value_of_root): Ditto.
10000 * tracepoint.c (finish_tfind_command): Ditto.
10001 * corelow.c (core_open): Ditto.
10002 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10003 * thread.c (info_threads_command): Ditto.
10004 (switch_to_thread): Ditto.
10005 * infrun.c (normal_stop): Ditto.
10006 (restore_selected_frame): Ditto.
10007 (restore_inferior_status): Ditto.
10008 * breakpoint.c (insert_breakpoints): Ditto.
10009 (watchpoint_check): Ditto.
10010 (bpstat_stop_status): Ditto.
10011 (do_enable_breakpoint): Ditto.
10012 * blockframe.c (flush_cached_frames): Ditto.
10013 (reinit_frame_cache): Ditto.
10014
71d6c7b1
AC
100152002-05-04 Andrew Cagney <ac131313@redhat.com>
10016
10017 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10018 maintainer.
10019
cda6c68a
JB
100202002-05-04 Jim Blandy <jimb@redhat.com>
10021
10022 * gdbtypes.c (replace_type): Doc fix.
10023
5c1c87f0
AC
100242002-05-04 Andrew Cagney <ac131313@redhat.com>
10025
10026 * valprint.c (strcat_longest): Delete commented out function.
10027 Update copyright.
10028
cd9bfe15
AC
100292002-05-04 Andrew Cagney <ac131313@redhat.com>
10030
10031 * MAINTAINERS: Mark a29k as deleted.
10032 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10033 Move new configurations to the top.
10034 * configure.tgt: Remove a29k.
10035 * config/a29k/tm-vx29k.h: Delete.
10036 * config/a29k/vx29k.mt: Delete.
10037 * config/a29k/tm-a29k.h: Delete.
10038 * config/a29k/a29k-udi.mt: Delete.
10039 * config/a29k/a29k.mt: Delete.
10040 * a29k-tdep.c: Delete.
10041 * remote-udi.c: Delete.
10042 * remote-mm.c: Delete.
10043 * remote-eb.c: Delete.
10044 * remote-adapt.c: Delete.
10045 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10046 * config/s390/s390x.mt: Ditto.
10047 * config/s390/s390.mt: Ditto.
10048 * config/sparc/sparclynx.mh: Ditto.
10049 * config/sparc/linux.mh: Ditto.
10050 * config/pa/hppaosf.mh: Ditto.
10051 * config/pa/hppabsd.mh: Ditto.
10052 * config/ns32k/nbsd.mt: Ditto.
10053 * config/mips/vr5000.mt: Ditto.
10054 * config/m68k/sun3os4.mh: Ditto.
10055 * config/m68k/nbsd.mt: Ditto.
10056 * config/m68k/m68klynx.mh: Ditto.
10057 * config/m32r/m32r.mt: Ditto.
10058 * config/i386/x86-64linux.mt: Ditto.
10059 * config/i386/nbsdelf.mt: Ditto.
10060 * config/i386/nbsd.mt: Ditto.
10061 * config/i386/i386lynx.mh: Ditto.
10062
bf0c5130
AC
100632002-05-04 Andrew Cagney <ac131313@redhat.com>
10064
10065 * target.c (debug_print_register): New function. Handle oversize
10066 registers.
10067 (debug_to_fetch_registers): Call.
10068 (debug_to_store_registers): Call.
10069
2ae1c2d2
JB
100702002-05-03 Jim Blandy <jimb@redhat.com>
10071
13a393b0
JB
10072 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10073 (read_type): Doc fix.
10074 * gdbtypes.c (replace_type): Doc fix.
10075
2ae1c2d2
JB
10076 * stabsread.c (multiply_defined_struct): New complaint.
10077 (read_struct_type): If the type we were passed isn't empty, or
10078 incomplete, don't read the new struct type into it; complain,
10079 and return the original type unchanged. Take a new `type_code'
10080 argument, which is the type code for the new type.
10081 (read_type): Rather than storing the type's type code here, pass
10082 it as an argument to read_struct_type, and let that take care of
10083 storing it. That way, we don't overwrite the original type code,
10084 so read_struct_type can use it to decide whether we're overwriting
10085 something we shouldn't.
10086 (complain_about_struct_wipeout): New function.
10087
8de9bdc4
AC
100882002-05-03 Andrew Cagney <ac131313@redhat.com>
10089
10090 * gdbarch.sh: Assert that gdbarch is non-NULL.
10091 * gdbarch.c: Regenerate.
10092
f773fdbb
JM
100932002-05-03 Jason Merrill <jason@redhat.com>
10094
10095 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10096 and return NULL.
10097
0e04a514
ML
100982002-05-03 Michal Ludvig <mludvig@suse.cz>
10099
10100 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10101 (x86_64_dwarf2gdb_regno_map_length),
10102 (x86_64_dwarf2_reg_to_regnum): Added.
10103 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10104 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10105 (_initialize_x86_64_tdep): Synced with the change above.
10106 (x86_64_skip_prologue): Reformulated message.
10107
065432a8
PM
101082002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10109
10110 * f-exp.y: Also use new prev_lexptr variable
10111 to improve error reporting. Based on Michael Snyder
10112 2002-04-24 dated patch to c-exp.y.
10113 * jv-exp.y: Likewise.
10114 * m2-exp.y: Likewise.
10115
a3162708
EZ
101162002-05-02 Elena Zannoni <ezannoni@redhat.com>
10117
10118 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10119 we are dealing with vectors.
10120
03620c38
PM
101212002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10122
10123 * config/m68k/tm-nbsd.h: Obvious fix,
10124 correct machine name.
10125
6604db2e
PM
101262002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10127
10128 * p-typeprint.c (pascal_type_print_base): Add support
10129 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10130
0906b739
PM
101312002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10132
10133 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10134 for fondamental pascal 'char' type.
10135
e2625b33
PM
101362002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10137
10138 * p-lang.h (is_pascal_string_type): Declaration changed,
10139 new sixth argument of type char ** added.
361d1df0 10140 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10141 changed. Args length_pos, length_size, string_pos, char_size
10142 can now be NULL. New argument arrayname set to the field
10143 name of the char array. Return value set to char array
10144 field index plus one.
361d1df0 10145 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10146 is_pascal_string_type function.
10147
cf17c188
AC
101482002-05-02 Andrew Cagney <cagney@redhat.com>
10149
10150 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10151 <cagney@redhat.com> change.
10152 * gdbarch.c: Regenerate.
10153
52bca491
AC
101542002-05-02 Andrew Cagney <cagney@redhat.com>
10155
10156 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10157 before probing for a new one. Detect errorenous gdbarch_init
10158 functions.
10159 * gdbarch.c: Regenerate.
10160
d5e72505
AC
101612002-05-01 Andrew Cagney <cagney@redhat.com>
10162
10163 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10164 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10165 * config/v850/tm-v850.h: Ditto. Update copyright.
10166
af566d9f
AC
101672002-04-30 Andrew Cagney <ac131313@redhat.com>
10168
10169 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10170 current_gdbarch.
10171
880d85fa
MS
101722002-04-30 Michael Snyder <msnyder@redhat.com>
10173
94c30b78
MS
10174 * arm-tdep.c: Whitespace clean-ups.
10175 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10176 should have been removed as part of 4/24 change.
10177
6f5987a6
KB
101782002-04-30 Kevin Buettner <kevinb@redhat.com>
10179
10180 * rs6000-tdep.c: Added comment describing how fpscr register
10181 numbers were chosen.
10182
1a113c93
MS
101832002-04-30 Michael Snyder <msnyder@redhat.com>
10184
10185 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10186
9a6f53fe
EZ
101872002-04-29 Elena Zannoni <ezannoni@redhat.com>
10188
10189 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10190 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10191 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10192
11ed25ac
KB
101932002-04-29 Kevin Buettner <kevinb@redhat.com>
10194
10195 From Louis Hamilton <hamilton@redhat.com>:
10196 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10197 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10198 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10199 not bfd-private xcoff data, to determine wordsize.
10200 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10201
ae232405
AC
102022002-04-29 Andrew Cagney <ac131313@redhat.com>
10203
10204 GDB 5.2 released from 5.2 branch.
10205
91fd20f7
ML
102062002-04-29 Michal Ludvig <mludvig@suse.cz>
10207
10208 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10209 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10210 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10211
2dc5091b
EZ
102122002-04-29 Elena Zannoni <ezannoni@redhat.com>
10213
10214 * rs6000-tdep.c (rs6000_extract_return_value,
10215 rs6000_store_return_value): Handle returning vectors.
10216 (rs6000_gdbarch_init): Use
10217 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10218 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10219 New function.
10220 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10221 vectors.
10222 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10223 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10224
2b9848d8
PM
102252002-04-24 Pierre Muller <ics.u-strasbg.fr>
10226
10227 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10228 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10229 with fprintf_unfiltered (gdb_stderr,...).
10230
f8d17dc5
PM
102312002-04-24 Pierre Muller <ics.u-strasbg.fr>
10232
10233 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10234 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10235 Replace fprintf (stderr,...
10236 with fprintf_unfiltered (gdb_stderr,....
10237 * remote-es.c: Likewise.
10238 * remote-os9k.c: Likewise.
10239 * remote-st.c: Likewise.
10240
2f2f1ad1
AS
102412002-04-28 Andreas Schwab <schwab@suse.de>
10242
10243 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10244 linux-proc.o and gcore.o.
10245
b6779aa2
AC
102462002-04-26 Michal Ludvig <mludvig@suse.cz>
10247
10248 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10249 code without frame pointers.
10250
7e57f5f4
AC
102512002-04-26 Andrew Cagney <ac131313@redhat.com>
10252
10253 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10254 ON_STACK is needed.
10255
2ceb85d0
BE
102562002-04-26 Ben Elliston <bje@redhat.com>
10257
10258 * target.c (do_xfer_memory): Correct reference to the new option
10259 "trust-readonly-sections".
10260
f5f8a009
EZ
102612002-04-26 Elena Zannoni <ezannoni@redhat.com>
10262
10263 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10264 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10265 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10266 vectors.
10267 (read_array_type): Record the fact that this array type is really a
10268 vector (i.e. are passed in by value).
10269
5868c862
JT
102702002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10271
10272 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10273 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10274 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10275 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10276 * alpha-linux-tdep.c: Include frame.h.
10277 (alpha_linux_sigcontext_addr): New function.
10278 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10279 alpha_linux_sigcontext_addr.
10280 * alpha-osf1-tdep.c: Include gdbcore.h.
10281 (alpha_osf1_sigcontext_addr): New function.
10282 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10283 alpha_osf1_sigcontext_addr.
10284 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10285 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10286
bfb01f37
AC
102872002-04-26 Andrew Cagney <ac131313@redhat.com>
10288
361d1df0 10289 * stack.c (selected_frame_level):
bfb01f37
AC
10290 (select_frame): Do not set selected_frame_level.
10291 * frame.h (selected_frame_level): Delete declaration.
10292
15813d3f
AC
102932002-04-26 Andrew Cagney <ac131313@redhat.com>
10294
10295 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10296 convert_from_func_ptr-addr when AIX / PowerOpen.
10297
6096c27a
AC
102982002-04-25 Andrew Cagney <ac131313@redhat.com>
10299
10300 * valops.c (hand_function_call): Call
10301 generic_save_call_dummy_addr.
10302 * frame.h (generic_save_call_dummy_addr): Declare.
10303 * blockframe.c (struct dummy_frame): Add fields call_lo and
10304 call_hi.
10305 (generic_find_dummy_frame): Check for PC in range call_lo to
10306 call_hi instead of entry_point_address.
10307 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10308 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10309 (generic_save_call_dummy_addr): New function.
10310
f510d44e
DM
103112002-04-24 David S. Miller <davem@redhat.com>
10312
10313 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10314 sparc_skip_prologue.
10315 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10316 information to find prologue when possible.
10317 (sparc_prologue_frameless_p): Call examine_prologue directly.
10318 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10319 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10320 second argument.
10321 (SKIP_PROLOGUE): Likewise.
10322
15d72a92
JT
103232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10324
10325 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10326 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10327 indicate that the condition it was testing is always true.
10328 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10329 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10330 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10331
accc6d1f
JT
103322002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10333
10334 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10335 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10336 tdep->jb_pc and tdep->jb_elt_size.
10337 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10338 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10339 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10340 * alpha-nat.c (get_longjmp_target): Remove.
10341 (JB_ELEMENT_SIZE): Ditto.
10342 (JB_PC): Ditto.
10343 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10344 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10345 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10346 to alpha_get_longjmp_target.
10347 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10348 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10349 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10350
1bfdc549
AC
103512002-04-25 Andrew Cagney <ac131313@redhat.com>
10352
10353 * README: Update to GDB 5.2.
10354
1bd316f0
AC
103552002-04-25 Andrew Cagney <ac131313@redhat.com>
10356
10357 * gdbarch.sh (LC_ALL): Set to `c'.
10358
2e5ff58c
TR
103592002-04-25 Theodore A. Roth <troth@verinet.com>
10360
10361 * avr-tdep.c: Ran through gdb_indent.sh.
10362
e33ce519
TR
103632002-04-25 Theodore A. Roth <troth@verinet.com>
10364
10365 * MAINTAINERS: Add myself as AVR maintainer.
10366 * NEWS: Note new target avr.
10367
8818c391
TR
103682002-04-25 Theodore A. Roth <troth@verinet.com>
10369
10370 * Makefile.in: Add support for AVR target.
10371 * configure.tgt: Add support for AVR target.
10372 * avr-tdep.c: New file
10373 * config/avr/avr.mt: New file.
10374
79509c2d
TR
103752002-04-25 Theodore A. Roth <troth@verinet.com>
10376
10377 * MAINTAINERS: Add myself to write-after-approval.
10378
dac8068e
PM
103792002-04-24 Pierre Muller <ics.u-strasbg.fr>
10380
10381 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10382 with fprintf_unfiltered (gdb_stderr,....
10383
25bf3106
PM
103842002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10385
10386 Fix PR gdb/508.
10387 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10388
24467a86
PM
103892002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10390
10391 * p-exp.y: Also use new prev_lexptr variable
10392 to improve error reporting. Based on Michael Snyder
10393 2002-04-24 dated patch to c-exp.y.
10394
95b80706
JT
103952002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10396
10397 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10398 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10399 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10400 to 0.
10401 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10402 and struct value.
10403 (FUNCTION_START_OFFSET): Remove.
10404 (BREAKPOINT): Ditto.
10405
e90cc612
JT
104062002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10407
10408 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10409 * NEWS: Ditto.
10410
6c72f9f9
JT
104112002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10412
10413 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10414 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10415 alpha_linux_pc_in_sigtramp.
10416 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10417 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10418 alpha_osf1_pc_in_sigtramp.
10419 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10420 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10421 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10422 alphafbsd_pc_in_sigtramp.
10423 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10424 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10425 alphanbsd_pc_in_sigtramp.
10426 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10427 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10428
5e4f3379
JT
104292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10430
10431 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10432
da8ca43d
JT
104332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10434
10435 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10436 alphanbsd-tdep.c.
10437 (alphanbsd-nat.o): New dependency list.
10438 (alphanbsd-tdep.o): Ditto.
10439 * NEWS: Note new native NetBSD/alpha configuration.
10440 * alphanbsd-nat.c: New file.
10441 * alphanbsd-tdep.c: Ditto.
10442 * configure.host (alpha*-*-netbsd*): New host.
10443 * configure.tgt (alpha*-*-netbsd*): New target.
10444 * config/alpha/nbsd.mh: New file.
10445 * config/alpha/nbsd.mt: Ditto.
10446 * config/alpha/nm-nbsd.h: Ditto.
10447 * config/alpha/tm-nbsd.h: Ditto.
10448
36a6271d
JT
104492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10450
10451 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10452 (alpha-osf1-tdep.o): New dependency list.
10453 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10454 and skip_sigtramp_frame members.
10455 * alpha-linux-tdep.c: Include gdbcore.h.
10456 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10457 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10458 * alpha-osf1-tdep.c: New file.
10459 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10460 alpha-osf1-dep.c.
10461 (alpha_frame_past_sigtramp_frame): New function.
10462 (alpha_dynamic_sigtramp_offset): Ditto.
10463 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10464 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10465 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10466 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10467 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10468 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10469 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10470 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10471 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10472 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10473 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10474 to find_solib_trampoline_target.
10475 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10476 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10477 (SKIP_TRAMPOLINE_CODE): Remove.
10478 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10479 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10480 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10481 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10482 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10483 (PROC_SIGTRAMP_MAGIC): Ditto.
10484 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10485 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10486 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10487 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10488 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10489
2f4bc57b
JT
104902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10491
10492 * NEWS: Note that Alpha targets are now multi-arch.
10493
665132f9
MS
104942002-04-24 Michael Snyder <msnyder@redhat.com>
10495
10496 * parser-defs.h (prev_lexptr): New external variable.
10497 * parse.c (parse_exp_1): Set prev_lexptr to null before
10498 calling the language-specific parser.
10499 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10500 (yyerror): Use prev_lexptr in error reporting.
10501
32872fa7
DJ
105022002-04-24 Daniel Jacobowitz <drow@mvista.com>
10503
10504 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10505 * gregset.h: If FILL_FPXREGSET is defined, provide
10506 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10507 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10508 is defined, call fill_fpxregset.
10509
57e76fac
MS
105102002-04-24 Roland McGrath <roland@frob.com>
10511
10512 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10513 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10514 (supply_gregset, supply_fpregset): New functions.
10515
10516 * gnu-nat.c (gnu_find_memory_regions): New function.
10517 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10518 (gnu_xfer_memory): Add a cast.
10519
f43845b3
MS
105202002-04-24 Michael Snyder <msnyder@redhat.com>
10521
361d1df0 10522 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10523 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10524 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10525 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10526 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10527 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10528
a0abec03
AC
10529Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10530
10531 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10532 NUM_PSEUDO_REGS can be used.
10533
d7bd68ca
AC
105342002-04-24 Andrew Cagney <ac131313@redhat.com>
10535
10536 * arch-utils.h: Update copyright.
10537
10538 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10539 * gdbarch.h, gdbarch.c: Re-generate.
10540
10541 * inferior.h (IN_SIGTRAMP): Delete definition.
10542 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10543 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10544
10545 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10546 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10547 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10548 (find_proc_framesize): Ditto.
10549 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10550 (alpha_init_extra_frame_info): Ditto.
10551 * infrun.c (handle_inferior_event): Ditto.
10552 (handle_inferior_event): Ditto.
10553 (check_sigtramp2): Ditto.
10554 * blockframe.c (create_new_frame): Ditto.
10555 (get_prev_frame): Ditto.
10556 * ppc-linux-tdep.c: Update comments.
10557 * i386-linux-tdep.c: Update comments.
10558 * breakpoint.c (bpstat_what): Update comment.
10559
4867e41e
DM
105602002-04-24 David S. Miller <davem@redhat.com>
10561
21d83aa5
DM
10562 * i960-tdep.c (register_in_window_p): New function.
10563 (i960_find_saved_register): Use it instead of
10564 REGISTER_IN_WINDOW_P.
10565 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10566
4867e41e
DM
10567 * symtab.h (find_stab_function_addr): Kill extern.
10568 * minsyms.c (find_stab_function_addr): Remove from here...
10569 * dbxread.c: ... to here, and mark it static.
10570
69cdf6a2
DM
105712002-04-20 David S. Miller <davem@redhat.com>
10572
10573 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10574 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10575
5a595886
DM
105762002-04-21 David S. Miller <davem@redhat.com>
10577
10578 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10579 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10580 (vx_write_register): Likewise.
10581
1da1a192
JB
105822002-04-23 J. Brobecker <brobecker@gnat.com>
10583
10584 * source.c (is_regular_file): New function.
10585 (openp): Check wether file to open is a regular file
10586 to avoid opening directories.
10587
baa6f10b
JT
105882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10589
10590 * findvar.c (extract_signed_integer): Cast printf argument
10591 to suppress format warning.
10592 (extract_unsigned_integer): Likewise.
10593 * infcmd.c (registers_info): Likewise.
10594 * top.c (get_prompt_1): Likewise.
10595 * valops.c (value_assign): Likewise.
10596 * valprint.c (print_decimal): Likewise.
10597
b2c4da81
L
105982002-04-22 H.J. Lu (hjl@gnu.org)
10599
10600 * c-exp.y (typebase): Support
361d1df0 10601
b2c4da81
L
10602 [long|long long|short] [signed|unsigned] [int|]
10603
10604 and
10605
10606 signed [long|long long|short] int
10607
f267bd6a
JT
106082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10609
10610 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10611 and vax-tdep.h.
10612 * vax-tdep.h: New file.
10613 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10614 Make several routines static.
10615 (vax_get_saved_register): New function.
10616 (vax_gdbarch_init): New function.
10617 (_initialize_vax_tdep): Register vax_gdbarch_init.
10618 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10619 Remove macros now under the control of gdbarch.
10620
da3c6d4a
MS
106212002-04-22 Michael Snyder <msnyder@redhat.com>
10622
11d3b27d
MS
10623 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10624 Some whitespace and coding standards tweaks.
da3c6d4a 10625
a33f7558
JT
106262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10627
10628 * vax-tdep.c: Include regcache.h.
10629 (vax_call_dummy_words): New.
10630 (sizeof_vax_call_dummy_words): New.
10631 (vax_fix_call_dummy): New function.
10632 (vax_saved_pc_after_call): Ditto.
10633 * config/vax/tm-vax.h: Don't include regcache.h.
10634 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10635 (CALL_DUMMY): Remove.
10636 (CALL_DUMMY_WORDS): Define.
10637 (SIZEOF_CALL_DUMMY_WORDS): Define.
10638 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10639
47a73475
MS
106402002-04-18 Michael Snyder <msnyder@redhat.com>
10641
10642 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10643
52efde73
JT
106442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10645
10646 * vax-tdep.c (vax_frame_chain): New function.
10647 (vax_push_dummy_frame): Ditto.
10648 (vax_pop_frame): Ditto.
10649 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10650 (FRAMELESS_FUNCTION_INVOCATION): Use
10651 generic_frameless_function_invocation_not.
10652 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10653 (POP_FRAME): Use vax_pop_frame.
10654
ea74468c
JT
106552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10656
10657 * vax-tdep.c (vax_store_struct_return): New function.
10658 (vax_extract_return_value): Ditto.
10659 (vax_store_return_value): Ditto.
10660 (vax_extract_struct_value_address): Ditto.
10661 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10662 vax_store_struct_return.
10663 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10664 (STORE_RETURN_VALUE): Use vax_store_return_value.
10665 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10666
5516aa92
JT
106672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10668
10669 * vax-tdep.c (vax_frame_saved_pc): New function.
10670 (vax_frame_args_address_correct): Ditto.
10671 (vax_frame_args_address): Ditto.
10672 (vax_frame_locals_address): Ditto.
10673 (vax_frame_num_args): Move code to be in proximity to
10674 other frame-related functions.
10675 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10676 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10677 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10678 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10679 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10680
36af0b35
L
106812002-04-22 H.J. Lu (hjl@gnu.org)
10682
10683 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10684 includedir.
10685
ab62c900
JT
106862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10687
10688 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10689 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10690 (FRAME_INIT_SAVED_REGS): New macro.
10691
7232b100
JT
106922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10693
10694 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10695
b70d2aee
JT
106962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10697
10698 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10699 where needed.
10700 (fetch_osf_core_registers): Likewise.
10701 (supply_gregset): Likewise.
10702
a0e8a2d1 107032002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10704
a0e8a2d1
JB
10705 * symfile.h (get_section_index): Define.
10706 * symfile.c (get_section_index): New function.
10707 * mdebugread.c (SC_IS_SBSS): New macro.
10708 (SC_IS_BSS): Return true for the scBss storage class only, as
10709 the scSBss storage class refers to the .sbss section.
10710 (parse_partial_symbols): Discard the symbols which associated
10711 section does not exist.
10712 Make sure to use the .sbss section index for symbols which
10713 storage class is scBss, rather than using the .bss section index.
10714
51eb8b08
JT
107152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10716
10717 * vax-tdep.c: Update copyright years.
10718 (vax_register_name): New function.
10719 (vax_register_byte): Ditto.
10720 (vax_register_raw_size): Ditto.
10721 (vax_register_virtual_size): Ditto.
10722 (vax_register_virtual_type): Ditto.
10723 * config/vax/tm-vax.h: Update copyright years.
10724 (REGISTER_NAMES): Remove.
10725 (REGISTER_NAME): Define.
10726 (REGISTER_BYTE): Use vax_register_byte.
10727 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10728 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10729 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10730
6cc1c0a8
AC
107312002-04-21 Andrew Cagney <ac131313@redhat.com>
10732
10733 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10734 declaration
10735 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10736
9319a2fe
DM
107372002-04-21 David S. Miller <davem@redhat.com>
10738
10739 * arch-utils.c (generic_prologue_frameless_p): Kill
10740 SKIP_PROLOGUE_FRAMELESS_P code.
10741 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10742 references.
10743 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10744 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10745 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10746 references.
10747 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10748 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10749 (sparc_gdbarch_init): Pass it to
10750 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10751
e9ed6d01
JT
107522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10753
10754 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10755 (alphabsd-nat.o): New dependency list.
10756
36012033
JT
107572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10758
10759 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10760 alphafbsd-tdep.c.
10761 (alpha-linux-tdep.o): New dependency list.
10762 (alphafbsd-tdep.o): Likewise.
10763
3379287a
JT
107642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10765
10766 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10767 to here...
10768 * alpha-tdep.c: ...from here.
10769 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10770
4bcbd6cb
JT
107712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10772
10773 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10774 prototype from here...
10775 * alpha-tdep.h: ...to here.
10776
b31da25e
AC
107772002-04-21 Andrew Cagney <ac131313@redhat.com>
10778
10779 * frame.h (selected_frame_level): Document as deprecated.
10780 (frame_relative_level): Declare.
10781 * stack.c (frame_relative_level): New function.
10782 (selected_frame_level): Document as deprecated.
10783 (select_frame): Do not set the selected_frame_level.
10784
10785 * stack.c (frame_info, record_selected_frame): Update.
10786 (frame_command, current_frame_command): Update.
10787 (up_silently_base, up_command, down_silently_base): Update.
10788 (down_command): Update.
10789 * inflow.c (kill_command): Update.
10790 * tracepoint.c (finish_tfind_command): Update.
10791 * corelow.c (core_open): Update.
10792 * thread.c (info_threads_command): Update.
10793 (do_captured_thread_select): Update.
10794 * infcmd.c (finish_command): Update.
10795 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10796
9c1d6fe5
JT
107972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10798
10799 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10800
ab89facf
AC
108012002-04-21 Andrew Cagney <ac131313@redhat.com>
10802
10803 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10804 type const.
10805
82a4efa1
JT
108062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10807
10808 * alphafbsd-tdep.c: Update copyright years. Include
10809 alpha-tdep.h.
10810 (alphafbsd_use_struct_convention): Make static.
10811 (alphafbsd_init_abi): New function.
10812 (_initialize_alphafbsd_tdep): New function.
10813 * config/alpha/tm-fbsd.h: Update copyright years.
10814 (USE_STRUCT_CONVENTION): Remove.
10815
44dffaac
JT
108162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10817
10818 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10819 an Alpha ABI variant.
10820 (alpha_abi_handler_list): Declare.
10821 (alpha_gdbarch_register_os_abi): New function.
10822 (alpha_gdbarch_init): Give registered ABI variant handlers a
10823 chance to tweak the gdbarch once we have set up defaults.
10824 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10825
65585be4
JT
108262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10827
10828 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10829 to standard_coerce_float_to_double.
10830 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10831
d9b023cc
JT
108322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10833
10834 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10835 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10836 from gdbarch_tdep rather than a constant.
10837 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10838 the default text address for all Alpha Unix ABIs.
10839 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10840 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10841
dc129d82
JT
108422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10843
10844 * alpha-tdep.h: New file. Includes several Alpha target constants
10845 taken from...
10846 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10847 let gdbarch deal with.
10848 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10849 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10850 to dependency list.
10851 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10852 Alpha target register names.
10853 * alphabsd-nat.c: Likewise.
10854 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10855 Alpha target register names. Make serveral routines static.
10856 (alpha_get_saved_register): New function.
10857 (alpha_abi_names): New.
10858 (process_note_abi_tag_sections): New function.
10859 (get_elfosabi): New function.
10860 (alpha_gdbarch_init): New function.
10861 (alpha_dump_tdep): New function.
10862 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10863
d49d1e0a
AC
108642002-04-21 Andrew Cagney <ac131313@redhat.com>
10865
10866 * frame.c (find_saved_register): Delete #ifdef
10867 HAVE_REGISTER_WINDOWS code.
10868 * config/sparc/tm-sparc.h: Update comments.
10869 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10870
92e8c9ed
AC
108712002-04-21 Andrew Cagney <ac131313@redhat.com>
10872
10873 * i960-tdep.c (i960_find_saved_register): New function.
10874 (i960_get_saved_register): New function.
10875 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10876 (i960_get_saved_register): Declare.
10877 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10878
e1925118
DM
108792002-04-20 David S. Miller <davem@redhat.com>
10880
10881 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10882
29673b29
AC
108832002-04-20 Andrew Cagney <ac131313@redhat.com>
10884
10885 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10886 instead of NUM_PSEUDO_REGS.
10887
6c86dcd5
DM
108882002-04-20 David S. Miller <davem@redhat.com>
10889
10890 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10891 GDB_MULTI_ARCH_PARTIAL
10892 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10893 define, let tm-sp64.h do it.
10894
aa40ec90
JT
108952002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10896
10897 * frame.c (find_saved_register): Avoid a NULL pointer
10898 dereference and actually walk the frame list.
10899
0f79675b
AC
109002002-04-20 Andrew Cagney <ac131313@redhat.com>
10901
10902 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10903 sorted in most most-recent-used order. Document.
10904 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10905
f91305dd 109062002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10907
10908 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10909 instead of ->prev.
10910 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10911 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10912 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10913 instead of ->prev.
10914
73d322b1
EZ
109152002-04-19 Elena Zannoni <ezannoni@redhat.com>
10916
10917 Fix PR gdb/471.
10918 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10919 (build_builtin_type_vec128): Ditto.
10920 (append_composite_type_field): Fix calculation of type length in
10921 union case.
10922
ccd9a834
EZ
109232002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10924
10925 * config/djgpp/README: Update.
10926
10927 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10928 compiler warnings.
10929
a57f9e49
JT
109302002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10931
10932 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10933 (alpha_setup_arbitrary_frame): ...to this.
10934 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10935 for alpha_setup_arbitrary_frame.
10936
f4f9705a
AC
109372002-04-18 Andrew Cagney <cagney@redhat.com>
10938
10939 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10940 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10941
f4f9705a
AC
10942 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10943 * target.h (memory_breakpoint_from_pc): Update declaration.
10944 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10945
10946 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10947 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10948 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10949 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10950 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10951 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10952 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10953 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10954 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10955 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10956 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10957 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10958
10959 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10960 const pointer.
10961 * monitor.c (monitor_insert_breakpoint): Ditto.
10962 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10963
10964 * config/mcore/tm-mcore.h: Update copyright.
10965 * mem-break.c: Ditto.
10966 * xstormy16-tdep.c: Ditto.
10967
29f319b8
PM
109682002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10969
10970 * p-exp.y: Add precedence rule for '^' token.
10971 This removes the shift/reduce conflicts.
10972 Remove the comment concerning these shift/reduce conflicts.
10973
ebeac11a
EZ
109742002-04-18 Elena Zannoni <ezannoni@redhat.com>
10975
10976 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10977 (registers_powerpc_nofp): New register set for processors
10978 without floating point unit.
10979
27c31547
DM
109802002-04-18 David S. Miller <davem@redhat.com>
10981
10982 * MAINTAINERS: Add myself to write-after-approval.
10983
47a73475
MS
109842002-04-17 Michael Snyder <msnyder@redhat.com>
10985
10986 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10987
953836b2
AC
109882002-04-17 Andrew Cagney <ac131313@redhat.com>
10989
10990 * rs6000-tdep.c (frame_initial_stack_address): Use
10991 frame_register_read to read the alloca_reg.
10992
8b0d4340
AC
109932002-04-17 Andrew Cagney <ac131313@redhat.com>
10994
10995 * frame.c (find_saved_register): Find saved registers in the next
10996 not prev frame.
10997 Fix PR gdb/365.
10998
d8864532
AC
109992002-04-17 Andrew Cagney <ac131313@redhat.com>
11000
11001 * gdbarch.sh (LANG): Set to ``c''.
11002
36cc83a3 110032002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11004
36cc83a3 11005 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11006
2f4150cc 110072002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11008
11009 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11010 Update copyright.
11011
628703c6 11012 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11013 Also fix PR gdb/391.
361d1df0 11014
56157b4a
AC
110152002-04-14 Andrew Cagney <ac131313@redhat.com>
11016
11017 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11018 * aclocal.m4, configure: Re-generate.
11019 Fix PR gdb/391.
361d1df0 11020
6d1e3329
EZ
110212002-04-14 Elena Zannoni <ezannoni@redhat.com>
11022
11023 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11024 instead of tm_print_insn.
11025
cb06fa07
EZ
110262002-04-14 Elena Zannoni <ezannoni@redhat.com>
11027
11028 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11029
f208ba17
AC
110302002-04-14 Andrew Cagney <ac131313@redhat.com>
11031
11032 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11033 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11034 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11035
20f01a46
DH
110362002-04-12 Don Howard <dhoward@redhat.com>
11037
11038 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11039 max_user_call_depth.
11040 (init_cmd_lists): Initialize the new value;
11041 * cli/cli-script.c (execute_user_command): Limit the call depth of
11042 user defined commands. This avoids a core-dump when user commands
11043 are infinitly recursive.
11044
a88376a3
KB
110452002-04-12 Kevin Buettner <kevinb@redhat.com>
11046
11047 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11048 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11049 from tdep struct instead of DEFAULT_LR_SAVE.
11050 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11051 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11052 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11053
f2172603
MS
110542002-04-12 Michael Snyder <msnyder@redhat.com>
11055
694f61fb 11056 * Remote.c: Spelling fix.
20fe79c8
MS
11057 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11058 If no symbol found for "sbrk", try "_sbrk".
11059 (make_output_phdrs): Use bfd_section_name.
11060 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11061 * eval.c: Indentation fix-ups.
169a7369
MS
11062 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11063 in case it gets applied to an address that is already
11064 in the instruction space.
de74f71f
MS
11065 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11066 * symfile.c: Fix indentation, long lines.
f2172603
MS
11067 * source.c: White space fix-up.
11068
cda5a58a
AC
110692002-04-12 Andrew Cagney <cagney@redhat.com>
11070
11071 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11072 * frame.c (frame_register_read): New function. Return non-zero on
11073 success.
11074 (read_relative_register_raw_bytes_for_frame): Delete.
11075 (read_relative_register_raw_bytes): Delete.
11076 * frame.h (frame_register_read): Declare.
11077 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11078 * sh-tdep.c: Ditto.
11079 * infcmd.c (do_registers_info): Ditto.
11080 * hppa-tdep.c: Ditto.
11081 * rs6000-tdep.c: Ditto.
11082 * h8500-tdep.c: Ditto.
11083 * mips-tdep.c: Ditto.
11084 * h8300-tdep.c: Ditto.
11085 * z8k-tdep.c: Ditto.
11086
2ea5f656
KB
110872002-04-12 Kevin Buettner <kevinb@redhat.com>
11088
11089 From Jimi X <jimix@watson.ibm.com>:
11090 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11091 64-bit SysV ABI.
11092
27b15785
KB
110932002-04-12 Kevin Buettner <kevinb@redhat.com>
11094
11095 From Jimi X <jimix@watson.ibm.com>:
11096 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11097 bfd info.
11098
5d57ee30
KB
110992002-04-12 Kevin Buettner <kevinb@redhat.com>
11100
11101 From Jimi X <jimix@watson.ibm.com>:
11102 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11103 register sets for these processor variants.
11104
bc1e36ca
DJ
111052002-04-11 Daniel Jacobowitz <drow@mvista.com>
11106
bc1e36ca
DJ
11107 * regformats/reg-ppc.dat: Support FPSCR.
11108
e3f36dbd
KB
111092002-04-11 Kevin Buettner <kevinb@redhat.com>
11110
11111 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11112 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11113 Add fpscr as an invalid/unfetchable register.
11114 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11115 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11116 (fill_fpregset): Add support for register fpscr.
11117 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11118 (fill_gregset): Account for the fact that register ``mq'' might
11119 not exist.
11120 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11121 (registers_power): Add fpscr to register set at slot 71.
11122 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11123 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11124
943c9c25
MS
111252002-04-11 Michael Snyder <msnyder@redhat.com>
11126
11127 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11128 * configure: Regenerate.
11129 * config.in: Regenerate.
11130 * acconfig.h: Add define for _SYSCALL32.
11131 * core-sol2.c: Remove #define _SYSCALL32.
11132 * solib-legacy.c: Remove #define _SYSCALL32.
11133
d8c0a2e7
AC
111342002-04-10 Andrew Cagney <ac131313@redhat.com>
11135
11136 * stack.c (select_frame): Cleanup internal error message, do not
11137 use %p.
11138
7cc19214
AC
111392002-04-10 Andrew Cagney <ac131313@redhat.com>
11140
11141 * stack.c (select_frame): Check that selected_frame and the
11142 specified level are as expected.
11143 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11144 Update copyright.
11145 * frame.h (struct frame_info): Add field `level'. Update
11146 copyright.
11147 Work-in-progress PR gdb/464.
11148
67a2b77e
AC
111492002-04-10 Andrew Cagney <ac131313@redhat.com>
11150
11151 * maint.c (maint_print_section_info): Rename print_section_info.
11152 (print_bfd_section_info, print_objfile_section_info): Update.
11153 * inferior.h (struct gdbarch): Add opaque declaration.
11154 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11155 * gdbarch.h: Regenerate.
11156
8cfda98c
ML
111572002-04-10 Michal Ludvig <mludvig@suse.cz>
11158
11159 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11160 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11161 (kernel_u_size): Added.
11162 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11163 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11164
ca439ad2 111652002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11166
ca439ad2
JI
11167 * valarith.c (find_size_for_pointer_math): New function, either returns
11168 the size for a pointer's target, returns 1 for void *, or errors for
11169 incomplete types.
11170 (value_add, value_sub): use find_size_for_pointer_math.
11171
2f2893d9
DJ
111722002-04-09 Daniel Jacobowitz <drow@mvista.com>
11173
11174 * linux-low.c (linux_look_up_symbols): New hook.
11175 (linux_target_ops): Add linux_look_up_symbols.
11176 * remote-utils.c (decode_address): New function.
11177 (look_up_one_symbol): New function.
11178 * server.c (handle_query): Call target look_up_symbols hook.
11179 * server.h (look_up_one_symbol): Add prototype.
11180 * target.h (struct target_ops): Add look_up_symbols hook.
11181
96cb11df
AC
111822002-04-09 Andrew Cagney <ac131313@redhat.com>
11183
11184 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11185 override FP_REGNUM with frame->fp. Update copyright.
11186 * parse.c (num_std_regs, std_regs): Delete.
11187 (target_map_name_to_register): Do not search std_regs. Update
11188 function description.
11189 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11190 declarations. Update copyright.
11191 Fix PR gdb/251.
361d1df0 11192
97658e92
DJ
111932002-04-09 Daniel Jacobowitz <drow@mvista.com>
11194
11195 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11196 after the last symbol in a block.
11197
6044e3eb
PM
111982002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11199
11200 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11201 is non zero as a found symbol.
11202
0406ec40
AC
112032002-04-08 Andrew Cagney <ac131313@redhat.com>
11204
11205 * findvar.c: Include "builtin-regs.h".
11206 (value_of_register): Call value_of_builtin_reg when applicable.
11207 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11208 (target_map_name_to_register): Call
11209 builtin_reg_map_name_to_regnum.
11210 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11211 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11212 (builtin_regs_h): Define.
11213 (builtin-regs.o): New target.
11214 (findvar.o): Add $(builtin_regs_h).
11215 * builtin-regs.c, builtin-regs.h: New files.
11216 * std-regs.c: New file.
11217 Partial fix for PR gdb/251.
11218
56a6dfb9
KB
112192002-04-08 Kevin Buettner <kevinb@redhat.com>
11220
11221 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11222 it's no longer required.
11223
3a808432
AC
112242002-04-08 Andrew Cagney <ac131313@redhat.com>
11225
11226 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11227
7c40d541
KB
112282002-04-08 Kevin Buettner <kevinb@redhat.com>
11229
11230 From Jimi X <jimix@watson.ibm.com>:
11231 * rs6000-tdep.c (rs6000_software_single_step): Use
11232 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11233 and size. Use target_insert_breakpoint() and
11234 target_remove_breakpoint() to insert and remove breakpoints
11235 instead of explicit memory reads and writes.
11236
cc9836a8
KB
112372002-04-08 Kevin Buettner <kevinb@redhat.com>
11238
11239 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11240 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11241 ELF_OBJECT_FORMAT ifdef.
11242
7495d1dc
KB
112432002-04-08 Kevin Buettner <kevinb@redhat.com>
11244
11245 From Jimi X <jimix@watson.ibm.com>:
11246 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11247
4288e836
KB
112482002-04-08 Kevin Buettner <kevinb@redhat.com>
11249
11250 From Jimi X <jimix@watson.ibm.com>:
11251 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11252 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11253
a4e4e501
MK
112542002-04-07 Mark Kettenis <kettenis@gnu.org>
11255
11256 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11257 s/asprintf/xasprintf/.
11258 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11259
006defba
AC
112602002-04-07 Andrew Cagney <ac131313@redhat.com>
11261
11262 I believe Jeff Law denies responsability for this one:
11263 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11264 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11265 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11266 Work-around for PR gdb/366.
11267
7aa83cac
EZ
112682002-04-07 Elena Zannoni <ezannoni@redhat.com>
11269
11270 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11271 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11272 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11273
cf1fcca1
EZ
112742002-04-07 Elena Zannoni <ezannoni@redhat.com>
11275
11276 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11277 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11278 information.
11279
3f289e6f
AC
112802002-04-07 Andrew Cagney <ac131313@redhat.com>
11281
11282 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11283 maintainer.
11284
129188f6
AC
112852002-04-07 Andrew Cagney <ac131313@redhat.com>
11286
11287 * README (Reporting Bugs in GDB): Document the bug web page as the
11288 prefered way of submitting bugs.
11289 Fix PR gdb/402.
11290
1200cd6e
AC
112912002-04-06 Andrew Cagney <ac131313@redhat.com>
11292
11293 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11294 -1. Update comment.
11295 * gdbarch.h, gdbarch.c: Re-generate.
11296
2853c33c
AS
112972002-04-07 Andreas Schwab <schwab@suse.de>
11298
11299 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11300 buffer to regcache_collect.
11301
c2169756
AC
113022002-04-06 Andrew Cagney <ac131313@redhat.com>
11303
11304 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11305 * gdbarch.c, gdbarch.h: Re-generate.
11306
25f1b008
AC
113072002-04-06 Andrew Cagney <ac131313@redhat.com>
11308
11309 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11310 declaration. Fix -Werror.
11311
59263426
DJ
113122002-04-05 Daniel Jacobowitz <drow@mvista.com>
11313
11314 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11315 * gdbarch.c: Regenerate.
11316
f5db4da3
MS
113172002-04-05 Michael Snyder <msnyder@redhat.com>
11318
80f8a6eb
MS
11319 * breakpoint.c (clear_command): Rewrite middle section to
11320 combine two loops with identical control conditions.
11321 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11322 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11323
ad3dcc5c
L
113242002-04-05 H.J. Lu (hjl@gnu.org)
11325
11326 * solib-svr4.c (bkpt_names): Add "__start".
11327
f32e7a74
AC
113282002-04-04 Andrew Cagney <ac131313@redhat.com>
11329
11330 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11331 as test for 64 bit target.
11332
8227c0ff
AC
113332002-04-05 Andrew Cagney <ac131313@redhat.com>
11334
11335 * h8500-tdep.c (h8500_write_fp): Delete function.
11336 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11337 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11338 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11340 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11341 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11342 (s390_write_fp):
11343 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11344 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11345 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11346 (d10v_write_fp): Delete function.
11347 * inferior.h (write_fp, generic_target_write_fp): Delete
11348 declarations.
11349 * regcache.c (generic_target_write_fp): Delete function.
11350 (write_fp): Delete function.
11351 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11352 * gdbarch.h, gdbarch.c: Regenerate.
11353 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11354 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11355 (sparc64_write_fp): Delete declaration.
11356 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11357 (h8500_write_fp): Delete declaration.
11358
2757dd86
AC
113592002-04-04 Andrew Cagney <ac131313@redhat.com>
11360
11361 * sparc-tdep.c (sparc64_write_fp): Delete.
11362 (sparc_push_dummy_frame): Replace write_fp call with code to store
11363 the FP directly.
11364 (sparc_gdbarch_init): Do not initialize write_fp.
11365
c69255e1
KB
113662002-04-05 Kevin Buettner <kevinb@redhat.com>
11367
11368 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11369 clause.
11370
ae767bfb
JB
113712002-03-29 Jim Blandy <jimb@redhat.com>
11372
11373 * stack.c (get_selected_block): Add new argument `addr_in_block',
11374 used to return the exact code address we used to select the block,
11375 not just the block.
11376 * blockframe.c (get_frame_block, get_current_block): Same.
11377 * frame.h (get_frame_block, get_current_block,
11378 get_selected_block): Update declarations.
11379 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11380 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11381
84d2ac95
MS
113822002-04-05 Michael Snyder <msnyder@redhat.com>
11383
11384 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11385 warning message.
11386
596aa3bf
JB
113872002-04-05 J. Brobecker <brobecker@gnat.com>
11388
11389 * utils.c (xfullpath): New function.
11390 * defs.h (xfullpath): Add declaration.
11391 * source.c (openp): Use xfullpath in place of gdb_realpath to
11392 avoid resolving the basename part of filenames when the
11393 associated file is a symbolic link. This fixes a potential
11394 inconsistency between the filenames known to GDB and the
11395 filenames it prints in the annotations.
11396 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11397 to be able to match a filename with either the real filename, or
11398 the name of any symbolic link to this file.
11399 (lookup_partial_symtab): Ditto.
11400
c02f5703
MS
114012002-04-04 Michael Snyder <msnyder@redhat.com>
11402
11403 * breakpoint.c: Add support for hardware breakpoints in overlays.
11404 (overlay_events_enabled): New state variable.
11405 (insert_breakpoints): Use overlay_events_enabled to decide
11406 whether to attempt to set a breakpoint at the overlay load addr.
11407 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11408 (remove_breakpoint): Use overlay_events_enabled to decide
11409 whether breakpoints need to be removed from overlay load addr.
11410 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11411 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11412 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11413 disable_overlay_breakpoints): Update overlay_events_enabled.
11414
5fb290d7
DJ
114152002-04-04 Daniel Jacobowitz <drow@mvista.com>
11416
11417 * dwarf2read.c (struct function_range): New.
11418 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11419 (check_cu_functions): New.
11420 (read_file_scope): Initialize global function lists.
11421 Call dwarf_decode_line after processing children.
11422 (read_func_scope): Add to global function list.
11423 (dwarf_decode_lines): Call check_cu_functions everywhere
11424 record_line is called. Call record_line with a linenumber
11425 of 0 to mark sequence ends.
11426
7b3fabf0
ML
114272002-04-04 Michal Ludvig <mludvig@suse.cz>
11428
361d1df0 11429 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11430 change sync with glibc.
11431
bce58c09
JB
114322002-04-03 Jim Blandy <jimb@redhat.com>
11433
11434 * configure.in: Call AC_C_INLINE.
11435 * configure: Regenerated.
361d1df0 11436
2fccf04a
DJ
114372002-04-01 Daniel Jacobowitz <drow@mvista.com>
11438
11439 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11440 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11441
2d1bfe2e
MK
114422002-03-31 Mark Kettenis <kettenis@gnu.org>
11443
a5941fbf
MK
11444 * NEWS: Mention gcore support on FreeBSD/i386.
11445
a90cd31d
MK
11446 * fbsd-proc.c: New file.
11447 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11448 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11449
2d1bfe2e
MK
11450 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11451 while statement.
11452
9eb6e5a1
JB
114532002-03-29 Jim Blandy <jimb@redhat.com>
11454
11455 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11456 unescaped newlines in string literals, but newer ones don't. So
11457 escape them.
11458
f02df580
MS
114592002-03-26 Michael Snyder <msnyder@redhat.com>
11460 Andrew Cagney <cagney@redhat.com>
11461
361d1df0 11462 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11463 restore file to memory.
11464 * cli/cli-dump.h: New file.
11465 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11466 * NEWS: Mention new commands.
f02df580 11467
109f874e
MS
114682002-03-28 Michael Snyder <msnyder@redhat.com>
11469
11470 * symfile.c (symbol_file_add): Move test for null symbols to later.
11471
520f6ade
AC
114722002-03-27 Andrew Cagney <ac131313@redhat.com>
11473
11474 From veksler at il.ibm.com:
11475 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11476 the xstrduped original path.
11477 Fix PR gdb/417.
11478
d4654627
MS
114792002-03-27 Michael Snyder <msnyder@redhat.com>
11480
11481 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11482 * infcmd.c (_initialize_infcmd): Ditto.
11483 * language.c (_initialize_language): Ditto.
11484 * symfile.c (_initialize_symfile): Ditto.
11485 * top.c (_init_main): Ditto.
11486 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11487
6be8bc0c
EZ
114882002-03-27 Elena Zannoni <ezannoni@redhat.com>
11489
11490 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11491 vector registers handling.
11492 (skip_prologue): Handle new AltiVec instructions. Fill in new
11493 fields of frame data.
11494 (frame_get_saved_regs): Fill in information for AltiVec registers.
11495
12af6855
JB
114962002-03-27 Jim Blandy <jimb@redhat.com>
11497
11498 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11499 a function; leave this macro here to invoke that function.
11500 (symbol_init_mangled_name): Declaration for that function.
11501 * symtab.c (symbol_init_mangled_name): New function.
11502
dc672865
AC
115032002-03-27 Andrew Cagney <ac131313@redhat.com>
11504
11505 * valarith.c: Replace strerror with safe_strerror.
11506 * tracepoint.c: Ditto.
11507 * lin-lwp.c: Ditto.
11508 * go32-nat.c: Ditto.
11509 * inflow.c: Ditto.
11510 * gnu-nat.c: Ditto.
11511
d96429cd
AS
115122002-03-27 Andreas Schwab <schwab@suse.de>
11513
11514 * event-top.c (command_line_handler): Remove useless if.
11515
7e336ba1
AJ
115162002-03-27 Andreas Jaeger <aj@suse.de>
11517
11518 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11519 comment.
11520
de220d0f
ML
115212002-03-27 Michal Ludvig <mludvig@suse.cz>
11522
11523 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11524 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11525 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11526 (x86_64_linux_dr_get_status, supply_gregset),
11527 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11528 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11529 (x86_64_register_info_table): Add.
11530 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11531 (x86_64_register_raw_size, x86_64_register_virtual_type),
11532 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11533 general x86_64_register_info_table.
11534 (i386_gdbarch_init): gdbarch_register_bytes is now set
11535 dynamicaly during initialization.
11536 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11537 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11538
0e98d0a7
DJ
115392002-03-27 Daniel Jacobowitz <drow@mvista.com>
11540
11541 * gdbserver/server.c (main): Call target_signal_to_host_p
11542 and target_signal_to_host on signals received from the remote.
11543 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11544 target_signal_from_host on signals sent to the remote.
11545 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11546 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11547
3130066b
DJ
115482002-03-27 Daniel Jacobowitz <drow@mvista.com>
11549
11550 * signals/signals.c: Include "server.h" in gdbserver build.
11551 (target_signal_from_name): Don't use STREQ.
11552 (_initialize_signals): Likewise. Don't include function in
11553 gdbserver build.
11554
9aedf4f4
DJ
115552002-03-27 Daniel Jacobowitz <drow@mvista.com>
11556
11557 * signals.c: Moved to...
11558 * signals/signals.c: Here.
7e336ba1 11559 * Makefile (signals.o): Update.
9aedf4f4 11560
3fa41cdb
JL
115612002-03-26 Jeff Law (law@redhat.com)
11562
11563 * somread.c (som_symtab_read): Remove some commented out code and
11564 updated related comments. Do not set the minimal symbol table to
11565 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11566 in a dynamic executable.
11567 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11568 where we are unable to find the minimal symbol for the given
11569 PC value.
11570
ee677e8d
MS
115712002-03-25 Jeff Law (law@redhat.com)
11572
11573 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11574
e76e1718
ML
115752002-03-25 Michal Ludvig <mludvig@suse.cz>
11576
11577 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11578
18a642a1
AC
115792002-03-23 Andrew Cagney <ac131313@redhat.com>
11580
11581 * command.h: Update copyright.
11582 (struct cmd_list_element): Replace definition with opaque
11583 declaration.
11584 (enum cmd_types): Document that it will eventually be moved to
11585 cli/cli-decode.h
11586 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11587 (MALLOCED_REPLACEMENT): Delete macro.
11588 * Makefile.in (cli_decode_h): Add $(command_h).
11589 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11590 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11591 * completer.c: Include "cli/cli-decode.h".
11592 * maint.c: Include "cli/cli-decode.h".
11593 * cli/cli-decode.h: Include "command.h".
11594 (enum command_class): Delete.
11595 (enum cmd_types): Comment out.
11596 (enum cmd_auto_boolean): Delete.
11597 (enum var_types): Delete.
11598
b2875cc0
AC
115992002-03-23 Andrew Cagney <ac131313@redhat.com>
11600
11601 * cli/cli-decode.c: Include "gdb_assert.h".
11602 (add_set_or_show_cmd): New static function.
11603 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11604 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11605 all fields, such as func, from the set command.
11606
3b45974e
AC
116072002-03-23 Andrew Cagney <ac131313@redhat.com>
11608
11609 * MAINTAINERS (sh-elf): Change warning flag to -w.
11610
823ca731
AC
116112002-03-23 Andrew Cagney <cagney@redhat.com>
11612
11613 * defs.h (error): Add printf format attribute.
11614 * thread-db.c (thread_from_lwp): Fix error format string.
11615 * stack.c (parse_frame_specification): Ditto.
11616 * cli/cli-decode.c (undef_cmd_error): Ditto.
11617 * scm-lang.c (scm_lookup_name): Ditto.
11618 * tracepoint.c (trace_error): Ditto.
11619 * remote-utils.c (usage): Ditto.
11620 * remote.c (compare_sections_command): Ditto.
11621 Fix PR gdb/328.
11622
0e101458
AC
116232002-03-22 Andrew Cagney <ac131313@redhat.com>
11624
11625 * gdbtypes.c (append_composite_type_field): New function.
11626 (init_composite_type): New function.
11627 * gdbtypes.h (append_composite_type_field): Declare.
11628 (init_composite_type): Ditto.
11629
8e0662df
EZ
116302002-03-22 Elena Zannoni <ezannoni@redhat.com>
11631
11632 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11633 function.
8e0662df
EZ
11634 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11635 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11636 structure returning convention for SYSV ABI case, but not
11637 for GNU/Linux, FreeBSD, or NetBSD.
11638
3121eff0
DJ
116392002-03-22 Daniel Jacobowitz <drow@mvista.com>
11640
11641 * symtab.h (lookup_block_symbol): Add mangled_name argument
11642 to prototype.
11643
11644 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11645 with new mangled_name argument.
11646 * linespec.c (decode_line_1): Likewise.
11647 * valops (value_of_this): Likewise.
11648 * symtab.c (lookup_transparent_type): Likewise.
11649 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11650 (lookup_symbol): If we are given a mangled name, pass it down
11651 to lookup_symbol_aux.
11652 (lookup_block_symbol): If we are given a mangled name to check
11653 against, only return symbols which match it.
11654
349b409f
CF
116552002-03-22 Christopher Faylor <cgf@redhat.com>
11656
11657 * win32-nat.c (child_create_inferior): Check for proper shell to use
11658 here, in case the user changes it on the fly.
11659 (_initialize_inftarg): Remove shell path considerations.
11660
2a873819
EZ
116612002-03-21 Elena Zannoni <ezannoni@redhat.com>
11662
11663 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11664 for gdbarch_max_register_raw_size and max_register_virtual_size.
11665 Adjust copyright year.
11666
a1b9830c
DJ
116672002-03-21 Daniel Jacobowitz <drow@mvista.com>
11668
11669 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11670 in a function to cover the entire beginning of the function
11671 as well if it does not already.
11672
8b5790f2
TR
116732002-03-21 Tom Rix <trix@redhat.com>
11674
11675 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11676 (rs6000_ptrace64): Renamed from ptrace64.
11677
bdbe5747
MH
116782002-03-20 Martin M. Hunt <hunt@redhat.com>
11679
11680 * gdbserver/remote-utils.c (remote_open): Don't call
11681 getprotobyname, we're all using TCP here so just use
11682 IPPROTO_TCP.
7e336ba1 11683 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11684
116852002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11686
bdbe5747
MH
11687 * regcache.c (_initialize_regcache): No need to call
11688 build_regcache() at this time; it gets called whenever
11689 the gdbarch changes.
11690
7781cd62
DB
116912002-03-20 David O'Brien <obrien@FreeBSD.org>
11692
11693 * sparc-nat.c: Include sys/param.h where possible.
11694
f65ca430
DJ
116952002-03-20 Daniel Jacobowitz <drow@mvista.com>
11696
11697 Fix PR gdb/422.
11698 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11699 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11700 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11701 complex types.
11702 * stabsread.c (rs6000_builtin_type): Likewise.
11703 (read_sun_floating_type): Likewise.
11704
0c867556
PS
117052002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11706
11707 * stabsread.c (read_member_functions): Remove skip code for duplicate
11708 constructor/destructor methods. Use standard parsing for these
11709 methods and just do not chain them to the list of methods after
11710 parsing.
11711
12b9c64f
AO
117122002-03-19 Alexandre Oliva <aoliva@redhat.com>
11713
11714 * coffread.c: Remove redundant static declarations. Replace
11715 occurrences of `PTR' with `void *'.
11716 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11717 * top.h (quit_cover): Likewise.
11718 * defs.h (catch_errors): Likewise.
11719
349c5d5f
AC
117202002-03-18 Andrew Cagney <ac131313@redhat.com>
11721
11722 * defs.h (XMALLOC): Define.
11723 * gdb-events.sh (XMALLOC): Delete macro.
11724 * gdb-events.c, gdb-events.h: Regenerate.
11725 * gdbarch.sh (XMALLOC): Delete macro.
11726 * gdbarch.c: Regenerate.
11727 * serial.c (XMALLOC): Delete macro.
11728 * ui-file.c (XMALLOC): Ditto.
11729 * ser-unix.h (XMALLOC): Ditto.
11730 * sh-tdep.c (XMALLOC): Ditto.
11731 * ui-out.c (XMALLOC): Ditto.
11732 * utils.c (XMALLOC): Ditto.
11733 * i386-tdep.c (XMALLOC): Ditto.
11734 * gdb-events.c (XMALLOC): Ditto.
11735 * d10v-tdep.c (XMALLOC): Ditto.
11736 * cli-out.c (XMALLOC): Ditto.
11737
11738 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11739 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11740 * ui-file.c, ui-out.c: Ditto.
11741
7d0766f3
AC
117422002-03-18 Andrew Cagney <ac131313@redhat.com>
11743
11744 * command.h (struct cmd_list_element): Add field context.
11745 (set_cmd_context, get_cmd_context): Declare.
11746 * cli/cli-decode.h: Ditto.
11747 * cli/cli-decode.c (get_cmd_context): New function.
11748 (set_cmd_context): New function.
11749 (add_cmd): Initialize context.
11750 Part of fixing PR gdb/145 and PR gdb/146.
11751
5913bcb0
AC
117522002-03-17 Andrew Cagney <ac131313@redhat.com>
11753
1868c04e
AC
11754 * cli/cli-decode.c (cmd_type): New function.
11755 * command.h (cmd_type): Declare.
11756 * infrun.c (set_schedlock_func): Call function cmd_type.
11757 * kod.c (kod_set_os): Call cmd_type.
11758 * cris-tdep.c (cris_version_update): Use function cmd_type.
11759 (cris_mode_update, cris_abi_update): Ditto.
11760
5913bcb0
AC
11761 * command.h: (execute_cmd_post_hook): Declare.
11762 (execute_cmd_pre_hook): Declare.
11763 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11764 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11765 functions. Execute pre/post hook while ensuring that afterwords
11766 hook_in is cleared.
11767 * top.c (execute_command): Use execute_cmd_post_hook, and
11768 execute_cmd_pre_hook to execute pre/post commands.
11769 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11770 hook_stop_stub.
11771 (hook_stop_stub): Call execute_cmd_pre_hook.
11772
b51450c9
AC
117732002-03-17 Andrew Cagney <ac131313@redhat.com>
11774
11775 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11776 set'' and this leads to a core dump. Move xstrdup of
11777 operating_system to after check that it is not NULL.
11778
f66c9f11
AC
117792002-03-17 Andrew Cagney <ac131313@redhat.com>
11780
8e694ecf
AC
11781 * kod.c (kod_set_os): Remove unnecessary check that
11782 ``command->type'' is set_cmd.
11783
f66c9f11
AC
11784 * valprint.c (set_input_radix): Use input_radix.
11785 (set_output_radix): Use output_radix.
11786 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11787 isn't reverted.
11788
9d01611c
AC
117892002-03-16 Andrew Cagney <ac131313@redhat.com>
11790
11791 * value.h (struct value): Delete field ``substring_addr''. Change
11792 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11793 force_core_addr_align and force_pointer_aligh.
11794
11795 * value.h (struct value): Fix typo in above change.
9d01611c 11796
4156bb53
PS
117972002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11798
11799 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11800 to fix internal_error from ``maintenance print architecture''.
11801
0e5e3ea6
PS
118022002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11803
11804 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11805 for gcc versions after gcc-2.8.1.
11806
9b013045
PS
118072002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11808
11809 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11810 for method resolution. Restore adjustment of ``this'' pointer after
11811 calling value_struct_elt, which was accidentally removed during the
11812 HP merge.
11813
376c9600
AC
118142002-03-15 Andrew Cagney <ac131313@redhat.com>
11815
11816 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11817 value_of_register.
11818 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11819 get_saved_register.
11820 * value.h (value_of_register): Update.
11821
a4db0f07
RH
118222002-03-14 Richard Henderson <rth@redhat.com>
11823
11824 * configure.in: Detect declaration for canonicalize_file_name.
11825 * utils.c (canonicalize_file_name): Declare, if needed.
11826 (gdb_realpath): Prefer realpath if available and usable.
11827 * config.in, configure: Rebuild.
11828
96383835
RH
118292002-03-14 Richard Henderson <rth@redhat.com>
11830
11831 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11832 a constant array bound.
11833
11834 * MAINTAINERS: Add myself to write-after-approval.
11835
75245b24
MS
118362002-03-14 Michael Snyder <msnyder@redhat.com>
11837
11838 * symfile.c (syms_from_objfile): Return immediately if no syms.
11839 (symbol_file_add): Return immediately if no syms.
11840 (find_sym_fns): Return immediately if no syms.
11841
e641a1ca
ML
118422002-03-13 Michal Ludvig <mludvig@suse.cz>
11843
11844 * gdbserver/remote-util.c (remote_open): Print remote-side's
11845 IP address when remote debugging over the network.
7e336ba1 11846
df08bfec
DB
118472002-03-12 David O'Brien <obrien@FreeBSD.org>
11848
11849 * config/sparc/fbsd.mh: Fix copyright.
11850 * config/sparc/fbsd.mt: Likewise.
11851
9a57864f
RE
118522002-03-11 Richard Earnshaw <rearnsha@arm.com>
11853
11854 * MAINTAINERS: Fix typo in name of gdb warnings option.
11855 (x86-64): Fix formating so that this can be parsed by awk.
11856
dd7bf85e
DJ
118572002-03-10 Daniel Jacobowitz <drow@mvista.com>
11858
11859 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11860 * defs.h: Include "gdb/signals.h".
11861 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11862
33a0a2ac
ML
118632002-03-10 Michal Ludvig <mludvig@suse.cz>
11864
11865 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11866 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11867 from x86-64-tdep.h
11868
dd824b04
DJ
118692002-03-10 Daniel Jacobowitz <drow@mvista.com>
11870 Don Howard <dhoward@redhat.com>
11871
11872 * mips-tdep.c (ST0_FR): Define.
11873 (mips2_fp_compat): New function, temporarily disabled.
11874 (mips_read_fp_register_single): New function.
11875 (mips_read_fp_register_double): New function.
11876 (mips_print_register): Use them.
11877 (do_fp_register_row): Likewise.
11878
6a41ff59
AC
118792002-03-09 Andrew Cagney <ac131313@redhat.com>
11880
11881 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11882 approval''.
11883
4ea09c10
PS
118842002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11885
11886 * stabsread.c (read_member_functions): Fix is_stub test for
11887 static member functions, improve comment.
11888
6ccc741d
RE
118892002-03-07 Richard Earnshaw <rearnsha@arm.com>
11890
11891 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11892 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11893 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11894 commands that set boolean values.
11895 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11896 (arm_rdi_resume): Always initialize PC.
11897 (arm_rdi_open): Don't use rslt as a boolean.
11898 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11899 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11900 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11901 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11902
438013df
AO
119032002-03-06 Alexandre Oliva <aoliva@redhat.com>
11904
11905 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11906 * configure: Rebuilt.
11907
70ed8774
SC
119082002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11909
11910 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11911 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11912
5ba2abeb
AC
119132002-03-06 Andrew Cagney <ac131313@redhat.com>
11914
11915 * cli/cli-decode.c (set_cmd_completer): New function.
11916 * command.h (set_cmd_completer): Declare.
11917 * cli/cli-decode.h (set_cmd_completer): Ditto.
11918
11919 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11920 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11921 * win32-nat.c (_initialize_inftarg): Ditto.
11922 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11923 * proc-api.c (_initialize_proc_api): Ditto.
11924 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11925 * source.c (_initialize_source): Ditto.
11926 * exec.c (_initialize_exec): Ditto.
11927 * solib.c (_initialize_solib): Ditto.
11928 * top.c (init_main): Ditto.
11929 * tracepoint.c (_initialize_tracepoint): Ditto.
11930 * symfile.c (_initialize_symfile): Ditto.
11931 * printcmd.c (_initialize_printcmd): Ditto.
11932 * infcmd.c (_initialize_infcmd): Ditto.
11933 * corefile.c (_initialize_core): Ditto.
11934
f779ca99
AC
119352002-03-05 Andrew Cagney <ac131313@redhat.com>
11936
11937 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11938
01a3934b
AC
119392002-03-05 Andrew Cagney <ac131313@redhat.com>
11940
11941 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11942
37057839
AC
119432002-03-05 Andrew Cagney <ac131313@redhat.com>
11944
11945 * NEWS: Update headings, 5.2 has branched.
11946
c6ecbae5
DJ
119472002-03-04 Daniel Jacobowitz <drow@mvista.com>
11948
11949 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11950 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11951 (register_addr, REGISTER_RAW_SIZE): Likewise.
11952 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11953 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11954
e9f30c21
ML
119552002-03-03 Michal Ludvig <mludvig@suse.cz>
11956
11957 * MAINTAINERS (x86-64): Add myself.
11958 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11959 changed value_ptr -> struct value *
11960
54394ac3
DB
119612002-03-01 David O'Brien <obrien@FreeBSD.org>
11962
11963 * configure.host (sparc64-*-freebsd): Add.
11964 * configure.tgt: Likewise.
11965 * config/sparc/fbsd.mh: New file.
11966 * config/sparc/fbsd.mt: Likewise.
11967 * config/sparc/nm-fbsd.h: Likewise.
11968 * config/sparc/tm-fbsd.h: Likewise.
11969
bfe95955
DJ
119702002-03-01 Daniel Jacobowitz <drow@mvista.com>
11971
11972 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11973 regformats/reg-s390x.dat.
11974
f33c6cbf
AC
119752002-03-01 Andrew Cagney <ac131313@redhat.com>
11976
11977 * utils.c: Add FIXME explaining true/false problem.
11978
5ecaa7dd
AC
119792002-02-28 Andrew Cagney <ac131313@redhat.com>
11980
11981 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11982
2a251cc2
MC
119832002-02-28 Michael Chastain <mec@shout.net>
11984
11985 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11986
6a8031a3 119872002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11988
11989 * gdbserver/linux-s390-low.c: New file.
11990 * regformats/reg-s390.dat: New file.
11991 * regformats/reg-s390x.dat: New file.
11992 * gdbserver/configure.srv: Add S/390.
11993 * gdbserver/Makefile.in: Add S/390.
11994 * configure.tgt: Enable gdbserver for S/390.
11995
ac469903
EZ
119962002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11997
11998 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11999 first line of the doc string for "info dos", except at the end of
12000 the sentence, since the short help stops at the first period.
12001
985cb1a3
JM
120022002-02-28 Jason Merrill <jason@redhat.com>
12003
12004 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12005
c570663e
FF
120062002-02-27 Fred Fish <fnf@redhat.com>
12007
12008 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12009 comment (dumy -> dummy).
12010
43630227
PS
120112002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12012
12013 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12014
b84911e8
RB
120152002-02-27 Rodney Brown <rbrown64@csc.com.au>
12016
12017 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12018
58caa3dc
DJ
120192002-02-27 Daniel Jacobowitz <drow@mvista.com>
12020
12021 * gdbserver/acconfig.h: New file.
12022 * gdbserver/i387-fp.c: New file.
12023 * gdbserver/i387-fp.h: New file.
12024 * gdbserver/linux-x86-64.c: New file.
12025 * regformats/reg-x86-64.dat: New file.
12026 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12027 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12028 * gdbserver/configure.in: Add support for regsets.
12029 * gdbserver/config.in: Regenerate.
12030 * gdbserver/configure: Regenerate.
12031 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12032 * gdbserver/linux-low.h: New file.
12033 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12034 for regsets.
12035 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12036 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12037 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12038 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12039 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12040 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12041 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12042 "i387-fp.h". Add PTRACE_GETREGS and friends.
12043 * gdbserver/regcache.c (supply_register): New function.
12044 (supply_register_by_name): New function.
12045 (collect_register): New function.
12046 (collect_register_by_name): New function.
12047
93652174
DJ
120482002-02-27 Daniel Jacobowitz <drow@mvista.com>
12049
12050 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12051 (config.status): Add configure.srv dependency.
12052 (server_h): Add config.h dependency.
12053
a02e4a61
DJ
120542002-02-27 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12057 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12058 * gdbserver/configure.srv: Change i386-*-linux* to use
12059 reg-i386-linux.o.
12060
ce0eebec
AC
120612002-02-26 Andrew Cagney <ac131313@redhat.com>
12062
12063 * x86-64-tdep.c: Re-indent. Update copyright date.
12064
82dbc5f7
AC
120652002-02-26 Andrew Cagney <ac131313@redhat.com>
12066
12067 From Michal Ludvig <mludvig@suse.cz>:
12068 * x86-64-tdep.c (value.h): Delete.
12069 (gdb_assert.h): Include.
12070 (x86_64_register_convert_to_virtual,
12071 x86_64_register_convert_to_raw ): Add check which lets only
12072 floating-point values to be converted.
12073 (value_push): Delete.
12074 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12075 (i386_gdbarch_init): Number of register_bytes fixed.
12076
e4621584
AC
120772002-02-26 Andrew Cagney <ac131313@redhat.com>
12078
12079 * MAINTAINERS: Add x86-64 target.
12080
81a9a963
AC
120812002-02-26 Andrew Cagney <ac131313@redhat.com>
12082
12083 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12084 * osfsolib.c (solib_map_sections): Ditto.
12085 * irix5-nat.c (solib_map_sections): Ditto.
12086 * corelow.c (gdb_check_format): Ditto.
12087 * symfile.c (symfile_bfd_open): Ditto.
12088 * solib.c (solib_map_sections): Ditto.
12089 Fix PR gdb/354.
7e336ba1 12090
0f017ab9
AC
120912002-02-26 Andrew Cagney <ac131313@redhat.com>
12092
12093 * remote.c (_initialize_remote): By default, disable ``e'' and
12094 ``E'' step out-of-range packets.
12095
75738c29
AS
120962002-02-26 Andreas Schwab <schwab@suse.de>
12097
12098 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12099 m68k_linux_frame_saved_pc.
12100 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12101 in_sigtramp.
12102 (SIGCONTEXT_PC_OFFSET): Remove.
12103 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12104 m68k_linux_sigtramp_saved_pc): New functions.
12105 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12106 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12107 (UCONTEXT_PC_OFFSET): Define.
12108 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12109 non-RT and RT signal trampolines.
12110
7e8ed687
RE
121112002-02-26 Richard Earnshaw <rearnsha@arm.com>
12112
12113 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12114 (TARGET_NBPG, STACK_END_ADDR): Delete
12115 (VARIABLES_INSIDE_BLOCK): Delete.
12116
6972bc8b
AC
121172002-02-25 Andrew Cagney <ac131313@redhat.com>
12118
12119 * utils.c (perror_with_name): Make string parameter constant.
12120 (print_sys_errmsg): Ditto.
12121 (query): Ditto.
12122 * defs.h (perror_with_name): Update.
12123 (print_sys_errmsg): Update.
12124 (query): Update.
12125
aa32f823
DJ
121262002-02-25 Daniel Jacobowitz <drow@mvista.com>
12127
12128 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12129 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12130
19caaa45
PS
121312002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12132
12133 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12134 if it already matches the current architecture from the exec file.
12135 Include arch-utils.h for gdbarch_info_init prototype.
12136 * Makefile.in (rs6000-nat.o): Update dependencies.
12137
d951901f
EZ
121382002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12139
12140 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12141 list of exported variables.
12142
7ea81414
DJ
121432002-02-24 Daniel Jacobowitz <drow@mvista.com>
12144
12145 * gdbserver/configure.srv: New file.
12146 * gdbserver/configure.in: Use configure.srv instead
12147 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12148 from it.
12149 * gdbserver/configure: Regenerated.
12150 * gdbserver/terminal.h: New file.
12151 * gdbserver/Makefile.in: Update for configure changes. Remove
12152 more unneeded include paths.
12153
080fe24b
AC
121542002-02-24 Andrew Cagney <ac131313@redhat.com>
12155
12156 From wiz at danbala:
12157 * config/sparc/tm-sp64.h: Fix grammar and typos.
12158 Fix PR gdb/287.
12159
8605d56e
AC
121602002-02-24 Andrew Cagney <ac131313@redhat.com>
12161
12162 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12163 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12164 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12165 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12166 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12167 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12168 * s390-tdep.c: Ditto.
92362027
AC
12169 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12170 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12171 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12172 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12173 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12174 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12175 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12176 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12177 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12178 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12179 Fix PR gdb/378.
7e336ba1 12180
8ed32cc0
AC
121812002-02-23 Andrew Cagney <ac131313@redhat.com>
12182
a3007b6f
AC
12183 * lin-thread.c: Delete file.
12184 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12185 to gdb_proc_service.h.
12186 * configure: Re-generate.
12187
50a9e2f1
AC
12188 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12189 * serial.c (serial_open): Delete check for "ocd".
12190 Fix PR gdb/349.
12191
8b6e7932
AC
12192 * Makefile.in (linux-thread.o): Delete target.
12193 * linux-thread.c: Delete file.
12194
d155c46b
AC
12195 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12196 renamed SH files to be consistent.
12197
8ed32cc0
AC
12198 * symtab.c (sort_search_symbols): Use xfree.
12199
0e18d038
RE
122002002-02-23 Richard Earnshaw <rearnsha@arm.com>
12201
12202 * arm-linux-tdep.c (arm_linux_init_abi): Register
12203 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12204 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12205 definition with undef, since we don't want the sysvr4 definition.
12206 (SKIP_TRAMPOLINE_CODE): Likewise.
12207
27aac7ff
AC
122082002-02-23 Andrew Cagney <ac131313@redhat.com>
12209
12210 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12211
12212 * configure.in: (AC_CHECK_FUNCS) Added test for
12213 canonicalize_file_name Regenerated.
12214 * config.in, configure: Regenerated.
12215 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12216 defined use canonicalize_file_name.
7e336ba1 12217
65a6e0ee
MC
122182002-02-23 Michael Chastain <mec@shout.net>
12219
12220 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12221
47b95330
AC
122222002-02-23 Andrew Cagney <ac131313@redhat.com>
12223
12224 * README: Remove references to cygnus.com.
12225 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12226 dot com'' form. Remove references to cygnus.com and sourceware.
12227
696f451b
AC
122282002-02-23 Andrew Cagney <ac131313@redhat.com>
12229
12230 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12231 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12232 1003.1-2001 no longer allows "head -1".
12233 * gdb/Makefile.in (version.c): Likewise.
12234 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12235 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12236 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12237
bbaca940
AC
122382002-02-23 Andrew Cagney <ac131313@redhat.com>
12239
12240 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12241 * command.h (cmd_cfunc_eq): Declare.
12242 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12243
12244 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12245 ``struct cmd_list_element *''.
12246 * cli/cli-cmds.c (is_complete_command): Update. Use
12247 cmd_cfunc_eq.
12248 * top.c (execute_command): Pass the command to
12249 is_complete_command.
12250 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12251
b8b8b047
AC
122522002-02-23 Andrew Cagney <ac131313@redhat.com>
12253
12254 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12255 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12256 architecture defines.
12257 * s390-tdep.c (s390_gdbarch_init): Likewise.
12258
19d3fc80
RE
122592002-02-23 Richard Earnshaw <rearnsha@arm.com>
12260
12261 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12262 (arm_linux_push_arguments): Likewise.
12263 (arm_linux_init_abi): Register them. Also register linux-specific
12264 call_dummy_words.
12265 (find_minsym_and_objfile): Use strcmp, not STREQ.
12266 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12267 (arm_linux_call_dummy_words): Delete declaration.
12268 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12269 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12270 declarations.
12271 (LOWEST_PC): Delete.
12272
3ab13650
PS
122732002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12274
12275 * maint.c (print_section_info): Do not prepend `0x' to filepos
12276 output, it will be handled by local_hex_string_custom.
12277
19d3fc80 122782002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12279
12280 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12281 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12282 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12283
d85a5daf
JB
122842002-02-22 Jim Blandy <jimb@redhat.com>
12285
12286 Indicate that the bcache functions don't change the strings
12287 they're passed.
12288 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12289 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12290
eeb25b8a
PM
122912002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12292
12293 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12294
6badb179
CF
122952002-02-21 Christopher Faylor <cgf@redhat.com>
12296
12297 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12298 find the complete path to a loaded DLL.
12299
e8717518
FF
123002002-02-21 Fred Fish <fnf@redhat.com>
12301
12302 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12303 that marks the end of the range of a function, enter a line number
12304 entry that has a line number of zero and a PC offset that matches
12305 the end of the function. This starts a range of PC's for which no
12306 line number information is known.
12307 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12308 PC's for which no line number info is found (line number is zero)
12309 then we didn't find any valid line information.
12310 * symtab.h: Document use of zero line number entry.
12311
9abe5450
EZ
123122002-02-21 Elena Zannoni <ezannoni@redhat.com>
12313
12314 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12315 (have_ptrace_getvrregs): Define for run time checks.
12316 (gdb_vrregset_t): New type for Altivec register handling.
12317 (fetch_register, store_register): Fetch/store altivec register
12318 when needed.
12319 (fetch_altivec_register, store_altivec_register): New functions.
12320 (supply_vrregset, fill_vrregset): New functions.
12321 (fetch_altivec_registers, store_altivec_registers): New functions.
12322 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12323 registers as well.
12324
aaa38bb5
AJ
123252002-02-21 Jiri Smid <smid@suse.cz>
12326
12327 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12328
b34db576
RE
123292002-02-21 Richard Earnshaw <rearnsha@arm.com>
12330
12331 * Makefile.in (armnbsd-nat.o): Update dependencies.
12332 * armnbsd-nat.c (supply_gregset): New function. Common code to
12333 supply the integer register set.
12334 (supply_fparegset): New function. Similar for FPA registers.
12335 (fetch_regs, fetch_fp_regs): Use them.
12336 (fetch_core_registers): Likewise.
12337 (fetch_elfcore_registers): New function.
12338 (arm_netbsd_elfcore_fns): New core-file type specification.
12339 (_initialize_arm_netbsd_nat): Register it.
12340
3e56fc4b
RE
123412002-02-21 Richard Earnshaw <rearnsha@arm.com>
12342
12343 * armnbsd-nat.c: Include gdbcore.h.
12344 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12345 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12346 'void' to declaration, to shut up ARI.
12347 (fetch_core_registers): Make static. Rewrite using supply_register.
12348 (arm_netbsd_core_fns): New core-file type specification.
12349 (_initialize_arm_netbsd_nat): New function.
12350
097f6b0b
CF
123512002-02-21 Christopher Faylor <cgf@redhat.com>
12352
12353 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12354 value.
12355
c914e0cc
CF
123562002-02-20 Christopher Faylor <cgf@redhat.com>
12357
12358 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12359 fails.
12360
385fa495
DJ
123612002-02-20 Daniel Jacobowitz <drow@mvista.com>
12362
12363 * jv-exp.y (parse_number): Change type of implicit longs
12364 to builtin_type_uint64.
12365
e5f1222d
DJ
123662002-02-20 Daniel Jacobowitz <drow@mvista.com>
12367
12368 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12369 to be an integer instead of a `union wait'.
12370
75c9abc6
DJ
123712002-02-20 Daniel Jacobowitz <drow@mvista.com>
12372
12373 * mips-linux-nat.c: Call the operating system GNU/Linux.
12374 * mips-linux-tdep.c: Likewise.
12375 * mips-tdep.c: Likewise.
12376
551792a5
DJ
123772002-02-20 Daniel Jacobowitz <drow@mvista.com>
12378
12379 Fix PR gdb/265.
12380 * jv-exp.y (parse_number): Handle 64-bit integers.
12381
ee6e2b82
DJ
123822002-02-20 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12385 AC_STDC_HEADERS to AC_HEADER_STDC.
12386 * gdbserver/configure: Regenerated.
12387
a48442a0
RE
123882002-02-20 Richard Earnshaw <rearnsha@arm.com>
12389
12390 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12391 is defined.
12392 * sparc-tdep.c (get_longjmp_target): Likewise.
12393
fe419ffc
RE
123942002-02-20 Richard Earnshaw <rearnsha@arm.com>
12395
12396 * News: Add news about ARM and Multi-arch. Mention the new target
12397 arm*-*-netbsd*.
12398
5832ed7e
JB
123992002-02-19 Jim Blandy <jimb@redhat.com>
12400
12401 * stabsread.c (error_type_complaint): Improve error message.
12402
84563040
DJ
124032002-02-19 Daniel Jacobowitz <drow@mvista.com>
12404
12405 * gdbserver/README: Update documentation.
12406 * gdbserver/configure.in: Update configury to match documentation.
12407 * gdbserver/Makefile.in: Likewise.
12408 * gdbserver/configure: Regenerated.
12409 * gdbserver/aclocal.m4: New file, generated by aclocal.
12410 * gdbserver/config.in: New file, generated by autoheader.
12411
375fd65b
RE
124122002-02-19 Richard Earnshaw <rearnsha@arm.com>
12413
12414 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12415 armnbsd-nat.c.
12416
08216dd7
RE
124172002-02-19 Richard Earnshaw <rearnsha@arm.com>
12418
12419 * arm-tdep.h (enum arm_float_model): New enum.
12420 (struct gdbarch_tdep): Add fp_model.
12421 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12422 up floating-point conversions until we know the floating-point model
12423 in use by the inferior. Don't complain about being unable to
12424 determine the ABI of the inferior when we don't have one.
12425 (arm_extract_return_value): Support different floating-point models.
12426 (arm_store_return_value): Likewise.
aaa38bb5 12427 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12428 ARM_FLOAT_SOFT.
12429 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12430
65d6d66a
PS
124312002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12432
12433 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12434 of ``current_gdbarch''.
12435
47221191
RE
124362002-02-19 Richard Earnshaw <rearnsha@arm.com>
12437
12438 * armnbsd-nat.c : ANSIfy all function declarations.
12439 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12440 (fetch_inferior_registers): Re-implement in terms of above.
12441 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12442 (store_inferior_registers): Re-implement in terms of above.
12443
fdf39c9a
RE
124442002-02-19 Richard Earnshaw <rearnsha@arm.com>
12445
aaa38bb5 12446 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12447 kernel.
12448 * arm-linux-tdep.c: Likewise.
12449 * config/arm/tm-linux.h: Likewise.
12450
93247f88
RE
124512002-02-19 Richard Earnshaw <rearnsha@arm.com>
12452
12453 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12454 * config/arm/nbsd.mt (TM_FILE): Delete.
12455 * config/arm/tm-nbsd.h: Delete.
12456
d7b486e7
RE
124572002-02-19 Richard Earnshaw <rearnsha@arm.com>
12458
12459 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12460 Initialize CALL_DUMMY_LENGTH.
12461
41d39a95
RE
124622002-02-19 Richard Earnshaw <rearnsha@arm.com>
12463
12464 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12465 function.
12466 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12467 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12468 defines one thing and that is incorrect for this port.
12469 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12470
e1195560
PM
124712002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12472
12473 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12474
c1748f97
PM
124752002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12476
12477 * win32-nat.c (display_selector): New function. Displays information
12478 about the information returned by GetThreadSelectorEntry API function.
12479 (display_selectors): New function. Displays the infomation of
12480 the selector given as argument, or of CS, DS ans FS selectors
12481 if no argument is given.
12482 ( _initialize_inftarg): Add "w32" as info prefix command.
12483 Add "info w32 selector" as command calling display_selectors.
12484
e41e6bbf
PM
124852002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12486
12487 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12488 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12489 if not defined.
12490
0d3a9f48
RE
124912002-02-18 Richard Earnshaw <rearnsha@arm.com>
12492
12493 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12494
3fb4b924
RE
124952002-02-18 Richard Earnshaw <rearnsha@arm.com>
12496
12497 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12498 (arm_fix_call_dummy): Call it.
12499 (arm_call_dummy_breakpoint_offset): Delete.
12500 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12501 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12502
7f55af32
AC
125032002-02-18 Andrew Cagney <ac131313@redhat.com>
12504
12505 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12506 Default to func_frame_chain_valid.
12507 * gdbarch.h, gdbarch.c: Re-generate.
12508 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12509
05f13b9c
EZ
125102002-02-18 Elena Zannoni <ezannoni@redhat.com>
12511
12512 * ppc-linux-nat.c: Update copyright.
12513 (fetch_register, store_register): Add tid parameter, don't compute
12514 tid here.
12515 (fetch_ppc_registers, store_ppc_registers): Add tid
12516 parameter. Pass it along to callees.
12517 (fetch_inferior_registers, store_inferior_registers): Compute tid
12518 here, and pass it to calleed functions.
12519 (fill_gregset, supply_fpregset): Clean up formatting.
12520
d7afb4c9
RE
125212002-02-18 Richard Earnshaw <rearnsha@arm.com>
12522
12523 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12524 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12525
9df628e0
RE
125262002-02-18 Richard Earnshaw <rearnsha@arm.com>
12527
12528 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12529 * gdbarch.c gdbarch.h: Regenerate.
12530 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12531 function.
12532 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12533 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12534 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12535
12536 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12537 * arm-tdep.c (arm_get_longjmp_target): New function.
12538 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12539 this to a positive value register arm_get_longjmp_target as the
12540 longjmp handler.
12541 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12542 (arm_linux_init_abi): Set up longjmp description in tdep.
12543 * armnbsd-nat.c (get_longjmp_target): Delete.
12544 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12545 description in tdep.
12546 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12547 (get_longjmp_target): Delete declaration.
12548 (GET_LONGJMP_TARGET): Delete.
12549 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12550 (GET_LONGJMP_TARGET): Delete.
12551
57bc8964
KB
125522002-02-17 Kevin Buettner <kevinb@redhat.com>
12553
12554 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12555 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12556 of ``current_gdbarch''.
12557
83d31a92
TT
125582002-02-17 Tom Tromey <tromey@redhat.com>
12559
12560 * cli/cli-cmds.c (compare_strings): New function.
12561 (complete_command): Only print each unique item once.
12562 * completer.h (complete_line): Declare.
12563 * completer.c (complete_line): New function.
12564 (line_completion_function): Use it.
12565
17ef5d92
AC
125662002-02-16 Andrew Cagney <ac131313@redhat.com>
12567
12568 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12569 * gdbarch.h, gdbarch.c: Re-generate.
12570
491b8946
DJ
125712002-02-16 Daniel Jacobowitz <drow@mvista.com>
12572
12573 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12574
125752002-02-16 Daniel Jacobowitz <drow@mvista.com>
12576
12577 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12578 * valops.c (value_arg_coerce): Don't take the address of a reference
12579 to convert an argument to a reference.
12580
dfe7f3ac
CF
125812002-02-15 Christopher Faylor <cgf@redhat.com>
12582
12583 * win32-nat.c (get_image_name): New function.
12584 (handle_load_dll): Use get_image_name function.
12585 (get_child_debug_event): Avoid registering debug events until possibly
12586 execed process is started.
12587 (child_create_inferior): Allow invocation via shell so that command
12588 line redirection, etc. works ok.
12589 (_initialize_inftarg): Add new command: "set shell" to control whether
12590 a shell is used to start a process.
12591
1d33e73a
DJ
125922002-02-15 Daniel Jacobowitz <drow@mvista.com>
12593
12594 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12595 instead of find_register_by_number.
12596 (cannot_store_register): Likewise.
12597
48cd0caa
PM
125982002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12599
aaa38bb5 12600 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12601 fprintf_unfiltered (gdb_stderr, ...).
12602
8656e7d8
DJ
126032002-02-15 Daniel Jacobowitz <drow@mvista.com>
12604
12605 * gdbserver/gdbserver.1: Document --attach.
12606
66e810cd
RE
126072002-02-15 Richard Earnshaw <rearnsha@arm.com>
12608
12609 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12610 descriptions.
12611 * arm-tdep.c (arm_default_arm_le_breakpoint)
12612 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12613 (arm_default_thumb_be_breakpoint): New. Initialize them from
12614 traditional breakpoint defines.
12615 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12616 (arm_gdbarch_init): Initialize new breakpoint variables.
12617 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12618 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12619 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12620 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12621 code out to ...
12622 (arm_netbsd_init_abi_common): ... here; new function.
12623 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12624 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12625 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12626 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12627
97e03143
RE
126282002-02-15 Richard Earnshaw <rearnsha@arm.com>
12629
12630 * arm-tdep.h (enum arm_abi): New enum.
12631 (struct gdbarch_tdep): New structure.
12632 (LOWEST_PC): Provide a default.
12633 (arm_gdbarch_register_os_abi): Declare new function.
12634 * arm-tdep.c (arm_abi_names): New array.
12635 (process_note_abi_tag_sections): New function.
12636 (get_elfosabi): New function.
12637 (arm_gdbarch_register_os_abi): New function.
12638 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12639 support for that ABI has been built in, then call the appropriate
12640 configuration routine. Use gdbarch_num_regs() to get the number
12641 of registers.
12642 (arm_dump_tdep): New function.
12643 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12644 place-holder functions.
12645 (_initialize_arm_tdep): Register them.
12646 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12647
12648 * armnbsd-tdep.c: New file.
12649 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12650 * config/arm/nbsd.mt (TDEPFILES): Add it.
12651 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12652
12653 * armnbsd-nat.c: Include regcache.h.
12654 * Makefile.in (armnbsd-nat.o): Update dependency list.
12655
12656 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12657
ad68be46
DJ
126582002-02-14 Daniel Jacobowitz <drow@mvista.com>
12659
12660 * gdbserver/Makefile.in: Fix typos in target rules.
12661
003d6d1d
DJ
126622002-02-14 Daniel Jacobowitz <drow@mvista.com>
12663
aaa38bb5 12664 Fix part of PR gdb/267.
003d6d1d
DJ
12665 * linespec.c (find_methods): Handle constructors specially for now.
12666
6b230f1b
CV
126672002-02-14 Corinna Vinschen <vinschen@redhat.com>
12668
12669 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12670 handling.
12671 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12672 standard_coerce_float_to_double().
12673
1ea98d12
CF
126742002-02-14 Christopher Faylor <cgf@redhat.com>
12675
12676 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12677 GDBINIT_FILENAME.
12678
dd47e6fd
EZ
126792002-02-14 Elena Zannoni <ezannoni@redhat.com>
12680
12681 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12682 find_variant_by_name, because it confuses the multiarch
12683 framework. Return NULL if there isn't an architecture with the
12684 user supplied name, instead of forcing a different one without
12685 recording the change with the multiarch machinery.
12686 (find_variant_by_name): Delete.
12687
d7e39b9e
PS
126882002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12689
12690 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12691 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12692
76e42a4f
MH
126932002-02-13 Martin M. Hunt <hunt@redhat.com>
12694
aaa38bb5 12695 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12696 print_frame_info_listing_hook, set current_source_symtab.
12697
0a30fbc4
DJ
126982002-02-14 Daniel Jacobowitz <drow@mvista.com>
12699
12700 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12701 and remove unused $(INCLUDE_DIR).
12702 Add regcache.c to OBS.
12703 Add generated register protocol files to clean target.
12704 Update dependencies for new objects, obsolete old target code.
12705
12706 * gdbserver/linux-low.c: Remove all platform-specific code to
12707 new files. Remove various dead code. Update to use regcache
12708 functionality.
12709 * gdbserver/remote-utils.c (fromhex): Add return statement
12710 to quiet warning.
12711 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12712 constant.
12713 (input_interrupt): Add integer parameter to match prototype
12714 of a signal handler.
12715 (outreg): Use register_data ().
12716 (prepare_resume_reply): Use gdbserver_expedite_regs.
12717 * gdbserver/server.c (main): Dynamically allocate own_buf because
12718 PBUFSIZ is no longer constant. Use registers_to_string () and
12719 registers_from_string ().
12720 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12721 for error (), fatal (), and warning (). Update definition of
12722 PBUFSIZ to use regcache functionality. Add include guard.
12723 * gdbserver/utils.c (fatal): Add missing ``const''.
12724 (warning): New function.
12725
12726 * regformats/regdat.sh: Include "regcache.h" in generated files.
12727 Provide init_registers () function.
12728 * regformats/regdef.h: Add prototype for set_register_cache ().
12729 Add include guard.
12730
12731 * gdbserver/linux-arm-low.c: New file.
12732 * gdbserver/linux-i386-low.c: New file.
12733 * gdbserver/linux-ia64-low.c: New file.
12734 * gdbserver/linux-m68k-low.c: New file.
12735 * gdbserver/linux-mips-low.c: New file.
12736 * gdbserver/linux-ppc-low.c: New file.
12737 * gdbserver/linux-sh-low.c: New file.
12738
12739 * gdbserver/regcache.c: New file.
12740 * gdbserver/regcache.h: New file.
12741
12742 * gdbserver/low-linux.c: Removed obsolete file.
12743
4cc841d0
DJ
127442002-02-14 Daniel Jacobowitz <drow@mvista.com>
12745
12746 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12747 * config/i386/linux.mt: Likewise.
12748 * config/ia64/linux.mt: Likewise.
12749 * config/m68k/linux.mh: Likewise.
12750 * config/powerpc/linux.mh: Likewise.
12751 * config/mips/linux.mt: Likewise.
12752
12753 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12754
12755 * config/i386/i386lynx.mh: Mark gdbserver variables
12756 as (currently) obsolete for this target.
12757 * config/i386/nbsd.mt: Likewise.
12758 * config/i386/nbsdelf.mt: Likewise.
12759 * config/m32r/m32r.mt: Likewise.
12760 * config/m68k/m68klynx.mh: Likewise.
12761 * config/m68k/nbsd.mt: Likewise.
12762 * config/m68k/sun3os4.mh: Likewise.
12763 * config/mips/vr5000.mt: Likewise.
12764 * config/ns32k/nbsd.mt: Likewise.
12765 * config/pa/hppabsd.mh: Likewise.
12766 * config/pa/hppaosf.mh: Likewise.
12767 * config/powerpc/nbsd.mt: Likewise.
12768 * config/rs6000/rs6000lynx.mh: Likewise.
12769 * config/s390/s390.mt: Likewise.
12770 * config/s390/s390x.mt: Likewise.
12771 * config/sparc/sparclynx.mh: Likewise.
12772 * config/sparc/sun4os4.mh: Likewise.
12773 * config/i386/x86-64linux.mt: Likewise.
12774 * config/sparc/linux.mh: Likewise.
12775
a85f51e7
DJ
127762002-02-14 Daniel Jacobowitz <drow@mvista.com>
12777
12778 * configure.tgt: Configure gdbserver only for known working
12779 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12780 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12781 SUBDIRS if it is configured. Update comment for ${nativefile}.
12782 * configure: Regenerated.
12783
65554fef
MS
127842002-02-13 Michael Snyder <msnyder@redhat.com>
12785
670a52db
MS
12786 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12787
6dbdc4a3
MS
12788 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12789 (default_gcore_mach): Just return 0, work around a problem in bfd.
12790 (default_gcore_target): OK to return NULL if exec_bfd is null.
12791 (make_mem_sec): Use a cast, avoid a warning.
12792
12793 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12794 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12795 sizeof (host pointer) != sizeof (target pointer)).
12796 (procfs_make_note_section): Avoid overflow in psargs string.
12797
aaa38bb5 12798 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12799 implementation return an error.
12800
128012002-02-13 Rodney Brown <rbrown64@csc.com.au>
12802
12803 * procfs.c (procfs_make_note_section): Provide a default definition
12804 (for alpha-dec-osf4.0f). Fix typos.
12805
1e4d76e7
EZ
128062002-02-13 Elena Zannoni <ezannoni@redhat.com>
12807
12808 * linux-proc.c: Add include of regcache.h.
12809 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12810
b6d1a1d5
AC
128112002-02-13 Andrew Cagney <ac131313@redhat.com>
12812
12813 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12814 * memattr.c (create_mem_region): Disallow useless empty region.
12815 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12816 non-overlapping.
b6d1a1d5 12817
6c6ea35e
MC
128182002-02-13 Michael Chastain <mec@shout.net>
12819
12820 * defs.h: Kill CONST_PTR.
12821 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12822 * c-lang.c (c_builtin_types): Likewise.
12823 * ch-lang.c (ch_builtin_types): Likewise.
12824 * f-lang.c (f_builtin_types): Likewise.
12825 * language.c (unknown_builtin_types): Likewise.
12826 * m2-lang.c (m2_builtin_types): Likewise.
12827 * p-lang.c (pascal_builtin_types): Likewise.
12828 * scm-lang.c (c_builtin_types): Likewise.
12829
3e0b0f48
KS
128302002-02-13 Keith Seitz <keiths@redhat.com>
12831
12832 * arm-tdep.h (arm_get_next_pc): Add declaration.
12833
67255d04
RE
128342002-02-13 Richard Earnshaw <rearnsha@arm.com>
12835
12836 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12837 with other related struct-returning functions.
12838 (arm_extract_struct_value_address): New function.
12839 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12840 initialize float_format, double_format and long_double_format as
12841 appropriate to the endianness of the target.
12842 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12843 (arm_use_struct_convention): Delete declaration.
12844 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12845
079777f6
KS
128462002-02-13 Keith Seitz <keiths@redhat.com>
12847
12848 * defs.h (core_addr_to_string_nz): New function.
12849
34588f23
MK
128502002-02-13 Mark Kettenis <kettenis@gnu.org>
12851
12852 Apply missing bits of 2002-01-15 patch.
12853 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12854 (fill_fpregset): Use i387_fill_fsave.
12855
49b563f9
KS
128562002-02-12 Keith Seitz <keiths@redhat.com>
12857
49b563f9
KS
12858 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12859 (core_addr_to_string_nz): New function.
12860
aeb98c60
RE
128612002-02-11 Richard Earnshaw <rearnsha@arm.com>
12862
12863 * arm-linux-nat.c: Really include arm-tdep.h.
12864 * config/arm/tm-linux.h (struct type, struct value): Declare.
12865
65554fef
MS
128662002-02-11 Michael Snyder <msnyder@redhat.com>
12867
12868 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12869 (gcore section): Ifdef for Solaris and Unixware only.
12870 (procfs_do_thread_registers): Unixware needs one lwpstatus
12871 per thread (not one prstatus or pstatus).
12872 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12873 not over all gdb threads. For unixware, call elfcore_write_pstatus
12874 once before iterating over threads.
12875
34e8f22d
RE
128762002-02-11 Richard Earnshaw <rearnsha@arm.com>
12877
12878 * arm-tdep.h: New file.
12879 * arm-tdep.c: Include arm-tdep.h.
12880 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12881 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12882 (arm_print_float_info, arm_register_type, convert_to_extended)
12883 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12884 (arm_extract_return_value, arm_register_name): Make static.
12885 (arm_software_single_step): Similarly. Fix types in declaration.
12886 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12887 (arm_store_return_value, arm_store_struct_return): New functions.
12888 (arm_gdbarch_init): Register the above functions. Also register
12889 call_dummy_start_offset, sizeof_call_dummy_words,
12890 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12891 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12892 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12893 prologue_cache.saved_regs here, rather than ...
12894 (_initialize_arm_tdep): ... here.
12895 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12896 declarations.
12897 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12898 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12899 (arm_print_float_info, arm_register_type, convert_to_extended)
12900 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12901 (arm_extract_return_value, arm_register_name): Delete declarations.
12902 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12903 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12904 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12905 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12906 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12907 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12908 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12909 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12910 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12911 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12912 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12913 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12914 interface.
12915 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12916 * remote-rdi.c remote-rdp.c: Likewise.
12917 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12918 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12919 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12920 definition.
12921
12922 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12923 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12924 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12925 from non-ARM_ prefixed definitions.
12926 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12927 all uses of above.
12928 * remote-rdi.c remote-rdp.c: Likewise.
12929 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12930
148754e5
RE
129312002-02-11 Richard Earnshaw <rearnsha@arm.com>
12932
12933 * arm-tdep.c (arm_frameless_function_invocation)
12934 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12935 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12936 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12937 (arm_pop_frame, arm_get_next_pc): Make static.
12938 (arm_gdbarch_init): Register above in gdbarch structure.
12939 (arm_read_fp): Renamed from arm_target_read_fp.
12940 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12941 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12942 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12943 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12944 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12945 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12946 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12947 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12948 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12949 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12950 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12951
434d2d4f
DJ
129522002-02-10 Daniel Jacobowitz <drow@mvista.com>
12953
12954 * symtab.c (compare_search_syms): New function.
12955 (sort_search_symbols): New function.
12956 (search_symbols): Sort symbols after searching rather than
12957 before.
12958
55241689
AC
129592002-02-10 Andrew Cagney <ac131313@redhat.com>
12960
12961 * NEWS: Linux -> GNU/Linux.
12962
028c194b
AC
129632002-02-10 Andrew Cagney <ac131313@redhat.com>
12964
12965 * gdbarch.sh: For for level one methods, disallow a definition
12966 when partially multi-arched. Add comments explaining rationale.
12967 * gdbarch.h: Re-generate.
12968
6acf50cd
AC
129692002-02-10 Andrew Cagney <ac131313@redhat.com>
12970
12971 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12972 multi-arch partial.
aaa38bb5 12973
50248794
AC
129742002-02-10 Andrew Cagney <ac131313@redhat.com>
12975
12976 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12977 field. Use diff -u.
12978 * gdbarch.c: Re-generate.
12979
c30e0066
AC
129802002-02-10 Andrew Cagney <ac131313@redhat.com>
12981
9b56c5f3 12982 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12983 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12984 partial.
12985
6e6d6484
AC
129862002-02-10 Andrew Cagney <ac131313@redhat.com>
12987
12988 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12989 multi-arch partial.
12990 (PUSH_ARGUMENTS): Switch to using predefault.
12991 * gdbarch.c: Regenerate.
12992
c203844d
AC
129932002-02-10 Andrew Cagney <ac131313@redhat.com>
12994
12995 * valops.c (PUSH_ARGUMENTS): Delete definition.
12996 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12997 partial. Default to default_push_arguments.
12998 * gdbarch.h, gdbarch.c: Regenerate.
12999
b5a2688f
AC
130002002-02-09 Andrew Cagney <ac131313@redhat.com>
13001
13002 * defs.h (throw_exception): Rename return_to_top_level. Update
13003 comments.
13004 * utils.c (error_stream, internal_verror, quit): Ditto.
13005 * top.c (throw_exception, catcher): Ditto.
13006 * sparclet-rom.c (sparclet_load): Ditto.
13007 * remote.c (interrupt_query, minitelnet): Ditto.
13008 * remote-sds.c (interrupt_query): Ditto.
13009 * remote-mips.c (mips_error, mips_kill): Ditto.
13010 * ocd.c (interrupt_query): Ditto.
13011 * monitor.c (monitor_interrupt_query): Ditto.
13012 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13013 * target.h: Update comment.
aaa38bb5 13014
b5a2688f 13015 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13016
2fa5c1e0
AC
130172002-02-09 Andrew Cagney <ac131313@redhat.com>
13018
13019 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13020 default_double_format.
13021 * gdbarch.h, gdbarch.c: Re-generate.
13022 * findvar.c (floatformat_unknown): Delete variable definition.
13023 * doublest.h (floatformat_unknown): Delete variable declaration.
13024
da966255
JB
130252002-02-09 Jim Blandy <jimb@redhat.com>
13026
13027 * stabsread.c (read_type): Add code to parse Sun's syntax for
13028 prototyped function types.
13029
123a4891
AC
130302002-02-09 Andrew Cagney <ac131313@redhat.com>
13031
13032 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13033 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13034
fb39c8f3
PS
130352002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13036
13037 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13038 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13039 now _initialize_xcoffsolib gets called again and overrides the
13040 commands from solib.c in a native configuration.
13041
0b87a11d
MK
130422002-02-09 Mark Kettenis <kettenis@gnu.org>
13043
13044 * doublest.c (store_typed_floating): Don't try to return a value.
13045 Fixes PR gdb/290.
13046
bdc2fc72
JB
130472002-02-08 Jim Blandy <jimb@redhat.com>
13048
13049 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13050 is prototyped and has no arguments, print its argument list as
13051 `(void)'.
13052
da69bbcf
CD
130532002-02-08 Chris Demetriou <cgd@broadcom.com>
13054
13055 * MAINTAINERS (write-after-approval): Add myself.
13056 (paper-trail): I've escaped!
aaa38bb5 13057
b69571f5
CF
130582002-02-08 Christopher Faylor <cgf@redhat.com>
13059
13060 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13061 changes.
13062 (_initialize_check_for_gdb_ini): Ditto.
13063
f6871398
MH
130642002-02-08 Martin M. Hunt <hunt@redhat.com>
13065
13066 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13067 xaprintf -> xasprintf.
13068
4e52d31c
PM
130692002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13070
13071 * win32-nat.c: Remove use of printf and sprintf functions.
13072
39bbf761
RE
130732002-02-08 Richard Earnshaw <rearnsha@arm.com>
13074
13075 * arm-tdep.c (arm_frame_chain_valid): Make static.
13076 (arm_push_arguments): Likewise.
13077 (arm_gdbarch_init): New function.
13078 (_initialize_arm_tdep): Call it.
13079 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13080 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13081 (FRAME_CHAIN_VALID): Delete.
13082 (arm_frame_chain_valid): Delete declaration.
13083 (PUSH_ARGUMENTS): Delete.
13084 (arm_push_arguments): Delete declaration.
13085 (CALL_DUMMY_P): Delete.
13086
9c9532c9
CV
130872002-02-08 Andrew Cagney <ac131313@redhat.com>
13088 Corinna Vinschen <vinschen@redhat.com>
13089
13090 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13091 on builtin float types.
13092
4e8f7a8b
DJ
130932002-02-08 Daniel Jacobowitz <drow@mvista.com>
13094
13095 * utils.c: Include <curses.h> before "bfd.h".
13096 * tui/tui-hooks.c: Likewise.
13097 * tui/tui.c: Likewise.
13098 * tui/tuiCommand.c: Likewise.
13099 * tui/tuiData.c: Likewise.
13100 * tui/tuiDataWin.c: Likewise.
13101 * tui/tuiDisassem.c: Likewise.
13102 * tui/tuiGeneralWin.c: Likewise.
13103 * tui/tuiIO.c: Likewise.
13104 * tui/tuiLayout.c: Likewise.
13105 * tui/tuiRegs.c: Likewise.
13106 * tui/tuiSource.c: Likewise.
13107 * tui/tuiSourceWin.c: Likewise.
13108 * tui/tuiStack.c: Likewise.
13109 * tui/tuiWin.c: Likewise.
13110
cd4bffcf
EZ
131112002-02-07 Elena Zannoni <ezannoni@redhat.com>
13112
13113 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13114 to include space for pseudoregs as well. Update loops accordingly.
13115 (sh_fp_frame_init_saved_regs): Ditto.
13116 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13117
26806ce2
AC
131182002-02-07 Andrew Cagney <ac131313@redhat.com>
13119
13120 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13121 Add Richard Earnshaw to Arm maintainers.
13122
97fdab62
AC
131232002-02-07 Andrew Cagney <ac131313@redhat.com>
13124
a6b98203
AC
13125 * defs.h (warning_begin): Delete declaration.
13126
97fdab62
AC
13127 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13128 Delete macro.
13129
78b29b40
MS
131302002-02-07 Michael Snyder <msnyder@redhat.com>
13131
aaa38bb5 13132 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13133 Logic bug, remove misplaced else.
13134
d8849953
KD
131352002-02-07 Klee Dienes <klee@apple.com>
13136
13137 * fork-inferior.c (fork_inferior): Add '!' to the list of
13138 characters that need to be quoted when building a string for the
13139 shell. Quote '!' specifically with a backslash, since CSH chokes
13140 when trying to evaluate "str!str".
aaa38bb5 13141
095778a0
NC
131422002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13143
13144 * rdi-share/host.h: Only provide a typedef for bool if it is not
13145 defined.
13146
1900040c
MS
131472002-02-04 Michael Snyder <msnyder@redhat.com>
13148
13149 * breakpoint.h (enum bptype): Add new overlay event bp type.
13150 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13151
1900040c
MS
13152 * breakpoint.c (create_internal_breakpoint): New function.
13153 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13154 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13155 (create_thread_event_breakpoint): Ditto.
13156 (create_solib_event_breakpoint): Ditto.
13157 (create_overlay_event_breakpoint): New function.
13158 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13159 (update_breakpoints_after_exec): Delete and re-initialize
13160 overlay event breakpoints after an exec. Add FIXME comment
13161 about longjmp breakpoint.
13162 (print_it_typical): Ignore overlay event breakpoints.
13163 (print_one_breakpoint): Ditto.
13164 (mention): Ditto.
13165 (bpstat_what): Do not stop for overlay event breakpoints.
13166 (delete_breakpoint): Don't delete overlay event breakpoints.
13167 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13168 (breakpoint_re_set): Re-create overlay event breakpoint.
13169
13170 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13171 (overlay_manual_command): Disable overlay breakpoints.
13172 (overlay_off_command): Disable overlay breakpoints.
13173
082fc60d
RE
131742002-02-06 Richard Earnshaw <rearnsha@arm.com>
13175
13176 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13177 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13178 to here from config/tm-arm.h.
13179 (coff_sym_is_thumb): Make static.
13180 (arm_elf_make_msymbol_special): New function.
13181 (arm_coff_make_msymbol_special): New function.
13182 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13183 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13184 (coff_sym_is_thumb): Delete declaration.
13185 (arm_elf_make_msymbol_special): Declare.
13186 (arm_coff_make_msymbol_special): Declare.
13187 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13188 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13189
039c5766
RE
131902002-02-06 Richard Earnshaw <rearnsha@arm.com>
13191
13192 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13193
131942002-02-06 Richard Earnshaw <rearnsha@arm.com>
13195
13196 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13197 * gdbarch.c gdbarch.h: Regenerate.
13198 * arch-utils.c (default_print_float_info): New function.
13199 * arch-utils.h (default_print_float_info): Prototype it.
13200 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13201 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13202 (PRINT_FLOAT_INFO): Document it.
13203
13204 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13205 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13206 (PRINT_FLOAT_INFO): Define.
13207
58fa08f0
PM
132082002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13209
aaa38bb5 13210 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13211 Add typecast to sprintf argument to suppress a warning.
13212
7393af7c
PM
132132002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13214
58fa08f0 13215 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13216 to allow easier handling of pass state.
13217 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13218 that gives exception name and address.
13219 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13220 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13221 exceptions added.
aaa38bb5
AJ
13222 (child_continue): Correctly report continue_status.
13223 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13224 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13225 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13226 the exception should be passed to debuggee or not.
13227
6af4589c
MS
132282002-02-05 Michael Snyder <msnyder@redhat.com>
13229
13230 * regcache.c (fetch_register): Call target_fetch_register
13231 only if we don't call FETCH_PSEUDO_REGISTER.
13232 (store_register): Call target_store_register only if we
13233 don't call STORE_PSEUDO_REGISTER.
13234
a2cf933a
EZ
132352002-02-05 Elena Zannoni <ezannoni@redhat.com>
13236
13237 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13238 ELF_MAKE_MSYMBOL_SPECIAL.
13239 * gdbarch.c, gdbarch.h: Regenerate.
13240 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13241 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13242 * elfread.c (elf_symtab_read): Compile use of
13243 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13244 multiarched.
13245 * coffread.c (coff_symtab_read): Ditto, for
13246 COFF_MAKE_MSYMBOL_SPECIAL.
13247
6bb7be43
JB
132482002-02-05 Jim Blandy <jimb@redhat.com>
13249
13250 * solib-svr4.c (svr4_truncate_ptr): New function.
13251 (svr4_relocate_section_addresses): Do the address arithmetic with
13252 the appropriate truncation for target addresses, even when
13253 CORE_ADDR is larger than a target address.
13254
e18651ec
DJ
132552002-02-05 Daniel Jacobowitz <drow@mvista.com>
13256
13257 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13258 to (int *).
13259
6b2725be
DJ
132602002-02-05 Daniel Jacobowitz <drow@mvista.com>
13261
13262 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13263 code.
13264
fca9e603
DJ
132652002-02-05 Daniel Jacobowitz <drow@mvista.com>
13266
13267 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13268
6c537a52
DJ
132692002-02-05 Daniel Jacobowitz <drow@mvista.com>
13270
13271 * gdbserver/linux-low.c: Remove unused include files.
13272
d844cde6
DJ
132732002-02-05 Daniel Jacobowitz <drow@mvista.com>
13274
13275 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13276 (read_inferior_memory): Use it.
13277 (write_inferior_memory): Likewise.
13278
d07c63e7
DJ
132792002-02-05 Daniel Jacobowitz <drow@mvista.com>
13280
13281 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13282 grubbing through sys_errlist.
13283
da6d8c04
DJ
132842002-02-05 Daniel Jacobowitz <drow@mvista.com>
13285
13286 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13287
5b421780
PM
132882002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13289 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13290
9f60d481
AC
132912002-02-04 Andrew Cagney <ac131313@redhat.com>
13292
13293 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13294 (do_sfunc, set_cmd_sfunc): New functions.
13295
13296 * command.h (struct cmd_list_element): Add field func.
13297 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13298 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13299 * cli/cli-decode.h: Ditto.
13300
13301 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13302 (help_all, help_cmd_list): Ditto.
13303 (find_cmd, complete_on_cmdlist): Ditto.
13304 * top.c (execute_command): Ditto.
13305
13306 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13307 function.sfunc.
13308
13309 * infcmd.c (notice_args_read): Fix function signature.
13310
13311 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13312 * cli/cli-decode.c (add_set_cmd): Ditto.
13313 * utils.c (initialize_utils): Ditto.
13314 * maint.c (_initialize_maint_cmds): Ditto.
13315 * infrun.c (_initialize_infrun): Ditto.
13316 * demangle.c (_initialize_demangler): Ditto.
13317 * remote.c (add_packet_config_cmd): Ditto.
13318 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13319 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13320 * proc-api.c (_initialize_proc_api): Ditto.
13321 * kod.c (_initialize_kod): Ditto.
13322 * valprint.c (_initialize_valprint): Ditto.
13323 * top.c (init_main): Ditto.
13324 * infcmd.c (_initialize_infcmd): Ditto.
13325 * corefile.c (_initialize_core): Ditto.
13326 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13327 * arch-utils.c (initialize_current_architecture): Ditto.
13328 (_initialize_gdbarch_utils): Ditto.
13329 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13330
13331 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13332 * wince.c (_initialize_inftarg): Ditto.
13333 * symfile.c (_initialize_symfile): Ditto.
13334 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13335 * language.c (_initialize_language): Ditto.
13336 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13337
f9ba0717
MS
133382002-02-04 Michael Snyder <msnyder@redhat.com>
13339
13340 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13341
0c74b2a7
DJ
133422002-02-04 Daniel Jacobowitz <drow@mvista.com>
13343
13344 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13345 Add rules for building the register data files.
13346
c638789f
DJ
133472002-02-04 Daniel Jacobowitz <drow@mvista.com>
13348
13349 * regformats/regdat.sh: Add braces to the definition of
13350 expedite_regs_${arch}.
13351
db253027
DJ
133522002-02-04 Daniel Jacobowitz <drow@mvista.com>
13353
13354 * regformats/regdef.h (struct reg): Add comment describing the
13355 requirements for offset and size fields.
13356
206be19c
AS
133572002-02-04 Andreas Schwab <schwab@suse.de>
13358
13359 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13360 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13361
181c1381
RE
133622002-02-04 Richard Earnshaw <rearnsha@arm.com>
13363
13364 * gdbarch.sh (copyright): Update years in generated header.
13365 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13366 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13367 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13368 * dbxread.c: Likewise.
13369 * dwarfread.c: Likewise.
13370 * elfread.c: Likewise.
13371 * somread.c: Likewise.
13372
13373 * arm-tdep.c (arm_smash_text_address): New function.
13374 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13375
fa4ba8da
PM
133762002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13377
13378 Add support for hardware watchpoints on win32 native.
aaa38bb5 13379 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13380 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13381 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13382 of debug registers.
13383 (debug_registers_changed): New variable. Reflects when debug registers
13384 are changed and need to be written to inferior.
aaa38bb5 13385 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13386 was set, used when new threads are created.
13387 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13388 i386-nat code.
13389 (thread_rec): Set dr array if id is the thread of current_event .
13390 (child_continue, child_resume): Change the debug registers for all
13391 threads if debug_registers_changed.
13392 (child_add_thread): Change the debug registers if debug_registers_used.
13393 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13394 Link nm.h to new nm-cygwin.h file.
13395 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13396 of hardware registers.
13397
a73c86fb
AC
133982002-02-03 Andrew Cagney <ac131313@redhat.com>
13399
13400 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13401 Restore behavour broken by 2002-01-20 Andrew Cagney
13402 <ac131313@redhat.com> IEEE_FLOAT removal.
13403
acf5ed49
DJ
134042002-02-03 Daniel Jacobowitz <drow@mvista.com>
13405
13406 * c-valprint.c (c_val_print): Pass a proper valaddr to
13407 cp_print_class_method.
13408 * valops.c (search_struct_method): If there is only one method
13409 and args is NULL, return that method.
13410
493d28d5
DJ
134112002-02-03 Daniel Jacobowitz <drow@mvista.com>
13412
13413 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13414 accessing tag_name directly.
13415
7495dfdb
DJ
134162002-02-03 Daniel Jacobowitz <drow@mvista.com>
13417
13418 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13419 of accessing tag_name directly.
13420
dd6bda65
DJ
134212002-02-03 Daniel Jacobowitz <drow@mvista.com>
13422
13423 PR gdb/280
13424 * gdbtypes.c (replace_type): New function.
13425 * gdbtypes.h (replace_type): Add prototype.
13426 * stabsread.c (read_type): Use replace_type.
13427
88fe217c
RE
134282002-02-03 Richard Earnshaw <rearnsha@arm.com>
13429
13430 * Makefile.in (memattr.o): Add missing dependencies rule.
13431
e5d66720
PS
134322002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13433
13434 * breakpoint.c (break_at_finish_command): Really export.
13435 (break_at_finish_at_depth_command): Ditto.
13436 (tbreak_at_finish_command): Ditto.
13437 * hppa-tdep.c: Include completer.h.
13438 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13439 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13440
fffee0be
AC
134412002-02-01 Andrew Cagney <ac131313@redhat.com>
13442
13443 * utils.c (do_write): New function.
13444 (error_stream): Rewrite combining the code from error_begin and
13445 verror.
13446 (verror): Rewrite using error_stream.
13447 (error_begin): Delete function.
13448
255e7dbf
AC
134492002-02-01 Andrew Cagney <ac131313@redhat.com>
13450
13451 * utils.c (error_begin): Make static.
13452 * defs.h (error_begin): Delete declaration.
13453
13454 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13455 (decode_line_1): Use cplusplus_error instead of error_begin,
13456 cplusplus_hint and return_to_top_level.
13457 * coffread.c (coff_symfile_read): Use error instead of error_begin
13458 and return_to_top_level.
13459 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13460
ddfe3c15
AC
134612002-02-01 Andrew Cagney <ac131313@redhat.com>
13462
13463 * language.h (type_error, range_error): Make string parameter
13464 constant.
13465 * language.c (warning_pre_print): Delete extern declaration.
13466 * dwarfread.c (warning_pre_print): Ditto.
13467 * language.c (type_error, range_error): Rewrite to use verror and
13468 vwarning instead of warning_begin.
13469
03ac34d5
MS
134702002-02-01 Michael Snyder <msnyder@redhat.com>
13471
261c4ca2
MS
13472 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13473 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13474
e00d1dc8
AC
134752002-02-01 Andrew Cagney <ac131313@redhat.com>
13476
13477 * command.h (NO_FUNCTION): Delete macro.
13478 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13479 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13480 * tracepoint.c (_initialize_tracepoint): Ditto.
13481 * cli/cli-decode.c (add_set_cmd): Ditto.
13482 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13483
76b79d6e
DJ
134842002-02-01 Daniel Jacobowitz <drow@mvista.com>
13485
13486 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13487 Update ``this'' pointer when calling virtual functions.
13488
799f9e91
MS
134892002-02-01 Michael Snyder <msnyder@redhat.com>
13490
c7bd442c 13491 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13492 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13493
3cf384d4
DJ
134942002-02-01 Daniel Jacobowitz <drow@mvista.com>
13495
13496 * regformats/reg-arm.dat: New file.
13497 * regformats/reg-i386.dat: New file.
13498 * regformats/reg-ia64.dat: New file.
13499 * regformats/reg-m68k.dat: New file.
13500 * regformats/reg-mips.dat: New file.
13501 * regformats/reg-ppc.dat: New file.
13502 * regformats/reg-sh.dat: New file.
13503 * regformats/regdef.h: New file.
13504 * regformats/regdat.sh: New file.
13505
0defa245
RE
135062002-02-01 Richard Earnshaw <reanrsha@arm.com>
13507
13508 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13509 (arm_frame_args_address, arm_frame_locals_address): New functions.
13510 (arm_frame_num_args): New function.
13511 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13512 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13513 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13514
405f26e6
MS
135152002-01-31 Michael Snyder <msnyder@redhat.com>
13516
502fd408
MS
13517 * breakpoint.c (break_at_finish_command): Export.
13518 (break_at_finish_at_depth_command): Export.
13519 (tbreak_at_finish_command): Export.
d6020d45 13520 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13521 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13522 "txbreak" commands, which are HPPA specific.
502fd408 13523
7d35e135
MS
13524 * printcmd.c (disassemble_command): Remove an ancient
13525 artifact of an old merge.
13526
aaa38bb5 13527 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13528 Define enum constant values for overlay mode.
13529 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13530 (overlay_is_mapped, overlay_auto_command,
13531 overlay_manual_command): Ditto.
d874f1e2 13532
aaa38bb5
AJ
13533 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13534 breakpoint_here_p, breakpoint_inserted_here_p,
13535 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13536 describe_other_breakpoints, check_duplicates, clear_command):
13537 Coding standard fixes.
13538
8add0441 13539 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13540 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13541 code: check bfd SEC_READONLY flag for section.
13542
e351066e
AC
135432002-01-31 Andrew Cagney <ac131313@redhat.com>
13544
7d35e135 13545 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13546
8a48e967
DJ
135472002-01-30 Daniel Jacobowitz <drow@mvista.com>
13548
13549 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13550 data symbols, since we search based on textlow and texthigh.
13551 (find_pc_sect_symtab): Likewise.
13552
f5a96129
AC
135532002-01-30 Andrew Cagney <ac131313@redhat.com>
13554
13555 * defs.h (vwarning): Declare.
f5a96129
AC
13556 * utils.c (vwarning): New function.
13557 (warning): Call vwarning.
13558 (warning_begin): Delete function.
13559
13560 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13561 the warning message.
13562 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13563 warning_begin.
13564
cefd4ef5
MS
135652002-01-30 Michael Snyder <msnyder@redhat.com>
13566
1a703748
MS
13567 * NEWS: Mention "set trust-readonly-sections" command.
13568 Mention generate-core-file command.
cefd4ef5 13569
3a11626d
MS
135702002-01-15 Michael Snyder <msnyder@redhat.com>
13571
13572 * target.c: New command, "set trust-readonly-sections on".
13573 (do_xfer_memory): Honor the suggestion to trust readonly sections
13574 by reading them from the object file instead of from the target.
13575 (initialize_targets): Register command "set trust-readonly-sections".
13576
d1c7e53b
AC
135772002-01-29 Andrew Cagney <ac131313@redhat.com>
13578
13579 * parse.c (target_map_name_to_register): Simplify, search regs and
13580 pseudo-regs using a single loop.
13581
e2c9a72c
AC
135822002-01-30 Andrew Cagney <ac131313@redhat.com>
13583
13584 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13585
69824b4e
MK
135862002-01-15 Rodney Brown <rbrown64@csc.com.au>
13587
13588 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13589 * config/i386/i386v42mp.mh: Add i387-nat.o .
13590 * i386v4-nat.c: Include i387-nat.h.
13591 (supply_fpregset): Use i387_supply_fsave.
13592 (fill_fpregset): Use i387_fill_fsave.
13593
6eb69eab
RE
135942002-01-30 Richard Earnshaw <rearnsha@arm.com>
13595
13596 * arm-tdep.c (arm_call_dummy_words): Define.
13597 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13598 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13599 (CALL_DUMMY_WORDS): Define.
13600 (arm_call_dummy_words): Declare.
13601 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13602 (arm_linux_call_dummy_words): Declare.
13603
9852326a
AS
136042002-01-30 Andreas Schwab <schwab@suse.de>
13605
13606 * m68klinux-nat.c: Fix last change to use regcache_collect
13607 instead of referencing registers[] directly.
13608
977a3030
AC
136092002-01-29 Andrew Cagney <ac131313@redhat.com>
13610
13611 * parse.c (target_map_name_to_register): Delete code wrapped in
13612 #ifdef REGISTER_NAME_ALIAS_HOOK.
13613
2076c72b
MS
136142002-01-28 Michael Snyder <msnyder@redhat.com>
13615
13616 * regcache.c (legacy_read_register_gen): Need to be able to
13617 read pseudo-register as well as real register.
13618 (legacy_write_register_gen): Ditto.
13619
8fcc723b
AC
136202002-01-28 Andrew Cagney <ac131313@redhat.com>
13621
13622 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13623 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13624 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13625 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13626 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13627 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13628 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13629 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13630 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13631 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13632 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13633 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13634 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13635 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13636 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13637 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13638 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13639 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13640 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13641 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13642
afe64c1a
AC
136432002-01-28 Andrew Cagney <ac131313@redhat.com>
13644
13645 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13646 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13647 (initialize_current_architecture): Update target_byte_order using
13648 information from BFD.
aaa38bb5 13649 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13650 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13651
75bc7ddf
AC
136522002-01-28 Andrew Cagney <ac131313@redhat.com>
13653
13654 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13655 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13656
13657 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13658 #ifdef INVALID_FLOAT.
13659 * infcmd.c (do_registers_info): Ditto.
13660 * values.c (unpack_double): Ditto. Add comment.
13661
13662 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13663 already commented out.
13664
0280a90a
AS
136652002-01-26 Andreas Schwab <schwab@suse.de>
13666
13667 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13668 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13669 registers and add support for PTRACE_GETREGS.
13670
7072a954
AC
136712002-01-24 Andrew Cagney <ac131313@redhat.com>
13672
13673 GDB 5.1.1 released from 5.1 branch.
13674 * NEWS: Add 5.1.1 news.
13675 * README: Sync with 5.1 branch.
13676
86f902e0
FF
136772002-01-23 Fred Fish <fnf@redhat.com>
13678
13679 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13680 stabstring on initial malloc. Reallocing will copy it for us,
13681 if necessary.
13682
8af51c36
EZ
136832002-01-23 Elena Zannoni <ezannoni@redhat.com>
13684
aaa38bb5 13685 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13686 (HFILES_NO_SRCDIR): Remove hpread.h.
13687 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13688 (hpread.o): Update dependencies.
13689 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13690
13691 * hp-psymtab-read.c: Remove file.
13692 * hp-symtab-read.c: Remove file.
13693 * hpread.h: Remove file.
13694
13695 * hpread.c: Merge all contents of hp-psymtab-read.c,
13696 hp-symtab-read.c and hpread.h into this file, as it was prior to
13697 January 1999.
13698
13699 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13700 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13701 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13702 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13703
dc5cfeb6
EZ
137042002-01-23 Elena Zannoni <ezannoni@redhat.com>
13705
13706 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13707 fill_gregset): Call gdbarch_tdep() just once, assign result to
13708 variable and use that, instead of calling the function several
13709 times.
13710
ea87b71b
AO
137112002-01-24 Alexandre Oliva <aoliva@redhat.com>
13712
13713 * configure.host: Accept sparcv9 as alias for sparc64.
13714 * configure.tgt: Likewise.
13715
13fc0c2f
KB
137162002-01-22 Kevin Buettner <kevinb@redhat.com>
13717
13718 * solib-aix5.c (build_so_list_from_mapfile)
13719 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13720 arguments is not reversed.
13721 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13722 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13723
7bd872fe
EZ
137242002-01-22 Elena Zannoni <ezannoni@redhat.com>
13725
13726 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13727 modified version of obsolete sh_fetch_pseudo_register.
13728 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13729 (sh4_register_read): New function.
13730 (sh_pseudo_register_write): New function. Renamed and modified
13731 version of obsolete sh_store_pseudo_register.
13732 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13733 (sh4_register_write): New function.
13734 (sh_gdbarch_init): Remove setting of gdbarch function
13735 fetch_pseudo_register and store_pseudo_register. Remove setting of
13736 register_convert_to_raw, register_convert_to_virtual,
13737 register_convertible.
13738 (sh_sh4_register_convertible): Delete. No longer needed. All is
13739 taken care by architecture specific functions
13740 register_read/register_write.
13741 (sh_sh4_register_convert_to_virtual): Make static.
13742 (sh_sh4_register_convert_to_raw): Ditto.
13743
069e84fd
AC
137442002-01-22 Andrew Cagney <ac131313@redhat.com>
13745
13746 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13747 (floatformat_is_nan, floatformat_mantissa): Ditto.
13748
13749 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13750 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13751 builtin_type_ieee_double_little,
13752 builtin_type_ieee_double_littlebyte_bigword,
13753 builtin_type_m68881_ext, builtin_type_i960_ext,
13754 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13755 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13756 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13757 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13758
211a4f69
CV
137592002-01-22 Corinna Vinschen <vinschen@redhat.com>
13760
13761 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13762 parameter. Set frameless flag if it exists and depended of
13763 whether the scanned function is frameless or not.
13764 (xstormy16_skip_prologue): If function is frameless, return
13765 result of xstormy16_scan_prologue().
13766 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13767 call.
13768
f81353e4
EZ
137692002-01-21 Elena Zannoni <ezannoni@redhat.com>
13770
13771 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13772 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13773 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13774 sh_sh4_register_byte, sh_sh4_register_raw_size,
13775 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13776 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13777 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13778 sh_store_pseudo_register, sh_do_pseudo_register): Call
13779 gdbarch_tdep() just once, assign result to variable and use that,
13780 instead of calling the function several times.
13781
63c73a17
MK
137822002-01-20 Mark Kettenis <kettenis@gnu.org>
13783
13784 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13785 macros instead of LAST_FPU_CTRL_REGNUM.
13786 (store_register): Likewise.
13787
39ad761d
JB
137882002-01-21 Jim Blandy <jimb@redhat.com>
13789
13790 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13791 is up-to-date before running the program, not just when a program
13792 exits.
13793
3d74b771
FF
137942002-01-21 Fred Fish <fnf@redhat.com>
13795
13796 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13797 when we have found all instructions we are looking for.
13798
966fbf70
RE
137992002-01-21 Richard Earnshaw <rearnsha@arm.com>
13800
13801 * arm-tdep.c (arm_register_name): New function.
13802 (arm_registers_names): Make static.
13803 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13804 (arm_register_name): Declare.
13805 (REGISTER_NAME): Use it.
13806
c3b4394c
RE
138072002-01-21 Richard Earnshaw <rearnsha@arm.com>
13808 Kevin Buettner <kevinb@redhat.com>
13809
13810 Convert arm targets to new FRAME interface.
13811 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13812 (arm_frame_find_save_regs): Delete.
13813 (arm_frame_init_saved_regs): New.
13814 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13815 Allocate extra_info as required. Convert all uses of fsr.regs
13816 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13817 to use extra_info.
13818 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13819 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13820 (check_prologue_cache, save_prologue_cache): Likewise.
13821 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13822 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13823 (FRAME_FIND_SAVED_REGS): Delete.
13824 (arm_frame_find_saved_regs): Delete prototype.
13825 (arm_frame_init_saved_regs): New prototype.
13826 (FRAME_INIT_SAVED_REGS): Define.
13827
61d99182
AC
138282002-01-20 Andrew Cagney <ac131313@redhat.com>
13829
13830 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13831
6aaea291
AC
138322002-01-20 Andrew Cagney <ac131313@redhat.com>
13833
13834 From Jeff Law <law@redhat.com>:
13835 * infttrace.c: Include <sys/pstat.h>.
13836 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13837 exec file if the ttrace equivalent fails.
13838
15f698d2
AC
138392002-01-20 Andrew Cagney <ac131313@redhat.com>
13840
13841 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13842 (closeLogFile): Ditto.
13843
f86ddd7c
MC
138442002-01-20 Michael Chastain <mec@shout.net>
13845
13846 * top.c (print_gdb_version): Bump copyright year to 2002.
13847
904507ce
AC
138482002-01-20 Andrew Cagney <ac131313@redhat.com>
13849
13850 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13851 Zannoni and Eli Zaretskii.
13852
d7f0b9ce
DJ
138532002-01-20 Daniel Jacobowitz <drow@mvista.com>
13854
13855 * buildsym.c: Update copyright years.
13856 * c-typeprint.c: Likewise.
13857 * dwarf2read.c: Likewise.
13858 * f-typeprint.c: Likewise.
13859 * gdbtypes.c: Likewise.
13860 * gdbtypes.h: Likewise.
13861 * hp-symtab-read.c: Likewise.
13862 * hpread.c: Likewise.
13863 * mdebugread.c: Likewise.
13864 * p-typeprint.c: Likewise.
13865
3fd3d7d2
AC
138662002-01-20 Andrew Cagney <ac131313@redhat.com>
13867
13868 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13869 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13870 byte-order selectable.
13871 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13872 * arch-utils.c: Ditto.
13873 (set_endian): Ditto.
13874 (set_endian_from_file): Ditto.
13875 * gdbserver/low-sim.c (create_inferior): Ditto.
13876 * gdbarch.sh: Ditto.
13877 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13878 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13879 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13880 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13881 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13882 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13883 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13884 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13885 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13886 macro definition.
13887 * config/mips/tm-wince.h: Remove #undef of macro
13888 TARGET_BYTE_ORDER_SELECTABLE.
13889 * config/sh/tm-wince.h: Ditto.
13890
b02dede2
DJ
138912002-01-20 Daniel Jacobowitz <drow@mvista.com>
13892
13893 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13894 member function fields. Add accessor macro
13895 TYPE_FN_FIELD_ARTIFICIAL.
13896 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13897 * c-typeprint.c (c_type_print_base): Skip artificial member
13898 functions.
13899
c3643761
DJ
139002002-01-20 Daniel Jacobowitz <drow@mvista.com>
13901
13902 * f-typeprint.c: Delete unused function f_type_print_args.
13903 * p-typeprint.c: Delete unused function pascal_type_print_args.
13904
8176bb6d
DJ
139052002-01-20 Daniel Jacobowitz <drow@mvista.com>
13906
13907 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13908 comment. Add ``artificial'' to ``union field_location''.
13909
13910 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13911
13912 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13913 * mdebugread.c (parse_symbol): Likewise.
13914 * stabsread.c (define_symbol): Likewise.
13915 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13916 initializing TYPE_FIELD_BITPOS to n (obsolete).
13917 (hpread_doc_function_type): Likewise.
13918 * hpread.c (hpread_function_type): Likewise.
13919
7fd60527
AC
139202002-01-20 Andrew Cagney <ac131313@redhat.com>
13921
13922 * configure.in (host_makefile_frag): Only require a host makefile
13923 fragment when a native build.
13924 * configure: Re-generate.
13925
c2f05ac9
AC
139262002-01-20 Andrew Cagney <ac131313@redhat.com>
13927
13928 * doublest.h (floatformat_from_type): Declare.
13929 * doublest.c (floatformat_from_type): New function.
13930 (convert_typed_floating): Use.
13931
13932 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13933 call to function floatformat_from_type.
13934
13935 * gdbarch.sh (IEEE_FLOAT): Delete.
13936 * gdbarch.h, gdbarch.c: Re-generate.
13937 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13938 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13939 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13940 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13941 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13942 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13943 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13944 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13945 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13946 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13947 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13948 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13949
13950 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13951 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13952 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13953 * sh-tdep.c (sh_gdbarch_init): Ditto.
13954 * mips-tdep.c (mips_gdbarch_init): Ditto.
13955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13956 * cris-tdep.c (cris_gdbarch_init): Ditto.
13957
abf22e64
AJ
139582002-01-20 Jiri Smid <smid@suse.cz>
13959
13960 * configure.host, configure.tgt: Support x86-64.
13961 * NEWS: Note new target x86-64.
13962
b7c4cbf8
AJ
13963 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13964 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13965 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13966 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13967 x86-64-linux-nat.o): Fix dependencies.
13968
82600034
AC
139692002-01-19 Andrew Cagney <ac131313@redhat.com>
13970
13971 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13972 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13973 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13974 * config/sparc/xm-sun4os4.h: Delete file.
13975 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13976
bbe5c628
AC
139772002-01-19 Andrew Cagney <ac131313@redhat.com>
13978
13979 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13980 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13981 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13982 * config/i386/i386lynx.mh (XM_FILE): Delete.
13983 * config/rs6000/xm-rs6000ly.h: Delete file.
13984 * config/sparc/xm-sparclynx.h: Delete file.
13985 * config/m68k/xm-m68klynx.h: Delete file.
13986 * config/i386/xm-i386lynx.h: Delete file.
13987 * config/xm-lynx.h: Delete file.
13988 * config/djgpp/fnchange.lst: Update.
13989
f8453e34
JT
139902002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13991
13992 * alpha-tdep.c (alpha_register_byte): New function.
13993 (alpha_register_raw_size): Ditto.
13994 (alpha_register_virtual_size): Ditto.
13995 (alpha_skip_prologue_internal): Renamed from
13996 alpha_skip_prologue.
13997 (alpha_skip_prologue): New version that calls
13998 alpha_skip_prologue_internal.
13999 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14000 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14001 second argument from alpha_skip_prologue.
14002 (REGISTER_BYTE): Use alpha_register_byte.
14003 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14004 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14005 (FRAMELESS_FUNCTION_INVOCATION): Use
14006 generic_frameless_function_invocation_not.
14007 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14008 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14009
52d9e613
AC
140102002-01-19 Andrew Cagney <ac131313@redhat.com>
14011
14012 * config/mips/xm-news-mips.h: Delete file.
14013 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14014
14015 * config/m88k/xm-m88k.h: Delete file.
14016 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14017 * config/m88k/xm-delta88v4.h: Ditto.
14018 * config/m88k/xm-delta88.h: Ditto.
14019
14020 * config/alpha/xm-fbsd.h: Delete file.
14021 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14022
14023 * config/sparc/xm-sparc.h: Delete file.
14024 * Makefile.in (xm-sun4os4.h): Delete dependency.
14025 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14026 * config/sparc/xm-sun4os4.h: Ditto.
14027 * config/sparc/xm-linux.h: Ditto.
14028
14029 * config/i386/xm-windows.h: Delete file.
14030
2d1b2124
AC
140312002-01-19 Andrew Cagney <ac131313@redhat.com>
14032
14033 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14034 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14035
ee1f65f0
JT
140362002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14037
14038 * alpha-tdep.c (alpha_call_dummy_words): New.
14039 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14040 (CALL_DUMMY_P): Define.
14041 (CALL_DUMMY_WORDS): Define.
14042 (SIZEOF_CALL_DUMMY_WORDS): Define.
14043
98081e55
PB
140442002-01-19 Per Bothner <per@bothner.com>
14045
14046 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14047 isn't NULL, which can happen with some gcj-3.x-produced code.
14048
0d056799
JT
140492002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14050
14051 * alpha-tdep.c (alpha_register_virtual_type): New function.
14052 (alpha_init_frame_pc_first): Ditto.
14053 (alpha_fix_call_dummy): Ditto.
14054 (alpha_store_struct_return): Ditto.
14055 (alpha_extract_struct_value_address): Ditto.
14056 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14057 alpha_register_virtual_type.
14058 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14059 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14060 alpha_extract_struct_value_address.
14061 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14062 (INIT_FRAME_PC): Use init_frame_pc_noop.
14063 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14064
4604bcad
MK
140652002-01-19 Mark Kettenis <kettenis@gnu.org>
14066
14067 * i386gnu-nat.c: Include "i386-tdep.h".
14068 (fetch_fpregs): Simplify code dealing with uninitialized floating
14069 point states such that it doesn't require FP7_REGNUM.
14070
140f9984
JT
140712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14072
abf22e64
AJ
14073 * alpha-tdep.c (frame_extra_info): New.
14074 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14075 frame->extra_info.
14076 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14077 (alpha_frame_saved_pc): Use frame->extra_info.
14078 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14079 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14080 (init_extra_frame_info): Rename to...
14081 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14082 (alpha_print_extra_frame_info): New function.
140f9984
JT
14083 (alpha_frame_locals_address): Ditto.
14084 (alpha_frame_args_address): Ditto.
abf22e64 14085 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14086 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14087 alpha_frame_args_address.
abf22e64 14088 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14089 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14090 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14091 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14092 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14093 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14094
d734c450
JT
140952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14096
14097 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14098 (alpha_cannot_fetch_register): Ditto.
14099 (alpha_cannot_store_register): Ditto.
14100 (alpha_register_convertible): Ditto.
14101 (alpha_use_struct_convention): Ditto.
14102 * config/alpha/tm-alpha.h: Update copyright years.
14103 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14104 (INNER_THAN): Use core_addr_lessthan.
14105 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14106 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14107 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14108 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14109 (FRAME_CHAIN): Remove unnecessary cast.
14110
b4ceaee6
AC
141112002-01-18 Andrew Cagney <ac131313@redhat.com>
14112
14113 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14114 obsolete.
14115
0a65a603
AC
141162002-01-18 Andrew Cagney <ac131313@redhat.com>
14117
14118 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14119 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14120 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14121 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14122 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14123 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14124 * x86-64-linux-nat.c: Ditto.
14125
636a6dfc
JT
141262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14127
abf22e64 14128 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14129 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14130 (REGISTER_NAME): Define.
14131
acceddb6
JT
141322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14133
14134 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14135
ec32e4be
JT
141362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14137
14138 * alpha-tdep.c: Update copyright years.
14139 (alpha_next_pc): New function.
14140 (alpha_software_single_step): Ditto.
14141 * config/alpha/tm-alpha.h: Add prototype for
14142 alpha_software_single_step.
14143
e771a871
JT
141442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14145
14146 * alphabsd-nat.c: Update copyright years.
14147 (fill_gregset): Use regcache_collect.
14148 (fill_fpregset): Likewise.
14149 (fetch_inferior_registers): Only fetch integer registers
14150 if requested to do so.
14151 (store_inferior_registers): Only store integer registers
14152 if requested to do so.
14153
7708fa01
AC
141542002-01-17 Andrew Cagney <ac131313@redhat.com>
14155
14156 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14157 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14158 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14159 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14160 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14161 * config/arm/linux.mh (XDEPFILES): Delete.
14162 * config/arm/nbsd.mh (XDEPFILES): Delete.
14163 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14164 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14165 * config/i386/i386m3.mh (XDEPFILES): Delete.
14166 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14167 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14168 * config/i386/fbsd.mh (XDEPFILES): Delete.
14169 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14170 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14171 * config/i386/i386v4.mh (XDEPFILES): Delete.
14172 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14173 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14174 * config/i386/i386aix.mh (XDEPFILES): Delete.
14175 * config/i386/go32.mh (XDEPFILES): Delete.
14176 * config/i386/cygwin.mh (XDEPFILES): Delete.
14177 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14178 * config/i386/i386mach.mh (XDEPFILES): Delete.
14179 * config/i386/i386v32.mh (XDEPFILES): Delete.
14180 * config/i386/linux.mh (XDEPFILES): Delete.
14181 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14182 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14183 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14184 * config/i386/i386sco.mh (XDEPFILES): Delete.
14185 * config/i386/i386v.mh (XDEPFILES): Delete.
14186 * config/i386/nbsd.mh (XDEPFILES): Delete.
14187 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14188 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14189 * config/i386/symmetry.mh (XDEPFILES): Delete.
14190 * config/i386/obsd.mh (XDEPFILES): Delete.
14191 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14192 * config/ia64/linux.mh (XDEPFILES): Delete.
14193 * config/ia64/aix.mh (XDEPFILES): Delete.
14194 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14195 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14196 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14197 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14198 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14199 * config/m68k/linux.mh (XDEPFILES): Delete.
14200 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14201 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14202 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14203 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14204 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14205 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14206 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14207 * config/m88k/delta88.mh (XDEPFILES): Delete.
14208 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14209 * config/m88k/m88k.mh (XDEPFILES): Delete.
14210 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14211 * config/mips/linux.mh (XDEPFILES): Delete.
14212 * config/mips/irix6.mh (XDEPFILES): Delete.
14213 * config/mips/irix5.mh (XDEPFILES): Delete.
14214 * config/mips/irix4.mh (XDEPFILES): Delete.
14215 * config/mips/irix3.mh (XDEPFILES): Delete.
14216 * config/mips/decstation.mh (XDEPFILES): Delete.
14217 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14218 (NATDEPFILES): Move core-aout.o to here.
14219 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14220 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14221 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14222 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14223 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14224 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14225 * config/pa/hpux11.mh (XDEPFILES): Delete.
14226 * config/powerpc/aix.mh (XDEPFILES): Delete.
14227 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14228 * config/powerpc/linux.mh (XDEPFILES): Delete.
14229 * config/romp/rtbsd.mh: Rename XDEPFILES.
14230 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14231 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14232 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14233 * config/s390/s390.mh (XDEPFILES): Delete.
14234 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14235 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14236 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14237 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14238 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14239 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14240 * config/sparc/linux.mh (XDEPFILES): Delete.
14241 * config/vax/vaxult.mh (XDEPFILES): Delete.
14242 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14243 * Makefile.in (DEPFILES): Remove XDEPFILES.
14244
375fc983
AC
142452002-01-17 Andrew Cagney <ac131313@redhat.com>
14246
14247 * utils.c (internal_verror): Fix comments, default is yes not no.
14248 Update queries to match. Default to quit and dump core.
14249
8926118c
AC
142502002-01-17 Andrew Cagney <ac131313@redhat.com>
14251
14252 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14253 copyright.
14254 * defs.h, event-top.c, gdbcmd.h: Ditto.
14255 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14256 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14257 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14258 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14259 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14260 * mi/mi-main.c:Ditto.
14261
14262 * stack.c, symfile.c: Update copyright.
14263
45b7b345
DJ
142642002-01-17 Daniel Jacobowitz <drow@mvista.com>
14265
db728ff7
DJ
14266 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14267 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14268 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14269 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14270
db728ff7
DJ
142712002-01-17 Daniel Jacobowitz <drow@mvista.com>
14272
14273 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14274 * gdbserver/low-lynx.c (myattach): Likewise.
14275 * gdbserver/low-nbsd.c (myattach): Likewise.
14276 * gdbserver/low-sim.c (myattach): Likewise.
14277 * gdbserver/low-sparc.c (myattach): Likewise.
14278 * gdbserver/low-sun3.c (myattach): Likewise.
14279
14280 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14281
db728ff7 14282 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14283 (main): Handle "--attach".
14284
8de3c354
AC
142852002-01-16 Andrew Cagney <ac131313@redhat.com>
14286
14287 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14288 maintainer.
14289
b0129042
DJ
142902002-01-15 Daniel Jacobowitz <drow@mvista.com>
14291
14292 * c-typeprint.c (is_type_conversion_operator): Add additional
14293 check for non-conversion operators.
14294
ba8679fb 142952002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14296
14297 * linux-proc.c: Add "info proc" command, a la procfs.c.
14298 (read_mapping): New function, abstract and re-use code.
14299 (linux_find_memory_regions): Use new func read_mapping.
14300 (linux_info_proc_cmd): New function, implement "info proc".
14301 (_initialize_linux_proc): Add new command "info proc".
14302
e4f9b4d5
MS
143032002-01-15 Michael Snyder <msnyder@redhat.com>
14304
14305 * symfile.c (generic_load): Use bfd_map_over_sections method
14306 instead of manipulating bfd structure members directly.
14307 (add_section_size_callback): New function, bfd sections callback
14308 used by generic_load.
14309 (load_sections_callback): New function, bfd sections callback
14310 used by generic_load.
14311
08cf96df
EZ
143122002-01-15 Elena Zannoni <ezannoni@redhat.com>
14313
abf22e64 14314 [Based on work by Jim Blandy]
08cf96df
EZ
14315 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14316 (builtin_type_vec128): Export.
14317 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14318 types.
14319 (builtin_type_vec128): New builtin type for 128 bit vector
14320 registers.
14321 (build_gdbtypes): Initialize builtin_type_v16qi and
14322 builtin_type_v8hi. Create the vec128 register builtin type
14323 structure.
14324 (build_builtin_type_vec128): New function.
abf22e64 14325 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14326 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14327 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14328 AltiVec register to new builtin type.
14329
d7242108
DJ
143302001-01-15 Daniel Jacobowitz <drow@mvista.com>
14331
14332 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14333 to make_cv_type.
14334
4ee3352d
AC
143352002-01-14 Andrew Cagney <ac131313@redhat.com>
14336
14337 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14338 CLEAN_UP_REGISTER_VALUE.
14339 * regcache.c (supply_register): Update only call.
14340
f015b2e7
AC
143412002-01-14 Andrew Cagney <ac131313@redhat.com>
14342
14343 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14344 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14345 a29k-*-vxworks* targets as obsolete.
14346
356ae49d
MS
143472002-01-14 Michael Snyder <msnyder@redhat.com>
14348
14349 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14350 until we can resolve portability issues.
14351 * gregset.h: Remove references to fpxregs.
14352 * gcore.c (gcore_command): Initialize note_sec to NULL.
14353
ade8f45e
AC
143542002-01-13 Andrew Cagney <ac131313@redhat.com>
14355
14356 * signals.c (target_signal_to_name): Rewrite. Only use
14357 signals[].name when in bounds and non-NULL.
abf22e64 14358
89c49e7a
AC
143592002-01-13 Andrew Cagney <ac131313@redhat.com>
14360
14361 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14362 * signals.c (target_signal_to_name): Verify that SIG is within the
14363 bounds of the signals array.
14364
4daa9f9f
AC
143652002-01-13 Andrew Cagney <ac131313@redhat.com>
14366
14367 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14368
ba4bbdcb
KS
143692002-01-13 Keith Seitz <keiths@redhat.com>
14370
14371 * stack.c (print_frame_info_base): Print the frame's pc
14372 only if when print_frame_info_listing_hook is not defined.
14373
575bbeb6
KS
143742002-01-13 Keith Seitz <keiths@redhat.com>
14375
14376 * varobj.c (varobj_set_value): Make sure that there were no
14377 errors evaluating the object before attempting to set its
14378 value.
14379 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14380 so this offset adjustment is no longer necessary.
14381 (create_child): Don't set the error flag if the child is
14382 a CPLUS_FAKE_CHILD.
14383 (value_of_child): If value_fetch_lazy fails, return NULL
14384 so that callers will be notified that an error occurred.
14385 (c_value_of_variable): Delay check of variable's validity
14386 until later. We actually want all structs and unions to have
14387 the value "{...}".
14388 Do not return "???" for variables which could not be evaluated.
14389 This error condition must be returned to the caller so that it
14390 can get the error condition from gdb.
14391 (cplus_name_of_child): Adjust index for vptr before figuring
14392 out the name of the child.
14393 (cplus_value_of_child): If a child's (real) parent is not valid,
14394 don't even bother trying to give a value for it. Just return
14395 an error. Change all instances in this function.
14396 (cplus_type_of_child): If our parent is one of the "fake"
14397 parents, we need to get at the type of the real parent, and
14398 derive the child's true type using this information.
14399
b76898ab
AC
144002002-01-13 Andrew Cagney <ac131313@redhat.com>
14401
14402 From 2002-01-09 John Marshall <johnm@falch.net>:
14403 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14404 sources.redhat.com, and tweak some related URLs which had
14405 suffered from linkrot.
14406
b6649e88
AC
144072002-01-13 Andrew Cagney <ac131313@redhat.com>
14408
14409 From Jeff law:
14410 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14411 structures passed in registers.
14412
82cc5033
EZ
144132002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14414
14415 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14416 white space which prevented compilation. Reported by DSK
14417 <dsk@student.unsw.edu.au>.
14418
ba5f2f8a
MS
144192002-01-11 Michael Snyder <msnyder@redhat.com>
14420
fbd35540
MS
14421 * symfile.c (build_section_addr_info_from_section_tab):
14422 Use bfd access method instead of manipulating bfd directly.
14423 (syms_from_objfile): Ditto.
14424 (simple_overlay_update_1): Ditto.
14425 (simple_overlay_update): Ditto.
14426 (generic_load): Ditto.
14427 (overlay_unmapped_address): FIXME comment, bfd access methods.
14428 (sections_overlap): FIXME comment, bfd access methods.
14429 (pc_in_mapped_range): FIXME comment, bfd access methods.
14430 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14431 (section_is_mapped): FIXME comment, bfd access methods.
14432 (section_is_overlay): FIXME comment, bfd access methods.
14433
ba5f2f8a
MS
14434 * symfile.c (generic_load): Whitespace and long line cleanups.
14435 Remove duplicate variable, change several local variables to
14436 more appropriate data types.
14437 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14438
17df2af6
AC
144392002-01-12 Andrew Cagney <ac131313@redhat.com>
14440
14441 From Peter Schauer:
14442 * language.c (longest_local_hex_string_custom): Use phex_nz to
14443 convert NUM to a hex string.
14444
ec920329
EZ
144452002-01-12 Elena Zannoni <ezannoni@redhat.com>
14446
14447 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14448 the function.
538a76d6 14449 Update Copyright year.
ec920329 14450
3abd2e01
AC
144512002-01-12 Andrew Cagney <ac131313@redhat.com>
14452
14453 * language.c (longest_raw_hex_string): Delete unused function.
14454
b21b22e0
PS
144552002-01-11 Petr Sorfa <petrs@caldera.com>
14456
14457 * MAINTAINERS (write-after-approval): Add myself.
14458 * dwarf2read.c (read_tag_string_type): Handling of
14459 DW_AT_byte_size.
14460 (read_tag_string_type): FORTRAN fix to prevent propagation of
14461 first string size.
14462 (set_cu_language): Handling of DW_LANG_Fortran95
14463
747fe712
RE
144642002-01-11 Richard Earnshaw <rearnsha@arm.com>
14465
14466 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14467 GETPID(inferior_ptid).
14468 (store_inferior_registers): Likewise.
14469
f1bea926
JM
144702002-01-10 Jason Merrill <jason@redhat.com>
14471
14472 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14473 Fix DW_OP_minus.
14474
ae940673
AC
144752002-01-10 Andrew Cagney <ac131313@redhat.com>
14476
14477 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14478 and bfd/elf32-sh-nbsd.c.
14479
00546b04
MS
144802002-01-10 Michael Snyder <msnyder@redhat.com>
14481
352ed7b4
MS
14482 * NEWS: Mention --pid and corefile/proc-id behavior change.
14483
c18be923
MS
14484 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14485 * gcore.c: Include cli/cli-decode.h instead of command.h.
14486
00546b04
MS
14487 * main.c (captured_main): Add new command line option "--pid".
14488 If the second command line argument (following the symbol-file)
14489 begins with a digit, try to attach to it before trying to open
14490 it as a corefile.
14491 (print_gdb_help): Document the "--pid" argument.
14492
db60ec62
EZ
144932002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14494
14495 * completer.c (command_completer): New function.
14496
14497 * completer.h <command_completer>: Add prototype.
14498
14499 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14500 completer for the "help" command.
14501
39c22d1a
JM
145022002-01-09 Jason Merrill <jason@redhat.com>
14503
14504 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14505
c564377f
MS
145062002-01-09 Michael Snyder <msnyder@redhat.com>
14507
975aec09
MS
14508 * i386-linux-nat.c (fill_fpxregset): Make global.
14509 (store_fpxregset): Ditto.
14510
db4a10fa
MS
14511 * gregset.h (gdb_fpxregset_t): Define.
14512 (supply_fpxregset): Prototype.
14513 (fill_fpxregset): Prototype.
14514
c564377f
MS
14515 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14516
c3d45d70
RE
145172002-01-09 Richard Earnshaw <rearnsha@arm.com>
14518
14519 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14520 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14521 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14522
fcc87af1
AC
145232002-01-09 Andrew Cagney <ac131313@redhat.com>
14524
14525 * MAINTAINERS: Update target maintainer rules so that any
14526 Maintainer can approve a tested patch for a maintenance-only
14527 target.
14528
dd96c05b
RE
145292002-01-09 Richard Earnshaw <rearnsha@arm.com>
14530
d4297db9 14531 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14532
d4297db9 14533 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14534 IN_SIGTRAMP.
14535
145fdc6e
MS
145362002-01-08 Michael Snyder <msnyder@redhat.com>
14537
14538 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14539 real name of the executable, rather than the /proc name.
14540
be4d1333
MS
145412002-01-03 Michael Snyder <msnyder@redhat.com>
14542
14543 Implement a "generate-core-file" command in gdb, save target state.
14544 * gcore.c: New file. Implement new command 'generate-core-file'.
14545 Save a corefile image of the current state of the inferior.
14546 * linux-proc.c: Add linux-specific code for saving corefiles.
14547 * target.h (struct target_ops): Add new target vectors for saving
14548 corefiles; to_find_memory_regions and to_make_corefile_notes.
14549 (target_find_memory_regions): New macro.
14550 (target_make_corefile_notes): New macro.
14551 * target.c (update_current_target): Inherit new target methods.
14552 (dummy_find_memory_regions): New place-holder method.
14553 (dummy_make_corefile_notes): New place-holder method.
14554 (init_dummy_target): Initialize new dummy target vectors.
14555 * exec.c (exec_set_find_memory_regions): New function.
14556 Allow the exec_ops vector for memory regions to be taken over.
14557 (exec_make_note_section): New function, target vector method.
14558 * defs.h (exec_set_find_memory_regions): Export prototype.
14559 * procfs.c (proc_find_memory_regions): New function, corefile method.
14560 (procfs_make_note_section): New function, corefile method.
14561 (init_procfs_ops): Set new target vector pointers.
14562 (find_memory_regions_callback): New function.
14563 (procfs_do_thread_registers): New function.
14564 (procfs_corefile_thread_callback): New function.
14565 * sol-thread.c (sol_find_memory_regions): New function.
14566 (sol_make_note_section): New function.
14567 (init_sol_thread_ops): Initialize new target vectors.
14568 * inftarg.c (inftarg_set_find_memory_regions): New function.
14569 Allow to_find_memory_regions vector to be taken over.
14570 (inftarg_set_make_corefile_notes): New function.
14571 Allow to_make_corefile_notes vector to be taken over.
14572 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14573 interface layer if not target_has_execution (may be a corefile).
14574 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14575 * config/sparc/sun4sol2.mh: Ditto.
14576 * config/alpha/alpha-linux.mh: Ditto.
14577 * config/arm/linux.mh: Ditto.
14578 * config/i386/x86-64linux.mh: Ditto.
14579 * config/ia64/linux.mh: Ditto.
14580 * config/m68k/linux.mh: Ditto.
14581 * config/mips/linux.mh: Ditto.
14582 * config/powerpc/linux.mh: Ditto.
14583 * config/sparc/linux.mh: Ditto.
14584
c6b92abd
MS
145852002-01-07 Michael Snyder <msnyder@redhat.com>
14586
14587 * arm-linux-nat.c: Remove references to regcache.c internal data
14588 (registers[] and register_valid[]).
14589
4b09dc8c
MS
145902002-01-07 Michael Snyder <msnyder@redhat.com>
14591
abf22e64
AJ
14592 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14593 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14594 symbol file and shlibs.
14595 * Makefile.in: Add rule for linux-proc.o.
14596 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14597 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14598 * config/arm/linux.mh: Ditto.
14599 * config/i386/linux.mh: Ditto.
14600 * config/i386/x86-64linux.mh: Ditto.
14601 * config/ia64/linux.mh: Ditto.
14602 * config/m68k/linux.mh: Ditto.
14603 * config/mips/linux.mh: Ditto.
14604 * config/powerpc/linux.mh: Ditto.
14605 * config/sparc/linux.mh: Ditto.
14606
c25b74ac
PM
146072002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14608
14609 * win32-nat.c: Add i386-tdep.h dependency.
14610
94cd915f
MS
146112002-01-07 Michael Snyder <msnyder@redhat.com>
14612
c7cccb76
MS
14613 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14614 instead of bfd_get_arch_size. Don't bail out just because
14615 there's no exec_bfd.
abf22e64 14616
34c0bd93
MS
14617 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14618 * p-valprint.c (pascal_object_print_value): Ditto.
14619 * somread.c (som_symtab_read): Ditto.
14620 * symfile.c (simple_free_overlay_region_table): Ditto.
14621 * valops.c (value_assign): Ditto.
14622
21c1c920
MS
14623 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14624 use tilde_expand and strerror for opening save-tracepoints file.
14625
5bbd998e
MS
14626 * thread-db.c (thread_db_new_objfile): Indendation fix.
14627
94cd915f
MS
14628 * infptrace.c (GDB_MAX_ALLOCA): New define.
14629 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14630 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14631 can be overridden with whatever value is appropriate to the host).
14632 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14633 alloca to allocate potentially large buffer.
14634 * rs6000-nat.c (child_xfer_memory): Ditto.
14635 * symm-nat.c (child_xfer_memory): Ditto.
14636 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14637
494e8a93
JSC
146382002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14639
14640 From Nick Clifton <nickc@redhat.com>
14641 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14642
d0e1d48e
MS
146432002-01-07 Michael Snyder <msnyder@redhat.com>
14644
abf22e64 14645 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14646 Don't use exec_bfd if it's NULL.
14647
290b2c7a
MK
146482002-01-06 Mark Kettenis <kettenis@gnu.org>
14649
abf22e64 14650 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14651
aef21287
AC
146522002-01-06 Andrew Cagney <ac131313@redhat.com>
14653
14654 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14655 * gnu-nat.c: Ditto.
14656
30efa627
AC
146572002-01-06 Andrew Cagney <ac131313@redhat.com>
14658
14659 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14660 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14661 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14662 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14663 z8k-coff have not been multi-arched. Update z8k-coff build
14664 status.
14665
9b4ff276
AC
146662002-01-06 Andrew Cagney <ac131313@redhat.com>
14667
14668 * MAINTAINERS: Mark a29k target as obsolete.
14669 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14670 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14671 comments.
14672 * NEWS: Note that a29k targets are obsolete.
14673 * a29k-tdep.c: Mark as obsolete.
14674 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14675 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14676 a29k-*-vxworks* targets as obsolete.
14677 * remote-adapt.c: Obsolete.
14678 * remote-eb.c: Obsolete.
14679 * remote-mm.c: Obsolete.
14680 * remote-udi.c: Obsolete.
14681 * config/a29k/a29k-udi.mt: Obsolete.
14682 * config/a29k/a29k.mt: Obsolete.
14683 * config/a29k/tm-a29k.h: Obsolete.
14684 * config/a29k/tm-vx29k.h: Obsolete.
14685 * config/a29k/vx29k.mt: Obsolete.
14686
a9011d31
AC
146872002-01-05 Andrew Cagney <ac131313@redhat.com>
14688
14689 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14690 with BFD_ENDIAN_BIG.
14691
9299404e
AC
146922002-01-05 Andrew Cagney <ac131313@redhat.com>
14693
14694 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14695 * configure, config.in: Re-generate.
14696 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14697 * defs.h: Do not include <endian.h>.
14698
7e89e357
JT
146992002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14700
14701 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14702 * config.in: Regenerate.
14703 * configure.in: Update copyright years.
14704 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14705 * configure: Regenerate.
14706 * i386bsd-nat.c: Update copyright years.
14707 (fill_gregset): Use regcache_collect.
14708 (fetch_inferior_registers): Only fetch integer registers
14709 if requested to do so. Add support for XMM registers
14710 using PT_GETXMMREGS.
14711 (store_inferior_registers): Only store integer registers
14712 if requested to do so. Add support for XMM registers
14713 using PT_SETXMMREGS.
14714 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14715 (store_inferior_registers): Remove.
14716 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14717 (fetch_elfcore_registers): New function.
14718 (i386nbsd_elfcore_fns): New.
14719 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14720 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14721 i386bsd-nat.o.
14722 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14723 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14724 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14725 * config/i386/tm-nbsd.h: Update copyright years.
14726 (HAVE_SSE_REGS): Define.
14727 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14728 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14729 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14730 (SIGCONTEXT_PC_OFFSET): Remove.
14731 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14732
a752853e
AC
147332002-01-05 Andrew Cagney <ac131313@redhat.com>
14734
14735 * configure.tgt: Remove powerpc-*-macos* target.
14736 * config/m68k/xm-mpw.h: Delete file.
14737 * config/xm-mpw.h: Delete file.
14738 * ser-mac.c: Delete file.
14739 * mpw-make.sed: Delete file.
14740 * mpw-config.in: Delete file.
14741 * mac-xdep.c: Delete file.
14742 * mac-gdb.r: Delete file.
14743 * mac-defs.h: Delete file.
14744 * mac-nat.c: Delete file.
14745 * config/powerpc/macos.mh: Delete file.
14746 * config/powerpc/macos.mt: Delete file.
14747 * config/powerpc/nm-macos.h: Delete file.
14748 * config/powerpc/tm-macos.h: Delete file.
14749 * source.c (openp, open_source_file): Remove obsolete code.
14750 * top.c (gdb_readline): Ditto.
14751 * utils.c (query): Ditto.
14752 * event-top.c (display_gdb_prompt): Ditto.
14753 * Makefile.in (ser-mac.o): Delete obsolete target.
14754 * NEWS: Update.
14755
d7449b42
AC
147562002-01-04 Andrew Cagney <ac131313@redhat.com>
14757
14758 * defs.h (BIG_ENDIAN): Delete macro definition.
14759 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14760 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14761 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14762 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14763 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14764 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14765 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14766 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14767 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14768 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14769 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14770 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14771 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14772 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14773 * gdbarch.c: Re-generate.
14774
356374e8
DJ
147752002-01-04 Daniel Jacobowitz <drow@mvista.com>
14776
14777 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14778 for core files.
14779
a2b8f8f8
JT
147802002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14781
14782 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14783
12466af9
AC
147842002-01-04 Andrew Cagney <ac131313@redhat.com>
14785
14786 * value.h (value_ptr): Delete typedef.
14787
3549ab40
JT
147882002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14789
14790 * i386nbsd-nat.c: Update copyright years.
14791 Include i386-tdep.h.
14792
fedbd091
EZ
147932002-01-04 Elena Zannoni <ezannoni@redhat.com>
14794
14795 * stabsread.c: Update copyright years.
14796
14797 From Debashis Mahata <debashis.mahata@wipro.com>:
14798 (read_struct_fields): Deal with Sun C compiler erroneous stab
14799 output for structs and unions.
fec8b34f 14800 Fix PR gdb/269.
fedbd091 14801
eb43544b
DJ
148022002-01-04 Daniel Jacobowitz <drow@mvista.com>
14803
14804 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14805 prototype.
14806
1514d34e
DJ
148072002-01-04 Daniel Jacobowitz <drow@mvista.com>
14808
14809 * cp-abi.c: Fix whitespace.
14810 (baseclass_offset): New wrapper function.
14811 * cp-abi.h (baseclass_offset): Add prototype.
14812 (struct cp_abi_ops): Add baseclass_offset pointer.
14813
14814 * valops.c (vb_match): Move to...
14815 * gnu-v2-abi.c (vb_match): here.
14816 * valops.c (baseclass_offset): Move to...
14817 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14818
14819 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14820
14821 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14822 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14823 * hpacc-abi.c (init_hpacc_ops): Likewise.
14824
7f8c9282
DJ
148252002-01-04 Daniel Jacobowitz <drow@mvista.com>
14826
14827 * valops.c (find_overload_match): Accept obj as a
14828 reference parameter. Update it before returning.
14829 * value.h (find_overload_match): Update prototype.
14830 * eval.c (evaluate_subexp_standard): Pass object to
14831 find_overload_match by reference.
14832
f23631e4
AC
148332002-01-03 Andrew Cagney <ac131313@redhat.com>
14834
14835 * valarith.c: Replace value_ptr with struct value pointer. Remove
14836 register attribute from value declarations.
14837 * valops.c: Ditto.
14838 * value.h: Ditto.
14839 * scm-lang.c (scm_lookup_name): Ditto.
14840
79e10fab 148412002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14842
79e10fab
AC
14843 Abstract the functionality of iterating over mapped memory
14844 regions into a general purpose iterator function.
abf22e64 14845 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14846 iterator for memory sections.
14847 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14848 (solib_mappings_callback): New function, callback for above.
14849 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14850 (info_mappings_callback): New function, callback for above.
14851
14852 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14853
c5ad026a
MK
148542002-01-01 Mark Kettenis <kettenis@gnu.org>
14855
d2a7c97a
MK
14856 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14857 * i386-tdep.c: Include "elf-bfd.h".
14858 (process_note_abi_tag_sections): New function.
14859 (i386_gdbarch_init): Add code to recognize various OS/ABI
14860 combinations.
14861
c5ad026a
MK
14862 * maint.c (_initialize_maint_cmds): Add missing \ in
14863 string-literal.
14864
a1a5b71e 14865For older changes see ChangeLog-2001
c906108c
SS
14866\f
14867Local Variables:
14868mode: change-log
14869left-margin: 8
14870fill-column: 74
14871version-control: never
14872End:
This page took 1.011101 seconds and 4 git commands to generate.