* readelf.c (main): Reset dump request after each file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2213a65d
MK
12002-12-21 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.h (x86_64_init_abi): New prototype.
4 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
5 (x86_64_init_abi): Make non-static. Set number of pseudo
6 registers to 0.
7 (x86_64_gdbarch_init): Remove function.
8 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
9 Remove code dealing with dissambly.
10 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
11 (_initialize_x86_64_linux_tdep): New function.
12 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
13 i386-tdep.o.
14
05816f70
MK
152002-12-14 Mark Kettenis <kettenis@gnu.org>
16
17 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
18 (struct gdb_osabi_handler): Remove member `arch'. Add member
19 `arch_info'.
20 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
21 construct a `struct bfd_arch_info' and store it in the `struct
22 gdb_osabi_handler' that is created.
23 (gdbarch_init_osabi): Check for compatibility based on machine
24 type and architecture.
25 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
26 comment.
27 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
28 second argument in call to gdbarch_register_osabi.
29 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
30 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
31 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
32 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
33 * arm-tdep.c (_initialize_arm_tdep): Likewise.
34 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
35 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
36 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
37 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
38 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
39 * i386-tdep.c (_initialize_i386_tdep): Likewise.
40 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
41 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
42 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
43 _initialize_i386bsd_tdep and updated likewise.
44 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
45 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
46 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
47 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
48 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
49 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
50 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
51 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
52 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
53 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
54
743b930b
KB
552002-12-20 Kevin Buettner <kevinb@redhat.com>
56
57 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
58 DT_MIPS_RLD_MAP case for 64-bit targets.
59
3758ac48
KB
602002-12-20 Kevin Buettner <kevinb@redhat.com>
61
62 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
63 ``temp_saved_regs'', not the pointer or other storage contiguous
64 to this pointer.
65
19ed69dd
KB
662002-12-20 Kevin Buettner <kevinb@redhat.com>
67
68 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
69 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
70 (mips_linux_get_longjmp_target): Delete declarations.
71 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
72 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
73 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
74 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
75 (mips_linux_get_longjmp_target)
76 (mips_linux_svr4_fetch_link_map_offsets): Make static.
77 (mips_linux_init_abi): New function.
78 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
79
7990a578
EZ
802002-12-19 Keith Seitz <keiths@redhat.com>
81
82 patch committed by Elena Zannoni <ezannoni@redhat.com>
83 * thread.c (do_captured_list_thread_ids): Call prune_threads and
84 target_find_new_threads. Fix for PR mi/669.
85
84fba31b
DC
862002-12-19 David Carlton <carlton@math.stanford.edu>
87
88 * linespec.c (decode_line_1): Move code into decode_all_digits.
89 (decode_all_digits): New function.
90
2fc70c99
KB
912002-12-19 Kevin Buettner <kevinb@redhat.com>
92
93 * exec.c (print_section_info): Select a format string to use with
94 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
95
2f107107
AC
962002-12-18 Andrew Cagney <ac131313@redhat.com>
97
98 * frame.c (deprecated_update_current_frame_pc_hack): Replace
99 deprecated_update_current_frame_pc_hack.
100 (deprecated_update_frame_base_hack): New function.
101 * frame.h (deprecated_update_frame_pc_hack): Replace
102 (deprecated_update_frame_base_hack): Declare.
103 * infrun.c (normal_stop): Update.
104
c9012c71
AC
1052002-12-18 Andrew Cagney <ac131313@redhat.com>
106
107 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
108 frame_extra_info_zalloc.
109 (rs6000_frame_args_address): Use get_frame_extra_info.
110 (frame_get_saved_regs): Use get_frame_saved_regs.
111 (frame_initial_stack_address): Use get_frame_saved_regs and
112 get_frame_extra_info.
113 (frame_initial_stack_address): Use get_frame_extra_info.
114
6819ae38
KB
1152002-12-17 Kevin Buettner <kevinb@redhat.com>
116
117 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
118 array size.
119 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
120 checks for r3900_regnames[].
121
625602f2
RE
1222002-12-17 Richard Earnshaw <rearnsha@arm.com>
123
124 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
125 All uses changed
126 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
127
38d49aff
DC
1282002-12-17 David Carlton <carlton@math.stanford.edu>
129
130 * symtab.c (lookup_partial_symbol): Don't search past the end of
131 the partial symbols.
132
30f7db39
AC
1332002-12-17 Andrew Cagney <ac131313@redhat.com>
134
135 * stack.c (frame_info): Use get_frame_saved_regs.
136 * breakpoint.c (until_break_command): Use get_frame_pc.
137
23136709
KB
1382002-12-16 Kevin Buettner <kevinb@redhat.com>
139
140 * buildsym.c (block_end_complaint, anon_block_end_complaint)
141 (innerblock_complaint, innerblock_anon_complaint)
142 (blockvector_complaint): Delete deprecated complaint structs.
143 (finish_block, make_blockvector, end_symtab): Replace calls
144 to complain() with calls to complaint().
145 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
146 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
147 (unexpected_type_complaint, bad_sclass_complaint)
148 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
149 Delete deprecated complaint structs.
150 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
151 Replace calls to complain() with calls to complaint().
152 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
153 (unknown_symtype_complaint, unknown_symchar_complaint)
154 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
155 (lbrac_mismatch_complaint, repeated_header_complaint)
156 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
157 Delete deprecated complaint structs.
158 (unknown_symtype_complaint, lbrac_mismatch_complaint)
159 (repeated_header_complaint)
160 (function_outside_compiliation_unit_complaint): New functions.
161 (add_old_header_file, find_corresponding_bincl_psymtab)
162 (set_namestring, find_stab_function_addr, read_dbx_symtab)
163 (process_one_symbol): Replace calls to complain() with, possibly
164 indirect, calls to complaint().
165 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
166 (unknown_attribute_form, unknown_attribute_length)
167 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
168 (const_ignored, botched_modified_type, op_deref2, op_deref4)
169 (basereg_not_handled, dup_user_type_allocation)
170 (dup_user_type_definition, missing_tag, bad_array_element_type)
171 (subscript_data_items, unhandled_array_subscript_format)
172 (unknown_array_subscript_format, not_row_major)
173 (missing_at_name): Delete deprecated complaint structs.
174 (bad_die_ref_complaint, unknown_attribute_form_complaint)
175 (dup_user_type_definition_complaint)
176 (bad_array_element_type_complaint): New functions.
177 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
178 (decode_subscript_data_item, dwarf_read_array_type)
179 (read_tag_string_type, read_subroutine_type, read_func_scope)
180 (locval, scan_partial_symbols, decode_modified_type)
181 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
182 (attribute_size): Replace calls to complain() with, possibly
183 indirect, calls to complaint().
184 * elfread.c (section_info_complaint, section_info_dup_complaint)
185 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
186 Delete deprecated complaint structs.
187 (elf_symtab_read, elfstab_offset_sections): Replace calls to
188 complain() with calls to complaint().
189 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
190 struct.
191 (stub_noname_complaint): New function.
192 (check_typedef, add_mangled_type): Replace calls to complain()
193 with calls to complaint().
194 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
195 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
196 (hpread_unhandled_type_complaint, hpread_struct_complaint)
197 (hpread_array_complaint, hpread_type_lookup_complaint)
198 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
199 (hpread_unhandled_common_complaint)
200 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
201 struct definitions and declarations.
202 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
203 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
204 Replace calls to complain() with, possibly indirect, calls to
205 complaint().
206 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
207 Likewise.
208 * mdebugread.c (bad_file_number_complaint, index_complaint)
209 (aux_index_complaint, block_index_complaint)
210 (unknown_ext_complaint, unknown_sym_complaint)
211 (unknown_st_complaint, block_overflow_complaint)
212 (basic_type_complaint, unknown_type_qual_complaint)
213 (array_index_type_complaint, bad_tag_guess_complaint)
214 (block_member_complaint, stEnd_complaint)
215 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
216 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
217 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
218 (bad_continued_complaint, bad_rfd_entry_complaint)
219 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
220 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
221 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
222 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
223 complaint structs.
224 (index_complaint, unknown_ext_complaint, basic_type_complaint)
225 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
226 (unexpected_type_code_complaint)
227 (function_outside_compilation_unit_complaint): New functions.
228 (parse_symbol, parse_type, upgrade_type, parse_procedure)
229 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
230 Replace calls to complain() with, possibly indirect calls to
231 complaint().
232 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
233 Delete deprecated complaint structs.
234 (lookup__objc_class, lookup_child_selector): Replace complain()
235 with complaint().
236 * remote-vx.c (cant_contact_target): Delete deprecated complaint
237 struct.
238 (vx_lookup_symbol): Replace complain() with complaint().
239 * stabsread.c (invalid_cpp_abbrev_complaint)
240 (invalid_cpp_type_complaint, member_fn_complaint)
241 (const_vol_complaint, error_type_complaint)
242 (invalid_member_complaint, range_type_base_complaint)
243 (reg_value_complaint, vtbl_notfound_complaint)
244 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
245 (unresolved_sym_chain_complaint, stabs_general_complaint)
246 (lrs_general_complaint, multiply_defined_struct): Delete
247 deprecated complaint structs.
248 (invalid_cpp_abbrev_complaint, ref_value_complaint)
249 (stabs_general_complaint, lrs_general_complaint)
250 (msg_unknown_complaint): New functions.
251 (dbx_lookup_type, read_cfront_baseclasses)
252 (read_cfront_member_functions, resolve_symbol_reference)
253 (define_symbol, resolve_live_range, add_live_range, read_type)
254 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
255 (read_one_struct_field, read_baseclasses, read_tilde_fields)
256 (read_cfront_static_fields, attach_fields_to_type)
257 (complain_about_struct_wipeout, read_range_type)
258 (common_block_start, common_block_end, cleanup_undefined_types)
259 (scan_file_globals): Replace complain() with complaint().
260 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
261 Delete deprecated complaint struct declarations.
262 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
263 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
264 (bf_not_found_complaint, ef_complaint, eb_complaint)
265 (function_outside_compilation_unit_complaint): New functions.
266 (record_include_begin, record_include_end, enter_line_range)
267 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
268 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
269 complain() with complaint().
270
1a14e234
AC
2712002-12-16 Andrew Cagney <ac131313@redhat.com>
272
273 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
274 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
275 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
276 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
277 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
278 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
279 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
280 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
281 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
282 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
283 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
284 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
285 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
286 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
287 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
288 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
289 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
290 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
291 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
292 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
293 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
294 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
295 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
296 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
297 * config/m88k/xm-dgux.h: Delete.
298 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
299 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
300 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
301 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
302 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
303 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
304 * ch-valprint.c: Delete.
305
04e68871
DJ
3062002-12-15 Daniel Jacobowitz <drow@mvista.com>
307
308 * infrun.c (handle_inferior_event): Rearrange code to resume if
309 no catchpoint triggers for an event.
310
deb3b17b
DJ
3112002-12-15 Daniel Jacobowitz <drow@mvista.com>
312
313 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
314 and TARGET_WAITKIND_VFORKED cases.
315
675bf4cb
DJ
3162002-12-15 Daniel Jacobowitz <drow@mvista.com>
317
318 * infrun.c (handle_inferior_event): Assume that catchpoints
319 are not affected by DECR_PC_AFTER_BREAK.
320
81e56179
DJ
3212002-12-15 Daniel Jacobowitz <drow@mvista.com>
322
323 * target.c (update_current_target): Don't inherit DONT_USE.
324 * target.h (struct target_ops): Remove DONT_USE.
325 (target_next): Remove macro.
326
a3edc55b
MK
3272002-12-15 Mark Kettenis <kettenis@gnu.org>
328
329 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
330
b508a996
RE
3312002-12-14 Richard Earnshaw <rearnsha@arm.com>
332
333 * arm-tdep.c (convert_from_extended): New argument to hold the
334 type of floating point result we want to convert to. Make input
335 argument const. Fix all callers.
336 (convert_to_extended): Similarly.
337 (arm_extract_return_value): Now takes a regcache argument. Change
338 code to use regcache accessor functions. Correctly extract
339 smaller-than-word results on big-endian machines.
340 (arm_store_return_value): Now takes a regcache argument. Change
341 code to use regcache accessor functions. Correctly zero/sign extend
342 smaller than word results before storing into r0.
343 (arm_gdbarch_init): Register new-style extract_return_value and
344 store_return_value functions.
345
3197744f
MS
3462002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
347
348 * thread-db.c (thread_from_lwp): Uniquify error msg.
349 (lwp_from_thread): Ditto.
350 (check_event): Ditto.
351 (find_new_threads_callback): Ditto.
352 (thread_db_pid_to_str): Ditto.
353
6baff1d2
AC
3542002-12-13 Andrew Cagney <ac131313@redhat.com>
355
356 * frame.h (get_frame_saved_regs): Declare.
357 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
358 pointer.
359 * frame.c (get_frame_saved_regs): New function.
360 (frame_saved_regs_zalloc): Return the allocated saved_regs.
361
b87efeee
AC
3622002-12-13 Andrew Cagney <ac131313@redhat.com>
363
364 * frame.c (deprecated_update_current_frame_pc_hack): New
365 function.
366 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
367 * infrun.c (normal_stop): Use said function instead of directly
368 modifying the frame's PC.
369
3de2dc4f
AO
3702002-12-13 Alexandre Oliva <aoliva@redhat.com>
371
372 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
373
fe29b929
KB
3742002-12-13 Kevin Buettner <kevinb@redhat.com>
375
376 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
377 config/mips/tm-irix6.h (NUM_REGS): Delete.
378 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
379 (temp_saved_regs): Declare as a pointer rather than an array.
380 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
381 that ``temp_saved_regs'' has storage allocated to it and that
382 it's the correct size.
383
c04e0a08
JJ
3842002-12-13 Jeff Johnston <jjohnstn@redhat.com>
385
386 * defs.h (init_last_source_visited): New prototype.
387 (add_path): Ditto.
388 * source.c (add_path): New function that adds to a specified path.
389 (mod_path): Change to call add_path.
390 (init_last_source_visited): New function to allow interfaces to
391 initialize static variable: last_source_visited. Part of fix
392 for PR gdb/741.
393 * Makefile.in: Add support for mi/mi-cmd-env.c.
394
c689142b
AC
3952002-12-13 Andrew Cagney <ac131313@redhat.com>
396
397 * frame.h (frame_id_unwind): Declare.
398 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
399 id_unwind_cache.
400 (frame_id_unwind_ftype): Declare.
401 * frame.c (frame_id_unwind): New function.
402 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
403 (create_new_frame, get_prev_frame): Pass id_unwind to
404 set_unwind_by_pc.
405 (frame_saved_regs_id_unwind): New function.
406 (frame_saved_regs_id_unwind): New function.
407 * dummy-frame.c (dummy_frame_id_unwind): New function.
408 (struct dummy_frame): Add field id.
409 (generic_push_dummy_frame): Initialize `id'.
410 * dummy-frame.h (dummy_frame_id_unwind): Declare.
411
18ea5ba4
AC
4122002-12-13 Andrew Cagney <ac131313@redhat.com>
413
414 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
415 pass that to set_momentary_breakpoint. Move comments to where they
416 belong.
417 * frame.h (set_current_frame): Delete declaration.
418 * frame.c (set_current_frame): Delete function.
419
2c517d0e
AC
4202002-12-13 Andrew Cagney <ac131313@redhat.com>
421
422 * frame.c (frame_extra_info_zalloc): New function.
423 * frame.h (frame_extra_info_zalloc): Declare.
424
516b1f28
JB
4252002-12-13 Joel Brobecker <brobecker@gnat.com>
426
427 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
428 in the previous prototype change to set_momentary_breakpoint.
429
fbb265fc
DJ
4302002-12-12 Daniel Jacobowitz <drow@mvista.com>
431
432 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
433 and saw_child_exec.
434 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
435 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
436 (stop_stepping): Remove outdated check for child vfork events.
437
4fd7f624
AC
4382002-12-12 Andrew Cagney <ac131313@redhat.com>
439
440 * GDB 5.3 released from gdb_5_3-branch.
441
4c9ba7e0
DJ
4422002-12-11 Daniel Jacobowitz <drow@mvista.com>
443
444 * corelow.c (init_core_ops): Delete references to to_require_attach
445 and to_require_detach.
446 * exec.c (init_exec_ops): Likewise.
447 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
448 hppa_require_detach directly.
449 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
450 * inftarg.c (child_detach): Remove.
451 (child_detach_from_process): Rename to child_detach, remove
452 after_fork argument.
453 (child_attach): Remove.
454 (child_attach_to_process): Rename to child_attach, remove after_fork
455 argument.
456 (init_child_ops): Delete references to to_require_attach
457 and to_require_detach.
458 * infttrace.c (hppa_require_attach): Update comment.
459 * target.c (cleanup_target, update_current_target)
460 (init_dummy_target, setup_target_debug): Delete references to
461 to_require_attach and to_require_detach.
462 (find_default_require_detach, find_default_require_attach)
463 (debug_to_require_attach, debug_to_require_detach): Remove
464 functions.
465 * target.h (struct target_ops): Remove to_require_attach
466 and to_require_detach.
467 (target_require_attach, target_require_detach): Delete macros.
468 (find_default_require_detach, find_default_require_attach): Delete
469 prototypes.
470 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
471
0394eb2a
AC
4722002-12-11 Andrew Cagney <ac131313@redhat.com>
473
474 * frame.c (get_frame_extra_info): New function.
475 * frame.h (get_frame_extra_info): Declare.
476
818dd999
AC
4772002-12-11 Andrew Cagney <ac131313@redhat.com>
478
479 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
480 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
481 with `struct frame_id'.
482 (set_longjmp_resume_breakpoint): Ditto.
483 * infrun.c (handle_inferior_event): Update.
484 * breakpoint.c (watch_command_1, until_break_command): Update.
485 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
486 (handle_inferior_event, step_over_function): Update.
487 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
488 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
489 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
490 * infcmd.c (finish_command, run_stack_dummy): Update.
491
4d3c2250
KB
4922002-12-11 Kevin Buettner <kevinb@redhat.com>
493
494 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
495 (dwarf2_non_const_array_bound_ignored)
496 (dwarf2_missing_line_number_section)
497 (dwarf2_statement_list_fits_in_line_number_section)
498 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
499 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
500 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
501 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
502 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
503 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
504 (dwarf2_missing_member_fn_type_complaint)
505 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
506 (dwarf2_const_value_length_mismatch)
507 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
508 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
509 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
510 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
511 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
512 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
513 complaints using deprecated struct..
514 (dwarf2_non_const_array_bound_ignored_complaint)
515 (dwarf2_complex_location_expr_complaint)
516 (dwarf2_unsupported_at_frame_base_complaint)
517 (dwarf2_const_value_length_mismatch_complaint)
518 (dwarf2_macros_too_long_complaint)
519 (dwarf2_macro_malformed_definition_complaint)
520 (dwarf2_invalid_attrib_class_complaint): New functions.
521 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
522 (read_structure_scope, read_array_type, read_common_block)
523 (read_tag_pointer_type, read_base_type, read_partial_die)
524 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
525 (new_symbol, dwarf2_const_value, read_type_die)
526 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
527 (parse_macro_definition, dwarf_decode_macros): Replace calls to
528 complain() with, possibly indirect, calls to complaint().
529
95486978
AC
5302002-12-11 Andrew Cagney <cagney@redhat.com>
531
532 * frame.c (deprecated_get_frame_saved_regs): Rename
533 get_frame_saved_regs.
534 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
535 * sparc-tdep.c: Update.
536 * hppa-tdep.c: Update.
537 * h8500-tdep.c: Update.
538
321432c0
KB
5392002-12-11 Kevin Buettner <kevinb@redhat.com>
540
541 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
542 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
543 ``char *'' for return and parameter types.
544 * gdbarch.h, gdbarch.c: Regenerate.
545 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
546 return type from ``char *'' to ``const char *''.
547 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
548 const.
549
5a4d6ff4
MK
5502002-12-11 Mark Kettenis <kettenis@gnu.org>
551
552 * i386-tdep.c: Include "dummy-frame.h".
553 (i386_frame_chain, i386_frame_saved_pc): Replace
554 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
555 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
556
a5afb99f
AC
5572002-12-10 Andrew Cagney <cagney@redhat.com>
558
559 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
560 Change to a function with predicate.
561 * gdbarch.h, gdbarch.c: Re-generate.
562 * frame.c (get_prev_frame): Update. Test
563 DEPRECATED_INIT_FRAME_PC_P.
564 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
565 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
566 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
567 * alpha-tdep.c (alpha_gdbarch_init): Update.
568 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
569 * mips-tdep.c (mips_gdbarch_init): Update.
570 * i386-interix-tdep.c (i386_interix_init_abi): Update.
571 * arm-tdep.c: Update comments.
572 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
573 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
574 * frv-tdep.c (frv_gdbarch_init): Ditto.
575 * x86-64-tdep.c (x86_64_init_abi): Ditto.
576 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
577 * s390-tdep.c (s390_gdbarch_init): Ditto.
578 * v850-tdep.c (v850_gdbarch_init): Ditto.
579 * vax-tdep.c (vax_gdbarch_init): Ditto.
580 * sh-tdep.c (sh_gdbarch_init): Ditto.
581 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
583 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
585 * i386-tdep.c (i386_gdbarch_init): Ditto.
586 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
587 * cris-tdep.c (cris_gdbarch_init): Ditto.
588 * avr-tdep.c (avr_gdbarch_init): Ditto.
589 * arm-tdep.c (arm_gdbarch_init): Ditto.
590 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
591 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
592
6604731b
DJ
5932002-12-10 Daniel Jacobowitz <drow@mvista.com>
594
595 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
596 CHILD_FOLLOW_FORK.
597 * hppah-nat.c (saved_vfork_pid): Add.
598 (child_post_follow_vfork): Remove.
599 (child_follow_fork): New function.
600 (child_wait): Call detach_breakpoints after receiving the child vfork.
601 Call child_resume directly instead of going through resume ().
602 Make sure we have the exec before reporting the vfork.
603 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
604 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
605 (follow_fork): New function. Call target_follow_fork.
606 (follow_inferior_reset_breakpoints): New function broken out from
607 old follow_inferior_fork.
608 (resume): Remove hack to follow exec after vfork.
609 * inftarg.c (child_post_follow_vfork): Remove.
610 (child_follow_fork): New function.
611 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
612 * target.c (cleanup_target): Replace to_post_follow_vfork with
613 to_follow_fork.
614 (update_current_target): Likewise.
615 (setup_target_debug): Likewise.
616 (debug_to_post_follow_vfork): Remove.
617 (debug_to_follow_fork): New function.
618 * target.h (struct target_ops): Replace to_post_folow_vfork with
619 to_follow_fork.
620 (child_post_follow_vfork): Remove prototype.
621 (child_follow_fork): Add prototype.
622 (target_post_follow_vfork): Remove macro.
623 (target_follow_fork): Add macro.
624
7d2830a3
DJ
6252002-12-10 Daniel Jacobowitz <drow@mvista.com>
626
627 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
628 (child_post_follow_vfork): Cancel pending exec event if we follow
629 the parent.
630 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
631 events have been processed. Return a fake TARGET_WAITKIND_EXECD
632 event at the following wait call if necessary.
633 * infrun.c (follow_vfork): Don't follow_exec here.
634 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
635 case about HP/UX 10.20. Remove code pushed down to
636 hppah-nat.c:child_wait.
637 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
638 vfork_in_flight is set.
639
6402002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
641
642 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
643 for the parent's fork event.
644 * infrun.c (handle_inferior_event): Only expect one fork event.
645 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
646 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
647
50631d4f
AC
6482002-12-10 Andrew Cagney <ac131313@redhat.com>
649
bc124bd3
AC
650 * PROBLEMS: Delete reference to PR gdb/725.
651
50631d4f
AC
652 * MAINTAINERS (gdb.c++): Add David Carlton.
653
808013d1
DC
6542002-12-09 David Carlton <carlton@math.stanford.edu>
655
656 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
657 * cli/cli-cmds.c: Ditto.
658
31deffe5
AC
6592002-12-09 Andrew Cagney <cagney@redhat.com>
660
6cbda714
AC
661 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
662 function address in <>.
31deffe5
AC
663 * gdbarch.c: Re-generate.
664
2692ddb3
DC
6652002-12-09 David Carlton <carlton@math.stanford.edu>
666
667 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
668
f3c39e76
DC
6692002-12-09 David Carlton <carlton@math.stanford.edu>
670
671 * linespec.c (symtab_from_filename): New function.
672 (decode_line_1): Move code into symtab_from_filename.
673
1b84163e
KB
6742002-12-09 Kevin Buettner <kevinb@redhat.com>
675
676 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
677
bdd78e62
AC
6782002-12-07 Andrew Cagney <ac131313@redhat.com>
679
680 * f-valprint.c (info_common_command): Use get_frame_pc.
681 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
682 * ax-gdb.c (agent_command): Ditto.
683 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
684 (rs6000_pop_frame): Ditto.
685 (rs6000_frameless_function_invocation): Ditto.
686 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
687 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
688 * macroscope.c (default_macro_scope): Ditto.
689 * stack.c (print_frame_info_base): Ditto.
690 (print_frame, frame_info, print_frame_label_vars): Ditto.
691 (return_command, func_command, get_frame_language): Ditto.
692 * infcmd.c (finish_command): Ditto.
693 * dummy-frame.c (cached_find_dummy_frame): Ditto.
694 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
695 (break_at_finish_at_depth_command_1): Ditto.
696 (break_at_finish_command_1): Ditto.
697 (until_break_command, get_catch_sals): Ditto.
698 * blockframe.c (func_frame_chain_valid): Ditto.
699 (frameless_look_for_prologue): Ditto.
700 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
701
408400e7
AC
7022002-12-08 Andrew Cagney <ac131313@redhat.com>
703
704 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
705 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
706
97f46953
AC
7072002-12-08 Andrew Cagney <ac131313@redhat.com>
708
709 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
710 to pure functions.
711 * gdbarch.h, gdbarch.c: Re-generate.
712 * frame.c (get_prev_frame): Explictly assign prev's pc with value
713 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
714
715 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
716 declaration to a function returning a CORE_ADDR.
717 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
718 * arch-utils.c (init_frame_pc_noop): Return the PC value.
719 (init_frame_pc_default): Ditto.
720 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
721 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
722 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
723 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
724 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
725 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
726
727 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
728 to init_frame_pc_noop.
729 (i386_interix_init_frame_pc): Delete function.
730 * z8k-tdep.c (init_frame_pc): Delete function.
731 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
732 (INIT_FRAME_PC_FIRST): Ditto.
733 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
734 (INIT_FRAME_PC_FIRST): Ditto.
735 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
736 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
737 init_frame_pc_noop.
738 (INIT_FRAME_PC_FIRST): Convert to an expression.
739 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
740
8b36eed8
AC
7412002-12-08 Andrew Cagney <ac131313@redhat.com>
742
743 * blockframe.c: Use get_frame_base instead of directly accessing
744 the `struct frame_info' member frame.
745 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
746 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
747
aeeccc89
EZ
7482002-12-08 Elena Zannoni <ezannoni@redhat.com>
749
750 * Makefile.in (readline_h): Define.
751 (completer.o): Depend on readline_h.
752 (corelow.o): Ditto.
753 (event-top.o): Ditto.
754 (exec.o): Ditto.
755 (solib.o): Ditto.
756 (source.o): Ditto.
757 (symfile.o): Ditto.
758 (symmisc.o): Ditto.
759 (top.o): Ditto.
760 (tracepoint.o): Ditto.
761 (utils.o): Ditto.
762 (cli-dump.o): Ditto.
763 (tui-hooks.o): Ditto.
764 (tuiWin.o): Ditto.
765
38017ce8
EZ
7662002-12-08 Elena Zannoni <ezannoni@redhat.com>
767
768 More cleanup from import of readline 4.3.
769 * completer.h (complete_line, readline_line_completion_function):
770 Update prototypes.
771 (line_completion_function): Removed, not used outside of completer.c.
772 * completer.c (readline_line_completion_function,
773 complete_function, line_completion_function): Use const for first
774 parameter.
775 (line_completion_function): Make static.
776 (filename_completer): filename_completion_function is now called
777 rl_filename_completion_function
778 * corelow.c: Include <readline/readline.h>.
779 * exec.c: Ditto.
780 * solib.c: Ditto.
781 * source.c: Ditto.
782 * symfile.c: Ditto.
783 * symmisc.c: Ditto.
784 * top.c (init_main): No need to coerce
785 readline_line_completion_function anymore.
786 * cli/cli-dump.c: Include <readline/readline.h>.
787
75e3c1f9
AC
7882002-12-08 Andrew Cagney <ac131313@redhat.com>
789
790 * stack.c (frame_info): Use get_prev_frame.
791 * blockframe.c (frame_address_in_block): Ditto.
792 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
793 (rs6000_frameless_function_invocation): Ditto.
794 (rs6000_frame_saved_pc): Ditto.
795 (rs6000_frame_chain): Ditto.
796 * arch-utils.c (init_frame_pc_default): Ditto.
797
0d2b8049
AC
7982002-12-08 Andrew Cagney <ac131313@redhat.com>
799
800 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
801 Delete redundant definition.
802
9255ee31
EZ
8032002-12-08 Elena Zannoni <ezannoni@redhat.com>
804
805 Import of readline 4.3:
806 * cli/cli-cmds.c: Include readline/tilde.h.
807 * cli/cli-setshow.c: Ditto.
808 * defs.h: Don't declare tilde_expand anymore, since readline
809 exports it.
810
3442dad6 8112002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
812
813 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
814 -Werror on this file.
815
52f87c51
AC
8162002-12-07 Andrew Cagney <ac131313@redhat.com>
817
818 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
819 the format name.
820 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
821 * gdbarch.c: Regenerate.
822
2ca6c561
AC
8232002-12-06 Andrew Cagney <ac131313@redhat.com>
824
825 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
826 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
827 provide a default value.
828 * gdbarch.h, gdbarch.c: Regenerate.
829 * frame.c (get_prev_frame): Update. Check
830 DEPRECATED_INIT_FRAME_PC_FIRST_P.
831 * s390-tdep.c (s390_gdbarch_init): Update.
832 * mips-tdep.c (mips_gdbarch_init): Update.
833 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
834 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
835 * alpha-tdep.c (alpha_gdbarch_init): Update.
836
e162d11b
EZ
8372002-12-06 Elena Zannoni <ezannoni@redhat.com>
838
839 * ia64-linux-nat.c: Include gdb_string.h.
840 * alpha-nat.c: Ditto.
2b298b5d
EZ
841 * ppc-linux-nat.c: Ditto.
842 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
843 Update dependencies.
e162d11b 844
aa0cd9c1
AC
8452002-12-05 Andrew Cagney <ac131313@redhat.com>
846
847 * gdbthread.h: Include "frame.h".
848 (struct thread_info): Replace step_frame_address with
849 step_frame_id.
850 * inferior.h: Include "frame.h".
851 (step_frame_id): Replace external variable step_frame_address.
852 * gdbthread.h (save_infrun_state): Replace step_frame_address
853 parameter with step_frame_id parameter.
854 (load_infrun_state): Ditto.
855 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
856 * infcmd.c (step_frame_id, step_1, step_once): Update.
857 * thread.c (load_infrun_state, save_infrun_state): Update.
858 * infrun.c (clear_proceed_status, save_inferior_status): Update.
859 (handle_inferior_event, step_over_function): Update.
860 (normal_stop, context_switch, restore_inferior_status): Update.
861 (struct inferior_status): Replace step_frame_address with
862 step_frame_id.
863
a9a9bd0f
DC
8642002-12-05 David Carlton <carlton@math.stanford.edu>
865
866 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
867 DW_TAG_member as well as a declaration as being a C++ static data
868 member.
869 (read_structure_scope): Combine tests for DW_TAG_member and
870 DW_TAG_variable.
871
614b3b14
DC
8722002-12-05 David Carlton <carlton@math.stanford.edu>
873
874 * linespec.c (decode_compound): New function.
875 (decode_line_1): Move code into decode_compound.
876
e4051eeb
DC
8772002-12-05 David Carlton <carlton@math.stanford.edu>
878
879 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
880 argument.
881 (lookup_symbol_aux): Do the 'field_of_this' check before checking
882 the static block. See PR gdb/804.
883
f61e8913
DC
8842002-12-05 David Carlton <carlton@math.stanford.edu>
885
886 * symtab.c (lookup_symbol_aux_block): New function.
887 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
888
1e9f55d0
AC
8892002-12-05 Andrew Cagney <ac131313@redhat.com>
890
891 * gdbarch.sh: Dump the predicate function and macro values.
892 (read): Print error on standard error.
893 * gdbarch.c: Regenerate.
894
d1973055
KB
8952002-12-04 Kevin Buettner <kevinb@redhat.com>
896
897 * Makefile.in (mips_tdep_h): Define.
898 (mips-tdep.o): Add mips_tdep_h to dependency list.
899 * mips-tdep.h: New file.
900 * mips-tdep.c (mips-tdep.h): Include.
901 (enum mips_abi): Move to mips-tdep.h.
902 (mips_abi): New function.
903
f1253c7b
DC
9042002-12-04 David Carlton <carlton@math.stanford.edu>
905
906 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
907
406bc4de
DC
9082002-12-04 David Carlton <carlton@math.stanford.edu>
909
910 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
911 function.
912 (lookup_symbol_aux_minsyms): New function.
913
2a3750c5
JB
9142002-12-04 J. Brobecker <brobecker@gnat.com>
915
916 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
917
961d8652
JB
9182002-12-04 J. Brobecker <brobecker@gnat.com>
919
920 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
921 which is an obsolete macro name.
922
38c52d5a
DJ
9232002-12-04 Daniel Jacobowitz <drow@mvista.com>
924
925 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
926 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
927
d8ef46f5
DJ
9282002-12-03 H.J. Lu (hjl@gnu.org)
929
930 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
931 (create_breakpoints): Make sure the addr_string field is not
932 NULL.
933
02ae7771
AC
9342002-12-03 Andrew Cagney <ac131313@redhat.com>
935
936 * sparc-nat.c (fetch_inferior_registers)
937 (store_inferior_registers): Add comment on problem of LWP vs
938 threads.
939
940 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
941 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
942 (lin_lwp_store_registers): Remove.
943 (init_lin_lwp_ops): Use fetch_inferior_registers
944 and store_inferior_registers directly.
945 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
946 (store_inferior_registers): Likewise.
947 Fix PR gdb/725.
948
7a424e99
AC
9492002-12-03 Andrew Cagney <ac131313@redhat.com>
950
951 * frame.h (get_frame_id): Convert to a function.
952 (null_frame_id, frame_id_p): Declare.
953 (frame_id_eq, frame_id_inner): Declare.
954 (frame_id_build): New function.
955 * frame.c (get_frame_id): Update. Use null_frame_id.
956 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
957 frame_id_inner.
958 (null_frame_id, frame_id_p): Define.
959 (frame_id_eq, frame_id_inner): Define.
960 (frame_id_build): New function.
961 * varobj.c (varobj_create): Update.
962 (varobj_update): Update.
963 * valops.c (value_assign): Update.
964 (new_root_variable): Update.
965 * infrun.c (save_inferior_status): Update.
966 * breakpoint.c (watch_command_1): Update.
967
891c7f5f
JB
9682002-12-03 J. Brobecker <brobecker@gnat.com>
969
970 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
971 (SNAP2): Likewise.
972
144da3c1
AC
9732002-12-03 Andrew Cagney <cagney@redhat.com>
974
46248966
AC
975 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
976 patch.
977
144da3c1
AC
978 * PROBLEMS: Mention PR gdb/725.
979
03c6228e
AS
9802002-12-03 Andreas Schwab <schwab@suse.de>
981
982 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
983
36e53c63
AF
9842002-12-02 Adam Fedor <fedor@gnu.org>
985 Klee Dienes <kdienes@apple.com>
986
987 * objc-lang.c (objc_printstr): Add width arg to match
988 printstr prototype.
989 (compare_selectors): Add 'const' to arg types.
990 (compare_classes): Likewise.
991 (find_imps): Cast msym pointer to avoid compiler warning.
992 (print_object_command): Validate the address before
993 passing it to the print routine.
994 (find_objc_msgcall_submethod): Change function argument to
995 return an int.
996 * objc-lang.h: Add 'extern' to all function declarations.
997 (value_nsstring): Add declaration.
998
504d5c7e
JB
9992002-12-02 J. Brobecker <brobecker@gnat.com>
1000
1001 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1002 Fixes a build failure on HP/UX.
1003
1004 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1005 failure on HP/UX.
1006 (hpread_has_name): Advance declaration to avoid a compilation warning.
1007 (pst_syms_count): Add missing variable type. By change, the compiler
1008 was defaulting to int, which seems a good choice. Fixes a compilation
1009 warning.
1010 (pst_syms_size): Likewise.
1011
59623e27
JB
10122002-12-02 J. Brobecker <brobecker@gnat.com>
1013
1014 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1015 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1016 later to set the proper gdbarch methods depending on the osabi.
1017 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1018
a09a320d
JB
10192002-12-02 J. Brobecker <brobecker@gnat.com>
1020
1021 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1022 * osabi.c (gdb_osabi_name): Add strings images for the two new
1023 enum values.
1024 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1025
8a81a99e
AC
10262002-12-02 Andrew Cagney <ac131313@redhat.com>
1027
1028 * MAINTAINERS (Java): Global maintainers are responible for Java.
1029 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1030 part Java maintainers.
1031
7af35dad
JB
10322002-12-02 J. Brobecker <brobecker@gnat.com>
1033
1034 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1035 Fixes a compilation failure on AiX.
1036
f4ede9bc
JB
10372002-12-02 J. Brobecker <brobecker@gnat.com>
1038
1039 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1040 why aix-thread.o is not listed.
1041
ae45cd16
AC
10422002-12-01 Andrew Cagney <ac131313@redhat.com>
1043
1044 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1045 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1046 * gdbarch.h, gdbarch.c: Re-generate.
1047 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1048 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1049 * config/pa/tm-hppa.h, frame.h: Update.
1050 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1051 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1052 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1053 * cris-tdep.c, alpha-tdep.c: Update.
1054 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1055 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1056 (get_prev_frame): Ditto.
1057
020cc13c
AC
10582002-11-30 Andrew Cagney <cagney@redhat.com>
1059
1060 * exec.c (xfer_memory): Replace boolean with int.
1061 * p-exp.y: Use 0 instead of false.
1062 * corelow.c (gdb_check_format): Change return type to int from
1063 boolean.
1064 * utils.c: Don't include <curses.h> or <term.h> first.
1065
1d9b2aa8
SC
10662002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1067
1068 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1069 (m68hc11_register_byte): Remove.
1070 (m68hc11_gdbarch_init): Don't set the above.
1071
a193e397
AC
10722002-11-29 Andrew Cagney <cagney@redhat.com>
1073
1074 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1075 by calling get_selected_frame.
1076 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1077 set_current_frame, create_new_frame, select_frame and
1078 get_current_frame.
1079 * remote-e7000.c (e7000_start_remote): Ditto.
1080 * remote-mips.c (common_open): Ditto
1081 * remote-rdp.c (remote_rdp_open): Ditto.
1082
b5fc49aa
AS
10832002-11-29 Andreas Schwab <schwab@suse.de>
1084
1085 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1086 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1087 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1088 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1089 read_memory_unsigned_integer instead of read_memory_integer when
1090 dealing with addresses and instruction opcodes.
1091 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1092 (m68k_linux_frame_saved_pc): Likewise.
1093
6e7f8b9c
AC
10942002-11-29 Andrew Cagney <ac131313@redhat.com>
1095
1096 * stack.c (selected_frame, select_frame): Move from here ...
1097 * frame.c (selected_frame, select_frame): ... to here. Include
1098 "language.h".
1099 * Makefile.in (frame.o): Update dependencies.
1100 * frame.c (get_selected_frame): New function.
1101 * frame.h (get_selected_frame): Declare.
1102 (deprecated_selected_frame): Rename selected_frame.
1103 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1104 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1105 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1106 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1107 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1108 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1109 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1110 * z8k-tdep.c, cli/cli-cmds.c: Update.
1111
805e2818
AC
11122002-11-29 Andrew Cagney <ac131313@redhat.com>
1113
1114 * frame.h (get_selected_block): Add comments.
1115
1058bca7
AC
11162002-11-28 Andrew Cagney <ac131313@redhat.com>
1117
1118 * frame.c (pc_notcurrent): New function.
1119 (find_frame_sal): New function.
1120 * frame.h (find_frame_sal): Declare.
1121 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1122 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1123 find_pc_line.
1058bca7
AC
1124 (frame_info): Ditto.
1125 * ada-lang.c (find_printable_frame): Ditto.
1126
d92419e5
JB
11272002-11-28 J. Brobecker <brobecker@gnat.com>
1128
1129 * configure.in: Check that the pthdebug library is recent enough
1130 before enabling thread support on native AiX.
1131 * configure: Regenerate.
1132
1133 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1134 from the list of object files as it is now appended by configure
1135 if thread support is enabled.
1136 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1137 if thread support is enabled.
1138
8c69fc49
AC
11392002-11-28 Andrew Cagney <cagney@redhat.com>
1140
1141 * stack.c (get_selected_block): In-line get_current_block.
1142 * frame.h (get_current_block): Delete declaration.
1143 * blockframe.c (get_current_block): Delete function.
1144
07555a72
AC
11452002-11-28 Andrew Cagney <ac131313@redhat.com>
1146
1147 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1148 USE_GENERIC_DUMMY_FRAMES.
1149 * gdbarch.h, gdbarch.c: Regenerate.
1150 * valops.c, frame.c: Update.
1151 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1152 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1153 * config/pa/tm-hppa.h, blockframe.c: Update.
1154 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1155 * m68k-tdep.c, alpha-tdep.c: Ditto.
1156
1157 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1158 * mips-tdep.c: Ditto.
1159
b99fa2d2
AC
11602002-11-27 Andrew Cagney <ac131313@redhat.com>
1161
1162 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1163 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1164 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1165 * gdbarch.c, gdbarch.h: Re-generate.
1166 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1167 (CALL_DUMMY_LOCATION): Delete macro definition.
1168 (PC_IN_CALL_DUMMY): Delete macro definitions.
1169
1170 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1171 default is already generic_pc_in_call_dummy.
1172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1173 * v850-tdep.c (v850_gdbarch_init): Ditto.
1174 * sh-tdep.c (sh_gdbarch_init): Ditto.
1175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1176 * mips-tdep.c (mips_gdbarch_init): Ditto.
1177 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1181 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1182 * avr-tdep.c (avr_gdbarch_init): Ditto.
1183
1184 * arm-tdep.c (arm_gdbarch_init): Do not set
1185 use_generic_dummy_frames, default is already 1.
1186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1187 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1188 * v850-tdep.c (v850_gdbarch_init): Ditto.
1189 * sh-tdep.c (sh_gdbarch_init): Ditto.
1190 * s390-tdep.c (s390_gdbarch_init): Ditto.
1191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1192 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1193 * mips-tdep.c (mips_gdbarch_init): Ditto.
1194 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1196 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1197 * i386-tdep.c (i386_gdbarch_init): Ditto.
1198 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1199 * frv-tdep.c (frv_gdbarch_init): Ditto.
1200 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1201 * cris-tdep.c (cris_gdbarch_init): Ditto.
1202 * avr-tdep.c (avr_gdbarch_init): Ditto.
1203
1204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1205 call_dummy_location, default is already AT_ENTRY_POINT.
1206 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1207 * v850-tdep.c (v850_gdbarch_init): Ditto.
1208 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1209 * sh-tdep.c (sh_gdbarch_init): Ditto.
1210 * s390-tdep.c (s390_gdbarch_init): Ditto.
1211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1212 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1213 * mips-tdep.c (mips_gdbarch_init): Ditto.
1214 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1216 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1217 * i386-tdep.c (i386_gdbarch_init): Ditto.
1218 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1219 * frv-tdep.c (frv_gdbarch_init): Ditto.
1220 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1221 * cris-tdep.c (cris_gdbarch_init): Ditto.
1222 * avr-tdep.c (avr_gdbarch_init): Ditto.
1223 * arm-tdep.c (arm_gdbarch_init): Ditto.
1224 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1225
abc0af47
AC
12262002-11-28 Andrew Cagney <cagney@redhat.com>
1227
1228 * frame.h: Update comments on set_current_frame, create_new_frame,
1229 flush_cached_frames, reinit_frame_cache, select_frame and
1230 selected_frame.
1231
ed5cedc5
AC
12322002-11-27 Andrew Cagney <cagney@redhat.com>
1233
1234 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1235 deprecated pc_in_call_dummy function.
1236 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1237 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1238 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1239 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1240 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1241
b2a1bd4f
MH
12422002-11-26 Martin M. Hunt <hunt@redhat.com>
1243
1244 * Makefile.in: Remove Tix dependencies.
1245 * acinclude.m4: Ditto.
1246 * aclocal.m4: Ditto.
1247 * configure.in: Ditto.
1248 * configure: Regenerated.
1249
f09cffaa
AC
12502002-11-26 Andrew Cagney <ac131313@redhat.com>
1251
1252 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1253 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1254 * gdbarch.c: Re-generate.
1255
e92b0cc9
AC
12562002-11-26 Andrew Cagney <ac131313@redhat.com>
1257
1258 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1259 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1260 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1261 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1262 pc_in_call_dummy_at_entry_point.
1263 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1264 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1265 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1266 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1267 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1268 pc_in_call_dummy_on_stack.
1269 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1270 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1271 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1272 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1273 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1274
b4b88177
AC
12752002-11-26 Andrew Cagney <ac131313@redhat.com>
1276
1277 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1278 pc_in_call_dummy_before_text_end
1279 (deprecated_pc_in_call_dummy_after_text_end): Rename
1280 pc_in_call_dummy_after_text_end.
1281 (deprecated_pc_in_call_dummy_on_stack): Rename
1282 pc_in_call_dummy_on_stack.
1283 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1284 pc_in_call_dummy_at_entry_point.
1285 * m68k-tdep.c (m68k_gdbarch_init): Update.
1286 * s390-tdep.c (s390_gdbarch_init): Update.
1287 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1288 * vax-tdep.c (vax_gdbarch_init): Update.
1289 * sparc-tdep.c (sparc_gdbarch_init): Update.
1290 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1291 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1292 * i386-tdep.c (i386_gdbarch_init): Update.
1293 * frv-tdep.c (frv_gdbarch_init): Update.
1294 * cris-tdep.c (cris_gdbarch_init): Update.
1295 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1296 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1297 (deprecated_pc_in_call_dummy_after_text_end)
1298 (deprecated_pc_in_call_dummy_on_stack)
1299 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1300 * alpha-tdep.c (alpha_gdbarch_init): Update.
1301
eb784848
DJ
13022002-11-25 Daniel Jacobowitz <drow@mvista.com>
1303
1304 * acconfig.h (HAVE_PREAD64): Add.
1305 * configure.in: Check for pread64.
1306 * config.in: Regenerated.
1307 * configure: Regenerated.
1308 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1309 * linux-proc.c (linux_proc_xfer_memory): New function.
1310 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1311
933c6fe4
DC
13122002-11-25 David Carlton <carlton@math.stanford.edu>
1313
1314 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1315 pdi's with no name.
1316
158a8022
AC
13172002-11-25 Andrew Cagney <ac131313@redhat.com>
1318
1319 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1320 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1321
481d0f41
JB
13222002-11-25 Jim Blandy <jimb@redhat.com>
1323
e8289572
JB
1324 * symfile.c (init_objfile_sect_indices): New function.
1325 (default_symfile_offsets): Move the section-index-initializing
1326 stuff into init_objfile_sect_indices, and call that.
1327
b29c9944
JB
1328 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1329 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1330
13de58df
JB
1331 * symfile.c (syms_from_objfile): Adjust indentation.
1332
481d0f41
JB
1333 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1334 || info_verbose isn't true.
1335
7d6a26a7
AC
13362002-11-24 Andrew Cagney <ac131313@redhat.com>
1337
1338 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1339 default to get_frame_base.
1340 * gdbarch.h, gdbarch.c: Regenerate.
1341 * arch-utils.c (default_frame_address): Delete function.
1342 * arch-utils.h (default_frame_address): Delete declaration
1343
6abe1021
PM
13442002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1345
1346 * varobj.c (find_frame_addr_in_frame_chain):
1347 Use get_frame_base instead of FRAME_FP,
1348 obvious fix.
1349
c193f6ac
AC
13502002-11-19 Andrew Cagney <ac131313@redhat.com>
1351
1352 * frame.h (FRAME_FP): Delete macro.
1353 (get_frame_base): New function declaration.
1354 * frame.c (get_frame_base): New function.
1355 (get_frame_id): Use ->frame.
1356 (frame_find_by_id): Rewrite to use get_frame_id.
1357 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1358 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1359 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1360 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1361 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1362 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1363 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1364
e5d2af14
AC
13652002-11-24 Andrew Cagney <ac131313@redhat.com>
1366
1367 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1368
931d12c6
AC
13692002-11-24 Andrew Cagney <ac131313@redhat.com>
1370
1371 * frame.c (set_unwind_by_pc): Revert change below, use
1372 PC_IN_CALL_DUMMY.
1373 (get_prev_frame): Ditto.
1374
5e0f933e
AC
13752002-11-24 Andrew Cagney <ac131313@redhat.com>
1376
1377 * dummy-frame.c (pc_in_dummy_frame): New function.
1378 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1379 (find_dummy_frame): Update comment.
1380 (generic_pop_current_frame): Use get_frame_type.
1381 * dummy-frame.h (pc_in_dummy_frame): Declare.
1382 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1383 (create_new_frame): Use pc_in_dummy_frame.
1384 (get_prev_frame): Use pc_in_dummy_frame.
1385 (frame_saved_regs_register_unwind): Use get_prev_frame.
1386 (deprecated_generic_get_saved_register): Use get_prev_frame.
1387
7d8547c9
AC
13882002-11-23 Andrew Cagney <ac131313@redhat.com>
1389
1390 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1391 from here ...
1392 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1393 (varobj_create): Note that frame ID should be used.
1394 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1395
0225421b
AC
13962002-11-23 Andrew Cagney <ac131313@redhat.com>
1397
1398 * breakpoint.c: Include "gdb_assert.h".
1399 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1400 not being used.
1401 * Makefile.in (breakpoint.o): Update dependencies.
1402 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1403 deprecated_frame_in_dummy.
1404 * stack.c (print_frame_info_base): Ditto.
1405 (frame_info): Ditto.
1406 (print_frame_info_base): Ditto. Delete dead code.
1407
32eeb91a
AS
14082002-11-23 Andreas Schwab <schwab@suse.de>
1409
1410 * Makefile.in (m68k_tdep_h): Define.
1411 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1412 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1413 * m68k-tdep.c: Move register number enum ...
1414 * m68k-tdep.h: ... to this new file and rename the constants from
1415 E_* to M68K_*. All uses changed.
1416 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1417 * abug-rom.c: Include "m68k-tdep.h". Use
1418 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1419 * cpu32bug-rom.c: Likewise.
1420 * dbug-rom.c: Likewise.
1421 * m68k-tdep.c: Likewise.
1422 * m68klinux-nat.c: Likewise.
1423 * remote-est.c: Likewise.
1424 * rom68k-rom.c: Likewise.
1425 * config/m68k/tm-linux.h: Likewise.
1426
9648bac8
AC
14272002-11-23 Andrew Cagney <ac131313@redhat.com>
1428
1429 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1430 dummy frame initialization code.
1431 * mips-tdep.c (mips_gdbarch_init): Ditto.
1432
91a175b3
CF
14332002-11-22 Christopher Faylor <cgf@redhat.com>
1434
1435 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1436 attach will hang.
1437
f4ded5b1
AC
14382002-11-22 Andrew Cagney <ac131313@redhat.com>
1439
1440 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1441 to default_frame_address.
1442 * gdbarch.h, gdbarch.c: Re-generate.
1443
1444 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1445 or frame_locals_address to default_frame_address.
1446 * m68k-tdep.c (m68k_gdbarch_init): Update.
1447 * i386-tdep.c (i386_gdbarch_init): Update.
1448 * frv-tdep.c (frv_gdbarch_init): Update.
1449 * sh-tdep.c (sh_gdbarch_init): Update.
1450 * v850-tdep.c (v850_gdbarch_init): Update.
1451 * sparc-tdep.c (sparc_gdbarch_init): Update.
1452 * mips-tdep.c (mips_gdbarch_init): Update.
1453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1454 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1456
1457 * cris-tdep.c (cris_frame_args_address): Delete function.
1458 (cris_frame_locals_address): Delete function.
1459 (cris_gdbarch_init): Do not set frame_args_address or
1460 frame_locals_address.
1461
f7c1e0f3
MS
14622002-11-22 Michael Snyder <msnyder@redhat.com>
1463
1464 * thread-db.c (thread_db_load): Tell the user what's going on
1465 if dlopen fails on libthread_db.
1466
03dac896
AS
14672002-11-23 Andreas Schwab <schwab@suse.de>
1468
1469 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1470 invariant return values.
1471
7a67d0fe
AS
14722002-11-22 Andreas Schwab <schwab@suse.de>
1473
1474 * valops.c (value_slice): Move declaration of `offset' to avoid
1475 warning.
1476
5633f842
CF
14772002-11-22 Christopher Faylor <cgf@redhat.com>
1478
1479 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1480 (struct so_stuff): Add end_addr field.
1481 (register_loaded_dll): Calculate and store end address of loaded dll.
1482 (solib_address): New function.
1483 (child_solib_loaded_library_pathname): Pass carefully constructed
1484 section info to safe_symbol_file_add rather than ignoring it.
1485 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1486 DLL is loaded.
1487 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1488 (child_create_inferior): Fix a compiler warning.
1489 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1490 (solib_address): Declare new function.
1491
d85fe7f7
AS
14922002-11-22 Andreas Schwab <schwab@suse.de>
1493
1494 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1495 and FPS registers.
1496
8308e54c
DJ
14972002-11-21 Daniel Jacobowitz <drow@mvista.com>
1498
1499 * maint.c (_initialize_maint_cmds): Fix typo. From
1500 Francesco Potorti` <pot@gnu.org>.
1501
8997bd5e
AC
15022002-11-21 Andrew Cagney <cagney@redhat.com>
1503
1504 * mips-tdep.c (mips_dump_tdep): Delete references to
1505 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1506 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1507 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1508 * printcmd.c (build_address_symbolic): Delete calls to
1509 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1510 (address_info): Ditto.
1511 Fix PR gdb/773.
1512
4e87b832
KD
15132002-11-19 Klee Dienes <kdienes@apple.com>
1514 Adam Fedor <fedor@gnu.org>
1515
1516 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1517 the ability to explicitly specify the quote characters and word
1518 break characters; if NULL is specified for either, use the old
1519 behavior of using the characters used by the completer.
1520 (skip_chars): New function. Convenience wrapper around
1521 skip_quoted_chars to provide the original skip_chars behavior.
1522 * completer.h (skip_quoted_chars): Add prototype.
1523
9ba8d803
AC
15242002-11-19 Andrew Cagney <ac131313@redhat.com>
1525
1526 Problems reported by Paul Eggert.
1527 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1528
0a595803
AS
15292002-11-19 Andreas Schwab <schwab@suse.de>
1530
1531 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1532 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1533 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1534 (m68k_linux_frame_saved_pc): Move to ...
1535 * m68klinux-tdep.c: ... here. New file.
1536 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1537 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1538
e8afa4d7
AF
15392002-11-19 Adam Fedor <fedor@gnu.org>
1540
1541 * objc-exp.y: Revert to old skip_quoted usage.
1542
a76c9d72
AF
15432002-11-19 Adam Fedor <fedor@gnu.org>
1544
1545 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1546 (objc_lang_h): Define.
1547 (YYFILES): Add objc-exp.tab.c.
1548 (local-maintainer-clean): Remove objc-exp.tab.c.
1549 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1550
fd0e9d45
PM
15512002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1552
1553 * p-exp.y (typecast rule): Add automatic dereference of
1554 pascal classes if needed.
1555 (THIS): Set current_type.
1556 Automatically dereference pascal classes.
1557 (typebase rule): Add ^typebase recognition.
1558
82eeeb94
AF
15592002-11-18 Adam Fedor <fedor@gnu.org>
1560
1561 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1562 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1563 (op_name): Handle OP_OBJC_SELF.
1564 * Makefile.in (expprint.o): Add additional depends.
1565
646df18d
AF
15662002-11-18 Adam Fedor <fedor@gnu.org>
1567
1568 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1569 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1570 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1571 * objc-exp.y: Likewise.
1572
379b85df
AF
15732002-11-18 Adam Fedor <fedor@gnu.org>
1574
1575 * gdb/parser-defs.h: (struct objc_class_str): New structure
1576 for parsing ObjC classes.
1577
85cf597a
AC
15782002-11-18 Andrew Cagney <ac131313@redhat.com>
1579
1580 * stack.c (frame_relative_level): Copy function from here ...
1581 * frame.c (frame_relative_level): ...to here.
1582
5a203e44
AC
15832002-11-18 Andrew Cagney <ac131313@redhat.com>
1584
1585 * frame.h (enum frame_type): Define.
1586 (get_frame_type): Declare.
1587 (struct frame_info): Add field `type'. Delete field
1588 signal_handler_caller.
1589 (deprecated_set_frame_signal_handler_caller): Declare.
1590 * frame.c (get_frame_type): New function.
1591 (deprecated_set_frame_type): New function.
1592 (create_new_frame): Set the frame's type.
1593 (get_prev_frame): Similar.
1594 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1595 * s390-tdep.c: Ditto.
1596 * m68klinux-nat.c: Ditto.
1597 * ns32k-tdep.c: Ditto.
1598 * x86-64-linux-tdep.c: Ditto.
1599 * vax-tdep.c: Ditto.
1600 * rs6000-tdep.c: Ditto.
1601 * ppc-linux-tdep.c: Ditto.
1602 * i386-interix-tdep.c: Ditto.
1603 * mips-tdep.c: Ditto.
1604 * m68k-tdep.c: Ditto.
1605 * hppa-tdep.c: Ditto.
1606 * ia64-tdep.c: Ditto.
1607 * cris-tdep.c: Ditto.
1608 * arm-tdep.c: Ditto.
1609 * alpha-tdep.c: Ditto.
1610 * i386-tdep.c: Ditto.
1611 * stack.c: Ditto.
1612 * ada-lang.c: Ditto.
1613 * blockframe.c: Update.
1614 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1615 deprecated_set_frame_type instead of signal_handler_caller.
1616 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1617 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1618 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1619
bf4ae8b2
KD
16202002-11-18 Klee Dienes <kdienes@apple.com>
1621
1622 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1623
a672ef13
KD
16242002-11-18 Klee Dienes <kdienes@apple.com>
1625
1626 * buildsym.c (pop_context): Add comment.
1627
0c5e171a
KD
16282002-11-18 Klee Dienes <kdienes@apple.com>
1629
1630 * buildsym.h (pop_context): Convert to function, defined in
1631 buildsym.c.
1632 * buildsym.c: Include gdb_assert.h.
1633 (pop_context): Implement as C function. Add check for stack
1634 underflow.
1635 * dbxread.c (process_one_symbol): Complain and stop processing
1636 that symbol if we are already at the top of the context stack for
1637 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1638 when processing N_RBRAC.
1639
8a1f4c4c
DJ
16402002-11-16 Daniel Jacobowitz <drow@mvista.com>
1641
1642 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1643 define.
1644 (struct target_waitstatus): Add opaque definition.
1645 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1646 * exec.c (init_exec_ops): Likewise.
1647 * fork-child.c (clone_and_follow_inferior): Remove.
1648 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1649 * inferior.h (clone_and_follow_inferior): Remove prototype.
1650 * infrun.c (follow_fork_mode_both): Remove.
1651 (follow_fork_mode_kind_names): Remove commented out "both".
1652 (follow_inferior_fork): Remove follow_fork_mode_both support.
1653 * inftarg.c (child_clone_and_follow_inferior): Remove.
1654 (child_post_follow_inferior_by_clone): Remove.
1655 (init_child_ops): Don't set to_clone_and_follow_inferior
1656 or to_post_follow_inferior_by_clone.
1657 * target.c (default_clone_and_follow_inferior): Remove.
1658 (cleanup_target): Don't set to_clone_and_follow_inferior
1659 or to_post_follow_inferior_by_clone.
1660 (find_default_clone_and_follow_inferior): Remove.
1661 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1662 (debug_to_clone_and_follow_inferior): Remove.
1663 (debug_to_post_follow_inferior_by_clone): Remove.
1664 (setup_target_debug): Don't set to_clone_and_follow_inferior
1665 or to_post_follow_inferior_by_clone.
1666 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1667 and to_post_follow_inferior_by_clone.
1668 (child_clone_and_follow_inferior): Remove prototype.
1669 (child_post_follow_inferior_by_clone): Remove prototype.
1670 (target_clone_and_follow_inferior): Remove macro.
1671 (target_post_follow_inferior_by_clone): Remove macro.
1672 (find_default_clone_and_follow_inferior): Remove prototype.
1673
47932f85
DJ
16742002-11-16 Daniel Jacobowitz <drow@mvista.com>
1675
1676 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1677 inferior_has_vforked, and inferior_has_execd instead of
1678 target_has_forked, target_has_vforked, and target_has_execd.
1679 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1680 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1681 (CHILD_WAIT): Define.
1682 (child_wait): Add prototype.
1683 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1684 Add prototype.
1685 (hpux_has_vforked): Likewise, from child_has_vforked.
1686 (hpux_has_execd): Likewise, from child_has_execd.
1687 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1688 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1689 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1690 and hpux_has_syscall_event instead of the target hooks.
1691 * infrun.c (inferior_has_forked, inferior_has_vforked)
1692 (inferior_has_execd): New functions.
1693 * inftarg.c (not_same_real_pid): Remove.
1694 (child_wait): Remove references to not_same_real_pid,
1695 target_has_forked, target_has_vforked, target_has_execd,
1696 and target_has_syscall_event.
1697 (child_has_forked, child_has_vforked, child_has_execd)
1698 (child_has_syscall_event): Remove.
1699 (init_child_ops): Remove references to child_has_forked,
1700 child_has_vforked, child_has_execd, and child_has_syscall_event.
1701 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1702 (hpux_has_vforked): Likewise, from child_has_vforked.
1703 (hpux_has_execd): Likewise, from child_has_execd.
1704 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1705 * target.c (cleanup_target): Remove references to
1706 to_has_forked, to_has_vforked, to_has_execd, and
1707 to_has_syscall_event.
1708 (update_current_target): Likewise.
1709 (setup_target_debug): Likewise.
1710 (debug_to_has_forked): Remove.
1711 (debug_to_has_vforked): Remove.
1712 (debug_to_has_execd): Remove.
1713 (debug_to_has_syscall_event): Remove.
1714 * target.h (struct target_ops): Remove to_has_forked.
1715 to_has_vforked, to_has_execd, and to_has_syscall_event.
1716 (child_has_forked, child_has_vforked, child_has_execd)
1717 (child_has_syscall_event): Remove prototypes.
1718 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1719 prototypes.
1720 (target_has_forked, target_has_vforked, target_has_execd)
1721 (target_has_syscall_event): Remove macros.
1722
4088142a
DJ
17232002-11-16 Daniel Jacobowitz <drow@mvista.com>
1724
1725 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1726 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1727 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1728 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1729 * target.c (cleanup_target): Remove reference to
1730 to_can_follow_vfork_prior_to_exec.
1731 (update_current_target): Likewise.
1732 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1733 (setup_target_debug): Remove reference to
1734 to_can_follow_vfork_prior_to_exec.
1735 * target.h (struct target_ops): Remove
1736 to_can_follow_vfork_prior_to_exec.
1737 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1738 (target_can_follow_vfork_prior_to_exec): Remove definition.
1739 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1740 define.
1741 * infrun.c (follow_vfork_when_exec): Remove.
1742 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1743 (follow_exec): Likewise.
1744 (handle_inferior_event): Likewise.
1745 (keep_going): Likewise.
1746
18cde8d5
AC
17472002-11-15 Andrew Cagney <cagney@redhat.com>
1748
1749 * frame.c (generic_unwind_get_saved_register): Make static.
1750 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1751 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1752 defaults to generic_unwind_get_saved_register.
1753 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1754 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1755 * frv-tdep.c (frv_gdbarch_init): Ditto.
1756 * i386-tdep.c (i386_gdbarch_init): Ditto.
1757 * s390-tdep.c (s390_gdbarch_init): Ditto.
1758 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1759 * v850-tdep.c (v850_gdbarch_init): Ditto.
1760 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1761 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1762 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1763
a6b063af
AC
17642002-11-15 Andrew Cagney <cagney@redhat.com>
1765
1766 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1767 i386-tdep.c.
1768
f407986f
AC
17692002-11-15 Andrew Cagney <cagney@redhat.com>
1770
1771 * frame.h (sigtramp_saved_pc): Delete declaration.
1772 * blockframe.c (sigtramp_saved_pc): Delete function.
1773 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1774 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1775 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1776 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1777
f18c5a73
AC
17782002-11-15 Andrew Cagney <ac131313@redhat.com>
1779
1780 * frame.c (frame_pc_unwind): New function.
1781 (frame_saved_regs_pc_unwind): New function.
1782 (frame_register_unwind): Pass unwind_cache instead of
1783 register_unwind_cache.
1784 (set_unwind_by_pc): Add unwind_pc parameter, set.
1785 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1786 (get_prev_frame): Ditto.
1787 * frame.h (frame_pc_unwind_ftype): Declare.
1788 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1789 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1790 (frame_pc_unwind): Declare.
1791 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1792 (struct dummy_frame): Add comment mentioning that values are for
1793 previous frame.
1794 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1795 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1796 (generic_file_frame_chain_valid): Ditto.
1797 * stack.c (frame_info): Ditto.
1798
d9285969 17992002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1800
1801 * linespec.c (locate_first_half): New function.
1802 (decode_line_1): Move code into locate_first_half.
1803
d741b867
AC
18042002-11-15 Andrew Cagney <ac131313@redhat.com>
1805
1806 * complaints.h: Add comment explaining how to eliminate a
1807 deprecated_complain call.
24382c5c 1808 * complaints.h: Fix spelling errors.
d741b867 1809
82d03c99
DC
18102002-11-15 David Carlton <carlton@math.stanford.edu>
1811
1812 * printcmd.c: Remove #include "disasm.h".
1813
c97eb5d9
AC
18142002-11-14 Andrew Cagney <ac131313@redhat.com>
1815
1816 * frame.h: Move the most relevant interface functions to the start
1817 of the file.
1818
524d7c18
AC
18192002-11-14 Andrew Cagney <ac131313@redhat.com>
1820
1821 * regcache.h (deprecated_registers): Rename registers.
1822 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1823 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1824 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1825 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1826 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1827 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1828 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1829 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1830 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1831 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1832 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1833 * v850ice.c: Update.
1834
6411e720
AC
1835Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1836
1837 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1838 NULL buffer.
1839
73937e03
AC
18402002-11-13 Andrew Cagney <cagney@redhat.com>
1841
1842 * regcache.h (deprecated_read_register_bytes): Rename
1843 read_register_bytes.
1844 (deprecated_write_register_bytes): Rename write_register_bytes.
1845 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1846 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1847 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1848 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1849 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1850 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1851 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1852 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1853 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1854 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1855 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1856 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1857 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1858 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1859
fb0cd46e
JB
18602002-11-13 Jim Blandy <jimb@redhat.com>
1861
1862 * findvar.c (read_var_value): Doc fix.
1863
2d28509a
AC
18642002-11-13 Andrew Cagney <cagney@redhat.com>
1865
1866 * regcache.c (struct regcache): Replace passthough_p with
1867 readonly_p.
1868 (regcache_xmalloc): Initialize readonly_p.
1869 (build_regcache): Initialize readonly_p.
1870 (regcache_save): New function.
1871 (regcache_restore): New function.
1872 (regcache_cpy): Re-implement using regcache_save and
1873 regcache_restore.
1874 (regcache_raw_read): Update.
1875 (regcache_cooked_read): When a read-only cache, checked for cached
1876 pseudo register values.
1877 (regcache_raw_write): Assert that the cache is not read-only.
1878 Remove code handling a non-passthrough cache.
1879 * regcache.h (regcache_save): Declare.
1880 (regcache_restore): Declare.
1881
067df2e5
AC
18822002-11-13 Andrew Cagney <cagney@redhat.com>
1883
1884 * regcache.c (struct regcache_descr): Add fields
1885 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1886 (init_legacy_regcache_descr): Compute the size of a cooked
1887 register cache and then assign that to sizeof_raw_registers. Set
1888 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1889 (init_legacy_regcache_descr): Ditto.
1890
51b1fe4e
AC
18912002-11-13 Andrew Cagney <cagney@redhat.com>
1892
1893 * regcache.c (register_buffer): Move to near start of file, update
1894 description.
1895 (regcache_raw_read): Use.
1896 (regcache_raw_write): Use.
1897 (struct regcache): Rename raw_registers to registers and
1898 raw_register_valid_p to register_valid_p.
1899 (regcache_xmalloc): Update.
1900 (regcache_xfree): Update.
1901 (register_buffer): Update.
1902 (regcache_cpy): Update.
1903 (regcache_cpy_no_passthrough): Update.
1904 (regcache_valid_p): Update.
1905 (deprecated_grub_regcache_for_registers): Update.
1906 (deprecated_grub_regcache_for_register_valid): Update.
1907 (set_register_cached): Update.
1908 (regcache_raw_write): Update.
1909
80b4c677
PM
19102002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1911
1912 * p-exp.y (name_not_typename): Use copy_name to
1913 set current_type variable for fields of THIS.
1914
0f3fafde
DJ
19152002-11-12 Daniel Jacobowitz <drow@mvista.com>
1916
1917 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1918 * monitor.c (init_base_monitor_ops): Likewise.
1919 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1920 * remote-array.c (init_array_ops): Likewise.
1921 * remote-e7000.c (init_e7000_ops): Likewise.
1922 * remote-es.c (init_es1800_ops): Likewise.
1923 (init_es1800_child_ops): Likewise.
1924 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1925 * remote-sim.c (init_gdbsim_ops): Likewise.
1926 * remote-st.c (init_st2000_ops): Likewise.
1927 * sol-thread.c (init_sol_core_ops): Likewise.
1928 (init_sol_thread_ops): Likewise.
1929 * v850ice.c (init_850ice_ops): Likewise.
1930 * win32-nat.c (init_child_ops): Likewise.
1931 * wince.c (init_child_ops): Likewise.
1932
82c0260e
AC
19332002-11-12 Andrew Cagney <ac131313@redhat.com>
1934
1935 * utils.c (gdb_realpath): Make rp a constant pointer.
1936
70d35819
AC
19372002-11-12 Andrew Cagney <ac131313@redhat.com>
1938
1939 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1940 a constant buffer; cannonicalize_file_name(); realpath() with a
1941 pathconf() defined buffer, xstrdup().
1942
9835a8b0
AC
19432002-11-12 Andrew Cagney <ac131313@redhat.com>
1944
1945 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1946 to hang2.C; hang3.c to hang3.C.
1947
3f47be5c
EZ
19482002-11-11 Elena Zannoni <ezannoni@redhat.com>
1949
1950 * findvar.c (read_var_value): Reenable TLS code.
1951
19522002-11-11 Elena Zannoni <ezannoni@redhat.com>
1953 Jim Blandy <jimb@redhat.com>
1954
1955 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1956 * target.c (update_current_target): Add
1957 to_get_thread_local_address.
1958 * target.h (to_get_thread_local_address): Export.
1959 (target_get_thread_local_address): Define.
1960 (target_get_thread_local_address_p): Define.
1961 * thread-db.c: Include solib-svr4.h.
1962 (td_thr_tls_get_addr_p): Define.
1963 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1964 (thread_db_get_thread_local_address): New function.
1965 (init_thread_db_ops): Initialize to_get_thread_local_address.
1966 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1967 * configure: Regenerate.
1968 * config.in: Regenerate.
1969
636b1a6d
DC
19702002-11-11 David Carlton <carlton@math.stanford.edu>
1971
1972 * linespec.c (set_flags): New function.
1973 (decode_line_1): Move code into set_flags.
1974
44fe14ab
DC
19752002-11-11 David Carlton <carlton@math.stanford.edu>
1976
1977 * linespec.c (decode_line_1): Move chunks of code to separate
1978 functions.
1979 (initialize_defaults): New function.
1980 (decode_indirect): New function.
1981
e6f181f5
AC
19822002-11-11 Andrew Cagney <ac131313@redhat.com>
1983
8971b011
AC
1984 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1985 instead of void_code_ptr.
1986 (sigtramp_saved_pc): Ditto.
1987
e6f181f5
AC
1988 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1989 i386_fp_regnum_p.
1990
01ad7f36
DJ
19912002-11-10 Daniel Jacobowitz <drow@mvista.com>
1992
1993 * gdbtypes.h (struct main_type): Move artificial flag out of
1994 loc. New member of ``struct field'' named static_kind. Reduce
1995 overloaded meaning of bitsize.
1996 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1997 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1998 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1999
2000 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2001 new fields.
2002 (template_to_fixed_record_type, template_to_static_fixed_type)
2003 (to_record_with_fixed_variant_part): Likewise.
2004 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2005 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2006 * dwarfread.c (struct_type, enum_type): Likewise.
2007 * hpread.c (hpread_read_enum_type)
2008 (hpread_read_function_type, hpread_read_doc_function_type)
2009 (hpread_read_struct_type): Likewise.
2010 * mdebugread.c (parse_symbol): Likewise.
2011
bf1e52be
AC
20122002-11-10 Andrew Cagney <ac131313@redhat.com>
2013
2014 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2015 * stack.c (print_frame_info_base): Update.
2016 (print_frame_info_base, frame_info): Update.
2017 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2018 (sparc_frame_saved_pc): Update.
2019 * ada-lang.c (find_printable_frame): Update.
2020 * breakpoint.c (deprecated_frame_in_dummy): Update.
2021
ce556f85
MK
20222002-11-09 Mark Kettenis <kettenis@gnu.org>
2023
2024 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2025 defined.
2026 (regmap): Extend to cover all registers.
2027 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2028 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2029 definitions.
2030 (fetch_register, sore_register): Simplify.
2031 (old_fetch_inferior_registers, old_store_inferior_registers):
2032 Remove functions.
2033 (cannot_fetch_register, cannot_store_register): Change
2034 implementation to use regmap array to decide which registers
2035 cannot be fetched/stored. This removes $orig_eax from the
2036 registers that cannot be fetched/stored.
2037 (fetch_inferior_registers): Call fetch_register directly instead
2038 of calling old_fetch_inferior_registers.
2039 (store_inferior_registers): Call store_register directly instead
2040 of calling old_store_inferior_registers.
2041 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2042 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2043 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2044
932bb524
KD
20452002-11-09 Klee Dienes <kdienes@apple.com>
2046
2047 * i387-tdep.c (i387_supply_register): When called with NULL as a
2048 buffer, mark the register as not provided (to mirror the behavior
2049 of supply_register).
2050 (i387_supply_fxsave): Ditto.
2051 (i387_supply_fsave): Ditto (inherits the behavior from
2052 i387_supply_register).
2053
ebe68b27
KD
20542002-11-09 Klee Dienes <kdienes@apple.com>
2055
2056 * blockframe.c (sigtramp_saved_pc): Use
2057 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2058 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2059 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2060
15220c65
AC
20612002-11-09 Andrew Cagney <ac131313@redhat.com>
2062
2063 * frame.c (get_prev_frame): Test prev_p to identify a previously
2064 unwound frame. Initialize prev_p.
2065 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2066 comment.
2067
95adb866
AC
20682002-11-09 Andrew Cagney <ac131313@redhat.com>
2069
2070 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2071 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2072 more comments. Zap dead code.
2073
e71ecd70
MK
20742002-11-09 Mark Kettenis <kettenis@gnu.org>
2075
2076 * infcmd.c (print_vector_info, print_float_info): Move code that
2077 checks whether the target has any registers and whether there is a
2078 selected frame up, such that it is also used if a target provides
2079 multi-arch definitions of these functions.
2080
c525330d
AC
20812002-11-08 Andrew Cagney <ac131313@redhat.com>
2082
72bdd927
AC
2083 * Makefile.in (DESTDIR): Define.
2084 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2085 prefix.
2086
c525330d
AC
2087 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2088 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2089
38c968cf
AC
20902002-11-08 Andrew Cagney <ac131313@redhat.com>
2091
2092 * i386-linux-tdep.c: Include "reggroups.h".
2093 (i386_linux_register_reggroup_p): New function.
2094 (i386_linux_init_abi): Set register_reggroup_p to
2095 i386_linux_register_reggroup_p.
2096 * i386-tdep.h (i386_register_reggroup_p): Declare.
2097 * i386-tdep.c: Include "reggroups.h".
2098 (i386_init_reggroups): New function.
2099 (i386_add_reggroups): New function.
2100 (i386_register_reggroup_p): New function.
2101 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2102 (_initialize_i386_tdep): Call i386_init_reggroups.
2103 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2104 specific reggroups.
2105
19e33363
MK
21062002-11-09 Mark Kettenis <kettenis@gnu.org>
2107
371a6e84
MK
2108 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2109 request that's available in *BSD.
2110
94ba925a
MK
2111 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2112
19e33363
MK
2113 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2114 FDOFF_REGNUM.
2115
8779790c
AC
21162002-11-08 Andrew Cagney <ac131313@redhat.com>
2117
2118 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2119 * dummy-frame.c (find_dummy_frame): Rename
2120 generic_find_dummy_frame, make static. Return the dummy frame
2121 instead of the regcache.
2122 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2123 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2124 (dummy_frame_register_unwind): Rename
2125 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2126 * dummy-frame.h (dummy_frame_register_unwind): Rename
2127 generic_call_dummy_register_unwind.
2128
8674b74f
MK
21292002-11-08 Mark Kettenis <kettenis@gnu.org>
2130
2131 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2132 except the inclusion of "i386/tm-i386.h", to...
2133 * config/i386/nm-i386v42mp.h: ...here.
2134 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2135
4c1e7e9d
AC
21362002-11-08 Andrew Cagney <ac131313@redhat.com>
2137
2138 * Makefile.in (frame.o): Update dependencies.
2139 * blockframe.c (current_frame, frame_obstack_alloc)
2140 (frame_saved_regs_zalloc, get_current_frame)
2141 (set_current_frame, create_new_frame)
2142 (set_unwind_by_pc, get_next_frame)
2143 (flush_cached_frames, reinit_frame_cache)
2144 (frame_saved_regs_register_unwind)
2145 (deprecated_generic_get_saved_register)
2146 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2147 (_initialize_blockframe): Move frame code from here...
2148 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2149 "annotate.h" and "dummy-frame.h".
2150 (_initialize_frame): New function.
2151
921e78cf
JB
21522002-11-08 Jim Blandy <jimb@redhat.com>
2153
2154 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2155 when we finish a function a context.
2156 * buildsym.h (outermost_context_p): New macro.
2157 (Bug analyzed by David Edelsohn.)
2158
9c1412c1
AC
21592002-11-08 Andrew Cagney <ac131313@redhat.com>
2160
2161 * blockframe.c: Include "dummy-frame.h".
2162 (struct dummy_frame, dummy_frame_stack)
2163 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2164 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2165 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2166 (generic_save_call_dummy_addr, generic_pop_current_frame)
2167 (generic_pop_dummy_frame, generic_fix_call_dummy)
2168 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2169 dummy frame code from here...
2170 * dummy-frame.c: ...to here. New file.
2171 * dummy-frame.h: New file.
2172 (generic_call_dummy_register_unwind): Declare.
2173 (generic_find_dummy_frame): Declare.
2174 * Makefile.in (SFILES): Add dummy-frame.c.
2175 (dummy-frame.o): Specify dependencies.
2176 (dummy_frame_h): Define.
2177 (COMMON_OBS): Add dummy-frame.o.
2178 (blockframe.o): Update dependencies.
2179
208d8187
JB
21802002-11-08 Jim Blandy <jimb@redhat.com>
2181
2182 * dwarf2read.c (read_func_scope): Restore local_symbols and
2183 param_symbols after we finish the function context. (Based on a
2184 patch from David Edelsohn.)
2185
413dad4d
DC
21862002-11-08 David Carlton <carlton@math.stanford.edu>
2187
2188 * linespec.c (symbol_found): New function.
2189 (minsym_found): New function.
2190 (decode_line_1): Separate out some code into separate functions.
2191
5512c44a
JB
21922002-11-08 Joel Brobecker <brobecker@gnat.com>
2193
2194 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2195 the benefit of the interix target.
2196 * i386-tdep.h (i386_frameless_signal_p): Declare.
2197
1b33ef47
AC
21982002-11-08 Andrew Cagney <ac131313@redhat.com>
2199
2200 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2201 declaration that snuck in from change below.
2202
23a34459
AC
22032002-11-06 Andrew Cagney <cagney@redhat.com>
2204
2205 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2206 all callers.
2207 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2208 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2209 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2210 (i386_mxcsr_regnum_p): new function. Use instead of
2211 MXCSR_REGNUM_P.
2212 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2213 (i386_sse_regnum_p): Declare.
2214 (i386_mxcsr_regnum_p): Declare.
2215 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2216 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2217 (IS_FP_REGNUM): Update definition.
2218 (IS_FPU_CTRL_REGNUM): Update definition..
2219 (IS_SSE_REGNUM): Update definition..
2220 * i386v-nat.c (register_u_addr): Update.
2221 * go32-nat.c (fetch_register): Update.
2222 (store_register): Update.
2223
d709c020
JB
22242002-11-07 Joel Brobecker <brobecker@gnat.com>
2225
2226 Preparation work to convert the hppa targets to multiarch partial.
2227
2228 * hppa-tdep.c: Add new functions replacing macro bodies from
2229 config/pa/tm-hppa.h. These function will be used to initialize
2230 the gdbarch structure. Import some comments from tm-hppa.h,
2231 and place them where appropriate, to avoid loosing them when
2232 we cleanup this file.
2233 (hppa_reg_struct_has_addr): New function.
2234 (hppa_inner_than): New function.
2235 (hppa_stack_align): New function.
2236 (hppa_pc_requires_run_before_use): New function.
2237 (hppa_instruction_nullified): New function.
2238 (hppa_register_byte): New function.
2239 (hppa_register_virtual_type): New function.
2240 (hppa_store_struct_return): New function.
2241 (hppa_cannot_store_register): New function.
2242 (hppa_frame_args_address): New function.
2243 (hppa_frame_locals_address): New function.
2244 (hppa_smash_text_address): New function.
2245 (hppa_coerce_float_to_double): New function. Requires the inclusion
2246 of "language.h".
2247
2248 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2249
2250 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2251 gdbarch-eligible macro to a call to the new associated function
2252 created in hppa-tdep.c.
2253 (INNER_THAN): Likewise.
2254 (STACK_ALIGN): Likewise.
2255 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2256 (INSTRUCTION_NULLIFIED): Likewise.
2257 (REGISTER_BYTE): Likewise.
2258 (REGISTER_VIRTUAL_TYPE): Likewise.
2259 (STORE_STRUCT_RETURN): Likewise.
2260 (CANNOT_STORE_REGISTER): Likewise.
2261 (FRAME_ARGS_ADDRESS): Likewise.
2262 (FRAME_LOCALS_ADDRESS): Likewise.
2263 (SMASH_TEXT_ADDRESS): Likewise.
2264 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2265 (ABOUT_TO_RETURN): Delete, as no longer used.
2266
83c31e7d
FN
22672002-11-07 Fernando Nasser <fnasser@redhat.com>
2268
2269 * printcmd.c (disassemble_command): Remove obsolete function.
2270 (_initialize_printcmd): Do not create disassemble command here.
2271 * cli/cli-cmds.c (disassemble_command): New function. Implements
2272 disassemble command.
2273 (init_cli_cmds): Create disassemble command here instead.
2274
0ec30a36
AC
22752002-11-07 Andrew Cagney <ac131313@redhat.com>
2276
2277 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2278
e600bd34
AC
22792002-11-07 Andrew Cagney <ac131313@redhat.com>
2280
2281 * regcache.h (regcache_cooked_read_using_offset_hack)
2282 (regcache_cooked_write_using_offset_hack): Delete declarations.
2283 (register_changed): Delete declaration.
2284 * regcache.c (regcache_cooked_read_using_offset_hack)
2285 (regcache_cooked_write_using_offset_hack): Delete functions.
2286 (cooked_xfer_using_offset_hack): Delete function.
2287 (register_changed): Delete function.
2288
568f8739
JB
22892002-11-07 Jim Blandy <jimb@redhat.com>
2290
2291 * macroscope.c: #include "complaints.h".
2292 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2293 but not in the macro table.
2294 * Makefile.in (macroscope.o): Record dependency.
2295
b0718b7b
JB
22962002-11-07 Joel Brobecker <brobecker@gnat.com>
2297
2298 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2299
2b9e5f3f
AC
23002002-11-07 Andrew Cagney <ac131313@redhat.com>
2301
2302 * regcache.c (deprecated_registers_fetched): Update.
2303 * regcache.h (deprecated_registers_fetched): Rename
2304 registers_fetched.
2305 * remote-vxsparc.c (vx_read_register): Update.
2306 * remote-vxmips.c (vx_read_register): Update.
2307 * remote-vx68.c (vx_read_register): Update.
2308 * irix5-nat.c (fetch_core_registers): Update.
2309 * mipsm3-nat.c (fetch_inferior_registers): Update.
2310 * sun3-nat.c (fetch_inferior_registers): Update.
2311 * symm-nat.c (fetch_inferior_registers): Update.
2312 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2313 (fetch_core_registers): Update.
2314 (fetch_kcore_registers): Update.
2315 * mips-nat.c (fetch_inferior_registers): Update.
2316 * corelow.c (get_core_registers): Update.
2317 * a68v-nat.c (fetch_inferior_registers): Update.
2318
e6e68f1f
JB
23192002-11-06 Joel Brobecker <brobecker@gnat.com>
2320
2321 Put in place the framework necessary for multiarching the hppa targets.
2322 * hppa-tdep.c (hppa_gdbarch_init): New function.
2323 (hppa_dump_tdep): New function.
2324 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2325 tdep structure dumper.
2326 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2327 until the multi-arching conversion has partially been completed.
2328
492254e9
AC
23292002-11-06 Andrew Cagney <ac131313@redhat.com>
2330
2331 * valops.c (value_assign): Merge lval_register case into
2332 lval_reg_frame_relative. Use frame_register and
2333 regcache_cooked_write instead of get_saved_register and
2334 write_register_bytes. After flushing the register cache, try to
2335 re-select the selected frame.
2336
8262ee23
AC
23372002-11-06 Andrew Cagney <ac131313@redhat.com>
2338
2339 * regcache.h (deprecated_register_valid): Rename register_valid.
2340 * regcache.c: Update.
2341 * ia64-aix-nat.c: Update.
2342 * i386gnu-nat.c: Update.
2343 * alpha-nat.c: Update.
2344 * sparc-nat.c: Update.
2345 * lynx-nat.c: Update.
2346 * remote-mips.c: Update.
2347
4facf7e8
JB
23482002-11-06 Joel Brobecker <brobecker@gnat.com>
2349
2350 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2351 to end of file, to be more consistent with the pratice followed
2352 by other targets.
2353
f9418c0f
AC
23542002-11-06 Andrew Cagney <ac131313@redhat.com>
2355
2356 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2357 (print_float_info): Print registers in float_reggroup.
2358 (print_vector_info): Print registers in vector_reggroup.
2359 (default_print_registers_info): When all, print registers in
2360 all_reggroup. Otherwize, print registers in general_reggroup.
2361 (registers_info): Rewrite. Add support for register groups.
2362 Eliminate a goto.
2363
3fe235a7
EZ
23642002-11-06 Elena Zannoni <ezannoni@redhat.com>
2365
2366 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2367 ages.
2368 (symtab_symbol_info): Remove eons old ifdeffed out code.
2369 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2370 command.
2371
ef944135
TR
23722002-11-06 Theodore A. Roth <troth@openavr.org>
2373
2374 * c-exp.y: Add missing semi-colons.
2375 * f-exp.y: Add missing semi-colons.
2376 * m2-exp.y: Add missing semi-colons.
2377 * p-exp.y: Add missing semi-colons.
2378 Add empty action to start rule to avoid a type clash error when
2379 building with bison >= 1.50.
2380
f8302a57
JB
23812002-11-06 Jim Blandy <jimb@redhat.com>
2382
2383 * macrotab.h (struct macro_source_file): Doc fix.
2384
6e382aa3
JJ
23852002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2386
2387 * varobj.c (child_exists, cplus_number_of_children): Change
2388 STREQ macro references to strcmp.
2389 (cplus_name_of_child): Change code to handle the fact that
2390 fields are not necessarily contiguous with regards to their
2391 access control. This is a fix for PR gdb/792.
2392
a216a322
AC
23932002-11-05 Andrew Cagney <ac131313@redhat.com>
2394
2395 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2396 * gdbarch.h, gdbarch.c: Regnerate.
2397 * frame.h (frame_register): Declare.
2398 * frame.c (frame_register): New function.
2399 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2400 GET_SAVED_REGISTER, otherwize call
2401 generic_unwind_get_saved_register.
2402 (frame_register_read): Use frame_register instead of
2403 get_saved_register.
2404
7d5b6fdd
EZ
24052002-11-05 Elena Zannoni <ezannoni@redhat.com>
2406
2407 From Jim Ingham <jingham@apple.com>:
2408 * event-top.c (gdb_disable_readline): New function.
2409 (_initialize_event_loop): Move comment.
2410
b7c64260
EZ
24112002-11-05 Elena Zannoni <ezannoni@redhat.com>
2412
2413 * event-loop.c (start_event_loop): Add comment.
2414 Update copyright.
2415
c2e1b8f2
AC
24162002-11-05 Andrew Cagney <ac131313@redhat.com>
2417
2418 * infcmd.c (default_print_registers_info): Do not call
2419 PRINT_REGISTER_HOOK.
2420
87647bb0
AC
24212002-11-05 Andrew Cagney <ac131313@redhat.com>
2422
2423 * sparc-tdep.c (sparc_print_register_hook): Make static.
2424 (sparc_print_registers_info): New function.
2425 (sparc_do_registers_info): New function.
2426 (sparclet_print_registers_info): New function.
2427 (sparclet_do_registers_info): New function.
2428 (do_sparc_print_registers_info): New function.
2429 (sparc_print_registers): New static function, clone of infcmd.c's
2430 default_print_registers_info.
2431 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2432 (sparclet_do_registers_info): Declare.
2433 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2434 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2435 Re-define.
2436 (sparc_do_registers_info): Declare.
2437 (PRINT_REGISTER_HOOK): Delete macro.
2438 (sparc_print_register_hook): Delete declaration.
2439
8155455b
DC
24402002-11-05 David Carlton <carlton@math.stanford.edu>
2441
2442 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2443 functions.
2444 (lookup_symbol_aux_local): New function.
2445 (lookup_symbol_aux_symtabs): New function.
2446 (lookup_symbol_aux_psymtabs): New function.
2447
29924310
DC
24482002-11-05 David Carlton <carlton@math.stanford.edu>
2449
2450 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2451 previous values of 'objfile' and 'block'.
2452
cc303028
PM
24532002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2454
2455 * values.c (value_change_enclosing_type): Set
2456 enclosing_type field correctly also for the case where
2457 more memory needs to be allocated.
2458
1d70089a
MK
24592002-11-03 Mark Kettenis <kettenis@gnu.org>
2460
f16a25ae
MK
2461 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2462 of puts_filtered.
2463
1d70089a
MK
2464 * i387-tdep.c (i387_print_float_info): Replace calls to
2465 register_read and deprecated_read_register_gen with calls to
2466 frame_register_read, and make the necessary adjustments to the
2467 surrounding code.
2468
7e20f3fb
AC
24692002-11-02 Andrew Cagney <ac131313@redhat.com>
2470
2471 * gdbarch.sh (register_reggroup_p): Allow default value.
2472 * gdbarch.h, gdbarch.c: Regenerate.
2473
192dbe33
AC
24742002-11-02 Andrew Cagney <ac131313@redhat.com>
2475
2476 * regcache.h: Add coment indicating replacements for deprecated
2477 functions.
2478
b59ff9d5
AC
24792002-11-02 Andrew Cagney <cagney@redhat.com>
2480
2481 * reggroups.h, reggroups.c: New files.
2482 * regcache.c: Include "reggroups.h".
2483 (enum regcache_dump_what): Add `regcache_dump_groups'.
2484 (regcache_dump): Contract size of the "Type" column. When
2485 specified, dump the register's groups.
2486 (maintenance_print_register_groups): New function.
2487 (_initialize_regcache): Add command `maint print register-groups'.
2488 * Makefile.in (COMMON_OBS): Add reggroups.o
2489 (SFILES): Add reggroups.c.
2490 (reggroups_h): Define.
2491 (regcache.o, gdbarch.o): Update dependencies.
2492 (reggroups.o): Specify dependencies.
2493 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2494 Add opaque declaration for `struct reggroup' in generated .h file.
2495 Include "reggroups.h" in generated .c file.
2496 gdbarch.h, gdbarch.c: Re-generate.
2497
4caf0990
AC
24982002-11-02 Andrew Cagney <cagney@redhat.com>
2499
2500 * regcache.h (deprecated_read_register_gen): Rename
2501 read_register_gen.
2502 (deprecated_write_register_gen): Rename write_register_gen.
2503 * i387-tdep.c: Update.
2504 * x86-64-linux-nat.c: Update
2505 * wince.c: Update.
2506 * thread-db.c: Update.
2507 * win32-nat.c: Update.
2508 * mips-tdep.c: Update.
2509 * d10v-tdep.c: Update.
2510 * cris-tdep.c: Update.
2511 * remote-sim.c: Update.
2512 * remote-rdi.c: Update.
2513 * remote-rdp.c: Update.
2514 * frame.c: Update.
2515 * target.c: Update.
2516 * blockframe.c: Update.
2517 * x86-64-tdep.c: Update.
2518 * xstormy16-tdep.c: Update.
2519 * sh-tdep.c: Update.
2520 * s390-tdep.c: Update.
2521 * rs6000-tdep.c: Update.
2522 * sparc-tdep.c: Update.
2523 * i386-tdep.c: Update.
2524 * dwarf2cfi.c: Update.
2525 * regcache.c: Update.
2526
7a7adcdf
JB
25272002-11-01 Joel Brobecker <brobecker@gnat.com>
2528
2529 New interix-specific files:
2530 * config/i386/nm-interix.h: New file.
2531 * config/i386/interix.mh: New file.
2532 * config/i386/interix.mt: New file.
2533 * i386-interix-nat.c: New file.
2534 * i386-interix-tdep.c: New file.
2535
bdcdd535
AC
25362002-11-01 Andrew Cagney <cagney@redhat.com>
2537
2538 * frame.h (deprecated_generic_get_saved_register): Rename
2539 generic_get_saved_register.
2540 * blockframe.c (deprecated_generic_get_saved_register): Update.
2541 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2542 (xstormy16_frame_saved_register): Update.
2543 * sh-tdep.c (sh_gdbarch_init): Update.
2544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2545 * ia64-tdep.c (ia64_get_saved_register): Update.
2546 * cris-tdep.c (cris_gdbarch_init): Update.
2547 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2548 * arm-tdep.c (arm_gdbarch_init): Update.
2549
2a4b7c45
DJ
25502002-10-31 Daniel Jacobowitz <drow@mvista.com>
2551
2552 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2553
ef17e74b
DJ
25542002-10-31 Daniel Jacobowitz <drow@mvista.com>
2555
2556 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2557 trampolines in sigaction.
2558
4904ba5b
AC
25592002-10-31 Andrew Cagney <cagney@redhat.com>
2560
2561 * h8300-tdep.c: Include "gdb_assert.h".
2562 (h8300_print_register): Add gdbarch, file and frame parameters.
2563 Use frame_read_unsigned_register to read the register's value.
2564 Use fprintf_filtered to display output.
2565 (h8300_print_registers_info): Replace h8300_do_registers_info.
2566 (h8300_gdbarch_init): Set print_registers_info.
2567
f908a0eb
AC
25682002-10-31 Andrew Cagney <cagney@redhat.com>
2569
2570 * frame.c (frame_read_unsigned_register): New function.
2571 (frame_read_signed_register): New function.
2572 * frame.h (frame_read_unsigned_register): Declare.
2573 (frame_read_signed_register): Declare.
2574
c5646e11
AC
25752002-10-31 Andrew Cagney <cagney@redhat.com>
2576
2577 * h8500-tdep.c (h8500_print_registers_info): New static function,
2578 clone of infcmd.c's default_print_registers_info.
2579 (h8500_do_registers_info): New funtion.
2580 (h8500_print_register_hook): Rename print_register_hook, make
2581 static.
2582
2583 * config/h8500/tm-h8500.h: Update copyright.
2584 (DEPRECATED_DO_REGISTERS_INFO): Define.
2585 (h8500_do_registers_info: Declare.
2586 (PRINT_REGISTER_HOOK): Delete macro.
2587 (print_register_hook): Delete function.
2588
0bdd672b
AC
25892002-10-31 Andrew Cagney <cagney@redhat.com>
2590
2591 * z8k-tdep.c (z8k_print_register_hook): Make static.
2592 (z8k_print_registers_info): New static function, clone of
2593 infcmd.c's default_print_registers_info.
2594 (z8k_do_registers_info): New function. Wrap
2595 z8k_print_registers_info.
2596 * config/z8k/tm-z8k.h: Update copyright.
2597 (PRINT_REGISTER_HOOK): Delete macro.
2598 (z8k_print_register_hook): Delete declaration.
2599 (DEPRECATED_DO_REGISTERS_INFO): Define.
2600 (z8k_do_registers_info): Declare.
2601
bf9c25dc
JB
26022002-10-30 Joel Brobecker <brobecker@gnat.com>
2603
2604 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2605 as this is already provided by value.h, and was actually causing
2606 a compilation error because of a conflict in parameter type
2607 declaration due to a missing const keyword.
2608 (low_text_segment_addres): Fix a compilation warning.
2609
2c665b51
DJ
26102002-10-29 Daniel Jacobowitz <drow@mvista.com>
2611
2612 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2613 registers without a name.
2614 (mips_linux_cannot_store_register): Don't store registers without
2615 a name.
2616
e70ea697
DC
26172002-10-28 David Carlton <carlton@math.stanford.edu>
2618
2619 * symtab.c (find_addr_symbol): Delete. (It was already commented
2620 out.)
2621 * symtab.h: Delete prototype for find_addr_symbol.
2622
903ad3a6
AC
26232002-10-26 Andrew Cagney <cagney@redhat.com>
2624
2625 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2626 DO_REGISTERS_INFO.
2627 gdbarch.h, gdbarch.c: Re-generate.
2628 * infcmd.c (default_print_registers_info): Update reference.
2629 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2630 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2631 * sh-tdep.c (sh_gdbarch_init): Ditto.
2632 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2633 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2634
ab91194c
MK
26352002-10-26 Mark Kettenis <kettenis@gnu.org>
2636
e3033f15
MK
2637 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2638 cfi_init_extra_frame_info.
2639 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2640 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2641
b83b026c
MK
2642 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2643 target where necessary. Add more comments and remove the ones
2644 that don't provide any useful information.
2645
267bf4bb
MK
2646 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2647 deprecated_read_register_dummy with
2648 frame_unwind_unsigned_register.
2649
751f1375
MK
2650 * i386-tdep.c (i386_extract_struct_value_address): Use
2651 regcache_raw_read_unsigned instead of
2652 regcache_cooked_read_unsigned since we know that the register
2653 we're reading isn't a pseudo register. Rename variable 'val' into
2654 the more descriptive 'addr'.
2655
26abbdc4
MK
2656 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2657 (x86_64_push_return_address): Add comment.
2658 (x86_64_pop_frame): Make static.
2659 (examine_argument): Clarify comment.
2660 (x86_64_skip_prologue): Make prolog_expact variable static.
2661
9f1549cc
MK
2662 * dwarf2cfi.c: Fix some formatting problems.
2663 (context_cpy, read_encoded_pointer): Clarify comments.
2664
ab91194c
MK
2665 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2666 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2667 i386 target back into x86_64_gdbarch_init. Add some comments and
2668 remove meaningless ones.
2669
72367fb4
AC
26702002-10-25 Andrew Cagney <cagney@redhat.com>
2671
2672 * complaints.h (struct deprecated_complaint): Rename `struct
2673 complaint'.
2674 * complaints.c (complain): Update.
2675 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2676 incorrect comment indicating that "symfile.h" was being included
2677 for the `struct complaint' definition.
2678 * remote-vx.c: Update.
2679 * objc-lang.c: Update.
2680 * xcoffread.c: Update.
2681 * hpread.c: Update.
2682 * mdebugread.c: Update.
2683 * stabsread.c: Update.
2684 * dwarf2read.c: Update.
2685 * dwarfread.c: Update.
2686 * elfread.c: Update.
2687 * coffread.c: Update.
2688 * stabsread.h: Update.
2689 * dbxread.c: Update.
2690 * buildsym.c: Update.
2691 * gdbtypes.c: Update.
2692 * macrotab.c: Update.
2693
1f2baacc
MK
26942002-10-25 Mark Kettenis <kettenis@gnu.org>
2695
0c1a73d6
MK
2696 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2697 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2698 (x86_64_init_abi): ...new function.
2699
6aee4d54 2700 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2701 * i386v-nat.c: Include "i386-tdep.h".
2702
8f9cbe01
AC
27032002-10-25 Andrew Cagney <cagney@redhat.com>
2704
5f11f355
AC
2705 * gdbtypes.c (address_space_name_to_int): Update.
2706 (address_space_int_to_name): Update.
2707 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2708 multi-arch predicate.
2709 (address_class_name_to_type_flags): Ditto.
2710 * gdbarch.h, gdbarch.c: Re-generate.
2711
8f9cbe01
AC
2712 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2713
e8d96a5d
MH
27142002-10-24 Martin M. Hunt <hunt@redhat.com>
2715
2716 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2717
fe39c653
EZ
27182002-10-24 Elena Zannoni <ezannoni@redhat.com>
2719
2720 * symtab.h (INIT_SAL): Delete macro.
2721 (init_sal): Export.
2722 * symtab.c (init_sal): New function.
2723
2724 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2725 to init_sal function call.
2726 (find_sal_from_funcs_and_line): Ditto.
2727 (all_sals_for_line): Ditto.
2728 * breakpoint.c (create_internal_breakpoint): Ditto.
2729 (create_fork_vfork_event_catchpoint): Ditto.
2730 (create_exec_event_catchpoint): Ditto.
2731 (parse_breakpoint_sals): Ditto.
2732 (watch_command_1): Ditto.
2733 (handle_gnu_4_16_catch_command): Ditto.
2734 (clear_command): Ditto.
2735 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2736 * infcmd.c (run_stack_dummy): Ditto.
2737 * infrun.c (process_event_stop_test): Ditto.
2738 (check_sigtramp2): Ditto.
2739 (step_over_function): Ditto.
2740 * linespec.c (decode_line_2): Ditto.
2741 (decode_line_1): Ditto.
2742 * source.c (line_info): Ditto.
2743 * symtab.c (find_pc_sect_line): Ditto.
2744
baed091b
ML
27452002-10-24 Michal Ludvig <mludvig@suse.cz>
2746
2747 * dwarf2cfi.c (struct context)
2748 (struct context_reg): Moved to dwarf2cfi.h
2749 (context_alloc, frame_state_alloc, context_cpy):
2750 Made extern instead of static, removed prototypes.
2751 * dwarf2cfi.h (struct context)
2752 (struct context_reg): New, moved from dwarf2cfi.c
2753 (context_alloc, frame_state_alloc, context_cpy):
2754 New prototypes.
2755 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2756 Changed from static to extern.
2757 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2758 (LINUX_SIGCONTEXT_FP_OFFSET)
2759 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2760 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2761 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2762 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2763 set_gdbarch_*() calls now use x86-64 specific functions
2764 instead of DWARF2 CFI ones.
2765 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2766 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2767 (x86_64_init_extra_frame_info): New prototypes.
2768
c38da1af
DC
27692002-10-23 David Carlton <carlton@math.stanford.edu>
2770
2771 * linespec.c: #include "parser-defs.h".
2772 Delete prototype for find_template_name_end.
2773 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2774
fb9b6b35
JJ
27752002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2776
2777 * NEWS: add recent mi fixes.
2778 * varobj.c (struct varobj): Add new "updated" flag.
2779 (new_variable): Default "updated" flag to 0.
2780 (varobj_set_value): Set "updated" flag to 1 if value
2781 changes.
2782 (varobj_update): Check varobj "updated" flag before
2783 comparing old and refreshed values. Fix for
2784 PR gdb/702.
2785
8da065d5
DC
27862002-10-23 David Carlton <carlton@math.stanford.edu>
2787
2788 * parse.c (parse_exp_1): Use BLOCK_START.
2789 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2790 SYMBOL_BLOCK_VALUE.
2791 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2792
87f2f08c
DC
27932002-10-23 David Carlton <carlton@math.stanford.edu>
2794
2795 * symtab.c: Delete cplusplus_hint.
2796 Delete prototype for find_template_name_end.
2797
88cda038
EZ
27982002-10-23 Elena Zannoni <ezannoni@redhat.com>
2799
2800 * symtab.h: Update comment.
2801
2625d86c
MS
28022002-10-23 Michael Snyder <msnyder@redhat.com>
2803
2804 * printcmd.c (address_info): Restore quotes in output.
2805 * valops.c (value_of_local): Restore quotes in error message.
2806
9cc0d196
EZ
28072002-10-23 Elena Zannoni <ezannoni@redhat.com>
2808
2809 * symtab.c (symbol_demangled_name): New function.
2810 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2811 turning most of it into a function.
2812 (symbol_demangled_name): Export.
2813
19de93d0
MS
28142002-10-23 Michael Snyder <msnyder@redhat.com>
2815
2816 * valops.c (value_of_local): Restore quotes in error message.
2817
89aad1f9
EZ
28182002-10-23 Elena Zannoni <ezannoni@redhat.com>
2819
2820 * symtab.c (symbol_init_language_specific): New function.
2821 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2822 turning most of it into a function.
2823 (symbol_init_language_specific): Export.
2824
d9fa45fe
DC
28252002-10-23 David Carlton <carlton@math.stanford.edu>
2826
2827 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2828 (dwarf_attr_name): Ditto.
2829 (dwarf_type_encoding_name): Ditto.
2830 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2831 (process_die): Handle DW_TAG_namespace,
2832 DW_TAG_imported_declaration, DW_TAG_imported_module.
2833 (read_namespace): New function.
2834
1045b512
JB
28352002-10-22 Joel Brobecker <brobecker@gnat.com>
2836
2837 * configure.in: Define NEW_PROC_API on Interix too.
2838 * configure: Regenerate.
2839
28402002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2841
2842 * configure: Regenerate using the proper version of autoconf.
2843
3987b9d4
EZ
28442002-10-21 Elena Zannoni <ezannoni@redhat.com>
2845
2846 * findvar.c (read_var_value): Temporarily disable TLS code, until
2847 complete TLS support is added.
2848
9d774e44
EZ
28492002-10-21 Jim Blandy <jimb@redhat.com>
2850 Elena Zannoni <ezannoni@redhat.com>
2851
2852 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2853 for thread local storage locations.
2854 (struct symbol): Add objfile field.
2855 (SYMBOL_OBJFILE): Define.
2856 * dwarf2read.c (is_thread_local): New static variable.
2857 (new_symbol): If variable is in thread local fill in address class
2858 and objfile appropriately.
2859 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2860 stack operation.
2861 * printcmd.c (address_info): Print the information for thread
2862 local storage variable.
2863 * findvar.c (read_var_value): In case of thread local variable,
2864 defer to the target vector code to compute address.
2865
bc4a16ae
EZ
28662002-10-21 Elena Zannoni <ezannoni@redhat.com>
2867
2868 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2869 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2870
407caf07
EZ
28712002-10-21 Elena Zannoni <ezannoni@redhat.com>
2872
2873 * symtab.h (address_class): Rename
2874 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2875 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2876 * printcmd.c (address_info): Ditto.
2877 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2878
005328e3
MK
28792002-10-20 Mark Kettenis <kettenis@gnu.org>
2880
afdb036a
MK
2881 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2882 DBREG_DRX macro to acces debug registers.
2883
ca02e098
MK
2884 * Makefile.in (i386obsd-tdep.o): New target.
2885
03cc47f7
MK
2886 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2887 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2888
005328e3
MK
2889 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2890 * config/i386/obsd.mt: New file.
2891 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2892 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2893 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2894 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2895 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2896 * i386obsd-tdep.c: New file.
2897
9c96f9f2
AF
28982002-10-19 Adam Fedor <fedor@gnu.org>
2899
2900 * objc-exp.y (name_not_typename): Fix invalid comment.
2901
ce1ed485
MK
29022002-10-20 Mark Kettenis <kettenis@gnu.org>
2903
2904 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2905 to allocate partial syms and macro byte caches.
2906
1efc7aaa
DC
29072002-10-18 David Carlton <carlton@math.stanford.edu>
2908
2909 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2910
7e1d63ec
AF
29112002-10-18 Adam Fedor <fedor@gnu.org>
2912
2913 * stabsread.c (find_name_end): New function.
2914 (define_symbol): Use it.
2915
6e8d29a9
DJ
29162002-10-18 Daniel Jacobowitz <drow@mvista.com>
2917
2918 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2919 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2920 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2921 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2922
1efc7aaa 29232002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2924
2925 * symfile.h: Add opaque declaration for struct obstack.
2926 Declare obsavestring to take a const char *.
2927 * symfile.c (obsavestring): Make first argument a const char *.
2928
1aeae86e
AF
29292002-10-16 Adam Fedor <fedor@gnu.org>
2930
2931 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2932 names when matching breakpoints in current file.
2933
8b2dbe47
KB
29342002-10-16 Kevin Buettner <kevinb@redhat.com>
2935
2936 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2937 (read_tag_pointer_type): Add address class support.
2938 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2939 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2940 New methods.
2941 * gdbarch.h, gdbarch.c: Regenerate.
2942 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2943 (make_type_with_address_space, recursive_type_dump): Add address
2944 class support.
2945 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2946 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2947 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2948
74451869
KD
29492002-10-16 Klee Dienes <kdienes@apple.com>
2950
2951 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2952 to get the last character of a char[] buffer, not
2953 name[sizeof(vptr_name)-1].
2954
ff4cb3e8
AF
29552002-10-14 Adam Fedor <fedor@gnu.org>
2956
2957 * symtab.h: New objc_specific struct.
2958 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2959 (SYMBOL_DEMANGLED_NAME): Likewise.
2960
da2cf7e0
AF
29612002-10-14 Adam Fedor <fedor@gnu.org>
2962
2963 * symfile.c (init_filename_language_table): Add ObjC file extension.
2964
4a351cef
AF
29652002-10-14 Adam Fedor <fedor@gnu.org>
2966
2967 * utils.c (puts_filtered_tabular): New function.
2968 (fprintf_symbol_filtered): Get ObjC demangled name.
2969 * defs.h (puts_filtered_tabular): Declared.
2970
9750e763
KB
29712002-10-14 Kevin Buettner <kevinb@redhat.com>
2972
2973 * c-lang.h (c_type_print_varspec_prefix): Delete.
2974 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2975 ``need_post_space'' parameter. Adjust all callers.
2976
eee771c1
DJ
29772002-10-14 Daniel Jacobowitz <drow@mvista.com>
2978
2979 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2980 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2981 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2982 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2983
46c82446
AF
29842002-10-13 Adam Fedor <fedor@gnu.org>
2985
2986 * source.c (print_source_lines): Update comments.
2987
d069f99d
AF
29882002-10-13 Adam Fedor <fedor@gnu.org>
2989
2990 * valops.c (value_of_local): New function.
2991 (value_of_this): Use it.
2992 * value.h (value_of_local): Declared.
2993
53c551b7
AF
29942002-10-13 Adam Fedor <fedor@gnu.org>
2995
2996 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2997 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2998
eb392fbf
AF
29992002-10-12 Adam Fedor <fedor@gnu.org>
3000
3001 * language.c (binop_result_type): Add language_objc to case.
3002 (integral_type): Likewise.
3003 (character_type): Likewise.
3004 (string_type): Likewise.
3005 (boolean_type): Likewise.
3006 (structured_type): Likewise.
3007 (binop_type_check): Likewise.
3008
e2b23ee9
AF
30092002-10-11 Adam Fedor <fedor@gnu.org>
3010
3011 * printcmd.c (address_info): Print 'self' for ObjC.
3012
b01ab485
AF
30132002-10-11 Adam Fedor <fedor@gnu.org>
3014
3015 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3016 OP_SELF.
3017
806e6073
AF
30182002-10-11 Adam Fedor <fedor@gnu.org>
3019
3020 * language.h (CAST_IS_CONVERSION): Add language_objc.
3021
50f85cdf
AF
30222002-10-11 Adam Fedor <fedor@gnu.org>
3023
3024 * defs.h (enum language): Add language_objc.
3025
0d540cdf
KD
30262002-10-11 Klee Dienes <kdienes@apple.com>
3027
69266111 3028 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3029 * gdbcore.h (read_memory_typed_address): Add prototype.
3030 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3031 to read a value destined for a CORE_ADDR, not read_memory_integer.
3032 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3033 (f77_get_dynamic_lowerbound): Ditto.
3034
d5dc7960
MH
30352002-10-11 Martin M. Hunt <hunt@redhat.com>
3036
3037 * utils.c (string_to_core_addr): After turning string into
3038 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3039 which will do necessary sign-extension, etc.
3040
8343f86c
DJ
30412002-10-11 Daniel Jacobowitz <drow@mvista.com>
3042
3043 * c-exp.y (THIS): Delete token and grammar rule.
3044 (yylex): Don't return THIS.
3045 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3046 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3047 * demangle.c (cplus_markers): Update comment. Put '$'
3048 first. Remove CPLUS_MARKER.
3049 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3050 * jv-exp.y (THIS): Delete token and grammar rule.
3051 (yylex): Don't return THIS.
3052 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3053 * objc-exp.y (THIS): Delete token and grammar rule.
3054 (yylex): Don't return THIS.
3055 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3056 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3057 (read_member_functions): Likewise for opname.
3058 (read_tilde_fields): Use is_cplus_marker.
3059
3060 * defs.h (CPLUS_MARKER): Don't define.
3061 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3062 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3063 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3064 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3065 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3066
3067 * config/i386/tm-i386v4.h: Delete file.
3068 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3069 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3070 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3071 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3072 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3073 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3074 * config/i386/i386v4.mt (TM_FILE): Likewise.
3075 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3076
967c0d83
MM
30772002-10-10 Marko Mlinar <markom@opencores.org>
3078
3079 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3080 accidentially not commited 2002-10-09
3081 * gdbarch.h, gdbarch.c: Re-generate.
3082
f74fa174
MM
30832002-10-09 Marko Mlinar <markom@opencores.org>
3084
3085 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3086 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3087 * gdbarch.h, gdbarch.c: Re-generate.
3088
57349743
JB
30892002-10-08 Petr Sorfa <petrs@caldera.com>
3090
3091 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3092
3093 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3094 so we can work on more than one compilation unit at a time. This
3095 helps prepare GDB to handle inter-CU die references.
3096 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3097 the code to be defined before struct comp_unit_head.
3098 (comp_unit_head): Added new members - offset, cu_head,
3099 begin_die, next and dwarf2_abbrevs.
3100 (dwarf2_abbrevs): Removed single static var; now member of
3101 struct comp_unit_head.
3102 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3103 members.
3104 (psymtab_to_symtab_1): Changed to work with the new
3105 struct comp_unit_head.
3106 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3107 constructs the dwarf2_abbrevs[] inside the cu_header.
3108 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3109 dwarf2_abbrev table to clean up.
3110 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3111 handling of dwarf2_abbrevs inside the cu_header.
3112 (read_partial_die): Now supports the call to the new
3113 dwarf2_lookup_abbrev.
3114 (read_full_die): Now supports the call to the new
3115 dwarf2_lookup_abbrev.
3116
4092aadb
CF
31172002-10-06 Christopher Faylor <cgf@redhat.com>
3118
3119 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3120 insure that shell variables, such as "transformed_name" are propagated
3121 to later shell statements in rule.
3122
af0b2512
MK
31232002-10-06 Mark Kettenis <kettenis@gnu.org>
3124
3125 * config/i386/nm-i386sco.h: Add protection against
3126 multiple-inclusion. Include "i386/nm-i386v.h".
3127 (REGISTER_U_ADDR): Remove define.
3128 (i386_register_u_addr): Remove prototype.
3129
d6020d45
MS
31302002-10-04 Michael Snyder <msnyder@redhat.com>
3131
3132 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3133 before treating it as a single-step event.
3134
7248f48e
AF
31352002-10-03 Adam Fedor <fedor@gnu.org>
3136
3137 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3138 (objc_demangle): Remove assignment in if statements, Replace
3139 free with xfree.
3140 (add_msglist): Likewise.
3141 (end_msglist): Likewise.
3142 (complare_selectors): Likewise.
3143 (selectors_info): Likewise.
3144 (compare_classes): Likewise.
3145 (classes_info): Likewise.
3146 (print_object_command): Likewise.
3147 (find_objc_msgcall_submethod): Replace PTR with void *.
3148 * objc-lang.h: Remove check for __STDC__.
3149
52c6a6ac
JJ
31502002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3151
3152 * ui-out.h (ui_out_field_fmt_int): New prototype.
3153 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3154 of field width and alignment.
3155 * stack.c (print_frame_info_base): When printing frame level, use
3156 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3157 PR gdb/192
3158
7e3cec17
JJ
31592002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3160
3161 * MAINTAINERS: Add self to Write After Approval list.
3162
a58dd373
EZ
31632002-10-02 Elena Zannoni <ezannoni@redhat.com>
3164
3165 * infcmd.c (interrupt_target_command_wrapper): Delete.
3166 (interrupt_target_command): Make non static.
3167 (nofp_registers_info): Make static.
3168 * stack.c (return_command_wrapper): Delete.
3169 (return_command): Make non static.
3170
cee6ddeb
EZ
31712002-10-02 Elena Zannoni <ezannoni@redhat.com>
3172
3173 * event-top.c (gdb_setup_readline): New function. Code moved from
3174 _initialize_event_loop().
3175 (_initialize_event_loop): Call gdb_setup_readline().
3176
c4ed33b9
AC
31772002-10-02 Andrew Cagney <ac131313@redhat.com>
3178
3179 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3180 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3181 * gdbarch.h, gdbarch.c: Re-generate.
3182
cef4f5dd
DJ
31832002-10-02 Daniel Jacobowitz <drow@mvista.com>
3184
3185 Fix PR gdb/778
3186 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3187 before recursing.
3188 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3189 of fill_in_vptr_fieldno.
3190
36dc181b 31912002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3192
36dc181b
EZ
3193 * inferior.h (registers_info, stepi_command, nexti_command,
3194 continue_command, interrupt_target_command): Export from infcmd.c.
3195 * frame.h (args_info, selected_frame_level_changed_hook,
3196 return_command): Export from stack.c.
3197 * v850ice.c (stepi_command, nexti_command, continue_command): use
3198 prototypes from inferior.h.
3199 * tracepoint.c (registers_info, args_info, locals_info): Use
3200 prototypes from frame.h and inferior.h.
3201 * Makefile.in (mi-main.o): Add dependency on frame.h.
3202
6f99cb26
AC
32032002-10-02 Andrew Cagney <ac131313@redhat.com>
3204
da3eff49
AC
3205 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3206 value in register 3 adjusted by ppc_gp0_regnum.
3207
6f99cb26
AC
3208 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3209
da615bee
MM
32102002-10-02 Marko Mlinar <markom@opencores.org>
3211
3212 * MAINTAINERS: Add myself to the Write After Approval list.
3213
d154bee2
AO
32142002-10-01 Alexandre Oliva <aoliva@redhat.com>
3215
62a49b2c
AO
3216 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3217 of the section for the N64 ABI, fixed.
3218
d154bee2
AO
3219 * config/mips/tm-irix6.h: Include solib.h.
3220
ed348acc
EZ
32212002-10-01 Elena Zannoni <ezannoni@redhat.com>
3222
3223 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3224 GNU operators.
3225
da0f9dcd
AC
32262002-10-01 Andrew Cagney <ac131313@redhat.com>
3227
3228 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3229 and that "mi0" syntax has been removed.
3230
bdf64bac
DC
32312002-09-30 David Carlton <carlton@math.stanford.edu>
3232
3233 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3234 * ppc-sysv-tdep.c: #include "gdb_string.h".
3235 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3236 pacify GCC.
3237
54c2a1e6
AC
32382002-10-01 Andrew Cagney <ac131313@redhat.com>
3239
3240 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3241 "vrsave"'s register number.
3242
cedea778
AC
32432002-09-30 Andrew Cagney <ac131313@redhat.com>
3244
3245 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3246 use frame_unwind_signed_register to obtain the PC.
3247 (mips_frame_chain): Handle a generic dummy frame.
3248 (mips_init_extra_frame_info): When a generic dummy frame, don't
3249 re-compute the frame base.
3250 (mips_pop_frame): Handle generic dummy frames.
3251 (mips_gdbarch_init): When generic dummy frames, set
3252 use_generic_dummy_frames, push_dummy_frame to
3253 generic_push_dummy_frame, pc_in_call_dummy to
3254 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3255 generic_save_dummy_frame_tos.
3256
68315eb8
AC
32572002-09-30 Andrew Cagney <ac131313@redhat.com>
3258
3259 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3260 against TOP when TOP was explictly set.
3261 (generic_push_dummy_frame): Set TOP to zero.
3262
3b8630c3
EZ
32632002-09-30 Elena Zannoni <ezannoni@redhat.com>
3264
3265 * event-loop.c (start_event_loop): Rename variable 'result' to
3266 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3267
28ee05e9
KS
32682002-09-30 Keith Seitz <keiths@redhat.com>
3269
3270 * gdb-events.sh (selected_thread_changed): New event.
3271 * gdb-events.c: Regenerated.
3272 * gdb-events.h: Regenerated.
3273
6eecb1c8
HPN
32742002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3275
3276 * MAINTAINERS: Add self to Write After Approval list.
3277
92df71f0
FN
32782002-09-30 Fernando Nasser <fnasser@redhat.com>
3279
3b8630c3
EZ
3280 * disasm.c: New file.
3281 * disasm.h: New file.
92df71f0
FN
3282 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3283 (compare_lines): Ditto.
3284 (dump_insns): Ditto.
3b8630c3
EZ
3285 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3286 argument.
92df71f0 3287 (do_assembly_only): Ditto.
3b8630c3
EZ
3288 (do_disassembly): Renamed to gdb_disassembly and moved to
3289 disasm.c. Sdded uiout argument.
3290 * Makefile.in: Add new files. Reorder SFILES list. Update
3291 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3292
0c22854d
AC
32932002-09-29 Andrew Cagney <ac131313@redhat.com>
3294
3295 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3296 bfd/elf64-alpha-fbsd.c.
3297
e67f2023
AC
32982002-09-29 Andrew Cagney <ac131313@redhat.com>
3299
3300 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3301 i386gnu-tdep.c.
3302
89396210
AC
33032002-09-29 Andrew Cagney <ac131313@redhat.com>
3304
3305 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3306 __FUNCTION__.
3307 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3308 function name.
3309 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3310 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3311 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3312 (S_msg_sig_post_reply): Ditto.
3313
7079c36c
CV
33142002-09-28 Corinna Vinschen <vinschen@redhat.com>
3315
89396210
AC
3316 * sh-tdep.c (sh_use_struct_convention): Use definition according
3317 to ABI.
7079c36c
CV
3318 (sh_push_arguments): Store in register with correct endianess.
3319 (sh_default_store_return_value): Ditto.
3320 (sh_gdbarch_init): Set sizeof long double to 8.
3321
975ac915
MK
33222002-09-27 Mark Kettenis <kettenis@gnu.org>
3323
3324 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3325 Fix some whitespace problems.
3326
9bbe19fb
DC
33272002-09-27 David Carlton <carlton@math.stanford.edu>
3328
3329 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3330 (mcore-tdep.o): Ditto.
3331 (ns32k-tdep.o): Ditto.
3332 (ns32knbsd-tdep.o): Ditto.
3333 (sh3-rom.o): Ditto.
3334 (vax-tdep.o): Ditto.
3335 * cris-tdep.c: #include "gdb_string.h"
3336 * mcore-tdep.c: Ditto.
3337 * ns32k-tdep.c: Ditto.
3338 * ns32knbsd-tdep.c: Ditto.
3339 * sh3-rom.c: Ditto.
3340 * vax-tdep.c: Ditto.
3341
43b2fdc7
DC
33422002-09-27 David Carlton <carlton@math.stanford.edu>
3343
3344 * config/djgpp/fnchange.lst: Add entries for
3345 gdb/testsuite/gdb.c++/m-static files.
3346
e8cfbbd9
JW
33472002-09-27 Jim Wilson <wilson@redhat.com>
3348
3349 * MAINTAINERS: Add myself to the Write After Approval list.
3350
43b2fdc7 33512002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3352
3353 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3354
3355
9f3b7f07
AC
33562002-09-26 Andrew Cagney <ac131313@redhat.com>
3357
3358 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3359 frame.
3360
11269d7e
AC
33612002-09-26 Andrew Cagney <ac131313@redhat.com>
3362
3363 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3364 (rs6000_struct_return_address): Delete variable.
3365 (rs6000_store_struct_return): Update.
3366 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3367 deprecated_extract_struct_value_address.
3368 (rs6000_frame_align): New function.
3369 (rs6000_gdbarch_init): Set frame_align.
3370
f15ab4a7
AC
33712002-09-26 Andrew Cagney <ac131313@redhat.com>
3372
3373 From Grace Sainsbury <graces@redhat.com>:
3374 * Makefile.in (gdbtk-main.o): New target.
3375 (gdb.o): New target.
3376 (main_h): Define.
3377 (main.o): Update dependencies.
3378 (gdb$(EXEEXT)): Add gdb.o.
3379 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3380 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3381 (SUBDIR_GDBTK_CLEAN): Set.
3382 (install-gdbtk): Install the insight binary.
3383 (uninstall-gdbtk): New target.
3384 (all-gdbtk, clean-gdbtk): New rule.
3385 * top.c (use_windows): Default to zero.
3386 * main.c: Include "main.h".
3387 (main): Delete.
3388 (struct captured_main_args): Delete.
3389 (gdb_main): New function.
3390 * main.h: New file.
3391 * gdb.c: New File.
3392
e36180d7
AC
33932002-09-25 Andrew Cagney <cagney@redhat.com>
3394
3395 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3396 (frame_map_regnum_to_name): New function.
3397 (frame_map_name_to_regnum): New function.
3398 * frame.h (frame_map_name_to_regnum): Declare.
3399 (frame_map_regnum_to_name): Declare.
3400 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3401 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3402 * parse.c: Do not include "builtin-regs.h".
3403 (target_map_name_to_register): Delete function.
3404 (write_dollar_variable): Use frame_map_name_to_regnum.
3405 * parser-defs.h (target_map_name_to_register): Delete declaration.
3406 * expprint.c: Include "frame.h".
3407 (print_subexp): Use frame_map_regnum_to_name.
3408 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3409 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3410
8b69000d
AC
34112002-09-25 Andrew Cagney <ac131313@redhat.com>
3412
3413 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3414 wasn't saved, and the next innermost frame is a dummy, return the
3415 dummy frame's link register.
3416
046ca86a
JB
34172002-09-24 Jim Blandy <jimb@redhat.com>
3418
3419 Fix from Paul Breed:
3420 * main.c (captured_main): Add a `break' after the case for 'b'.
3421
94b66fa7
KS
34222002-09-24 Keith Seitz <keiths@redhat.com>
3423
3424 * varobj.c (c_type_of_child): Use get_target_type instead
3425 of TYPE_TARGET_TYPE.
3426
c214a6fd
FN
34272002-09-22 Fernando Nasser <fnasser@redhat.com>
3428
53cb0458
FN
3429 * source.c (get_current_or_default_source_symtab_and_line): Remove
3430 function.
3431 (set_default_source_symtab_and_line): New function. Attempts to
3432 determine a source file to list lines from if one is not currently
3433 defined.
3434 (get_current_source_symtab_and_line): Initialize sal.pc and
3435 sal.end fields.
3436 (set_current_source_symtab_and_line): Mark argument as const.
3437 * source.h: Update declarations and comments.
3438 * linespec.c (decode_line_1): Replace call to removed routine above.
3439 * stack.c (print_frame_info_base): Ditto.
3440 * cli/cli-cmds.c (edit_command): Ditto.
3441 (list_command): Ditto.
3442
34432002-09-22 Fernando Nasser <fnasser@redhat.com>
3444
d6020d45 3445 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3446 sal.pc and sal.end fields.
c214a6fd
FN
3447 (get_current_or_default_source_symtab_and_line): Ditto.
3448 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3449 so we do not cause a new source symtab to be searched for (reverting an
3450 unintentional change from the 2002-09-20 patch).
3451 * scm-lang.c (scm_unpac): Ditto.
3452
cc3b68a5
AC
34532002-09-21 Andrew Cagney <cagney@redhat.com>
3454
3455 * complaints.c (symfile_explanations): Remove new-line from
3456 ``isolated_message''.
3457 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3458 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3459
5835abe7
NC
34602002-09-20 Nick Clifton <nickc@redhat.com>
3461
3462 * NEWS: Announce that V850EA ISA is no longer supported.
3463 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3464
a15ef5f5
DC
34652002-09-20 David Carlton <carlton@math.stanford.edu>
3466
06ba1b39
DC
3467 * Makefile.in (c-lang.o): Correct dependencies.
3468 (utils.o): Gather dependencies.
3469 (charset.o): Move.
a15ef5f5
DC
3470 * c-lang.c: #include "gdb_string.h"
3471
87885426
FN
34722002-09-20 Fernando Nasser <fnasser@redhat.com>
3473
3474 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3475 * cli/cli-cmds.c (list_command): New function. Implements the new
3476 cli edit command.
3477 (_init_cli_cmds): Add new command definition.
3478 * gdb.1: Document edit command.
3479 * doc/gdb.texinfo: Document edit command.
3480
34812002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3482
3483 * source.c: Make global variables current_source_symtab and
3484 current_source_line static.
3485 (list_command): Moved to cli/cli-cmds.c.
3486 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3487 (get_first_line_listed): New accessor function.
3488 (get_lines_to_list): New accessor function.
3489 (get_current_source_symtab_and_line): New function. Retrieves the
3490 position in the source code that we consider current.
3491 (get_current_or_default_source_symtab_and_line): New function.
3492 Like the above but attempts to determine a default position if one
3493 is not currently defined.
3494 (set_current_source_symtab_and_line): New function. Sets the source
3495 code position considered current and returns the previously set one.
3496 (clear_current_source_symtab_and_line): Reset stored information about
3497 a current source line.
3498 (_initialize_source): Remove registration for the "list" command and
3499 its alias.
3500 * source.h: Add declarations for the new functions above.
3501 * symtab.h: Remove declarations for the global variables mentioned
3502 above.
3503 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3504 obtain current source line.
3505 * linespec.c (decode_line_1): Ditto.
3506 * macroscope.c (default_macro_scope): Ditto.
3507 * scm-lang.c (scm_unpac): Ditto.
3508 * stack.c (print_frame_info_base): Ditto.
3509 * symfile.c (clear_symtab_users): Ditto.
3510 * symtab.c (decode_line_spec): Ditto.
3511 * cli/cli-cmds.c (list_command): Moved here from source.c.
3512 (ambiguous_line_spec): Moved here from source.c.
3513 (_init_cli_cmds): Add definition for "list" and its alias.
3514 * Makefile.in: Update dependencies.
3515
ddd216ea
CV
35162002-09-20 Corinna Vinschen <vinschen@redhat.com>
3517
3518 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3519 with what gcc thinks is correct.
3520
6d305052
CV
35212002-09-20 Corinna Vinschen <vinschen@redhat.com>
3522
3523 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3524 multiple register push instruction.
3525
234b45d4
KB
35262002-09-19 Jim Blandy <jimb@redhat.com>
3527
3528 Add support for distinct host and target character sets.
3529 * charset.c, charset.h: New files.
3530 * c-exp.y: #include "charset.h".
3531 (yylex): Convert character and string literals to the target
3532 character set, before returning them as the semantic value of the
3533 token.
3534 * c-lang.c: #include "charset.h".
3535 (c_emit_char): Use charset-specific methods to recognize
3536 characters with backslash escape forms, to decide which characters
3537 to print literally and which to print using numeric escape
3538 sequences, and to convert target characters to host characters
3539 before printing.
3540 * utils.c: #include "charset.h".
3541 (no_control_char_error): New function.
3542 (parse_escape): Use charset-specific methods to recognize
3543 backslash escapes, parse `control character' notation, and convert
3544 characters from the host character set to the target character set.
3545 * configure.in: Set the default host character set.
3546 Check where to find iconv, and what its argument types might be.
3547 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3548 * Makefile.in (SFILES): List charset.c.
3549 (COMMON_OBS): List charset.o.
3550 (charset.o): New rule.
3551 (charset_h): New header dependency variable.
3552 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3553 (LIBICONV): New variable, set by configure.
3554 (CLIBS): Include $(LIBICONV) here.
3555 * aclocal.m4, config.in, configure: Regenerated.
3556
525d6a61
JB
35572002-09-19 Joel Brobecker <brobecker@gnat.com>
3558
3559 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3560 bison 1.35 warning.
3561
3ed93867
RE
35622002-09-19 Richard Earnshaw <rearnsha@arm.com>
3563
3564 * gdb_mbuild.sh: New file.
3565
437666f8
AC
35662002-09-19 Andrew Cagney <ac131313@redhat.com>
3567
3568 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3569
389e51db
AC
35702002-09-18 Andrew Cagney <ac131313@redhat.com>
3571
3572 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3573 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3574 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3575 valops.c, value.h: Revert previous change.
3576
3b4efeaa
MS
35772002-09-18 Michael Snyder <msnyder@redhat.com>
3578
3579 Preliminary support for Objective-C:
3580 * defs.h (language_objc): New enum value.
3581 (puts_filtered_tabular): Declaration only, exported from utils.c.
3582 (skip_quoted): Delete, declared in completer.h.
3583 * c-exp.y: Include completer.h.
3584 * p-exp.y: Ditto.
3585 * jv-exp.y: Ditto.
3586 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3587 New operator enum values.
3588 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3589 * language.c (binop_result_type): Handle language_objc case.
3590 (integral_type, character_type, string_type, boolean_type,
3591 structured_type, binop_type_check): Ditto.
3592 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3593 (struct objc_specific): Add to general_symbol_info.
3594 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3595 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3596 * parser-defs.h (struct objc_class_str): New struct type.
3597 (start_msglist, end_msglist, add_msglist): Declaration only,
3598 exported from objc-lang.c.
3599 * value.h (value_of_local, value_nsstring,
3600 call_function_by_hand_expecting_type): Exported from valops.c.
3601 * valops.c (find_function_addr): Export.
3602 (call_function_by_hand_expecting_type): New function.
3603 (value_of_local): New function.
3604 * symfile.c (init_filename_language_table): Add ".m" extension
3605 for Objective-C.
3606 * utils.c (puts_filtered_tabular): New function.
3607 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3608 (set/show demangle): Extend help-string to refer to ObjC.
3609 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3610 * stabsread.c (symbol_reference_defined): Objective-C symbols
3611 may contain colons: make allowances when scanning stabs strings
3612 for colons.
3613 (objc_find_colon): New function.
3614 * printcmd.c (address_info): If language == objc then print
3615 "self" instead of "this".
3616 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3617 OP_NSSTRING, and OP_SELF.
3618 (prefixify_subexp): Ditto.
3619 * source.c (print_source_lines): Mention objc in comment.
3620 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3621 method names.
3622
b9caf505
AC
36232002-09-18 Andrew Cagney <ac131313@redhat.com>
3624
3625 * complaints.h: Update copyright.
3626 (struct complaints): Declare.
3627 (struct complaint): Make `message' constant.
3628 (internal_complaint): Declare.
3629 (complaint): Declare.
3630 (complaint_root): Delete declaration.
3631 (symfile_complaints): Delete declaration.
3632 (struct complaints): Add opaque declaration.
3633 (clear_complaints): Add a complaints parameter.
3634 * complaints.c: Update copyright.
3635 (enum complaint_series): Define.
3636 (complaint_root): Delete.
3637 (struct complaints): Define.
3638 (complaint_sentinel, symfile_complaint_book): New variables.
3639 (symfile_explanations, symfile_complaints): New variables.
3640 New variables.
3641 (get_complaints): New function.
3642 (vcomplaint): New function.
3643 (complaint): New function.
3644 (internal_complaint): New function.
3645 (complain): Call vcomplain with symfile_complaint.
3646 (clear_complaints): Rewrite.
3647 (_initialize_complaints): Use add_setshow_command.
3648 * Makefile.in (complaints.o): Update dependencies.
3649 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3650 to call to clear_complaints.
3651 (new_symfile_objfile, reread_symbols): Ditto.
3652 (oldsyms_complaint): Delete.
3653 (empty_symtab_complaint, unknown_option_complaint): Delete.
3654 (free_named_symtabs): Use complaint instead of complain.
3655
d2e6263c
MS
36562002-09-18 Michael Snyder <msnyder@redhat.com>
3657
5fb2031a
AC
3658 Contributed by Apple Computer, Inc. Merged with current sources
3659 by Adam Fedor <fedor@doc.com> [cagney].
3660
d2e6263c
MS
3661 * objc-lang.c: First clean-up round: comments, indentation.
3662 * objc-lang.h: Ditto.
3663 * objc-lang.y: Ditto.
3664
dec43320
AC
36652002-09-18 Andrew Cagney <ac131313@redhat.com>
3666
3667 * maint.c (maintenance_internal_error): Print the parameter as the
3668 error message.
3669 (maintenance_internal_warning): New function.
3670 (_initialize_maint_cmds): Add command `maint internal-warning'.
3671
3672 * defs.h (internal_warning, internal_vwarning): Declare.
3673 * utils.c (struct internal_problem): Define.
3674 (internal_vproblem): New function.
3675 (internal_warning): New function.
3676 (internal_vwarning): New function.
3677 (internal_warning_problem, internal_error_problem): New variables.
3678 (internal_verror): Just call internal_vproblem.
3679
b81654f1
MS
36802002-09-18 Michael Snyder <msnyder@redhat.com>
3681
3682 * objc-lang.c: New file, support for Objective-C.
3683 Preliminary check-in, not yet integrated into gdb.
3684 * objc-lang.h: New file.
3685 * objc-exp.y: New file.
3686
0542c381
AC
36872002-09-18 Andrew Cagney <ac131313@redhat.com>
3688
7bda5e4a
AC
3689 * infrun.c (signal_stop_update): Convert definition to ISO C.
3690 (signal_print_update): Ditto.
3691 (signal_pass_update): Ditto.
3692 * inflow.c (terminal_save_ours): Ditto.
3693
5247b418
AC
3694 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3695 comments.
3696
fc60962c
AC
3697 * config/djgpp/fnchange.lst: Handle name clashes between
3698 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3699 bfd/coff-tic80.c.
3700
0542c381
AC
3701 * i386-linux-tdep.h: Fix tipo.
3702
5b924b9b
AF
37032002-09-18 Adam Fedor <fedor@gnu.org>
3704
3705 * MAINTAINERS: Add myself to the Write After Approval list.
3706
5afc051b
JB
37072002-09-18 Jim Blandy <jimb@redhat.com>
3708
3709 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3710 texthigh and textlow to reader-specific structs caused
3711 objfile_relocate to miss them. This is fixable, but the work that
3712 the change was supposed to prepare GDB for never got done anyway.
3713
eb944380
DC
37142002-09-18 David Carlton <carlton@math.stanford.edu>
3715
3716 * MAINTAINERS: Alphabetize Write After Approval list.
3717
948e66d9
DJ
37182002-09-18 Daniel Jacobowitz <drow@mvista.com>
3719
3720 Fix PR gdb/709
3721 * values.c (value_static_field): Call read_var_value.
3722
dc604539
AC
37232002-09-18 Andrew Cagney <ac131313@redhat.com>
3724
3725 * valops.c (hand_function_call): Align the initial stack pointer
3726 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3727 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3728 return value.
3729 * mips-tdep.c (mips_frame_align): New function.
3730 (mips_gdbarch_init): Set frame_align.
3731 * gdbarch.sh (FRAME_ALIGN): New method.
3732 * gdbarch.h, gdbarch.c: Re-generate.
3733
cb7e422f
ML
37342002-09-18 Michal Ludvig <mludvig@suse.cz>
3735
3736 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3737 registers.
3738
a094c6fb
AC
37392002-09-17 Andrew Cagney <ac131313@redhat.com>
3740
3741 * NEWS: Mention that MIPS $fp behavior changed.
3742 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3743 reference to FP_REGNUM.
3744 (mipsnbsd_cannot_store_register): Ditto.
3745 * mips-linux-nat.c: Update copyright.
3746 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3747 (mips_linux_cannot_store_register): Ditto.
3748 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3749 * config/mips/tm-mips.h: Update copyright.
3750 (FP_REGNUM): Delete macro.
3751 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3752 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3753 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3754 (mips_r3041_reg_names, mips_r3051_reg_names)
3755 (mips_r3081_reg_names): Replace "fp" with "".
3756 Fix PR gdb/480.
3757
45cf40d1
TR
37582002-09-17 Theodore A. Roth <troth@verinet.com>
3759
3760 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3761 generic_read_register_dummy() (PR gdb/703).
3762 (avr_push_return_address): #if 0 out unused vars.
3763 (avr_gdbarch_init): Enable use of avr_push_return_address().
3764
c7e701b5
MS
37652002-09-17 Michael Snyder <msnyder@redhat.com>
3766
d76ba2a5 3767 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3768 RTE will take care of it.
3769
20bcf01c
AC
37702002-09-17 Andrew Cagney <ac131313@redhat.com>
3771
3772 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3773 invalid, return SP_REGNUM.
3774
009a9971 37752002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3776
3777 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3778 point registers without sign extension.
3779
135c175f
AC
37802002-09-17 Andrew Cagney <cagney@redhat.com>
3781
3782 * blockframe.c (deprecated_read_register_dummy): Rename
3783 generic_read_register_dummy.
3784 * frame.c (frame_unwind_signed_register): New function.
3785 (frame_unwind_unsigned_register): New function.
3786 * frame.h (frame_unwind_signed_register): Declare.
3787 (frame_unwind_unsigned_register): Declare.
3788 (deprecated_read_register_dummy): Rename
3789 generic_read_register_dummy.
3790
3791 * h8300-tdep.c (h8300_frame_chain): Update.
3792 (h8300_frame_saved_pc): Update.
3793 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3794 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3795 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3796 (s390_frame_chain): Update.
3797 * v850-tdep.c (v850_find_callers_reg): Update.
3798 (v850_frame_saved_pc): Update.
3799 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3800 (m32r_find_callers_reg): Update.
3801 (m32r_frame_saved_pc): Update.
3802 * sh-tdep.c (sh_find_callers_reg): Update.
3803 (sh64_get_saved_pr): Update.
3804 (sh_init_extra_frame_info): Update.
3805 (sh_init_extra_frame_info): Update.
3806 (sh64_init_extra_frame_info): Update.
3807 (sh64_init_extra_frame_info): Update.
3808 * mcore-tdep.c (mcore_find_callers_reg): Update.
3809 (mcore_frame_saved_pc): Update.
3810 (mcore_init_extra_frame_info): Update.
3811 * i386-tdep.c (i386_frame_saved_pc): Update.
3812 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3813 (ia64_init_extra_frame_info): Update.
3814 (ia64_init_extra_frame_info): Update.
3815 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3816 * cris-tdep.c (cris_init_extra_frame_info): Update.
3817 * avr-tdep.c (avr_frame_chain): Update.
3818 (avr_init_extra_frame_info): Update.
3819 (avr_frame_saved_pc): Update.
3820 * arm-tdep.c (arm_find_callers_reg): Update.
3821 (arm_init_extra_frame_info): Update.
3822 (arm_frame_saved_pc): Update.
3823
a741e514
TT
38242002-09-17 Tom Tromey <tromey@redhat.com>
3825
3826 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3827 is "'".
3828
d1a8e808
CV
38292002-09-17 Corinna Vinschen <vinschen@redhat.com>
3830
3831 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3832 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3833 NEXT_PROLOGUE_INSN.
3834 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3835 NEXT_PROLOGUE_INSN.
3836
d9025a18
JB
38372002-09-16 Joel Brobecker <brobecker@gnat.com>
3838
3839 * osfsolib.c: Remove file, replaced by solib-osf.c.
3840 * Makefile.in: Remove compilation rules for osfsolib.c.
3841
1b2ef1b6
DC
38422002-09-16 David Carlton <carlton@math.stanford.edu>
3843
3844 * cp-valprint.c (cp_print_class_method): Correct args to
3845 check_stub_method_group.
3846
928e48af
CV
38472002-09-16 Corinna Vinschen <vinschen@redhat.com>
3848
3849 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3850 `set architecture'. Unify naming convention of functions.
3851 (h8300_skip_prologue): Improve prologue analysis.
3852 (h8300_push_arguments): Rewritten to more closely match GCC's
3853 bizarre argument-passing behavior, along with the comment describing
3854 said behavior.
3855 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3856 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3857 sim, remote-e7000.c, remote-hms.c and remote.c
3858
5e3397bb
MK
38592002-09-15 Mark Kettenis <kettenis@gnu.org>
3860
3861 * i386-tdep.c (gdb_print_insn_i386): Removed.
3862 (i386_print_insn): New function.
3863 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3864 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3865 tm_print_insn_info.
3866
f710f4fc
MK
38672002-09-14 Mark Kettenis <kettenis@gnu.org>
3868
3869 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3870 zero.
3871
db54fef4
CV
38722002-09-14 Corinna Vinschen <vinschen@redhat.com>
3873
3874 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3875 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3876 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3877
2becadee
CF
38782002-09-13 Christopher Faylor <cgf@redhat.com>
3879
3880 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3881
de17c821
DJ
38822002-09-13 Daniel Jacobowitz <drow@mvista.com>
3883
3884 * gdbtypes.c (check_stub_method): Make static.
3885 (check_stub_method_group): New function.
3886 * gdbtypes.h: Update prototypes.
3887 * cp-support.c: New file.
3888 * cp-support.h: New file.
3889
3890 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3891 (update_method_name_from_physname): New function.
3892 (read_member_functions): Correct method names for operators
3893 and v3 constructors/destructors. Separate v2 constructors and
3894 destructors.
3895 * Makefile.in (stabsread.o): Update dependencies.
3896 (SFILES): Add cp-support.c.
3897 (COMMON_OBS): Add cp-support.o.
3898 (cp_support_h, cp-support.o): Add.
3899
3900 * cp-valprint.c (cp_print_class_method): Call
3901 check_stub_method_group instead of check_stub_method. Remove
3902 extraneous QUITs.
3903 * p-valprint.c (pascal_object_print_class_method): Likewise.
3904 * valops.c (search_struct_method): Likewise.
3905 (find_method_list, value_struct_elt_for_reference): Likewise.
3906
e76cff22
AC
39072002-09-13 Andrew Cagney <cagney@redhat.com>
3908
3909 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3910 * gdbarch.h, gdbarch.c: Regenerate.
3911
905abb3f
AC
39122002-09-13 Andrew Cagney <ac131313@redhat.com>
3913
3914 * frame.c (find_saved_register): Delete function.
3915 * frame.h (find_saved_register): Delete declaration.
3916 Fix PR gdb/631.
3917
64159455
AC
3918Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3919
3920 * mips-tdep.c (read_next_frame_reg): Re-hack using
3921 frame_register_unwind.
3922
795e1e11
AC
3923Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3924
3925 * mips-tdep.c (mips_get_saved_register): Re-hack using
3926 frame_register_unwind.
3927
5720643c
JB
39282002-09-12 Joel Brobecker <brobecker@gnat.com>
3929
3930 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3931 vector. Will be useful for Interix.
3932 * gdbarch.h, gdbarch.c: Regenerate.
3933
3934 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3935 name of the malloc function by NAME_OF_MALLOC.
3936
3bada2a2
JB
39372002-09-12 Joel Brobecker <brobecker@gnat.com>
3938
3939 * value.h (find_function_in_inferior): Add const keyword to
3940 one of the parameters. Allows us to invoke this function with
3941 a const char *.
3942 * valops.c (find_function_in_inferior): Likewise.
3943
3db26b01
JB
39442002-09-12 Joel Brobecker <brobecker@gnat.com>
3945
3946 * exec.c (xfer_memory): Fix compilation warning with old versions
3947 of GCC.
3948 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3949
17c5ed2c
DC
39502002-09-12 David Carlton <carlton@math.stanford.edu>
3951
3952 * symtab.h: Run through gdb_indent.h.
3953 Add 2002 to Copyright year list.
3954
ecd1107e
AM
39552002-09-12 Alan Modra <amodra@bigpond.net.au>
3956
3957 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3958 mach constants.
3959 * MAINTAINERS: Add myself to write after approval list.
3960
e64f66d1
JB
39612002-09-11 J. Brobecker <brobecker@gnat.com>
3962
3963 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3964
f9395794
JB
39652002-09-11 J. Brobecker <brobecker@gnat.com>
3966
3967 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3968 Interix.
3969
1a303dec
MS
39702002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3971
3972 * procfs.c (do_detach): Clear current signal, not just fault.
3973 Corrects problem with breakpoint trap signal leaking to detached
3974 process on Tru64.
3975
c0219d42
MS
39762002-09-10 Michael Snyder <msnyder@redhat.com>
3977
3978 * buildsym.c (finish_block): Protect against null pointer.
3979
9d84ac84
AC
39802002-09-10 Andrew Cagney <cagney@redhat.com>
3981
3982 * infcmd.c (default_print_registers_info): Send all output to
3983 ``file'' instead of ``gdb_stdout''.
3984
77d8f2b4
MS
39852002-09-10 Michael Snyder <msnyder@redhat.com>
3986
3987 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3988 LONGEST, and use signed register read (addresses are sign-
3989 extended for mips).
3990
99656a61
SC
39912002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3992
3993 * event-loop.c (gdb_do_one_event): Make public.
3994 * event-loop.h (gdb_do_one_event): Declare.
3995
da12f4d8
JL
39962002-09-10 Jeff Law <law@redhat.com>
3997
3998 * infttrace.c (child_resume): Simplify and rework to avoid
3999 TT_PROC_CONTINUE.
4000
d0aee0c4
FF
40012002-09-09 Fred Fish <fnf@intrinsity.com>
4002
4003 * printcmd.c (print_scalar_formatted): "len" is the number of
4004 target bytes, NOT the number of target bits.
4005
7cb3ec5e
EZ
40062002-09-09 Elena Zannoni <ezannoni@redhat.com>
4007
4008 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4009 * top.c (init_main): Set rl_terminal_name.
4010
4dc81987
AS
40112002-09-08 Aidan Skinner <aidan@velvet.net>
4012
4013 * ada-lang.c (ada_array_bound, ada_type_match,
4014 _initialize_ada_language): Fix K&R definitions.
4015 * ada-tasks.c (get_current_task): Fix K&R definitions.
4016 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4017
842330b4
CF
40182002-09-07 Christopher Faylor <cgf@redhat.com>
4019
4020 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4021 Add XP.
4022
43156d82
MK
40232002-09-06 Mark Kettenis <kettenis@gnu.org>
4024
66da5fd8
MK
4025 * i386-tdep.c (i386_register_virtual_type,
4026 i386_register_convertible, i386_register_convert_to_virtual,
4027 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4028 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4029 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4030 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4031 Don't set push_arguments twice.
4032
4b218c18
MK
4033 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4034 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4035 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4036 sigtramp_end to NULL.
4037 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4038 defines.
4039 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4040
4cc314d5
MK
4041 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4042 whitespace.
4043
43156d82
MK
4044 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4045 * gdbarch.h, gdbarch.c: Re-generate.
4046 * blockframe.c (find_pc_sect_partial_function): Convert to use
4047 SIGTRAMP_START_P predicate.
4048
6672060b
MS
40492002-09-05 Michael Snyder <msnyder@redhat.com>
4050
a90c3637
MS
4051 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4052 generic_dummy_frame method and old method. Also distinguish
4053 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4054 (arm_extract_return_value): Use new regcache method.
a90c3637 4055
6672060b
MS
4056 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4057 adjustment that doesn't conform to the ABI.
4058 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4059 saved regcache, not from current regcache.
4060
299ffc64
AC
40612002-09-05 Andrew Cagney <ac131313@redhat.com>
4062
4063 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4064 * README: Update.
4065
a3a2ee65
JT
40662002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4067
4068 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4069 if arm_apcs_32 is false.
4070
2bc7eea9
AC
40712002-09-04 Andrew Cagney <ac131313@redhat.com>
4072
4073 GDB 5.3 branch created.
4074
8a55a7c5
TR
40752002-09-03 Theodore A. Roth <troth@verinet.com>
4076
4077 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4078 generic_unwind_get_saved_register.
4079
e26fb1d7
DC
40802002-09-03 David Carlton <carlton@math.stanford.edu>
4081
4082 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4083 argument (PR gdb/653). Update call to smash_to_method_type.
4084 (read_structure_scope): Update call to dwarf2_add_member_fn.
4085
30d52491
ML
40862002-09-03 Michal Ludvig <mludvig@suse.cz>
4087
4088 * x86-64-linux-tdep.c: Include gdb_string.h
4089 * x86-64-linux-nat.c: Ditto.
4090
06891d83
JT
40912002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4092
4093 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4094 when YYDEBUG is set to 1.
4095 * c-exp.y: Likewise.
4096 * f-exp.y: Likewise.
4097 * jv-exp.y: Likewise.
4098 * m2-exp.y: Likewise.
4099 * p-exp.y: Likewise.
4100
7d400e77
JT
41012002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4102
4103 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4104 dependency list.
4105 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4106 solib_svr4_fetch_link_map_offsets to
4107 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4108 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4109 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4110 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4111 solib-svr4.o, and solib-legacy.o.
4112 * config/i386/tm-nbsd.h: Include solib.h.
4113
704a27c4
JT
41142002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4115
4116 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4117 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4118 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4119 comment noting that this needs its own target configuration.
4120 * config/i386/nbsd.mt: New file.
4121 * config/i386/nbsdaout.mt: Remove.
4122 * config/i386/nbsdelf.mt: Ditto.
4123 * config/i386/tm-nbsdaout.h: Ditto.
4124
d66198e1
JT
41252002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4126
4127 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4128 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4129 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4130 tdep->sigtramp_end.
4131 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4132 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4133 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4134
3cac699e
JT
41352002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4136
4137 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4138 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4139 * i386-tdep.h (i386bsd_init_abi): New prototype.
4140 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4141 function declaration.
4142 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4143 for NetBSD-a.out or NetBSD-ELF.
4144 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4145 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4146 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4147 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4148 and nbsd-tdep.h.
4149 (i386nbsd_pc_in_sigtramp): New function.
4150 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4151 i386nbsd_pc_in_sigtramp.
4152 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4153 and i386nbsdelf_init_abi OS ABI handlers.
4154 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4155 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4156
7010ca0a
MK
41572002-09-02 Mark Kettenis <kettenis@gnu.org>
4158
4159 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4160 registers if the target really has them.
4161
6dd93b72
JT
41622002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4163
4164 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4165 than nbsd-tdep.h.
4166
2ca8ae21
JT
41672002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4168
4169 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4170 list.
4171 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4172 (alphanbsd_skip_sigtramp_frame): New functions.
4173 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4174 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4175 to alphanbsd_sigcontext_addr.
4176
3d9b49b0
JT
41772002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4178
4179 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4180 list.
4181 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4182 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4183 nbsd_pc_in_sigtramp.
4184 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4185 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4186 * nbsd-tdep.c: Include gdb_string.h.
4187 (nbsd_pc_in_sigtramp): New function.
4188 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4189 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4190 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4191 ppcnbsd_pc_in_sigtramp.
4192 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4193 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4194 shnbsd_pc_in_sigtramp.
4195 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4196 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4197 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4198
c860120c
PM
41992002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4200
4201 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4202 watchpoints to NULL.
4203 (insert_breakpoints): set val field of watchpoints if NULL.
4204
4205
c7612d53
JB
42062002-08-29 Jim Blandy <jimb@redhat.com>
4207
4208 * symtab.c (lookup_symbol_aux): In the cases where we find a
4209 minimal symbol of an appropriate name and use its address to
4210 select a symtab to read and search, use `name' (as passed to us)
4211 as the demangled name when searching the symtab's global and
4212 static blocks, not the minsym's name.
4213
66609862
KS
42142002-08-29 Keith Seitz <keiths@redhat.com>
4215
4216 * stack.c (print_frame_info_base): Always set current_source_symtab
4217 and current_source_line.
4218
151fefe2
JB
42192002-08-29 Donn Terry <donnte@microsoft.com>
4220
4221 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4222
bfb3754e
KS
42232002-08-28 Keith Seitz <keiths@redhat.com>
4224
4225 * stack.c (select_frame): Add FIXME concerning selected-frame
4226 events.
4227 (select_frame_command): Send selected-frame-level-changed
4228 event notification, but only if the level actually changed.
4229 (up_silently_base): Add selected-frame-level-changed event
4230 notification.
4231 (down_silently_base): Likewise.
4232
e822a2a0
AC
42332002-08-28 Andrew Cagney <ac131313@redhat.com>
4234
4235 * Makefile.in: Update dependencies for all gdb/*.c files.
4236
309367d4
TT
42372002-08-27 Tom Tromey <tromey@redhat.com>
4238
4239 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4240 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4241 Update dependencies.
4242 * i387-tdep.c: Include gdb_string.h.
4243 * osabi.c: Likewise.
4244 * i386-linux-nat.c: Likewise.
4245 * lin-lwp.c: Likewise.
4246 * ax-gdb.c: Likewise.
4247 * signals/signals.c: Likewise.
4248 * jv-valprint.c: Likewise.
4249 * p-lang.c: Likewise.
4250 * c-valprint.c: Likewise.
4251 * cp-abi.c: Likewise.
4252
e1507482
EZ
42532002-08-27 Elena Zannoni <ezannoni@redhat.com>
4254
4255 * cli/cli-script.h (copy_command_lines): Export.
4256 * breakpoint.c: Include cli/cli-script.h.
4257 * Makefile.in (breakpoint.o): Update dependencies.
4258
c6510018
MS
42592002-08-26 Michael Snyder <msnyder@redhat.com>
4260
4261 * breakpoint.c (insert_breakpoints): Protect all references
4262 to 'process_warning'. Shorten long lines.
4263
c2b8ed2c
MS
42642002-08-26 Joel Brobecker <brobecker@gnat.com>
4265
4266 * cli/cli-script.c (copy_command_lines): New function.
4267 * defs.h (copy_command_lines): Export.
4268 * testsuite/gdb.base/commands.exp: New tests for commands
4269 attached to a temporary breakpoint, and for commands that
4270 delete the breakpoint they are attached to.
4271
42722002-08-26 Michael Snyder <msnyder@redhat.com>
4273
4274 * breakpoint.c (bpstat_stop_status): Instead of copying the
4275 pointer to the breakpoint commands struct, make a new copy
4276 of the struct and point to that.
4277 (bpstat_clear): Free the commands struct.
4278 (bpstat_clear_actions): Free the commands struct.
4279 (bpstat_do_actions): Free the command actions. Also execute
4280 the local cleanups, instead of deleting them.
4281 (delete_breakpoint): Leave the commands field of the bpstat
4282 chain alone -- it will be freed later.
4283
64b84175
KB
42842002-08-26 Kevin Buettner <kevinb@redhat.com>
4285
4286 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4287 deleted in 2002-08-20 commit. This function is still used by
4288 ppc-linux-nat.c.
4289
55970da6
KS
42902002-08-26 Keith Seitz <keiths@redhat.com>
4291
4292 * gdb-events.sh: Add selected-frame-level-changed event.
4293 * gdb-events.c: Regenerated.
4294 * gdb-events.h: Regenerated.
4295
a790ad35
SC
42962002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4297
4298 Fix PR gdb/393:
4299 * inflow.c (terminal_save_ours): New function to save terminal
4300 settings.
4301 * inferior.h (terminal_save_ours): Declare.
4302 * target.c (debug_to_terminal_save_ours): New function.
4303 (cleanup_target): Defaults to_terminal_save_ours.
4304 (update_current_target): Inherit to_terminal_save_ours.
4305 (setup_target_debug): Set to_terminal_save_ours.
4306 * target.h (target_terminal_save_ours): New to save terminal settings.
4307 (target_ops): New member to_terminal_save_ours.
4308 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4309 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4310 * inftarg.c (init_child_ops): Likewise.
4311 * m3-nat.c (init_m3_ops): Likewise.
4312 * procfs.c (init_procfs_ops): Likewise.
4313 * wince.c (init_child_ops): Likewise.
4314 * win32-nat.c (init_child_ops): Likewise.
4315 * sol-thread.c (init_sol_thread_ops): Likewise.
4316
c00dcbe9
MK
43172002-08-26 Mark Kettenis <kettenis@gnu.org>
4318
3d7f4f49
MK
4319 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4320 use regcache_* functions.
4321 (i386_gdbarch_init): Set store_return_value instead of
4322 deprecated_store_return_value.
4323
c00dcbe9
MK
4324 * regcache.c (regcache_raw_write_signed,
4325 regcache_raw_write_unsigned): New functions.
4326 * regcache.h (regcache_raw_write_signed,
4327 regcache_raw_write_unsigned): New prototypes.
4328
0e0d15ca
AC
43292002-08-25 Andrew Cagney <ac131313@redhat.com>
4330
4331 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4332 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4333 source file dependencies. Cleanup corresponding generator rules.
4334
d3b22ed5
AC
43352002-08-25 Andrew Cagney <ac131313@redhat.com>
4336
4337 * regcache.h (register_offset_hack): Declare.
4338 (regcache_cooked_read_using_offset_hack): Declare.
4339 (regcache_cooked_write_using_offset_hack): Declare.
4340
4341 * regcache.c (register_offset_hack): New function.
4342 (regcache_cooked_read_using_offset_hack): New function.
4343 (regcache_cooked_write_using_offset_hack): New function.
4344 (regcache_dump): Check that the registers, according to their
4345 offset, are packed hard against each other.
4346 (cooked_xfer_using_offset_hack): New function.
4347
bb425013
AC
43482002-08-25 Andrew Cagney <ac131313@redhat.com>
4349
4350 * regcache.c (struct regcache_descr): Add field register_type.
4351 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4352 in as a parameter
4353 (init_regcache_descr): Initialize register_type. Pass the descr
4354 to init_legacy_regcache_descr. Use register_type instead of
4355 REGISTER_VIRTUAL_TYPE.
4356 (register_type): New function.
4357 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4358 * regcache.h (register_type): Declare.
4359
d0403e00
AC
43602002-08-25 Andrew Cagney <ac131313@redhat.com>
4361
4362 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4363 instead of deprecated_store_return_value. Fix fallout from
4364 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4365
0ed04cce
AC
43662002-08-25 Andrew Cagney <ac131313@redhat.com>
4367
4368 * regcache.c (max_register_size): New function.
4369 (init_legacy_regcache_descr): Ensure that max_register_size is
4370 large enough for REGISTER_VIRTUAL_SIZE.
4371 * regcache.h (max_register_size): Declare.
4372
46d79c04
AC
43732002-08-24 Andrew Cagney <ac131313@redhat.com>
4374
4375 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4376 store_return_value.
4377 (e500_extract_return_value): Change type of valbuf pointer to
4378 void.
4379
853c7bd0
MK
43802002-08-24 Mark Kettenis <kettenis@gnu.org>
4381
cd87e769
MK
4382 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4383 workaround.
4384
853c7bd0
MK
4385 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4386 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4387 long long) to prevent compiler warning on 64-bit systems.
4388
ebba8386
AC
43892002-08-23 Andrew Cagney <cagney@redhat.com>
4390
4391 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4392 (DEPRECATED_STORE_RETURN_VALUE): New method.
4393 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4394 * gdbarch.h, gdbarch.c: Re-generate.
4395
4396 * values.c (set_return_value): Pass current_regcache to
4397 STORE_RETURN_VALUE.
4398 * arch-utils.h (legacy_store_return_value): Declare.
4399 * arch-utils.c (legacy_store_return_value): New function.
4400 (legacy_extract_return_value): Update parameters.
4401
4402 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4403 STORE_RETURN_VALUE.
4404 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4405 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4406 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4407 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4408 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4409 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4410 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4411 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4412 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4413 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4414
4415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4416 * i386-tdep.c (i386_extract_return_value): Update.
4417 * arch-utils.c (legacy_extract_return_value): Update.
4418 * frv-tdep.c (frv_gdbarch_init): Update.
4419 * cris-tdep.c (cris_gdbarch_init): Update.
4420 * d10v-tdep.c (d10v_gdbarch_init): Update.
4421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4422 * m68k-tdep.c (m68k_gdbarch_init): Update.
4423 * mcore-tdep.c (mcore_gdbarch_init): Update.
4424 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4425 * s390-tdep.c (s390_gdbarch_init): Update.
4426 * sparc-tdep.c (sparc_gdbarch_init): Update.
4427 * sh-tdep.c (sh_gdbarch_init): Update.
4428 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4429 * v850-tdep.c (v850_gdbarch_init): Update.
4430 * avr-tdep.c (avr_gdbarch_init): Update.
4431 * ia64-tdep.c (ia64_gdbarch_init): Update.
4432 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4433 * vax-tdep.c (vax_gdbarch_init): Update.
4434 * alpha-tdep.c (alpha_gdbarch_init): Update.
4435 * arm-tdep.c (arm_gdbarch_init): Update.
4436 * mips-tdep.c (mips_gdbarch_init): Update.
4437 * i386-tdep.c (i386_gdbarch_init): Update.
4438
5bd8c6d0
AC
44392002-08-23 Andrew Cagney <ac131313@redhat.com>
4440
4441 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4442 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4443
e73e1724
MK
44442002-08-24 Mark Kettenis <kettenis@gnu.org>
4445
4446 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4447 problems.
4448
3e6564e1
JB
44492002-08-23 Joel Brobecker <brobecker@gnat.com>
4450
4451 * infrun.c (handle_inferior_event): Move a comment outside of a
4452 function call, in order to avoid indent reformatting this part
4453 of the code in an unreadable way.
4454
81d0cc19
GS
44552002-08-23 Grace Sainsbury <graces@redhat.com>
4456
4457 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4458 when breakpoints fail. Move general breakpoint error messages to
4459 insert_breakpoints.
4460 * breakpoint.c (insert_breakpoints): Change warnings when
4461 breakpoints are nto inserted to specify the type. Remove call to
4462 memory_error when hardware breakpoints can't be inserted. Remove
4463 multiple calls to warning so all messages are sent to the user at
4464 once.
4465 (delete_breakpoints): Make insert error messsages more explicit.
4466
17574093
DJ
44672002-08-23 Daniel Jacobowitz <drow@mvista.com>
4468
4469 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4470 gdbserver/ChangeLog.
4471
8acc2935
MK
44722002-08-23 Mark Kettenis <kettenis@gnu.org>
4473
dfe01d39
MK
4474 * i386-tdep.c: Include "objfiles.h".
4475 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4476 skip_trampoline_code.
4477 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4478 (CPLUS_MARKER): Define to '.'.
4479
8acc2935
MK
4480 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4481 member.
4482 (linux_corefile_thread_callback): Increase args->num_notes.
4483 (linux_make_note_section): Initialize thread_args.num_notes, and
4484 use it to determine whether notes for any threads were created.
4485
151fefe2 44862002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4487
4488 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4489 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4490 and PCUNKILL.
4491 (write_with_trace): Conditionalize out the switch branch handling
4492 PCSHOLD if the corresponding macro is not defined. Likewise for
4493 PRSABORT and PRSTOP.
4494 This change will be needed by the Interix port.
4495
e1507482
EZ
44962002-08-22 Elena Zannoni <ezannoni@redhat.com>
4497
4498 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4499 write_register wherever possible instead of manipulating the
4500 register bytes directly.
4501 Assign VALUE_CONTENTS to a variable and use that.
4502 The GPR numbers are now dependent on the architecture.
4503
96ff0de4
EZ
45042002-08-22 Elena Zannoni <ezannoni@redhat.com>
4505
4506 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4507 ev_offset fields.
4508 (skip_prologue): Add support for BookE/e500 instructions.
4509 (e500_extract_return_value): New function.
4510 (frame_get_saved_regs): Add support for saving ev registers and
4511 pseudo gpr's.
4512 (e500_store_return_value): New function.
4513 (rs6000_gdbarch_init): Move up default intializations of
4514 deprecated_extract_return_value and store_return_value. Overwrite
4515 init of store_return_value with e500 specific version.
4516 Set extract_return_value for e500.
4517
fbefca5b
EZ
45182002-08-22 Elena Zannoni <ezannoni@redhat.com>
4519
4520 * blockframe.c (generic_call_dummy_register_unwind): Use
4521 regcache_cooked_read to catch cases in which the variable is
4522 stored in a pseudo register.
4523
4d210288
AC
45242002-08-22 Andrew Cagney <cagney@redhat.com>
4525
4526 * NEWS: Mention that the i960 has been made obsolete.
4527 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4528 i960-tdep.c
4529 (remote-nrom.o): Obsolete target.
4530 (remote-nindy.o, i960-tdep.o): Ditto.
4531 * remote-nrom.c: Make file obsolete.
4532 * remote-nindy.c, remote-vx960.c: Ditto.
4533 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4534 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4535 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4536 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4537 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4538 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4539 i960-*-vxworks* obsolete.
4540 * MAINTAINERS: Note that the i960 is obsolete.
4541
6c0c456d
CV
45422002-08-21 Corinna Vinschen <vinschen@redhat.com
4543
4544 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4545 detach to allow reinitialization.
4546
9f9d12b3
AC
45472002-08-22 Andrew Cagney <ac131313@redhat.com>
4548
4549 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4550 attempt).
4551
ebeb39fe
JB
45522002-08-22 Jim Blandy <jimb@redhat.com>
4553
4554 * coffread.c (coff_symfile_read): Don't try to read the line
4555 number table from disk if the image file doesn't have a symbol
4556 table; we'll never actually look at the info anyway, and Windows
4557 ships DLL's with bogus file offsets for the line number data.
4558
5bf1c677
EZ
45592002-08-21 Elena Zannoni <ezannoni@redhat.com>
4560
4561 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4562 an e500 executable.
4563
71b8ef93
MS
45642002-08-21 Michael Snyder <msnyder@redhat.com>
4565
4566 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4567 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4568 (DEFAULT_MIPS_TYPE): Delete unused macro.
4569 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4570 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4571
d174216d
JB
45722002-08-21 Jim Blandy <jimb@redhat.com>
4573
4574 * valops.c (value_cast): Simplify and correct logic for doing a
4575 static cast from a pointer to a base class to a pointer to a
4576 derived class.
4577
0ab7a791
AC
45782002-08-21 Andrew Cagney <ac131313@redhat.com>
4579
4580 * infcmd.c (default_print_registers_info): Replace
4581 do_registers_info.
4582 (registers_info): Use gdbarch_print_registers_info instead of
4583 DO_REGISTERS_INFO.
4584 * inferior.h (default_print_registers_info): Replace
4585 do_registers_info.
4586 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4587 (DO_REGISTERS_INFO): Change to a predicate function.
4588 * gdbarch.h, gdbarch.c: Regenerate.
4589
e23792cc
KS
45902002-08-21 Keith Seitz <keiths@redhat.com>
4591
4592 * gdb-events.sh: Add target-changed event.
4593 * gdb-events.c: Regenerated.
4594 * gdb-events.c: Regenerated.
4595 * valops.c (value_assign): Add target-changed event notification
4596 to inlval_register, lval_memory, and lval_reg_frame_relative.
4597
9fb14e79
JB
45982002-08-21 Joel Brobecker <brobecker@gnat.com>
4599
4600 * NEWS: Add an entry regarding the improvement of the next/step
4601 operation on Alpha Tru64 multi-processor machines.
4602
6d39a69f
AC
46032002-08-21 Andrew Cagney <ac131313@redhat.com>
4604
72acd513
AC
4605 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4606 directores.
342af04b 4607 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4608 * Makefile.in (install-gdbtk): Move to install section.
4609 (rdi-share/libangsd.a): Move to end of file.
4610
fa5f27c7
AC
46112002-08-19 Andrew Cagney <ac131313@redhat.com>
4612
4613 * frame.c (frame_register_unwind): When a register, set addrp to
4614 the register's byte.
4615
5a89d8aa
MS
46162002-08-20 Michael Snyder <msnyder@redhat.com>
4617
4618 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4619 used locally, so move them from the target machine header to here.
4620 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4621 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4622 Make static.
4623 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4624
822e978b
AC
46252002-08-20 Andrew Cagney <cagney@redhat.com>
4626
4627 * NEWS: Mention that the Apollo line was made obsolete.
4628 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4629 m68*-hp-hpux* obsolete.
4630 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4631 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4632 * buildsym.c (make_blockvector): Make static.
4633 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4634 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4635 (ALLDEPFILES): Remove dstread.c.
4636 (dstread.o): Obsolete make rule.
4637 * dstread.c: Makefile obsolete.
4638 * dst.h: Ditto.
4639 * config/m68k/hp300hpux.mt: Ditto.
4640 * config/m68k/hp300hpux.mh: Ditto.
4641 * config/m68k/hp300bsd.mt: Ditto.
4642 * config/m68k/hp300bsd.mh: Ditto.
4643 * config/m68k/apollo68b.mt: Ditto.
4644 * config/m68k/apollo68v.mh: Ditto.
4645 * config/m68k/apollo68b.mh: Ditto.
4646
e41b17f0
MS
46472002-08-20 Michael Snyder <msnyder@redhat.com>
4648
4649 * mips-tdep.c (mips_in_return_stub): Make static.
4650 (mips_gdbarch_init): Set in_solib_return_trampoline.
4651 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4652
d50355b6
MS
46532002-08-20 Michael Snyder <msnyder@redhat.com>
4654
4655 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4656 * gdbarch.c, gdbarch.h: Regenerate.
4657 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4658 Add.
4659 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4660
757a7cc6
MS
46612002-08-20 Michael Snyder <msnyder@redhat.com>
4662
4663 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4664 (mips_gdbarch_init): Set skip_trampoline_code,
4665 in_solib_call_trampoline.
4666 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4667 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4668
c8001721
EZ
46692002-08-20 Elena Zannoni <ezannoni@redhat.com>
4670
4671 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4672
4673 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4674 vector type for ev registers.
4675 (e500_pseudo_register_read): New function.
4676 (e500_pseudo_register_write): New function.
4677 (e500_dwarf2_reg_to_regnum): New function.
4678 (PPC_UISA_NOFP_SPRS): New macro.
4679 (PPC_EV_REGS): New macro.
4680 (PPC_GPRS_PSEUDO_REGS): New macro.
4681 (registers_e500): New register set for e500.
4682 (variants): Add e500 variant.
4683 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4684 before setting architectural dependent variations. Initialize ev
4685 registers numbers. Add case for e500 architecture. Set the
4686 number of pseudo registers.
4687
64366f1c
EZ
46882002-08-20 Elena Zannoni <ezannoni@redhat.com>
4689
4690 * rs6000-tdep.c: Clean up comments.
4691
7e78f0ca
AC
46922002-08-20 Andrew Cagney <cagney@redhat.com>
4693
4694 * h8300-tdep.c: Re-indent file.
4695
697f7479
JB
46962002-08-20 Jim Blandy <jimb@redhat.com>
4697
4698 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4699 default for this.
697f7479 4700
e86ae29f
KS
47012002-08-20 Keith Seitz <keiths@redhat.com>
4702
4703 * breakpoints.c (watch_command_1): Use internal breakpoint
4704 when setting a watchpoint_scope breakpoint.
4705
216b504f
EZ
47062002-08-20 Elena Zannoni <ezannoni@redhat.com>
4707
4708 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4709 (build_builtin_type_vec64i): Ditto.
4710 (build_builtin_type_vec128): Ditto.
4711 (build_builtin_type_vec128i): Ditto.
4712
f7ab6ec6
MS
47132002-08-19 Michael Snyder <msnyder@redhat.com>
4714
4715 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4716 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4717 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4718 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4719 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4720 CALL_DUMMY_ADDRESS): Delete.
4721 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4722 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4723 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4724 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4725 push_return_address.
4726 (mips_register_raw_size, mips_eabi_use_struct_convention,
4727 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4728 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4729 mips_init_extra_frame_info, mips_eabi_push_arguments,
4730 mips_n32n64_push_arguments, mips_push_return_address,
4731 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4732 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4733
b5d1566e
MS
47342002-08-19 Michael Snyder <msnyder@redhat.com>
4735
4736 * mips-tdep.c (mips_frame_num_args): New function.
4737 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4738 frame_saved_pc, frame_args_address, frame_locals_address,
4739 frame_num_args, and frame_args_skip.
4740 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4741 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4742 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4743 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4744
2f1488ce
MS
47452002-08-20 Michael Snyder <msnyder@redhat.com>
4746
4747 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4748 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4749 * mips-tdep.c (mips_store_struct_return): New function.
4750 (mips_extract_struct_value_address): New function.
4751 (mips_gdbarch_init): Set store_struct_return and
4752 extract_struct_value_address.
4753
41ff2da1
DC
47542002-08-20 David Carlton <carlton@math.stanford.edu>
4755
4756 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4757 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4758 (read_file_scope): Check that line_header is nonzero before
4759 decoding macro information.
4760
e5451d58
MK
47612002-08-20 Mark Kettenis <kettenis@gnu.org>
4762
4763 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4764 flag the general-purpose registers as floating-point on targets
4765 that don't support the floating-point registers.
4766
4a6daafa
EZ
47672002-08-20 Elena Zannoni <ezannoni@redhat.com>
4768
4769 * rs6000-tdep.c (altivec_register_p): Delete.
4770 (rs6000_do_altivec_registers): Delete.
4771 (rs6000_altivec_registers_info): Delete.
4772 (rs6000_do_registers_info): Delete.
4773 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4774 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4775
ab4327e0
EZ
47762002-08-20 Elena Zannoni <ezannoni@redhat.com>
4777
4778 * infcmd.c (do_registers_info): Print vector registers in hex
4779 format only.
4780 (print_vector_info): Check that printing registers
4781 makes sense.
4782 (print_float_info): Ditto.
4783
cb1d2653
AC
47842002-08-20 Andrew Cagney <ac131313@redhat.com>
4785
4786 * mips-tdep.c (mips_gdbarch_init): Update.
4787 (mips_o32_extract_return_value): Rewrite.
4788 (mips_o32_store_return_value): Rewrite.
4789 (mips_o32_xfer_return_value): New function.
4790 (mips_xfer_register): Tweak debug print message. Allow for
4791 buf_offset when dumping the value transfered.
4792
dfc3d9b2
AC
47932002-08-20 Andrew Cagney <ac131313@redhat.com>
4794
4795 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4796 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4797 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4798 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4799 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4800
7807aa61
MS
48012002-08-14 Michael Snyder <msnyder@redhat.com>
4802
4803 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4804
489461e2
EZ
48052002-08-19 Elena Zannoni <ezannoni@redhat.com>
4806
4807 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4808 register.
4809 (P): New macro to define a register as a pseudo register.
4810 (R, R4, R8, R16, FR32, R64, R0): Updated.
4811 (struct variant): Add new fields for number of pseudo registers
4812 and number of total registers.
4813 (tot_num_registers): New macro replacing....
4814 (num_registers): ...deleted macro.
4815 (num_registers): New function.
4816 (num_pseudo_registers): New function.
4817 (variants): Update all variants to intialize new fields correctly.
4818 Postpone initialization of number of pseudo regs and real regs.
4819 (init_variants): New function.
4820 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4821 registers offsets.
4822
fcaffe4c
DC
48232002-08-19 David Carlton <carlton@math.stanford.edu>
4824
2c2738a0
DC
4825 * valops.c (search_struct_field): Change error message to treat
4826 return value of 0 from value_static_field as meaning that field is
4827 optimized out.
4828 (value_struct_elt_for_reference): Ditto.
4829 * values.c (value_static_field): Treat an unresolved location the
4830 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4831 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4832 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4833 * MAINTAINERS: Add self to Write After Approval list.
4834
88658117
AC
48352002-08-19 Andrew Cagney <ac131313@redhat.com>
4836
4837 * mips-tdep.c (mips_xfer_register): New function.
4838 (mips_n32n64_extract_return_value): Rewrite.
4839 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4840 instead of deprecated_extract_return_value.
4841
21283beb
EZ
48422002-08-19 Elena Zannoni <ezannoni@redhat.com>
4843
4844 * rs6000-tdep.c (TDEP): Delete macro.
4845 (branch_dest): Replace use of TDEP macro with its body.
4846 (rs6000_pop_frame): Ditto.
4847 (rs6000_push_arguments): Ditto.
4848 (rs6000_skip_trampoline_code): Ditto.
4849 (rs6000_frame_saved_pc): Ditto.
4850 (rs6000_frame_chain): Ditto.
4851 (rs6000_register_name): Ditto.
4852 (rs6000_register_byte): Ditto.
4853 (rs6000_register_raw_size): Ditto.
4854 (rs6000_register_virtual_type): Ditto.
4855 (rs6000_register_convertible): Ditto.
4856 (rs6000_convert_from_func_ptr_addr): Ditto.
4857
bf072999
DJ
48582002-08-19 Daniel Jacobowitz <drow@mvista.com>
4859
4860 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4861 conditionally.
4862 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4863 MIPS_LINUX_JB_ELEMENT_SIZE.
4864 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4865 for MAX_REGISTER_RAW_SIZE arrays.
4866 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4867 MIPS_LINUX_JB_ELEMENT_SIZE.
4868
9b949a49
PM
48692002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4870
4871 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4872
6d3e79c6
AS
48732002-08-19 Aidan Skinner <aidan@velvet.net>
4874
4875 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4876 ada-valprint.c ada-tasks.c.
4877 (YYFILES): Add ada-exp.y.
4878 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4879 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4880 (ada-exp.tab.o): New target.
4881
06c0b04e
AC
48822002-08-18 Andrew Cagney <ac131313@redhat.com>
4883
4884 * regcache.c (regcache_xfer_part): New function.
4885 (regcache_raw_read_part): New function.
4886 (regcache_raw_write_part): New function.
4887 (regcache_cooked_read_part): New function.
4888 (regcache_cooked_write_part): New function.
4889 * regcache.h (regcache_raw_read_part): Declare.
4890 (regcache_raw_write_part): Declare.
4891 (regcache_cooked_read_part): Declare.
4892 (regcache_cooked_write_part): Declare.
4893
92d1e331
DJ
48942002-08-18 Daniel Jacobowitz <drow@mvista.com>
4895
4896 * remote.c (remote_open_1): Add async_p.
4897 (remote_async_open_1): Delete.
4898 (open_remote_target): Delete.
4899 (remote_open, extended_remote_open): Update calls to remote_open_1.
4900 (remote_async_open, extended_remote_async_open): Call
4901 remote_open_1 instead of remote_async_open_1.
4902
247055de
MK
49032002-08-19 Mark Kettenis <kettenis@gnu.org>
4904
4905 * blockframe.c: Fix a few coding standard violations.
4906
641eda39
MK
49072002-08-19 Mark Kettenis <kettenis@gnu.org>
4908
0b717710
MK
4909 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4910 here from ...
4911 * config/i386/tm-i386sco5.h: ... here. File removed.
4912 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4913
26d28e12 4914 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4915 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4916 (TM_FILE): Set to tm-i386.h.
4917 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4918 * config/i386/tm-i386v.h: Remove file.
4919 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4920 instead of "i386/tm-i386v.h".
4921 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4922 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4923 "i386/tm-i386v.h".
4924 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4925 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4926 "i386/tm-i386.h".
4927
d4e0bab4
MK
49282002-08-18 Mark Kettenis <kettenis@gnu.org>
4929
4930 * config/i386/nm-i386v.h: Add protection against
4931 multiple-inclusion.
4932 (i386_register_u_addr): Remove prototype.
4933 (register_u_addr): New prototype.
4934 (REGISTER_U_ADDR): Redefine accordingly.
4935 * i386v-nat.c: Improve several comments.
4936 (i386_register_u_addr): Change signature and rename to
4937 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4938 ubase variable.
4939
46cac009
AC
49402002-08-18 Andrew Cagney <ac131313@redhat.com>
4941
4942 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4943 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4944 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4945 deprecated_extract_return_value.
4946 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4947 rename mips_o32o64_push_arguments.
4948 (mips_gdbarch_init): Update.
4949 (mips_extract_return_value): Delete.
4950 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4951 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4952 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4953 (mips_n32n64_extract_return_value): Clone
4954 mips_extract_return_value.
4955 (mips_store_return_value): Delete.
4956 (mips_o32_store_return_value): Clone mips_store_return_value.
4957 (mips_o64_store_return_value): Clone mips_store_return_value.
4958 (mips_eabi_store_return_value): Clone mips_store_return_value.
4959 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4960
d2e4a39e
AS
49612002-08-18 Aidan Skinner <aidan@velvet.net>
4962
0c30c098
AS
4963 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4964 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4965
49662002-08-18 Aidan Skinner <aidan@velvet.net>
4967
4968 * ada-lang.c: Run through gdb_indent.sh.
4969 * ada-lang.h: Run through gdb_indent.sh.
4970 * ada-tasks.c: Run through gdb_indent.sh.
4971 * ada-typeprint.c: Run through gdb_indent.sh.
4972 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4973
01fc4e33
AC
49742002-08-18 Andrew Cagney <ac131313@redhat.com>
4975
4976 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4977 ABI.
4978
d8ee244c
MK
49792002-08-18 Mark Kettenis <kettenis@gnu.org>
4980
c38d8261
MK
4981 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4982
222db64c
MK
4983 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4984 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4985
c2848c82
MK
4986 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4987 write_register_gen instead of write_register_bytes.
4988
d8ee244c
MK
4989 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4990 i[3456]-*-osf1mk* configurations have been made obsolete.
4991 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4992 i[3456]86-*-osf1mk* hosts obsolete.
4993 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4994 targets obsolete.
4995 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4996 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4997 config/i386/i386m3.mt, config/i386/nm-m3.h,
4998 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4999 config/i386/i386mk.mh, config/i386/i386mk.mt,
5000 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5001 obsolete.
5002 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5003 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5004 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5005
61d8d407
AC
50062002-08-18 Andrew Cagney <ac131313@redhat.com>
5007
5008 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5009 (hppa_value_returned_from_stack): Declare.
5010 (hppa_extract_return_value): Declare.
5011 * config/pa/hppa.mt: New file.
5012 * configure.tgt: Recognize hppa*-*-*.
5013 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5014
0c52bd59
MK
50152002-08-18 Mark Kettenis <kettenis@gnu.org>
5016
5017 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5018 comment.
5019
b5686e99
MK
50202002-08-17 Mark Kettenis <kettenis@gnu.org>
5021
5022 * top.c (gdb_rl_operate_and_get_next): Make sure
5023 operate-and-get-next functions correctly even when the history
5024 list is completely filled.
5025
c1bab85b
AC
50262002-08-18 Andrew Cagney <ac131313@redhat.com>
5027
5028 * MAINTAINERS (Target Instruction Set Architectures): Rename
5029 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5030 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5031 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5032 already listed under Host/Native.
5033
5034 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5035 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5036 mips*-*-*.
5037
32089c7c
AC
50382002-08-17 Andrew Cagney <ac131313@redhat.com>
5039
5040 * config/ia64/ia64.mt: New file.
5041 * config/alpha/alpha.mt: New file.
5042 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5043 ia64-linux-gnu. Mention that ia64-elf is broken.
5044 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5045
b4671f85
MK
50462002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5047
5048 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5049 generic_func_frame_valid instead of func_frame_valid.
5050
c8edd8b4
JB
50512002-08-16 Joel Brobecker <brobecker@gnat.com>
5052
5053 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5054 procfs appears to be broken when debugging on multi-processor
5055 machines. So enable software single stepping in order to avoid
5056 using the procfs interface to do next/step operations, using
5057 internal breakpoints instead.
5058
5059 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5060 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5061 make this pc address equal to the value it would have if the
5062 system stepping capability was used. Also set a new flag used
5063 to ensure that we don't readjust the PC one more time later.
5064
5065 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5066 address by DECR_PC_AFTER_BREAK when software single step is
5067 in use for this architecture, as this has already been taken
5068 care of in handle_inferior_event().
5069
238617f6
JB
50702002-08-16 Joel Brobecker <brobecker@gnat.com>
5071
5072 * infrun.c (handle_inferior_event): Minor reformatting, to make
5073 a rather long condition expression easier to read.
5074
541a7aac
AC
50752002-08-16 Andrew Cagney <ac131313@redhat.com>
5076
5077 * Makefile.in (gdbtk.o): Move to end of file.
5078 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5079 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5080 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5081 (gdbtk-wrapper.o, gdbres.o): Ditto.
5082
f92d4a7b
AC
50832002-08-16 Andrew Cagney <ac131313@redhat.com>
5084
5085 * Makefile.in (copying.o): Separate out compile rule.
5086 (hpux-thread.o, procfs.o, signals.o): Ditto.
5087 (v850ice.o, z8k-tdep.o): Ditto.
5088 (tui-file.o): Move to TUI section.
5089 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5090 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5091
1cce71eb
JB
50922002-08-16 Joel Brobecker <brobecker@gnat.com>
5093
5094 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5095 skip_trampoline_code, for better namespace-proofing.
5096
5097 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5098
0851f23d
JB
50992002-08-16 Joel Brobecker <brobecker@gnat.com>
5100
5101 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5102
f8d40ec8
JB
51032002-08-16 Joel Brobecker <brobecker@gnat.com>
5104
5105 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5106 signal, check whether we hit a breakpoint before checking for a
5107 single step breakpoint. Otherwise, GDB fails to notice that a
5108 breakpoint has been hit when stepping onto a breakpoint.
5109
63d022e0
KS
51102002-08-16 Keith Seitz <keiths@redhat.com>
5111
5112 * gdb-events.sh (clear_gdb_event_hooks): New function.
5113 * gdb-events.c: Regenerate.
5114 * gdb-events.h: Regenerate.
5115
6e31adb3
AC
51162002-08-16 Andrew Cagney <ac131313@redhat.com>
5117
5118 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5119 not_a_sw_breakpoint.
5120 * breakpoint.h (bpstat_stop_status): Add parameter names.
5121
c8189ed1
GS
51222002-08-16 Grace Sainsbury <graces@redhat.com>
5123
5124 * remote.c (remote_insert_hw_breakpoint)
5125 (remote_remove_hw_breakpoint): Fix calculation of length field
5126 for Z-packet.
5127
d05285fa
MS
51282002-08-15 Michael Snyder <msnyder@redhat.com>
5129
466d7106
MS
5130 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5131 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5132 (supply_fpregset): Ditto.
5133
d05285fa
MS
5134 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5135 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5136 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5137 (TARGET_READ_SP): Delete.
bf1f5b4c 5138 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5139 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5140 Delete.
5141 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5142 from macros to functions.
bf1f5b4c 5143
d05285fa
MS
5144 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5145 (mips_register_convertible, mips_register_convert_to_virtual,
5146 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5147 (mips_read_sp): New function.
5148 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5149 (mips_do_registers_info): Make static.
5150 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5151 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5152 (mips_register_convert_from_type, mips_register_convert_to_type):
5153 New functions.
5154 (mips_gdbarch_init): Set up function_start_offset,
5155 register_virtual_size, pc_in_sigtramp.
d05285fa 5156
e76f1f2e
AC
51572002-08-15 Andrew Cagney <ac131313@redhat.com>
5158
5159 * infcmd.c (vector_info): New function.
5160 (_initialize_infcmd): Add command "info vector".
5161 (print_vector_info): New function.
5162
5163 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5164 * gdbarch.h, gdbarch.c: Regenerate.
5165
4782dc19
AC
51662002-08-15 Andrew Cagney <ac131313@redhat.com>
5167
5168 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5169 ``print_all''. Only print vector registers when ``print_all''.
5170
23e3a7ac
AC
51712002-08-15 Andrew Cagney <ac131313@redhat.com>
5172
8e186fd6
AC
5173 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5174 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5175
23e3a7ac
AC
5176 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5177 Add `args' parameter.
5178 * gdbarch.h, gdbarch.c: Regenerate.
5179
5180 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5181
5182 * infcmd.c (float_info): Call print_float_info.
5183 (print_float_info): New function. By default, print the
5184 floating-point registers.
5185
5186 * arch-utils.h (default_print_float_info): Delete declaration.
5187 * arch-utils.c (default_print_float_info): Delete function.
5188
e0ca2bb9
MK
51892002-08-16 Mark Kettenis <kettenis@gnu.org>
5190
3f733acc
MK
5191 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5192 out define.
5193
7d8d2918
MK
5194 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5195 FRAME.
5196
1c7cc583
MK
5197 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5198 * configure.host: Make i[3456]86-*-aix host obsolete.
5199 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5200 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5201 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5202 config/i386/xm-i386aix.h: Make files obsolete.
5203 * i386aix-nat.c: Make file obsolete.
5204 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5205 (i386aix-nat.o): Make target obsolete.
5206
e0ca2bb9
MK
5207 * config/i386/nm-gnu.h: Removed.
5208 * config/i386/nm-i386gnu.h: New file.
5209 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5210 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5211 Moved here from ...
5212 * config/i386/tm-i386gnu.h: ... here. Removed.
5213 * config/i386/xm-i386gnu.h: Removed.
5214 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5215 (NAT_FILE): Set to nm-i386gnu.h.
5216 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5217 * i386-tdep.c: New file.
5218 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5219 (i386gnu-tdep.o): Specify dependencies.
5220
16057ec7 52212002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5222
6b99ee2e
MK
5223 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5224 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5225 Adjust a few comments to reflect reality a bit closer.
5226 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5227 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5228 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5229 target_insert_watchpoint, target_remove_watchpoint):
5230 Move defines to ...
5231 * config/i386/nm-i386sco5.h: ... here.
5232 (kernel_u_size): Add prototype. Improve a few comments and add
5233 protection against multiple inclusion.
5234
d9a6f65c
MK
5235 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5236 out define.
5237
047eff6a
MK
5238 * uw-thread.c (SP_ARG0): Define if not already defined.
5239 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5240
dcdb1290
MK
5241 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5242
5d2d0b2a
MK
5243 * config/i386/tm-i386.h: Don't include "regcache.h".
5244
61113f8b
MK
5245 * i387-tdep.h (i387_print_float_info): New prototype.
5246 * i387-tdep.c (print_i387_value, print_i387_ext,
5247 print_i387_status_word, print_i387_control_word): Add `struct
5248 ui_file *' argument and use it for output.
5249 (i387_print_float_info): Renamed from i387_float_info. Add
5250 `struct gdbarch *' and `struct ui_file *' arguments and use the
5251 latter for output.
5252 * i386-tdep.c: Include "i387-tdep.h".
5253 (i386_gdbarch_init): Set print_float_info.
5254 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5255 (FLOAT_INFO): Remove define.
5256
46e0f506
MS
52572002-08-13 Michael Snyder <msnyder@redhat.com>
5258
5259 * mips-tdep.c (mips_push_arguments): Rename to
5260 mips_eabi_push_arguments, and tune for EABI.
5261 (MIPS_REGS_HAVE_HOME_P): Delete.
5262 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5263 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5264 Delete references to mips_regs_have_home_p.
5265
409268de
KS
52662002-08-14 Keith Seitz <keiths@redhat.com>
5267
5268 * Makefile.in (install-gdbtk): Create insight plugin directory.
5269 Install plugins.tcl file.
5270
ffc6a242
KS
52712002-08-14 Keith Seitz <keiths@redhat.com>
5272
5273 * configure.in: Move SUBDIRS to near top of the file so that
5274 --enable options may add things to it.
5275 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5276 * configure: Regenerate.
5277
ebafbe83
MS
52782002-08-13 Michael Snyder <msnyder@redhat.com>
5279
5280 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5281 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5282 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5283
32f6f25d
AC
52842002-08-13 Andrew Cagney <ac131313@redhat.com>
5285
5286 * vax-tdep.c (vax_get_saved_register): Delete function.
5287 (vax_gdbarch_init): Update.
5288 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5289 (ns32k_gdbarch_init): Update.
5290 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5291 (alpha_gdbarch_init): Update.
5292
53826de9
AC
52932002-08-13 Andrew Cagney <cagney@redhat.com>
5294
5295 * regcache.c (init_regcache_descr): Overallocate the
5296 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5297 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5298 nr_raw_registers.
5299 (set_register_cached): Add range checking assertions. Use
5300 current_regcache.
5301
16057ec7 53022002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5303
5304 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5305 numbers for MMX registers.
5306
7b4c2dce
AC
53072002-08-13 Andrew Cagney <cagney@redhat.com>
5308
5309 * i386-tdep.c (i386_gdbarch_init): Use
5310 generic_unwind_get_saved_register.
5311
1e03ad20
KB
53122002-08-13 Kevin Buettner <kevinb@redhat.com>
5313
5314 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5315 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5316 target vector.
5317 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5318 Delete. Add comment regarding this now-deleted target method.
5319
548bcbec
SC
53202002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5321
5322 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5323 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5324 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5325 real PC and the page number (if it's within the memory bank window).
5326 (m68hc11_pseudo_register_write): Likewise when saving.
5327 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5328 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5329 (m68hc11_register_raw_size): And use 32-bit for it.
5330 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5331 16K memory bank is used by the prog; also use the virtual pc.
5332
7df11f59
SC
53332002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5334
5335 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5336 (m68hc11_gdbarch_init): Install it in gdbarch.
5337 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5338 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5339 (MSYMBOL_SIZE): New for documentation.
5340 (insn_return_kind): Enum to specify how a function returns.
5341 (frame_extra_info): Cleanup and record the return mode.
5342 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5343 register in address computation.
5344 (m68hc11_get_return_insn): New to obtain the return instruction used
5345 by the function.
5346 (m68hc11_frame_init_saved_regs): Take into account the return
5347 instruction used by the function for far and interrupt functions.
5348 (m68hc11_init_extra_frame_info): Take into account page register.
5349 (m68hc11_frame_args_address): Adjust according to the return mode.
5350 (show_regs): Print page register only when it's used.
5351
5706502a
SC
53522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5353
5354 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5355 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5356 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5357 registers.
5358 (m68hc11_register_raw_size): Likewise.
5359
28fc6740
AC
53602002-08-13 Andrew Cagney <cagney@redhat.com>
5361
5362 * i386-tdep.c (i386_register_name): Handle mmx registers.
5363 (mmx_regnum_p): New function.
5364 (i386_mmx_names): New array.
5365 (mmx_num_regs): New variable.
5366 (i386_pseudo_register_read): New function.
5367 (i386_pseudo_register_write): New function.
5368 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5369
5370 * regcache.c (regcache_raw_read_unsigned): New function.
5371 (regcache_raw_read_signed): New function.
5372 * regcache.h (regcache_raw_read_unsigned): Declare.
5373 (regcache_raw_read_signed): Declare.
5374
a378f419
AC
53752002-08-13 Andrew Cagney <cagney@redhat.com>
5376
5377 * regcache.c (regcache_raw_read_as_address): Delete function.
5378 (regcache_cooked_read_signed): New function.
5379 (regcache_cooked_read_unsigned): New function.
5380 * regcache.h (regcache_cooked_read_signed): Declare.
5381 (regcache_cooked_read_unsigned): Declare.
5382 (regcache_raw_read_as_address): Delete declaration.
5383
5384 * blockframe.c (generic_read_register_dummy): Use
5385 regcache_cooked_read_unsigned.
5386 * i386-tdep.c (i386_extract_struct_value_address): Use
5387 regcache_cooked_read_unsigned.
5388
81967506
SC
53892002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5390
5391 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5392 double sizes according to ELF ABI flags.
5393 (gdbarch_tdep): Record elf_flags.
5394
ffe1f3ee
SC
53952002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5396
5397 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5398 (m6812_prolog): They can appear in 68HC12 function prologue.
5399 (m68hc11_frame_chain): Cleanup.
5400
98216c5d
AC
54012002-08-12 Andrew Cagney <cagney@redhat.com>
5402
5403 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5404 declarations.
5405 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5406 (i386_linux_register_raw_size): Delete function.
5407 (i386_linux_init_abi): Update.
5408 * i386-tdep.c (i386_register_raw_size): Delete function.
5409 (i386_register_byte): Delete function.
5410 (i386_gdbarch_init): Update.
5411 (i386_register_size): Delete array.
5412 (i386_register_offset): Delete array.
5413
5414 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5415 (REGISTER_RAW_SIZE): Delete macro.
5416 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5417 (REGISTER_BYTE): Delete macro.
5418
3b19021e
AS
54192002-08-11 Aidan Skinner <aidan@velvet.net>
5420
5421 * ada-lang.c (ada_lookup_partial_symbol)
5422 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5423 prototype names so that grep ^func works properly.
5424
5425 * ada-lang.c (ada_array_element_type)
5426 (ada_lookup_partial_symbol): Fix typos in parameter list.
5427
5428 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5429 Fix prototype names so that grep ^func works properly.
5430
b063e7a2
AC
54312002-08-10 Andrew Cagney <cagney@redhat.com>
5432 Elena Zannoni <ezannoni@redhat.com>
5433 Martin M. Hunt <hunt@redhat.com>
5434
5435 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5436 (build_builtin_type_vec128i): Set the vector bit.
5437 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5438 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5439 (build_builtin_type_vec64): New function.
5440 (build_builtin_type_vec64i): New function.
5441 (build_gdbtypes): Initialize builtin_type_vec64 and
5442 builtin_type_vec64i.
5443
a7e3c2ad
AC
54442002-08-09 Andrew Cagney <cagney@redhat.com>
5445
5446 * regcache.c (regcache_dump): Compare the register offset
5447 with REGISTER_BYTE.
5448 * arch-utils.c (generic_register_byte): New function.
5449 * arch-utils.h (generic_register_byte): Declare.
5450 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5451 * gdbarch.h, gdbarch.c: Regenerate.
5452
af030b9a
AC
54532002-08-09 Andrew Cagney <cagney@redhat.com>
5454
5455 * regcache.c: Include "gdbcmd.h"
5456 (_initialize_regcache): Add commands "maintenance print
5457 registers", "maintenance print raw-registers" and "maintenance
5458 print cooked-registers".
5459 (enum regcache_dump_what): Define.
5460 (dump_endian_bytes): New function.
5461 (regcache_dump): New function.
5462 (regcache_print): New function.
5463 (maintenance_print_registers): New function.
5464 (maintenance_print_raw_registers): New function.
5465 (maintenance_print_cooked_registers): New function.
5466 * Makefile.in (regcache.o): Update dependencies.
5467
cb3d25d1
MS
54682002-08-09 Michael Snyder <msnyder@redhat.com>
5469
5470 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5471 (mips_push_arguments): Correct some comments. Use paddr_nz
5472 for printing addresses in debug output. Replace static
5473 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5474 (mips_n32n64_push_arguments): New function, cloned from
5475 mips_push_arguments and tuned for the n32/n64 ABI.
5476 (mips_push_register): Buffer needs dynamic allocation.
5477 (mips_print_register): Ditto.
5478 (do_gp_register_row): Ditto.
5479 (mips_store_return_value): Ditto.
5480 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5481
2163ab9d
DH
54822002-08-09 Don Howard <dhoward@redhat.com>
5483
5484 * memattr.c (mem_info_command): Print special case of upper bound
5485 as max CORE_ADDR + 1.
5486
b78bcb18
MS
54872002-08-08 Michael Snyder <msnyder@redhat.com>
5488
5489 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5490 returns structs by ref if they're too big to fit in two registers.
5491
ffabd70d
KB
54922002-08-09 Kevin Buettner <kevinb@redhat.com>
5493
5494 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5495 saved regs value.
5496 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5497 mips_find_saved_regs().
5498 (mips_pop_frame): Likewise.
5499
fbcdb4a3
KB
55002002-08-09 Kevin Buettner <kevinb@redhat.com>
5501
5502 * blockframe.c (frame_saved_regs_register_unwind): Revise
5503 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5504 frames are in use.
5505
3c3bea1c
GS
55062002-08-09 Grace Sainsbury <graces@redhat.com>
5507
5508 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5509 T-packets; the 'a' is not taken as a register number.
5510 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5511 (remote_stopped_data_address): New functions; add to target
5512 vector.
5513 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5514 prototypes to match other implementations of this
5515 function. replace integer argument with pointer -- the length
5516 field in the Z-packet is the length of what is pointed to or 1 if
5517 pointer is null. Add to target vector.
5518 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5519 target vector.
5520
5521 From Mark Salter:
5522 * remote.c (remote_wait): Add support to extract optional
5523 watchpoint information from T-packet. Ignore unrecognized
5524 optional info in T-packet.
5525 (remote_async_wait): Ditto.
5526
5d1d95de
CV
55272002-08-09 Corinna Vinschen <vinschen@redhat.com>
5528
5529 * cli/cli-dump.c: Change fopen modes to use binary open modes
5530 as defined in include/fopen-bin.h throughout.
5531
c86b5b38
MS
55322002-08-08 Michael Snyder <msnyder@redhat.com>
5533
5534 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5535
b30590dc
KB
55362002-08-08 Kevin Buettner <kevinb@redhat.com>
5537
5538 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5539 assertion failure by returning early after a warning.
5540
498868ed
KB
55412002-08-08 Kevin Buettner <kevinb@redhat.com>
5542
5543 * mips-tdep.c (mips_find_saved_regs): Make static.
5544 (mips_frame_init_saved_regs): New function.
5545 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5546 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5547 (mips_find_saved_regs): Delete declaration.
5548
b2dd6311
GS
55492002-08-08 Grace Sainsbury <graces@redhat.com>
5550
3c3bea1c
GS
5551 * remote.c (remote_wait, remote_async_wait): Change
5552 thread_num from int to ULONGEST.
5553 (unpack_varlen_hex): Change result parameter from
5554 int * to ULONGEST *.
b2dd6311 5555
ea47855f
AC
55562002-08-08 Andrew Cagney <ac131313@redhat.com>
5557
5558 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5559 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5560 powerpc*-*-*.
5561 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5562
69db8bae
AC
55632002-08-08 Andrew Cagney <cagney@redhat.com>
5564
5565 * gcore.c (override_derive_stack_segment): Delete variable.
5566 (preempt_derive_stack_segment): Delete function.
5567 (derive_stack_segment): Delete function.
5568 (default_derive_stack_segment): Renamed to derive_stack_segment.
5569 (override_derive_heap_segment): Delete variable.
5570 (preempt_derive_heap_segment): Delete function.
5571 (derive_heap_segment): Delete function.
5572 (default_derive_heap_segment): Rename to derive_heap_segment.
5573
cb811fe7
MS
55742002-08-06 Michael Snyder <msnyder@redhat.com>
5575
5576 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5577 * mips-tdep.c (mips_EABI_use_struct_convention,
5578 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5579 New functions. (mips_use_struct_convention): Delete.
5580 (mips_gdbarch_init): set use_gdbarch_convention.
5581
8b389c40
MS
55822002-08-06 Michael Snyder <msnyder@redhat.com>
5583
5584 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5585 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5586 mips_o32_reg_struct_has_addr): New functions.
5587 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5588
5c27f28a
AC
55892002-08-07 Andrew Cagney <ac131313@redhat.com>
5590
5591 * regcache.c (pseudo_register): Delete function.
5592 (fetch_register): Delete function.
5593 (store_register): Delete function.
5594 (regcache_raw_read, legacy_read_register_gen): Use
5595 target_fetch_registers instead of fetch_register.
5596 (legacy_write_register_gen, regcache_raw_write): Use
5597 target_store_register instead of store_register.
5598 (write_register_bytes): Ditto.
5599
5600 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5601 (STORE_PSEUDO_REGISTER): Delete.
5602 * gdbarch.h, gdbarch.c: Regenerate.
5603
5b331675
CV
56042002-08-06 Corinna Vinschen <vinschen@redhat.com>
5605
5606 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5607 write dump file binary.
5608
6acdf5c7
MS
56092002-08-05 Michael Snyder <msnyder@redhat.com>
5610
5611 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5612 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5613 (mips_gdbarch_init): Set N32 target to be mips64.
5614
b2f01c35
KB
56152002-08-06 Kevin Buettner <kevinb@redhat.com>
5616
5617 * frame.c (find_saved_register): Break out of loop once saved
5618 register address is found. Don't mention sparc in loop comment
5619 anymore.
5620
63db5580
KB
56212002-08-06 Kevin Buettner <kevinb@redhat.com>
5622
5623 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5624 mips_default_saved_regsize to 8.
5625
5e34e75e
AC
56262002-08-06 Andrew Cagney <ac131313@redhat.com>
5627
5628 * gcore.c: Do not include <sys/procfs.h>.
5629 * Makefile.in (gcore.o): Update dependencies.
5630
eb4c54a2
AC
56312002-08-06 Andrew Cagney <cagney@redhat.com>
5632
5633 * configure.tgt: Make arc-*-* obsolete.
5634 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5635 * MAINTAINERS: Make arc-elf obsolete.
5636 * arc-tdep.c: Make file obsolete.
5637 * config/arc/arc.mt: Ditto.
5638 * config/arc/tm-arc.h: Ditto.
5639
ced15480
TR
56402002-08-05 Theodore A. Roth <troth@verinet.com>
5641
c1bab85b 5642 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5643
b4743822
AC
56442002-08-05 Andrew Cagney <ac131313@redhat.com>
5645
5646 * mcore-tdep.c (mcore_gdbarch_init): Use
5647 generic_unwind_get_saved_register instead of
5648 generic_get_saved_register.
5649 * v850-tdep.c (v850_gdbarch_init): Ditto.
5650 * frv-tdep.c (frv_gdbarch_init): Ditto.
5651 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5652 * s390-tdep.c (s390_gdbarch_init): Ditto.
5653 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5654 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5655 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5656
3956d554
JB
56572002-08-05 Joel Brobecker <brobecker@gnat.com>
5658
5659 * objfiles.h: Add missing #include "symfile.h"
5660
5661 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5662
8249c0d6
AC
56632002-08-04 Andrew Cagney <ac131313@redhat.com>
5664
5665 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5666 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5667 of FIELD_BITSIZE.
5668
b9d14705
DJ
56692002-08-04 Daniel Jacobowitz <drow@mvista.com>
5670
5671 * NEWS: Cleanup and nitpick.
5672
dd73b9bb
AC
56732002-08-03 Andrew Cagney <ac131313@redhat.com>
5674
5675 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5676
043a27f8
AC
56772002-08-03 Andrew Cagney <ac131313@redhat.com>
5678
5679 * Makefile.in (gdbtk-bp.o): Update dependencies.
5680 (gdbtk-register.o): Ditto.
5681 (gdbtk-varobj.o): Ditto.
5682
46ce284d
AC
56832002-08-03 Andrew Cagney <cagney@redhat.com>
5684
5685 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5686 m68hc11_fetch_pseudo_register.
5687 (m68hc11_pseudo_register_write): Replace
5688 m68hc11_store_pseudo_register.
5689 (m68hc11_gdbarch_init): Update.
5690
b66d6d2e
AC
5691Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5692
5693 * gdbarch.sh: Include "gdb_string.h".
5694 * gdbarch.c: Regenerate.
5695
5696 * regcache.c: Include "gdb_string.h".
5697 * ax-general.c: Ditto.
5698 * varobj.c: Ditto.
5699 * std-regs.c: Ditto.
5700 * fbsd-proc.c: Ditto.
5701 * thread.c: Ditto.
5702
5703 * Makefile.in (regcache.o): Update dependencies.
5704 (thread.o, gdbarch.o): Ditto.
5705 (ax-general.o, gdbarch.o): Ditto.
5706 (varobj.o, std-regs.o): Ditto.
5707 (fbsd-proc.o): Specify dependencies.
5708
29e1842b
AC
57092002-08-02 Andrew Cagney <cagney@redhat.com>
5710
5711 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5712 regnum.
5713 (regcache_cooked_write): Ditto.
5714
68365089
AC
57152002-08-02 Andrew Cagney <ac131313@redhat.com>
5716
5717 * regcache.c (regcache_cooked_read): New function.
5718 (regcache_cooked_write): New function.
5719 (read_register_gen): Rewrite using regcache_cooked_read.
5720 (write_register_gen): Rewrite using regcache_cooked_write.
5721
5722 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5723 Declare.
5724
d8124050
AC
57252002-08-02 Andrew Cagney <cagney@redhat.com>
5726
5727 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5728 Replace the architecture methods register_read and register_write.
5729 * gdbarch.h, gdbarch.c: Regenerate.
5730 * regcache.c (init_regcache_descr): Update.
5731 (read_register_gen): Update.
5732 (write_register_gen): Update.
5733 (supply_register): Update comment.
5734
5735 * sh-tdep.c (sh_gdbarch_init): Update.
5736 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5737 `regcache' and `gdbarch' parameters. Make `buffer' a void
5738 pointer. Update code.
5739 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5740 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5741 void pointer. Update code.
5742 (sh64_register_write): Delete.
5743 (sh4_register_read): Delete.
5744 (sh64_register_read): Delete.
5745 (sh4_register_write): Delete.
5746 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5747 void pointer, `to' parameter a void pointer.
5748 (sh_sh64_register_convert_to_raw): Ditto.
5749
a6425924
KB
57502002-08-01 Kevin Buettner <kevinb@redhat.com>
5751
5752 * mips-tdep.c (mips_register_virtual_type): Use architecture
5753 invariant return values.
5754
ff5922b5
AC
57552002-08-01 Andrew Cagney <cagney@redhat.com>
5756
5757 * linux-proc.c: Include "gdb_string.h".
5758 * Makefile.in (linux-proc.o): Update dependency list.
5759
32a6503c
KB
57602002-08-01 Kevin Buettner <kevinb@redhat.com>
5761
5762 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5763 comment.
5764
ccaa32c7
GS
57652002-08-01 Grace Sainsbury <graces@redhat.com>
5766
5767 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5768 to_insert_watchpoint, to_remove_watchpoint,
5769 to_stopped_by_watchpoint, to_stopped_data_address,
5770 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5771 target vecctor. Define their corresponding macros so they call
5772 them.
5773
5774 * target.c: Add default and debug versions of for
5775 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5776 to_insert_watchpoint, to_remove_watchpoint,
5777 to_stopped_by_watchpoint, to_stopped_data_address,
5778 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5779
78fde5f8
KB
57802002-08-01 Kevin Buettner <kevinb@redhat.com>
5781
5782 * mips-tdep.c (mips_register_virtual_type): New function.
5783 (mips_gdbarch_init): Register mips_register_virtual_type()
5784 with gdbarch machinery.
5785 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5786 this file instead of tm-bigmips.h.
5787 (MIPS_REGSIZE): Delete this macro.
5788 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5789 multiarch version in mips-tdep.c will be found.
5790
db034ac5
AC
57912002-08-01 Andrew Cagney <cagney@redhat.com>
5792
5793 * NEWS: Menion that CHILL has been made obsolete.
5794
5795 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5796 * stabsread.c (read_range_type): Ditto.
5797 * gdbtypes.h: Ditto.
5798 * language.c (binop_type_check): Ditto.
5799 (binop_result_type): Ditto.
5800 (integral_type): Ditto.
5801 (character_type): Ditto.
5802 (string_type): Ditto.
5803 (boolean_type): Ditto.
5804 (structured_type): Ditto.
5805 (lang_bool_type): Ditto.
5806 (binop_type_check): Ditto.
5807 * language.h (_LANG_chill): Ditto.
5808 * dwarfread.c (set_cu_language): Ditto.
5809 * dwarfread.c (CHILL_PRODUCER): Ditto.
5810 * dwarfread.c (handle_producer): Ditto.
5811 * expression.h (enum exp_opcode): Ditto.
5812 * eval.c: Ditto for comments.
5813 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5814 * expprint.c (print_subexp): Ditto.
5815 (print_subexp): Ditto.
5816 * valops.c (value_cast): Ditto.
5817 (search_struct_field): Ditto.
5818 * value.h (COERCE_VARYING_ARRAY): Ditto.
5819 * symfile.c (init_filename_language_table): Ditto.
5820 (add_psymbol_with_dem_name_to_list): Ditto.
5821 * valarith.c (value_binop): Ditto.
5822 (value_neg): Ditto.
5823 * valops.c (value_slice): Ditto.
5824 * symtab.h (union language_specific): Ditto.
5825 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5826 (SYMBOL_DEMANGLED_NAME): Ditto.
5827 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5828 * defs.h (enum language): Ditto.
5829 * symtab.c (got_symtab): Ditto.
5830 * utils.c (fprintf_symbol_filtered): Ditto.
5831
5832 * ch-typeprint.c: Make file obsolete.
5833 * ch-valprint.c: Make file obsolete.
5834 * ch-lang.h: Make file obsolete.
5835 * ch-exp.c: Make file obsolete.
5836 * ch-lang.c: Make file obsolete.
5837
5838 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5839 CHILL_LIB.
5840 (TARGET_FLAGS_TO_PASS): Ditto.
5841 (CHILLFLAGS): Obsolete.
5842 (CHILL): Obsolete.
5843 (CHILL_FOR_TARGET): Obsolete.
5844 (CHILL_LIB): Obsolete.
5845 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5846 ch-valprint.c.
5847 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5848 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5849 ch-lang.o.
5850 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5851 targets.
5852
8aaf0b47
JB
58532002-07-31 Joel Brobecker <brobecker@gnat.com>
5854
5855 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5856 This does not change anything at the moment, but will be helpful
5857 later when full Ada support is integrated.
5858
f3a7b3a5
KB
58592002-07-31 Kevin Buettner <kevinb@redhat.com>
5860
5861 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5862 help message.
5863
fb850278
KB
58642002-07-31 Kevin Buettner <kevinb@redhat.com>
5865
5866 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5867 and save it in a local variable. Use variable in later test.
5868
e3bddbfa
KB
58692002-07-31 Kevin Buettner <kevinb@redhat.com>
5870
5871 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5872 test. (Thanks to Daniel Jacobowitz.)
5873
28d169de
KB
58742002-07-31 Kevin Buettner <kevinb@redhat.com>
5875
5876 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5877 (mips_abi_strings): Add "n64".
5878 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5879
7fe7e44e
KB
58802002-07-31 Kevin Buettner <kevinb@redhat.com>
5881
5882 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5883 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5884
c6caf090
KB
58852002-07-31 Kevin Buettner <kevinb@redhat.com>
5886
5887 * utils.c (host_pointer_to_address, address_to_host_pointer):
5888 Use gdb_assert() instead of explicit call to internal_error().
5889
c41669e0
KB
58902002-07-30 Kevin Buettner <kevinb@redhat.com>
5891
5892 * Makefile.in (rs6000-nat.o): Update dependencies.
5893
5894 From Nicholas Duffek:
5895 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5896 (aix-thread.o): New rule.
5897 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5898 * config/powerpc/aix432.mh: New file.
5899
2fda4977
DJ
59002002-07-30 Daniel Jacobowitz <drow@mvista.com>
5901
5902 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5903 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5904 (fetch_core_registers, ppc_linux_supply_gregset)
5905 (ppc_linux_supply_fpregset): New functions.
5906 (ppc_linux_regset_core_fns): New.
5907 (_initialize_ppc_linux_tdep): Call add_core_fns.
5908 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5909 and ppc_linux_supply_gregset.
5910 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5911 (supply_fpregset): Call ppc_linux_supply_fpregset.
5912 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5913 corelow.o.
5914 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5915
729051e6
DJ
59162002-07-30 Daniel Jacobowitz <drow@mvista.com>
5917
5918 * symtab.c (lookup_symbol): Demangle before lowercasing.
5919
5f8a3188
AC
59202002-07-30 Andrew Cagney <ac131313@redhat.com>
5921
5922 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5923 declaration.
5924 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5925 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5926 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5927 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5928 "gdb_string.h".
5929 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5930 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5931 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5932 (avr-tdep.o, mon960-rom.o): Ditto.
5933 (aout_stabs_gnu_h): Define.
5934 (symtab_h): Remove $(gdb_obstack_h).
5935
67f07146
JB
59362002-07-30 Jim Blandy <jimb@redhat.com>
5937
5938 Patch from David Carlton <carlton@math.stanford.edu>:
5939 * gdbinit.in: Move the `dir' commands that add GDB's own source
5940 directory to the search path to the end, so that the `gdb' source
5941 directory will be searched first.
5942
04ea0df1
AC
59432002-07-29 Andrew Cagney <ac131313@redhat.com>
5944
5945 * gdb_obstack.h: New file.
5946 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5947 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5948 * objfiles.h: Include "gdb_obstack.h".
5949 * Makefile.in (gdb_obstack_h): Define.
5950 (symtab_h): Add $(gdb_obstack_h).
5951 (objfiles_h): Add $(gdb_obstack_h).
5952
5953 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5954 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5955 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5956 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5957 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5958 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5959 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5960 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5961
5962 * Makefile.in (bcache.o): Update dependencies.
5963 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5964 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5965 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5966 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5967 (stabsread.o, symfile.o, symmisc.o): Ditto.
5968 (symtab.o, typeprint.o, macroexp.o): Ditto.
5969 (macrotab.o, mdebugread.o): Ditto.
5970 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5971 (coff_ecoff_h, aout_aout64_h): Define.
5972 (aout_stabs_gnu_h, libaout_h): Define.
5973
d138e37a
AC
59742002-07-29 Andrew Cagney <cagney@redhat.com>
5975
5976 * regcache.c (struct regcache_descr): Rename nr_registers to
5977 nr_cooked_registers. Revise comments describing the structure
5978 member fields.
5979 (init_regcache_descr): Update.
5980 (init_legacy_regcache_descr): Update.
5981 (read_register_gen, write_register_gen): When a cooked register in
5982 the raw register range, directly access the value from the raw
5983 register cache.
5984
460e6ec3
AC
59852002-07-29 Andrew Cagney <ac131313@redhat.com>
5986
5987 * z8k-tdep.c: Do not include "obstack.h".
5988 * h8300-tdep.c, h8500-tdep.c: Ditto.
5989 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5990 * valprint.c, v850-tdep.c: Ditto.
5991 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5992 * mn10200-tdep.c: Ditto.
5993
5994 * Makefile.in (z8k-tdep.o): Update dependencies.
5995 (m68hc11-tdep.o, valprint.o): Ditto.
5996 (v850-tdep.o, d10v-tdep.o): Ditto.
5997 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5998 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5999 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6000 (sh_opc_h, gdb_sim_sh_h): Define.
6001 (elf_sh_h, elf_bfd_h): Define.
6002 (opcode_m68hc11_h): Define.
6003 (OPCODES_SRC, OPCODES_DIR): define.
6004 (OPCODES): Use $(OPCODES_DIR).
6005 (gdb_sim_d10v_h): Rename sim_d10v_h.
6006 (gdb_sim_arm_h): Rename sim_arm_h.
6007
790c9cf0
KB
60082002-07-26 Kevin Buettner <kevinb@redhat.com>
6009
6010 * utils.c (host_pointer_to_address, address_to_host_pointer):
6011 Change internal_error() message to indicate function responsible
6012 for the error.
6013
9647fa49
KB
60142002-07-26 Kevin Buettner <kevinb@redhat.com>
6015
6016 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6017 calls to local_hex_string_custom().
6018
dabbe2c0
KB
60192002-07-26 Kevin Buettner <kevinb@redhat.com>
6020
6021 * irix5-nat.c: Move IRIX shared library support from here...
6022 * solib-irix.c: ...to here. Revised substantially to work with
6023 generic solib framework.
6024
b96d0a4e
KB
6025 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6026 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6027 * mips-irix-tdep.c: New file.
6028
313fb2f6
KB
6029 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6030 (mips-irix-tdep.o, solib-irix.o): New rules.
6031 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6032 solib-irix.o.
6033 * config/mips/irix6.mt (TDEPFILES): Likewise.
6034 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6035
ab2eaf26
KB
60362002-07-26 Kevin Buettner <kevinb@redhat.com>
6037
177e4768 6038 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6039 disabled (via ``#if 0'') includes.
6040
7244546a
KB
60412002-07-26 Kevin Buettner <kevinb@redhat.com>
6042
6043 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6044 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6045 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6046 Add support for the fpscr register.
6047 * rs6000-nat.c (regmap, fetch_inferior_registers)
6048 (store_inferior_registers, fetch_core_registers): Likewise.
6049
dd7be90a
KB
60502002-07-26 Kevin Buettner <kevinb@redhat.com>
6051
6052 * rs6000-nat.c (language.h): Include.
6053 (special_regs): Delete this array.
6054 (regmap): New function.
6055 (fetch_register, store_register): Use regmap() to map gdb
6056 register numbers to ptrace register numbers. Also, use
6057 outputs from regmap() to make decisions regarding type of
6058 ptrace() call to make. In particular, don't compare against
6059 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6060 (fetch_inferior_registers, store_inferior_registers): Where
6061 possible, obtain register numbers from tdep struct. Don't
6062 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6063 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6064 (LAST_UISA_SP_REGNUM): Delete.
6065
11bf77db
KB
60662002-07-25 Kevin Buettner <kevinb@redhat.com>
6067
6068 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6069 (fetch_registers, store_register, fetch_core_registers): Don't
6070 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6071 regcache_collect() as appropriate.
6072 (find_toc_address): Format hex address with local_hex_string().
6073
06afebeb
AC
60742002-07-25 Andrew Cagney <ac131313@redhat.com>
6075
6076 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6077 bfd/elf32-frv.c.
6078
8c554d79
TT
60792002-07-24 Tom Tromey <tromey@redhat.com>
6080
6081 * jv-exp.y: Marked all strings with _().
6082 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6083 internal_error.
6084 (MethodInvocation, CastExpression, parse_number, yyerror,
6085 java_type_from_name, push_expression_name, yylex): Typo fixes.
6086
e4c242d9
DJ
60872002-07-24 Daniel Jacobowitz <drow@mvista.com>
6088
6089 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6090 (tee_file_flush, tee_file_write, tee_file_fputs)
6091 (tee_file_isatty): New.
6092 * ui-file.h (tee_file_new): Add prototype.
6093
ebf56fd3
AS
60942002-07-24 Aidan Skinner <aidan@velvet.net>
6095
6096 * ada-lang.c: Change k&r style function definitions to prototyped
6097 form.
6098 * ada-typeprint.c: Change k&r style function definitions to prototyped
6099 form.
6100 * ada-valprint.c: Change k&r style function definitions to prototyped
6101 form.
6102
7fb623f7
AC
61032002-07-24 Andrew Cagney <cagney@redhat.com>
6104
6105 * README: Remove reference to remote-bug.
6106 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6107 remote-bug.c.
6108 (m88k-nat.o): Delete rule.
6109 (m88k-tdep.o): Delete rule.
6110 (remote-bug.o): Delete rule.
6111 * MAINTAINERS: Mark as obsolete.
6112 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6113 * m88k-tdep.c: Make file obsolete.
6114 * config/m88k/m88k.mh: Ditto.
6115 * config/m88k/delta88v4.mh: Ditto.
6116 * config/m88k/delta88v4.mt: Ditto.
6117 * config/m88k/delta88.mt: Ditto.
6118 * config/m88k/delta88.mh: Ditto.
6119 * remote-bug.c: Ditto.
6120 * config/m88k/tm-delta88.h: Ditto.
6121 * config/m88k/nm-delta88v4.h: Ditto.
6122 * config/m88k/xm-delta88.h: Ditto.
6123 * config/m88k/xm-dgux.h: Ditto.
6124 * config/m88k/tm-m88k.h: Ditto.
6125 * config/m88k/nm-m88k.h: Ditto.
6126 * config/m88k/tm-delta88v4.h: Ditto.
6127 * m88k-nat.c: Ditto.
6128 * cxux-nat.c: Ditto.
6129 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6130 and m88*-*-* obsolete.
6131 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6132 m88*-*-* obsolete.
6133
37611a2b
AC
61342002-07-24 Andrew Cagney <cagney@redhat.com>
6135
6136 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6137 constant. Same for local pointer variables.
6138 (extract_signed_integer): Ditto.
6139 * defs.h (extract_unsigned_integer): Update.
6140 (extract_signed_integer): Update.
6141
1aaa5f99
AC
61422002-07-24 Andrew Cagney <cagney@redhat.com>
6143
6144 * regcache.c (regcache_raw_write): Change buf parameter to a
6145 constant void pointer.
6146 (regcache_raw_read): Change buf parameter to a void pointer.
6147 (legacy_write_register_gen): Change myaddr parameter a constant
6148 void pointer.
6149 (supply_register): Change val parameter to a const void pointer.
6150 * regcache.h (regcache_raw_write): Update declaration.
6151 (regcache_raw_read): Update declaration.
6152 (supply_register): Update declaration.
6153
b4f5539f
TT
61542002-07-24 Tom Tromey <tromey@redhat.com>
6155
6156 * defs.h (gdb_readline_wrapper): Declare.
6157 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6158 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6159 * top.c (gdb_readline_wrapper): New function.
6160 (command_line_input): Use it.
6161
0818c12a
AC
61622002-07-24 Andrew Cagney <cagney@redhat.com>
6163
6164 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6165 regcache_read and regcache_write.
6166 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6167 * regcache.c: Update.
6168 * sh-tdep.c (sh64_push_arguments): Update comment.
6169 (sh_pseudo_register_read): Update.
6170 (sh_pseudo_register_write): Update.
6171 (sh4_register_read): Update.
6172 (sh4_register_write): Update.
6173 (sh64_pseudo_register_read): Update.
6174 (sh64_pseudo_register_write): Update.
6175 (sh64_register_read): Update.
6176 (sh64_register_write): Update.
6177 * i386-tdep.c (i386_extract_return_value): Update.
6178 (i386_extract_struct_value_address): Update.
6179 (i386_extract_return_value): Update.
6180 * blockframe.c (generic_read_register_dummy): Update.
6181 (generic_call_dummy_register_unwind): Update
6182 * infrun.c (write_inferior_status_register): Update.
6183
f7321c06
JB
61842002-07-23 Jim Blandy <jimb@redhat.com>
6185
6186 * parser-defs.h (expression_context_pc): Make this extern.
6187 (Thanks to Michael Snyder.)
6188
2037aebb
AC
61892002-07-23 Andrew Cagney <ac131313@redhat.com>
6190
6191 GDB 5.2.1 released from 5.2 branch.
6192 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6193 * README: Update to mention 5.2.1.
6194
66504d44
MS
61952002-07-23 Mark Salter <msalter@redhat.com>
6196
6197 * remote.c (remote_read_bytes): Fix check for error.
6198
27bae383
KB
61992002-07-22 Kevin Buettner <kevinb@redhat.com>
6200
6201 * aix-thread.c (language.h): Include.
6202 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6203 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6204 Print newlines at end of debug messages.
6205 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6206 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6207
62082002-07-22 Kevin Buettner <kevinb@redhat.com>
6209
6210 * aix-thread.c (ppc-tdep.h): Include.
6211 (special_register_p): New function.
6212 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6213 (store_regs_user_thread): Use register number information from
6214 gdbarch_tdep struct instead of hardcoded offsets relative to
6215 FIRST_UISA_SP_REGNUM.
6216 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6217 special_register_p() instead of using FPLAST_REGNUM and
6218 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6219 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6220 will be MQ's register number.
6221
62222002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6223
6224 * aix-thread.c (ops): Rename to aix_thread_ops.
6225 (base_ops): Rename to base_target.
6226 (ops_attach): Rename to aix_thread_attach.
6227 (ops_detach): Rename to aix_thread_detach.
6228 (ops_resume): Rename to aix_thread_detach.
6229 (ops_wait): Rename to aix_thread_wait.
6230 (ops_kill): Rename to aix_thread_kill.
6231 (init_ops): Rename to init_aix_thread_ops.
6232 (ops_fetch_register): Rename to aix_thread_fetch_register.
6233 (ops_store_register): Rename to aix_thread_store_register.
6234 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6235 (ops_thread_alive): Rename to aix_thread_thread_alive.
6236 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6237 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6238 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6239 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6240 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6241 (store_regs_lib): Rename to store_regs_user_thread.
6242 (store_regs_kern): Rename to store_regs_kernel_thread.
6243
27bae383 62442002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6245
6246 * aix-thread.c (ops_prepare_to_store): Eliminate.
6247 (init_ops): Don't initialize ops.prepare_to_store.
6248 (store_regs_kern): Pre-fetch register buffers from child,
6249 because some registers may not be in the cache. Copy
6250 regs from register cache only if they are cached.
6251 (store_regs_lib): Copy regs from register cache only
6252 if they are cached.
6253 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6254 fill_gprs64): Ditto.
6255
61c5da0b
KB
62562002-07-22 Kevin Buettner <kevinb@redhat.com>
6257
6258 * aix-thread.c (gdb_assert.h): Include.
6259 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6260 register sizes (from register cache) match size of buffer holding
6261 register data.
6262 (fill_sprs32): Change parameter types to match those in the ptrace()
6263 buffer.
6264 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6265 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6266
62672002-07-22 Michael Snyder <msnyder@redhat.com>
6268
6269 * aix-thread.c (supply_sprs64): Cosmetic change.
6270 (supply_sprs32): Cosmetic change.
6271 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6272 (fill_sprs64): Use regcache_collect instead of read_register.
6273 (store_regs_lib): Use regcache_collect instead of
6274 read_register. Use fill_sprs32 instead of fill_sprs64,
6275 if debugging a 32-bit architecture.
6276 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6277 out of the register cache, instead of passing a pointer into
6278 the register cache directly to ptrace. Use regcache_collect
6279 insteaad of read_register.
6280 (ops_prepare_to_store): Use target_read_registers instead
6281 of read_register_bytes.
6282
36479eb1
AS
62832002-07-20 Aidan Skinner <aidan@velvet.net>
6284
6285 * MAINTAINERS: Add self under write after approval.
6286
80ae6ee2
AS
62872002-07-20 Aidan Skinner <aidan@velvet.net>
6288
6289 * ada-tasks.c: Change k&r style function definitions to prototyped
6290 form.
6291
8a8ab2b9
AC
62922002-07-19 Andrew Cagney <ac131313@redhat.com>
6293
6294 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6295 * x86-64-tdep.c: Include "objfiles.h".
6296 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6297 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6298
fb16b900
ML
62992002-07-17 Michal Ludvig <michal@suse.cz>
6300
6301 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6302 (update_context): Initialise cfa variable.
6303
0fe7bf7b
MS
63042002-07-17 Michael Snyder <msnyder@redhat.com>
6305
6306 * aix-thread.c: Shorten some long lines.
6307 Bring comments into line with code spec.
6308
488f131b
JB
63092002-07-18 Joel Brobecker <brobecker@gnat.com>
6310
6311 * infrun.c: Re-indent using gdb_indent.sh.
6312
46c415d2
JB
63132002-07-18 Joel Brobecker <brobecker@gnat.com>
6314
6315 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6316 Leave the indentation temporarily untouched, to minimize the diffs.
6317
cdecafbe
EZ
63182002-07-18 Elena Zannoni <ezannoni@redhat.com>
6319
6320 * stabsread.c: Make os9k sections of the code obsolete,
6321 for real this time.
6322 * stabsread.h: Make os9k sections of the code obsolete.
6323
7b6aa020
ML
63242002-07-18 Michal Ludvig <mludvig@suse.cz>
6325
09ec9b38
ML
6326 * linux-low.c (regsets_store_inferior_registers): Add free()
6327 at the end of a loop to prevent memory leak.
6328 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6329 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6330 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6331 line a comment.
4894ac5d 6332 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6333
233282cd
JB
63342002-07-17 Jim Blandy <jimb@redhat.com>
6335
6336 * macrocmd.c (info_macro_command): Remove newline from error
6337 message.
6338
7b6aa020 63392002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6340
6341 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6342 (sh_gdbarch_init): Use it for sh-dsp.
6343
f7ef9339
KB
63442002-07-16 Kevin Buettner <kevinb@redhat.com>
6345
6346 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6347 64-bit DWARF2 format.
6348
8dd72958
JB
63492002-07-16 Joel Brobecker <brobecker@gnat.com>
6350
6351 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6352 <sys/proc.h> when not available.
6353
a99a9e1b
AC
63542002-07-16 Andrew Cagney <ac131313@redhat.com>
6355
6356 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6357 * stabsread.c: Make os9k sections of the code obsolete.
6358 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6359 * config/i386/i386os9k.mt: Make file obsolete.
6360 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6361 (COMMON_OBS): Remove os9kread.o
6362 (SFILES): Remove os9kread.c.
6363 (os9kread.o, remote-os9k.o): Make target obsolete.
6364 * remote-os9k.c: Make file obsolete.
6365 * os9kread.c: Make file obsolete.
6366 * Makefile.in
6367
7a3085c1
AC
63682002-07-16 Andrew Cagney <ac131313@redhat.com>
6369
6370 * NEWS: Mention that the FR30 has been made obsolete.
6371 * fr30-tdep.c: Make file obsolete.
6372 * config/fr30/tm-fr30.h: Ditto.
6373 * config/fr30/fr30.mt: Ditto.
6374 * configure.tgt: Make fr30-*-elf obsolete.
6375 * MAINTAINERS: Make fr30-elf obsolete.
6376
28a93f5a
PM
63772002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6378
6379 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6380 found is not inside a section.
6381
be006b8b
KB
63822002-07-15 Kevin Buettner <kevinb@redhat.com>
6383
6384 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6385 strerror().
6386 (pdc_realloc): Use xrealloc() instead of realloc().
6387
14fa3751
KB
63882002-07-15 Kevin Buettner <kevinb@redhat.com>
6389
6390 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6391 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6392 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6393 macros.
6394
42cc437f
KB
63952002-07-15 Kevin Buettner <kevinb@redhat.com>
6396
6397 * aix-thread.c (ptrace_check): Eliminate goto.
6398 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6399 problem.
6400
8e2c28d4
KB
64012002-07-15 Kevin Buettner <kevinb@redhat.com>
6402
6403 * aix-thread.c (gdbcmd.h): Include.
6404 (DEBUG, DBG, DBG2, dbg): Eliminate.
6405 (debug_aix_thread): New static global.
6406 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6407 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6408 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6409 invocations to DBG and DBG2 macros to test against
6410 ``debug_aix_thread'' and call fprintf_unfiltered().
6411 (_initialize_aix_thread): Add new command "set debug aix-thread".
6412
30413464
AC
64132002-07-15 Andrew Cagney <ac131313@redhat.com>
6414
6415 From Gerhard Tonn <TON@de.ibm.com>:
6416 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6417 instead of supply_register.
6418
7c43edc1
AC
64192002-07-15 Andrew Cagney <ac131313@redhat.com>
6420
6421 * dwarf2cfi.c: Include "gdb_assert.h".
6422 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6423 non-NULL.
6424 (update_context): Do not use __func__. Add missing ``break''.
6425 (update_context): Do not use __func__.
6426
9364a0ef
EZ
64272002-07-15 Elena Zannoni <ezannoni@redhat.com>
6428
6429 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6430 and its setting. Set gdbarch instruction printing functions
6431 directly. For non-rs6000 case use new function
6432 gdb_print_insn_powerpc.
6433 (gdb_print_insn_powerpc): New function.
6434
3fbeef0b
AC
64352002-07-13 Andrew Cagney <ac131313@redhat.com>
6436
92eb23c5 6437 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6438 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6439 * configure.tgt: Mark d30v-*-* as obsolete.
6440 * d30v-tdep.c: Mark file as obsolete.
6441 * config/d30v/d30v.mt: Ditto.
6442 * config/d30v/tm-d30v.h: Ditto.
6443
aacb1f0a
AS
64442002-07-13 Aidan Skinner <aidan@velvet.net>
6445
6446 * ada-tasks.c (add_task_entry): replace calls to
6447 malloc() with xmalloc
6448 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6449
6450 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6451 ada_finish_decode_line_1, all_sals_for_line
6452 ada_breakpoint_rewrite): replace calls to free() with xfree()
6453
c11d79f2
KB
64542002-07-12 Kevin Buettner <kevinb@redhat.com>
6455
6456 From Nicholas Duffek (with minor changes by Martin Hunt,
6457 Louis Hamilton, and Kevin Buettner):
6458 * aix-thread.c: New file.
6459
8e19ed76
PS
64602002-07-12 Petr Sorfa <petrs@caldera.com>
6461
6462 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6463 complaint for invalid attribute class or form.
6464 (read_func_scope): DW_AT_frame_base
6465 better handling of DW_AT_block*.
6466 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6467 better handling of DW_AT_block*.
6468 (read_common_block): DW_AT_location
6469 better handling of DW_AT_block*.
6470 (read_partial_die): DW_AT_location better handling
6471 of DW_AT_block*.
6472 (new_symbol): DW_AT_external better handling of
6473 DW_AT_block*. Proper initialization of variable
6474 "addr".
6475 (attr_form_is_block): New function that returns true
6476 if the attribute's form is of DW_FORM_block*.
6477
295401f7
DJ
64782002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6479
6480 * valops.c (find_method_list): Remove comment about
6481 removed STATIC_MEMFUNCP argument.
6482 (value_find_oload_method_list): Likewise.
6483
e42dc924
KB
64842002-07-12 Kevin Buettner <kevinb@redhat.com>
6485
6486 From Nicholas Duffek:
6487 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6488 target_new_objfile_hook.
6489
6904b546
KB
64902002-07-12 Kevin Buettner <kevinb@redhat.com>
6491
6492 From Nicholas Duffek:
6493 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6494 csect.
6495
53fe9346
AC
64962002-07-12 Andrew Cagney <cagney@redhat.com>
6497
6498 * MAINTAINERS: Mention --enable-sim-build-warnings.
6499 (m68hc11-elf): Disable sim build warnings.
6500 (m32r-elf): Mark as broken obsolete candidate.
6501 (x86_64-linux-gnu): Mark as buildable with -Werror.
6502 (arm-elf): Change -w to ``,'' which enables warnings but not
6503 -Werror.
6504
af5f3db6
AC
65052002-07-12 Andrew Cagney <ac131313@redhat.com>
6506
6507 * bcache.h: Update copyright.
6508 (struct bstring, struct bcache): Move definition to "bcache.c".
6509 Replaced by opaque declaration.
6510 (bcache_xfree): Replace free_bcache.
6511 (bcache_xmalloc, bcache_memory_used): Declare.
6512
6513 * bcache.c: Update copyright.
6514 (struct bstring, struct bcache): Moved to here from "bcache.h".
6515 Update comments.
6516 (bcache_xmalloc, bcache_memory_used): New functions.
6517 (bcache_xfree): Replace function free_bcache.
6518
6519 * Makefile.in (objfiles.o): Add $(bcache_h).
6520 (objfiles_h): Remove $(bcache_h).
6521 (symfile.o): Add $(bcache_h).
6522
6523 * symmisc.c: Update copyright.
6524 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6525 (print_objfile_statistics): Use bcache_memory_used.
6526
6527 * symfile.c: Include "bcache.h".
6528 (reread_symbols): Use bcache_xfree.
6529 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6530 (add_psymbol_to_list): Pass psymbol_cache by value.
6531 (add_psymbol_with_dem_name_to_list): Ditto.
6532
6533 * objfiles.h: Update copyright.
6534 (struct bcache): Declare opaque. Do not include "bcache.h".
6535 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6536 bcache'' pointers.
6537 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6538
6539 * objfiles.c: Include "bcache.h". Update copyright.
6540 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6541 macro_cache.
6542 (free_objfile): Use bcache_xfree.
6543
444199e7
GS
65442002-07-11 Grace Sainsbury <graces@redhat.com>
6545
6546 * monitor.c (monitor_fetch_register): Make name a constant.
6547 (monitor_store_register): Same.
6548
261397f8
DJ
65492002-07-11 Daniel Jacobowitz <drow@mvista.com>
6550
6551 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6552 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6553 (finish_block) For non-function blocks, hash the symbol table. For
6554 function blocks, mark the symbol table as unhashed.
6555 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6556 (msymbol_hash_iw): Likewise.
6557 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6558 value.
6559 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6560 (lookup_minimal_symbol): Likewise for both.
6561 * symtab.h (struct block): Add `hashtable' flag. Comment the
6562 hashtable.
6563 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6564 (ALL_BLOCK_SYMBOLS): Update.
6565 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6566 (struct symbol): Add `hash_next' pointer.
6567 * symtab.c (lookup_block_symbol): Search using the hash table when
6568 possible.
6569 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6570 (search_symbols, find_addr_symbol): Likewise.
6571
6572 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6573 (read_dst_symtab): Likewise.
6574 * jv-lang.c (get_java_class_symtab): Likewise.
6575 * mdebugread.c: Include "gdb_assert.h".
6576 (shrink_block): Assert that the block being modified is not hashed.
6577 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6578 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6579 symbols.
6580 (dump_symtab): Recognize hashed blocks.
6581 * printcmd.c (print_frame_args): Assert that function blocks do not
6582 have hashed symbol tables.
6583 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6584 (fill_in_ada_prototype, debug_print_block): Likewise.
6585 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6586
6f0eaa01
CV
65872002-07-11 Corinna Vinschen <vinschen@redhat.com>
6588
6589 * stack.c (print_frame): Use result of frame_address_in_block()
6590 instead of fi->pc when evaluating symbols.
6591 (backtrace_command_1): Ditto.
6592
a208b0cb
AC
65932002-07-11 Andrew Cagney <cagney@redhat.com>
6594
6595 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6596 Make static.
6597
6598 * arm-tdep.c (arm_register_name): Make return type constant.
6599
a6b6b089
AC
66002002-07-10 Andrew Cagney <ac131313@redhat.com>
6601
5ae5f592
AC
6602 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6603 prototype.
6604 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6605 * s390-tdep.c (s390_fp_regnum): Ditto.
6606 (s390_read_fp): Ditto.
6607 (s390_pop_frame): Ditto.
6608 (_initialize_s390_tdep): Ditto.
6609 * remote.c (get_remote_state): Ditto.
6610 * procfs.c (mappingflags): Ditto.
6611 * memattr.c (_initialize_mem): Ditto.
6612 * mcore-tdep.c (mcore_pop_frame): Ditto.
6613 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6614 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6615 * language.c (set_case_str): Ditto.
6616 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6617 * frv-tdep.c (new_variant): Ditto.
6618 (frv_stopped_data_address): Ditto.
6619 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6620 (context_alloc): Ditto.
6621 (frame_state_alloc): Ditto.
6622 (unwind_tmp_obstack_init): Ditto.
6623 (unwind_tmp_obstack_free): Ditto.
6624 (cfi_read_fp): Ditto.
6625 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6626 (cris_pop_frame): Ditto.
6627 * c-lang.c (scanning_macro_expansion): Ditto.
6628 (finished_macro_expansion): Ditto.
6629 (c_preprocess_and_parse): Ditto.
6630 * gdbarch.sh: Ditto.
6631 * gdbarch.h, gdbarch.c: Regenerate.
6632 * config/mn10200/tm-mn10200.h: Adjust indentation.
6633 * target.c: Adjust indentation.
6634 * symtab.h: Adjust indentation.
6635 * stabsread.h: Adjust indentation.
6636 * remote-es.c: Adjust indentation.
6637 * os9kread.c: Adjust indentation.
6638
66392002-07-10 Andrew Cagney <ac131313@redhat.com>
6640
a6b6b089
AC
6641 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6642 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6643
a1789893
GS
66442002-07-10 Grace Sainsbury <graces@redhat.com>
6645
6646 * NEWS: Mention m68k, mcore multi-arching.
6647 * MAINTAINERS: Change status of m68k, mcore to reflect
6648 multi-arching.
6649
02f0d45d
DJ
66502002-07-10 Daniel Jacobowitz <drow@mvista.com>
6651
6652 * valops.c (find_overload_match): Free oload_syms.
6653
f15f768e
JB
66542002-07-09 Joel Brobecker <brobecker@gnat.com>
6655
6656 Define HAVE_SYS_PROC_H if sys/proc.h exists
6657 * configure.in: Add check for sys/proc.h
6658 * config.in: Regenerate.
6659 * configure: Regenerate.
6660
902a7139
GS
66612002-07-09 Grace Sainsbury <graces@redhat.com>
6662
6663 * config/m68k/tm-m68k.h: Remove macros wrapped in
6664 #if !GDB_MULTI_ARCH.
6665
a534e424
AC
66662002-07-08 Andrew Cagney <ac131313@redhat.com>
6667
6668 * config.in, configure: Regenerate.
6669
9b94f7bf
MK
66702002-07-08 Mark Kettenis <kettenis@gnu.org>
6671
6672 * dwarf2cfi.c: Include "gcore.h".
6673 (execute_stack_op): Fix implementation of the
6674 DW_OP_deref and DW_OP_deref_size operators by letting do their
6675 lookup in the target.
6676
1d34db41
MK
66772002-07-07 Mark Kettenis <kettenis@gnu.org>
6678
6679 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6680 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6681 tdep->sc_sp_offset.
6682
79d5b63a
DJ
66832002-07-05 Daniel Jacobowitz <drow@mvista.com>
6684
6685 Fix PR gdb/595, gdb/602
6686 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6687 Don't call value_cast, just read the vtable pointer; update comments
6688 to match.
6689
3bb912e8
GS
66902002-07-05 Grace Sainsbury <graces@redhat.com>
6691
6692 * config/mcore/tm-mcore.h: Remove file.
6693 * config/mcore/mcore.mt: Remove definition of TM_FILE
6694 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6695
ca39387d
MK
66962002-07-05 Mark Kettenis <kettenis@gnu.org>
6697
6698 * i386bsd-tdep.c: Include "gdb_string.h".
6699
efdc1108
GS
67002002-07-04 Grace Sainsbury <graces@redhat.com>
6701
6702 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6703 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6704 mcore-tdep.
6705 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6706 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6707 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6708 (RETVAL_REGNUM): Move macros from tm-mcore.h
6709 (mcore_reg_struct_has_addr): New function.
6710 (mcore_gdbarch_init): Added initializations for the macros removed
6711 from tm-mcore.h.
6712
bb21884d
MK
67132002-07-04 Mark Kettenis <kettenis@gnu.org>
6714
6715 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6716 traditonal string branding within the ELF header.
6717
228c6d41
DJ
67182002-07-04 Daniel Jacobowitz <drow@mvista.com>
6719
6720 * symtab.c (remove_params): New function.
6721 (make_symbol_overload_list): Use it instead of cplus_demangle.
6722 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6723
2404952e
MK
67242002-07-04 Mark Kettenis <kettenis@gnu.org>
6725
e5e4acad
MK
6726 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6727
baadce09
MK
6728 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6729 New variables.
6730 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6731 and tdep->sigtramp_end.
6732 * i386obsd-nat.c: New file.
6733 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6734
2404952e
MK
6735 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6736 Don't call get_current_frame().
6737
9b4f1ba7
PM
67382002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6739
6740 * i386-nat.c (child_post_startup_inferior): New function
6741 calling i386_cleanup_dregs if
6742 I386_USE_GENERIC_WATCHPOINTS is defined.
6743 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6744 conditional to acknowledge that i386-nat.c has its
6745 own child_post_startup_inferior function.
6746
c0d1d883
MK
67472002-07-04 Mark Kettenis <kettenis@gnu.org>
6748
00f8375e
MK
6749 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6750 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6751 instead of MAX_REGISTER_RAW_SIZE.
6752 (i386_extract_return_value, i386_extract_struct_value_address):
6753 Convert to use regcache.
6754 (i386_gdbarch_init): Set max_register_raw_size and
6755 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6756 Set extract_return_value and extract_struct_value_address instead
6757 of their deprecated variants.
6758
c0d1d883
MK
6759 Convert i386 target to generic dummy frames.
6760 * i386-tdep.c: Include "symfile.h".
6761 (i386_frameless_signal_p): Consider a function to be frameless if
6762 the pc points at the first instruction of the function.
6763 (i386_frame_chain): Handle (generic) call dummies.
6764 (i386_frame_saved_pc): Likewise.
6765 (i386_frame_init_saved_regs): Remove code dealing with call
6766 dummies on the stack.
6767 (i386_push_dummy_frame): Removed.
6768 (i386_call_dummy_words): Removed.
6769 (i386_fix_call_dummy): Removed.
6770 (i386_push_return_address): New function.
6771 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6772 parameter, and don't call get_current_frame.
6773 (i386_pop_frame): New function.
6774 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6775 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6776 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6777 call_dummy_length to 0, set call_dummy_words to NULL, set
6778 sizeof_call_dummy_words to 0, set fix_call_dummy to
6779 generic_fix_call_dummy, set pc_in_call_dummy to
6780 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6781 generic_push_dummy_frame, set push_return_address to
6782 i386_push_return_address and set frame_chain_valid to
6783 generic_file_frame_chain_valid.
6784
049ee0e4
AC
67852002-07-03 Andrew Cagney <ac131313@redhat.com>
6786
6787 * gdbarch.sh (struct regcache): Add opaque declaration.
6788 (EXTRACT_RETURN_VALUE): New architecture method.
6789 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6790 * gdbarch.h, gdbarch.c: Regenerate.
6791 * arch-utils.c (legacy_extract_return_value): New function.
6792 * arch-utils.h (legacy_extract_return_value): Declare.
6793 * values.c (value_being_returned): Re-enable code handling
6794 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6795 deprecated_grub_regcache_for_registers call to block handling
6796 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6797 (EXTRACT_RETURN_VALUE): Do not define.
6798
4e0d9804
GS
67992002-07-03 Grace Sainsbury <graces@redhat.com>
6800
6801 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6802 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6803 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6804 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6805 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6806 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6807 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6808 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6809 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6810 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6811 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6812 argument so the function fits the prototype in the architecture
6813 vector.
6814 (mcore_pop_frame): Remove argument so the function fits the
6815 prototype. Use get_current_frame instead of the argument.
6816 (mcore_push_arguments): Change type of struct_return so the
6817 function can be used in the architecture vector.
6818 (mcore_store_struct_return): Add.
6819 (mcore_frame_init_saved_regs): Add.
6820 (mcore_gdbarch_init): Add function calls to replace the macros
6821 removed from tm-mcore.h
6822
36160dc4
AC
68232002-07-03 Andrew Cagney <ac131313@redhat.com>
6824
6825 * infcmd.c (print_return_value): Remove compatibility code calling
6826 deprecated_grub_regcache_for_registers.
6827
6828 * values.c: Include "regcache.h".
6829 (value_being_returned): Update. Use
6830 deprecated_grub_regcache_for_registers to extract the register
6831 buffer address.
6832 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6833 ``struct regcache''.
6834 * Makefile.in (values.o): Add dependency on $(regcache_h).
6835
6836 * inferior.h (run_stack_dummy): Change type of second parameter to
6837 a ``struct regcache''.
6838 * valops.c (hand_function_call): Change type of retbuf to ``struct
6839 regcache''. Allocate using regcache_xmalloc, clean using
6840 make_cleanup_regcache_xfree.
6841 * infcmd.c (run_stack_dummy): Update. Use
6842 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6843
6844 * regcache.c (do_regcache_xfree): New function.
6845 (make_cleanup_regcache_xfree): New function.
6846 * regcache.h (make_cleanup_regcache_xfree): Declare.
6847
e64d9b3d
MH
68482002-07-03 Martin M. Hunt <hunt@redhat.com>
6849
4dd79c29
MH
6850 * event-top.c (command_line_handler): Don't read past
6851 beginning of buffer.
e64d9b3d 6852
4dd79c29
MH
68532002-07-03 Martin M. Hunt <hunt@redhat.com>
6854
e64d9b3d
MH
6855 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6856 struct frame_id.
6857 (varobj_create): Store frame_id for root.
6858 (varobj_gen_name): Use xasprintf.
6859 (varobj_update): Save and restore frame using get_frame_id() and
6860 frame_find_by_id().
6861 (create_child): Use xasprintf.
6862 (new_root_variable): Initialize frame_id.
6863 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6864 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6865 to prevent memory leak.
6866
26e6c56a
AC
68672002-07-03 Andrew Cagney <ac131313@redhat.com>
6868
6869 * valops.c (hand_function_call): Move declaration of retbuf to
6870 start of function, allocate using malloc, add a cleanup but before
6871 the inf_status cleanup, cleanup the buffer. Rename local variable
6872 old_chain to inf_status_cleanup.
6873
f436dd25
MH
68742002-07-03 Martin M. Hunt <hunt@redhat.com>
6875
6876 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6877
6878 * cli/cli-decode.c (cmd_func_p): New function.
6879 (cmd_func): New function.
6880
6881 * command.h: Add cmd_func() and cmd_func_p().
6882
4cfe2084
GS
68832002-07-03 Grace Sainsbury <graces@redhat.com>
6884
6885 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6886 (REGISTER_SIZE): Remove.
6887 (MAX_REGISTER_RAW_SIZE): Remove.
6888 (REGISTER_VIRTUAL_TYPE): Remove.
6889 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6890 (REGISTER_NAME): Remove.
6891 (USE_GENERIC_DUMMY_FRAMES): Remove.
6892 (CALL_DUMMY): Remove.
6893 (CALL_DUMMY_START_OFFSET): Remove.
6894 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6895 (CALL_DUMMY_LOCATION): Remove.
6896 (FIX_CALL_DUMMY): Remove.
6897 (CALL_DUMMY_ADDRESS): Remove.
6898 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6899 (SAVE_DUMMY_FRAME_TOS): Remove.
6900 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6901 (mcore_register_virtual_type): New function.
6902 (mcore_register_byte): New function.
6903 (mcore_register_size): New function.
6904 (mcore_register_name): New function.
6905 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6906 macros removed from tm-mcore.h.
6907 (mcore_dump_tdep): Add.
6908 (_initialize_mcore_tdep): Add gdbarch_register call.
6909
4fd667e9
MK
69102002-07-03 Mark Kettenis <kettenis@gnu.org>
6911
6912 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6913 frameless_look_for_prologue, such that we actually call this
6914 function.
6915
42f99ac2
JB
69162002-07-02 Joel Brobecker <brobecker@gnat.com>
6917
6918 * frame.h (frame_address_in_block): New function.
6919
6920 * blockframe.c (frame_address_in_block): New function extracted
6921 from get_frame_block().
6922 (get_frame_block): Use frame_address_in_block().
6923 (block_innermost_frame): Use frame_address_in_block() to match
6924 the frame pc address against the block boundaries rather than
6925 the frame pc directly. This prevents a failure when a frame pc
6926 is actually a return-address pointing immediately after the end
6927 of the given block.
6928
103a1597 69292002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6930
6931 * MAINTAINERS: Add self under write after approval.
6932
69332002-07-02 Grace Sainsbury <graces@redhat.com>
6934
103a1597
GS
6935 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6936 used in architecture vector. The default is
6937 m68k_local_breakpoint_from_pc.
6938 (m68k_local_breakpoint_from_pc): Add.
6939 (enum): Add register numbers from tm-m68k.h.
6940 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6941 vector.
6942 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6943 GDB_MULTI_ARCH_PARTIAL.
6944 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6945 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6946 m68k-tdep.c.
6947 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6948 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6949 to enum in m68k-tdep.c
6950
7a5a0534
JB
69512002-07-02 Joel Brobecker <brobecker@gnat.com>
6952
6953 * solib-osf.c (open_map): Compute the list of shared libraries
6954 loaded by the inferior, rather than the list of libraries loaded
6955 by GDB itself. Otherwise, GDB ends up reading the symbols from
6956 the wrong shared libraries...
6957
6f558d74
MK
69582002-07-02 Mark Kettenis <kettenis@gnu.org>
6959
b7d15bf7
MK
6960 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6961 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6962 macros.
6963 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6964 Remove functions.
6965 (FRAMELESS_SIGNAL): Remove function.
6966 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6967 i386_linux_saved_pc_after_call): Removed.
6968 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6969 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6970 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6971
6bff26de
MK
6972 * i386-tdep.c (i386_frameless_signal_p): New function.
6973 (i386_frame_chain): Deal with frameless signals.
6974 (i386_sigtramp_saved_sp): New function.
6975 (i386_frame_saved_pc): Deal with frameless signals.
6976 (i386_saved_pc_after_call): Make sure the correct value is
6977 returned just after entry into a sigtramp.
6978 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6979 i386fbsd4_sc_sp_offset): New variables.
6980 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6981 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6982 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6983 similiar to what we already did for sc_pc_offset.
6984 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6985 tdep->sc_sp_offset.
6986
6f558d74
MK
6987 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6988
145564b7
ML
69892002-07-02 Michal Ludvig <mludvig@suse.cz>
6990
6991 * config/i386/tm-x86-64linux.h: New.
6992 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6993 definitions.
6994 * config/i386/nm-x86-64.h: Rename to ...
6995 * config/i386/nm-x86-64linux.h: ... this one.
6996 * config/i386/x86-64linux.mh: Reflect the above change.
6997
3a1e71e3
MK
69982002-07-01 Mark Kettenis <kettenis@gnu.org>
6999
21d0e8a4
MK
7000 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7001 with sigcontext_addr. Add sc_sp_offset.
7002 (i386bsd_sigtramp_saved_pc): Remove prototype.
7003 (i386bsd_sicontext_addr): Add prototype.
7004 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7005 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7006 (i386_svr4_sigtramp_saved_pc): Removed.
7007 (i386_svr4_sigcontext_addr): New function.
7008 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7009 Initialize tdep->sigcontext_addr instead. Initialize
7010 tdep->sc_pc_offset and tdep->sc_sp_offset.
7011 (i386_gdbarch_init): Likewise.
7012 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7013 any more.
7014 (i386bsd_sigtramp_saved_pc): Remove function.
7015 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7016 Initialize tdep->sigcontext_addr instead. Initialize
7017 tdep->sc_pc_offset.
7018 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7019 of tdep->sigtramp_saved_pc.
7020 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7021 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7022 instead.
7023
3a1e71e3
MK
7024 * i386-tdep.c (i386_frameless_function_invocation,
7025 i386_frame_num_args, i386_frame_init_saved_regs,
7026 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7027 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7028 i386_extract_return_value, i386_store_return_value,
7029 i386_extract_struct_value_address, i386_register_virtual_type,
7030 i386_register_convertible, i386_register_convert_to_virtual,
7031 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7032 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7033 static.
7034
52e9098c
MK
70352002-07-01 Mark Kettenis <kettenis@gnu.org>
7036
77b13a25
MK
7037 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7038
52e9098c
MK
7039 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7040 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7041 this macro. Include "value.h".
7042
1b372fff
AS
70432002-06-30 Aidan Skinner <aidan@velvet.net>
7044
7045 * ada-exp.tab.c: remove as it's a generated file
7046 * ada-lex.c: remove as it's a generated file
7047
9c5045b5
MK
70482002-06-30 Mark Kettenis <kettenis@gnu.org>
7049
4a93c5bb
MK
7050 * config/i386/tm-i386.h (struct frame_info, struct
7051 frame_saved_regs, struct value, struct type): Remove forward
7052 declarations.
7053
322d4fe0
MK
7054 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7055 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7056 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7057 (FILL_FPXREGSET): Define.
7058
fdd8263d
MK
7059 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7060
482e577b
MK
7061 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7062 i[3456]86-*-netbsd* case.
7063 * config/i386/tm-obsd.h: Removed.
7064 * config/i386/obsd.mt: Removed.
7065 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7066 core-aout.o.
7067 (MH_CFLAGS): Add -DYYDEBUG=0.
7068
6916549a
MK
7069 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7070 i386nbsd_sc_pc_offset on OpenBSD too.
7071
9c5045b5
MK
7072 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7073 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7074 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7075 define.
7076 * i386bsd-tdep.c: Include "arch-utils.h".
7077 (i386bsd_aout_in_solib_call_trampoline): New function.
7078 (i386bsd_init_abi): Set in_solib_call_trampoline to
7079 i386bsd_aout_in_solib_call_trampoline.
7080 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7081 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7082
aa84d1bb
AC
70832002-06-28 Andrew Cagney <ac131313@redhat.com>
7084
7085 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7086 (struct obstack, struct bcache): Add opaque declarations.
7087 * Makefile.in (macrotab_h): Update
7088
b4d83933
AC
70892002-06-28 Andrew Cagney <ac131313@redhat.com>
7090
7091 * blockframe.c (generic_find_dummy_frame): Change return type to
7092 ``struct regcache''.
7093 (struct dummy_frame): Replace field ``registers'' with regcache, a
7094 struct regcache object.
7095 (generic_find_dummy_frame): Update.
7096 (generic_push_dummy_frame): Update. Use regcache_xfree,
7097 regcache_xmalloc and regcache_cpy.
7098 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7099 regcache_xfree.
7100 (deprecated_generic_find_dummy_frame): Update.
7101 (generic_read_register_dummy): Update. Use
7102 regcache_read_as_address.
7103 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7104 (generic_get_saved_register): Update. Use regcache_read.
7105
08c0b5bc
AC
71062002-06-28 Andrew Cagney <ac131313@redhat.com>
7107
7108 * Makefile.in (objfiles_h): Add $(bcache_h).
7109 * objfiles.h: Include "bcache.h".
7110
7111 * Makefile.in (symtab_h): Remove $(bcache_h).
7112 * symtab.h: Do not include "bcache.h".
7113
1f89801a
AC
71142002-06-28 Andrew Cagney <ac131313@redhat.com>
7115
7116 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7117 generic_func_frame_chain_valid.
7118
b9644b58
DB
71192002-06-28 David O'Brien <obrien@FreeBSD.org>
7120
7121 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7122 * config/i386/tm-fbsd.h: Likewise.
7123
dd486634
AC
71242002-06-28 Andrew Cagney <ac131313@redhat.com>
7125
7126 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7127 generic_unwind_get_saved_register.
7128
0b434a00
AC
71292002-06-27 Andrew Cagney <ac131313@redhat.com>
7130
7131 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7132 * regcache.c (supply_register): Add missing argument to
7133 register_buffer call.
7134
f30e5a77
AC
71352002-06-27 Andrew Cagney <ac131313@redhat.com>
7136
7137 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7138 Solaris /bin/grep does not not like it. From Peter Schauer.
7139
9f064c95
TT
71402002-06-26 Tom Tromey <tromey@redhat.com>
7141
7142 * command.h (add_setshow_cmd): Declare.
7143 (add_setshow_cmd_full): Declare.
7144 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7145 returns void. Use add_setshow_cmd_full.
7146 (add_setshow_cmd_full): New function.
7147 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7148 (add_setshow_boolean_cmd): Likewise.
7149
099c7589
JT
71502002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7151
7152 * config/vax/tm-vax.h: Protect from multiple inclusion.
7153 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7154 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7155 * config/vax/tm-vaxbsd.h: ...here. New file.
7156 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7157
1d049c5e
JT
71582002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7159
7160 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7161 (BELIEVE_PCC_PROMOTION): Remove.
7162 (AP_REGNUM): Move to...
7163 * config/vax/nm-vax.h: ...here.
7164 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7165 (vax_breakpoint_from_pc): New function.
7166 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7167 and gdbarch_believe_pcc_promotion.
7168
4791e091
JT
71692002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7170
7171 * Makefile.in (vax_tdep_h): Define.
7172 (vax-tdep.o): Use $(vax_tdep_h).
7173 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7174 (vax_dump_tdep): New function.
7175 (_initialize_vax_tdep): Register vax_dump_tdep.
7176 * vax-tdep.h: Include osabi.h.
7177 (struct gdbarch_tdep): New.
7178
da130f98
AC
71792002-06-26 Andrew Cagney <cagney@redhat.com>
7180
7181 * frame.h (deprecated_generic_find_dummy_frame): Rename
7182 generic_find_dummy_frame.
7183 * blockframe.c (generic_find_dummy_frame): Make static.
7184 (deprecated_generic_find_dummy_frame): New function.
7185 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7186 generic_find_dummy_frame with deprecated_find_dummy_frame.
7187 (sh64_nofp_frame_init_saved_regs): Ditto.
7188 (sh_fp_frame_init_saved_regs): Ditto.
7189 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7190 (s390_frame_chain): Ditto.
7191 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7192
6300c360
GS
71932002-06-26 Grace Sainsbury <graces@redhat.com>
7194
7195 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7196 gdbarch vector are at the top.
7197 (NUM_REGS): Remove.
7198 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7199 (FRAME_ARGS_ADDRESS): Remove.
7200 (FRAME_LOCALS_ADDRESS): Remove.
7201 (FRAME_NUM_ARGS): Remove.
7202 (FRAME_ARGS_SKIP): Remove.
7203 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7204 (m68k_gdbarch_init): Add gdbarch initializations for macros
7205 undefined in tm-m68k.h
7206
1c617db8
GS
72072002-06-26 Grace Sainsbury <graces@redhat.com>
7208
7209 * monitor.h: Add the function regname to monitor_ops
7210 structure. This way NUM_REGS does not have to be a constant.
7211 * monitor.c (monitor_fetch_register): Added support for regname
7212 function. The function is called if the array regnames is NULL.
7213 (monitor_store_register): Same.
da130f98
AC
7214 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7215 regnames array.
1c617db8
GS
7216 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7217 cpu32bug_cmds.regname to point to new function.
7218 * abug-rom.c (abug_regname): Same as above.
7219 (init_abug_cmds): Same.
7220 * dbug-rom.c (dbug_regname): Same as above.
7221 (init_dbug_cmds): Same.
7222 * remote-est.c (est_regname): Same.
7223 (init_est_cmds): Same.
7224 * rom68k-rom.c (rom68k_regname): Same.
7225 (init_rom68k_cmds): Same.
7226
ea9365bb
TT
72272002-06-25 Tom Tromey <tromey@redhat.com>
7228
7229 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7230
72cec141
AC
72312002-06-25 Andrew Cagney <cagney@redhat.com>
7232
7233 * infrun.c (stop_registers): Change variable's type to ``struct
7234 regcache'''.
7235 (xmalloc_inferior_status): Delete function.
7236 (free_inferior_status): Delete function.
7237 (normal_stop): Use regcache_cpy.
7238 (struct inferior_status): Change type of fields ``stop_registers''
7239 and ``registers'' to ``struct regcache''.
7240 (write_inferior_status_register): Use regcache_write.
7241 (save_inferior_status): Instead of calling
7242 xmalloc_inferior_status, allocate the inf_status buffer directly.
7243 Use regcache_dup_no_passthrough and regcache_dup to save the
7244 buffers.
7245 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7246 Replace the stop_registers regcache instead of overriding it. Use
7247 regcache_xfree. Instead of calling free_inferior_status, xfree
7248 the buffer directly.
7249 (discard_inferior_status): Use regcache_xfree. Instead of calling
7250 free_inferior_status, xfree the buffer directly.
7251 (build_infrun): Use regcache_xmalloc.
7252 (_initialize_infrun): Delete redundant call to build_infrun.
7253
7254 * Makefile.in (infcmd.o): Add $(regcache_h).
7255
7256 * infcmd.c: Include "regcache.h".
7257 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7258 obtain the address of `stop_registers' register buffer.
7259 (print_return_value): Ditto.
7260
7261 * inferior.h (struct regcache): Add opaque declaration.
7262 (stop_registers): Change variable's declared type to ``struct
7263 regcache''.
7264
defc6f8c
TT
72652002-06-24 Tom Tromey <tromey@redhat.com>
7266
c0e624e7
TT
7267 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7268 * target.c (initialize_targets): Fixed typo in
7269 trust-readonly-sections `show' documentation.
7270
defc6f8c
TT
7271 * main.c: Marked all strings with _().
7272
2b236d82
DH
72732002-06-24 Don Howard <dhoward@redhat.com>
7274
7275 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7276 that means max CORE_ADDR+1.
7277 (lookup_mem_region): Ditto.
7278 (mem_info_command): Ditto.
7279
942dc0e9
GS
72802002-06-24 Grace Sainsbury <graces@redhat.com>
7281
7282 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7283 (REGISTER_BYTES_OK): Remove.
7284 (REGISTER_BYTES): Remove.
7285 (STORE_STRUCT_RETURN): Remove.
7286 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7287 (STORE_RETURN_VALUE): Remove.
7288 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7289 (FRAME_CHAIN): Remove.
7290 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7291 (FRAME_SAVED_PC): Remove.
7292 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7293 (m68k_store_struct_return): Add.
7294 (m68k_deprecated_extract_return_value): Add.
7295 (m68k_deprecated_extract_struct_value_address): Add.
7296 (m68k_store_return_value): Add.
7297 (m68k_frame_chain): Add.
7298 (m68k_frameless_function_invocation): Add.
7299 (m68k_frame_saved_pc): Add.
7300 (m68k_gdbarch_init): added set_gdbarch calls for new
7301 functions and deleted macros.
7302
03c30d4d
TT
73032002-06-23 Tom Tromey <tromey@redhat.com>
7304
7305 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7306 (ALLDEPFILES): Likewise.
7307 (udiheaders): Removed.
7308 (udip2soc.o): Likewise.
7309 (udi2go32.o): Likewise.
7310 (udr.o): Likewise.
7311 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7312
37e71372
AC
73132002-06-22 Andrew Cagney <ac131313@redhat.com>
7314
06a6ac57
AC
7315 * infrun.c (_initialize_infrun): Delete unnecessary call to
7316 build_infrun.
7317
37e71372
AC
7318 * regcache.h: Update comments describing the regcache_cpy family
7319 of functions.
7320 (regcache_save, regcache_restore): Delete declaration.
7321 (regcache_save_no_passthrough): Delete declaration.
7322 (regcache_restore_no_passthrough): Delete declaration.
7323 * regcache.c (regcache_save): Delete function.
7324 (regcache_save_no_passthrough): Delete function.
7325 (regcache_restore): Delete function.
7326 (regcache_restore_no_passthrough): Delete function.
7327
78f6d055
AC
73282002-06-21 Andrew Cagney <ac131313@redhat.com>
7329
7330 * config/m68k/tm-m68k.h: Fix typo.
7331 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7332 (m68k_frame_init_saved_regs): Declare.
7333
78b119cb
JB
73342002-06-21 Jim Blandy <jimb@redhat.com>
7335
7336 Remove some vestiges of Harris 88k support.
7337 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7338 register numbering quirk.
7339 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7340 odd symbols occurring in Harris 88k ELF targets.
7341
0fbb3da7
TT
73422002-06-21 Tom Tromey <tromey@redhat.com>
7343
7344 * gdb_locale.h: New file.
7345 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7346 (defs_h): Added gdb_locale.h.
7347 * configure, config.in: Rebuilt.
7348 * configure.in (PACKAGE): Define.
7349 * defs.h: Include gdb_locale.h.
7350 * main.c (captured_main): Call setlocale, bindtextdomain,
7351 textdomain.
7352
456f8b9d
DB
73532002-06-21 Dave Brolley <brolley@redhat.com>
7354
7355 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7356 * config/frv/frv.mt: New file.
7357 * config/frv/tm-frv.h: New file.
7358 * configure.tgt: Support frv-*-*.
7359 * Makefile.in (frv-tdep.o): New target.
7360 * frv-tdep.c: New file.
7361 * NEWS: Mention frv.
7362
cdd463f9
DB
73632002-06-21 Dave Brolley <brolley@redhat.com>
7364
7365 * MAINTAINERS: Add self to "Write After Approval" list.
7366
5d3ed2e3
GS
73672002-06-21 Grace Sainsbury <graces@redhat.com>
7368
7369 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7370 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7371 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7372 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7373 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7374
7375 * m68k-tdep.c: Include arch-utils.h
7376 (m68k_register_raw_size): Add.
7377 (m68k_register_virtual_size): Add.
7378 (m68k_register_virtual_type): Add.
7379 (m68k_register_name): Add.
7380 (m68k_stack_align): Add.
7381 (m68k_register_byte): Add.
7382 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7383 tm-m68k.h.
7384
7f8e7424
GS
73852002-06-21 Grace Sainsbury <graces@redhat.com>
7386
a2c6a6d5 7387 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7388 m68k_find_saved_regs.
7389 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7390 references to it with frame->saved_regs.
7f8e7424
GS
7391 (m68k_gdbarch_init): Added function calls to initialize the
7392 gdbarch structure.
a2c6a6d5
GS
7393 (m68k_fix_call_dummy): Add.
7394 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7395 (CALL_DUMMY): Remove.
7396 (CALL_DUMMY_LENGTH): Remove.
7397 (CALL_DUMMY_START_OFFSET): Remove.
7398 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7399 (FIX_CALL_DUMMY): Remove.
7400 (PUSH_DUMMY_FRAME): Remove.
7401 (POP_FRAME): Remove.
7f8e7424 7402
f461f5cf
PM
74032002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7404
7405 * parse.c (parse_fprintf): New function used to avoid calls to
7406 fprintf in bison parser generated debug code.
7407 * parser-defs.h: Declaration of new parse_fprintf function.
7408 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7409 Set YYDEBUG to 1 by default.
7410 Set YYFPRINTF as parse_fprintf.
7411
7f0c12ed
ML
74122002-06-21 Michal Ludvig <mludvig@suse.cz>
7413
7414 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7415 encoding anymore.
7416 (pointer_encoding, enum ptr_encoding): New.
7417 (execute_cfa_program): Take care about pointer encoding.
7418 (dwarf2_build_frame_info): Only call parse_frame_info for
7419 .debug_frame and .eh_frame.
7420 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7421 fixed augmentation handling, added relative addressing,
7422 ignore duplicate FDEs. Added comments.
19d833a2 7423 * dwarf2cfi.c: Reindented.
7f0c12ed 7424
87c4a039
EZ
74252002-06-20 Elena Zannoni <ezannoni@redhat.com>
7426
7427 * event-top.c (command_handler): Don't use space_at_cmd_start
7428 unless there is sbrk() on the host. Assign time and space data
7429 to union fields of the appropriate length.
7430
1cf877ad
ML
74312002-06-20 Michal Ludvig <mludvig@suse.cz>
7432
7433 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7434 x86_64_register_name. Return type changed to 'const char *'.
7435 (x86_64_register_name2nr): Rename to x86_64_register_number.
7436 (x86_64_gdbarch_init): Update to reflect the change.
7437 * x86-64-tdep.h: Ditto.
7438 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7439 (supply_fpregset): Ditto.
7440
3fadccb3
AC
74412002-06-19 Andrew Cagney <cagney@redhat.com>
7442
7443 * regcache.h: Update copyright.
7444 (struct regcache, struct gdbarch): Add opaque declarations.
7445 (current_regcache): Declare global variable.
7446 (regcache_read, regcache_write): Add gdbarch parameter.
7447 (regcache_save, regcache_save_no_passthrough)
7448 (regcache_restore, regcache_restore_no_passthrough)
7449 (regcache_dup, regcache_dup_no_passthrough)
7450 (regcache_cpy, regcache_cpy_no_passthrough)
7451 (deprecated_grub_regcache_for_registers)
7452 (deprecated_grub_regcache_for_register_valid)
7453 (regcache_valid_p): Add function declarations.
7454
7455 * regcache.c: Update copyright.
7456 (regcache_descr_handle): New global variable.
7457 (struct regcache_descr): Define.
7458 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7459 (regcache_descr, xfree_regcache_descr): New functions.
7460 (struct regcache): Define.
7461 (regcache_xmalloc, regcache_xfree): New functions.
7462 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7463 (regcache_dup, regcache_dup_no_passthrough): New functions.
7464 (regcache_valid_p, regcache_read_as_address): New functions.
7465 (deprecated_grub_regcache_for_registers): New function.
7466 (deprecated_grub_regcache_for_register_valid): New function.
7467 (current_regcache): New global variable.
7468 (register_buffer): Add regcache parameter. Update calls.
7469 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7470 (read_register_gen, write_register_gen): Update register_buffer
7471 call. Test for legacy_p instead of gdbarch_register_read_p or
7472 gdbarch_register_write_p.
7473 (regcache_collect): Update register_buffer call.
7474 (build_regcache): Rewrite. Use deprecated grub functions.
7475 (regcache_save, regcache_save_no_passthrough): New functions.
7476 (regcache_restore, regcache_restore_no_passthrough): New
7477 functions.
7478 (_initialize_regcache): Create the regcache_data_handle. Swap
7479 current_regcache global variable.
7480
7481 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7482 parameter to regcache_read and regcache_write calls.
7483 (sh4_register_read): Ditto.
7484 (sh64_pseudo_register_read): Ditto.
7485 (sh64_register_read): Ditto.
7486 (sh_pseudo_register_write): Ditto.
7487 (sh4_register_write): Ditto.
7488 (sh64_pseudo_register_write): Ditto.
7489 (sh64_register_write): Ditto.
7490
7491 * defs.h (XCALLOC): Define.
7492
152d9db6
GS
74932002-06-19 Grace Sainsbury <graces@redhat.com>
7494
7495 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7496 * m68k-tdep.c (m68k_gdbarch_init): Added.
7497 (m68k_dump_tdep): Added.
7498
170911c7
DJ
74992002-06-19 Daniel Jacobowitz <drow@mvista.com>
7500
7501 * ada-lang.c (fill_in_ada_prototype): Update comment.
7502
2e4ebe70
DJ
75032002-06-19 Daniel Jacobowitz <drow@mvista.com>
7504
7505 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7506 MIPS_ABI_LAST.
7507 (mips_abi_string, mips_abi_strings): New.
7508 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7509 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7510 tdep->mips_abi_string. Honor mips_abi_string. Default to
7511 O32 if no ABI is found.
7512 (mips_dump_tdep): Use mips_abi_strings.
7513 (mips_abi_update): New function.
7514 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7515 ``set mips abi'' and ``show mips abi''. Check the size of
7516 mips_abi_strings.
7517
16775908
AC
75182002-06-19 Andrew Cagney <cagney@redhat.com>
7519
7520 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7521 constant.
7522
5051bfa4 75232002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7524
5051bfa4
JB
7525 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7526 current frame using only the first stack size adjustment. All
7527 subsequent size adjustments are not considered to be part of
7528 the "static" part of the current frame.
7529 Compute the address of the saved registers relative to the
7530 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7531 in use in this frame.
7532
56468235
DH
75332002-06-18 Don Howard <dhoward@redhat.com>
7534
7535 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7536 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7537 suggesting this solution.
7538
0b624158
AC
75392002-06-18 Andrew Cagney <ac131313@redhat.com>
7540
7541 * config/romp/xm-rtbsd.h: Delete file.
7542 * config/romp/rtbsd.mh: Delete file.
7543
221ea385
KS
75442002-06-18 Keith Seitz <keiths@redhat.com>
7545
7546 * breakpoint.c (condition_command): Post breakpoint_modify
7547 when a condition is added to an existing breakpoint.
7548 (commands_command): Likewise for commands.
7549 (set_ignore_count): Likewise for ignore counts.
7550 If no tty, do not simply return, still need to send event
7551 notification.
7552 (ignore_command): Only print a newline if the command came
7553 from a tty.
7554 Don't call breakpoints_changed, since this is now properly
7555 handled by set_ignore_count.
7556
5402eed1
AC
75572002-06-18 Andrew Cagney <cagney@redhat.com>
7558
7559 * MAINTAINERS: Note that cris-elf target can be compiled with
7560 -Werror.
7561 * cris-tdep.c (cris_register_name): Make return type constant.
7562 (cris_breakpoint_from_pc): Ditto.
7563
cc22880b
ML
75642002-06-18 Michal Ludvig <mludvig@suse.cz>
7565
7566 * frame.h (struct frame_info): Change type of context to
7567 'struct context'.
7568
fa88f677
AC
75692002-06-17 Andrew Cagney <cagney@redhat.com>
7570
7571 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7572 pointer.
7573 * gdbarch.h, gdbarch.c: Regenerate.
7574 * config/mips/tm-mips.h (mips_register_name): Update.
7575 * i386-tdep.h (i386_register_name): Update.
7576 * mips-tdep.c (mips_register_name): Update
7577 * alpha-tdep.c (alpha_register_name): Update.
7578 * arch-utils.c (legacy_register_name): Update.
7579 * arch-utils.h (legacy_register_name): Update.
7580 * avr-tdep.c (avr_register_name): Update.
7581 * ia64-tdep.c (ia64_register_name): Update.
7582 * i386-tdep.c (i386_register_name): Update.
7583 * sparc-tdep.c (sparc32_register_name): Update.
7584 (sparc64_register_name): Update.
7585 (sparclite_register_name): Update.
7586 (sparclet_register_name): Update.
7587 * sh-tdep.c (sh_generic_register_name): Update.
7588 (sh_sh_register_name): Update.
7589 (sh_sh3_register_name): Update.
7590 (sh_sh3e_register_name): Update.
7591 (sh_sh_dsp_register_name): Update.
7592 (sh_sh3_dsp_register_name): Update.
7593 (sh_sh4_register_name): Update.
7594 (sh_sh64_register_name): Update.
7595 * s390-tdep.c (s390_register_name): Update.
7596 * rs6000-tdep.c (rs6000_register_name): Update.
7597 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7598 (ns32k_register_name_32382): Update.
7599 * d10v-tdep.c (d10v_ts2_register_name): Update.
7600 (d10v_ts3_register_name): Update.
7601 * xstormy16-tdep.c (xstormy16_register_name): Update.
7602 * vax-tdep.c (vax_register_name): Update.
7603 * v850-tdep.c (v850_register_name): Update.
7604 * m68hc11-tdep.c (m68hc11_register_name): Update.
7605 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7606 (am33_register_name): Update.
7607
ea1e7ef6
GS
76082002-06-17 Grace Sainsbury <graces@redhat.com>
7609
7610 * m68k-tdep.c: Reindented.
7611
9b02dd1b
AC
76122002-06-17 Andrew Cagney <ac131313@redhat.com>
7613
7614 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7615 list of predefined types.
7616
8758dec1
MK
76172002-06-16 Mark Kettenis <kettenis@gnu.org>
7618
b6197528
MK
7619 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7620 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7621 REGISTER_CONVERT_TO_RAW): Remove defines.
7622 (i386_register_virtual_type, i386_register_convertible,
7623 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7624 Remove prototypes.
7625 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7626 macros mentioned above.
7627
82b47e62
MK
7628 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7629 (i386lynx_saved_pc_after_call): Remove prototype.
7630 * i386ly-tdep.c: Include "i386-tdep.h".
7631 (i386lynx_saved_pc_after_call): Make static. Use
7632 read_memory_nobpt instead of read_memory. Use
7633 read_memory_unsigned_integer instead of read_memory_integer.
7634 (i386lynx_init_abi): New function.
7635 (i386lynx_coff_osabi_sniffer): New function.
7636 (_initialize_i386bsd_tdep): New function.
7637
8758dec1
MK
7638 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7639 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7640 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7641 (i386_fix_call_dummy): Remove prototype.
7642 * i386-tdep.c (i386_call_dummy_words): New variable.
7643 (i386_gdbarch_init): Adjust for removal of the
7644 macros mentioned above.
7645
e9e68a56
AC
76462002-06-15 Andrew Cagney <ac131313@redhat.com>
7647
7648 * command.h (add_setshow_auto_boolean_cmd): Replace
7649 add_set_auto_boolean_cmd.
7650 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7651 add_set_auto_boolean_cmd.
7652 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7653 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7654 mask-address'' command.
7655 (show_mask_address): Add cmd parameter.
7656 * remote.c (add_packet_config_cmd): Update. Change type of
7657 set_func and show_func to cmd_sfunc_ftype.
7658 (_initialize_remote): Update `set remote Z-packet'
7659 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7660 (show_remote_protocol_e_packet_cmd): Ditto.
7661 (show_remote_protocol_E_packet_cmd): Ditto.
7662 (show_remote_protocol_P_packet_cmd): Ditto.
7663 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7664 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7665 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7666 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7667 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7668 (show_remote_protocol_Z_packet_cmd): Ditto.
7669 (show_remote_protocol_binary_download_cmd): Ditto.
7670 (show_remote_cmd): Pass NULL to all of above.
7671
fc08ec52
MK
76722002-06-15 Mark Kettenis <kettenis@gnu.org>
7673
7674 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7675 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7676 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7677 POP_FRAME): Remove defines.
7678 (i386_push_arguments, i386_store_struct_return,
7679 i386_extract_return_value, i386_store_return_value,
7680 i386_extract_struct_value_address, i386_push_dummy_frame,
7681 i386_pop_frame): Renove prototypes.
7682 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7683 macros mentioned above.
7684
e707bbc2
AC
76852002-06-15 Andrew Cagney <ac131313@redhat.com>
7686
7687 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7688 add_set_boolean_cmd.
7689 (add_setshow_cmd): New function.
7690 * command.h (add_setshow_boolean_cmd): Replace
7691 add_set_boolean_cmd.
7692 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7693 and ``set rdiromatzero''.
7694 * maint.c (_initialize_maint_cmds): Update commented out code.
7695 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7696 * target.c (initialize_targets): Update `set
7697 trust-readonly-sections'.
7698 * remote.c (_initialize_remote): Update `set remotebreak'.
7699
42fdc8df
MK
77002002-06-15 Mark Kettenis <kettenis@gnu.org>
7701
93924b6b
MK
7702 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7703 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7704 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7705 fit into multi-arch framework.
7706 (i386_breakpoint_from_pc): New function.
7707 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7708 above.
7709
42fdc8df
MK
7710 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7711 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7712 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7713 (i386_frameless_function_invocation, i386_frame_num_args,
7714 i386_frame_init_saved_regs): Remove prototypes.
7715 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7716 macros mentioned above.
7717
9773a94b
AC
77182002-06-15 Andrew Cagney <ac131313@redhat.com>
7719
7720 * cli/cli-decode.c (set_cmd_cfunc): Update.
7721 (set_cmd_sfunc): Update.
7722 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7723 (set_cmd_sfunc, set_cmd_cfunc): Update.
7724 * cli/cli-decode.h: Update.
7725
6e157172
MK
77262002-06-15 Mark Kettenis <kettenis@gnu.org>
7727
7728 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7729 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7730
7f19b9a2
AC
77312002-06-15 Andrew Cagney <ac131313@redhat.com>
7732
7733 * defs.h (auto_boolean): Declare enum.
7734 * command.h (cmd_auto_boolean): Delete enum.
7735 * mips-tdep.c (mask_address_var): Update.
7736 (mips_mask_address_p): Update.
7737 (show_mask_address): Update.
7738 * remote.c (struct packet_config): Update.
7739 (update_packet_config): Update.
7740 (show_packet_config_cmd): Update.
7741 (packet_ok): Update.
7742 (add_packet_config_cmd): Update.
7743 (_initialize_remote):
7744 * command.h: Update.
7745 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7746 (do_setshow_command): Update.
7747 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7748 * cli/cli-decode.h: Update.
7749
1cf88de5
MK
77502002-06-15 Mark Kettenis <kettenis@gnu.org>
7751
22ba8cf2
MK
7752 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7753 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7754 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7755 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7756 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7757 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7758
762c5349
MK
7759 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7760 list of DJGPP COFF targets.
7761
091198bb
MK
7762 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7763 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7764 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7765 (FP0_REGNUM): Remove define.
7766 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7767 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7768 (i386_register_virtual_size): Remove protoype.
7769 * i386-tdep.c (i386_register_virtual_size): Removed.
7770 (i386_extract_return_value, i386_store_return_value): Use
7771 FP0_REGNUM instead of NUM_FREGS to determine whether the
7772 floating-point registers are available.
7773 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7774 Adjust for removal of macros mentioned above.
7775
77762002-06-15 Mark Kettenis <kettenis@gnu.org>
7777
fcc9bf01
MK
7778 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7779 comments.
7780 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7781 Remove prototypes.
7782 (supply_gregset, fill_gregset): Remove use of register keyword and
7783 remove declaration for regmap. Use I386_NUM_GREGS instead of
7784 NUM_REGS and NUM_FREGS.
7785 (FPREGSET_FSAVE_OFFSET): Remove.
7786 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7787 NUM_FREGS to determine whether the floating-point registers are
7788 available.
7789
65e78234
MK
7790 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7791 gnu_store_registers): Replace usage of NUM_GREGS with
7792 I386_NUM_GREGS.
7793
98df6387
MK
7794 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7795 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7796 usage of NUM_GREGS with I386_NUM_GREGS.
7797
099a9414
MK
7798 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7799
57976e88
MK
7800 * i386bsd-nat.c: Include "i386-tdep.h".
7801 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7802 I386_NUM_GREGS.
7803
b335f4a6
MK
7804 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7805 and associated comment. They no longer make any sense, since we
7806 don't use this file anymore on Linux.
7807
1cf88de5
MK
7808 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7809 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7810 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7811 elements in these arrays.
7812 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7813 MAX_NUM_REGS.
7814
daa66587
MK
78152002-06-15 Mark Kettenis <kettenis@gnu.org>
7816
7817 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7818 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7819
26e9b323
AC
78202002-06-14 Andrew Cagney <cagney@redhat.com>
7821
7822 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7823 EXTRACT_RETURN_VALUE.
7824 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7825 EXTRACT_STRUCT_VALUE_ADDRESS.
7826 * gdbarch.h, gdbarch.c: Regenerate.
7827
7828 * values.c (value_being_returned): Handle
7829 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7830 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7831
7832 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7833 * arm-tdep.c (arm_gdbarch_init): Update.
7834 * avr-tdep.c (avr_gdbarch_init): Update.
7835 * cris-tdep.c (cris_gdbarch_init): Update.
7836 * d10v-tdep.c (d10v_gdbarch_init): Update.
7837 * ia64-tdep.c (ia64_gdbarch_init): Update.
7838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7840 * s390-tdep.c (s390_gdbarch_init): Update.
7841 * sh-tdep.c (sh_gdbarch_init): Update.
7842 * s390-tdep.c (s390_gdbarch_init): Update.
7843 * sparc-tdep.c (sparc_gdbarch_init): Update.
7844 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7845 * v850-tdep.c (v850_gdbarch_init): Update.
7846 * vax-tdep.c (vax_gdbarch_init): Update.
7847 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7849
7850 * config/arc/tm-arc.h: Update.
7851 * config/d30v/tm-d30v.h: Update.
7852 * config/fr30/tm-fr30.h: Update.
7853 * config/h8300/tm-h8300.h: Update.
7854 * config/h8500/tm-h8500.h: Update.
7855 * config/i386/tm-i386.h: Update.
7856 * config/i386/tm-ptx.h: Update.
7857 * config/i386/tm-symmetry.h: Update.
7858 * config/i960/tm-i960.h: Update.
7859 * config/m32r/tm-m32r.h: Update.
7860 * config/m68k/tm-delta68.h: Update.
7861 * config/m68k/tm-linux.h: Update.
7862 * config/m68k/tm-m68k.h: Update.
7863 * config/m88k/tm-m88k.h: Update.
7864 * config/mcore/tm-mcore.h: Update.
7865 * config/mips/tm-mips.h: Update.
7866 * config/mn10200/tm-mn10200.h: Update.
7867 * config/pa/tm-hppa.h: Update.
7868 * config/pa/tm-hppa64.h: Update.
7869 * config/sparc/tm-sp64.h: Update.
7870 * config/sparc/tm-sparc.h: Update.
7871 * config/sparc/tm-sparclet.h: Update.
7872 * config/z8k/tm-z8k.h: Update.
7873
5179e78f
AC
78742002-06-14 Andrew Cagney <cagney@redhat.com>
7875
7876 * Makefile.in (i386_linux_tdep_h): Define.
7877 (i386_tdep_h, i387_tdep_h): Define.
7878 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7879 $(i386_tdep_h) and $(i387_tdep_h).
7880 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7881
8201327c
MK
78822002-06-14 Mark Kettenis <kettenis@gnu.org>
7883
edf393ac
MK
7884 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7885 Already covered by the default.
7886
896fb97d
MK
7887 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7888 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7889 (i386_gdbarch_init): Initialize long_double_format and long_double
7890 bit.
7891
8201327c
MK
7892 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7893 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7894 Move these to ...
7895 * config/i386/i386sol2.mh: ... here.
7896 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7897 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7898 (SIGCONTEXT_PC_OFFSET): Remove define.
7899 (IN_SIGTRAMP): Remove define.
7900 * i386-sol2-tdep.c: New file.
7901
7902 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7903 * config/i386/tm-i386nw.h: Removed.
7904
7905 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7906 USE_STRUCT_CONVENTION): Remove defines.
7907 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7908 (get_longjmp_target): Remove prototype.
7909 (IN_SIGTRAMP): Remove define.
7910 (i386bsd_in_sigtramp): Remove prototype.
7911 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7912 function. Update comment accordingly
7913 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7914 (FRAME_SAVED_PC): Remove define.
7915 (i386bsd_frame_saved_pc): Remove prototype.
7916 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7917 GET_LONGJMP_TARGET): Remove defines.
7918 (get_longjmp_target): Remove prototype.
7919 (IN_SIGTRAMP): Remove define.
7920 (i386bsd_in_sigtramp): Remove prototype.
7921 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7922 function. Update comment accordingly
7923 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7924 (FRAME_SAVED_PC): Remove define.
7925 (i386bsd_frame_saved_pc): Remove prototype.
7926 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7927 Remove prototype.
7928 (USE_STRUCT_CONVENTION): Remove prototype.
7929 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7930 declaration.
7931 (_initialize_i386bsd_nat): Revise logic to determine some
7932 constants at compile time when compiling a native GDB. Warn if
7933 things don't match up with what we expect.
7934 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7935 Remove variables.
7936 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7937 to use date stored in `struct gdbarch_tdep'.
7938 (i386bsd_sigcontext_offset): Remove varaible.
7939 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7940 stored in `struct gdbarch_tdep'.
7941 (i386bsd_frame_saved_pc): Make static.
7942 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7943 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7944 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7945 i386fbsd4_sc_pc_offset): New variables.
7946 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7947 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7948 functions.
7949 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7950 functions.
7951 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7952 Modify the value of i386fbsd_sigtramp_start and
7953 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7954 i386fbsd_sigtramp_end.
7955 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7956 function.
7957
7958 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7959 define to i386-linux-tdep.h.
7960 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7961 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7962 defines.
7963 (i386_linux_register_name, i386_linux_register_byte,
7964 i386_linux_register_raw_size): Remove prototypes.
7965 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7966 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7967 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7968 TARGET_WRITE_PC): Remove defines.
7969 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7970 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7971 i386_linux_write_pc): Remove prototypes.
7972 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7973 (get_longjmp_target): Remove prototype.
7974 * i386-linux-tdep.h: New file.
7975 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7976 * i386-linux-tdep.c: Include "i386-tdep.h" and
7977 "i386-linux-tdep.h".
7978 (i386_linux_register_name, i386_linux_register_byte,
7979 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7980 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7981 Make static.
7982 (i386_linux_init_abi): New function.
7983 (_initialize_i386_linux_tdep): New function.
7984
7985 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7986 (i386_saved_pc_after_call): Remove prototype.
7987 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7988 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7989 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7990 (i386_register_name, i386_stab_reg_to_regnum,
7991 i386_dwarf_reg_to_regnum): Remove prototypes.
7992 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7993 SIZEOF_SSE_REGS): Remove defines.
7994 (REGISTER_BYTES): Remove define.
7995 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7996 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7997 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7998 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7999 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8000 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8001 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8002 (get_longjmp_target): Remove prototype.
8003 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8004 (sigtramp_saved_pc): Remove define.
8005 (i386v4_sigtramp_saved_pc): Remove prototype.
8006 * config/i386/tm-go32.h (FRAME_CHAIN,
8007 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8008 (i386go32_frame_saved_pc): Remove prototype.
8009 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8010 (get_longjmp_target): Remove prototype.
8011 * i386-tdep.h: Include "osabi.h".
8012 (enum i386_abi): Removed.
8013 (enum struct_return): New enum.
8014 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8015 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8016 sc_pc_offset members.
8017 (i386_gdbarch_register_os_abi): Remove prototype.
8018 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8019 I386_SSE_NUM_REGS): New defines.
8020 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8021 I386_SSE_SIZEOF_REGS): New defines.
8022 (i386_register_name, i386_register_byte, i386_register_raw_size):
8023 New prototypes.
8024 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8025 (i386bsd_sigtramp_saved_pc): New prototype.
8026 * i386-tdep.c: Don't include "elf-bfd.h".
8027 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8028 i386_frame_chain, i386_saved_pc_after_call): Make static.
8029 (i386_frame_saved_pc): Rewrite to call architecture dependent
8030 function to deal with signal handlers. Make static.
8031 (i386go32_frame_saved_pc): Removed.
8032 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8033 Removed.
8034 (i386_get_longjmp_target): New function.
8035 (default_struct_convention, pcc_struct_convention,
8036 reg_struct_convention, valid_conventions, struct_convention): New
8037 variables.
8038 (i386_use_struct_convention): New function.
8039 (i386v4_sigtramp_saved_pc): Renamed to
8040 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8041 (i386_pc_in_sigtramp): New function.
8042 (i386_abi_names): Removed.
8043 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8044 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8045 Removed.
8046 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8047 i386_gdbarch_register_os_abi): Removed.
8048 (struct i386_abi_handler): Removed.
8049 (i386_abi_handler_list): Removed.
8050 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8051 functions.
8052 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8053 i386_nw_init_abi): New functions.
8054 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8055 Use set_gdbarch_xxx() calls instead of relying on macros for a
8056 number of calls.
8057 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8058 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8059 Register the various architecture variants defined in this file.
8060
ad2f7632
DJ
80612002-06-14 Daniel Jacobowitz <drow@mvista.com>
8062
8063 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8064 (struct main_type): Remove arg_types member. Update comments for
8065 struct field.
8066 (TYPE_ARG_TYPES): Remove.
8067 (TYPE_FN_FIELD_ARGS): Update.
8068 (smash_to_method_type): Update prototype.
8069
8070 * c-typeprint.c (cp_type_print_method_args): Take method type
8071 instead of argument list. Use new argument layout. Simplify.
8072 (c_type_print_args): Use new argument layout. Simplify.
8073 (c_type_print_base): Update call to cp_type_print_method_args.
8074 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8075 argument; use die->type instead. Update call to
8076 smash_to_method_type.
8077 (read_structure_scope): Update call to dwarf2_add_member_fn.
8078 * gdbtypes.c (allocate_stub_method): Update comment.
8079 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8080 Use new argument layout.
8081 (check_stub_method): Use new argument layout. Don't count
8082 void as an argument.
8083 (print_arg_types): Update comments. Use new argument layout.
8084 (recursive_dump_type): Don't print arg_types member.
8085 * hpread.c (hpread_read_struct_type): Use new argument layout.
8086 (fixup_class_method_type): Likewise.
8087 (hpread_type_lookup): Likewise.
8088 * stabsread.c (read_type): Update calls to read_args and
8089 smash_to_method_type.
8090 (read_args): Use new argument layout. Simplify.
8091 * valops.c (typecmp): Use new argument layout. Update parameters
8092 and comments. Simplify.
8093 (hand_function_call): Use new argument layout.
8094 (search_struct_method): Update call to typecmp.
8095 (find_overload_match): Use new argument layout.
8096
6da02953
DJ
80972002-06-13 Daniel Jacobowitz <drow@mvista.com>
8098
8099 * NEWS: Mention multithreaded debug support for gdbserver.
8100
519b2366
DJ
81012002-06-13 Daniel Jacobowitz <drow@mvista.com>
8102
8103 * MAINTAINERS: Mention NEWS.
8104
6c0d6680
DJ
81052002-06-13 Daniel Jacobowitz <drow@mvista.com>
8106
8107 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8108 (struct mips_objfile_private, compare_pdr_entries): New.
8109 (non_heuristic_proc_desc): Read the ".pdr" section if it
8110 is present.
8111
6529d2dd
AC
81122002-06-12 Andrew Cagney <ac131313@redhat.com>
8113
8114 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8115 (arm_debug): New static variable.
8116 (_initialize_arm_tdep): Add ``set debug arm'' command.
8117
26216b98
AC
81182002-06-12 Andrew Cagney <ac131313@redhat.com>
8119
8120 * Makefile.in (sim_arm_h): Define.
8121 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8122 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8123 (arm_register_sim_regno): New function, map an internal REGNUM
8124 onto a simulator register number.
8125 (arm_gdbarch_init): Set register_sim_regno.
8126
814b3ba0
AH
81272002-06-09 Aldy Hernandez <aldyh@redhat.com>
8128
8129 * MAINTAINERS: Add self.
8130
475b0867
JB
81312002-06-11 Jim Blandy <jimb@redhat.com>
8132
919d772c
JB
8133 * source.c (source_info): Mention whether the symtab has
8134 information about preprocessor macros.
8135
475b0867
JB
8136 Call the command `info macro', not `show macro'.
8137 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8138 Fix error message.
8139 (_initialize_macrocmd): Register `info_macro_command' in
8140 `infolist', not `showlist'.
8141
9e364162
DJ
81422002-06-11 Daniel Jacobowitz <drow@mvista.com>
8143
8144 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8145 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8146 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8147 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8148 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8149 unconditionally.
8150 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8151 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8152 (_initialize_mips_tdep): Remove dead code.
8153 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8154 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8155 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8156 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8157 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8158 MIPS_LAST_FP_ARG_REGNUM): Remove.
8159
23aa4c72
ML
81602002-06-11 Michal Ludvig <mludvig@suse.cz>
8161
8162 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8163 (unwind_tmp_obstack_free, parse_frame_info)
8164 (update_context, cfi_read_fp, cfi_write_fp)
8165 (cfi_frame_chain, cfi_init_extra_frame_info)
8166 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8167 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8168
70eb15a4
CV
81692002-06-11 Corinna Vinschen <vinschen@redhat.com>
8170
8171 * v850-tdep.c (v850_type_is_scalar): New function.
8172 (v850_use_struct_convention): Match current gcc implementation
8173 as close as possible.
8174 (v850_push_arguments): Fix stack_offset handling. Don't write
8175 struct_addr into register. This is done by v850_store_struct_return.
8176 (v850_extract_return_value): Care for structs.
8177 (v850_store_return_value): Ditto.
8178 (v850_store_struct_return): Actually write address.
8179
482a4d06
ML
81802002-06-11 Michal Ludvig <mludvig@suse.cz>
8181
8182 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8183 without debug information too.
8184
d855c300
AC
81852002-06-10 Andrew Cagney <ac131313@redhat.com>
8186
8187 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8188 Make multi-arch pure.
8189 * gdbarch.h, gdbarch.c: Re-generate.
8190 * arm-tdep.c (arm_print_float_info): Update.
8191 * arch-utils.h (default_print_float_info): Update.
8192 * arch-utils.c (default_print_float_info): Update.
8193 * infcmd.c (float_info): Update call.
8194
dd12a101
AC
81952002-06-10 Andrew Cagney <ac131313@redhat.com>
8196
8197 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8198 the front of the initialize list.
8199
101dcfbe
AC
82002002-06-10 Andrew Cagney <ac131313@redhat.com>
8201
8202 * infrun.c (struct inferior_status): Replace fields
8203 selected_frame_address and selected_level with field
8204 selected_frame_id.
8205 (save_inferior_status): Update. Use get_frame_id.
8206 (struct restore_selected_frame_args): Delete.
8207 (restore_selected_frame): Update. Use frame_find_by_id.
8208 (restore_inferior_status): Update.
8209
8210 * breakpoint.h (struct breakpoint): Change type of
8211 watchpoint_frame to frame_id.
8212 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8213 call to get_current_frame.
8214 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8215 get_current_frame.
8216 (watchpoint_check): Use frame_find_by_id.
8217
8218 * frame.h (record_selected_frame): Delete declaration.
8219 * stack.c (record_selected_frame): Delete function.
8220
8221 * frame.h (struct frame_id): Define.
8222 (get_frame_id): Declare.
8223 (frame_find_by_id): Declare.
8224 * frame.c (frame_find_by_id): New function.
8225 (get_frame_id): New function.
8226
304270b6
AV
82272002-06-10 Andrey Volkov <avolkov@transas.com>
8228
8229 * ser-e7kpc.c: Fix duplicated define and call of
8230 _initialize_ser_e7000pc
8231
2f2cf184
DJ
82322002-06-09 Daniel Jacobowitz <drow@mvista.com>
8233
8234 * signals/signals.c (target_signal_from_host): Fix #ifdef
8235 SIGRTMIN case.
8236 (do_target_signal_to_host): Likewise.
8237
caaa3122
DJ
82382002-06-09 Daniel Jacobowitz <drow@mvista.com>
8239
8240 * mips-tdep.c (mips_find_abi_section): New function.
8241 (mips_gdbarch_init): Call it.
8242
6ac5df3a
MK
82432002-06-09 Mark Kettenis <kettenis@gnu.org>
8244
8245 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8246 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8247 after Andrew's 2002-06-08 gdbarch change.
8248
82ea117a
MK
82492002-06-09 Mark Kettenis <kettenis@gnu.org>
8250
8251 * i386-linux-nat.c (suppy_gregset): Don't supply
8252 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8253 register cache.
8254 (fill_gregset): Don't fetch it under the same circumstances.
8255
3c25f8c7
AC
82562002-06-09 Andrew Cagney <cagney@redhat.com>
8257
8258 * Makefile.in (callback_h): Define.
8259 (remote_sim_h): Update path to remote-sim.h.
8260 (remote-rdp.o): Add $(callback_h).
8261 (remote-sim.o): Use $(callback_h).
8262 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8263 * remote-rdp.c: Include "gdb/callback.h".
8264
1029b7fa
MK
82652002-06-09 Mark Kettenis <kettenis@gnu.org>
8266
8267 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8268 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8269
616675d3
AC
82702002-06-08 Andrew Cagney <ac131313@redhat.com>
8271
a3efda28
AC
8272 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8273 * rdi-share/serpardr.c: Ditto.
8274 * rdi-share/unixcomm.c: Ditto.
8275 * rdi-share/serdrv.c: Ditto.
8276 * rdi-share/hostchan.h: Ditto.
8277 * rdi-share/hostchan.c: Ditto.
8278 * rdi-share/host.h: Ditto.
8279 * rdi-share/devsw.c: Ditto.
8280
c5f10366
AC
8281 * objfiles.h: Change type of obj_private to void pointer.
8282 * pa64solib.c: Update copyright. Don't include "assert.h", use
8283 strcmp instead of STREQ, use LONGEST, do not use PTR
8284 * somsolib.c: Ditto.
8285
616675d3
AC
8286 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8287 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8288 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8289
e4b415d9
AC
82902002-06-08 Andrew Cagney <ac131313@redhat.com>
8291
8292 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8293 (default_get_saved_register): Delete function.
8294 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8295 generic_unwind_get_saved_register.
8296 * gdbarch.h, gdbarch.c: Re-generate.
8297
ca0d0b52
AC
82982002-06-08 Andrew Cagney <ac131313@redhat.com>
8299
8300 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8301 generic_func_frame_chain_valid.
8302 * gdbarch.h, gdbarch.c: Re-generate.
8303 * blockframe.c (generic_func_frame_chain_valid): Only check
8304 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8305 passing FP to PC_IN_CALL_DUMMY.
8306 Fix PR gdb/360.
8307
76860b5f
AC
83082002-06-08 Andrew Cagney <ac131313@redhat.com>
8309
8310 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8311 (register_gdbarch_data): Initialize init_p.
8312 (gdbarch_data): Initialize data pointer using the init function.
8313 (init_gdbarch_data): Delete function.
8314 (gdbarch_update_p): Update.
8315 (initialize_non_multiarch): Update.
8316 (struct gdbarch): Add field initialized_p.
8317 * gdbarch.h, gdbarch.c: Re-generate.
8318
8dda9770
ML
83192002-06-07 Michal Ludvig <mludvig@suse.cz>
8320
8321 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8322 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8323 better do the things actually here.
8324 * x86-64-tdep.c (x86_64_register_name2nr): New.
8325 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8326 (x86_64_gdbarch_init): Respect the above change.
8327 * x86-64-tdep.h (x86_64_register_name2nr)
8328 (x86_64_register_nr2name): Add prototypes.
8329 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8330
3d79a47c
MS
83312002-06-06 Michael Snyder <msnyder@redhat.com>
8332
7bd91a28
MS
8333 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8334 Delete extra braces and re-indent.
8335 (d10v_store_return_value): Char return values
3d79a47c
MS
8336 must be shifted over by one byte in R0.
8337 (d10v_extract_return_value): Delete extra braces, re-indent.
8338
095a4c96
EZ
83392002-06-06 Elena Zannoni <ezannoni@redhat.com>
8340
8341 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8342 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8343 (d10v_integer_to_address): Rewrite.
8344 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8345 the d10v specific functions which take care of converting to the
8346 correct space.
8347
e8a77ca4
EZ
83482002-06-06 Elena Zannoni <ezannoni@redhat.com>
8349
8350 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8351 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8352
4f2e4a4f
AC
83532002-06-02 Andrew Cagney <ac131313@redhat.com>
8354
8355 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8356 includes.
8357 * config/tm-linux.h: Ditto.
8358 * config/alpha/tm-alphalinux.h: Ditto.
8359 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8360 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8361 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8362 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8363 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8364 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8365 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8366 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8367 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8368 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8369 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8370 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8371 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8372 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8373 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8374 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8375 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8376 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8377 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8378 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8379 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8380 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8381 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8382 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8383 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8384 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8385 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8386 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8387 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8388 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8389 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8390 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8391 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8392 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8393 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8394 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8395 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8396
ae2ab2ce
AS
83972002-05-04 Aidan Skinner <aidan@velvet.net>
8398
8399 * ada-exp.tab.c: New file
8400 * ada-exp.y: New file
8401 * ada-lang.c: New file
8402 * ada-lang.h: New file
8403 * ada-lex.c: New file
8404 * ada-lex.l: New file
8405 * ada-tasks.c: New file
8406 * ada-typeprint.c: New file
8407 * ada-valprint.c: New file
8408
0ddd0135
JT
84092002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8410
8411 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8412 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8413
750fbacc
JT
84142002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8415
8416 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8417 insetead of ppc-linux-tdep.o.
8418 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8419 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8420
df94e18a
AC
84212002-06-02 Andrew Cagney <ac131313@redhat.com>
8422
8423 2002-05-07 Christian Groessler <chris@groessler.org>
8424 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8425 bit register contents for little endian hosts.
8426
1a38ab75
AC
84272002-06-01 Andrew Cagney <ac131313@redhat.com>
8428
8429 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8430 any maintainer.
8431
8b1632ac
AC
84322002-06-01 Andrew Cagney <ac131313@redhat.com>
8433
8434 * gdbarch.h: Regenerate.
8435
627054c8
AC
84362002-06-01 Andrew Cagney <ac131313@redhat.com>
8437
8438 * MAINTAINERS: Add everyone to write-after-approval list.
8439
4f460812
AC
84402002-06-01 Andrew Cagney <ac131313@redhat.com>
8441
8442 * stack.c (frame_info): Use frame_register_unwind instead of
8443 saved_regs. Mention when the SP is on the stack or in a register.
8444
8445 * frame.h (frame_register_unwind_ftype): Define. Document.
8446 (struct frame_info): Add field register_unwind and
8447 register_unwind_cache.
8448 (frame_register_unwind): Declare.
8449 (generic_unwind_get_saved_register): Declare.
8450
8451 * frame.c (frame_register_unwind): New function.
8452 (generic_unwind_get_saved_register): New function.
8453
8454 * blockframe.c (generic_call_dummy_register_unwind): New function.
8455 (frame_saved_regs_register_unwind): New function.
8456 (set_unwind_by_pc): New function.
8457 (create_new_frame): New function.
8458 (get_prev_frame): New function.
8459
de888f76
AC
84602002-05-30 Andrew Cagney <ac131313@redhat.com>
8461
8462 * a29k-share/: Delete directory.
8463 * remote-vx29k.c: Delete file.
8464
2f2c3626
JT
84652002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8466
8467 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8468 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8469
9ce5c36a
JT
84702002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8471
8472 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8473 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8474 (sparc64nbsd-nat.o)
8475 (sparcnbsd-nat.o)
8476 (sparcnbsd-tdep.o): New dependency lists.
8477 * NEWS: Note new UltraSPARC NetBSD native configuration.
8478 * configure.host (sparc64-*-netbsd*): New host.
8479 * configure.tgt (sparc-*-netbsdelf*)
8480 (sparc-*-netbsd*): Set gdb_target to nbsd.
8481 (sparc64-*-netbsd*): New target.
8482 * sparc64nbsd-nat.c: New file.
8483 * sparcnbsd-nat.c: New file.
8484 * sparcnbsd-tdep.c: New file.
8485 * sparcnbsd-tdep.h: New file.
8486 * config/sparc/nbsd.mt: New file.
8487 * config/sparc/nbsd64.mh: New file.
8488 * config/sparc/nbsd64.mt: New file.
8489 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8490 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8491 (HOST_IPC): Remove.
8492 * config/sparc/nbsdaout.mt: Remove.
8493 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8494 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8495 (HOST_IPC): Remove.
8496 * config/sparc/nbsdelf.mt: Remove.
8497 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8498 sparc-nat.c compatiblity defines.
8499 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8500 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8501 * config/sparc/tm-nbsd64.h: New file.
8502 * config/sparc/tm-nbsdaout.h: Remove.
8503 * config/sparc/xm-nbsd.h: Remove.
8504
ef3cf062
JT
85052002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8506
8507 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8508 * sparc-tdep.c: Include osabi.h.
8509 (gdbarch_tdep): Add osabi member.
8510 (_initialize_sparc_tdep): Use gdbarch_register.
8511 (sparc_gdbarch_init): Use generic OS ABI framework.
8512 (sparc_dump_tdep): New function.
8513
ee8ff470
KB
85142002-05-30 Kevin Buettner <kevinb@redhat.com>
8515
8516 * corefile.c (do_captured_read_memory_integer): Return non-zero
8517 result.
8518 (safe_read_memory_integer): Copy result of memory read when
8519 status is non-zero. Also, add comments.
8520
7b112f9c
JT
85212002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8522
8523 * Makefile.in (ppc_tdep_h): Define.
8524 (ppc-linux-nat.o)
8525 (ppc-linux-tdep.o)
8526 (rs6000-tdep.o): Use $(ppc_tdep_h).
8527 (ppc-sysv-tdep.o)
8528 (ppcnbsd-nat.o)
8529 (ppcnbsd-tdep.o): New dependency lists.
8530 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8531 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8532 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8533 (ppc_sysv_abi_broken_use_struct_convention)
8534 (ppc_sysv_abi_use_struct_convention)
8535 (ppc_sysv_abi_push_arguments): Move to...
8536 * ppc-sysv-tdep.c: ...here.
8537 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8538 * rs6000-tdep.c (process_note_abi_tag_sections)
8539 (get_elfosabi): Remove.
8540 (rs6000_gdbarch_init): Use generic OS ABI framework.
8541 (rs6000_dump_tdep): New function.
8542 (_initialize_rs6000_tdep): Use gdbarch_register.
8543 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8544 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8545 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8546 of ppc-linux-tdep.o.
8547 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8548 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8549 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8550 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8551 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8552 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8553
480dd42a
JB
85542002-05-29 Jim Blandy <jimb@redhat.com>
8555
8556 * macroscope.c (default_macro_scope): Put `void' in empty argument
8557 list.
8558
4182591f
AC
85592002-05-29 Andrew Cagney <ac131313@redhat.com>
8560
8561 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8562 * arch-utils.c: Include "sim-regno.h".
8563 * gdbarch.sh: Don't include "sim-regno.h".
8564 * gdbarch.h, gdbarch.c: Regenerate.
8565 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8566 here.
8567 * arch-utils.h (legacy_register_sim_regno): To here.
8568 * remote-sim.c (legacy_register_sim_regno): Move function from
8569 here.
8570 * arch-utils.c (legacy_register_sim_regno): To here.
8571
8238d0bf
AC
85722002-05-28 Andrew Cagney <ac131313@redhat.com>
8573
8574 * sim-regno.h: New file.
8575 * Makefile.in (sim_regno_h): Define.
8576 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8577 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8578 (legacy_register_sim_regno): New function.
8579 (one2one_register_sim_regno): New function.
8580 (gdbsim_fetch_register): Rewrite.
8581 (gdbsim_store_register): Only store a register when
8582 REGISTER_SIM_REGNO is valid.
8583 * d10v-tdep.c: Include "sim-regno.h".
8584 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8585 (d10v_ts3_register_sim_regno): Ditto.
8586 * gdbarch.sh: Include "sim-regno.h".
8587 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8588 * gdbarch.h, gdbarch.c: Regenerate.
8589 * arch-utils.h (default_register_sim_regno): Delete declaration.
8590 * arch-utils.c (default_register_sim_regno): Delete function.
8591
485721b1
JT
85922002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8593
8594 * ppcnbsd-nat.c: Rewrite.
8595 * ppcnbsd-tdep.c: New file.
8596 * ppcnbsd-tdep.h: New file.
8597 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8598 solib.o, and solib-svr4.o.
8599 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8600 nbsd-tdep.o, and corelow.o.
8601
697f244d
AC
86022002-05-28 Andrew Cagney <ac131313@redhat.com>
8603
8604 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8605 `tr' and `sed'. Mention that `broken' targets are not expected to
8606 build.
8607
f08caad1 86082002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8609
8610 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8611 Let PC point right after the prologue before looking up symbols.
8612
3139facc
MH
86132002-05-27 Martin M. Hunt <hunt@redhat.com>
8614
8615 * i386-tdep.c (i386_register_virtual_type): Return
8616 builtin_type_vec128i for SSE registers.
8617
8618 * gdbtypes.h (builtin_type_vec128i): Declare.
8619
8620 * gdbtypes.c (build_builtin_type_vec128i): New function.
8621 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8622 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8623 (build_gdbtypes): Initialize new builtin vector types.
8624 (_initialize_gdbtypes): Register new vector types with gdbarch.
8625
6e3ba3b8
JT
86262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8627
8628 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8629 since it has been multi-arch'd.
8630 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8631 Move Alpha and VAX multi-arch news entries to same section
8632 as other multi-arch news.
8633
93d5585d
JT
86342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8635
8636 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8637 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8638 static. Rename some register numbers to put them in ns32k-tdep
8639 private namespace.
8640 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8641 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8642 functions.
8643 (_initialize_ns32k_tdep): Use gdbarch_register.
8644 * ns32k-tdep.h: New file.
8645 * ns32knbsd-tdep.c: New file.
8646 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8647 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8648 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8649 REGISTER_BYTES, REGISTER_BYTE): Remove.
8650 * config/ns32k/tm-ns32k.h: New file.
8651 * config/ns32k/tm-umax.h: Remove.
8652
efb2c70e
JT
86532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8654
8655 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8656 ns32k_store_struct_return, ns32k_extract_return_value,
8657 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8658 functions.
8659 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8660 ns32k_saved_pc_after_call.
8661 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8662 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8663 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8664 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8665 ns32k_extract_struct_value_address.
8666
7bcc927b
JT
86672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8668
8669 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8670 ns32k_fix_call_dummy): New.
8671 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8672 ns32k_call_dummy_words.
8673 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8674 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8675 CALL_DUMMY_NARGS): Remove.
8676 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8677
78f9d765
JT
86782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8679
8680 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8681 ns32k_frame_saved_pc, ns32k_frame_args_address,
8682 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8683 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8684 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8685 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8686 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8687 (BREAKPOINT): Remove..
8688 (FRAME_CHAIN): Define as ns32k_frame_chain.
8689 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8690 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8691 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8692 (FRAME_FIND_SAVED_REGS): Remove.
8693 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8694 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8695 (POP_FRAME): Define as ns32k_pop_frame.
8696
f2c762e0
JT
86972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8698
8699 * ns32k-tdep.c (ns32k_register_byte_32082,
8700 ns32k_register_byte_32382, ns32k_register_raw_size,
8701 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8702 functions.
8703 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8704 ns32k_register_byte_32382.
8705 * config/ns32k/tm-umax.h: Update copyright years.
8706 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8707 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8708 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8709 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8710 (ns32k_get_enter_addr): Fix prototype.
8711
af137673
JT
87122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8713
8714 * ns32k-tdep.c: Update copyright years.
8715 (ns32k_register_name_32082): New function.
8716 (ns32k_register_name_32382): Ditto.
8717 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8718 (REGISTER_NAME): Define as ns32k_register_name_32382.
8719 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8720 (REGISTER_NAME): Define as ns32k_register_name_32082.
8721
a8bc7b56
JB
87222002-05-24 Jim Blandy <jimb@redhat.com>
8723
8724 * dwarf2read.c (free_line_header): Use xfree, not free.
8725
83a45910
JT
87262002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8727
8728 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8729 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8730
0db71247
AC
87312002-05-23 Andrew Cagney <ac131313@redhat.com>
8732
8733 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8734
b9e5e4dd
AC
87352002-05-23 Andrew Cagney <ac131313@redhat.com>
8736
8737 From Ross Alexander at NEC Europe:
8738 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8739
de530e84
MS
87402002-05-23 Michael Snyder <msnyder@redhat.com>
8741
8742 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8743 for input, rather than parse_and_eval_address.
8744
b91b96f4
AC
87452002-05-23 Andrew Cagney <ac131313@redhat.com>
8746
8747 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8748 * Makefile.in (sim_d10v_h): Update definition.
8749
8b279e7a
AC
87502002-05-24 Andrew Cagney <cagney@redhat.com>
8751
8752 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8753 change `2002-05-22 Michael Snyder' below.
8754 (d10v_push_arguments): Ditto.
8755 (d10v_extract_return_value): Ditto.
8756
0a3d0425
JB
87572002-05-23 Jim Blandy <jimb@redhat.com>
8758
8759 * macrotab.c (check_for_redefinition): Don't complain if the new
8760 definition is the same as the previous one. Take more arguments
8761 to allow the comparison.
8762 (macro_define_object, macro_define_function): Pass more arguments
8763 to check_for_redefinition.
8764
78eac43e
MS
87652002-05-22 Michael Snyder <msnyder@redhat.com>
8766
8767 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8768 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8769 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8770 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8771 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8772 Add a temp variable to save a call (and a memory read).
8773 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8774 if possible (so that PC_IN_CALL_DUMMY will work).
8775
9bc1edb8
CV
87762002-05-22 Corinna Vinschen <vinschen@redhat.com>
8777
8778 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8779
005ef3d2
ML
87802002-05-22 Michal Ludvig <mludvig@suse.cz>
8781
8782 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8783 fde->cie_ptr.
8784 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8785 (dwarf2_build_frame_info): Add offset to fde->initial_location
8786 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8787 (execute_stack_op): Change type of 'result' from ULONGEST to
8788 CORE_ADDR.
005ef3d2 8789
fcf4f891
JT
87902002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8791
8792 * config/alpha/tm-nbsd.h: Include solib.h.
8793
cfef91e4
JT
87942002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8795
8796 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8797 assumptions about the host's byte order.
8798
9964235a
JT
87992002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8800
8801 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8802 to dependency list.
8803 * alphanbsd-tdep.c: Include solib-svr4.h.
8804 * shnbsd-tdep.c: Ditto.
8805
9eeef8ef
JT
88062002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8807
8808 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8809 nbsd-tdep.h to dependency list.
8810 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8811 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8812 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8813 nbsdaout.mh and nbsdelf.mh consistently.
8814 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8815 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8816 nbsdaout.mt and nbsdelf.mh consistently.
8817 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8818 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8819 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8820 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8821 a.out shared library stuff from here...
8822 * config/nm-nbsdaout.h: ...to here.
8823 * config/tm-nbsd.h: Remove.
8824 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8825 * config/arm/nbsd.mh: Remove.
8826 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8827 nbsd-tdep.o.
8828 * config/arm/nbsdaout.mh: New file.
8829 * config/arm/nbsdelf.mh: New file.
8830 * config/arm/nm-nbsdaout.h: New file.
8831 * config/i386/nbsd.mh: Remove.
8832 * config/i386/nbsd.mt: Remove.
8833 * config/i386/nbsdaout.mh: New file.
8834 * config/i386/nbsdaout.mt: New file.
8835 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8836 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8837 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8838 i386_register_u_addr): Remove.
8839 * config/i386/nm-nbsdaout.h: New file.
8840 * config/i386/nm-nbsdelf.h: Remove.
8841 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8842 (USE_STRUCT_CONVENTION): Remove.
8843 * config/i386/tm-nbsdaout.h: New file.
8844 * config/i386/tm-nbsdelf.h: Remove.
8845 * config/m68k/nbsd.mh: Remove.
8846 * config/m68k/nbsd.mt: Remove.
8847 * config/m68k/nbsdaout.mh: New file.
8848 * config/m68k/nbsdaout.mt: New file.
8849 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8850 * config/m68k/nm-nbsdaout.h: New file.
8851 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8852 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8853 * config/ns32k/nbsd.mh: Remove.
8854 * config/ns32k/nbsd.mt: Remove.
8855 * config/ns32k/nbsdaout.mh: New file.
8856 * config/ns32k/nbsdaout.mt: New file.
8857 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8858 * config/ns32k/nm-nbsdaout.h: New file.
8859 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8860 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8861 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8862 (SVR4_SHARED_LIBS): Remove.
8863 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8864 * config/sparc/nbsd.mh: Remove.
8865 * config/sparc/nbsd.mt: Remove.
8866 * config/sparc/nbsdaout.mh: New file.
8867 * config/sparc/nbsdaout.mt: New file.
8868 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8869 * config/sparc/nbsdelf.mt: New file.
8870 * config/sparc/nm-nbsdaout.h: New file.
8871 * config/sparc/nm-nbsdelf.h: Remove.
8872 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8873 * config/sparc/tm-nbsdaout.h: New file.
8874
257ce470
JT
88752002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8876
8877 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8878 mipsnbsd-tdep.c
8879 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8880
76a6d5fe
JT
88812002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8882
8883 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8884 shnbsd-nat.c.
8885 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8886
45888261
JT
88872002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8888
8889 * NEWS: Note new MIPS NetBSD native configuration.
8890 * configure.host (mips*-*-netbsd*): New host.
8891 * configure.tgt (mips*-*-netbsd*): New target.
8892 * mipsnbsd-nat.c: New file.
8893 * mipsnbsd-tdep.c: New file.
8894 * mipsnbsd-tdep.h: New file.
8895 * config/mips/nbsd.mh: New file.
8896 * config/mips/nbsd.mt: New file.
8897 * config/mips/nm-nbsd.h: New file.
8898 * config/mips/tm-nbsd.h: New file.
8899
70f80edf
JT
89002002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8901
8902 * Makefile.in (SFILES): Add osabi.c.
8903 (COMMON_OBS): Add osabi.o.
8904 (osabi.o): New dependency list.
8905 * osabi.c: New file.
8906 * osabi.h: New file.
8907 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8908
8909 * Makefile.in (alpha_tdep_h): Define and use instead of
8910 alpha-tdep.h.
8911 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8912 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8913 Remove.
8914 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8915 * alpha-tdep.h: Include osabi.h.
8916 (alpha_abi): Remove.
8917 (gdbarch_tdep): Use generic OS ABI framework.
8918 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8919 gdbarch_register_osabi.
8920 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8921 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8922 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8923
8924 * Makefile.in (sh_tdep_h): Add osabi.h.
8925 * sh-tdep.h (sh_osabi): Remove.
8926 (gdbarch_tdep): Use generic OS ABI framework.
8927 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8928 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8929 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8930 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8931
8932 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8933 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8934 gdbarch_register_osabi.
8935 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8936 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8937 (get_elfosabi): Rename to...
8938 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8939 ABI framework support routines.
8940 (arm_gdbarch_init): Use generic OS ABI framework.
8941 (arm_dump_tdep): Likewise.
8942 (_initialize_arm_tdep): Likewise.
8943 * arm-tdep.h: Include osabi.h.
8944 (arm_abi): Remove.
8945 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8946 osabi member.
8947 (arm_gdbarch_register_os_abi): Remove prototype.
8948 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8949 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8950
8951 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8952 * mips-tdep.c: Include osabi.h.
8953 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8954 OS ABI framework.
8955
d194345b
KH
89562002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8957
8958 * h8300-tdep.c: Fix formatting.
8959
70c6b0d1
EZ
89602002-05-20 Elena Zannoni <ezannoni@redhat.com>
8961
8962 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8963 printing vector registers.
8964
165b8e33
AC
89652002-05-19 Andrew Cagney <ac131313@redhat.com>
8966
8967 From Fernando Nasser:
8968 * remote.c (remote_async_open_1): Re-throw the exception when the
8969 connection fails.
8970 (remote_cisco_open): Ditto.
8971 (remote_open_1): Ditto.
8972
36918e70
AC
89732002-05-19 Andrew Cagney <ac131313@redhat.com>
8974
8975 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8976 (remote_start_remote): Add uiout parameter. Pass through to
8977 remote_start_remote_dummy.
8978 (remote_open_1): Use catch_exception instead of catch_errors.
8979 (remote_async_open_1): Ditto.
8980 (remote_cisco_open): Ditto.
8981
ae44c0c4
AC
89822002-05-19 Andrew Cagney <ac131313@redhat.com>
8983
8984 * remote.c (remote_start_remote): Replace PTR with void pointer.
8985 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8986 static.
8987
8efe637d
AC
89882002-05-18 Andrew Cagney <ac131313@redhat.com>
8989
8990 * gdb_indent.sh: Allow the script to be run in the sim directory.
8991
2f1b5984
MK
89922002-05-18 Mark Kettenis <kettenis@gnu.org>
8993
f0f625e2
MK
8994 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8995 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8996
2f1b5984
MK
8997 * corelow.c (core_open): Only call set_gdbarch_from_file if
8998 exec_bfd is NULL.
8999
fc974602
AV
90002002-05-17 Andrey Volkov <avolkov@transas.com>
9001
9002 * h8300-tdep.c: Add support of EXR register
9003 * config/h8300/tm-h8300.h: Ditto.
9004
906709f4
AV
90052002-05-17 Andrey Volkov <avolkov@transas.com>
9006
9007 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9008
6e591d68
AV
90092002-05-17 Andrey Volkov <avolkov@transas.com>
9010
9011 * h8300-tdep.c: Change literal regnums to REGNO.
9012
84f0252a
JB
90132002-05-17 Jim Blandy <jimb@redhat.com>
9014
e0e9281e
JB
9015 * NEWS: Note addition of macro support.
9016
84f0252a
JB
9017 Expand preprocessor macros in C expressions.
9018 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9019 (scan_macro_expansion, scanning_macro_expansion,
9020 finished_macro_expansion): New function declarations.
9021 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9022 variable declarations.
9023 * parser-defs.h (expression_context_pc): New declaration.
9024 * parse.c (expression_context_pc): New variable.
9025 (parse_exp_1): Set expression_context_pc, as well as
9026 expression_context_block.
9027 * c-exp.y (yylex): If we're not already reading the result of a
9028 macro expansion, try to macro-expand the next token. When we're
9029 done scanning a macro expansion, switch back to the mainline text.
9030 Commas and `if's in a macro's expansion don't terminate the input.
9031 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9032 (macro_original_text, macro_expanded_text,
9033 expression_macro_lookup_func, expression_macro_lookup_baton): New
9034 variables.
9035 (scan_macro_expansion, scanning_macro_expansion,
9036 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9037 c_preprocess_and_parse): New functions.
9038 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9039 c_preprocess_and_parse, instead of c_parse.
9040 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9041 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9042
1c509ca8
JR
9043Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9044
9045 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9046 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9047 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9048
2250ee0c
CV
90492002-05-17 Corinna Vinschen <vinschen@redhat.com>
9050
9051 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9052
ab3b8126
JT
90532002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9054
9055 * Makefile.in (sh_tdep_h): Define and use.
9056 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9057 register enum): Move to...
9058 * * sh-tdep.h: ...here.
9059 * sh-tdep.c: Include sh-tdep.h.
9060 * sh3-rom.c: Likewise.
9061 * shnbsd-tdep.c: Likewise.
9062
ed9d4749
MS
90632002-05-16 Michael Snyder <msnyder@redhat.com>
9064
9065 * arm-tdep.c: Spelling fix in comment.
9066
2e276125
JB
90672002-05-16 Jim Blandy <jimb@redhat.com>
9068
6821892e
JB
9069 Add commands for manually expanding macros and showing their
9070 definitions.
9071 * macrocmd.c, macroscope.c, macroscope.h: New files.
9072 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9073 (macroscope_h): New variable.
9074 (HFILES_NO_SRCDIR): Add macroscope.h.
9075 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9076 (macroscope.o, macrocmd.o): New rules.
9077
2e276125
JB
9078 Teach the Dwarf 2 reader to read macro information.
9079 * dwarf2read.c: #include "macrotab.h".
9080 (dwarf_macinfo_buffer): New variable.
9081 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9082 dwarf_macinfo_size.
9083 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9084 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9085 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9086 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9087 dwarf2_macro_spaces_in_definition): New complaints.
9088 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9089 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9090 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9091 the partial symbol table.
9092 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9093 from what's recorded in the partial symbol table.
9094 (read_file_scope): If the compilation unit has a
9095 `DW_AT_macro_info' attribute, read its macro information.
9096 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9097
2f53fe6c
DJ
90982002-05-16 Daniel Jacobowitz <drow@mvista.com>
9099
9100 Fix PR gdb/546
9101 * ser-tcp.c: Don't include <netinet/udp.h>.
9102
2be99286
SC
91032002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9104
9105 * MAINTAINERS: Update my email address.
9106
c9af212b 91072002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9108
9109 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9110 include file of the same name.
9111
bf5f1a52
CV
91122002-05-16 Corinna Vinschen <vinschen@redhat.com>
9113
9114 * configure.tgt: Mark v850 as multi-arched.
9115 * config/v850/tm-v850.h: Remove file.
9116 * config/v850/v850.mt: Eliminate TM_FILE.
9117
435e042a
CV
91182002-05-16 Corinna Vinschen <vinschen@redhat.com>
9119
9120 * v850-tdep.c: Full multi-arch.
9121 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9122 Define GDB_MULTI_ARCH to 2.
9123
9819c6c8
PM
91242002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9125
9126 * p-exp.y (current_type): New static variable.
9127 Carries the type of the expression at the position that is parsed.
9128 (push_current_type, pop_current_type): Two new functions. Used
9129 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9130 (search_field): New static variable. Set to one after parsing a point
9131 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9132 (FIELDNAME): New token. After a point only a token belonging to
9133 current_type type definition is allowed.
9134 (all over token rules): reset and change current_type according
9135 to rules.
9136 (exp '[' rule): insert implicit array index field if
9137 exp is a pascal string type.
9138
3a06899a
CV
91392002-05-16 Corinna Vinschen <vinschen@redhat.com>
9140
9141 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9142 frame info. Use frame_info's saved_regs instead of matching member
9143 in extra_frame_info throughout.
9144 (v850_frame_init_saved_regs): New function.
9145 (v850_init_extra_frame_info): Move most functionality into
9146 v850_frame_init_saved_regs().
9147 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9148 (v850_frame_find_saved_regs): Remove declaration.
9149 (FRAME_FIND_SAVED_REGS): Remove definition.
9150 (v850_frame_init_saved_regs): Add declaration.
9151 (FRAME_INIT_SAVED_REGS): Add definition.
9152
6ed14b0e
CV
91532002-05-16 Corinna Vinschen <vinschen@redhat.com>
9154
9155 * v850-tdep.c: Begin multi-arch'ing v850.
9156 (v850_target_architecture_hook): Remove function.
9157 (v850_gdbarch_init): New function. Add code previously in
9158 v850_target_architecture_hook().
9159 (_initialize_v850_tdep): Don't set target_architecture_hook.
9160 Call register_gdbarch_init() instead.
9161
42725910
DJ
91622002-05-16 Daniel Jacobowitz <drow@mvista.com>
9163
9164 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9165 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9166 (fixup_class_method_type): Likewise.
9167
99d9066e
JB
91682002-05-15 Jim Blandy <jimb@redhat.com>
9169
9170 Add macro structures to GDB's symbol tables. Nobody puts anything
9171 in them yet.
9172 * symtab.h (struct symtab): New member: `macro_table'.
9173 * buildsym.h (pending_macros): New global variable.
9174 * buildsym.c: #include "macrotab.h".
9175 (buildsym_init): Initialize `pending_macros'.
9176 (end_symtab): If we found macro information while reading a CU's
9177 debugging info, do build a symtab structure for it. Make the
9178 symtab point to the macro information, and clear the
9179 `pending_macros' pointer which held it while we were reading the
9180 debug info.
9181 (really_free_pendings): Free any pending macro table.
9182 * objfiles.h (struct objfile): New member: `macro_cache'.
9183 * objfiles.c (allocate_objfile): Set allocate and free functions
9184 for the macro cache's objstack.
9185 (free_objfile): Empty the macro cache's obstack.
9186 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9187 set new allocate and free functions for it.
9188 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9189 free functions for the macro cache's objstack. (Why is this
9190 function building its own objfile?)
9191 * symmisc.c (print_objfile_statistics): Print statistics on the
9192 macro bcache.
9193 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9194
c899585b
RE
91952002-05-15 Richard Earnshaw <rearnsha@arm.com>
9196
9197 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9198 (REGISTER_U_ADDR): Delete definition.
9199 (arm_register_u_addr): Delete declaration.
9200
a6cdd8c5
RE
92012002-05-15 Richard Earnshaw <rearnsha@arm.com>
9202
9203 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9204 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9205
c97dcfc7
AC
92062002-05-14 Andrew Cagney <ac131313@redhat.com>
9207
9208 * regcache.c (register_valid): Revise comments refering to "Not
9209 available" and "unavailable".
9210 * frame.c (frame_register_read): Ditto.
9211 * findvar.c (value_of_register): Ditto.
9212
93021b7d
AC
92132002-05-15 Andrew Cagney <cagney@redhat.com>
9214
9215 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9216 (remote-sim.o): Update dependencies.
9217 (d10v-tdep.o): Specify dependencies.
9218 (sim_d10v_h): Define.
9219
a86bc61c
JB
92202002-05-14 Jim Blandy <jimb@redhat.com>
9221
9222 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9223 * macrotab.c (macro_lookup_inclusion, find_definition,
9224 new_macro_table): Same.
9225
9226 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9227 not `! strcmp ()'. This is a dubious improvement.
9228 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9229
9230 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9231 although it's not necessary, to avoid a warning.
9232
2fdde8f8
DJ
92332002-05-14 Daniel Jacobowitz <drow@mvista.com>
9234
9235 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9236 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9237 TYPE_INSTANCE_FLAGS.
9238 (struct main_type): New.
9239 (struct type): Move most members to struct main_type. Change
9240 cv_type and as_type to new type_chain member. Add instance_flags.
9241 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9242 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9243 (finish_cv_type): Remove prototype.
9244 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9245 Set TYPE_CHAIN.
9246 (alloc_type_instance): New function.
9247 (smash_type): New function.
9248 (make_pointer_type, make_reference_type, make_function_type)
9249 (smash_to_member_type, smash_to_method_type): Call smash_type.
9250 (make_qualified_type): New function.
9251 (make_type_with_address_space): Call make_qualified_type.
9252 (make_cv_type): Likewise.
9253 (finish_cv_type): Remove unnecessary function.
9254 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9255 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9256 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9257 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9258 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9259 * hpread.c (hpread_read_struct_type): Likewise.
9260 * stabsread.c (read_struct_type): Likewise.
9261
843fedf4
EZ
92622002-05-14 Elena Zannoni <ezannoni@redhat.com>
9263
9264 * configure.tgt: Add a catch all sh* target, for cases like
9265 sh[2,3,4]-elf and sh-hms.
9266
05a6c72c
KS
92672002-05-14 Keith Seitz <keiths@redhat.com>
9268
9269 * event-loop.c (create_file_handler): Don't do anything but
9270 update data when we are given a fd which we are already
9271 monitoring.
9272
5d085aaf
ML
92732002-05-14 Michal Ludvig <mludvig@suse.cz>
9274
9275 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9276 (update_context): Use __func__ in warnings.
9277
9db8d71f
DJ
92782002-05-14 Daniel Jacobowitz <drow@mvista.com>
9279
9280 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9281 and tcp_close to net_open and net_close.
9282 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9283 using UDP if requested. Don't try to disable Nagle on UDP
9284 sockets.
9285 * remote.c (remote_serial_open): New function. Warn about UDP.
9286 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9287
5dbc6baa
EZ
92882002-05-13 Elena Zannoni <ezannoni@redhat.com>
9289
9290 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9291
cc3023f7
EZ
92922002-05-13 Elena Zannoni <ezannoni@redhat.com>
9293
9294 * configure.tgt: Remove sh-hms target.
9295 * MAINTAINERS: Don't list sh-hms as a separate target.
9296
ec2bcbe7
JB
92972002-05-13 Jim Blandy <jimb@redhat.com>
9298
9299 Add first preprocessor macro-expansion files.
9300 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9301 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9302 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9303 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9304 (COMMON_OBS): Add macrotab.o, macroexp.o.
9305 (macroexp.o, macrotab.o): New rules.
9306
6d531722
AC
93072002-05-13 Andrew Cagney <ac131313@redhat.com>
9308
9309 * config/m88k/tm-m88k.h: Update copyright.
9310 (m88k_target_write_pc): Declare
9311 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9312 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9313 (SHIFT_INST_REGS): Update definition.
9314 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9315 using old definition of TARGET_WRITE_PC.
9316 * regcache.c (generic_target_write_pc): Delete code handling
9317 NNPC_REGNUM.
9318 * gdbarch.sh (NNPC_REGNUM): Delete.
9319 * gdbarch.h, gdbarch.c: Regenerate.
9320
3e3f2739
RE
93212002-05-13 Richard Earnshaw <rearnsha@arm.com>
9322
9323 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9324 builtin reg number.
9325
0004e5a2
DJ
93262002-05-13 Daniel Jacobowitz <drow@mvista.com>
9327
9328 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9329 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9330 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9331 access macros.
9332 * c-typeprint.c (cp_type_print_method_args): Likewise.
9333 (c_type_print_args): Likewise.
9334 * d10v-tdep.c (d10v_push_arguments): Likewise.
9335 (d10v_extract_return_value): Likewise.
9336 * expprint.c (print_subexp): Likewise.
9337 * gdbtypes.c (lookup_primitive_typename): Likewise.
9338 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9339 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9340 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9341 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9342 (TYPE_VECTOR): Likewise.
9343 * hpread.c (hpread_read_struct_type)
9344 (fix_static_member_physnames, fixup_class_method_type)
9345 (hpread_type_lookup): Likewise.
9346 * mdebugread.c (parse_symbol, parse_type): Likewise.
9347 * p-lang.c (is_pascal_string_type): Likewise.
9348 * valops.c (hand_function_call): Likewise.
9349 * x86-64-tdep.c (classify_argument): Likewise.
9350
9351 * hpread.c (hpread_read_function_type)
9352 (hpread_read_doc_function_type): Call replace_type.
9353 * dstread.c (create_new_type): Delete.
9354 (decode_dst_structure, process_dst_function): Call alloc_type.
9355 Use type access macros.
9356
dff95cc7
MK
93572002-05-12 Mark Kettenis <kettenis@gnu.org>
9358
9359 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9360 the're not supported by the current architecture.
9361 (i387_fill_fxsave): Likewise.
9362
bbcd32ad
FF
93632002-05-12 Fred Fish <fnf@redhat.com>
9364
9365 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9366 sect_index_xxx members to index the first slot in section_offsets
9367 if all of the section_offsets are zero.
9368
89cf4787
MK
93692002-05-12 Mark Kettenis <kettenis@gnu.org>
9370
9371 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9372 checked in with last change.
9373
1f77ffc5
MK
93742002-05-12 Mark Kettenis <kettenis@gnu.org>
9375
9376 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9377 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9378 config.sub.
9379
89b8b4a9
DJ
93802002-05-12 Daniel Jacobowitz <drow@mvista.com>
9381
9382 * Makefile.in: Update dependencies.
9383
14a5e767
AC
93842002-05-11 Andrew Cagney <ac131313@redhat.com>
9385
9386 * language.c (local_hex_string_custom): Simplify. Do not depend
9387 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9388
9389 * memattr.c (mem_info_command): Replace calls to
9390 longest_local_hex_string and longest_local_hex_string_custom.
9391 * buildsym.c (make_blockvector): Ditto.
9392 * solib.c (info_sharedlibrary_command): Ditto.
9393 * tracepoint.c (tracepoints_info): Ditto.
9394 * symtab.c (print_msymbol_info): Ditto.
9395
9396 * language.c (local_hex_string): Delete.
9397 (local_hex_string_custom): Delete.
9398 (longest_local_hex_string): Rename to local_hex_string.
9399 (longest_local_hex_string_custom): Rename to
9400 local_hex_string_custom.
9401 * language.h (local_hex_string): Change parameter type to LONGEST.
9402 (local_hex_string_custom): Ditto.
9403 (longest_local_hex_string): Delete declaration.
9404 (longest_local_hex_string_custom): Ditto.
9405
9406 * solib.c: Update copyright.
9407 * memattr.c: Update copyright.
9408
13d01224
AC
94092002-05-11 Andrew Cagney <ac131313@redhat.com>
9410
9411 * arch-utils.h (legacy_register_to_value): Declare.
9412 (legacy_value_to_register): Declare.
9413 (legacy_convert_register_p): Declare.
9414 * arch-utils.c (legacy_register_to_value): New function.
9415 (legacy_value_to_register): New function.
9416 (legacy_convert_register_p): New function.
9417
9418 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9419 (VALUE_TO_REGISTER): Define.
9420 (CONVERT_REGISTER_P): Define.
9421 * gdbarch.h, gdbarch.c: Regenerate.
9422
9423 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9424 VALUE_TO_REGISTER.
9425 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9426 CONVERT_REGISTER_P.
9427
4a1970e4
DJ
94282005-05-11 Daniel Jacobowitz <drow@mvista.com>
9429 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9430
9431 * Makefile.in: Update dependencies for valops.c.
9432 * valops.c: Include "gdb_assert.h".
9433 (typecmp): Skip THIS parameter to methods.
9434 (find_method_list): Remove static_memfuncp argument,
9435 update callers. Check for stub methods.
9436 (find_value_oload_method_list): Don't set *static_memfuncp.
9437 (find_overload_match): Don't check for stub methods. Assert
9438 that methods are not stubbed. Handle static methods.
9439 (value_find_oload_method_list): Remove static_memfuncp argument.
9440 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9441 to the argument list for static stub methods.
9442 * value.h (value_find_oload_method_list): Update prototype.
9443
b2e75d78
AC
94442002-05-11 Andrew Cagney <ac131313@redhat.com>
9445
9446 * arch-utils.h (generic_register_size): Declare.
9447 (generic_register_raw_size, generic_register_virtual_size): Delete
9448 declarations.
9449 * arch-utils.c (generic_register_raw_size): Delete.
9450 (generic_register_size): New function.
9451 (generic_register_virtual_size): Delete.
9452
9453 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9454 default generic_register_size.
9455 * gdbarch.h, gdbarch.c: Re-generate.
9456
9457 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9458 register_virtual_size.
9459 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9460 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9461
451fbdda
AC
94622002-05-11 Andrew Cagney <ac131313@redhat.com>
9463
9464 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9465 * gdbarch.h, gdbarch.c: Regenerate.
9466 * gnu-v3-abi.c: Update copyright.
9467 (vtable_address_point_offset): Update.
9468 (gnuv3_rtti_type): Update.
9469 (gnuv3_baseclass_offset): Update.
9470 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9471 (init_fetch_link_map_offsets): Update.
9472 * remote.c (get_remote_state): Update.
9473
6d2f5cea
DJ
94742002-05-11 Daniel Jacobowitz <drow@mvista.com>
9475
9476 * TODO: Remove value_headof/value_from_vtable_info comment.
9477 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9478 * values.c (value_headof, value_from_vtable_info): Delete.
9479 * value.h (value_from_vtable_info): Delete prototype.
9480
d2324da4
AC
94812002-05-11 Andrew Cagney <ac131313@redhat.com>
9482
9483 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9484 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9485 $(gdb_regex_h).
9486 (gdb_assert_h): Define.
9487 (gdb_wait_h): Define.
9488 (gdb_regex_h): Define.
9489
5c717440
DJ
94902002-05-11 Daniel Jacobowitz <drow@mvista.com>
9491
9492 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9493 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9494
6c7861b3
JT
94952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9496
9497 * nbsd-tdep.c: Fix comment.
9498
ea5bc2a6
JT
94992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9500
9501 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9502 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9503 (nbsd-tdep.o): New dependency list.
9504 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9505 nbsd-tdep.h.
9506 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9507 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9508 * nbsd-tdep.c: New file.
9509 * nbsd-tdep.h: New file.
9510 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9511 nbsd-tdep.h.
9512 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9513 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9514 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9515 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9516
b28da865
JT
95172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9518
9519 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9520 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9521 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9522 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9523 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9524 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9525
4b8ff1fa
JT
95262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9527
9528 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9529 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9530 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9531 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9532 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9533 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9534 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9535
dfe6eb1f
JT
95362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9537
9538 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9539 fetch_elfcore_registers to...
9540 * i386nbsd-tdep.c: ...here.
9541 (i386nbsd_use_struct_convention): Rename to...
9542 (i386nbsd_aout_use_struct_convention): ...this.
9543 (i386nbsd_supply_reg): New function.
9544 (i386nbsd_fill_reg): New function.
9545 (fetch_core_registers): Use i386nbsd_supply_reg.
9546 (fetch_elfcore_registers): Likewise.
9547 (_initialize_i386nbsd_tdep): New function.
9548 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9549 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9550 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9551 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9552 (i386nbsd_aout_use_struct_convention): ...this.
9553
20cb8cda
JT
95542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9555
9556 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9557 (store_inferior_registers): Use shnbsd_fill_reg.
9558 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9559 sh_nbsd_supply_register): Collapse into...
9560 (shnbsd_supply_reg): ...this.
9561 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9562 (shnbsd_fill_reg): ...this.
9563 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9564 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9565 (fetch_core_registers): Use shnbsd_supply_reg.
9566 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9567 (sh_nbsd_core_fns): Rename to...
9568 (shnbsd_core_fns): ...this.
9569 (sh_nbsd_elfcore_fns): Rename to...
9570 (shnbsd_elfcore_fns): ...this.
9571 (sh_nbsd_init_abi): Rename to...
9572 (shnbsd_init_abi): ...this.
9573 (_initialize_sh_nbsd_tdep): Rename to...
9574 (_initialize_shnbsd_tdep): ...this.
9575 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9576 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9577 sh_nbsd_fill_register): Remove prototypes.
9578 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9579
e750d25e
JT
95802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9581
9582 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9583 (i387-nat.o): Delete dependency list.
9584 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9585 (x86-64-linux-nat.o): Likewise.
9586 * i387-nat.c: Delete file, moving contents to...
9587 * i387-tdep.c: ...here.
9588 * i387-nat.h: Rename...
9589 * i387-tdep.h: ...to this.
9590 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9591 * i386-linux-nat.c: Likewise.
9592 * i386bsd-nat.c: Likewise.
9593 * i386gnu-nat.c: Likewise.
9594 * i386nbsd-nat.c: Likewise.
9595 * i386v4-nat.c: Likewise.
9596 * x86-64-linux-nat.c: Likewise.
9597 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9598 * config/i386/go32.mh (NATDEPFILES): Likewise.
9599 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9600 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9601 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9602 * config/i386/linux.mh (NATDEPFILES): Likewise.
9603 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9604 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9605 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9606 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9607
1aee598a
JT
96082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9609
9610 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9611 (alphanbsd-nat.o): Remove dependency list.
9612 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9613 * alphanbsd-nat.c: Delete. Contents moved to...
9614 * alphanbsd-tdep.c: ...here.
9615 (_initialize_alphanbsd_tdep): Register core functions.
9616 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9617
12bcb0fe
JT
96182002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9619
9620 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9621 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9622 (alphanbsd-nat.o): Likewise.
9623 (alphabsd-tdep.o): New dependency list.
9624 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9625 (fill_gregset): Use alphabsd_fill_reg.
9626 (supply_fpregset): Use alphabsd_supply_fpreg.
9627 (fill_fpregset): Use alphabsd_fill_fpreg.
9628 (fetch_inferior_registers): Use struct reg and struct fpreg
9629 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9630 and alphabsd_supply_fpreg.
9631 (store_inferior_registers): Use struct reg and struct fpreg
9632 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9633 and alphabsd_fill_fpreg.
9634 * alphabsd-tdep.c: New file.
9635 * alphabsd-tdep.h: New file.
9636 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9637 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9638 alphabsd_supply_fpreg.
9639 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9640 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9641
361d1df0
EC
96422002-05-11 Eric Christopher <echristo@redhat.com>
9643
9644 * mips-tdep.c (mips_double_register_type): Fix thinko.
9645 (mips_single_register_type): Ditto.
9646 * MAINTAINERS: Add self.
9647
92dd7cee
MK
96482002-05-11 Mark Kettenis <kettenis@gnu.org>
9649
9650 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9651 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9652 right thing on architectures with different endianness and/or
9653 integer sizes.
9654
e27da16d
JT
96552002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9656
9657 From Christian Limpach <chris@Pin.LU>
9658 * configure.in: Change sed expression which comments out
9659 NATDEPFILES to also comment out continuation lines.
9660 * configure: Regenerate.
9661
ddde02bd
EZ
96622002-05-10 Elena Zannoni <ezannoni@redhat.com>
9663
9664 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9665 big patch.
9666
1c922164
EZ
96672002-05-10 Elena Zannoni <ezannoni@redhat.com>
9668
9669 * sh-tdep.c: Include correct file.
9670
283150cd
EZ
96712002-05-10 Elena Zannoni <ezannoni@redhat.com>
9672
9673 New support for sh64-elf (sh5) target.
9674
9675 * configure.tgt: For sh64-elf target, default to sh-elf.
9676
9677 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9678 (struct gdbarch_tdep): Add new fields for new registers and ABI
9679 info.
361d1df0 9680
283150cd
EZ
9681 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9682 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9683 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9684 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9685 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9686 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9687 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9688 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9689 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9690 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9691 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9692 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9693 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9694 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9695 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9696 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9697 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9698 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9699 sign_extend, sh64_nofp_frame_init_saved_regs,
9700 sh64_init_extra_frame_info, sh64_get_saved_register,
9701 sh64_extract_struct_value_address, sh64_pop_frame,
9702 sh64_push_arguments, sh64_extract_return_value,
9703 sh64_store_return_value, sh64_show_media_regs,
9704 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9705 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9706 sh_sh64_register_virtual_type,
9707 sh_sh64_register_convert_to_virtual,
9708 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9709 sh64_register_read, sh64_pseudo_register_write,
9710 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9711 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9712 sh64_do_pseudo_register, sh_compact_do_registers_info,
9713 sh64_do_registers_info, sh_gdbarch_init): New functions.
9714
3117ed25
EZ
97152002-05-10 Elena Zannoni <ezannoni@redhat.com>
9716
9717 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9718
2654e6d4
DJ
97192002-05-10 Daniel Jacobowitz <drow@mvista.com>
9720
9721 * linespec.c (decode_line_1): Check for a double quote after
9722 a filename correctly.
9723
9ab3e532
JB
97242002-05-10 Jim Blandy <jimb@redhat.com>
9725
9726 Properly track the size of the current objfile's .debug_line section.
9727 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9728 (DWARF_LINE_SIZE): New macro.
9729 (dwarf2_build_psymtabs_hard): Record the line section's size in
9730 the partial symbol table.
9731 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9732 symbol table.
9733
126fa72d
PS
97342002-05-10 Petr Sorfa <petrs@caldera.com>
9735
9736 * ia64-tdep.c: Handle breakpoints on L instruction type
9737 in MLX instruction bundle by moving the breakpoint to
9738 the third slot (X instruction type) as L holds only data.
9739
1f077a3e
KB
97402002-05-10 Kevin Buettner <kevinb@redhat.com>
9741
9742 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9743 (process_one_symbol): Complain about discarding local symbols
9744 due to a misplaced N_LBRAC entry.
9745
8120c9d5 97462002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9747
9748 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9749 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9750 decrease the depth we are at, in the case of templates.
361d1df0 9751
67b2c998
DJ
97522002-05-09 Daniel Jacobowitz <drow@mvista.com>
9753
9754 * mips-tdep.c (mips_float_register_type): New function.
9755 (mips_double_register_type): New function.
9756 (mips_print_register): Use them.
9757 (do_fp_register_row): Likewise.
9758
fd326606
DJ
97592002-05-09 Daniel Jacobowitz <drow@mvista.com>
9760
6609d9af 9761 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9762 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9763 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9764
bef35864
MS
97652002-05-09 Michael Snyder <msnyder@redhat.com>
9766
9767 * remote-rdp.c (remote_rdp_can_run): Remove.
9768
c55a3f73
TT
97692002-05-09 Tom Tromey <tromey@redhat.com>
9770
9771 * jv-valprint.c (java_val_print): Handle `char' as a special case
9772 of TYPE_CODE_INT.
9773
b8d5e71d
MS
97742002-05-09 Michael Snyder <msnyder@redhat.com>
9775
9776 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9777 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9778 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9779 str r(0123),[sp,#nn].
361d1df0 9780 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9781 order-independent by placing it in a loop.
9782
e2cd42dd
MS
97832002-05-06 Michael Snyder <msnyder@redhat.com>
9784
9785 * stabsread.c (read_type): Add recognition for new attribute:
9786 "@V;" means that an array type is actually a vector.
9787 This is analogous to the vector flag that's been added to dwarf2.
9788
3ce1502b
MK
97892002-05-09 Mark Kettenis <kettenis@gnu.org>
9790
9791 * i386-tdep.h (i386_abi): New enum.
9792 (struct gdbarch_tdep): Replace os_ident member with abi.
9793 (i386_gdbarch_register_os_abi): New prototype.
9794 * i386-tdep.c (i386_abi_names): New array.
9795 (process_note_abi_tag_sections): Removed.
9796 (process_note_sections): New function.
9797 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9798 (struct i386_abi_handler): New struct.
9799 (i386_abi_handler_list): New variable.
9800 (i386_gdbarch_register_os_abi): New function.
9801 (i386_gdbarch_init): Adapt for the changes given above.
9802
084c156a
DJ
98032002-05-08 Daniel Jacobowitz <drow@mvista.com>
9804
9805 * gregset.h: Say "GNU/Linux".
9806
6599f021
EZ
98072002-05-08 Elena Zannoni <ezannoni@redhat.com>
9808
9809 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9810 (build_gdbtypes): Build builtin_type_v2_float.
9811 (_initialize_gdbtypes): Register new builtin type.
9812
40af4b0c
AC
98132002-05-08 Andrew Cagney <ac131313@redhat.com>
9814
9815 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9816 (clear_gdbarch_swap): New function.
9817 (initialize_non_multiarch): Call.
9818 (gdbarch_update_p): Before calling init(), swap out and clear the
9819 existing architecture.
9820 * gdbarch.c: Regenerate.
9821
4fe84f46
JT
98222002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9823
9824 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9825 alphanbsd-tdep.c.
9826
4015edd1
JT
98272002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9828
9829 * sh-nbsd-nat.c: Rename to...
9830 * shnbsd-nat.c: ...this.
9831 * sh-nbsd-tdep.c: Rename to...
9832 * shnbsd-tdep.c: ...this.
9833 * sh-nbsd-tdep.h: Rename to...
9834 * shnbsd-tdep.h: ...this.
9835 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9836 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9837
0e2bd219
RE
98382002-05-08 Richard Earnshaw <rearnsha@arm.com>
9839
9840 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9841 concatenation for command help messages.
9842
13a38d45
JT
98432002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9844
9845 * NEWS: Note new sh*-*-netbsdelf* configuration.
9846 * configure.host: Set gdb_host_cpu to sh for all sh*.
9847 (sh*-*-netbsdelf*): New host.
9848 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9849 (sh*-*-netbsdelf*): New target.
9850 * sh-nbsd-nat.c: New file.
9851 * sh-nbsd-tdep.c: New file.
9852 * sh-nbsd-tdep.h: New file.
9853 * config/sh/nbsd.mh: New file.
9854 * config/sh/nbsd.mt: New file.
9855 * config/sh/nm-nbsd.h: New file.
9856 * config/sh/tm-nbsd.h: New file.
9857
d658f924
JT
98582002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9859
9860 * sh-tdep.c (sh_osabi_names): Declare.
9861 (process_note_abi_tag_sections): New function.
9862 (get_elfosabi): Ditto.
9863 (sh_gdbarch_register_os_abi): Ditto.
9864 (sh_dump_tdep): Ditto.
9865 _initialize_sh_tdep): Use gdbarch_register to register
9866 sh_gdbarch_init and sh_dump_tdep.
9867 * config/sh/tm-sh.h (sh_osabi): Declare.
9868 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9869
848cfffb
AC
98702002-05-07 Andrew Cagney <ac131313@redhat.com>
9871
9872 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9873 (thumb_scan_prologue): Ditto.
9874 (arm_find_callers_reg): Ditto.
9875 (arm_frame_chain): Ditto.
9876 (arm_init_extra_frame_info): Ditto.
9877 (arm_frame_saved_pc): Ditto.
9878 (arm_pop_frame): Ditto.
9879 (arm_push_return_address): New function.
9880 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9881 call_dummy_location, call_dummy_breakpoint_offset_p,
9882 call_dummy_breakpoint_offset, call_dummy_p,
9883 call_dummy_stack_adjust_p, call_dummy_words,
9884 sizeof_call_dummy_words, call_dummy_start_offset,
9885 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9886 call_dummy_address, push_return_address and push_dummy_frame for
9887 generic dummy frames.
9888
e7d717c0
JT
98892002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9890
9891 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9892 size computation for alloca.
9893 (sh_fp_frame_init_saved_regs): Likewise.
9894
7bbcf283
RE
98952002-05-07 Richard Earnshaw <rearnsha@arm.com>
9896
9897 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9898 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9899 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9900 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9901 * remote-rdp.c (remote_rdp_fetch_register): Use
9902 ARM_MAX_REGISTER_RAW_SIZE.
9903 (remote_rdp_store_register): Likewise.
9904
4657573b
ML
99052002-05-07 Michal Ludvig <mludvig@suse.cz>
9906
361d1df0 9907 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9908 added default labels to switch {} statements.
9909 * x86-64-tdep.c: Ditto.
9910 * x86-64-linux-nat.c: Ditto.
9911
010f3b2f
JT
99122002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9913
9914 * solib.h: Protect against multiple inclusion.
9915
debd256d
JB
99162002-05-06 Jim Blandy <jimb@redhat.com>
9917
9ab3e532
JB
9918 Add first preprocessor macro-expansion files.
9919 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9920 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9921 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9922 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9923 (COMMON_OBS): Add macrotab.o, macroexp.o.
9924 (macroexp.o, macrotab.o): New rules.
9925
debd256d
JB
9926 Separate the job of reading the line number info statement program
9927 header (...expialidocious) out into its own function.
9928 * dwarf2read.c (struct line_head, struct filenames, struct
9929 directories): Replace with...
9930 (struct line_header): New structure, containing the full
9931 contents of the statement program header, including the
9932 include directory and file name tables.
9933 (read_file_scope): If we have line number info, instead of just
9934 calling dwarf_decode_lines to do all the work, call
9935 dwarf_decode_line_header first to get a `struct line_header'
9936 containing the data in the statement program header, and then
9937 pass that to dwarf_decode_lines, which will pick up where that
9938 left off. Be sure to clean up the `struct line_header' object.
9939 (dwarf_decode_line_header, free_line_header, add_include_dir,
9940 add_file_name): New functions.
9941 (dwarf_decode_lines): Move all the code to read the statement
9942 program header into dwarf_decode_line_header. Take the line
9943 header it built as the first argument, instead of the offset to
9944 the compilation unit's line number info. Use the new `struct
9945 line_header' type instead of the old structures. No need to do
9946 cleanups here now, since we don't allocate anything.
9947 (dwarf2_statement_list_fits_in_line_number_section,
9948 dwarf2_line_header_too_long): New complaints.
9949
ac3aafc7
EZ
99502002-05-06 Elena Zannoni <ezannoni@redhat.com>
9951
9952 * gdbtypes.c (init_vector_type): New function.
9953 (build_builtin_type_vec128): Simplify the representation of SIMD
9954 registers.
9955 (build_gdbtypes): Initialize new builtin vector types.
9956 (_initialize_gdbtypes): Register new vector types with gdbarch.
9957 (builtin_type_v4_float, builtin_type_v4_int32,
9958 builtin_type_v8_int16, builtin_type_v16_int8,
9959 builtin_type_v2_int32, builtin_type_v4_int16,
9960 builtin_type_v8_int8): New (renamed) SIMD types.
9961
13e49980
MK
99622002-05-06 Mark Kettenis <kettenis@gnu.org>
9963
9964 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9965 (i387_fill_fxsave): Likewise.
9966
997b20b8
AO
99672002-05-05 Alexandre Oliva <aoliva@redhat.com>
9968
9969 * alpha-tdep.c (alpha_extract_return_value): Don't use
9970 non-constant array size in prototype.
9971
535c96ce
AC
99722002-05-04 Andrew Cagney <ac131313@redhat.com>
9973
9974 From Brian Taylor <briant at model dot com>:
9975 * ui-out.c (ui_out_field_core_addr): Use the function
9976 longest_local_hex_string_custom'to format addresses > 32 bits
9977 wide.
9978
9979 * ui-out.c (ui_out_field_core_addr): Update comment.
9980
bedfa57b
AC
99812002-05-04 Andrew Cagney <ac131313@redhat.com>
9982
9983 * stack.c (select_and_print_frame): Make static. Delete the
9984 parameter `level'.
9985 (func_command): Update call.
9986 (select_frame_command): Delete code computing the frame level.
9987 * frame.h (select_and_print_frame): Delete declaration.
9988
f621c63e
AC
99892002-05-04 Andrew Cagney <ac131313@redhat.com>
9990
9991 * sparc-tdep.c (sparc_get_saved_register): Comment why
9992 get_prev_frame call is safe.
9993
0f7d239c
AC
99942002-05-04 Andrew Cagney <ac131313@redhat.com>
9995
9996 * frame.h (select_frame): Delete level parameter.
9997 * stack.c (select_frame): Update. Use frame_relative_level to
9998 obtain the frame's level.
9999 (select_and_print_frame): Update call.
10000 (select_frame_command): Ditto.
10001 (up_silently_base): Ditto.
10002 (down_silently_base): Ditto.
10003 * ocd.c (ocd_start_remote): Ditto.
10004 * remote-rdp.c (remote_rdp_open): Ditto.
10005 * remote-mips.c (mips_initialize): Ditto.
10006 (common_open): Ditto.
10007 * remote-e7000.c (e7000_start_remote): Ditto.
10008 * m3-nat.c (select_thread): Ditto.
10009 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10010 (child_get_current_exception_event): Ditto.
10011 * varobj.c (varobj_create): Ditto.
10012 (varobj_update): Ditto.
10013 (c_value_of_root): Ditto.
10014 * tracepoint.c (finish_tfind_command): Ditto.
10015 * corelow.c (core_open): Ditto.
10016 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10017 * thread.c (info_threads_command): Ditto.
10018 (switch_to_thread): Ditto.
10019 * infrun.c (normal_stop): Ditto.
10020 (restore_selected_frame): Ditto.
10021 (restore_inferior_status): Ditto.
10022 * breakpoint.c (insert_breakpoints): Ditto.
10023 (watchpoint_check): Ditto.
10024 (bpstat_stop_status): Ditto.
10025 (do_enable_breakpoint): Ditto.
10026 * blockframe.c (flush_cached_frames): Ditto.
10027 (reinit_frame_cache): Ditto.
10028
71d6c7b1
AC
100292002-05-04 Andrew Cagney <ac131313@redhat.com>
10030
10031 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10032 maintainer.
10033
cda6c68a
JB
100342002-05-04 Jim Blandy <jimb@redhat.com>
10035
10036 * gdbtypes.c (replace_type): Doc fix.
10037
5c1c87f0
AC
100382002-05-04 Andrew Cagney <ac131313@redhat.com>
10039
10040 * valprint.c (strcat_longest): Delete commented out function.
10041 Update copyright.
10042
cd9bfe15
AC
100432002-05-04 Andrew Cagney <ac131313@redhat.com>
10044
10045 * MAINTAINERS: Mark a29k as deleted.
10046 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10047 Move new configurations to the top.
10048 * configure.tgt: Remove a29k.
10049 * config/a29k/tm-vx29k.h: Delete.
10050 * config/a29k/vx29k.mt: Delete.
10051 * config/a29k/tm-a29k.h: Delete.
10052 * config/a29k/a29k-udi.mt: Delete.
10053 * config/a29k/a29k.mt: Delete.
10054 * a29k-tdep.c: Delete.
10055 * remote-udi.c: Delete.
10056 * remote-mm.c: Delete.
10057 * remote-eb.c: Delete.
10058 * remote-adapt.c: Delete.
10059 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10060 * config/s390/s390x.mt: Ditto.
10061 * config/s390/s390.mt: Ditto.
10062 * config/sparc/sparclynx.mh: Ditto.
10063 * config/sparc/linux.mh: Ditto.
10064 * config/pa/hppaosf.mh: Ditto.
10065 * config/pa/hppabsd.mh: Ditto.
10066 * config/ns32k/nbsd.mt: Ditto.
10067 * config/mips/vr5000.mt: Ditto.
10068 * config/m68k/sun3os4.mh: Ditto.
10069 * config/m68k/nbsd.mt: Ditto.
10070 * config/m68k/m68klynx.mh: Ditto.
10071 * config/m32r/m32r.mt: Ditto.
10072 * config/i386/x86-64linux.mt: Ditto.
10073 * config/i386/nbsdelf.mt: Ditto.
10074 * config/i386/nbsd.mt: Ditto.
10075 * config/i386/i386lynx.mh: Ditto.
10076
bf0c5130
AC
100772002-05-04 Andrew Cagney <ac131313@redhat.com>
10078
10079 * target.c (debug_print_register): New function. Handle oversize
10080 registers.
10081 (debug_to_fetch_registers): Call.
10082 (debug_to_store_registers): Call.
10083
2ae1c2d2
JB
100842002-05-03 Jim Blandy <jimb@redhat.com>
10085
13a393b0
JB
10086 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10087 (read_type): Doc fix.
10088 * gdbtypes.c (replace_type): Doc fix.
10089
2ae1c2d2
JB
10090 * stabsread.c (multiply_defined_struct): New complaint.
10091 (read_struct_type): If the type we were passed isn't empty, or
10092 incomplete, don't read the new struct type into it; complain,
10093 and return the original type unchanged. Take a new `type_code'
10094 argument, which is the type code for the new type.
10095 (read_type): Rather than storing the type's type code here, pass
10096 it as an argument to read_struct_type, and let that take care of
10097 storing it. That way, we don't overwrite the original type code,
10098 so read_struct_type can use it to decide whether we're overwriting
10099 something we shouldn't.
10100 (complain_about_struct_wipeout): New function.
10101
8de9bdc4
AC
101022002-05-03 Andrew Cagney <ac131313@redhat.com>
10103
10104 * gdbarch.sh: Assert that gdbarch is non-NULL.
10105 * gdbarch.c: Regenerate.
10106
f773fdbb
JM
101072002-05-03 Jason Merrill <jason@redhat.com>
10108
10109 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10110 and return NULL.
10111
0e04a514
ML
101122002-05-03 Michal Ludvig <mludvig@suse.cz>
10113
10114 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10115 (x86_64_dwarf2gdb_regno_map_length),
10116 (x86_64_dwarf2_reg_to_regnum): Added.
10117 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10118 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10119 (_initialize_x86_64_tdep): Synced with the change above.
10120 (x86_64_skip_prologue): Reformulated message.
10121
065432a8
PM
101222002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10123
10124 * f-exp.y: Also use new prev_lexptr variable
10125 to improve error reporting. Based on Michael Snyder
10126 2002-04-24 dated patch to c-exp.y.
10127 * jv-exp.y: Likewise.
10128 * m2-exp.y: Likewise.
10129
a3162708
EZ
101302002-05-02 Elena Zannoni <ezannoni@redhat.com>
10131
10132 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10133 we are dealing with vectors.
10134
03620c38
PM
101352002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10136
10137 * config/m68k/tm-nbsd.h: Obvious fix,
10138 correct machine name.
10139
6604db2e
PM
101402002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10141
10142 * p-typeprint.c (pascal_type_print_base): Add support
10143 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10144
0906b739
PM
101452002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10146
10147 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10148 for fondamental pascal 'char' type.
10149
e2625b33
PM
101502002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10151
10152 * p-lang.h (is_pascal_string_type): Declaration changed,
10153 new sixth argument of type char ** added.
361d1df0 10154 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10155 changed. Args length_pos, length_size, string_pos, char_size
10156 can now be NULL. New argument arrayname set to the field
10157 name of the char array. Return value set to char array
10158 field index plus one.
361d1df0 10159 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10160 is_pascal_string_type function.
10161
cf17c188
AC
101622002-05-02 Andrew Cagney <cagney@redhat.com>
10163
10164 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10165 <cagney@redhat.com> change.
10166 * gdbarch.c: Regenerate.
10167
52bca491
AC
101682002-05-02 Andrew Cagney <cagney@redhat.com>
10169
10170 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10171 before probing for a new one. Detect errorenous gdbarch_init
10172 functions.
10173 * gdbarch.c: Regenerate.
10174
d5e72505
AC
101752002-05-01 Andrew Cagney <cagney@redhat.com>
10176
10177 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10178 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10179 * config/v850/tm-v850.h: Ditto. Update copyright.
10180
af566d9f
AC
101812002-04-30 Andrew Cagney <ac131313@redhat.com>
10182
10183 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10184 current_gdbarch.
10185
880d85fa
MS
101862002-04-30 Michael Snyder <msnyder@redhat.com>
10187
94c30b78
MS
10188 * arm-tdep.c: Whitespace clean-ups.
10189 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10190 should have been removed as part of 4/24 change.
10191
6f5987a6
KB
101922002-04-30 Kevin Buettner <kevinb@redhat.com>
10193
10194 * rs6000-tdep.c: Added comment describing how fpscr register
10195 numbers were chosen.
10196
1a113c93
MS
101972002-04-30 Michael Snyder <msnyder@redhat.com>
10198
10199 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10200
9a6f53fe
EZ
102012002-04-29 Elena Zannoni <ezannoni@redhat.com>
10202
10203 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10204 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10205 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10206
11ed25ac
KB
102072002-04-29 Kevin Buettner <kevinb@redhat.com>
10208
10209 From Louis Hamilton <hamilton@redhat.com>:
10210 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10211 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10212 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10213 not bfd-private xcoff data, to determine wordsize.
10214 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10215
ae232405
AC
102162002-04-29 Andrew Cagney <ac131313@redhat.com>
10217
10218 GDB 5.2 released from 5.2 branch.
10219
91fd20f7
ML
102202002-04-29 Michal Ludvig <mludvig@suse.cz>
10221
10222 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10223 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10224 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10225
2dc5091b
EZ
102262002-04-29 Elena Zannoni <ezannoni@redhat.com>
10227
10228 * rs6000-tdep.c (rs6000_extract_return_value,
10229 rs6000_store_return_value): Handle returning vectors.
10230 (rs6000_gdbarch_init): Use
10231 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10232 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10233 New function.
10234 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10235 vectors.
10236 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10237 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10238
2b9848d8
PM
102392002-04-24 Pierre Muller <ics.u-strasbg.fr>
10240
10241 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10242 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10243 with fprintf_unfiltered (gdb_stderr,...).
10244
f8d17dc5
PM
102452002-04-24 Pierre Muller <ics.u-strasbg.fr>
10246
10247 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10248 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10249 Replace fprintf (stderr,...
10250 with fprintf_unfiltered (gdb_stderr,....
10251 * remote-es.c: Likewise.
10252 * remote-os9k.c: Likewise.
10253 * remote-st.c: Likewise.
10254
2f2f1ad1
AS
102552002-04-28 Andreas Schwab <schwab@suse.de>
10256
10257 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10258 linux-proc.o and gcore.o.
10259
b6779aa2
AC
102602002-04-26 Michal Ludvig <mludvig@suse.cz>
10261
10262 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10263 code without frame pointers.
10264
7e57f5f4
AC
102652002-04-26 Andrew Cagney <ac131313@redhat.com>
10266
10267 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10268 ON_STACK is needed.
10269
2ceb85d0
BE
102702002-04-26 Ben Elliston <bje@redhat.com>
10271
10272 * target.c (do_xfer_memory): Correct reference to the new option
10273 "trust-readonly-sections".
10274
f5f8a009
EZ
102752002-04-26 Elena Zannoni <ezannoni@redhat.com>
10276
10277 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10278 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10279 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10280 vectors.
10281 (read_array_type): Record the fact that this array type is really a
10282 vector (i.e. are passed in by value).
10283
5868c862
JT
102842002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10285
10286 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10287 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10288 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10289 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10290 * alpha-linux-tdep.c: Include frame.h.
10291 (alpha_linux_sigcontext_addr): New function.
10292 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10293 alpha_linux_sigcontext_addr.
10294 * alpha-osf1-tdep.c: Include gdbcore.h.
10295 (alpha_osf1_sigcontext_addr): New function.
10296 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10297 alpha_osf1_sigcontext_addr.
10298 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10299 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10300
bfb01f37
AC
103012002-04-26 Andrew Cagney <ac131313@redhat.com>
10302
361d1df0 10303 * stack.c (selected_frame_level):
bfb01f37
AC
10304 (select_frame): Do not set selected_frame_level.
10305 * frame.h (selected_frame_level): Delete declaration.
10306
15813d3f
AC
103072002-04-26 Andrew Cagney <ac131313@redhat.com>
10308
10309 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10310 convert_from_func_ptr-addr when AIX / PowerOpen.
10311
6096c27a
AC
103122002-04-25 Andrew Cagney <ac131313@redhat.com>
10313
10314 * valops.c (hand_function_call): Call
10315 generic_save_call_dummy_addr.
10316 * frame.h (generic_save_call_dummy_addr): Declare.
10317 * blockframe.c (struct dummy_frame): Add fields call_lo and
10318 call_hi.
10319 (generic_find_dummy_frame): Check for PC in range call_lo to
10320 call_hi instead of entry_point_address.
10321 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10322 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10323 (generic_save_call_dummy_addr): New function.
10324
f510d44e
DM
103252002-04-24 David S. Miller <davem@redhat.com>
10326
10327 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10328 sparc_skip_prologue.
10329 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10330 information to find prologue when possible.
10331 (sparc_prologue_frameless_p): Call examine_prologue directly.
10332 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10333 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10334 second argument.
10335 (SKIP_PROLOGUE): Likewise.
10336
15d72a92
JT
103372002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10338
10339 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10340 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10341 indicate that the condition it was testing is always true.
10342 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10343 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10344 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10345
accc6d1f
JT
103462002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10347
10348 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10349 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10350 tdep->jb_pc and tdep->jb_elt_size.
10351 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10352 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10353 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10354 * alpha-nat.c (get_longjmp_target): Remove.
10355 (JB_ELEMENT_SIZE): Ditto.
10356 (JB_PC): Ditto.
10357 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10358 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10359 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10360 to alpha_get_longjmp_target.
10361 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10362 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10363 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10364
1bfdc549
AC
103652002-04-25 Andrew Cagney <ac131313@redhat.com>
10366
10367 * README: Update to GDB 5.2.
10368
1bd316f0
AC
103692002-04-25 Andrew Cagney <ac131313@redhat.com>
10370
10371 * gdbarch.sh (LC_ALL): Set to `c'.
10372
2e5ff58c
TR
103732002-04-25 Theodore A. Roth <troth@verinet.com>
10374
10375 * avr-tdep.c: Ran through gdb_indent.sh.
10376
e33ce519
TR
103772002-04-25 Theodore A. Roth <troth@verinet.com>
10378
10379 * MAINTAINERS: Add myself as AVR maintainer.
10380 * NEWS: Note new target avr.
10381
8818c391
TR
103822002-04-25 Theodore A. Roth <troth@verinet.com>
10383
10384 * Makefile.in: Add support for AVR target.
10385 * configure.tgt: Add support for AVR target.
10386 * avr-tdep.c: New file
10387 * config/avr/avr.mt: New file.
10388
79509c2d
TR
103892002-04-25 Theodore A. Roth <troth@verinet.com>
10390
10391 * MAINTAINERS: Add myself to write-after-approval.
10392
dac8068e
PM
103932002-04-24 Pierre Muller <ics.u-strasbg.fr>
10394
10395 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10396 with fprintf_unfiltered (gdb_stderr,....
10397
25bf3106
PM
103982002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10399
10400 Fix PR gdb/508.
10401 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10402
24467a86
PM
104032002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10404
10405 * p-exp.y: Also use new prev_lexptr variable
10406 to improve error reporting. Based on Michael Snyder
10407 2002-04-24 dated patch to c-exp.y.
10408
95b80706
JT
104092002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10410
10411 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10412 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10413 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10414 to 0.
10415 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10416 and struct value.
10417 (FUNCTION_START_OFFSET): Remove.
10418 (BREAKPOINT): Ditto.
10419
e90cc612
JT
104202002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10421
10422 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10423 * NEWS: Ditto.
10424
6c72f9f9
JT
104252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10426
10427 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10428 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10429 alpha_linux_pc_in_sigtramp.
10430 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10431 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10432 alpha_osf1_pc_in_sigtramp.
10433 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10434 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10435 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10436 alphafbsd_pc_in_sigtramp.
10437 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10438 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10439 alphanbsd_pc_in_sigtramp.
10440 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10441 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10442
5e4f3379
JT
104432002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10444
10445 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10446
da8ca43d
JT
104472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10448
10449 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10450 alphanbsd-tdep.c.
10451 (alphanbsd-nat.o): New dependency list.
10452 (alphanbsd-tdep.o): Ditto.
10453 * NEWS: Note new native NetBSD/alpha configuration.
10454 * alphanbsd-nat.c: New file.
10455 * alphanbsd-tdep.c: Ditto.
10456 * configure.host (alpha*-*-netbsd*): New host.
10457 * configure.tgt (alpha*-*-netbsd*): New target.
10458 * config/alpha/nbsd.mh: New file.
10459 * config/alpha/nbsd.mt: Ditto.
10460 * config/alpha/nm-nbsd.h: Ditto.
10461 * config/alpha/tm-nbsd.h: Ditto.
10462
36a6271d
JT
104632002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10464
10465 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10466 (alpha-osf1-tdep.o): New dependency list.
10467 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10468 and skip_sigtramp_frame members.
10469 * alpha-linux-tdep.c: Include gdbcore.h.
10470 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10471 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10472 * alpha-osf1-tdep.c: New file.
10473 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10474 alpha-osf1-dep.c.
10475 (alpha_frame_past_sigtramp_frame): New function.
10476 (alpha_dynamic_sigtramp_offset): Ditto.
10477 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10478 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10479 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10480 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10481 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10482 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10483 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10484 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10485 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10486 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10487 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10488 to find_solib_trampoline_target.
10489 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10490 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10491 (SKIP_TRAMPOLINE_CODE): Remove.
10492 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10493 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10494 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10495 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10496 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10497 (PROC_SIGTRAMP_MAGIC): Ditto.
10498 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10499 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10500 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10501 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10502 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10503
2f4bc57b
JT
105042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10505
10506 * NEWS: Note that Alpha targets are now multi-arch.
10507
665132f9
MS
105082002-04-24 Michael Snyder <msnyder@redhat.com>
10509
10510 * parser-defs.h (prev_lexptr): New external variable.
10511 * parse.c (parse_exp_1): Set prev_lexptr to null before
10512 calling the language-specific parser.
10513 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10514 (yyerror): Use prev_lexptr in error reporting.
10515
32872fa7
DJ
105162002-04-24 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10519 * gregset.h: If FILL_FPXREGSET is defined, provide
10520 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10521 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10522 is defined, call fill_fpxregset.
10523
57e76fac
MS
105242002-04-24 Roland McGrath <roland@frob.com>
10525
10526 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10527 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10528 (supply_gregset, supply_fpregset): New functions.
10529
10530 * gnu-nat.c (gnu_find_memory_regions): New function.
10531 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10532 (gnu_xfer_memory): Add a cast.
10533
f43845b3
MS
105342002-04-24 Michael Snyder <msnyder@redhat.com>
10535
361d1df0 10536 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10537 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10538 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10539 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10540 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10541 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10542
a0abec03
AC
10543Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10544
10545 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10546 NUM_PSEUDO_REGS can be used.
10547
d7bd68ca
AC
105482002-04-24 Andrew Cagney <ac131313@redhat.com>
10549
10550 * arch-utils.h: Update copyright.
10551
10552 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10553 * gdbarch.h, gdbarch.c: Re-generate.
10554
10555 * inferior.h (IN_SIGTRAMP): Delete definition.
10556 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10557 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10558
10559 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10560 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10561 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10562 (find_proc_framesize): Ditto.
10563 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10564 (alpha_init_extra_frame_info): Ditto.
10565 * infrun.c (handle_inferior_event): Ditto.
10566 (handle_inferior_event): Ditto.
10567 (check_sigtramp2): Ditto.
10568 * blockframe.c (create_new_frame): Ditto.
10569 (get_prev_frame): Ditto.
10570 * ppc-linux-tdep.c: Update comments.
10571 * i386-linux-tdep.c: Update comments.
10572 * breakpoint.c (bpstat_what): Update comment.
10573
4867e41e
DM
105742002-04-24 David S. Miller <davem@redhat.com>
10575
21d83aa5
DM
10576 * i960-tdep.c (register_in_window_p): New function.
10577 (i960_find_saved_register): Use it instead of
10578 REGISTER_IN_WINDOW_P.
10579 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10580
4867e41e
DM
10581 * symtab.h (find_stab_function_addr): Kill extern.
10582 * minsyms.c (find_stab_function_addr): Remove from here...
10583 * dbxread.c: ... to here, and mark it static.
10584
69cdf6a2
DM
105852002-04-20 David S. Miller <davem@redhat.com>
10586
10587 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10588 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10589
5a595886
DM
105902002-04-21 David S. Miller <davem@redhat.com>
10591
10592 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10593 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10594 (vx_write_register): Likewise.
10595
1da1a192
JB
105962002-04-23 J. Brobecker <brobecker@gnat.com>
10597
10598 * source.c (is_regular_file): New function.
10599 (openp): Check wether file to open is a regular file
10600 to avoid opening directories.
10601
baa6f10b
JT
106022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10603
10604 * findvar.c (extract_signed_integer): Cast printf argument
10605 to suppress format warning.
10606 (extract_unsigned_integer): Likewise.
10607 * infcmd.c (registers_info): Likewise.
10608 * top.c (get_prompt_1): Likewise.
10609 * valops.c (value_assign): Likewise.
10610 * valprint.c (print_decimal): Likewise.
10611
b2c4da81
L
106122002-04-22 H.J. Lu (hjl@gnu.org)
10613
10614 * c-exp.y (typebase): Support
361d1df0 10615
b2c4da81
L
10616 [long|long long|short] [signed|unsigned] [int|]
10617
10618 and
10619
10620 signed [long|long long|short] int
10621
f267bd6a
JT
106222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10623
10624 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10625 and vax-tdep.h.
10626 * vax-tdep.h: New file.
10627 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10628 Make several routines static.
10629 (vax_get_saved_register): New function.
10630 (vax_gdbarch_init): New function.
10631 (_initialize_vax_tdep): Register vax_gdbarch_init.
10632 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10633 Remove macros now under the control of gdbarch.
10634
da3c6d4a
MS
106352002-04-22 Michael Snyder <msnyder@redhat.com>
10636
11d3b27d
MS
10637 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10638 Some whitespace and coding standards tweaks.
da3c6d4a 10639
a33f7558
JT
106402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10641
10642 * vax-tdep.c: Include regcache.h.
10643 (vax_call_dummy_words): New.
10644 (sizeof_vax_call_dummy_words): New.
10645 (vax_fix_call_dummy): New function.
10646 (vax_saved_pc_after_call): Ditto.
10647 * config/vax/tm-vax.h: Don't include regcache.h.
10648 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10649 (CALL_DUMMY): Remove.
10650 (CALL_DUMMY_WORDS): Define.
10651 (SIZEOF_CALL_DUMMY_WORDS): Define.
10652 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10653
47a73475
MS
106542002-04-18 Michael Snyder <msnyder@redhat.com>
10655
10656 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10657
52efde73
JT
106582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10659
10660 * vax-tdep.c (vax_frame_chain): New function.
10661 (vax_push_dummy_frame): Ditto.
10662 (vax_pop_frame): Ditto.
10663 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10664 (FRAMELESS_FUNCTION_INVOCATION): Use
10665 generic_frameless_function_invocation_not.
10666 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10667 (POP_FRAME): Use vax_pop_frame.
10668
ea74468c
JT
106692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10670
10671 * vax-tdep.c (vax_store_struct_return): New function.
10672 (vax_extract_return_value): Ditto.
10673 (vax_store_return_value): Ditto.
10674 (vax_extract_struct_value_address): Ditto.
10675 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10676 vax_store_struct_return.
10677 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10678 (STORE_RETURN_VALUE): Use vax_store_return_value.
10679 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10680
5516aa92
JT
106812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10682
10683 * vax-tdep.c (vax_frame_saved_pc): New function.
10684 (vax_frame_args_address_correct): Ditto.
10685 (vax_frame_args_address): Ditto.
10686 (vax_frame_locals_address): Ditto.
10687 (vax_frame_num_args): Move code to be in proximity to
10688 other frame-related functions.
10689 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10690 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10691 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10692 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10693 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10694
36af0b35
L
106952002-04-22 H.J. Lu (hjl@gnu.org)
10696
10697 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10698 includedir.
10699
ab62c900
JT
107002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10701
10702 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10703 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10704 (FRAME_INIT_SAVED_REGS): New macro.
10705
7232b100
JT
107062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10707
10708 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10709
b70d2aee
JT
107102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10711
10712 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10713 where needed.
10714 (fetch_osf_core_registers): Likewise.
10715 (supply_gregset): Likewise.
10716
a0e8a2d1 107172002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10718
a0e8a2d1
JB
10719 * symfile.h (get_section_index): Define.
10720 * symfile.c (get_section_index): New function.
10721 * mdebugread.c (SC_IS_SBSS): New macro.
10722 (SC_IS_BSS): Return true for the scBss storage class only, as
10723 the scSBss storage class refers to the .sbss section.
10724 (parse_partial_symbols): Discard the symbols which associated
10725 section does not exist.
10726 Make sure to use the .sbss section index for symbols which
10727 storage class is scBss, rather than using the .bss section index.
10728
51eb8b08
JT
107292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10730
10731 * vax-tdep.c: Update copyright years.
10732 (vax_register_name): New function.
10733 (vax_register_byte): Ditto.
10734 (vax_register_raw_size): Ditto.
10735 (vax_register_virtual_size): Ditto.
10736 (vax_register_virtual_type): Ditto.
10737 * config/vax/tm-vax.h: Update copyright years.
10738 (REGISTER_NAMES): Remove.
10739 (REGISTER_NAME): Define.
10740 (REGISTER_BYTE): Use vax_register_byte.
10741 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10742 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10743 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10744
6cc1c0a8
AC
107452002-04-21 Andrew Cagney <ac131313@redhat.com>
10746
10747 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10748 declaration
10749 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10750
9319a2fe
DM
107512002-04-21 David S. Miller <davem@redhat.com>
10752
10753 * arch-utils.c (generic_prologue_frameless_p): Kill
10754 SKIP_PROLOGUE_FRAMELESS_P code.
10755 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10756 references.
10757 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10758 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10759 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10760 references.
10761 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10762 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10763 (sparc_gdbarch_init): Pass it to
10764 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10765
e9ed6d01
JT
107662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10767
10768 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10769 (alphabsd-nat.o): New dependency list.
10770
36012033
JT
107712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10772
10773 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10774 alphafbsd-tdep.c.
10775 (alpha-linux-tdep.o): New dependency list.
10776 (alphafbsd-tdep.o): Likewise.
10777
3379287a
JT
107782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10779
10780 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10781 to here...
10782 * alpha-tdep.c: ...from here.
10783 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10784
4bcbd6cb
JT
107852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10786
10787 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10788 prototype from here...
10789 * alpha-tdep.h: ...to here.
10790
b31da25e
AC
107912002-04-21 Andrew Cagney <ac131313@redhat.com>
10792
10793 * frame.h (selected_frame_level): Document as deprecated.
10794 (frame_relative_level): Declare.
10795 * stack.c (frame_relative_level): New function.
10796 (selected_frame_level): Document as deprecated.
10797 (select_frame): Do not set the selected_frame_level.
10798
10799 * stack.c (frame_info, record_selected_frame): Update.
10800 (frame_command, current_frame_command): Update.
10801 (up_silently_base, up_command, down_silently_base): Update.
10802 (down_command): Update.
10803 * inflow.c (kill_command): Update.
10804 * tracepoint.c (finish_tfind_command): Update.
10805 * corelow.c (core_open): Update.
10806 * thread.c (info_threads_command): Update.
10807 (do_captured_thread_select): Update.
10808 * infcmd.c (finish_command): Update.
10809 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10810
9c1d6fe5
JT
108112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10812
10813 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10814
ab89facf
AC
108152002-04-21 Andrew Cagney <ac131313@redhat.com>
10816
10817 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10818 type const.
10819
82a4efa1
JT
108202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10821
10822 * alphafbsd-tdep.c: Update copyright years. Include
10823 alpha-tdep.h.
10824 (alphafbsd_use_struct_convention): Make static.
10825 (alphafbsd_init_abi): New function.
10826 (_initialize_alphafbsd_tdep): New function.
10827 * config/alpha/tm-fbsd.h: Update copyright years.
10828 (USE_STRUCT_CONVENTION): Remove.
10829
44dffaac
JT
108302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10831
10832 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10833 an Alpha ABI variant.
10834 (alpha_abi_handler_list): Declare.
10835 (alpha_gdbarch_register_os_abi): New function.
10836 (alpha_gdbarch_init): Give registered ABI variant handlers a
10837 chance to tweak the gdbarch once we have set up defaults.
10838 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10839
65585be4
JT
108402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10841
10842 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10843 to standard_coerce_float_to_double.
10844 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10845
d9b023cc
JT
108462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10847
10848 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10849 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10850 from gdbarch_tdep rather than a constant.
10851 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10852 the default text address for all Alpha Unix ABIs.
10853 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10854 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10855
dc129d82
JT
108562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10857
10858 * alpha-tdep.h: New file. Includes several Alpha target constants
10859 taken from...
10860 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10861 let gdbarch deal with.
10862 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10863 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10864 to dependency list.
10865 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10866 Alpha target register names.
10867 * alphabsd-nat.c: Likewise.
10868 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10869 Alpha target register names. Make serveral routines static.
10870 (alpha_get_saved_register): New function.
10871 (alpha_abi_names): New.
10872 (process_note_abi_tag_sections): New function.
10873 (get_elfosabi): New function.
10874 (alpha_gdbarch_init): New function.
10875 (alpha_dump_tdep): New function.
10876 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10877
d49d1e0a
AC
108782002-04-21 Andrew Cagney <ac131313@redhat.com>
10879
10880 * frame.c (find_saved_register): Delete #ifdef
10881 HAVE_REGISTER_WINDOWS code.
10882 * config/sparc/tm-sparc.h: Update comments.
10883 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10884
92e8c9ed
AC
108852002-04-21 Andrew Cagney <ac131313@redhat.com>
10886
10887 * i960-tdep.c (i960_find_saved_register): New function.
10888 (i960_get_saved_register): New function.
10889 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10890 (i960_get_saved_register): Declare.
10891 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10892
e1925118
DM
108932002-04-20 David S. Miller <davem@redhat.com>
10894
10895 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10896
29673b29
AC
108972002-04-20 Andrew Cagney <ac131313@redhat.com>
10898
10899 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10900 instead of NUM_PSEUDO_REGS.
10901
6c86dcd5
DM
109022002-04-20 David S. Miller <davem@redhat.com>
10903
10904 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10905 GDB_MULTI_ARCH_PARTIAL
10906 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10907 define, let tm-sp64.h do it.
10908
aa40ec90
JT
109092002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10910
10911 * frame.c (find_saved_register): Avoid a NULL pointer
10912 dereference and actually walk the frame list.
10913
0f79675b
AC
109142002-04-20 Andrew Cagney <ac131313@redhat.com>
10915
10916 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10917 sorted in most most-recent-used order. Document.
10918 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10919
f91305dd 109202002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10921
10922 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10923 instead of ->prev.
10924 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10925 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10926 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10927 instead of ->prev.
10928
73d322b1
EZ
109292002-04-19 Elena Zannoni <ezannoni@redhat.com>
10930
10931 Fix PR gdb/471.
10932 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10933 (build_builtin_type_vec128): Ditto.
10934 (append_composite_type_field): Fix calculation of type length in
10935 union case.
10936
ccd9a834
EZ
109372002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10938
10939 * config/djgpp/README: Update.
10940
10941 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10942 compiler warnings.
10943
a57f9e49
JT
109442002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10945
10946 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10947 (alpha_setup_arbitrary_frame): ...to this.
10948 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10949 for alpha_setup_arbitrary_frame.
10950
f4f9705a
AC
109512002-04-18 Andrew Cagney <cagney@redhat.com>
10952
10953 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10954 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10955
f4f9705a
AC
10956 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10957 * target.h (memory_breakpoint_from_pc): Update declaration.
10958 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10959
10960 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10961 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10962 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10963 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10964 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10965 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10966 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10967 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10968 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10969 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10970 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10971 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10972
10973 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10974 const pointer.
10975 * monitor.c (monitor_insert_breakpoint): Ditto.
10976 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10977
10978 * config/mcore/tm-mcore.h: Update copyright.
10979 * mem-break.c: Ditto.
10980 * xstormy16-tdep.c: Ditto.
10981
29f319b8
PM
109822002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10983
10984 * p-exp.y: Add precedence rule for '^' token.
10985 This removes the shift/reduce conflicts.
10986 Remove the comment concerning these shift/reduce conflicts.
10987
ebeac11a
EZ
109882002-04-18 Elena Zannoni <ezannoni@redhat.com>
10989
10990 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10991 (registers_powerpc_nofp): New register set for processors
10992 without floating point unit.
10993
27c31547
DM
109942002-04-18 David S. Miller <davem@redhat.com>
10995
10996 * MAINTAINERS: Add myself to write-after-approval.
10997
47a73475
MS
109982002-04-17 Michael Snyder <msnyder@redhat.com>
10999
11000 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11001
953836b2
AC
110022002-04-17 Andrew Cagney <ac131313@redhat.com>
11003
11004 * rs6000-tdep.c (frame_initial_stack_address): Use
11005 frame_register_read to read the alloca_reg.
11006
8b0d4340
AC
110072002-04-17 Andrew Cagney <ac131313@redhat.com>
11008
11009 * frame.c (find_saved_register): Find saved registers in the next
11010 not prev frame.
11011 Fix PR gdb/365.
11012
d8864532
AC
110132002-04-17 Andrew Cagney <ac131313@redhat.com>
11014
11015 * gdbarch.sh (LANG): Set to ``c''.
11016
36cc83a3 110172002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11018
36cc83a3 11019 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11020
2f4150cc 110212002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11022
11023 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11024 Update copyright.
11025
628703c6 11026 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11027 Also fix PR gdb/391.
361d1df0 11028
56157b4a
AC
110292002-04-14 Andrew Cagney <ac131313@redhat.com>
11030
11031 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11032 * aclocal.m4, configure: Re-generate.
11033 Fix PR gdb/391.
361d1df0 11034
6d1e3329
EZ
110352002-04-14 Elena Zannoni <ezannoni@redhat.com>
11036
11037 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11038 instead of tm_print_insn.
11039
cb06fa07
EZ
110402002-04-14 Elena Zannoni <ezannoni@redhat.com>
11041
11042 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11043
f208ba17
AC
110442002-04-14 Andrew Cagney <ac131313@redhat.com>
11045
11046 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11047 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11048 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11049
20f01a46
DH
110502002-04-12 Don Howard <dhoward@redhat.com>
11051
11052 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11053 max_user_call_depth.
11054 (init_cmd_lists): Initialize the new value;
11055 * cli/cli-script.c (execute_user_command): Limit the call depth of
11056 user defined commands. This avoids a core-dump when user commands
11057 are infinitly recursive.
11058
a88376a3
KB
110592002-04-12 Kevin Buettner <kevinb@redhat.com>
11060
11061 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11062 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11063 from tdep struct instead of DEFAULT_LR_SAVE.
11064 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11065 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11066 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11067
f2172603
MS
110682002-04-12 Michael Snyder <msnyder@redhat.com>
11069
694f61fb 11070 * Remote.c: Spelling fix.
20fe79c8
MS
11071 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11072 If no symbol found for "sbrk", try "_sbrk".
11073 (make_output_phdrs): Use bfd_section_name.
11074 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11075 * eval.c: Indentation fix-ups.
169a7369
MS
11076 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11077 in case it gets applied to an address that is already
11078 in the instruction space.
de74f71f
MS
11079 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11080 * symfile.c: Fix indentation, long lines.
f2172603
MS
11081 * source.c: White space fix-up.
11082
cda5a58a
AC
110832002-04-12 Andrew Cagney <cagney@redhat.com>
11084
11085 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11086 * frame.c (frame_register_read): New function. Return non-zero on
11087 success.
11088 (read_relative_register_raw_bytes_for_frame): Delete.
11089 (read_relative_register_raw_bytes): Delete.
11090 * frame.h (frame_register_read): Declare.
11091 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11092 * sh-tdep.c: Ditto.
11093 * infcmd.c (do_registers_info): Ditto.
11094 * hppa-tdep.c: Ditto.
11095 * rs6000-tdep.c: Ditto.
11096 * h8500-tdep.c: Ditto.
11097 * mips-tdep.c: Ditto.
11098 * h8300-tdep.c: Ditto.
11099 * z8k-tdep.c: Ditto.
11100
2ea5f656
KB
111012002-04-12 Kevin Buettner <kevinb@redhat.com>
11102
11103 From Jimi X <jimix@watson.ibm.com>:
11104 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11105 64-bit SysV ABI.
11106
27b15785
KB
111072002-04-12 Kevin Buettner <kevinb@redhat.com>
11108
11109 From Jimi X <jimix@watson.ibm.com>:
11110 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11111 bfd info.
11112
5d57ee30
KB
111132002-04-12 Kevin Buettner <kevinb@redhat.com>
11114
11115 From Jimi X <jimix@watson.ibm.com>:
11116 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11117 register sets for these processor variants.
11118
bc1e36ca
DJ
111192002-04-11 Daniel Jacobowitz <drow@mvista.com>
11120
bc1e36ca
DJ
11121 * regformats/reg-ppc.dat: Support FPSCR.
11122
e3f36dbd
KB
111232002-04-11 Kevin Buettner <kevinb@redhat.com>
11124
11125 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11126 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11127 Add fpscr as an invalid/unfetchable register.
11128 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11129 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11130 (fill_fpregset): Add support for register fpscr.
11131 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11132 (fill_gregset): Account for the fact that register ``mq'' might
11133 not exist.
11134 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11135 (registers_power): Add fpscr to register set at slot 71.
11136 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11137 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11138
943c9c25
MS
111392002-04-11 Michael Snyder <msnyder@redhat.com>
11140
11141 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11142 * configure: Regenerate.
11143 * config.in: Regenerate.
11144 * acconfig.h: Add define for _SYSCALL32.
11145 * core-sol2.c: Remove #define _SYSCALL32.
11146 * solib-legacy.c: Remove #define _SYSCALL32.
11147
d8c0a2e7
AC
111482002-04-10 Andrew Cagney <ac131313@redhat.com>
11149
11150 * stack.c (select_frame): Cleanup internal error message, do not
11151 use %p.
11152
7cc19214
AC
111532002-04-10 Andrew Cagney <ac131313@redhat.com>
11154
11155 * stack.c (select_frame): Check that selected_frame and the
11156 specified level are as expected.
11157 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11158 Update copyright.
11159 * frame.h (struct frame_info): Add field `level'. Update
11160 copyright.
11161 Work-in-progress PR gdb/464.
11162
67a2b77e
AC
111632002-04-10 Andrew Cagney <ac131313@redhat.com>
11164
11165 * maint.c (maint_print_section_info): Rename print_section_info.
11166 (print_bfd_section_info, print_objfile_section_info): Update.
11167 * inferior.h (struct gdbarch): Add opaque declaration.
11168 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11169 * gdbarch.h: Regenerate.
11170
8cfda98c
ML
111712002-04-10 Michal Ludvig <mludvig@suse.cz>
11172
11173 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11174 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11175 (kernel_u_size): Added.
11176 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11177 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11178
ca439ad2 111792002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11180
ca439ad2
JI
11181 * valarith.c (find_size_for_pointer_math): New function, either returns
11182 the size for a pointer's target, returns 1 for void *, or errors for
11183 incomplete types.
11184 (value_add, value_sub): use find_size_for_pointer_math.
11185
2f2893d9
DJ
111862002-04-09 Daniel Jacobowitz <drow@mvista.com>
11187
11188 * linux-low.c (linux_look_up_symbols): New hook.
11189 (linux_target_ops): Add linux_look_up_symbols.
11190 * remote-utils.c (decode_address): New function.
11191 (look_up_one_symbol): New function.
11192 * server.c (handle_query): Call target look_up_symbols hook.
11193 * server.h (look_up_one_symbol): Add prototype.
11194 * target.h (struct target_ops): Add look_up_symbols hook.
11195
96cb11df
AC
111962002-04-09 Andrew Cagney <ac131313@redhat.com>
11197
11198 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11199 override FP_REGNUM with frame->fp. Update copyright.
11200 * parse.c (num_std_regs, std_regs): Delete.
11201 (target_map_name_to_register): Do not search std_regs. Update
11202 function description.
11203 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11204 declarations. Update copyright.
11205 Fix PR gdb/251.
361d1df0 11206
97658e92
DJ
112072002-04-09 Daniel Jacobowitz <drow@mvista.com>
11208
11209 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11210 after the last symbol in a block.
11211
6044e3eb
PM
112122002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11213
11214 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11215 is non zero as a found symbol.
11216
0406ec40
AC
112172002-04-08 Andrew Cagney <ac131313@redhat.com>
11218
11219 * findvar.c: Include "builtin-regs.h".
11220 (value_of_register): Call value_of_builtin_reg when applicable.
11221 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11222 (target_map_name_to_register): Call
11223 builtin_reg_map_name_to_regnum.
11224 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11225 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11226 (builtin_regs_h): Define.
11227 (builtin-regs.o): New target.
11228 (findvar.o): Add $(builtin_regs_h).
11229 * builtin-regs.c, builtin-regs.h: New files.
11230 * std-regs.c: New file.
11231 Partial fix for PR gdb/251.
11232
56a6dfb9
KB
112332002-04-08 Kevin Buettner <kevinb@redhat.com>
11234
11235 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11236 it's no longer required.
11237
3a808432
AC
112382002-04-08 Andrew Cagney <ac131313@redhat.com>
11239
11240 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11241
7c40d541
KB
112422002-04-08 Kevin Buettner <kevinb@redhat.com>
11243
11244 From Jimi X <jimix@watson.ibm.com>:
11245 * rs6000-tdep.c (rs6000_software_single_step): Use
11246 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11247 and size. Use target_insert_breakpoint() and
11248 target_remove_breakpoint() to insert and remove breakpoints
11249 instead of explicit memory reads and writes.
11250
cc9836a8
KB
112512002-04-08 Kevin Buettner <kevinb@redhat.com>
11252
11253 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11254 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11255 ELF_OBJECT_FORMAT ifdef.
11256
7495d1dc
KB
112572002-04-08 Kevin Buettner <kevinb@redhat.com>
11258
11259 From Jimi X <jimix@watson.ibm.com>:
11260 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11261
4288e836
KB
112622002-04-08 Kevin Buettner <kevinb@redhat.com>
11263
11264 From Jimi X <jimix@watson.ibm.com>:
11265 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11266 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11267
a4e4e501
MK
112682002-04-07 Mark Kettenis <kettenis@gnu.org>
11269
11270 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11271 s/asprintf/xasprintf/.
11272 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11273
006defba
AC
112742002-04-07 Andrew Cagney <ac131313@redhat.com>
11275
11276 I believe Jeff Law denies responsability for this one:
11277 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11278 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11279 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11280 Work-around for PR gdb/366.
11281
7aa83cac
EZ
112822002-04-07 Elena Zannoni <ezannoni@redhat.com>
11283
11284 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11285 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11286 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11287
cf1fcca1
EZ
112882002-04-07 Elena Zannoni <ezannoni@redhat.com>
11289
11290 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11291 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11292 information.
11293
3f289e6f
AC
112942002-04-07 Andrew Cagney <ac131313@redhat.com>
11295
11296 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11297 maintainer.
11298
129188f6
AC
112992002-04-07 Andrew Cagney <ac131313@redhat.com>
11300
11301 * README (Reporting Bugs in GDB): Document the bug web page as the
11302 prefered way of submitting bugs.
11303 Fix PR gdb/402.
11304
1200cd6e
AC
113052002-04-06 Andrew Cagney <ac131313@redhat.com>
11306
11307 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11308 -1. Update comment.
11309 * gdbarch.h, gdbarch.c: Re-generate.
11310
2853c33c
AS
113112002-04-07 Andreas Schwab <schwab@suse.de>
11312
11313 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11314 buffer to regcache_collect.
11315
c2169756
AC
113162002-04-06 Andrew Cagney <ac131313@redhat.com>
11317
11318 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11319 * gdbarch.c, gdbarch.h: Re-generate.
11320
25f1b008
AC
113212002-04-06 Andrew Cagney <ac131313@redhat.com>
11322
11323 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11324 declaration. Fix -Werror.
11325
59263426
DJ
113262002-04-05 Daniel Jacobowitz <drow@mvista.com>
11327
11328 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11329 * gdbarch.c: Regenerate.
11330
f5db4da3
MS
113312002-04-05 Michael Snyder <msnyder@redhat.com>
11332
80f8a6eb
MS
11333 * breakpoint.c (clear_command): Rewrite middle section to
11334 combine two loops with identical control conditions.
11335 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11336 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11337
ad3dcc5c
L
113382002-04-05 H.J. Lu (hjl@gnu.org)
11339
11340 * solib-svr4.c (bkpt_names): Add "__start".
11341
f32e7a74
AC
113422002-04-04 Andrew Cagney <ac131313@redhat.com>
11343
11344 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11345 as test for 64 bit target.
11346
8227c0ff
AC
113472002-04-05 Andrew Cagney <ac131313@redhat.com>
11348
11349 * h8500-tdep.c (h8500_write_fp): Delete function.
11350 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11351 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11352 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11354 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11355 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11356 (s390_write_fp):
11357 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11358 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11359 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11360 (d10v_write_fp): Delete function.
11361 * inferior.h (write_fp, generic_target_write_fp): Delete
11362 declarations.
11363 * regcache.c (generic_target_write_fp): Delete function.
11364 (write_fp): Delete function.
11365 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11366 * gdbarch.h, gdbarch.c: Regenerate.
11367 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11368 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11369 (sparc64_write_fp): Delete declaration.
11370 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11371 (h8500_write_fp): Delete declaration.
11372
2757dd86
AC
113732002-04-04 Andrew Cagney <ac131313@redhat.com>
11374
11375 * sparc-tdep.c (sparc64_write_fp): Delete.
11376 (sparc_push_dummy_frame): Replace write_fp call with code to store
11377 the FP directly.
11378 (sparc_gdbarch_init): Do not initialize write_fp.
11379
c69255e1
KB
113802002-04-05 Kevin Buettner <kevinb@redhat.com>
11381
11382 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11383 clause.
11384
ae767bfb
JB
113852002-03-29 Jim Blandy <jimb@redhat.com>
11386
11387 * stack.c (get_selected_block): Add new argument `addr_in_block',
11388 used to return the exact code address we used to select the block,
11389 not just the block.
11390 * blockframe.c (get_frame_block, get_current_block): Same.
11391 * frame.h (get_frame_block, get_current_block,
11392 get_selected_block): Update declarations.
11393 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11394 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11395
84d2ac95
MS
113962002-04-05 Michael Snyder <msnyder@redhat.com>
11397
11398 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11399 warning message.
11400
596aa3bf
JB
114012002-04-05 J. Brobecker <brobecker@gnat.com>
11402
11403 * utils.c (xfullpath): New function.
11404 * defs.h (xfullpath): Add declaration.
11405 * source.c (openp): Use xfullpath in place of gdb_realpath to
11406 avoid resolving the basename part of filenames when the
11407 associated file is a symbolic link. This fixes a potential
11408 inconsistency between the filenames known to GDB and the
11409 filenames it prints in the annotations.
11410 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11411 to be able to match a filename with either the real filename, or
11412 the name of any symbolic link to this file.
11413 (lookup_partial_symtab): Ditto.
11414
c02f5703
MS
114152002-04-04 Michael Snyder <msnyder@redhat.com>
11416
11417 * breakpoint.c: Add support for hardware breakpoints in overlays.
11418 (overlay_events_enabled): New state variable.
11419 (insert_breakpoints): Use overlay_events_enabled to decide
11420 whether to attempt to set a breakpoint at the overlay load addr.
11421 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11422 (remove_breakpoint): Use overlay_events_enabled to decide
11423 whether breakpoints need to be removed from overlay load addr.
11424 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11425 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11426 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11427 disable_overlay_breakpoints): Update overlay_events_enabled.
11428
5fb290d7
DJ
114292002-04-04 Daniel Jacobowitz <drow@mvista.com>
11430
11431 * dwarf2read.c (struct function_range): New.
11432 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11433 (check_cu_functions): New.
11434 (read_file_scope): Initialize global function lists.
11435 Call dwarf_decode_line after processing children.
11436 (read_func_scope): Add to global function list.
11437 (dwarf_decode_lines): Call check_cu_functions everywhere
11438 record_line is called. Call record_line with a linenumber
11439 of 0 to mark sequence ends.
11440
7b3fabf0
ML
114412002-04-04 Michal Ludvig <mludvig@suse.cz>
11442
361d1df0 11443 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11444 change sync with glibc.
11445
bce58c09
JB
114462002-04-03 Jim Blandy <jimb@redhat.com>
11447
11448 * configure.in: Call AC_C_INLINE.
11449 * configure: Regenerated.
361d1df0 11450
2fccf04a
DJ
114512002-04-01 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11454 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11455
2d1bfe2e
MK
114562002-03-31 Mark Kettenis <kettenis@gnu.org>
11457
a5941fbf
MK
11458 * NEWS: Mention gcore support on FreeBSD/i386.
11459
a90cd31d
MK
11460 * fbsd-proc.c: New file.
11461 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11462 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11463
2d1bfe2e
MK
11464 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11465 while statement.
11466
9eb6e5a1
JB
114672002-03-29 Jim Blandy <jimb@redhat.com>
11468
11469 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11470 unescaped newlines in string literals, but newer ones don't. So
11471 escape them.
11472
f02df580
MS
114732002-03-26 Michael Snyder <msnyder@redhat.com>
11474 Andrew Cagney <cagney@redhat.com>
11475
361d1df0 11476 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11477 restore file to memory.
11478 * cli/cli-dump.h: New file.
11479 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11480 * NEWS: Mention new commands.
f02df580 11481
109f874e
MS
114822002-03-28 Michael Snyder <msnyder@redhat.com>
11483
11484 * symfile.c (symbol_file_add): Move test for null symbols to later.
11485
520f6ade
AC
114862002-03-27 Andrew Cagney <ac131313@redhat.com>
11487
11488 From veksler at il.ibm.com:
11489 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11490 the xstrduped original path.
11491 Fix PR gdb/417.
11492
d4654627
MS
114932002-03-27 Michael Snyder <msnyder@redhat.com>
11494
11495 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11496 * infcmd.c (_initialize_infcmd): Ditto.
11497 * language.c (_initialize_language): Ditto.
11498 * symfile.c (_initialize_symfile): Ditto.
11499 * top.c (_init_main): Ditto.
11500 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11501
6be8bc0c
EZ
115022002-03-27 Elena Zannoni <ezannoni@redhat.com>
11503
11504 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11505 vector registers handling.
11506 (skip_prologue): Handle new AltiVec instructions. Fill in new
11507 fields of frame data.
11508 (frame_get_saved_regs): Fill in information for AltiVec registers.
11509
12af6855
JB
115102002-03-27 Jim Blandy <jimb@redhat.com>
11511
11512 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11513 a function; leave this macro here to invoke that function.
11514 (symbol_init_mangled_name): Declaration for that function.
11515 * symtab.c (symbol_init_mangled_name): New function.
11516
dc672865
AC
115172002-03-27 Andrew Cagney <ac131313@redhat.com>
11518
11519 * valarith.c: Replace strerror with safe_strerror.
11520 * tracepoint.c: Ditto.
11521 * lin-lwp.c: Ditto.
11522 * go32-nat.c: Ditto.
11523 * inflow.c: Ditto.
11524 * gnu-nat.c: Ditto.
11525
d96429cd
AS
115262002-03-27 Andreas Schwab <schwab@suse.de>
11527
11528 * event-top.c (command_line_handler): Remove useless if.
11529
7e336ba1
AJ
115302002-03-27 Andreas Jaeger <aj@suse.de>
11531
11532 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11533 comment.
11534
de220d0f
ML
115352002-03-27 Michal Ludvig <mludvig@suse.cz>
11536
11537 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11538 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11539 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11540 (x86_64_linux_dr_get_status, supply_gregset),
11541 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11542 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11543 (x86_64_register_info_table): Add.
11544 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11545 (x86_64_register_raw_size, x86_64_register_virtual_type),
11546 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11547 general x86_64_register_info_table.
11548 (i386_gdbarch_init): gdbarch_register_bytes is now set
11549 dynamicaly during initialization.
11550 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11551 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11552
0e98d0a7
DJ
115532002-03-27 Daniel Jacobowitz <drow@mvista.com>
11554
11555 * gdbserver/server.c (main): Call target_signal_to_host_p
11556 and target_signal_to_host on signals received from the remote.
11557 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11558 target_signal_from_host on signals sent to the remote.
11559 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11560 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11561
3130066b
DJ
115622002-03-27 Daniel Jacobowitz <drow@mvista.com>
11563
11564 * signals/signals.c: Include "server.h" in gdbserver build.
11565 (target_signal_from_name): Don't use STREQ.
11566 (_initialize_signals): Likewise. Don't include function in
11567 gdbserver build.
11568
9aedf4f4
DJ
115692002-03-27 Daniel Jacobowitz <drow@mvista.com>
11570
11571 * signals.c: Moved to...
11572 * signals/signals.c: Here.
7e336ba1 11573 * Makefile (signals.o): Update.
9aedf4f4 11574
3fa41cdb
JL
115752002-03-26 Jeff Law (law@redhat.com)
11576
11577 * somread.c (som_symtab_read): Remove some commented out code and
11578 updated related comments. Do not set the minimal symbol table to
11579 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11580 in a dynamic executable.
11581 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11582 where we are unable to find the minimal symbol for the given
11583 PC value.
11584
ee677e8d
MS
115852002-03-25 Jeff Law (law@redhat.com)
11586
11587 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11588
e76e1718
ML
115892002-03-25 Michal Ludvig <mludvig@suse.cz>
11590
11591 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11592
18a642a1
AC
115932002-03-23 Andrew Cagney <ac131313@redhat.com>
11594
11595 * command.h: Update copyright.
11596 (struct cmd_list_element): Replace definition with opaque
11597 declaration.
11598 (enum cmd_types): Document that it will eventually be moved to
11599 cli/cli-decode.h
11600 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11601 (MALLOCED_REPLACEMENT): Delete macro.
11602 * Makefile.in (cli_decode_h): Add $(command_h).
11603 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11604 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11605 * completer.c: Include "cli/cli-decode.h".
11606 * maint.c: Include "cli/cli-decode.h".
11607 * cli/cli-decode.h: Include "command.h".
11608 (enum command_class): Delete.
11609 (enum cmd_types): Comment out.
11610 (enum cmd_auto_boolean): Delete.
11611 (enum var_types): Delete.
11612
b2875cc0
AC
116132002-03-23 Andrew Cagney <ac131313@redhat.com>
11614
11615 * cli/cli-decode.c: Include "gdb_assert.h".
11616 (add_set_or_show_cmd): New static function.
11617 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11618 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11619 all fields, such as func, from the set command.
11620
3b45974e
AC
116212002-03-23 Andrew Cagney <ac131313@redhat.com>
11622
11623 * MAINTAINERS (sh-elf): Change warning flag to -w.
11624
823ca731
AC
116252002-03-23 Andrew Cagney <cagney@redhat.com>
11626
11627 * defs.h (error): Add printf format attribute.
11628 * thread-db.c (thread_from_lwp): Fix error format string.
11629 * stack.c (parse_frame_specification): Ditto.
11630 * cli/cli-decode.c (undef_cmd_error): Ditto.
11631 * scm-lang.c (scm_lookup_name): Ditto.
11632 * tracepoint.c (trace_error): Ditto.
11633 * remote-utils.c (usage): Ditto.
11634 * remote.c (compare_sections_command): Ditto.
11635 Fix PR gdb/328.
11636
0e101458
AC
116372002-03-22 Andrew Cagney <ac131313@redhat.com>
11638
11639 * gdbtypes.c (append_composite_type_field): New function.
11640 (init_composite_type): New function.
11641 * gdbtypes.h (append_composite_type_field): Declare.
11642 (init_composite_type): Ditto.
11643
8e0662df
EZ
116442002-03-22 Elena Zannoni <ezannoni@redhat.com>
11645
11646 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11647 function.
8e0662df
EZ
11648 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11649 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11650 structure returning convention for SYSV ABI case, but not
11651 for GNU/Linux, FreeBSD, or NetBSD.
11652
3121eff0
DJ
116532002-03-22 Daniel Jacobowitz <drow@mvista.com>
11654
11655 * symtab.h (lookup_block_symbol): Add mangled_name argument
11656 to prototype.
11657
11658 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11659 with new mangled_name argument.
11660 * linespec.c (decode_line_1): Likewise.
11661 * valops (value_of_this): Likewise.
11662 * symtab.c (lookup_transparent_type): Likewise.
11663 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11664 (lookup_symbol): If we are given a mangled name, pass it down
11665 to lookup_symbol_aux.
11666 (lookup_block_symbol): If we are given a mangled name to check
11667 against, only return symbols which match it.
11668
349b409f
CF
116692002-03-22 Christopher Faylor <cgf@redhat.com>
11670
11671 * win32-nat.c (child_create_inferior): Check for proper shell to use
11672 here, in case the user changes it on the fly.
11673 (_initialize_inftarg): Remove shell path considerations.
11674
2a873819
EZ
116752002-03-21 Elena Zannoni <ezannoni@redhat.com>
11676
11677 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11678 for gdbarch_max_register_raw_size and max_register_virtual_size.
11679 Adjust copyright year.
11680
a1b9830c
DJ
116812002-03-21 Daniel Jacobowitz <drow@mvista.com>
11682
11683 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11684 in a function to cover the entire beginning of the function
11685 as well if it does not already.
11686
8b5790f2
TR
116872002-03-21 Tom Rix <trix@redhat.com>
11688
11689 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11690 (rs6000_ptrace64): Renamed from ptrace64.
11691
bdbe5747
MH
116922002-03-20 Martin M. Hunt <hunt@redhat.com>
11693
11694 * gdbserver/remote-utils.c (remote_open): Don't call
11695 getprotobyname, we're all using TCP here so just use
11696 IPPROTO_TCP.
7e336ba1 11697 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11698
116992002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11700
bdbe5747
MH
11701 * regcache.c (_initialize_regcache): No need to call
11702 build_regcache() at this time; it gets called whenever
11703 the gdbarch changes.
11704
7781cd62
DB
117052002-03-20 David O'Brien <obrien@FreeBSD.org>
11706
11707 * sparc-nat.c: Include sys/param.h where possible.
11708
f65ca430
DJ
117092002-03-20 Daniel Jacobowitz <drow@mvista.com>
11710
11711 Fix PR gdb/422.
11712 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11713 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11714 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11715 complex types.
11716 * stabsread.c (rs6000_builtin_type): Likewise.
11717 (read_sun_floating_type): Likewise.
11718
0c867556
PS
117192002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11720
11721 * stabsread.c (read_member_functions): Remove skip code for duplicate
11722 constructor/destructor methods. Use standard parsing for these
11723 methods and just do not chain them to the list of methods after
11724 parsing.
11725
12b9c64f
AO
117262002-03-19 Alexandre Oliva <aoliva@redhat.com>
11727
11728 * coffread.c: Remove redundant static declarations. Replace
11729 occurrences of `PTR' with `void *'.
11730 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11731 * top.h (quit_cover): Likewise.
11732 * defs.h (catch_errors): Likewise.
11733
349c5d5f
AC
117342002-03-18 Andrew Cagney <ac131313@redhat.com>
11735
11736 * defs.h (XMALLOC): Define.
11737 * gdb-events.sh (XMALLOC): Delete macro.
11738 * gdb-events.c, gdb-events.h: Regenerate.
11739 * gdbarch.sh (XMALLOC): Delete macro.
11740 * gdbarch.c: Regenerate.
11741 * serial.c (XMALLOC): Delete macro.
11742 * ui-file.c (XMALLOC): Ditto.
11743 * ser-unix.h (XMALLOC): Ditto.
11744 * sh-tdep.c (XMALLOC): Ditto.
11745 * ui-out.c (XMALLOC): Ditto.
11746 * utils.c (XMALLOC): Ditto.
11747 * i386-tdep.c (XMALLOC): Ditto.
11748 * gdb-events.c (XMALLOC): Ditto.
11749 * d10v-tdep.c (XMALLOC): Ditto.
11750 * cli-out.c (XMALLOC): Ditto.
11751
11752 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11753 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11754 * ui-file.c, ui-out.c: Ditto.
11755
7d0766f3
AC
117562002-03-18 Andrew Cagney <ac131313@redhat.com>
11757
11758 * command.h (struct cmd_list_element): Add field context.
11759 (set_cmd_context, get_cmd_context): Declare.
11760 * cli/cli-decode.h: Ditto.
11761 * cli/cli-decode.c (get_cmd_context): New function.
11762 (set_cmd_context): New function.
11763 (add_cmd): Initialize context.
11764 Part of fixing PR gdb/145 and PR gdb/146.
11765
5913bcb0
AC
117662002-03-17 Andrew Cagney <ac131313@redhat.com>
11767
1868c04e
AC
11768 * cli/cli-decode.c (cmd_type): New function.
11769 * command.h (cmd_type): Declare.
11770 * infrun.c (set_schedlock_func): Call function cmd_type.
11771 * kod.c (kod_set_os): Call cmd_type.
11772 * cris-tdep.c (cris_version_update): Use function cmd_type.
11773 (cris_mode_update, cris_abi_update): Ditto.
11774
5913bcb0
AC
11775 * command.h: (execute_cmd_post_hook): Declare.
11776 (execute_cmd_pre_hook): Declare.
11777 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11778 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11779 functions. Execute pre/post hook while ensuring that afterwords
11780 hook_in is cleared.
11781 * top.c (execute_command): Use execute_cmd_post_hook, and
11782 execute_cmd_pre_hook to execute pre/post commands.
11783 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11784 hook_stop_stub.
11785 (hook_stop_stub): Call execute_cmd_pre_hook.
11786
b51450c9
AC
117872002-03-17 Andrew Cagney <ac131313@redhat.com>
11788
11789 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11790 set'' and this leads to a core dump. Move xstrdup of
11791 operating_system to after check that it is not NULL.
11792
f66c9f11
AC
117932002-03-17 Andrew Cagney <ac131313@redhat.com>
11794
8e694ecf
AC
11795 * kod.c (kod_set_os): Remove unnecessary check that
11796 ``command->type'' is set_cmd.
11797
f66c9f11
AC
11798 * valprint.c (set_input_radix): Use input_radix.
11799 (set_output_radix): Use output_radix.
11800 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11801 isn't reverted.
11802
9d01611c
AC
118032002-03-16 Andrew Cagney <ac131313@redhat.com>
11804
11805 * value.h (struct value): Delete field ``substring_addr''. Change
11806 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11807 force_core_addr_align and force_pointer_aligh.
11808
11809 * value.h (struct value): Fix typo in above change.
9d01611c 11810
4156bb53
PS
118112002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11812
11813 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11814 to fix internal_error from ``maintenance print architecture''.
11815
0e5e3ea6
PS
118162002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11817
11818 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11819 for gcc versions after gcc-2.8.1.
11820
9b013045
PS
118212002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11822
11823 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11824 for method resolution. Restore adjustment of ``this'' pointer after
11825 calling value_struct_elt, which was accidentally removed during the
11826 HP merge.
11827
376c9600
AC
118282002-03-15 Andrew Cagney <ac131313@redhat.com>
11829
11830 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11831 value_of_register.
11832 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11833 get_saved_register.
11834 * value.h (value_of_register): Update.
11835
a4db0f07
RH
118362002-03-14 Richard Henderson <rth@redhat.com>
11837
11838 * configure.in: Detect declaration for canonicalize_file_name.
11839 * utils.c (canonicalize_file_name): Declare, if needed.
11840 (gdb_realpath): Prefer realpath if available and usable.
11841 * config.in, configure: Rebuild.
11842
96383835
RH
118432002-03-14 Richard Henderson <rth@redhat.com>
11844
11845 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11846 a constant array bound.
11847
11848 * MAINTAINERS: Add myself to write-after-approval.
11849
75245b24
MS
118502002-03-14 Michael Snyder <msnyder@redhat.com>
11851
11852 * symfile.c (syms_from_objfile): Return immediately if no syms.
11853 (symbol_file_add): Return immediately if no syms.
11854 (find_sym_fns): Return immediately if no syms.
11855
e641a1ca
ML
118562002-03-13 Michal Ludvig <mludvig@suse.cz>
11857
11858 * gdbserver/remote-util.c (remote_open): Print remote-side's
11859 IP address when remote debugging over the network.
7e336ba1 11860
df08bfec
DB
118612002-03-12 David O'Brien <obrien@FreeBSD.org>
11862
11863 * config/sparc/fbsd.mh: Fix copyright.
11864 * config/sparc/fbsd.mt: Likewise.
11865
9a57864f
RE
118662002-03-11 Richard Earnshaw <rearnsha@arm.com>
11867
11868 * MAINTAINERS: Fix typo in name of gdb warnings option.
11869 (x86-64): Fix formating so that this can be parsed by awk.
11870
dd7bf85e
DJ
118712002-03-10 Daniel Jacobowitz <drow@mvista.com>
11872
11873 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11874 * defs.h: Include "gdb/signals.h".
11875 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11876
33a0a2ac
ML
118772002-03-10 Michal Ludvig <mludvig@suse.cz>
11878
11879 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11880 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11881 from x86-64-tdep.h
11882
dd824b04
DJ
118832002-03-10 Daniel Jacobowitz <drow@mvista.com>
11884 Don Howard <dhoward@redhat.com>
11885
11886 * mips-tdep.c (ST0_FR): Define.
11887 (mips2_fp_compat): New function, temporarily disabled.
11888 (mips_read_fp_register_single): New function.
11889 (mips_read_fp_register_double): New function.
11890 (mips_print_register): Use them.
11891 (do_fp_register_row): Likewise.
11892
6a41ff59
AC
118932002-03-09 Andrew Cagney <ac131313@redhat.com>
11894
11895 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11896 approval''.
11897
4ea09c10
PS
118982002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11899
11900 * stabsread.c (read_member_functions): Fix is_stub test for
11901 static member functions, improve comment.
11902
6ccc741d
RE
119032002-03-07 Richard Earnshaw <rearnsha@arm.com>
11904
11905 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11906 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11907 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11908 commands that set boolean values.
11909 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11910 (arm_rdi_resume): Always initialize PC.
11911 (arm_rdi_open): Don't use rslt as a boolean.
11912 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11913 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11914 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11915 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11916
438013df
AO
119172002-03-06 Alexandre Oliva <aoliva@redhat.com>
11918
11919 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11920 * configure: Rebuilt.
11921
70ed8774
SC
119222002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11923
11924 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11925 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11926
5ba2abeb
AC
119272002-03-06 Andrew Cagney <ac131313@redhat.com>
11928
11929 * cli/cli-decode.c (set_cmd_completer): New function.
11930 * command.h (set_cmd_completer): Declare.
11931 * cli/cli-decode.h (set_cmd_completer): Ditto.
11932
11933 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11934 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11935 * win32-nat.c (_initialize_inftarg): Ditto.
11936 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11937 * proc-api.c (_initialize_proc_api): Ditto.
11938 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11939 * source.c (_initialize_source): Ditto.
11940 * exec.c (_initialize_exec): Ditto.
11941 * solib.c (_initialize_solib): Ditto.
11942 * top.c (init_main): Ditto.
11943 * tracepoint.c (_initialize_tracepoint): Ditto.
11944 * symfile.c (_initialize_symfile): Ditto.
11945 * printcmd.c (_initialize_printcmd): Ditto.
11946 * infcmd.c (_initialize_infcmd): Ditto.
11947 * corefile.c (_initialize_core): Ditto.
11948
f779ca99
AC
119492002-03-05 Andrew Cagney <ac131313@redhat.com>
11950
11951 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11952
01a3934b
AC
119532002-03-05 Andrew Cagney <ac131313@redhat.com>
11954
11955 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11956
37057839
AC
119572002-03-05 Andrew Cagney <ac131313@redhat.com>
11958
11959 * NEWS: Update headings, 5.2 has branched.
11960
c6ecbae5
DJ
119612002-03-04 Daniel Jacobowitz <drow@mvista.com>
11962
11963 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11964 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11965 (register_addr, REGISTER_RAW_SIZE): Likewise.
11966 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11967 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11968
e9f30c21
ML
119692002-03-03 Michal Ludvig <mludvig@suse.cz>
11970
11971 * MAINTAINERS (x86-64): Add myself.
11972 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11973 changed value_ptr -> struct value *
11974
54394ac3
DB
119752002-03-01 David O'Brien <obrien@FreeBSD.org>
11976
11977 * configure.host (sparc64-*-freebsd): Add.
11978 * configure.tgt: Likewise.
11979 * config/sparc/fbsd.mh: New file.
11980 * config/sparc/fbsd.mt: Likewise.
11981 * config/sparc/nm-fbsd.h: Likewise.
11982 * config/sparc/tm-fbsd.h: Likewise.
11983
bfe95955
DJ
119842002-03-01 Daniel Jacobowitz <drow@mvista.com>
11985
11986 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11987 regformats/reg-s390x.dat.
11988
f33c6cbf
AC
119892002-03-01 Andrew Cagney <ac131313@redhat.com>
11990
11991 * utils.c: Add FIXME explaining true/false problem.
11992
5ecaa7dd
AC
119932002-02-28 Andrew Cagney <ac131313@redhat.com>
11994
11995 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11996
2a251cc2
MC
119972002-02-28 Michael Chastain <mec@shout.net>
11998
11999 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12000
6a8031a3 120012002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12002
12003 * gdbserver/linux-s390-low.c: New file.
12004 * regformats/reg-s390.dat: New file.
12005 * regformats/reg-s390x.dat: New file.
12006 * gdbserver/configure.srv: Add S/390.
12007 * gdbserver/Makefile.in: Add S/390.
12008 * configure.tgt: Enable gdbserver for S/390.
12009
ac469903
EZ
120102002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12011
12012 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12013 first line of the doc string for "info dos", except at the end of
12014 the sentence, since the short help stops at the first period.
12015
985cb1a3
JM
120162002-02-28 Jason Merrill <jason@redhat.com>
12017
12018 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12019
c570663e
FF
120202002-02-27 Fred Fish <fnf@redhat.com>
12021
12022 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12023 comment (dumy -> dummy).
12024
43630227
PS
120252002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12026
12027 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12028
b84911e8
RB
120292002-02-27 Rodney Brown <rbrown64@csc.com.au>
12030
12031 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12032
58caa3dc
DJ
120332002-02-27 Daniel Jacobowitz <drow@mvista.com>
12034
12035 * gdbserver/acconfig.h: New file.
12036 * gdbserver/i387-fp.c: New file.
12037 * gdbserver/i387-fp.h: New file.
12038 * gdbserver/linux-x86-64.c: New file.
12039 * regformats/reg-x86-64.dat: New file.
12040 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12041 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12042 * gdbserver/configure.in: Add support for regsets.
12043 * gdbserver/config.in: Regenerate.
12044 * gdbserver/configure: Regenerate.
12045 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12046 * gdbserver/linux-low.h: New file.
12047 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12048 for regsets.
12049 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12050 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12051 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12052 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12053 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12054 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12055 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12056 "i387-fp.h". Add PTRACE_GETREGS and friends.
12057 * gdbserver/regcache.c (supply_register): New function.
12058 (supply_register_by_name): New function.
12059 (collect_register): New function.
12060 (collect_register_by_name): New function.
12061
93652174
DJ
120622002-02-27 Daniel Jacobowitz <drow@mvista.com>
12063
12064 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12065 (config.status): Add configure.srv dependency.
12066 (server_h): Add config.h dependency.
12067
a02e4a61
DJ
120682002-02-27 Daniel Jacobowitz <drow@mvista.com>
12069
12070 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12071 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12072 * gdbserver/configure.srv: Change i386-*-linux* to use
12073 reg-i386-linux.o.
12074
ce0eebec
AC
120752002-02-26 Andrew Cagney <ac131313@redhat.com>
12076
12077 * x86-64-tdep.c: Re-indent. Update copyright date.
12078
82dbc5f7
AC
120792002-02-26 Andrew Cagney <ac131313@redhat.com>
12080
12081 From Michal Ludvig <mludvig@suse.cz>:
12082 * x86-64-tdep.c (value.h): Delete.
12083 (gdb_assert.h): Include.
12084 (x86_64_register_convert_to_virtual,
12085 x86_64_register_convert_to_raw ): Add check which lets only
12086 floating-point values to be converted.
12087 (value_push): Delete.
12088 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12089 (i386_gdbarch_init): Number of register_bytes fixed.
12090
e4621584
AC
120912002-02-26 Andrew Cagney <ac131313@redhat.com>
12092
12093 * MAINTAINERS: Add x86-64 target.
12094
81a9a963
AC
120952002-02-26 Andrew Cagney <ac131313@redhat.com>
12096
12097 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12098 * osfsolib.c (solib_map_sections): Ditto.
12099 * irix5-nat.c (solib_map_sections): Ditto.
12100 * corelow.c (gdb_check_format): Ditto.
12101 * symfile.c (symfile_bfd_open): Ditto.
12102 * solib.c (solib_map_sections): Ditto.
12103 Fix PR gdb/354.
7e336ba1 12104
0f017ab9
AC
121052002-02-26 Andrew Cagney <ac131313@redhat.com>
12106
12107 * remote.c (_initialize_remote): By default, disable ``e'' and
12108 ``E'' step out-of-range packets.
12109
75738c29
AS
121102002-02-26 Andreas Schwab <schwab@suse.de>
12111
12112 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12113 m68k_linux_frame_saved_pc.
12114 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12115 in_sigtramp.
12116 (SIGCONTEXT_PC_OFFSET): Remove.
12117 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12118 m68k_linux_sigtramp_saved_pc): New functions.
12119 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12120 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12121 (UCONTEXT_PC_OFFSET): Define.
12122 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12123 non-RT and RT signal trampolines.
12124
7e8ed687
RE
121252002-02-26 Richard Earnshaw <rearnsha@arm.com>
12126
12127 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12128 (TARGET_NBPG, STACK_END_ADDR): Delete
12129 (VARIABLES_INSIDE_BLOCK): Delete.
12130
6972bc8b
AC
121312002-02-25 Andrew Cagney <ac131313@redhat.com>
12132
12133 * utils.c (perror_with_name): Make string parameter constant.
12134 (print_sys_errmsg): Ditto.
12135 (query): Ditto.
12136 * defs.h (perror_with_name): Update.
12137 (print_sys_errmsg): Update.
12138 (query): Update.
12139
aa32f823
DJ
121402002-02-25 Daniel Jacobowitz <drow@mvista.com>
12141
12142 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12143 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12144
19caaa45
PS
121452002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12146
12147 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12148 if it already matches the current architecture from the exec file.
12149 Include arch-utils.h for gdbarch_info_init prototype.
12150 * Makefile.in (rs6000-nat.o): Update dependencies.
12151
d951901f
EZ
121522002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12153
12154 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12155 list of exported variables.
12156
7ea81414
DJ
121572002-02-24 Daniel Jacobowitz <drow@mvista.com>
12158
12159 * gdbserver/configure.srv: New file.
12160 * gdbserver/configure.in: Use configure.srv instead
12161 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12162 from it.
12163 * gdbserver/configure: Regenerated.
12164 * gdbserver/terminal.h: New file.
12165 * gdbserver/Makefile.in: Update for configure changes. Remove
12166 more unneeded include paths.
12167
080fe24b
AC
121682002-02-24 Andrew Cagney <ac131313@redhat.com>
12169
12170 From wiz at danbala:
12171 * config/sparc/tm-sp64.h: Fix grammar and typos.
12172 Fix PR gdb/287.
12173
8605d56e
AC
121742002-02-24 Andrew Cagney <ac131313@redhat.com>
12175
12176 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12177 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12178 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12179 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12180 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12181 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12182 * s390-tdep.c: Ditto.
92362027
AC
12183 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12184 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12185 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12186 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12187 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12188 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12189 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12190 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12191 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12192 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12193 Fix PR gdb/378.
7e336ba1 12194
8ed32cc0
AC
121952002-02-23 Andrew Cagney <ac131313@redhat.com>
12196
a3007b6f
AC
12197 * lin-thread.c: Delete file.
12198 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12199 to gdb_proc_service.h.
12200 * configure: Re-generate.
12201
50a9e2f1
AC
12202 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12203 * serial.c (serial_open): Delete check for "ocd".
12204 Fix PR gdb/349.
12205
8b6e7932
AC
12206 * Makefile.in (linux-thread.o): Delete target.
12207 * linux-thread.c: Delete file.
12208
d155c46b
AC
12209 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12210 renamed SH files to be consistent.
12211
8ed32cc0
AC
12212 * symtab.c (sort_search_symbols): Use xfree.
12213
0e18d038
RE
122142002-02-23 Richard Earnshaw <rearnsha@arm.com>
12215
12216 * arm-linux-tdep.c (arm_linux_init_abi): Register
12217 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12218 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12219 definition with undef, since we don't want the sysvr4 definition.
12220 (SKIP_TRAMPOLINE_CODE): Likewise.
12221
27aac7ff
AC
122222002-02-23 Andrew Cagney <ac131313@redhat.com>
12223
12224 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12225
12226 * configure.in: (AC_CHECK_FUNCS) Added test for
12227 canonicalize_file_name Regenerated.
12228 * config.in, configure: Regenerated.
12229 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12230 defined use canonicalize_file_name.
7e336ba1 12231
65a6e0ee
MC
122322002-02-23 Michael Chastain <mec@shout.net>
12233
12234 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12235
47b95330
AC
122362002-02-23 Andrew Cagney <ac131313@redhat.com>
12237
12238 * README: Remove references to cygnus.com.
12239 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12240 dot com'' form. Remove references to cygnus.com and sourceware.
12241
696f451b
AC
122422002-02-23 Andrew Cagney <ac131313@redhat.com>
12243
12244 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12245 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12246 1003.1-2001 no longer allows "head -1".
12247 * gdb/Makefile.in (version.c): Likewise.
12248 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12249 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12250 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12251
bbaca940
AC
122522002-02-23 Andrew Cagney <ac131313@redhat.com>
12253
12254 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12255 * command.h (cmd_cfunc_eq): Declare.
12256 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12257
12258 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12259 ``struct cmd_list_element *''.
12260 * cli/cli-cmds.c (is_complete_command): Update. Use
12261 cmd_cfunc_eq.
12262 * top.c (execute_command): Pass the command to
12263 is_complete_command.
12264 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12265
b8b8b047
AC
122662002-02-23 Andrew Cagney <ac131313@redhat.com>
12267
12268 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12269 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12270 architecture defines.
12271 * s390-tdep.c (s390_gdbarch_init): Likewise.
12272
19d3fc80
RE
122732002-02-23 Richard Earnshaw <rearnsha@arm.com>
12274
12275 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12276 (arm_linux_push_arguments): Likewise.
12277 (arm_linux_init_abi): Register them. Also register linux-specific
12278 call_dummy_words.
12279 (find_minsym_and_objfile): Use strcmp, not STREQ.
12280 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12281 (arm_linux_call_dummy_words): Delete declaration.
12282 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12283 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12284 declarations.
12285 (LOWEST_PC): Delete.
12286
3ab13650
PS
122872002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12288
12289 * maint.c (print_section_info): Do not prepend `0x' to filepos
12290 output, it will be handled by local_hex_string_custom.
12291
19d3fc80 122922002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12293
12294 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12295 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12296 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12297
d85a5daf
JB
122982002-02-22 Jim Blandy <jimb@redhat.com>
12299
12300 Indicate that the bcache functions don't change the strings
12301 they're passed.
12302 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12303 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12304
eeb25b8a
PM
123052002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12306
12307 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12308
6badb179
CF
123092002-02-21 Christopher Faylor <cgf@redhat.com>
12310
12311 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12312 find the complete path to a loaded DLL.
12313
e8717518
FF
123142002-02-21 Fred Fish <fnf@redhat.com>
12315
12316 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12317 that marks the end of the range of a function, enter a line number
12318 entry that has a line number of zero and a PC offset that matches
12319 the end of the function. This starts a range of PC's for which no
12320 line number information is known.
12321 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12322 PC's for which no line number info is found (line number is zero)
12323 then we didn't find any valid line information.
12324 * symtab.h: Document use of zero line number entry.
12325
9abe5450
EZ
123262002-02-21 Elena Zannoni <ezannoni@redhat.com>
12327
12328 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12329 (have_ptrace_getvrregs): Define for run time checks.
12330 (gdb_vrregset_t): New type for Altivec register handling.
12331 (fetch_register, store_register): Fetch/store altivec register
12332 when needed.
12333 (fetch_altivec_register, store_altivec_register): New functions.
12334 (supply_vrregset, fill_vrregset): New functions.
12335 (fetch_altivec_registers, store_altivec_registers): New functions.
12336 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12337 registers as well.
12338
aaa38bb5
AJ
123392002-02-21 Jiri Smid <smid@suse.cz>
12340
12341 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12342
b34db576
RE
123432002-02-21 Richard Earnshaw <rearnsha@arm.com>
12344
12345 * Makefile.in (armnbsd-nat.o): Update dependencies.
12346 * armnbsd-nat.c (supply_gregset): New function. Common code to
12347 supply the integer register set.
12348 (supply_fparegset): New function. Similar for FPA registers.
12349 (fetch_regs, fetch_fp_regs): Use them.
12350 (fetch_core_registers): Likewise.
12351 (fetch_elfcore_registers): New function.
12352 (arm_netbsd_elfcore_fns): New core-file type specification.
12353 (_initialize_arm_netbsd_nat): Register it.
12354
3e56fc4b
RE
123552002-02-21 Richard Earnshaw <rearnsha@arm.com>
12356
12357 * armnbsd-nat.c: Include gdbcore.h.
12358 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12359 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12360 'void' to declaration, to shut up ARI.
12361 (fetch_core_registers): Make static. Rewrite using supply_register.
12362 (arm_netbsd_core_fns): New core-file type specification.
12363 (_initialize_arm_netbsd_nat): New function.
12364
097f6b0b
CF
123652002-02-21 Christopher Faylor <cgf@redhat.com>
12366
12367 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12368 value.
12369
c914e0cc
CF
123702002-02-20 Christopher Faylor <cgf@redhat.com>
12371
12372 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12373 fails.
12374
385fa495
DJ
123752002-02-20 Daniel Jacobowitz <drow@mvista.com>
12376
12377 * jv-exp.y (parse_number): Change type of implicit longs
12378 to builtin_type_uint64.
12379
e5f1222d
DJ
123802002-02-20 Daniel Jacobowitz <drow@mvista.com>
12381
12382 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12383 to be an integer instead of a `union wait'.
12384
75c9abc6
DJ
123852002-02-20 Daniel Jacobowitz <drow@mvista.com>
12386
12387 * mips-linux-nat.c: Call the operating system GNU/Linux.
12388 * mips-linux-tdep.c: Likewise.
12389 * mips-tdep.c: Likewise.
12390
551792a5
DJ
123912002-02-20 Daniel Jacobowitz <drow@mvista.com>
12392
12393 Fix PR gdb/265.
12394 * jv-exp.y (parse_number): Handle 64-bit integers.
12395
ee6e2b82
DJ
123962002-02-20 Daniel Jacobowitz <drow@mvista.com>
12397
12398 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12399 AC_STDC_HEADERS to AC_HEADER_STDC.
12400 * gdbserver/configure: Regenerated.
12401
a48442a0
RE
124022002-02-20 Richard Earnshaw <rearnsha@arm.com>
12403
12404 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12405 is defined.
12406 * sparc-tdep.c (get_longjmp_target): Likewise.
12407
fe419ffc
RE
124082002-02-20 Richard Earnshaw <rearnsha@arm.com>
12409
12410 * News: Add news about ARM and Multi-arch. Mention the new target
12411 arm*-*-netbsd*.
12412
5832ed7e
JB
124132002-02-19 Jim Blandy <jimb@redhat.com>
12414
12415 * stabsread.c (error_type_complaint): Improve error message.
12416
84563040
DJ
124172002-02-19 Daniel Jacobowitz <drow@mvista.com>
12418
12419 * gdbserver/README: Update documentation.
12420 * gdbserver/configure.in: Update configury to match documentation.
12421 * gdbserver/Makefile.in: Likewise.
12422 * gdbserver/configure: Regenerated.
12423 * gdbserver/aclocal.m4: New file, generated by aclocal.
12424 * gdbserver/config.in: New file, generated by autoheader.
12425
375fd65b
RE
124262002-02-19 Richard Earnshaw <rearnsha@arm.com>
12427
12428 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12429 armnbsd-nat.c.
12430
08216dd7
RE
124312002-02-19 Richard Earnshaw <rearnsha@arm.com>
12432
12433 * arm-tdep.h (enum arm_float_model): New enum.
12434 (struct gdbarch_tdep): Add fp_model.
12435 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12436 up floating-point conversions until we know the floating-point model
12437 in use by the inferior. Don't complain about being unable to
12438 determine the ABI of the inferior when we don't have one.
12439 (arm_extract_return_value): Support different floating-point models.
12440 (arm_store_return_value): Likewise.
aaa38bb5 12441 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12442 ARM_FLOAT_SOFT.
12443 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12444
65d6d66a
PS
124452002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12446
12447 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12448 of ``current_gdbarch''.
12449
47221191
RE
124502002-02-19 Richard Earnshaw <rearnsha@arm.com>
12451
12452 * armnbsd-nat.c : ANSIfy all function declarations.
12453 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12454 (fetch_inferior_registers): Re-implement in terms of above.
12455 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12456 (store_inferior_registers): Re-implement in terms of above.
12457
fdf39c9a
RE
124582002-02-19 Richard Earnshaw <rearnsha@arm.com>
12459
aaa38bb5 12460 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12461 kernel.
12462 * arm-linux-tdep.c: Likewise.
12463 * config/arm/tm-linux.h: Likewise.
12464
93247f88
RE
124652002-02-19 Richard Earnshaw <rearnsha@arm.com>
12466
12467 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12468 * config/arm/nbsd.mt (TM_FILE): Delete.
12469 * config/arm/tm-nbsd.h: Delete.
12470
d7b486e7
RE
124712002-02-19 Richard Earnshaw <rearnsha@arm.com>
12472
12473 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12474 Initialize CALL_DUMMY_LENGTH.
12475
41d39a95
RE
124762002-02-19 Richard Earnshaw <rearnsha@arm.com>
12477
12478 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12479 function.
12480 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12481 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12482 defines one thing and that is incorrect for this port.
12483 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12484
e1195560
PM
124852002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12486
12487 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12488
c1748f97
PM
124892002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12490
12491 * win32-nat.c (display_selector): New function. Displays information
12492 about the information returned by GetThreadSelectorEntry API function.
12493 (display_selectors): New function. Displays the infomation of
12494 the selector given as argument, or of CS, DS ans FS selectors
12495 if no argument is given.
12496 ( _initialize_inftarg): Add "w32" as info prefix command.
12497 Add "info w32 selector" as command calling display_selectors.
12498
e41e6bbf
PM
124992002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12500
12501 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12502 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12503 if not defined.
12504
0d3a9f48
RE
125052002-02-18 Richard Earnshaw <rearnsha@arm.com>
12506
12507 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12508
3fb4b924
RE
125092002-02-18 Richard Earnshaw <rearnsha@arm.com>
12510
12511 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12512 (arm_fix_call_dummy): Call it.
12513 (arm_call_dummy_breakpoint_offset): Delete.
12514 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12515 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12516
7f55af32
AC
125172002-02-18 Andrew Cagney <ac131313@redhat.com>
12518
12519 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12520 Default to func_frame_chain_valid.
12521 * gdbarch.h, gdbarch.c: Re-generate.
12522 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12523
05f13b9c
EZ
125242002-02-18 Elena Zannoni <ezannoni@redhat.com>
12525
12526 * ppc-linux-nat.c: Update copyright.
12527 (fetch_register, store_register): Add tid parameter, don't compute
12528 tid here.
12529 (fetch_ppc_registers, store_ppc_registers): Add tid
12530 parameter. Pass it along to callees.
12531 (fetch_inferior_registers, store_inferior_registers): Compute tid
12532 here, and pass it to calleed functions.
12533 (fill_gregset, supply_fpregset): Clean up formatting.
12534
d7afb4c9
RE
125352002-02-18 Richard Earnshaw <rearnsha@arm.com>
12536
12537 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12538 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12539
9df628e0
RE
125402002-02-18 Richard Earnshaw <rearnsha@arm.com>
12541
12542 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12543 * gdbarch.c gdbarch.h: Regenerate.
12544 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12545 function.
12546 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12547 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12548 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12549
12550 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12551 * arm-tdep.c (arm_get_longjmp_target): New function.
12552 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12553 this to a positive value register arm_get_longjmp_target as the
12554 longjmp handler.
12555 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12556 (arm_linux_init_abi): Set up longjmp description in tdep.
12557 * armnbsd-nat.c (get_longjmp_target): Delete.
12558 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12559 description in tdep.
12560 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12561 (get_longjmp_target): Delete declaration.
12562 (GET_LONGJMP_TARGET): Delete.
12563 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12564 (GET_LONGJMP_TARGET): Delete.
12565
57bc8964
KB
125662002-02-17 Kevin Buettner <kevinb@redhat.com>
12567
12568 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12569 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12570 of ``current_gdbarch''.
12571
83d31a92
TT
125722002-02-17 Tom Tromey <tromey@redhat.com>
12573
12574 * cli/cli-cmds.c (compare_strings): New function.
12575 (complete_command): Only print each unique item once.
12576 * completer.h (complete_line): Declare.
12577 * completer.c (complete_line): New function.
12578 (line_completion_function): Use it.
12579
17ef5d92
AC
125802002-02-16 Andrew Cagney <ac131313@redhat.com>
12581
12582 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12583 * gdbarch.h, gdbarch.c: Re-generate.
12584
491b8946
DJ
125852002-02-16 Daniel Jacobowitz <drow@mvista.com>
12586
12587 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12588
125892002-02-16 Daniel Jacobowitz <drow@mvista.com>
12590
12591 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12592 * valops.c (value_arg_coerce): Don't take the address of a reference
12593 to convert an argument to a reference.
12594
dfe7f3ac
CF
125952002-02-15 Christopher Faylor <cgf@redhat.com>
12596
12597 * win32-nat.c (get_image_name): New function.
12598 (handle_load_dll): Use get_image_name function.
12599 (get_child_debug_event): Avoid registering debug events until possibly
12600 execed process is started.
12601 (child_create_inferior): Allow invocation via shell so that command
12602 line redirection, etc. works ok.
12603 (_initialize_inftarg): Add new command: "set shell" to control whether
12604 a shell is used to start a process.
12605
1d33e73a
DJ
126062002-02-15 Daniel Jacobowitz <drow@mvista.com>
12607
12608 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12609 instead of find_register_by_number.
12610 (cannot_store_register): Likewise.
12611
48cd0caa
PM
126122002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12613
aaa38bb5 12614 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12615 fprintf_unfiltered (gdb_stderr, ...).
12616
8656e7d8
DJ
126172002-02-15 Daniel Jacobowitz <drow@mvista.com>
12618
12619 * gdbserver/gdbserver.1: Document --attach.
12620
66e810cd
RE
126212002-02-15 Richard Earnshaw <rearnsha@arm.com>
12622
12623 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12624 descriptions.
12625 * arm-tdep.c (arm_default_arm_le_breakpoint)
12626 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12627 (arm_default_thumb_be_breakpoint): New. Initialize them from
12628 traditional breakpoint defines.
12629 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12630 (arm_gdbarch_init): Initialize new breakpoint variables.
12631 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12632 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12633 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12634 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12635 code out to ...
12636 (arm_netbsd_init_abi_common): ... here; new function.
12637 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12638 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12639 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12640 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12641
97e03143
RE
126422002-02-15 Richard Earnshaw <rearnsha@arm.com>
12643
12644 * arm-tdep.h (enum arm_abi): New enum.
12645 (struct gdbarch_tdep): New structure.
12646 (LOWEST_PC): Provide a default.
12647 (arm_gdbarch_register_os_abi): Declare new function.
12648 * arm-tdep.c (arm_abi_names): New array.
12649 (process_note_abi_tag_sections): New function.
12650 (get_elfosabi): New function.
12651 (arm_gdbarch_register_os_abi): New function.
12652 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12653 support for that ABI has been built in, then call the appropriate
12654 configuration routine. Use gdbarch_num_regs() to get the number
12655 of registers.
12656 (arm_dump_tdep): New function.
12657 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12658 place-holder functions.
12659 (_initialize_arm_tdep): Register them.
12660 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12661
12662 * armnbsd-tdep.c: New file.
12663 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12664 * config/arm/nbsd.mt (TDEPFILES): Add it.
12665 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12666
12667 * armnbsd-nat.c: Include regcache.h.
12668 * Makefile.in (armnbsd-nat.o): Update dependency list.
12669
12670 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12671
ad68be46
DJ
126722002-02-14 Daniel Jacobowitz <drow@mvista.com>
12673
12674 * gdbserver/Makefile.in: Fix typos in target rules.
12675
003d6d1d
DJ
126762002-02-14 Daniel Jacobowitz <drow@mvista.com>
12677
aaa38bb5 12678 Fix part of PR gdb/267.
003d6d1d
DJ
12679 * linespec.c (find_methods): Handle constructors specially for now.
12680
6b230f1b
CV
126812002-02-14 Corinna Vinschen <vinschen@redhat.com>
12682
12683 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12684 handling.
12685 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12686 standard_coerce_float_to_double().
12687
1ea98d12
CF
126882002-02-14 Christopher Faylor <cgf@redhat.com>
12689
12690 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12691 GDBINIT_FILENAME.
12692
dd47e6fd
EZ
126932002-02-14 Elena Zannoni <ezannoni@redhat.com>
12694
12695 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12696 find_variant_by_name, because it confuses the multiarch
12697 framework. Return NULL if there isn't an architecture with the
12698 user supplied name, instead of forcing a different one without
12699 recording the change with the multiarch machinery.
12700 (find_variant_by_name): Delete.
12701
d7e39b9e
PS
127022002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12703
12704 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12705 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12706
76e42a4f
MH
127072002-02-13 Martin M. Hunt <hunt@redhat.com>
12708
aaa38bb5 12709 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12710 print_frame_info_listing_hook, set current_source_symtab.
12711
0a30fbc4
DJ
127122002-02-14 Daniel Jacobowitz <drow@mvista.com>
12713
12714 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12715 and remove unused $(INCLUDE_DIR).
12716 Add regcache.c to OBS.
12717 Add generated register protocol files to clean target.
12718 Update dependencies for new objects, obsolete old target code.
12719
12720 * gdbserver/linux-low.c: Remove all platform-specific code to
12721 new files. Remove various dead code. Update to use regcache
12722 functionality.
12723 * gdbserver/remote-utils.c (fromhex): Add return statement
12724 to quiet warning.
12725 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12726 constant.
12727 (input_interrupt): Add integer parameter to match prototype
12728 of a signal handler.
12729 (outreg): Use register_data ().
12730 (prepare_resume_reply): Use gdbserver_expedite_regs.
12731 * gdbserver/server.c (main): Dynamically allocate own_buf because
12732 PBUFSIZ is no longer constant. Use registers_to_string () and
12733 registers_from_string ().
12734 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12735 for error (), fatal (), and warning (). Update definition of
12736 PBUFSIZ to use regcache functionality. Add include guard.
12737 * gdbserver/utils.c (fatal): Add missing ``const''.
12738 (warning): New function.
12739
12740 * regformats/regdat.sh: Include "regcache.h" in generated files.
12741 Provide init_registers () function.
12742 * regformats/regdef.h: Add prototype for set_register_cache ().
12743 Add include guard.
12744
12745 * gdbserver/linux-arm-low.c: New file.
12746 * gdbserver/linux-i386-low.c: New file.
12747 * gdbserver/linux-ia64-low.c: New file.
12748 * gdbserver/linux-m68k-low.c: New file.
12749 * gdbserver/linux-mips-low.c: New file.
12750 * gdbserver/linux-ppc-low.c: New file.
12751 * gdbserver/linux-sh-low.c: New file.
12752
12753 * gdbserver/regcache.c: New file.
12754 * gdbserver/regcache.h: New file.
12755
12756 * gdbserver/low-linux.c: Removed obsolete file.
12757
4cc841d0
DJ
127582002-02-14 Daniel Jacobowitz <drow@mvista.com>
12759
12760 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12761 * config/i386/linux.mt: Likewise.
12762 * config/ia64/linux.mt: Likewise.
12763 * config/m68k/linux.mh: Likewise.
12764 * config/powerpc/linux.mh: Likewise.
12765 * config/mips/linux.mt: Likewise.
12766
12767 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12768
12769 * config/i386/i386lynx.mh: Mark gdbserver variables
12770 as (currently) obsolete for this target.
12771 * config/i386/nbsd.mt: Likewise.
12772 * config/i386/nbsdelf.mt: Likewise.
12773 * config/m32r/m32r.mt: Likewise.
12774 * config/m68k/m68klynx.mh: Likewise.
12775 * config/m68k/nbsd.mt: Likewise.
12776 * config/m68k/sun3os4.mh: Likewise.
12777 * config/mips/vr5000.mt: Likewise.
12778 * config/ns32k/nbsd.mt: Likewise.
12779 * config/pa/hppabsd.mh: Likewise.
12780 * config/pa/hppaosf.mh: Likewise.
12781 * config/powerpc/nbsd.mt: Likewise.
12782 * config/rs6000/rs6000lynx.mh: Likewise.
12783 * config/s390/s390.mt: Likewise.
12784 * config/s390/s390x.mt: Likewise.
12785 * config/sparc/sparclynx.mh: Likewise.
12786 * config/sparc/sun4os4.mh: Likewise.
12787 * config/i386/x86-64linux.mt: Likewise.
12788 * config/sparc/linux.mh: Likewise.
12789
a85f51e7
DJ
127902002-02-14 Daniel Jacobowitz <drow@mvista.com>
12791
12792 * configure.tgt: Configure gdbserver only for known working
12793 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12794 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12795 SUBDIRS if it is configured. Update comment for ${nativefile}.
12796 * configure: Regenerated.
12797
65554fef
MS
127982002-02-13 Michael Snyder <msnyder@redhat.com>
12799
670a52db
MS
12800 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12801
6dbdc4a3
MS
12802 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12803 (default_gcore_mach): Just return 0, work around a problem in bfd.
12804 (default_gcore_target): OK to return NULL if exec_bfd is null.
12805 (make_mem_sec): Use a cast, avoid a warning.
12806
12807 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12808 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12809 sizeof (host pointer) != sizeof (target pointer)).
12810 (procfs_make_note_section): Avoid overflow in psargs string.
12811
aaa38bb5 12812 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12813 implementation return an error.
12814
128152002-02-13 Rodney Brown <rbrown64@csc.com.au>
12816
12817 * procfs.c (procfs_make_note_section): Provide a default definition
12818 (for alpha-dec-osf4.0f). Fix typos.
12819
1e4d76e7
EZ
128202002-02-13 Elena Zannoni <ezannoni@redhat.com>
12821
12822 * linux-proc.c: Add include of regcache.h.
12823 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12824
b6d1a1d5
AC
128252002-02-13 Andrew Cagney <ac131313@redhat.com>
12826
12827 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12828 * memattr.c (create_mem_region): Disallow useless empty region.
12829 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12830 non-overlapping.
b6d1a1d5 12831
6c6ea35e
MC
128322002-02-13 Michael Chastain <mec@shout.net>
12833
12834 * defs.h: Kill CONST_PTR.
12835 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12836 * c-lang.c (c_builtin_types): Likewise.
12837 * ch-lang.c (ch_builtin_types): Likewise.
12838 * f-lang.c (f_builtin_types): Likewise.
12839 * language.c (unknown_builtin_types): Likewise.
12840 * m2-lang.c (m2_builtin_types): Likewise.
12841 * p-lang.c (pascal_builtin_types): Likewise.
12842 * scm-lang.c (c_builtin_types): Likewise.
12843
3e0b0f48
KS
128442002-02-13 Keith Seitz <keiths@redhat.com>
12845
12846 * arm-tdep.h (arm_get_next_pc): Add declaration.
12847
67255d04
RE
128482002-02-13 Richard Earnshaw <rearnsha@arm.com>
12849
12850 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12851 with other related struct-returning functions.
12852 (arm_extract_struct_value_address): New function.
12853 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12854 initialize float_format, double_format and long_double_format as
12855 appropriate to the endianness of the target.
12856 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12857 (arm_use_struct_convention): Delete declaration.
12858 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12859
079777f6
KS
128602002-02-13 Keith Seitz <keiths@redhat.com>
12861
12862 * defs.h (core_addr_to_string_nz): New function.
12863
34588f23
MK
128642002-02-13 Mark Kettenis <kettenis@gnu.org>
12865
12866 Apply missing bits of 2002-01-15 patch.
12867 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12868 (fill_fpregset): Use i387_fill_fsave.
12869
49b563f9
KS
128702002-02-12 Keith Seitz <keiths@redhat.com>
12871
49b563f9
KS
12872 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12873 (core_addr_to_string_nz): New function.
12874
aeb98c60
RE
128752002-02-11 Richard Earnshaw <rearnsha@arm.com>
12876
12877 * arm-linux-nat.c: Really include arm-tdep.h.
12878 * config/arm/tm-linux.h (struct type, struct value): Declare.
12879
65554fef
MS
128802002-02-11 Michael Snyder <msnyder@redhat.com>
12881
12882 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12883 (gcore section): Ifdef for Solaris and Unixware only.
12884 (procfs_do_thread_registers): Unixware needs one lwpstatus
12885 per thread (not one prstatus or pstatus).
12886 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12887 not over all gdb threads. For unixware, call elfcore_write_pstatus
12888 once before iterating over threads.
12889
34e8f22d
RE
128902002-02-11 Richard Earnshaw <rearnsha@arm.com>
12891
12892 * arm-tdep.h: New file.
12893 * arm-tdep.c: Include arm-tdep.h.
12894 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12895 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12896 (arm_print_float_info, arm_register_type, convert_to_extended)
12897 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12898 (arm_extract_return_value, arm_register_name): Make static.
12899 (arm_software_single_step): Similarly. Fix types in declaration.
12900 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12901 (arm_store_return_value, arm_store_struct_return): New functions.
12902 (arm_gdbarch_init): Register the above functions. Also register
12903 call_dummy_start_offset, sizeof_call_dummy_words,
12904 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12905 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12906 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12907 prologue_cache.saved_regs here, rather than ...
12908 (_initialize_arm_tdep): ... here.
12909 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12910 declarations.
12911 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12912 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12913 (arm_print_float_info, arm_register_type, convert_to_extended)
12914 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12915 (arm_extract_return_value, arm_register_name): Delete declarations.
12916 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12917 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12918 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12919 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12920 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12921 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12922 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12923 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12924 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12925 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12926 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12927 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12928 interface.
12929 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12930 * remote-rdi.c remote-rdp.c: Likewise.
12931 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12932 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12933 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12934 definition.
12935
12936 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12937 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12938 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12939 from non-ARM_ prefixed definitions.
12940 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12941 all uses of above.
12942 * remote-rdi.c remote-rdp.c: Likewise.
12943 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12944
148754e5
RE
129452002-02-11 Richard Earnshaw <rearnsha@arm.com>
12946
12947 * arm-tdep.c (arm_frameless_function_invocation)
12948 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12949 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12950 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12951 (arm_pop_frame, arm_get_next_pc): Make static.
12952 (arm_gdbarch_init): Register above in gdbarch structure.
12953 (arm_read_fp): Renamed from arm_target_read_fp.
12954 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12955 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12956 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12957 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12958 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12959 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12960 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12961 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12962 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12963 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12964 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12965
434d2d4f
DJ
129662002-02-10 Daniel Jacobowitz <drow@mvista.com>
12967
12968 * symtab.c (compare_search_syms): New function.
12969 (sort_search_symbols): New function.
12970 (search_symbols): Sort symbols after searching rather than
12971 before.
12972
55241689
AC
129732002-02-10 Andrew Cagney <ac131313@redhat.com>
12974
12975 * NEWS: Linux -> GNU/Linux.
12976
028c194b
AC
129772002-02-10 Andrew Cagney <ac131313@redhat.com>
12978
12979 * gdbarch.sh: For for level one methods, disallow a definition
12980 when partially multi-arched. Add comments explaining rationale.
12981 * gdbarch.h: Re-generate.
12982
6acf50cd
AC
129832002-02-10 Andrew Cagney <ac131313@redhat.com>
12984
12985 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12986 multi-arch partial.
aaa38bb5 12987
50248794
AC
129882002-02-10 Andrew Cagney <ac131313@redhat.com>
12989
12990 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12991 field. Use diff -u.
12992 * gdbarch.c: Re-generate.
12993
c30e0066
AC
129942002-02-10 Andrew Cagney <ac131313@redhat.com>
12995
9b56c5f3 12996 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12997 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12998 partial.
12999
6e6d6484
AC
130002002-02-10 Andrew Cagney <ac131313@redhat.com>
13001
13002 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13003 multi-arch partial.
13004 (PUSH_ARGUMENTS): Switch to using predefault.
13005 * gdbarch.c: Regenerate.
13006
c203844d
AC
130072002-02-10 Andrew Cagney <ac131313@redhat.com>
13008
13009 * valops.c (PUSH_ARGUMENTS): Delete definition.
13010 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13011 partial. Default to default_push_arguments.
13012 * gdbarch.h, gdbarch.c: Regenerate.
13013
b5a2688f
AC
130142002-02-09 Andrew Cagney <ac131313@redhat.com>
13015
13016 * defs.h (throw_exception): Rename return_to_top_level. Update
13017 comments.
13018 * utils.c (error_stream, internal_verror, quit): Ditto.
13019 * top.c (throw_exception, catcher): Ditto.
13020 * sparclet-rom.c (sparclet_load): Ditto.
13021 * remote.c (interrupt_query, minitelnet): Ditto.
13022 * remote-sds.c (interrupt_query): Ditto.
13023 * remote-mips.c (mips_error, mips_kill): Ditto.
13024 * ocd.c (interrupt_query): Ditto.
13025 * monitor.c (monitor_interrupt_query): Ditto.
13026 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13027 * target.h: Update comment.
aaa38bb5 13028
b5a2688f 13029 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13030
2fa5c1e0
AC
130312002-02-09 Andrew Cagney <ac131313@redhat.com>
13032
13033 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13034 default_double_format.
13035 * gdbarch.h, gdbarch.c: Re-generate.
13036 * findvar.c (floatformat_unknown): Delete variable definition.
13037 * doublest.h (floatformat_unknown): Delete variable declaration.
13038
da966255
JB
130392002-02-09 Jim Blandy <jimb@redhat.com>
13040
13041 * stabsread.c (read_type): Add code to parse Sun's syntax for
13042 prototyped function types.
13043
123a4891
AC
130442002-02-09 Andrew Cagney <ac131313@redhat.com>
13045
13046 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13047 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13048
fb39c8f3
PS
130492002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13050
13051 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13052 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13053 now _initialize_xcoffsolib gets called again and overrides the
13054 commands from solib.c in a native configuration.
13055
0b87a11d
MK
130562002-02-09 Mark Kettenis <kettenis@gnu.org>
13057
13058 * doublest.c (store_typed_floating): Don't try to return a value.
13059 Fixes PR gdb/290.
13060
bdc2fc72
JB
130612002-02-08 Jim Blandy <jimb@redhat.com>
13062
13063 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13064 is prototyped and has no arguments, print its argument list as
13065 `(void)'.
13066
da69bbcf
CD
130672002-02-08 Chris Demetriou <cgd@broadcom.com>
13068
13069 * MAINTAINERS (write-after-approval): Add myself.
13070 (paper-trail): I've escaped!
aaa38bb5 13071
b69571f5
CF
130722002-02-08 Christopher Faylor <cgf@redhat.com>
13073
13074 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13075 changes.
13076 (_initialize_check_for_gdb_ini): Ditto.
13077
f6871398
MH
130782002-02-08 Martin M. Hunt <hunt@redhat.com>
13079
13080 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13081 xaprintf -> xasprintf.
13082
4e52d31c
PM
130832002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13084
13085 * win32-nat.c: Remove use of printf and sprintf functions.
13086
39bbf761
RE
130872002-02-08 Richard Earnshaw <rearnsha@arm.com>
13088
13089 * arm-tdep.c (arm_frame_chain_valid): Make static.
13090 (arm_push_arguments): Likewise.
13091 (arm_gdbarch_init): New function.
13092 (_initialize_arm_tdep): Call it.
13093 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13094 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13095 (FRAME_CHAIN_VALID): Delete.
13096 (arm_frame_chain_valid): Delete declaration.
13097 (PUSH_ARGUMENTS): Delete.
13098 (arm_push_arguments): Delete declaration.
13099 (CALL_DUMMY_P): Delete.
13100
9c9532c9
CV
131012002-02-08 Andrew Cagney <ac131313@redhat.com>
13102 Corinna Vinschen <vinschen@redhat.com>
13103
13104 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13105 on builtin float types.
13106
4e8f7a8b
DJ
131072002-02-08 Daniel Jacobowitz <drow@mvista.com>
13108
13109 * utils.c: Include <curses.h> before "bfd.h".
13110 * tui/tui-hooks.c: Likewise.
13111 * tui/tui.c: Likewise.
13112 * tui/tuiCommand.c: Likewise.
13113 * tui/tuiData.c: Likewise.
13114 * tui/tuiDataWin.c: Likewise.
13115 * tui/tuiDisassem.c: Likewise.
13116 * tui/tuiGeneralWin.c: Likewise.
13117 * tui/tuiIO.c: Likewise.
13118 * tui/tuiLayout.c: Likewise.
13119 * tui/tuiRegs.c: Likewise.
13120 * tui/tuiSource.c: Likewise.
13121 * tui/tuiSourceWin.c: Likewise.
13122 * tui/tuiStack.c: Likewise.
13123 * tui/tuiWin.c: Likewise.
13124
cd4bffcf
EZ
131252002-02-07 Elena Zannoni <ezannoni@redhat.com>
13126
13127 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13128 to include space for pseudoregs as well. Update loops accordingly.
13129 (sh_fp_frame_init_saved_regs): Ditto.
13130 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13131
26806ce2
AC
131322002-02-07 Andrew Cagney <ac131313@redhat.com>
13133
13134 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13135 Add Richard Earnshaw to Arm maintainers.
13136
97fdab62
AC
131372002-02-07 Andrew Cagney <ac131313@redhat.com>
13138
a6b98203
AC
13139 * defs.h (warning_begin): Delete declaration.
13140
97fdab62
AC
13141 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13142 Delete macro.
13143
78b29b40
MS
131442002-02-07 Michael Snyder <msnyder@redhat.com>
13145
aaa38bb5 13146 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13147 Logic bug, remove misplaced else.
13148
d8849953
KD
131492002-02-07 Klee Dienes <klee@apple.com>
13150
13151 * fork-inferior.c (fork_inferior): Add '!' to the list of
13152 characters that need to be quoted when building a string for the
13153 shell. Quote '!' specifically with a backslash, since CSH chokes
13154 when trying to evaluate "str!str".
aaa38bb5 13155
095778a0
NC
131562002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13157
13158 * rdi-share/host.h: Only provide a typedef for bool if it is not
13159 defined.
13160
1900040c
MS
131612002-02-04 Michael Snyder <msnyder@redhat.com>
13162
13163 * breakpoint.h (enum bptype): Add new overlay event bp type.
13164 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13165
1900040c
MS
13166 * breakpoint.c (create_internal_breakpoint): New function.
13167 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13168 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13169 (create_thread_event_breakpoint): Ditto.
13170 (create_solib_event_breakpoint): Ditto.
13171 (create_overlay_event_breakpoint): New function.
13172 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13173 (update_breakpoints_after_exec): Delete and re-initialize
13174 overlay event breakpoints after an exec. Add FIXME comment
13175 about longjmp breakpoint.
13176 (print_it_typical): Ignore overlay event breakpoints.
13177 (print_one_breakpoint): Ditto.
13178 (mention): Ditto.
13179 (bpstat_what): Do not stop for overlay event breakpoints.
13180 (delete_breakpoint): Don't delete overlay event breakpoints.
13181 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13182 (breakpoint_re_set): Re-create overlay event breakpoint.
13183
13184 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13185 (overlay_manual_command): Disable overlay breakpoints.
13186 (overlay_off_command): Disable overlay breakpoints.
13187
082fc60d
RE
131882002-02-06 Richard Earnshaw <rearnsha@arm.com>
13189
13190 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13191 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13192 to here from config/tm-arm.h.
13193 (coff_sym_is_thumb): Make static.
13194 (arm_elf_make_msymbol_special): New function.
13195 (arm_coff_make_msymbol_special): New function.
13196 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13197 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13198 (coff_sym_is_thumb): Delete declaration.
13199 (arm_elf_make_msymbol_special): Declare.
13200 (arm_coff_make_msymbol_special): Declare.
13201 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13202 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13203
039c5766
RE
132042002-02-06 Richard Earnshaw <rearnsha@arm.com>
13205
13206 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13207
132082002-02-06 Richard Earnshaw <rearnsha@arm.com>
13209
13210 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13211 * gdbarch.c gdbarch.h: Regenerate.
13212 * arch-utils.c (default_print_float_info): New function.
13213 * arch-utils.h (default_print_float_info): Prototype it.
13214 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13215 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13216 (PRINT_FLOAT_INFO): Document it.
13217
13218 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13219 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13220 (PRINT_FLOAT_INFO): Define.
13221
58fa08f0
PM
132222002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13223
aaa38bb5 13224 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13225 Add typecast to sprintf argument to suppress a warning.
13226
7393af7c
PM
132272002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13228
58fa08f0 13229 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13230 to allow easier handling of pass state.
13231 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13232 that gives exception name and address.
13233 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13234 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13235 exceptions added.
aaa38bb5
AJ
13236 (child_continue): Correctly report continue_status.
13237 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13238 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13239 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13240 the exception should be passed to debuggee or not.
13241
6af4589c
MS
132422002-02-05 Michael Snyder <msnyder@redhat.com>
13243
13244 * regcache.c (fetch_register): Call target_fetch_register
13245 only if we don't call FETCH_PSEUDO_REGISTER.
13246 (store_register): Call target_store_register only if we
13247 don't call STORE_PSEUDO_REGISTER.
13248
a2cf933a
EZ
132492002-02-05 Elena Zannoni <ezannoni@redhat.com>
13250
13251 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13252 ELF_MAKE_MSYMBOL_SPECIAL.
13253 * gdbarch.c, gdbarch.h: Regenerate.
13254 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13255 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13256 * elfread.c (elf_symtab_read): Compile use of
13257 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13258 multiarched.
13259 * coffread.c (coff_symtab_read): Ditto, for
13260 COFF_MAKE_MSYMBOL_SPECIAL.
13261
6bb7be43
JB
132622002-02-05 Jim Blandy <jimb@redhat.com>
13263
13264 * solib-svr4.c (svr4_truncate_ptr): New function.
13265 (svr4_relocate_section_addresses): Do the address arithmetic with
13266 the appropriate truncation for target addresses, even when
13267 CORE_ADDR is larger than a target address.
13268
e18651ec
DJ
132692002-02-05 Daniel Jacobowitz <drow@mvista.com>
13270
13271 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13272 to (int *).
13273
6b2725be
DJ
132742002-02-05 Daniel Jacobowitz <drow@mvista.com>
13275
13276 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13277 code.
13278
fca9e603
DJ
132792002-02-05 Daniel Jacobowitz <drow@mvista.com>
13280
13281 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13282
6c537a52
DJ
132832002-02-05 Daniel Jacobowitz <drow@mvista.com>
13284
13285 * gdbserver/linux-low.c: Remove unused include files.
13286
d844cde6
DJ
132872002-02-05 Daniel Jacobowitz <drow@mvista.com>
13288
13289 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13290 (read_inferior_memory): Use it.
13291 (write_inferior_memory): Likewise.
13292
d07c63e7
DJ
132932002-02-05 Daniel Jacobowitz <drow@mvista.com>
13294
13295 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13296 grubbing through sys_errlist.
13297
da6d8c04
DJ
132982002-02-05 Daniel Jacobowitz <drow@mvista.com>
13299
13300 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13301
5b421780
PM
133022002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13303 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13304
9f60d481
AC
133052002-02-04 Andrew Cagney <ac131313@redhat.com>
13306
13307 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13308 (do_sfunc, set_cmd_sfunc): New functions.
13309
13310 * command.h (struct cmd_list_element): Add field func.
13311 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13312 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13313 * cli/cli-decode.h: Ditto.
13314
13315 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13316 (help_all, help_cmd_list): Ditto.
13317 (find_cmd, complete_on_cmdlist): Ditto.
13318 * top.c (execute_command): Ditto.
13319
13320 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13321 function.sfunc.
13322
13323 * infcmd.c (notice_args_read): Fix function signature.
13324
13325 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13326 * cli/cli-decode.c (add_set_cmd): Ditto.
13327 * utils.c (initialize_utils): Ditto.
13328 * maint.c (_initialize_maint_cmds): Ditto.
13329 * infrun.c (_initialize_infrun): Ditto.
13330 * demangle.c (_initialize_demangler): Ditto.
13331 * remote.c (add_packet_config_cmd): Ditto.
13332 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13333 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13334 * proc-api.c (_initialize_proc_api): Ditto.
13335 * kod.c (_initialize_kod): Ditto.
13336 * valprint.c (_initialize_valprint): Ditto.
13337 * top.c (init_main): Ditto.
13338 * infcmd.c (_initialize_infcmd): Ditto.
13339 * corefile.c (_initialize_core): Ditto.
13340 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13341 * arch-utils.c (initialize_current_architecture): Ditto.
13342 (_initialize_gdbarch_utils): Ditto.
13343 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13344
13345 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13346 * wince.c (_initialize_inftarg): Ditto.
13347 * symfile.c (_initialize_symfile): Ditto.
13348 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13349 * language.c (_initialize_language): Ditto.
13350 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13351
f9ba0717
MS
133522002-02-04 Michael Snyder <msnyder@redhat.com>
13353
13354 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13355
0c74b2a7
DJ
133562002-02-04 Daniel Jacobowitz <drow@mvista.com>
13357
13358 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13359 Add rules for building the register data files.
13360
c638789f
DJ
133612002-02-04 Daniel Jacobowitz <drow@mvista.com>
13362
13363 * regformats/regdat.sh: Add braces to the definition of
13364 expedite_regs_${arch}.
13365
db253027
DJ
133662002-02-04 Daniel Jacobowitz <drow@mvista.com>
13367
13368 * regformats/regdef.h (struct reg): Add comment describing the
13369 requirements for offset and size fields.
13370
206be19c
AS
133712002-02-04 Andreas Schwab <schwab@suse.de>
13372
13373 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13374 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13375
181c1381
RE
133762002-02-04 Richard Earnshaw <rearnsha@arm.com>
13377
13378 * gdbarch.sh (copyright): Update years in generated header.
13379 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13380 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13381 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13382 * dbxread.c: Likewise.
13383 * dwarfread.c: Likewise.
13384 * elfread.c: Likewise.
13385 * somread.c: Likewise.
13386
13387 * arm-tdep.c (arm_smash_text_address): New function.
13388 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13389
fa4ba8da
PM
133902002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13391
13392 Add support for hardware watchpoints on win32 native.
aaa38bb5 13393 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13394 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13395 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13396 of debug registers.
13397 (debug_registers_changed): New variable. Reflects when debug registers
13398 are changed and need to be written to inferior.
aaa38bb5 13399 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13400 was set, used when new threads are created.
13401 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13402 i386-nat code.
13403 (thread_rec): Set dr array if id is the thread of current_event .
13404 (child_continue, child_resume): Change the debug registers for all
13405 threads if debug_registers_changed.
13406 (child_add_thread): Change the debug registers if debug_registers_used.
13407 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13408 Link nm.h to new nm-cygwin.h file.
13409 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13410 of hardware registers.
13411
a73c86fb
AC
134122002-02-03 Andrew Cagney <ac131313@redhat.com>
13413
13414 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13415 Restore behavour broken by 2002-01-20 Andrew Cagney
13416 <ac131313@redhat.com> IEEE_FLOAT removal.
13417
acf5ed49
DJ
134182002-02-03 Daniel Jacobowitz <drow@mvista.com>
13419
13420 * c-valprint.c (c_val_print): Pass a proper valaddr to
13421 cp_print_class_method.
13422 * valops.c (search_struct_method): If there is only one method
13423 and args is NULL, return that method.
13424
493d28d5
DJ
134252002-02-03 Daniel Jacobowitz <drow@mvista.com>
13426
13427 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13428 accessing tag_name directly.
13429
7495dfdb
DJ
134302002-02-03 Daniel Jacobowitz <drow@mvista.com>
13431
13432 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13433 of accessing tag_name directly.
13434
dd6bda65
DJ
134352002-02-03 Daniel Jacobowitz <drow@mvista.com>
13436
13437 PR gdb/280
13438 * gdbtypes.c (replace_type): New function.
13439 * gdbtypes.h (replace_type): Add prototype.
13440 * stabsread.c (read_type): Use replace_type.
13441
88fe217c
RE
134422002-02-03 Richard Earnshaw <rearnsha@arm.com>
13443
13444 * Makefile.in (memattr.o): Add missing dependencies rule.
13445
e5d66720
PS
134462002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13447
13448 * breakpoint.c (break_at_finish_command): Really export.
13449 (break_at_finish_at_depth_command): Ditto.
13450 (tbreak_at_finish_command): Ditto.
13451 * hppa-tdep.c: Include completer.h.
13452 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13453 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13454
fffee0be
AC
134552002-02-01 Andrew Cagney <ac131313@redhat.com>
13456
13457 * utils.c (do_write): New function.
13458 (error_stream): Rewrite combining the code from error_begin and
13459 verror.
13460 (verror): Rewrite using error_stream.
13461 (error_begin): Delete function.
13462
255e7dbf
AC
134632002-02-01 Andrew Cagney <ac131313@redhat.com>
13464
13465 * utils.c (error_begin): Make static.
13466 * defs.h (error_begin): Delete declaration.
13467
13468 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13469 (decode_line_1): Use cplusplus_error instead of error_begin,
13470 cplusplus_hint and return_to_top_level.
13471 * coffread.c (coff_symfile_read): Use error instead of error_begin
13472 and return_to_top_level.
13473 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13474
ddfe3c15
AC
134752002-02-01 Andrew Cagney <ac131313@redhat.com>
13476
13477 * language.h (type_error, range_error): Make string parameter
13478 constant.
13479 * language.c (warning_pre_print): Delete extern declaration.
13480 * dwarfread.c (warning_pre_print): Ditto.
13481 * language.c (type_error, range_error): Rewrite to use verror and
13482 vwarning instead of warning_begin.
13483
03ac34d5
MS
134842002-02-01 Michael Snyder <msnyder@redhat.com>
13485
261c4ca2
MS
13486 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13487 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13488
e00d1dc8
AC
134892002-02-01 Andrew Cagney <ac131313@redhat.com>
13490
13491 * command.h (NO_FUNCTION): Delete macro.
13492 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13493 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13494 * tracepoint.c (_initialize_tracepoint): Ditto.
13495 * cli/cli-decode.c (add_set_cmd): Ditto.
13496 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13497
76b79d6e
DJ
134982002-02-01 Daniel Jacobowitz <drow@mvista.com>
13499
13500 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13501 Update ``this'' pointer when calling virtual functions.
13502
799f9e91
MS
135032002-02-01 Michael Snyder <msnyder@redhat.com>
13504
c7bd442c 13505 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13506 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13507
3cf384d4
DJ
135082002-02-01 Daniel Jacobowitz <drow@mvista.com>
13509
13510 * regformats/reg-arm.dat: New file.
13511 * regformats/reg-i386.dat: New file.
13512 * regformats/reg-ia64.dat: New file.
13513 * regformats/reg-m68k.dat: New file.
13514 * regformats/reg-mips.dat: New file.
13515 * regformats/reg-ppc.dat: New file.
13516 * regformats/reg-sh.dat: New file.
13517 * regformats/regdef.h: New file.
13518 * regformats/regdat.sh: New file.
13519
0defa245
RE
135202002-02-01 Richard Earnshaw <reanrsha@arm.com>
13521
13522 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13523 (arm_frame_args_address, arm_frame_locals_address): New functions.
13524 (arm_frame_num_args): New function.
13525 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13526 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13527 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13528
405f26e6
MS
135292002-01-31 Michael Snyder <msnyder@redhat.com>
13530
502fd408
MS
13531 * breakpoint.c (break_at_finish_command): Export.
13532 (break_at_finish_at_depth_command): Export.
13533 (tbreak_at_finish_command): Export.
d6020d45 13534 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13535 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13536 "txbreak" commands, which are HPPA specific.
502fd408 13537
7d35e135
MS
13538 * printcmd.c (disassemble_command): Remove an ancient
13539 artifact of an old merge.
13540
aaa38bb5 13541 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13542 Define enum constant values for overlay mode.
13543 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13544 (overlay_is_mapped, overlay_auto_command,
13545 overlay_manual_command): Ditto.
d874f1e2 13546
aaa38bb5
AJ
13547 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13548 breakpoint_here_p, breakpoint_inserted_here_p,
13549 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13550 describe_other_breakpoints, check_duplicates, clear_command):
13551 Coding standard fixes.
13552
8add0441 13553 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13554 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13555 code: check bfd SEC_READONLY flag for section.
13556
e351066e
AC
135572002-01-31 Andrew Cagney <ac131313@redhat.com>
13558
7d35e135 13559 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13560
8a48e967
DJ
135612002-01-30 Daniel Jacobowitz <drow@mvista.com>
13562
13563 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13564 data symbols, since we search based on textlow and texthigh.
13565 (find_pc_sect_symtab): Likewise.
13566
f5a96129
AC
135672002-01-30 Andrew Cagney <ac131313@redhat.com>
13568
13569 * defs.h (vwarning): Declare.
f5a96129
AC
13570 * utils.c (vwarning): New function.
13571 (warning): Call vwarning.
13572 (warning_begin): Delete function.
13573
13574 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13575 the warning message.
13576 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13577 warning_begin.
13578
cefd4ef5
MS
135792002-01-30 Michael Snyder <msnyder@redhat.com>
13580
1a703748
MS
13581 * NEWS: Mention "set trust-readonly-sections" command.
13582 Mention generate-core-file command.
cefd4ef5 13583
3a11626d
MS
135842002-01-15 Michael Snyder <msnyder@redhat.com>
13585
13586 * target.c: New command, "set trust-readonly-sections on".
13587 (do_xfer_memory): Honor the suggestion to trust readonly sections
13588 by reading them from the object file instead of from the target.
13589 (initialize_targets): Register command "set trust-readonly-sections".
13590
d1c7e53b
AC
135912002-01-29 Andrew Cagney <ac131313@redhat.com>
13592
13593 * parse.c (target_map_name_to_register): Simplify, search regs and
13594 pseudo-regs using a single loop.
13595
e2c9a72c
AC
135962002-01-30 Andrew Cagney <ac131313@redhat.com>
13597
13598 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13599
69824b4e
MK
136002002-01-15 Rodney Brown <rbrown64@csc.com.au>
13601
13602 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13603 * config/i386/i386v42mp.mh: Add i387-nat.o .
13604 * i386v4-nat.c: Include i387-nat.h.
13605 (supply_fpregset): Use i387_supply_fsave.
13606 (fill_fpregset): Use i387_fill_fsave.
13607
6eb69eab
RE
136082002-01-30 Richard Earnshaw <rearnsha@arm.com>
13609
13610 * arm-tdep.c (arm_call_dummy_words): Define.
13611 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13612 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13613 (CALL_DUMMY_WORDS): Define.
13614 (arm_call_dummy_words): Declare.
13615 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13616 (arm_linux_call_dummy_words): Declare.
13617
9852326a
AS
136182002-01-30 Andreas Schwab <schwab@suse.de>
13619
13620 * m68klinux-nat.c: Fix last change to use regcache_collect
13621 instead of referencing registers[] directly.
13622
977a3030
AC
136232002-01-29 Andrew Cagney <ac131313@redhat.com>
13624
13625 * parse.c (target_map_name_to_register): Delete code wrapped in
13626 #ifdef REGISTER_NAME_ALIAS_HOOK.
13627
2076c72b
MS
136282002-01-28 Michael Snyder <msnyder@redhat.com>
13629
13630 * regcache.c (legacy_read_register_gen): Need to be able to
13631 read pseudo-register as well as real register.
13632 (legacy_write_register_gen): Ditto.
13633
8fcc723b
AC
136342002-01-28 Andrew Cagney <ac131313@redhat.com>
13635
13636 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13637 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13638 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13639 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13640 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13641 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13642 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13643 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13644 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13645 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13646 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13647 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13648 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13649 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13650 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13651 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13652 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13653 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13654 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13655 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13656
afe64c1a
AC
136572002-01-28 Andrew Cagney <ac131313@redhat.com>
13658
13659 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13660 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13661 (initialize_current_architecture): Update target_byte_order using
13662 information from BFD.
aaa38bb5 13663 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13664 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13665
75bc7ddf
AC
136662002-01-28 Andrew Cagney <ac131313@redhat.com>
13667
13668 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13669 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13670
13671 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13672 #ifdef INVALID_FLOAT.
13673 * infcmd.c (do_registers_info): Ditto.
13674 * values.c (unpack_double): Ditto. Add comment.
13675
13676 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13677 already commented out.
13678
0280a90a
AS
136792002-01-26 Andreas Schwab <schwab@suse.de>
13680
13681 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13682 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13683 registers and add support for PTRACE_GETREGS.
13684
7072a954
AC
136852002-01-24 Andrew Cagney <ac131313@redhat.com>
13686
13687 GDB 5.1.1 released from 5.1 branch.
13688 * NEWS: Add 5.1.1 news.
13689 * README: Sync with 5.1 branch.
13690
86f902e0
FF
136912002-01-23 Fred Fish <fnf@redhat.com>
13692
13693 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13694 stabstring on initial malloc. Reallocing will copy it for us,
13695 if necessary.
13696
8af51c36
EZ
136972002-01-23 Elena Zannoni <ezannoni@redhat.com>
13698
aaa38bb5 13699 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13700 (HFILES_NO_SRCDIR): Remove hpread.h.
13701 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13702 (hpread.o): Update dependencies.
13703 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13704
13705 * hp-psymtab-read.c: Remove file.
13706 * hp-symtab-read.c: Remove file.
13707 * hpread.h: Remove file.
13708
13709 * hpread.c: Merge all contents of hp-psymtab-read.c,
13710 hp-symtab-read.c and hpread.h into this file, as it was prior to
13711 January 1999.
13712
13713 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13714 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13715 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13716 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13717
dc5cfeb6
EZ
137182002-01-23 Elena Zannoni <ezannoni@redhat.com>
13719
13720 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13721 fill_gregset): Call gdbarch_tdep() just once, assign result to
13722 variable and use that, instead of calling the function several
13723 times.
13724
ea87b71b
AO
137252002-01-24 Alexandre Oliva <aoliva@redhat.com>
13726
13727 * configure.host: Accept sparcv9 as alias for sparc64.
13728 * configure.tgt: Likewise.
13729
13fc0c2f
KB
137302002-01-22 Kevin Buettner <kevinb@redhat.com>
13731
13732 * solib-aix5.c (build_so_list_from_mapfile)
13733 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13734 arguments is not reversed.
13735 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13736 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13737
7bd872fe
EZ
137382002-01-22 Elena Zannoni <ezannoni@redhat.com>
13739
13740 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13741 modified version of obsolete sh_fetch_pseudo_register.
13742 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13743 (sh4_register_read): New function.
13744 (sh_pseudo_register_write): New function. Renamed and modified
13745 version of obsolete sh_store_pseudo_register.
13746 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13747 (sh4_register_write): New function.
13748 (sh_gdbarch_init): Remove setting of gdbarch function
13749 fetch_pseudo_register and store_pseudo_register. Remove setting of
13750 register_convert_to_raw, register_convert_to_virtual,
13751 register_convertible.
13752 (sh_sh4_register_convertible): Delete. No longer needed. All is
13753 taken care by architecture specific functions
13754 register_read/register_write.
13755 (sh_sh4_register_convert_to_virtual): Make static.
13756 (sh_sh4_register_convert_to_raw): Ditto.
13757
069e84fd
AC
137582002-01-22 Andrew Cagney <ac131313@redhat.com>
13759
13760 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13761 (floatformat_is_nan, floatformat_mantissa): Ditto.
13762
13763 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13764 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13765 builtin_type_ieee_double_little,
13766 builtin_type_ieee_double_littlebyte_bigword,
13767 builtin_type_m68881_ext, builtin_type_i960_ext,
13768 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13769 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13770 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13771 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13772
211a4f69
CV
137732002-01-22 Corinna Vinschen <vinschen@redhat.com>
13774
13775 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13776 parameter. Set frameless flag if it exists and depended of
13777 whether the scanned function is frameless or not.
13778 (xstormy16_skip_prologue): If function is frameless, return
13779 result of xstormy16_scan_prologue().
13780 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13781 call.
13782
f81353e4
EZ
137832002-01-21 Elena Zannoni <ezannoni@redhat.com>
13784
13785 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13786 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13787 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13788 sh_sh4_register_byte, sh_sh4_register_raw_size,
13789 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13790 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13791 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13792 sh_store_pseudo_register, sh_do_pseudo_register): Call
13793 gdbarch_tdep() just once, assign result to variable and use that,
13794 instead of calling the function several times.
13795
63c73a17
MK
137962002-01-20 Mark Kettenis <kettenis@gnu.org>
13797
13798 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13799 macros instead of LAST_FPU_CTRL_REGNUM.
13800 (store_register): Likewise.
13801
39ad761d
JB
138022002-01-21 Jim Blandy <jimb@redhat.com>
13803
13804 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13805 is up-to-date before running the program, not just when a program
13806 exits.
13807
3d74b771
FF
138082002-01-21 Fred Fish <fnf@redhat.com>
13809
13810 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13811 when we have found all instructions we are looking for.
13812
966fbf70
RE
138132002-01-21 Richard Earnshaw <rearnsha@arm.com>
13814
13815 * arm-tdep.c (arm_register_name): New function.
13816 (arm_registers_names): Make static.
13817 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13818 (arm_register_name): Declare.
13819 (REGISTER_NAME): Use it.
13820
c3b4394c
RE
138212002-01-21 Richard Earnshaw <rearnsha@arm.com>
13822 Kevin Buettner <kevinb@redhat.com>
13823
13824 Convert arm targets to new FRAME interface.
13825 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13826 (arm_frame_find_save_regs): Delete.
13827 (arm_frame_init_saved_regs): New.
13828 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13829 Allocate extra_info as required. Convert all uses of fsr.regs
13830 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13831 to use extra_info.
13832 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13833 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13834 (check_prologue_cache, save_prologue_cache): Likewise.
13835 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13836 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13837 (FRAME_FIND_SAVED_REGS): Delete.
13838 (arm_frame_find_saved_regs): Delete prototype.
13839 (arm_frame_init_saved_regs): New prototype.
13840 (FRAME_INIT_SAVED_REGS): Define.
13841
61d99182
AC
138422002-01-20 Andrew Cagney <ac131313@redhat.com>
13843
13844 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13845
6aaea291
AC
138462002-01-20 Andrew Cagney <ac131313@redhat.com>
13847
13848 From Jeff Law <law@redhat.com>:
13849 * infttrace.c: Include <sys/pstat.h>.
13850 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13851 exec file if the ttrace equivalent fails.
13852
15f698d2
AC
138532002-01-20 Andrew Cagney <ac131313@redhat.com>
13854
13855 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13856 (closeLogFile): Ditto.
13857
f86ddd7c
MC
138582002-01-20 Michael Chastain <mec@shout.net>
13859
13860 * top.c (print_gdb_version): Bump copyright year to 2002.
13861
904507ce
AC
138622002-01-20 Andrew Cagney <ac131313@redhat.com>
13863
13864 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13865 Zannoni and Eli Zaretskii.
13866
d7f0b9ce
DJ
138672002-01-20 Daniel Jacobowitz <drow@mvista.com>
13868
13869 * buildsym.c: Update copyright years.
13870 * c-typeprint.c: Likewise.
13871 * dwarf2read.c: Likewise.
13872 * f-typeprint.c: Likewise.
13873 * gdbtypes.c: Likewise.
13874 * gdbtypes.h: Likewise.
13875 * hp-symtab-read.c: Likewise.
13876 * hpread.c: Likewise.
13877 * mdebugread.c: Likewise.
13878 * p-typeprint.c: Likewise.
13879
3fd3d7d2
AC
138802002-01-20 Andrew Cagney <ac131313@redhat.com>
13881
13882 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13883 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13884 byte-order selectable.
13885 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13886 * arch-utils.c: Ditto.
13887 (set_endian): Ditto.
13888 (set_endian_from_file): Ditto.
13889 * gdbserver/low-sim.c (create_inferior): Ditto.
13890 * gdbarch.sh: Ditto.
13891 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13892 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13893 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13894 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13895 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13896 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13897 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13898 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13899 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13900 macro definition.
13901 * config/mips/tm-wince.h: Remove #undef of macro
13902 TARGET_BYTE_ORDER_SELECTABLE.
13903 * config/sh/tm-wince.h: Ditto.
13904
b02dede2
DJ
139052002-01-20 Daniel Jacobowitz <drow@mvista.com>
13906
13907 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13908 member function fields. Add accessor macro
13909 TYPE_FN_FIELD_ARTIFICIAL.
13910 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13911 * c-typeprint.c (c_type_print_base): Skip artificial member
13912 functions.
13913
c3643761
DJ
139142002-01-20 Daniel Jacobowitz <drow@mvista.com>
13915
13916 * f-typeprint.c: Delete unused function f_type_print_args.
13917 * p-typeprint.c: Delete unused function pascal_type_print_args.
13918
8176bb6d
DJ
139192002-01-20 Daniel Jacobowitz <drow@mvista.com>
13920
13921 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13922 comment. Add ``artificial'' to ``union field_location''.
13923
13924 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13925
13926 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13927 * mdebugread.c (parse_symbol): Likewise.
13928 * stabsread.c (define_symbol): Likewise.
13929 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13930 initializing TYPE_FIELD_BITPOS to n (obsolete).
13931 (hpread_doc_function_type): Likewise.
13932 * hpread.c (hpread_function_type): Likewise.
13933
7fd60527
AC
139342002-01-20 Andrew Cagney <ac131313@redhat.com>
13935
13936 * configure.in (host_makefile_frag): Only require a host makefile
13937 fragment when a native build.
13938 * configure: Re-generate.
13939
c2f05ac9
AC
139402002-01-20 Andrew Cagney <ac131313@redhat.com>
13941
13942 * doublest.h (floatformat_from_type): Declare.
13943 * doublest.c (floatformat_from_type): New function.
13944 (convert_typed_floating): Use.
13945
13946 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13947 call to function floatformat_from_type.
13948
13949 * gdbarch.sh (IEEE_FLOAT): Delete.
13950 * gdbarch.h, gdbarch.c: Re-generate.
13951 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13952 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13953 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13954 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13955 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13956 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13957 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13958 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13959 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13960 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13961 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13962 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13963
13964 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13965 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13966 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13967 * sh-tdep.c (sh_gdbarch_init): Ditto.
13968 * mips-tdep.c (mips_gdbarch_init): Ditto.
13969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13970 * cris-tdep.c (cris_gdbarch_init): Ditto.
13971
abf22e64
AJ
139722002-01-20 Jiri Smid <smid@suse.cz>
13973
13974 * configure.host, configure.tgt: Support x86-64.
13975 * NEWS: Note new target x86-64.
13976
b7c4cbf8
AJ
13977 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13978 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13979 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13980 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13981 x86-64-linux-nat.o): Fix dependencies.
13982
82600034
AC
139832002-01-19 Andrew Cagney <ac131313@redhat.com>
13984
13985 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13986 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13987 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13988 * config/sparc/xm-sun4os4.h: Delete file.
13989 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13990
bbe5c628
AC
139912002-01-19 Andrew Cagney <ac131313@redhat.com>
13992
13993 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13994 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13995 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13996 * config/i386/i386lynx.mh (XM_FILE): Delete.
13997 * config/rs6000/xm-rs6000ly.h: Delete file.
13998 * config/sparc/xm-sparclynx.h: Delete file.
13999 * config/m68k/xm-m68klynx.h: Delete file.
14000 * config/i386/xm-i386lynx.h: Delete file.
14001 * config/xm-lynx.h: Delete file.
14002 * config/djgpp/fnchange.lst: Update.
14003
f8453e34
JT
140042002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14005
14006 * alpha-tdep.c (alpha_register_byte): New function.
14007 (alpha_register_raw_size): Ditto.
14008 (alpha_register_virtual_size): Ditto.
14009 (alpha_skip_prologue_internal): Renamed from
14010 alpha_skip_prologue.
14011 (alpha_skip_prologue): New version that calls
14012 alpha_skip_prologue_internal.
14013 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14014 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14015 second argument from alpha_skip_prologue.
14016 (REGISTER_BYTE): Use alpha_register_byte.
14017 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14018 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14019 (FRAMELESS_FUNCTION_INVOCATION): Use
14020 generic_frameless_function_invocation_not.
14021 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14022 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14023
52d9e613
AC
140242002-01-19 Andrew Cagney <ac131313@redhat.com>
14025
14026 * config/mips/xm-news-mips.h: Delete file.
14027 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14028
14029 * config/m88k/xm-m88k.h: Delete file.
14030 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14031 * config/m88k/xm-delta88v4.h: Ditto.
14032 * config/m88k/xm-delta88.h: Ditto.
14033
14034 * config/alpha/xm-fbsd.h: Delete file.
14035 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14036
14037 * config/sparc/xm-sparc.h: Delete file.
14038 * Makefile.in (xm-sun4os4.h): Delete dependency.
14039 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14040 * config/sparc/xm-sun4os4.h: Ditto.
14041 * config/sparc/xm-linux.h: Ditto.
14042
14043 * config/i386/xm-windows.h: Delete file.
14044
2d1b2124
AC
140452002-01-19 Andrew Cagney <ac131313@redhat.com>
14046
14047 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14048 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14049
ee1f65f0
JT
140502002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14051
14052 * alpha-tdep.c (alpha_call_dummy_words): New.
14053 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14054 (CALL_DUMMY_P): Define.
14055 (CALL_DUMMY_WORDS): Define.
14056 (SIZEOF_CALL_DUMMY_WORDS): Define.
14057
98081e55
PB
140582002-01-19 Per Bothner <per@bothner.com>
14059
14060 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14061 isn't NULL, which can happen with some gcj-3.x-produced code.
14062
0d056799
JT
140632002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14064
14065 * alpha-tdep.c (alpha_register_virtual_type): New function.
14066 (alpha_init_frame_pc_first): Ditto.
14067 (alpha_fix_call_dummy): Ditto.
14068 (alpha_store_struct_return): Ditto.
14069 (alpha_extract_struct_value_address): Ditto.
14070 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14071 alpha_register_virtual_type.
14072 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14073 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14074 alpha_extract_struct_value_address.
14075 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14076 (INIT_FRAME_PC): Use init_frame_pc_noop.
14077 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14078
4604bcad
MK
140792002-01-19 Mark Kettenis <kettenis@gnu.org>
14080
14081 * i386gnu-nat.c: Include "i386-tdep.h".
14082 (fetch_fpregs): Simplify code dealing with uninitialized floating
14083 point states such that it doesn't require FP7_REGNUM.
14084
140f9984
JT
140852002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14086
abf22e64
AJ
14087 * alpha-tdep.c (frame_extra_info): New.
14088 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14089 frame->extra_info.
14090 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14091 (alpha_frame_saved_pc): Use frame->extra_info.
14092 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14093 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14094 (init_extra_frame_info): Rename to...
14095 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14096 (alpha_print_extra_frame_info): New function.
140f9984
JT
14097 (alpha_frame_locals_address): Ditto.
14098 (alpha_frame_args_address): Ditto.
abf22e64 14099 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14100 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14101 alpha_frame_args_address.
abf22e64 14102 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14103 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14104 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14105 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14106 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14107 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14108
d734c450
JT
141092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14110
14111 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14112 (alpha_cannot_fetch_register): Ditto.
14113 (alpha_cannot_store_register): Ditto.
14114 (alpha_register_convertible): Ditto.
14115 (alpha_use_struct_convention): Ditto.
14116 * config/alpha/tm-alpha.h: Update copyright years.
14117 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14118 (INNER_THAN): Use core_addr_lessthan.
14119 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14120 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14121 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14122 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14123 (FRAME_CHAIN): Remove unnecessary cast.
14124
b4ceaee6
AC
141252002-01-18 Andrew Cagney <ac131313@redhat.com>
14126
14127 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14128 obsolete.
14129
0a65a603
AC
141302002-01-18 Andrew Cagney <ac131313@redhat.com>
14131
14132 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14133 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14134 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14135 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14136 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14137 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14138 * x86-64-linux-nat.c: Ditto.
14139
636a6dfc
JT
141402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14141
abf22e64 14142 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14143 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14144 (REGISTER_NAME): Define.
14145
acceddb6
JT
141462002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14147
14148 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14149
ec32e4be
JT
141502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14151
14152 * alpha-tdep.c: Update copyright years.
14153 (alpha_next_pc): New function.
14154 (alpha_software_single_step): Ditto.
14155 * config/alpha/tm-alpha.h: Add prototype for
14156 alpha_software_single_step.
14157
e771a871
JT
141582002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14159
14160 * alphabsd-nat.c: Update copyright years.
14161 (fill_gregset): Use regcache_collect.
14162 (fill_fpregset): Likewise.
14163 (fetch_inferior_registers): Only fetch integer registers
14164 if requested to do so.
14165 (store_inferior_registers): Only store integer registers
14166 if requested to do so.
14167
7708fa01
AC
141682002-01-17 Andrew Cagney <ac131313@redhat.com>
14169
14170 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14171 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14172 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14173 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14174 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14175 * config/arm/linux.mh (XDEPFILES): Delete.
14176 * config/arm/nbsd.mh (XDEPFILES): Delete.
14177 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14178 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14179 * config/i386/i386m3.mh (XDEPFILES): Delete.
14180 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14181 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14182 * config/i386/fbsd.mh (XDEPFILES): Delete.
14183 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14184 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14185 * config/i386/i386v4.mh (XDEPFILES): Delete.
14186 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14187 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14188 * config/i386/i386aix.mh (XDEPFILES): Delete.
14189 * config/i386/go32.mh (XDEPFILES): Delete.
14190 * config/i386/cygwin.mh (XDEPFILES): Delete.
14191 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14192 * config/i386/i386mach.mh (XDEPFILES): Delete.
14193 * config/i386/i386v32.mh (XDEPFILES): Delete.
14194 * config/i386/linux.mh (XDEPFILES): Delete.
14195 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14196 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14197 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14198 * config/i386/i386sco.mh (XDEPFILES): Delete.
14199 * config/i386/i386v.mh (XDEPFILES): Delete.
14200 * config/i386/nbsd.mh (XDEPFILES): Delete.
14201 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14202 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14203 * config/i386/symmetry.mh (XDEPFILES): Delete.
14204 * config/i386/obsd.mh (XDEPFILES): Delete.
14205 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14206 * config/ia64/linux.mh (XDEPFILES): Delete.
14207 * config/ia64/aix.mh (XDEPFILES): Delete.
14208 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14209 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14210 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14211 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14212 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14213 * config/m68k/linux.mh (XDEPFILES): Delete.
14214 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14215 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14216 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14217 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14218 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14219 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14220 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14221 * config/m88k/delta88.mh (XDEPFILES): Delete.
14222 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14223 * config/m88k/m88k.mh (XDEPFILES): Delete.
14224 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14225 * config/mips/linux.mh (XDEPFILES): Delete.
14226 * config/mips/irix6.mh (XDEPFILES): Delete.
14227 * config/mips/irix5.mh (XDEPFILES): Delete.
14228 * config/mips/irix4.mh (XDEPFILES): Delete.
14229 * config/mips/irix3.mh (XDEPFILES): Delete.
14230 * config/mips/decstation.mh (XDEPFILES): Delete.
14231 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14232 (NATDEPFILES): Move core-aout.o to here.
14233 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14234 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14235 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14236 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14237 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14238 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14239 * config/pa/hpux11.mh (XDEPFILES): Delete.
14240 * config/powerpc/aix.mh (XDEPFILES): Delete.
14241 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14242 * config/powerpc/linux.mh (XDEPFILES): Delete.
14243 * config/romp/rtbsd.mh: Rename XDEPFILES.
14244 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14245 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14246 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14247 * config/s390/s390.mh (XDEPFILES): Delete.
14248 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14249 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14250 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14251 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14252 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14253 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14254 * config/sparc/linux.mh (XDEPFILES): Delete.
14255 * config/vax/vaxult.mh (XDEPFILES): Delete.
14256 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14257 * Makefile.in (DEPFILES): Remove XDEPFILES.
14258
375fc983
AC
142592002-01-17 Andrew Cagney <ac131313@redhat.com>
14260
14261 * utils.c (internal_verror): Fix comments, default is yes not no.
14262 Update queries to match. Default to quit and dump core.
14263
8926118c
AC
142642002-01-17 Andrew Cagney <ac131313@redhat.com>
14265
14266 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14267 copyright.
14268 * defs.h, event-top.c, gdbcmd.h: Ditto.
14269 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14270 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14271 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14272 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14273 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14274 * mi/mi-main.c:Ditto.
14275
14276 * stack.c, symfile.c: Update copyright.
14277
45b7b345
DJ
142782002-01-17 Daniel Jacobowitz <drow@mvista.com>
14279
db728ff7
DJ
14280 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14281 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14282 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14283 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14284
db728ff7
DJ
142852002-01-17 Daniel Jacobowitz <drow@mvista.com>
14286
14287 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14288 * gdbserver/low-lynx.c (myattach): Likewise.
14289 * gdbserver/low-nbsd.c (myattach): Likewise.
14290 * gdbserver/low-sim.c (myattach): Likewise.
14291 * gdbserver/low-sparc.c (myattach): Likewise.
14292 * gdbserver/low-sun3.c (myattach): Likewise.
14293
14294 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14295
db728ff7 14296 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14297 (main): Handle "--attach".
14298
8de3c354
AC
142992002-01-16 Andrew Cagney <ac131313@redhat.com>
14300
14301 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14302 maintainer.
14303
b0129042
DJ
143042002-01-15 Daniel Jacobowitz <drow@mvista.com>
14305
14306 * c-typeprint.c (is_type_conversion_operator): Add additional
14307 check for non-conversion operators.
14308
ba8679fb 143092002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14310
14311 * linux-proc.c: Add "info proc" command, a la procfs.c.
14312 (read_mapping): New function, abstract and re-use code.
14313 (linux_find_memory_regions): Use new func read_mapping.
14314 (linux_info_proc_cmd): New function, implement "info proc".
14315 (_initialize_linux_proc): Add new command "info proc".
14316
e4f9b4d5
MS
143172002-01-15 Michael Snyder <msnyder@redhat.com>
14318
14319 * symfile.c (generic_load): Use bfd_map_over_sections method
14320 instead of manipulating bfd structure members directly.
14321 (add_section_size_callback): New function, bfd sections callback
14322 used by generic_load.
14323 (load_sections_callback): New function, bfd sections callback
14324 used by generic_load.
14325
08cf96df
EZ
143262002-01-15 Elena Zannoni <ezannoni@redhat.com>
14327
abf22e64 14328 [Based on work by Jim Blandy]
08cf96df
EZ
14329 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14330 (builtin_type_vec128): Export.
14331 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14332 types.
14333 (builtin_type_vec128): New builtin type for 128 bit vector
14334 registers.
14335 (build_gdbtypes): Initialize builtin_type_v16qi and
14336 builtin_type_v8hi. Create the vec128 register builtin type
14337 structure.
14338 (build_builtin_type_vec128): New function.
abf22e64 14339 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14340 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14341 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14342 AltiVec register to new builtin type.
14343
d7242108
DJ
143442001-01-15 Daniel Jacobowitz <drow@mvista.com>
14345
14346 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14347 to make_cv_type.
14348
4ee3352d
AC
143492002-01-14 Andrew Cagney <ac131313@redhat.com>
14350
14351 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14352 CLEAN_UP_REGISTER_VALUE.
14353 * regcache.c (supply_register): Update only call.
14354
f015b2e7
AC
143552002-01-14 Andrew Cagney <ac131313@redhat.com>
14356
14357 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14358 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14359 a29k-*-vxworks* targets as obsolete.
14360
356ae49d
MS
143612002-01-14 Michael Snyder <msnyder@redhat.com>
14362
14363 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14364 until we can resolve portability issues.
14365 * gregset.h: Remove references to fpxregs.
14366 * gcore.c (gcore_command): Initialize note_sec to NULL.
14367
ade8f45e
AC
143682002-01-13 Andrew Cagney <ac131313@redhat.com>
14369
14370 * signals.c (target_signal_to_name): Rewrite. Only use
14371 signals[].name when in bounds and non-NULL.
abf22e64 14372
89c49e7a
AC
143732002-01-13 Andrew Cagney <ac131313@redhat.com>
14374
14375 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14376 * signals.c (target_signal_to_name): Verify that SIG is within the
14377 bounds of the signals array.
14378
4daa9f9f
AC
143792002-01-13 Andrew Cagney <ac131313@redhat.com>
14380
14381 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14382
ba4bbdcb
KS
143832002-01-13 Keith Seitz <keiths@redhat.com>
14384
14385 * stack.c (print_frame_info_base): Print the frame's pc
14386 only if when print_frame_info_listing_hook is not defined.
14387
575bbeb6
KS
143882002-01-13 Keith Seitz <keiths@redhat.com>
14389
14390 * varobj.c (varobj_set_value): Make sure that there were no
14391 errors evaluating the object before attempting to set its
14392 value.
14393 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14394 so this offset adjustment is no longer necessary.
14395 (create_child): Don't set the error flag if the child is
14396 a CPLUS_FAKE_CHILD.
14397 (value_of_child): If value_fetch_lazy fails, return NULL
14398 so that callers will be notified that an error occurred.
14399 (c_value_of_variable): Delay check of variable's validity
14400 until later. We actually want all structs and unions to have
14401 the value "{...}".
14402 Do not return "???" for variables which could not be evaluated.
14403 This error condition must be returned to the caller so that it
14404 can get the error condition from gdb.
14405 (cplus_name_of_child): Adjust index for vptr before figuring
14406 out the name of the child.
14407 (cplus_value_of_child): If a child's (real) parent is not valid,
14408 don't even bother trying to give a value for it. Just return
14409 an error. Change all instances in this function.
14410 (cplus_type_of_child): If our parent is one of the "fake"
14411 parents, we need to get at the type of the real parent, and
14412 derive the child's true type using this information.
14413
b76898ab
AC
144142002-01-13 Andrew Cagney <ac131313@redhat.com>
14415
14416 From 2002-01-09 John Marshall <johnm@falch.net>:
14417 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14418 sources.redhat.com, and tweak some related URLs which had
14419 suffered from linkrot.
14420
b6649e88
AC
144212002-01-13 Andrew Cagney <ac131313@redhat.com>
14422
14423 From Jeff law:
14424 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14425 structures passed in registers.
14426
82cc5033
EZ
144272002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14428
14429 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14430 white space which prevented compilation. Reported by DSK
14431 <dsk@student.unsw.edu.au>.
14432
ba5f2f8a
MS
144332002-01-11 Michael Snyder <msnyder@redhat.com>
14434
fbd35540
MS
14435 * symfile.c (build_section_addr_info_from_section_tab):
14436 Use bfd access method instead of manipulating bfd directly.
14437 (syms_from_objfile): Ditto.
14438 (simple_overlay_update_1): Ditto.
14439 (simple_overlay_update): Ditto.
14440 (generic_load): Ditto.
14441 (overlay_unmapped_address): FIXME comment, bfd access methods.
14442 (sections_overlap): FIXME comment, bfd access methods.
14443 (pc_in_mapped_range): FIXME comment, bfd access methods.
14444 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14445 (section_is_mapped): FIXME comment, bfd access methods.
14446 (section_is_overlay): FIXME comment, bfd access methods.
14447
ba5f2f8a
MS
14448 * symfile.c (generic_load): Whitespace and long line cleanups.
14449 Remove duplicate variable, change several local variables to
14450 more appropriate data types.
14451 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14452
17df2af6
AC
144532002-01-12 Andrew Cagney <ac131313@redhat.com>
14454
14455 From Peter Schauer:
14456 * language.c (longest_local_hex_string_custom): Use phex_nz to
14457 convert NUM to a hex string.
14458
ec920329
EZ
144592002-01-12 Elena Zannoni <ezannoni@redhat.com>
14460
14461 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14462 the function.
538a76d6 14463 Update Copyright year.
ec920329 14464
3abd2e01
AC
144652002-01-12 Andrew Cagney <ac131313@redhat.com>
14466
14467 * language.c (longest_raw_hex_string): Delete unused function.
14468
b21b22e0
PS
144692002-01-11 Petr Sorfa <petrs@caldera.com>
14470
14471 * MAINTAINERS (write-after-approval): Add myself.
14472 * dwarf2read.c (read_tag_string_type): Handling of
14473 DW_AT_byte_size.
14474 (read_tag_string_type): FORTRAN fix to prevent propagation of
14475 first string size.
14476 (set_cu_language): Handling of DW_LANG_Fortran95
14477
747fe712
RE
144782002-01-11 Richard Earnshaw <rearnsha@arm.com>
14479
14480 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14481 GETPID(inferior_ptid).
14482 (store_inferior_registers): Likewise.
14483
f1bea926
JM
144842002-01-10 Jason Merrill <jason@redhat.com>
14485
14486 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14487 Fix DW_OP_minus.
14488
ae940673
AC
144892002-01-10 Andrew Cagney <ac131313@redhat.com>
14490
14491 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14492 and bfd/elf32-sh-nbsd.c.
14493
00546b04
MS
144942002-01-10 Michael Snyder <msnyder@redhat.com>
14495
352ed7b4
MS
14496 * NEWS: Mention --pid and corefile/proc-id behavior change.
14497
c18be923
MS
14498 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14499 * gcore.c: Include cli/cli-decode.h instead of command.h.
14500
00546b04
MS
14501 * main.c (captured_main): Add new command line option "--pid".
14502 If the second command line argument (following the symbol-file)
14503 begins with a digit, try to attach to it before trying to open
14504 it as a corefile.
14505 (print_gdb_help): Document the "--pid" argument.
14506
db60ec62
EZ
145072002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14508
14509 * completer.c (command_completer): New function.
14510
14511 * completer.h <command_completer>: Add prototype.
14512
14513 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14514 completer for the "help" command.
14515
39c22d1a
JM
145162002-01-09 Jason Merrill <jason@redhat.com>
14517
14518 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14519
c564377f
MS
145202002-01-09 Michael Snyder <msnyder@redhat.com>
14521
975aec09
MS
14522 * i386-linux-nat.c (fill_fpxregset): Make global.
14523 (store_fpxregset): Ditto.
14524
db4a10fa
MS
14525 * gregset.h (gdb_fpxregset_t): Define.
14526 (supply_fpxregset): Prototype.
14527 (fill_fpxregset): Prototype.
14528
c564377f
MS
14529 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14530
c3d45d70
RE
145312002-01-09 Richard Earnshaw <rearnsha@arm.com>
14532
14533 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14534 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14535 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14536
fcc87af1
AC
145372002-01-09 Andrew Cagney <ac131313@redhat.com>
14538
14539 * MAINTAINERS: Update target maintainer rules so that any
14540 Maintainer can approve a tested patch for a maintenance-only
14541 target.
14542
dd96c05b
RE
145432002-01-09 Richard Earnshaw <rearnsha@arm.com>
14544
d4297db9 14545 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14546
d4297db9 14547 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14548 IN_SIGTRAMP.
14549
145fdc6e
MS
145502002-01-08 Michael Snyder <msnyder@redhat.com>
14551
14552 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14553 real name of the executable, rather than the /proc name.
14554
be4d1333
MS
145552002-01-03 Michael Snyder <msnyder@redhat.com>
14556
14557 Implement a "generate-core-file" command in gdb, save target state.
14558 * gcore.c: New file. Implement new command 'generate-core-file'.
14559 Save a corefile image of the current state of the inferior.
14560 * linux-proc.c: Add linux-specific code for saving corefiles.
14561 * target.h (struct target_ops): Add new target vectors for saving
14562 corefiles; to_find_memory_regions and to_make_corefile_notes.
14563 (target_find_memory_regions): New macro.
14564 (target_make_corefile_notes): New macro.
14565 * target.c (update_current_target): Inherit new target methods.
14566 (dummy_find_memory_regions): New place-holder method.
14567 (dummy_make_corefile_notes): New place-holder method.
14568 (init_dummy_target): Initialize new dummy target vectors.
14569 * exec.c (exec_set_find_memory_regions): New function.
14570 Allow the exec_ops vector for memory regions to be taken over.
14571 (exec_make_note_section): New function, target vector method.
14572 * defs.h (exec_set_find_memory_regions): Export prototype.
14573 * procfs.c (proc_find_memory_regions): New function, corefile method.
14574 (procfs_make_note_section): New function, corefile method.
14575 (init_procfs_ops): Set new target vector pointers.
14576 (find_memory_regions_callback): New function.
14577 (procfs_do_thread_registers): New function.
14578 (procfs_corefile_thread_callback): New function.
14579 * sol-thread.c (sol_find_memory_regions): New function.
14580 (sol_make_note_section): New function.
14581 (init_sol_thread_ops): Initialize new target vectors.
14582 * inftarg.c (inftarg_set_find_memory_regions): New function.
14583 Allow to_find_memory_regions vector to be taken over.
14584 (inftarg_set_make_corefile_notes): New function.
14585 Allow to_make_corefile_notes vector to be taken over.
14586 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14587 interface layer if not target_has_execution (may be a corefile).
14588 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14589 * config/sparc/sun4sol2.mh: Ditto.
14590 * config/alpha/alpha-linux.mh: Ditto.
14591 * config/arm/linux.mh: Ditto.
14592 * config/i386/x86-64linux.mh: Ditto.
14593 * config/ia64/linux.mh: Ditto.
14594 * config/m68k/linux.mh: Ditto.
14595 * config/mips/linux.mh: Ditto.
14596 * config/powerpc/linux.mh: Ditto.
14597 * config/sparc/linux.mh: Ditto.
14598
c6b92abd
MS
145992002-01-07 Michael Snyder <msnyder@redhat.com>
14600
14601 * arm-linux-nat.c: Remove references to regcache.c internal data
14602 (registers[] and register_valid[]).
14603
4b09dc8c
MS
146042002-01-07 Michael Snyder <msnyder@redhat.com>
14605
abf22e64
AJ
14606 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14607 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14608 symbol file and shlibs.
14609 * Makefile.in: Add rule for linux-proc.o.
14610 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14611 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14612 * config/arm/linux.mh: Ditto.
14613 * config/i386/linux.mh: Ditto.
14614 * config/i386/x86-64linux.mh: Ditto.
14615 * config/ia64/linux.mh: Ditto.
14616 * config/m68k/linux.mh: Ditto.
14617 * config/mips/linux.mh: Ditto.
14618 * config/powerpc/linux.mh: Ditto.
14619 * config/sparc/linux.mh: Ditto.
14620
c25b74ac
PM
146212002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14622
14623 * win32-nat.c: Add i386-tdep.h dependency.
14624
94cd915f
MS
146252002-01-07 Michael Snyder <msnyder@redhat.com>
14626
c7cccb76
MS
14627 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14628 instead of bfd_get_arch_size. Don't bail out just because
14629 there's no exec_bfd.
abf22e64 14630
34c0bd93
MS
14631 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14632 * p-valprint.c (pascal_object_print_value): Ditto.
14633 * somread.c (som_symtab_read): Ditto.
14634 * symfile.c (simple_free_overlay_region_table): Ditto.
14635 * valops.c (value_assign): Ditto.
14636
21c1c920
MS
14637 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14638 use tilde_expand and strerror for opening save-tracepoints file.
14639
5bbd998e
MS
14640 * thread-db.c (thread_db_new_objfile): Indendation fix.
14641
94cd915f
MS
14642 * infptrace.c (GDB_MAX_ALLOCA): New define.
14643 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14644 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14645 can be overridden with whatever value is appropriate to the host).
14646 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14647 alloca to allocate potentially large buffer.
14648 * rs6000-nat.c (child_xfer_memory): Ditto.
14649 * symm-nat.c (child_xfer_memory): Ditto.
14650 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14651
494e8a93
JSC
146522002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14653
14654 From Nick Clifton <nickc@redhat.com>
14655 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14656
d0e1d48e
MS
146572002-01-07 Michael Snyder <msnyder@redhat.com>
14658
abf22e64 14659 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14660 Don't use exec_bfd if it's NULL.
14661
290b2c7a
MK
146622002-01-06 Mark Kettenis <kettenis@gnu.org>
14663
abf22e64 14664 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14665
aef21287
AC
146662002-01-06 Andrew Cagney <ac131313@redhat.com>
14667
14668 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14669 * gnu-nat.c: Ditto.
14670
30efa627
AC
146712002-01-06 Andrew Cagney <ac131313@redhat.com>
14672
14673 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14674 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14675 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14676 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14677 z8k-coff have not been multi-arched. Update z8k-coff build
14678 status.
14679
9b4ff276
AC
146802002-01-06 Andrew Cagney <ac131313@redhat.com>
14681
14682 * MAINTAINERS: Mark a29k target as obsolete.
14683 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14684 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14685 comments.
14686 * NEWS: Note that a29k targets are obsolete.
14687 * a29k-tdep.c: Mark as obsolete.
14688 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14689 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14690 a29k-*-vxworks* targets as obsolete.
14691 * remote-adapt.c: Obsolete.
14692 * remote-eb.c: Obsolete.
14693 * remote-mm.c: Obsolete.
14694 * remote-udi.c: Obsolete.
14695 * config/a29k/a29k-udi.mt: Obsolete.
14696 * config/a29k/a29k.mt: Obsolete.
14697 * config/a29k/tm-a29k.h: Obsolete.
14698 * config/a29k/tm-vx29k.h: Obsolete.
14699 * config/a29k/vx29k.mt: Obsolete.
14700
a9011d31
AC
147012002-01-05 Andrew Cagney <ac131313@redhat.com>
14702
14703 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14704 with BFD_ENDIAN_BIG.
14705
9299404e
AC
147062002-01-05 Andrew Cagney <ac131313@redhat.com>
14707
14708 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14709 * configure, config.in: Re-generate.
14710 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14711 * defs.h: Do not include <endian.h>.
14712
7e89e357
JT
147132002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14714
14715 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14716 * config.in: Regenerate.
14717 * configure.in: Update copyright years.
14718 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14719 * configure: Regenerate.
14720 * i386bsd-nat.c: Update copyright years.
14721 (fill_gregset): Use regcache_collect.
14722 (fetch_inferior_registers): Only fetch integer registers
14723 if requested to do so. Add support for XMM registers
14724 using PT_GETXMMREGS.
14725 (store_inferior_registers): Only store integer registers
14726 if requested to do so. Add support for XMM registers
14727 using PT_SETXMMREGS.
14728 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14729 (store_inferior_registers): Remove.
14730 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14731 (fetch_elfcore_registers): New function.
14732 (i386nbsd_elfcore_fns): New.
14733 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14734 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14735 i386bsd-nat.o.
14736 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14737 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14738 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14739 * config/i386/tm-nbsd.h: Update copyright years.
14740 (HAVE_SSE_REGS): Define.
14741 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14742 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14743 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14744 (SIGCONTEXT_PC_OFFSET): Remove.
14745 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14746
a752853e
AC
147472002-01-05 Andrew Cagney <ac131313@redhat.com>
14748
14749 * configure.tgt: Remove powerpc-*-macos* target.
14750 * config/m68k/xm-mpw.h: Delete file.
14751 * config/xm-mpw.h: Delete file.
14752 * ser-mac.c: Delete file.
14753 * mpw-make.sed: Delete file.
14754 * mpw-config.in: Delete file.
14755 * mac-xdep.c: Delete file.
14756 * mac-gdb.r: Delete file.
14757 * mac-defs.h: Delete file.
14758 * mac-nat.c: Delete file.
14759 * config/powerpc/macos.mh: Delete file.
14760 * config/powerpc/macos.mt: Delete file.
14761 * config/powerpc/nm-macos.h: Delete file.
14762 * config/powerpc/tm-macos.h: Delete file.
14763 * source.c (openp, open_source_file): Remove obsolete code.
14764 * top.c (gdb_readline): Ditto.
14765 * utils.c (query): Ditto.
14766 * event-top.c (display_gdb_prompt): Ditto.
14767 * Makefile.in (ser-mac.o): Delete obsolete target.
14768 * NEWS: Update.
14769
d7449b42
AC
147702002-01-04 Andrew Cagney <ac131313@redhat.com>
14771
14772 * defs.h (BIG_ENDIAN): Delete macro definition.
14773 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14774 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14775 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14776 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14777 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14778 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14779 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14780 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14781 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14782 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14783 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14784 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14785 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14786 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14787 * gdbarch.c: Re-generate.
14788
356374e8
DJ
147892002-01-04 Daniel Jacobowitz <drow@mvista.com>
14790
14791 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14792 for core files.
14793
a2b8f8f8
JT
147942002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14795
14796 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14797
12466af9
AC
147982002-01-04 Andrew Cagney <ac131313@redhat.com>
14799
14800 * value.h (value_ptr): Delete typedef.
14801
3549ab40
JT
148022002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14803
14804 * i386nbsd-nat.c: Update copyright years.
14805 Include i386-tdep.h.
14806
fedbd091
EZ
148072002-01-04 Elena Zannoni <ezannoni@redhat.com>
14808
14809 * stabsread.c: Update copyright years.
14810
14811 From Debashis Mahata <debashis.mahata@wipro.com>:
14812 (read_struct_fields): Deal with Sun C compiler erroneous stab
14813 output for structs and unions.
fec8b34f 14814 Fix PR gdb/269.
fedbd091 14815
eb43544b
DJ
148162002-01-04 Daniel Jacobowitz <drow@mvista.com>
14817
14818 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14819 prototype.
14820
1514d34e
DJ
148212002-01-04 Daniel Jacobowitz <drow@mvista.com>
14822
14823 * cp-abi.c: Fix whitespace.
14824 (baseclass_offset): New wrapper function.
14825 * cp-abi.h (baseclass_offset): Add prototype.
14826 (struct cp_abi_ops): Add baseclass_offset pointer.
14827
14828 * valops.c (vb_match): Move to...
14829 * gnu-v2-abi.c (vb_match): here.
14830 * valops.c (baseclass_offset): Move to...
14831 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14832
14833 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14834
14835 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14836 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14837 * hpacc-abi.c (init_hpacc_ops): Likewise.
14838
7f8c9282
DJ
148392002-01-04 Daniel Jacobowitz <drow@mvista.com>
14840
14841 * valops.c (find_overload_match): Accept obj as a
14842 reference parameter. Update it before returning.
14843 * value.h (find_overload_match): Update prototype.
14844 * eval.c (evaluate_subexp_standard): Pass object to
14845 find_overload_match by reference.
14846
f23631e4
AC
148472002-01-03 Andrew Cagney <ac131313@redhat.com>
14848
14849 * valarith.c: Replace value_ptr with struct value pointer. Remove
14850 register attribute from value declarations.
14851 * valops.c: Ditto.
14852 * value.h: Ditto.
14853 * scm-lang.c (scm_lookup_name): Ditto.
14854
79e10fab 148552002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14856
79e10fab
AC
14857 Abstract the functionality of iterating over mapped memory
14858 regions into a general purpose iterator function.
abf22e64 14859 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14860 iterator for memory sections.
14861 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14862 (solib_mappings_callback): New function, callback for above.
14863 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14864 (info_mappings_callback): New function, callback for above.
14865
14866 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14867
c5ad026a
MK
148682002-01-01 Mark Kettenis <kettenis@gnu.org>
14869
d2a7c97a
MK
14870 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14871 * i386-tdep.c: Include "elf-bfd.h".
14872 (process_note_abi_tag_sections): New function.
14873 (i386_gdbarch_init): Add code to recognize various OS/ABI
14874 combinations.
14875
c5ad026a
MK
14876 * maint.c (_initialize_maint_cmds): Add missing \ in
14877 string-literal.
14878
a1a5b71e 14879For older changes see ChangeLog-2001
c906108c
SS
14880\f
14881Local Variables:
14882mode: change-log
14883left-margin: 8
14884fill-column: 74
14885version-control: never
14886End:
This page took 1.64792 seconds and 4 git commands to generate.