* hppa-hpux-tdep.c: New file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
2
3 * infrun.c (handle_inferior_event): Rearrange code to resume if
4 no catchpoint triggers for an event.
5
6 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
7
8 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
9 and TARGET_WAITKIND_VFORKED cases.
10
11 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
12
13 * infrun.c (handle_inferior_event): Assume that catchpoints
14 are not affected by DECR_PC_AFTER_BREAK.
15
16 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
17
18 * target.c (update_current_target): Don't inherit DONT_USE.
19 * target.h (struct target_ops): Remove DONT_USE.
20 (target_next): Remove macro.
21
22 2002-12-15 Mark Kettenis <kettenis@gnu.org>
23
24 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
25
26 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
27
28 * arm-tdep.c (convert_from_extended): New argument to hold the
29 type of floating point result we want to convert to. Make input
30 argument const. Fix all callers.
31 (convert_to_extended): Similarly.
32 (arm_extract_return_value): Now takes a regcache argument. Change
33 code to use regcache accessor functions. Correctly extract
34 smaller-than-word results on big-endian machines.
35 (arm_store_return_value): Now takes a regcache argument. Change
36 code to use regcache accessor functions. Correctly zero/sign extend
37 smaller than word results before storing into r0.
38 (arm_gdbarch_init): Register new-style extract_return_value and
39 store_return_value functions.
40
41 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
42
43 * thread-db.c (thread_from_lwp): Uniquify error msg.
44 (lwp_from_thread): Ditto.
45 (check_event): Ditto.
46 (find_new_threads_callback): Ditto.
47 (thread_db_pid_to_str): Ditto.
48
49 2002-12-13 Andrew Cagney <ac131313@redhat.com>
50
51 * frame.h (get_frame_saved_regs): Declare.
52 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
53 pointer.
54 * frame.c (get_frame_saved_regs): New function.
55 (frame_saved_regs_zalloc): Return the allocated saved_regs.
56
57 2002-12-13 Andrew Cagney <ac131313@redhat.com>
58
59 * frame.c (deprecated_update_current_frame_pc_hack): New
60 function.
61 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
62 * infrun.c (normal_stop): Use said function instead of directly
63 modifying the frame's PC.
64
65 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
66
67 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
68
69 2002-12-13 Kevin Buettner <kevinb@redhat.com>
70
71 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
72 config/mips/tm-irix6.h (NUM_REGS): Delete.
73 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
74 (temp_saved_regs): Declare as a pointer rather than an array.
75 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
76 that ``temp_saved_regs'' has storage allocated to it and that
77 it's the correct size.
78
79 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
80
81 * defs.h (init_last_source_visited): New prototype.
82 (add_path): Ditto.
83 * source.c (add_path): New function that adds to a specified path.
84 (mod_path): Change to call add_path.
85 (init_last_source_visited): New function to allow interfaces to
86 initialize static variable: last_source_visited. Part of fix
87 for PR gdb/741.
88 * Makefile.in: Add support for mi/mi-cmd-env.c.
89
90 2002-12-13 Andrew Cagney <ac131313@redhat.com>
91
92 * frame.h (frame_id_unwind): Declare.
93 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
94 id_unwind_cache.
95 (frame_id_unwind_ftype): Declare.
96 * frame.c (frame_id_unwind): New function.
97 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
98 (create_new_frame, get_prev_frame): Pass id_unwind to
99 set_unwind_by_pc.
100 (frame_saved_regs_id_unwind): New function.
101 (frame_saved_regs_id_unwind): New function.
102 * dummy-frame.c (dummy_frame_id_unwind): New function.
103 (struct dummy_frame): Add field id.
104 (generic_push_dummy_frame): Initialize `id'.
105 * dummy-frame.h (dummy_frame_id_unwind): Declare.
106
107 2002-12-13 Andrew Cagney <ac131313@redhat.com>
108
109 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
110 pass that to set_momentary_breakpoint. Move comments to where they
111 belong.
112 * frame.h (set_current_frame): Delete declaration.
113 * frame.c (set_current_frame): Delete function.
114
115 2002-12-13 Andrew Cagney <ac131313@redhat.com>
116
117 * frame.c (frame_extra_info_zalloc): New function.
118 * frame.h (frame_extra_info_zalloc): Declare.
119
120 2002-12-13 Joel Brobecker <brobecker@gnat.com>
121
122 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
123 in the previous prototype change to set_momentary_breakpoint.
124
125 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
126
127 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
128 and saw_child_exec.
129 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
130 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
131 (stop_stepping): Remove outdated check for child vfork events.
132
133 2002-12-12 Andrew Cagney <ac131313@redhat.com>
134
135 * GDB 5.3 released from gdb_5_3-branch.
136
137 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
138
139 * corelow.c (init_core_ops): Delete references to to_require_attach
140 and to_require_detach.
141 * exec.c (init_exec_ops): Likewise.
142 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
143 hppa_require_detach directly.
144 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
145 * inftarg.c (child_detach): Remove.
146 (child_detach_from_process): Rename to child_detach, remove
147 after_fork argument.
148 (child_attach): Remove.
149 (child_attach_to_process): Rename to child_attach, remove after_fork
150 argument.
151 (init_child_ops): Delete references to to_require_attach
152 and to_require_detach.
153 * infttrace.c (hppa_require_attach): Update comment.
154 * target.c (cleanup_target, update_current_target)
155 (init_dummy_target, setup_target_debug): Delete references to
156 to_require_attach and to_require_detach.
157 (find_default_require_detach, find_default_require_attach)
158 (debug_to_require_attach, debug_to_require_detach): Remove
159 functions.
160 * target.h (struct target_ops): Remove to_require_attach
161 and to_require_detach.
162 (target_require_attach, target_require_detach): Delete macros.
163 (find_default_require_detach, find_default_require_attach): Delete
164 prototypes.
165 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
166
167 2002-12-11 Andrew Cagney <ac131313@redhat.com>
168
169 * frame.c (get_frame_extra_info): New function.
170 * frame.h (get_frame_extra_info): Declare.
171
172 2002-12-11 Andrew Cagney <ac131313@redhat.com>
173
174 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
175 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
176 with `struct frame_id'.
177 (set_longjmp_resume_breakpoint): Ditto.
178 * infrun.c (handle_inferior_event): Update.
179 * breakpoint.c (watch_command_1, until_break_command): Update.
180 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
181 (handle_inferior_event, step_over_function): Update.
182 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
183 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
184 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
185 * infcmd.c (finish_command, run_stack_dummy): Update.
186
187 2002-12-11 Kevin Buettner <kevinb@redhat.com>
188
189 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
190 (dwarf2_non_const_array_bound_ignored)
191 (dwarf2_missing_line_number_section)
192 (dwarf2_statement_list_fits_in_line_number_section)
193 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
194 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
195 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
196 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
197 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
198 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
199 (dwarf2_missing_member_fn_type_complaint)
200 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
201 (dwarf2_const_value_length_mismatch)
202 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
203 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
204 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
205 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
206 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
207 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
208 complaints using deprecated struct..
209 (dwarf2_non_const_array_bound_ignored_complaint)
210 (dwarf2_complex_location_expr_complaint)
211 (dwarf2_unsupported_at_frame_base_complaint)
212 (dwarf2_const_value_length_mismatch_complaint)
213 (dwarf2_macros_too_long_complaint)
214 (dwarf2_macro_malformed_definition_complaint)
215 (dwarf2_invalid_attrib_class_complaint): New functions.
216 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
217 (read_structure_scope, read_array_type, read_common_block)
218 (read_tag_pointer_type, read_base_type, read_partial_die)
219 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
220 (new_symbol, dwarf2_const_value, read_type_die)
221 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
222 (parse_macro_definition, dwarf_decode_macros): Replace calls to
223 complain() with, possibly indirect, calls to complaint().
224
225 2002-12-11 Andrew Cagney <cagney@redhat.com>
226
227 * frame.c (deprecated_get_frame_saved_regs): Rename
228 get_frame_saved_regs.
229 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
230 * sparc-tdep.c: Update.
231 * hppa-tdep.c: Update.
232 * h8500-tdep.c: Update.
233
234 2002-12-11 Kevin Buettner <kevinb@redhat.com>
235
236 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
237 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
238 ``char *'' for return and parameter types.
239 * gdbarch.h, gdbarch.c: Regenerate.
240 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
241 return type from ``char *'' to ``const char *''.
242 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
243 const.
244
245 2002-12-11 Mark Kettenis <kettenis@gnu.org>
246
247 * i386-tdep.c: Include "dummy-frame.h".
248 (i386_frame_chain, i386_frame_saved_pc): Replace
249 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
250 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
251
252 2002-12-10 Andrew Cagney <cagney@redhat.com>
253
254 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
255 Change to a function with predicate.
256 * gdbarch.h, gdbarch.c: Re-generate.
257 * frame.c (get_prev_frame): Update. Test
258 DEPRECATED_INIT_FRAME_PC_P.
259 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
260 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
261 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
262 * alpha-tdep.c (alpha_gdbarch_init): Update.
263 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
264 * mips-tdep.c (mips_gdbarch_init): Update.
265 * i386-interix-tdep.c (i386_interix_init_abi): Update.
266 * arm-tdep.c: Update comments.
267 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
268 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
269 * frv-tdep.c (frv_gdbarch_init): Ditto.
270 * x86-64-tdep.c (x86_64_init_abi): Ditto.
271 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
272 * s390-tdep.c (s390_gdbarch_init): Ditto.
273 * v850-tdep.c (v850_gdbarch_init): Ditto.
274 * vax-tdep.c (vax_gdbarch_init): Ditto.
275 * sh-tdep.c (sh_gdbarch_init): Ditto.
276 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
278 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
280 * i386-tdep.c (i386_gdbarch_init): Ditto.
281 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
282 * cris-tdep.c (cris_gdbarch_init): Ditto.
283 * avr-tdep.c (avr_gdbarch_init): Ditto.
284 * arm-tdep.c (arm_gdbarch_init): Ditto.
285 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
286 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
287
288 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
289
290 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
291 CHILD_FOLLOW_FORK.
292 * hppah-nat.c (saved_vfork_pid): Add.
293 (child_post_follow_vfork): Remove.
294 (child_follow_fork): New function.
295 (child_wait): Call detach_breakpoints after receiving the child vfork.
296 Call child_resume directly instead of going through resume ().
297 Make sure we have the exec before reporting the vfork.
298 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
299 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
300 (follow_fork): New function. Call target_follow_fork.
301 (follow_inferior_reset_breakpoints): New function broken out from
302 old follow_inferior_fork.
303 (resume): Remove hack to follow exec after vfork.
304 * inftarg.c (child_post_follow_vfork): Remove.
305 (child_follow_fork): New function.
306 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
307 * target.c (cleanup_target): Replace to_post_follow_vfork with
308 to_follow_fork.
309 (update_current_target): Likewise.
310 (setup_target_debug): Likewise.
311 (debug_to_post_follow_vfork): Remove.
312 (debug_to_follow_fork): New function.
313 * target.h (struct target_ops): Replace to_post_folow_vfork with
314 to_follow_fork.
315 (child_post_follow_vfork): Remove prototype.
316 (child_follow_fork): Add prototype.
317 (target_post_follow_vfork): Remove macro.
318 (target_follow_fork): Add macro.
319
320 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
321
322 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
323 (child_post_follow_vfork): Cancel pending exec event if we follow
324 the parent.
325 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
326 events have been processed. Return a fake TARGET_WAITKIND_EXECD
327 event at the following wait call if necessary.
328 * infrun.c (follow_vfork): Don't follow_exec here.
329 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
330 case about HP/UX 10.20. Remove code pushed down to
331 hppah-nat.c:child_wait.
332 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
333 vfork_in_flight is set.
334
335 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
336
337 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
338 for the parent's fork event.
339 * infrun.c (handle_inferior_event): Only expect one fork event.
340 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
341 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
342
343 2002-12-10 Andrew Cagney <ac131313@redhat.com>
344
345 * PROBLEMS: Delete reference to PR gdb/725.
346
347 * MAINTAINERS (gdb.c++): Add David Carlton.
348
349 2002-12-09 David Carlton <carlton@math.stanford.edu>
350
351 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
352 * cli/cli-cmds.c: Ditto.
353
354 2002-12-09 Andrew Cagney <cagney@redhat.com>
355
356 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
357 function address in <>.
358 * gdbarch.c: Re-generate.
359
360 2002-12-09 David Carlton <carlton@math.stanford.edu>
361
362 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
363
364 2002-12-09 David Carlton <carlton@math.stanford.edu>
365
366 * linespec.c (symtab_from_filename): New function.
367 (decode_line_1): Move code into symtab_from_filename.
368
369 2002-12-09 Kevin Buettner <kevinb@redhat.com>
370
371 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
372
373 2002-12-07 Andrew Cagney <ac131313@redhat.com>
374
375 * f-valprint.c (info_common_command): Use get_frame_pc.
376 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
377 * ax-gdb.c (agent_command): Ditto.
378 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
379 (rs6000_pop_frame): Ditto.
380 (rs6000_frameless_function_invocation): Ditto.
381 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
382 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
383 * macroscope.c (default_macro_scope): Ditto.
384 * stack.c (print_frame_info_base): Ditto.
385 (print_frame, frame_info, print_frame_label_vars): Ditto.
386 (return_command, func_command, get_frame_language): Ditto.
387 * infcmd.c (finish_command): Ditto.
388 * dummy-frame.c (cached_find_dummy_frame): Ditto.
389 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
390 (break_at_finish_at_depth_command_1): Ditto.
391 (break_at_finish_command_1): Ditto.
392 (until_break_command, get_catch_sals): Ditto.
393 * blockframe.c (func_frame_chain_valid): Ditto.
394 (frameless_look_for_prologue): Ditto.
395 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
396
397 2002-12-08 Andrew Cagney <ac131313@redhat.com>
398
399 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
400 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
401
402 2002-12-08 Andrew Cagney <ac131313@redhat.com>
403
404 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
405 to pure functions.
406 * gdbarch.h, gdbarch.c: Re-generate.
407 * frame.c (get_prev_frame): Explictly assign prev's pc with value
408 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
409
410 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
411 declaration to a function returning a CORE_ADDR.
412 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
413 * arch-utils.c (init_frame_pc_noop): Return the PC value.
414 (init_frame_pc_default): Ditto.
415 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
416 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
417 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
418 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
419 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
420 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
421
422 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
423 to init_frame_pc_noop.
424 (i386_interix_init_frame_pc): Delete function.
425 * z8k-tdep.c (init_frame_pc): Delete function.
426 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
427 (INIT_FRAME_PC_FIRST): Ditto.
428 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
429 (INIT_FRAME_PC_FIRST): Ditto.
430 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
431 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
432 init_frame_pc_noop.
433 (INIT_FRAME_PC_FIRST): Convert to an expression.
434 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
435
436 2002-12-08 Andrew Cagney <ac131313@redhat.com>
437
438 * blockframe.c: Use get_frame_base instead of directly accessing
439 the `struct frame_info' member frame.
440 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
441 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
442
443 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
444
445 * Makefile.in (readline_h): Define.
446 (completer.o): Depend on readline_h.
447 (corelow.o): Ditto.
448 (event-top.o): Ditto.
449 (exec.o): Ditto.
450 (solib.o): Ditto.
451 (source.o): Ditto.
452 (symfile.o): Ditto.
453 (symmisc.o): Ditto.
454 (top.o): Ditto.
455 (tracepoint.o): Ditto.
456 (utils.o): Ditto.
457 (cli-dump.o): Ditto.
458 (tui-hooks.o): Ditto.
459 (tuiWin.o): Ditto.
460
461 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
462
463 More cleanup from import of readline 4.3.
464 * completer.h (complete_line, readline_line_completion_function):
465 Update prototypes.
466 (line_completion_function): Removed, not used outside of completer.c.
467 * completer.c (readline_line_completion_function,
468 complete_function, line_completion_function): Use const for first
469 parameter.
470 (line_completion_function): Make static.
471 (filename_completer): filename_completion_function is now called
472 rl_filename_completion_function
473 * corelow.c: Include <readline/readline.h>.
474 * exec.c: Ditto.
475 * solib.c: Ditto.
476 * source.c: Ditto.
477 * symfile.c: Ditto.
478 * symmisc.c: Ditto.
479 * top.c (init_main): No need to coerce
480 readline_line_completion_function anymore.
481 * cli/cli-dump.c: Include <readline/readline.h>.
482
483 2002-12-08 Andrew Cagney <ac131313@redhat.com>
484
485 * stack.c (frame_info): Use get_prev_frame.
486 * blockframe.c (frame_address_in_block): Ditto.
487 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
488 (rs6000_frameless_function_invocation): Ditto.
489 (rs6000_frame_saved_pc): Ditto.
490 (rs6000_frame_chain): Ditto.
491 * arch-utils.c (init_frame_pc_default): Ditto.
492
493 2002-12-08 Andrew Cagney <ac131313@redhat.com>
494
495 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
496 Delete redundant definition.
497
498 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
499
500 Import of readline 4.3:
501 * cli/cli-cmds.c: Include readline/tilde.h.
502 * cli/cli-setshow.c: Ditto.
503 * defs.h: Don't declare tilde_expand anymore, since readline
504 exports it.
505
506 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
507
508 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
509 -Werror on this file.
510
511 2002-12-07 Andrew Cagney <ac131313@redhat.com>
512
513 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
514 the format name.
515 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
516 * gdbarch.c: Regenerate.
517
518 2002-12-06 Andrew Cagney <ac131313@redhat.com>
519
520 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
521 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
522 provide a default value.
523 * gdbarch.h, gdbarch.c: Regenerate.
524 * frame.c (get_prev_frame): Update. Check
525 DEPRECATED_INIT_FRAME_PC_FIRST_P.
526 * s390-tdep.c (s390_gdbarch_init): Update.
527 * mips-tdep.c (mips_gdbarch_init): Update.
528 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
529 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
530 * alpha-tdep.c (alpha_gdbarch_init): Update.
531
532 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
533
534 * ia64-linux-nat.c: Include gdb_string.h.
535 * alpha-nat.c: Ditto.
536 * ppc-linux-nat.c: Ditto.
537 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
538 Update dependencies.
539
540 2002-12-05 Andrew Cagney <ac131313@redhat.com>
541
542 * gdbthread.h: Include "frame.h".
543 (struct thread_info): Replace step_frame_address with
544 step_frame_id.
545 * inferior.h: Include "frame.h".
546 (step_frame_id): Replace external variable step_frame_address.
547 * gdbthread.h (save_infrun_state): Replace step_frame_address
548 parameter with step_frame_id parameter.
549 (load_infrun_state): Ditto.
550 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
551 * infcmd.c (step_frame_id, step_1, step_once): Update.
552 * thread.c (load_infrun_state, save_infrun_state): Update.
553 * infrun.c (clear_proceed_status, save_inferior_status): Update.
554 (handle_inferior_event, step_over_function): Update.
555 (normal_stop, context_switch, restore_inferior_status): Update.
556 (struct inferior_status): Replace step_frame_address with
557 step_frame_id.
558
559 2002-12-05 David Carlton <carlton@math.stanford.edu>
560
561 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
562 DW_TAG_member as well as a declaration as being a C++ static data
563 member.
564 (read_structure_scope): Combine tests for DW_TAG_member and
565 DW_TAG_variable.
566
567 2002-12-05 David Carlton <carlton@math.stanford.edu>
568
569 * linespec.c (decode_compound): New function.
570 (decode_line_1): Move code into decode_compound.
571
572 2002-12-05 David Carlton <carlton@math.stanford.edu>
573
574 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
575 argument.
576 (lookup_symbol_aux): Do the 'field_of_this' check before checking
577 the static block. See PR gdb/804.
578
579 2002-12-05 David Carlton <carlton@math.stanford.edu>
580
581 * symtab.c (lookup_symbol_aux_block): New function.
582 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
583
584 2002-12-05 Andrew Cagney <ac131313@redhat.com>
585
586 * gdbarch.sh: Dump the predicate function and macro values.
587 (read): Print error on standard error.
588 * gdbarch.c: Regenerate.
589
590 2002-12-04 Kevin Buettner <kevinb@redhat.com>
591
592 * Makefile.in (mips_tdep_h): Define.
593 (mips-tdep.o): Add mips_tdep_h to dependency list.
594 * mips-tdep.h: New file.
595 * mips-tdep.c (mips-tdep.h): Include.
596 (enum mips_abi): Move to mips-tdep.h.
597 (mips_abi): New function.
598
599 2002-12-04 David Carlton <carlton@math.stanford.edu>
600
601 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
602
603 2002-12-04 David Carlton <carlton@math.stanford.edu>
604
605 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
606 function.
607 (lookup_symbol_aux_minsyms): New function.
608
609 2002-12-04 J. Brobecker <brobecker@gnat.com>
610
611 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
612
613 2002-12-04 J. Brobecker <brobecker@gnat.com>
614
615 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
616 which is an obsolete macro name.
617
618 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
619
620 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
621 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
622
623 2002-12-03 H.J. Lu (hjl@gnu.org)
624
625 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
626 (create_breakpoints): Make sure the addr_string field is not
627 NULL.
628
629 2002-12-03 Andrew Cagney <ac131313@redhat.com>
630
631 * sparc-nat.c (fetch_inferior_registers)
632 (store_inferior_registers): Add comment on problem of LWP vs
633 threads.
634
635 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
636 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
637 (lin_lwp_store_registers): Remove.
638 (init_lin_lwp_ops): Use fetch_inferior_registers
639 and store_inferior_registers directly.
640 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
641 (store_inferior_registers): Likewise.
642 Fix PR gdb/725.
643
644 2002-12-03 Andrew Cagney <ac131313@redhat.com>
645
646 * frame.h (get_frame_id): Convert to a function.
647 (null_frame_id, frame_id_p): Declare.
648 (frame_id_eq, frame_id_inner): Declare.
649 (frame_id_build): New function.
650 * frame.c (get_frame_id): Update. Use null_frame_id.
651 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
652 frame_id_inner.
653 (null_frame_id, frame_id_p): Define.
654 (frame_id_eq, frame_id_inner): Define.
655 (frame_id_build): New function.
656 * varobj.c (varobj_create): Update.
657 (varobj_update): Update.
658 * valops.c (value_assign): Update.
659 (new_root_variable): Update.
660 * infrun.c (save_inferior_status): Update.
661 * breakpoint.c (watch_command_1): Update.
662
663 2002-12-03 J. Brobecker <brobecker@gnat.com>
664
665 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
666 (SNAP2): Likewise.
667
668 2002-12-03 Andrew Cagney <cagney@redhat.com>
669
670 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
671 patch.
672
673 * PROBLEMS: Mention PR gdb/725.
674
675 2002-12-03 Andreas Schwab <schwab@suse.de>
676
677 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
678
679 2002-12-02 Adam Fedor <fedor@gnu.org>
680 Klee Dienes <kdienes@apple.com>
681
682 * objc-lang.c (objc_printstr): Add width arg to match
683 printstr prototype.
684 (compare_selectors): Add 'const' to arg types.
685 (compare_classes): Likewise.
686 (find_imps): Cast msym pointer to avoid compiler warning.
687 (print_object_command): Validate the address before
688 passing it to the print routine.
689 (find_objc_msgcall_submethod): Change function argument to
690 return an int.
691 * objc-lang.h: Add 'extern' to all function declarations.
692 (value_nsstring): Add declaration.
693
694 2002-12-02 J. Brobecker <brobecker@gnat.com>
695
696 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
697 Fixes a build failure on HP/UX.
698
699 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
700 failure on HP/UX.
701 (hpread_has_name): Advance declaration to avoid a compilation warning.
702 (pst_syms_count): Add missing variable type. By change, the compiler
703 was defaulting to int, which seems a good choice. Fixes a compilation
704 warning.
705 (pst_syms_size): Likewise.
706
707 2002-12-02 J. Brobecker <brobecker@gnat.com>
708
709 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
710 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
711 later to set the proper gdbarch methods depending on the osabi.
712 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
713
714 2002-12-02 J. Brobecker <brobecker@gnat.com>
715
716 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
717 * osabi.c (gdb_osabi_name): Add strings images for the two new
718 enum values.
719 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
720
721 2002-12-02 Andrew Cagney <ac131313@redhat.com>
722
723 * MAINTAINERS (Java): Global maintainers are responible for Java.
724 (Past Maintainers): Mention both Anthony Green and Per Bothner as
725 part Java maintainers.
726
727 2002-12-02 J. Brobecker <brobecker@gnat.com>
728
729 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
730 Fixes a compilation failure on AiX.
731
732 2002-12-02 J. Brobecker <brobecker@gnat.com>
733
734 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
735 why aix-thread.o is not listed.
736
737 2002-12-01 Andrew Cagney <ac131313@redhat.com>
738
739 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
740 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
741 * gdbarch.h, gdbarch.c: Re-generate.
742 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
743 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
744 * config/pa/tm-hppa.h, frame.h: Update.
745 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
746 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
747 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
748 * cris-tdep.c, alpha-tdep.c: Update.
749 * frame.c (set_unwind_by_pc, create_new_frame): Use either
750 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
751 (get_prev_frame): Ditto.
752
753 2002-11-30 Andrew Cagney <cagney@redhat.com>
754
755 * exec.c (xfer_memory): Replace boolean with int.
756 * p-exp.y: Use 0 instead of false.
757 * corelow.c (gdb_check_format): Change return type to int from
758 boolean.
759 * utils.c: Don't include <curses.h> or <term.h> first.
760
761 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
762
763 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
764 (m68hc11_register_byte): Remove.
765 (m68hc11_gdbarch_init): Don't set the above.
766
767 2002-11-29 Andrew Cagney <cagney@redhat.com>
768
769 * remote-mips.c (mips_initialize): Force a selected frame rebuild
770 by calling get_selected_frame.
771 * ocd.c (ocd_start_remote): Use get_selected frame instead of
772 set_current_frame, create_new_frame, select_frame and
773 get_current_frame.
774 * remote-e7000.c (e7000_start_remote): Ditto.
775 * remote-mips.c (common_open): Ditto
776 * remote-rdp.c (remote_rdp_open): Ditto.
777
778 2002-11-29 Andreas Schwab <schwab@suse.de>
779
780 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
781 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
782 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
783 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
784 read_memory_unsigned_integer instead of read_memory_integer when
785 dealing with addresses and instruction opcodes.
786 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
787 (m68k_linux_frame_saved_pc): Likewise.
788
789 2002-11-29 Andrew Cagney <ac131313@redhat.com>
790
791 * stack.c (selected_frame, select_frame): Move from here ...
792 * frame.c (selected_frame, select_frame): ... to here. Include
793 "language.h".
794 * Makefile.in (frame.o): Update dependencies.
795 * frame.c (get_selected_frame): New function.
796 * frame.h (get_selected_frame): Declare.
797 (deprecated_selected_frame): Rename selected_frame.
798 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
799 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
800 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
801 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
802 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
803 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
804 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
805 * z8k-tdep.c, cli/cli-cmds.c: Update.
806
807 2002-11-29 Andrew Cagney <ac131313@redhat.com>
808
809 * frame.h (get_selected_block): Add comments.
810
811 2002-11-28 Andrew Cagney <ac131313@redhat.com>
812
813 * frame.c (pc_notcurrent): New function.
814 (find_frame_sal): New function.
815 * frame.h (find_frame_sal): Declare.
816 (struct symtab_and_line): Add opaque declaration.
817 * stack.c (print_frame_info_base): Use find_frame_sal instead of
818 find_pc_line.
819 (frame_info): Ditto.
820 * ada-lang.c (find_printable_frame): Ditto.
821
822 2002-11-28 J. Brobecker <brobecker@gnat.com>
823
824 * configure.in: Check that the pthdebug library is recent enough
825 before enabling thread support on native AiX.
826 * configure: Regenerate.
827
828 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
829 from the list of object files as it is now appended by configure
830 if thread support is enabled.
831 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
832 if thread support is enabled.
833
834 2002-11-28 Andrew Cagney <cagney@redhat.com>
835
836 * stack.c (get_selected_block): In-line get_current_block.
837 * frame.h (get_current_block): Delete declaration.
838 * blockframe.c (get_current_block): Delete function.
839
840 2002-11-28 Andrew Cagney <ac131313@redhat.com>
841
842 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
843 USE_GENERIC_DUMMY_FRAMES.
844 * gdbarch.h, gdbarch.c: Regenerate.
845 * valops.c, frame.c: Update.
846 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
847 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
848 * config/pa/tm-hppa.h, blockframe.c: Update.
849 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
850 * m68k-tdep.c, alpha-tdep.c: Ditto.
851
852 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
853 * mips-tdep.c: Ditto.
854
855 2002-11-27 Andrew Cagney <ac131313@redhat.com>
856
857 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
858 (USE_GENERIC_DUMMY_FRAMES): Default to true.
859 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
860 * gdbarch.c, gdbarch.h: Re-generate.
861 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
862 (CALL_DUMMY_LOCATION): Delete macro definition.
863 (PC_IN_CALL_DUMMY): Delete macro definitions.
864
865 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
866 default is already generic_pc_in_call_dummy.
867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
868 * v850-tdep.c (v850_gdbarch_init): Ditto.
869 * sh-tdep.c (sh_gdbarch_init): Ditto.
870 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
871 * mips-tdep.c (mips_gdbarch_init): Ditto.
872 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
874 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
875 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
876 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
877 * avr-tdep.c (avr_gdbarch_init): Ditto.
878
879 * arm-tdep.c (arm_gdbarch_init): Do not set
880 use_generic_dummy_frames, default is already 1.
881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
882 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
883 * v850-tdep.c (v850_gdbarch_init): Ditto.
884 * sh-tdep.c (sh_gdbarch_init): Ditto.
885 * s390-tdep.c (s390_gdbarch_init): Ditto.
886 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
888 * mips-tdep.c (mips_gdbarch_init): Ditto.
889 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
891 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
892 * i386-tdep.c (i386_gdbarch_init): Ditto.
893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
894 * frv-tdep.c (frv_gdbarch_init): Ditto.
895 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
896 * cris-tdep.c (cris_gdbarch_init): Ditto.
897 * avr-tdep.c (avr_gdbarch_init): Ditto.
898
899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
900 call_dummy_location, default is already AT_ENTRY_POINT.
901 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
902 * v850-tdep.c (v850_gdbarch_init): Ditto.
903 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
904 * sh-tdep.c (sh_gdbarch_init): Ditto.
905 * s390-tdep.c (s390_gdbarch_init): Ditto.
906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
908 * mips-tdep.c (mips_gdbarch_init): Ditto.
909 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
911 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
912 * i386-tdep.c (i386_gdbarch_init): Ditto.
913 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
914 * frv-tdep.c (frv_gdbarch_init): Ditto.
915 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
916 * cris-tdep.c (cris_gdbarch_init): Ditto.
917 * avr-tdep.c (avr_gdbarch_init): Ditto.
918 * arm-tdep.c (arm_gdbarch_init): Ditto.
919 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
920
921 2002-11-28 Andrew Cagney <cagney@redhat.com>
922
923 * frame.h: Update comments on set_current_frame, create_new_frame,
924 flush_cached_frames, reinit_frame_cache, select_frame and
925 selected_frame.
926
927 2002-11-27 Andrew Cagney <cagney@redhat.com>
928
929 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
930 deprecated pc_in_call_dummy function.
931 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
932 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
933 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
934 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
935 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
936
937 2002-11-26 Martin M. Hunt <hunt@redhat.com>
938
939 * Makefile.in: Remove Tix dependencies.
940 * acinclude.m4: Ditto.
941 * aclocal.m4: Ditto.
942 * configure.in: Ditto.
943 * configure: Regenerated.
944
945 2002-11-26 Andrew Cagney <ac131313@redhat.com>
946
947 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
948 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
949 * gdbarch.c: Re-generate.
950
951 2002-11-26 Andrew Cagney <ac131313@redhat.com>
952
953 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
954 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
955 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
956 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
957 pc_in_call_dummy_at_entry_point.
958 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
959 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
960 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
961 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
962 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
963 pc_in_call_dummy_on_stack.
964 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
965 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
966 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
967 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
968 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
969
970 2002-11-26 Andrew Cagney <ac131313@redhat.com>
971
972 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
973 pc_in_call_dummy_before_text_end
974 (deprecated_pc_in_call_dummy_after_text_end): Rename
975 pc_in_call_dummy_after_text_end.
976 (deprecated_pc_in_call_dummy_on_stack): Rename
977 pc_in_call_dummy_on_stack.
978 (deprecated_pc_in_call_dummy_at_entry_point): Rename
979 pc_in_call_dummy_at_entry_point.
980 * m68k-tdep.c (m68k_gdbarch_init): Update.
981 * s390-tdep.c (s390_gdbarch_init): Update.
982 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
983 * vax-tdep.c (vax_gdbarch_init): Update.
984 * sparc-tdep.c (sparc_gdbarch_init): Update.
985 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
986 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
987 * i386-tdep.c (i386_gdbarch_init): Update.
988 * frv-tdep.c (frv_gdbarch_init): Update.
989 * cris-tdep.c (cris_gdbarch_init): Update.
990 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
991 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
992 (deprecated_pc_in_call_dummy_after_text_end)
993 (deprecated_pc_in_call_dummy_on_stack)
994 (deprecated_pc_in_call_dummy_at_entry_point): Update.
995 * alpha-tdep.c (alpha_gdbarch_init): Update.
996
997 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
998
999 * acconfig.h (HAVE_PREAD64): Add.
1000 * configure.in: Check for pread64.
1001 * config.in: Regenerated.
1002 * configure: Regenerated.
1003 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1004 * linux-proc.c (linux_proc_xfer_memory): New function.
1005 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1006
1007 2002-11-25 David Carlton <carlton@math.stanford.edu>
1008
1009 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1010 pdi's with no name.
1011
1012 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1013
1014 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1015 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1016
1017 2002-11-25 Jim Blandy <jimb@redhat.com>
1018
1019 * symfile.c (init_objfile_sect_indices): New function.
1020 (default_symfile_offsets): Move the section-index-initializing
1021 stuff into init_objfile_sect_indices, and call that.
1022
1023 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1024 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1025
1026 * symfile.c (syms_from_objfile): Adjust indentation.
1027
1028 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1029 || info_verbose isn't true.
1030
1031 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1032
1033 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1034 default to get_frame_base.
1035 * gdbarch.h, gdbarch.c: Regenerate.
1036 * arch-utils.c (default_frame_address): Delete function.
1037 * arch-utils.h (default_frame_address): Delete declaration
1038
1039 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1040
1041 * varobj.c (find_frame_addr_in_frame_chain):
1042 Use get_frame_base instead of FRAME_FP,
1043 obvious fix.
1044
1045 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1046
1047 * frame.h (FRAME_FP): Delete macro.
1048 (get_frame_base): New function declaration.
1049 * frame.c (get_frame_base): New function.
1050 (get_frame_id): Use ->frame.
1051 (frame_find_by_id): Rewrite to use get_frame_id.
1052 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1053 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1054 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1055 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1056 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1057 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1058 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1059
1060 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1061
1062 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1063
1064 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1065
1066 * frame.c (set_unwind_by_pc): Revert change below, use
1067 PC_IN_CALL_DUMMY.
1068 (get_prev_frame): Ditto.
1069
1070 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1071
1072 * dummy-frame.c (pc_in_dummy_frame): New function.
1073 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1074 (find_dummy_frame): Update comment.
1075 (generic_pop_current_frame): Use get_frame_type.
1076 * dummy-frame.h (pc_in_dummy_frame): Declare.
1077 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1078 (create_new_frame): Use pc_in_dummy_frame.
1079 (get_prev_frame): Use pc_in_dummy_frame.
1080 (frame_saved_regs_register_unwind): Use get_prev_frame.
1081 (deprecated_generic_get_saved_register): Use get_prev_frame.
1082
1083 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1084
1085 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1086 from here ...
1087 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1088 (varobj_create): Note that frame ID should be used.
1089 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1090
1091 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1092
1093 * breakpoint.c: Include "gdb_assert.h".
1094 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1095 not being used.
1096 * Makefile.in (breakpoint.o): Update dependencies.
1097 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1098 deprecated_frame_in_dummy.
1099 * stack.c (print_frame_info_base): Ditto.
1100 (frame_info): Ditto.
1101 (print_frame_info_base): Ditto. Delete dead code.
1102
1103 2002-11-23 Andreas Schwab <schwab@suse.de>
1104
1105 * Makefile.in (m68k_tdep_h): Define.
1106 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1107 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1108 * m68k-tdep.c: Move register number enum ...
1109 * m68k-tdep.h: ... to this new file and rename the constants from
1110 E_* to M68K_*. All uses changed.
1111 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1112 * abug-rom.c: Include "m68k-tdep.h". Use
1113 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1114 * cpu32bug-rom.c: Likewise.
1115 * dbug-rom.c: Likewise.
1116 * m68k-tdep.c: Likewise.
1117 * m68klinux-nat.c: Likewise.
1118 * remote-est.c: Likewise.
1119 * rom68k-rom.c: Likewise.
1120 * config/m68k/tm-linux.h: Likewise.
1121
1122 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1123
1124 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1125 dummy frame initialization code.
1126 * mips-tdep.c (mips_gdbarch_init): Ditto.
1127
1128 2002-11-22 Christopher Faylor <cgf@redhat.com>
1129
1130 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1131 attach will hang.
1132
1133 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1134
1135 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1136 to default_frame_address.
1137 * gdbarch.h, gdbarch.c: Re-generate.
1138
1139 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1140 or frame_locals_address to default_frame_address.
1141 * m68k-tdep.c (m68k_gdbarch_init): Update.
1142 * i386-tdep.c (i386_gdbarch_init): Update.
1143 * frv-tdep.c (frv_gdbarch_init): Update.
1144 * sh-tdep.c (sh_gdbarch_init): Update.
1145 * v850-tdep.c (v850_gdbarch_init): Update.
1146 * sparc-tdep.c (sparc_gdbarch_init): Update.
1147 * mips-tdep.c (mips_gdbarch_init): Update.
1148 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1149 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1151
1152 * cris-tdep.c (cris_frame_args_address): Delete function.
1153 (cris_frame_locals_address): Delete function.
1154 (cris_gdbarch_init): Do not set frame_args_address or
1155 frame_locals_address.
1156
1157 2002-11-22 Michael Snyder <msnyder@redhat.com>
1158
1159 * thread-db.c (thread_db_load): Tell the user what's going on
1160 if dlopen fails on libthread_db.
1161
1162 2002-11-23 Andreas Schwab <schwab@suse.de>
1163
1164 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1165 invariant return values.
1166
1167 2002-11-22 Andreas Schwab <schwab@suse.de>
1168
1169 * valops.c (value_slice): Move declaration of `offset' to avoid
1170 warning.
1171
1172 2002-11-22 Christopher Faylor <cgf@redhat.com>
1173
1174 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1175 (struct so_stuff): Add end_addr field.
1176 (register_loaded_dll): Calculate and store end address of loaded dll.
1177 (solib_address): New function.
1178 (child_solib_loaded_library_pathname): Pass carefully constructed
1179 section info to safe_symbol_file_add rather than ignoring it.
1180 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1181 DLL is loaded.
1182 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1183 (child_create_inferior): Fix a compiler warning.
1184 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1185 (solib_address): Declare new function.
1186
1187 2002-11-22 Andreas Schwab <schwab@suse.de>
1188
1189 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1190 and FPS registers.
1191
1192 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1193
1194 * maint.c (_initialize_maint_cmds): Fix typo. From
1195 Francesco Potorti` <pot@gnu.org>.
1196
1197 2002-11-21 Andrew Cagney <cagney@redhat.com>
1198
1199 * mips-tdep.c (mips_dump_tdep): Delete references to
1200 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1201 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1202 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1203 * printcmd.c (build_address_symbolic): Delete calls to
1204 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1205 (address_info): Ditto.
1206 Fix PR gdb/773.
1207
1208 2002-11-19 Klee Dienes <kdienes@apple.com>
1209 Adam Fedor <fedor@gnu.org>
1210
1211 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1212 the ability to explicitly specify the quote characters and word
1213 break characters; if NULL is specified for either, use the old
1214 behavior of using the characters used by the completer.
1215 (skip_chars): New function. Convenience wrapper around
1216 skip_quoted_chars to provide the original skip_chars behavior.
1217 * completer.h (skip_quoted_chars): Add prototype.
1218
1219 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1220
1221 Problems reported by Paul Eggert.
1222 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1223
1224 2002-11-19 Andreas Schwab <schwab@suse.de>
1225
1226 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1227 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1228 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1229 (m68k_linux_frame_saved_pc): Move to ...
1230 * m68klinux-tdep.c: ... here. New file.
1231 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1232 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1233
1234 2002-11-19 Adam Fedor <fedor@gnu.org>
1235
1236 * objc-exp.y: Revert to old skip_quoted usage.
1237
1238 2002-11-19 Adam Fedor <fedor@gnu.org>
1239
1240 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1241 (objc_lang_h): Define.
1242 (YYFILES): Add objc-exp.tab.c.
1243 (local-maintainer-clean): Remove objc-exp.tab.c.
1244 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1245
1246 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1247
1248 * p-exp.y (typecast rule): Add automatic dereference of
1249 pascal classes if needed.
1250 (THIS): Set current_type.
1251 Automatically dereference pascal classes.
1252 (typebase rule): Add ^typebase recognition.
1253
1254 2002-11-18 Adam Fedor <fedor@gnu.org>
1255
1256 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1257 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1258 (op_name): Handle OP_OBJC_SELF.
1259 * Makefile.in (expprint.o): Add additional depends.
1260
1261 2002-11-18 Adam Fedor <fedor@gnu.org>
1262
1263 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1264 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1265 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1266 * objc-exp.y: Likewise.
1267
1268 2002-11-18 Adam Fedor <fedor@gnu.org>
1269
1270 * gdb/parser-defs.h: (struct objc_class_str): New structure
1271 for parsing ObjC classes.
1272
1273 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1274
1275 * stack.c (frame_relative_level): Copy function from here ...
1276 * frame.c (frame_relative_level): ...to here.
1277
1278 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1279
1280 * frame.h (enum frame_type): Define.
1281 (get_frame_type): Declare.
1282 (struct frame_info): Add field `type'. Delete field
1283 signal_handler_caller.
1284 (deprecated_set_frame_signal_handler_caller): Declare.
1285 * frame.c (get_frame_type): New function.
1286 (deprecated_set_frame_type): New function.
1287 (create_new_frame): Set the frame's type.
1288 (get_prev_frame): Similar.
1289 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1290 * s390-tdep.c: Ditto.
1291 * m68klinux-nat.c: Ditto.
1292 * ns32k-tdep.c: Ditto.
1293 * x86-64-linux-tdep.c: Ditto.
1294 * vax-tdep.c: Ditto.
1295 * rs6000-tdep.c: Ditto.
1296 * ppc-linux-tdep.c: Ditto.
1297 * i386-interix-tdep.c: Ditto.
1298 * mips-tdep.c: Ditto.
1299 * m68k-tdep.c: Ditto.
1300 * hppa-tdep.c: Ditto.
1301 * ia64-tdep.c: Ditto.
1302 * cris-tdep.c: Ditto.
1303 * arm-tdep.c: Ditto.
1304 * alpha-tdep.c: Ditto.
1305 * i386-tdep.c: Ditto.
1306 * stack.c: Ditto.
1307 * ada-lang.c: Ditto.
1308 * blockframe.c: Update.
1309 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1310 deprecated_set_frame_type instead of signal_handler_caller.
1311 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1312 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1313 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1314
1315 2002-11-18 Klee Dienes <kdienes@apple.com>
1316
1317 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1318
1319 2002-11-18 Klee Dienes <kdienes@apple.com>
1320
1321 * buildsym.c (pop_context): Add comment.
1322
1323 2002-11-18 Klee Dienes <kdienes@apple.com>
1324
1325 * buildsym.h (pop_context): Convert to function, defined in
1326 buildsym.c.
1327 * buildsym.c: Include gdb_assert.h.
1328 (pop_context): Implement as C function. Add check for stack
1329 underflow.
1330 * dbxread.c (process_one_symbol): Complain and stop processing
1331 that symbol if we are already at the top of the context stack for
1332 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1333 when processing N_RBRAC.
1334
1335 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1336
1337 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1338 define.
1339 (struct target_waitstatus): Add opaque definition.
1340 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1341 * exec.c (init_exec_ops): Likewise.
1342 * fork-child.c (clone_and_follow_inferior): Remove.
1343 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1344 * inferior.h (clone_and_follow_inferior): Remove prototype.
1345 * infrun.c (follow_fork_mode_both): Remove.
1346 (follow_fork_mode_kind_names): Remove commented out "both".
1347 (follow_inferior_fork): Remove follow_fork_mode_both support.
1348 * inftarg.c (child_clone_and_follow_inferior): Remove.
1349 (child_post_follow_inferior_by_clone): Remove.
1350 (init_child_ops): Don't set to_clone_and_follow_inferior
1351 or to_post_follow_inferior_by_clone.
1352 * target.c (default_clone_and_follow_inferior): Remove.
1353 (cleanup_target): Don't set to_clone_and_follow_inferior
1354 or to_post_follow_inferior_by_clone.
1355 (find_default_clone_and_follow_inferior): Remove.
1356 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1357 (debug_to_clone_and_follow_inferior): Remove.
1358 (debug_to_post_follow_inferior_by_clone): Remove.
1359 (setup_target_debug): Don't set to_clone_and_follow_inferior
1360 or to_post_follow_inferior_by_clone.
1361 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1362 and to_post_follow_inferior_by_clone.
1363 (child_clone_and_follow_inferior): Remove prototype.
1364 (child_post_follow_inferior_by_clone): Remove prototype.
1365 (target_clone_and_follow_inferior): Remove macro.
1366 (target_post_follow_inferior_by_clone): Remove macro.
1367 (find_default_clone_and_follow_inferior): Remove prototype.
1368
1369 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1370
1371 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1372 inferior_has_vforked, and inferior_has_execd instead of
1373 target_has_forked, target_has_vforked, and target_has_execd.
1374 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1375 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1376 (CHILD_WAIT): Define.
1377 (child_wait): Add prototype.
1378 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1379 Add prototype.
1380 (hpux_has_vforked): Likewise, from child_has_vforked.
1381 (hpux_has_execd): Likewise, from child_has_execd.
1382 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1383 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1384 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1385 and hpux_has_syscall_event instead of the target hooks.
1386 * infrun.c (inferior_has_forked, inferior_has_vforked)
1387 (inferior_has_execd): New functions.
1388 * inftarg.c (not_same_real_pid): Remove.
1389 (child_wait): Remove references to not_same_real_pid,
1390 target_has_forked, target_has_vforked, target_has_execd,
1391 and target_has_syscall_event.
1392 (child_has_forked, child_has_vforked, child_has_execd)
1393 (child_has_syscall_event): Remove.
1394 (init_child_ops): Remove references to child_has_forked,
1395 child_has_vforked, child_has_execd, and child_has_syscall_event.
1396 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1397 (hpux_has_vforked): Likewise, from child_has_vforked.
1398 (hpux_has_execd): Likewise, from child_has_execd.
1399 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1400 * target.c (cleanup_target): Remove references to
1401 to_has_forked, to_has_vforked, to_has_execd, and
1402 to_has_syscall_event.
1403 (update_current_target): Likewise.
1404 (setup_target_debug): Likewise.
1405 (debug_to_has_forked): Remove.
1406 (debug_to_has_vforked): Remove.
1407 (debug_to_has_execd): Remove.
1408 (debug_to_has_syscall_event): Remove.
1409 * target.h (struct target_ops): Remove to_has_forked.
1410 to_has_vforked, to_has_execd, and to_has_syscall_event.
1411 (child_has_forked, child_has_vforked, child_has_execd)
1412 (child_has_syscall_event): Remove prototypes.
1413 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1414 prototypes.
1415 (target_has_forked, target_has_vforked, target_has_execd)
1416 (target_has_syscall_event): Remove macros.
1417
1418 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1419
1420 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1421 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1422 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1423 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1424 * target.c (cleanup_target): Remove reference to
1425 to_can_follow_vfork_prior_to_exec.
1426 (update_current_target): Likewise.
1427 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1428 (setup_target_debug): Remove reference to
1429 to_can_follow_vfork_prior_to_exec.
1430 * target.h (struct target_ops): Remove
1431 to_can_follow_vfork_prior_to_exec.
1432 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1433 (target_can_follow_vfork_prior_to_exec): Remove definition.
1434 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1435 define.
1436 * infrun.c (follow_vfork_when_exec): Remove.
1437 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1438 (follow_exec): Likewise.
1439 (handle_inferior_event): Likewise.
1440 (keep_going): Likewise.
1441
1442 2002-11-15 Andrew Cagney <cagney@redhat.com>
1443
1444 * frame.c (generic_unwind_get_saved_register): Make static.
1445 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1446 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1447 defaults to generic_unwind_get_saved_register.
1448 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1449 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1450 * frv-tdep.c (frv_gdbarch_init): Ditto.
1451 * i386-tdep.c (i386_gdbarch_init): Ditto.
1452 * s390-tdep.c (s390_gdbarch_init): Ditto.
1453 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1454 * v850-tdep.c (v850_gdbarch_init): Ditto.
1455 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1456 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1457 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1458
1459 2002-11-15 Andrew Cagney <cagney@redhat.com>
1460
1461 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1462 i386-tdep.c.
1463
1464 2002-11-15 Andrew Cagney <cagney@redhat.com>
1465
1466 * frame.h (sigtramp_saved_pc): Delete declaration.
1467 * blockframe.c (sigtramp_saved_pc): Delete function.
1468 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1469 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1470 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1471 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1472
1473 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1474
1475 * frame.c (frame_pc_unwind): New function.
1476 (frame_saved_regs_pc_unwind): New function.
1477 (frame_register_unwind): Pass unwind_cache instead of
1478 register_unwind_cache.
1479 (set_unwind_by_pc): Add unwind_pc parameter, set.
1480 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1481 (get_prev_frame): Ditto.
1482 * frame.h (frame_pc_unwind_ftype): Declare.
1483 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1484 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1485 (frame_pc_unwind): Declare.
1486 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1487 (struct dummy_frame): Add comment mentioning that values are for
1488 previous frame.
1489 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1490 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1491 (generic_file_frame_chain_valid): Ditto.
1492 * stack.c (frame_info): Ditto.
1493
1494 2002-11-15 David Carlton <carlton@math.stanford.edu>
1495
1496 * linespec.c (locate_first_half): New function.
1497 (decode_line_1): Move code into locate_first_half.
1498
1499 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1500
1501 * complaints.h: Add comment explaining how to eliminate a
1502 deprecated_complain call.
1503 * complaints.h: Fix spelling errors.
1504
1505 2002-11-15 David Carlton <carlton@math.stanford.edu>
1506
1507 * printcmd.c: Remove #include "disasm.h".
1508
1509 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1510
1511 * frame.h: Move the most relevant interface functions to the start
1512 of the file.
1513
1514 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1515
1516 * regcache.h (deprecated_registers): Rename registers.
1517 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1518 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1519 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1520 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1521 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1522 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1523 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1524 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1525 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1526 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1527 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1528 * v850ice.c: Update.
1529
1530 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1531
1532 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1533 NULL buffer.
1534
1535 2002-11-13 Andrew Cagney <cagney@redhat.com>
1536
1537 * regcache.h (deprecated_read_register_bytes): Rename
1538 read_register_bytes.
1539 (deprecated_write_register_bytes): Rename write_register_bytes.
1540 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1541 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1542 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1543 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1544 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1545 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1546 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1547 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1548 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1549 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1550 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1551 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1552 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1553 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1554
1555 2002-11-13 Jim Blandy <jimb@redhat.com>
1556
1557 * findvar.c (read_var_value): Doc fix.
1558
1559 2002-11-13 Andrew Cagney <cagney@redhat.com>
1560
1561 * regcache.c (struct regcache): Replace passthough_p with
1562 readonly_p.
1563 (regcache_xmalloc): Initialize readonly_p.
1564 (build_regcache): Initialize readonly_p.
1565 (regcache_save): New function.
1566 (regcache_restore): New function.
1567 (regcache_cpy): Re-implement using regcache_save and
1568 regcache_restore.
1569 (regcache_raw_read): Update.
1570 (regcache_cooked_read): When a read-only cache, checked for cached
1571 pseudo register values.
1572 (regcache_raw_write): Assert that the cache is not read-only.
1573 Remove code handling a non-passthrough cache.
1574 * regcache.h (regcache_save): Declare.
1575 (regcache_restore): Declare.
1576
1577 2002-11-13 Andrew Cagney <cagney@redhat.com>
1578
1579 * regcache.c (struct regcache_descr): Add fields
1580 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1581 (init_legacy_regcache_descr): Compute the size of a cooked
1582 register cache and then assign that to sizeof_raw_registers. Set
1583 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1584 (init_legacy_regcache_descr): Ditto.
1585
1586 2002-11-13 Andrew Cagney <cagney@redhat.com>
1587
1588 * regcache.c (register_buffer): Move to near start of file, update
1589 description.
1590 (regcache_raw_read): Use.
1591 (regcache_raw_write): Use.
1592 (struct regcache): Rename raw_registers to registers and
1593 raw_register_valid_p to register_valid_p.
1594 (regcache_xmalloc): Update.
1595 (regcache_xfree): Update.
1596 (register_buffer): Update.
1597 (regcache_cpy): Update.
1598 (regcache_cpy_no_passthrough): Update.
1599 (regcache_valid_p): Update.
1600 (deprecated_grub_regcache_for_registers): Update.
1601 (deprecated_grub_regcache_for_register_valid): Update.
1602 (set_register_cached): Update.
1603 (regcache_raw_write): Update.
1604
1605 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1606
1607 * p-exp.y (name_not_typename): Use copy_name to
1608 set current_type variable for fields of THIS.
1609
1610 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1611
1612 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1613 * monitor.c (init_base_monitor_ops): Likewise.
1614 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1615 * remote-array.c (init_array_ops): Likewise.
1616 * remote-e7000.c (init_e7000_ops): Likewise.
1617 * remote-es.c (init_es1800_ops): Likewise.
1618 (init_es1800_child_ops): Likewise.
1619 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1620 * remote-sim.c (init_gdbsim_ops): Likewise.
1621 * remote-st.c (init_st2000_ops): Likewise.
1622 * sol-thread.c (init_sol_core_ops): Likewise.
1623 (init_sol_thread_ops): Likewise.
1624 * v850ice.c (init_850ice_ops): Likewise.
1625 * win32-nat.c (init_child_ops): Likewise.
1626 * wince.c (init_child_ops): Likewise.
1627
1628 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1629
1630 * utils.c (gdb_realpath): Make rp a constant pointer.
1631
1632 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1633
1634 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1635 a constant buffer; cannonicalize_file_name(); realpath() with a
1636 pathconf() defined buffer, xstrdup().
1637
1638 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1639
1640 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1641 to hang2.C; hang3.c to hang3.C.
1642
1643 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1644
1645 * findvar.c (read_var_value): Reenable TLS code.
1646
1647 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1648 Jim Blandy <jimb@redhat.com>
1649
1650 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1651 * target.c (update_current_target): Add
1652 to_get_thread_local_address.
1653 * target.h (to_get_thread_local_address): Export.
1654 (target_get_thread_local_address): Define.
1655 (target_get_thread_local_address_p): Define.
1656 * thread-db.c: Include solib-svr4.h.
1657 (td_thr_tls_get_addr_p): Define.
1658 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1659 (thread_db_get_thread_local_address): New function.
1660 (init_thread_db_ops): Initialize to_get_thread_local_address.
1661 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1662 * configure: Regenerate.
1663 * config.in: Regenerate.
1664
1665 2002-11-11 David Carlton <carlton@math.stanford.edu>
1666
1667 * linespec.c (set_flags): New function.
1668 (decode_line_1): Move code into set_flags.
1669
1670 2002-11-11 David Carlton <carlton@math.stanford.edu>
1671
1672 * linespec.c (decode_line_1): Move chunks of code to separate
1673 functions.
1674 (initialize_defaults): New function.
1675 (decode_indirect): New function.
1676
1677 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1678
1679 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1680 instead of void_code_ptr.
1681 (sigtramp_saved_pc): Ditto.
1682
1683 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1684 i386_fp_regnum_p.
1685
1686 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1687
1688 * gdbtypes.h (struct main_type): Move artificial flag out of
1689 loc. New member of ``struct field'' named static_kind. Reduce
1690 overloaded meaning of bitsize.
1691 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1692 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1693 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1694
1695 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1696 new fields.
1697 (template_to_fixed_record_type, template_to_static_fixed_type)
1698 (to_record_with_fixed_variant_part): Likewise.
1699 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1700 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1701 * dwarfread.c (struct_type, enum_type): Likewise.
1702 * hpread.c (hpread_read_enum_type)
1703 (hpread_read_function_type, hpread_read_doc_function_type)
1704 (hpread_read_struct_type): Likewise.
1705 * mdebugread.c (parse_symbol): Likewise.
1706
1707 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1708
1709 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1710 * stack.c (print_frame_info_base): Update.
1711 (print_frame_info_base, frame_info): Update.
1712 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1713 (sparc_frame_saved_pc): Update.
1714 * ada-lang.c (find_printable_frame): Update.
1715 * breakpoint.c (deprecated_frame_in_dummy): Update.
1716
1717 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1718
1719 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1720 defined.
1721 (regmap): Extend to cover all registers.
1722 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1723 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1724 definitions.
1725 (fetch_register, sore_register): Simplify.
1726 (old_fetch_inferior_registers, old_store_inferior_registers):
1727 Remove functions.
1728 (cannot_fetch_register, cannot_store_register): Change
1729 implementation to use regmap array to decide which registers
1730 cannot be fetched/stored. This removes $orig_eax from the
1731 registers that cannot be fetched/stored.
1732 (fetch_inferior_registers): Call fetch_register directly instead
1733 of calling old_fetch_inferior_registers.
1734 (store_inferior_registers): Call store_register directly instead
1735 of calling old_store_inferior_registers.
1736 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1737 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1738 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1739
1740 2002-11-09 Klee Dienes <kdienes@apple.com>
1741
1742 * i387-tdep.c (i387_supply_register): When called with NULL as a
1743 buffer, mark the register as not provided (to mirror the behavior
1744 of supply_register).
1745 (i387_supply_fxsave): Ditto.
1746 (i387_supply_fsave): Ditto (inherits the behavior from
1747 i387_supply_register).
1748
1749 2002-11-09 Klee Dienes <kdienes@apple.com>
1750
1751 * blockframe.c (sigtramp_saved_pc): Use
1752 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1753 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1754 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1755
1756 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1757
1758 * frame.c (get_prev_frame): Test prev_p to identify a previously
1759 unwound frame. Initialize prev_p.
1760 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1761 comment.
1762
1763 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1764
1765 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1766 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1767 more comments. Zap dead code.
1768
1769 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1770
1771 * infcmd.c (print_vector_info, print_float_info): Move code that
1772 checks whether the target has any registers and whether there is a
1773 selected frame up, such that it is also used if a target provides
1774 multi-arch definitions of these functions.
1775
1776 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1777
1778 * Makefile.in (DESTDIR): Define.
1779 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1780 prefix.
1781
1782 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1783 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1784
1785 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1786
1787 * i386-linux-tdep.c: Include "reggroups.h".
1788 (i386_linux_register_reggroup_p): New function.
1789 (i386_linux_init_abi): Set register_reggroup_p to
1790 i386_linux_register_reggroup_p.
1791 * i386-tdep.h (i386_register_reggroup_p): Declare.
1792 * i386-tdep.c: Include "reggroups.h".
1793 (i386_init_reggroups): New function.
1794 (i386_add_reggroups): New function.
1795 (i386_register_reggroup_p): New function.
1796 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1797 (_initialize_i386_tdep): Call i386_init_reggroups.
1798 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1799 specific reggroups.
1800
1801 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1802
1803 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1804 request that's available in *BSD.
1805
1806 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1807
1808 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1809 FDOFF_REGNUM.
1810
1811 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1812
1813 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1814 * dummy-frame.c (find_dummy_frame): Rename
1815 generic_find_dummy_frame, make static. Return the dummy frame
1816 instead of the regcache.
1817 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1818 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1819 (dummy_frame_register_unwind): Rename
1820 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1821 * dummy-frame.h (dummy_frame_register_unwind): Rename
1822 generic_call_dummy_register_unwind.
1823
1824 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1825
1826 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1827 except the inclusion of "i386/tm-i386.h", to...
1828 * config/i386/nm-i386v42mp.h: ...here.
1829 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1830
1831 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1832
1833 * Makefile.in (frame.o): Update dependencies.
1834 * blockframe.c (current_frame, frame_obstack_alloc)
1835 (frame_saved_regs_zalloc, get_current_frame)
1836 (set_current_frame, create_new_frame)
1837 (set_unwind_by_pc, get_next_frame)
1838 (flush_cached_frames, reinit_frame_cache)
1839 (frame_saved_regs_register_unwind)
1840 (deprecated_generic_get_saved_register)
1841 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1842 (_initialize_blockframe): Move frame code from here...
1843 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1844 "annotate.h" and "dummy-frame.h".
1845 (_initialize_frame): New function.
1846
1847 2002-11-08 Jim Blandy <jimb@redhat.com>
1848
1849 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1850 when we finish a function a context.
1851 * buildsym.h (outermost_context_p): New macro.
1852 (Bug analyzed by David Edelsohn.)
1853
1854 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1855
1856 * blockframe.c: Include "dummy-frame.h".
1857 (struct dummy_frame, dummy_frame_stack)
1858 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1859 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1860 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1861 (generic_save_call_dummy_addr, generic_pop_current_frame)
1862 (generic_pop_dummy_frame, generic_fix_call_dummy)
1863 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1864 dummy frame code from here...
1865 * dummy-frame.c: ...to here. New file.
1866 * dummy-frame.h: New file.
1867 (generic_call_dummy_register_unwind): Declare.
1868 (generic_find_dummy_frame): Declare.
1869 * Makefile.in (SFILES): Add dummy-frame.c.
1870 (dummy-frame.o): Specify dependencies.
1871 (dummy_frame_h): Define.
1872 (COMMON_OBS): Add dummy-frame.o.
1873 (blockframe.o): Update dependencies.
1874
1875 2002-11-08 Jim Blandy <jimb@redhat.com>
1876
1877 * dwarf2read.c (read_func_scope): Restore local_symbols and
1878 param_symbols after we finish the function context. (Based on a
1879 patch from David Edelsohn.)
1880
1881 2002-11-08 David Carlton <carlton@math.stanford.edu>
1882
1883 * linespec.c (symbol_found): New function.
1884 (minsym_found): New function.
1885 (decode_line_1): Separate out some code into separate functions.
1886
1887 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1888
1889 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1890 the benefit of the interix target.
1891 * i386-tdep.h (i386_frameless_signal_p): Declare.
1892
1893 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1894
1895 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1896 declaration that snuck in from change below.
1897
1898 2002-11-06 Andrew Cagney <cagney@redhat.com>
1899
1900 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1901 all callers.
1902 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1903 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1904 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1905 (i386_mxcsr_regnum_p): new function. Use instead of
1906 MXCSR_REGNUM_P.
1907 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1908 (i386_sse_regnum_p): Declare.
1909 (i386_mxcsr_regnum_p): Declare.
1910 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1911 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1912 (IS_FP_REGNUM): Update definition.
1913 (IS_FPU_CTRL_REGNUM): Update definition..
1914 (IS_SSE_REGNUM): Update definition..
1915 * i386v-nat.c (register_u_addr): Update.
1916 * go32-nat.c (fetch_register): Update.
1917 (store_register): Update.
1918
1919 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1920
1921 Preparation work to convert the hppa targets to multiarch partial.
1922
1923 * hppa-tdep.c: Add new functions replacing macro bodies from
1924 config/pa/tm-hppa.h. These function will be used to initialize
1925 the gdbarch structure. Import some comments from tm-hppa.h,
1926 and place them where appropriate, to avoid loosing them when
1927 we cleanup this file.
1928 (hppa_reg_struct_has_addr): New function.
1929 (hppa_inner_than): New function.
1930 (hppa_stack_align): New function.
1931 (hppa_pc_requires_run_before_use): New function.
1932 (hppa_instruction_nullified): New function.
1933 (hppa_register_byte): New function.
1934 (hppa_register_virtual_type): New function.
1935 (hppa_store_struct_return): New function.
1936 (hppa_cannot_store_register): New function.
1937 (hppa_frame_args_address): New function.
1938 (hppa_frame_locals_address): New function.
1939 (hppa_smash_text_address): New function.
1940 (hppa_coerce_float_to_double): New function. Requires the inclusion
1941 of "language.h".
1942
1943 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1944
1945 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1946 gdbarch-eligible macro to a call to the new associated function
1947 created in hppa-tdep.c.
1948 (INNER_THAN): Likewise.
1949 (STACK_ALIGN): Likewise.
1950 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1951 (INSTRUCTION_NULLIFIED): Likewise.
1952 (REGISTER_BYTE): Likewise.
1953 (REGISTER_VIRTUAL_TYPE): Likewise.
1954 (STORE_STRUCT_RETURN): Likewise.
1955 (CANNOT_STORE_REGISTER): Likewise.
1956 (FRAME_ARGS_ADDRESS): Likewise.
1957 (FRAME_LOCALS_ADDRESS): Likewise.
1958 (SMASH_TEXT_ADDRESS): Likewise.
1959 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1960 (ABOUT_TO_RETURN): Delete, as no longer used.
1961
1962 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1963
1964 * printcmd.c (disassemble_command): Remove obsolete function.
1965 (_initialize_printcmd): Do not create disassemble command here.
1966 * cli/cli-cmds.c (disassemble_command): New function. Implements
1967 disassemble command.
1968 (init_cli_cmds): Create disassemble command here instead.
1969
1970 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1971
1972 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1973
1974 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1975
1976 * regcache.h (regcache_cooked_read_using_offset_hack)
1977 (regcache_cooked_write_using_offset_hack): Delete declarations.
1978 (register_changed): Delete declaration.
1979 * regcache.c (regcache_cooked_read_using_offset_hack)
1980 (regcache_cooked_write_using_offset_hack): Delete functions.
1981 (cooked_xfer_using_offset_hack): Delete function.
1982 (register_changed): Delete function.
1983
1984 2002-11-07 Jim Blandy <jimb@redhat.com>
1985
1986 * macroscope.c: #include "complaints.h".
1987 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1988 but not in the macro table.
1989 * Makefile.in (macroscope.o): Record dependency.
1990
1991 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1992
1993 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1994
1995 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1996
1997 * regcache.c (deprecated_registers_fetched): Update.
1998 * regcache.h (deprecated_registers_fetched): Rename
1999 registers_fetched.
2000 * remote-vxsparc.c (vx_read_register): Update.
2001 * remote-vxmips.c (vx_read_register): Update.
2002 * remote-vx68.c (vx_read_register): Update.
2003 * irix5-nat.c (fetch_core_registers): Update.
2004 * mipsm3-nat.c (fetch_inferior_registers): Update.
2005 * sun3-nat.c (fetch_inferior_registers): Update.
2006 * symm-nat.c (fetch_inferior_registers): Update.
2007 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2008 (fetch_core_registers): Update.
2009 (fetch_kcore_registers): Update.
2010 * mips-nat.c (fetch_inferior_registers): Update.
2011 * corelow.c (get_core_registers): Update.
2012 * a68v-nat.c (fetch_inferior_registers): Update.
2013
2014 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2015
2016 Put in place the framework necessary for multiarching the hppa targets.
2017 * hppa-tdep.c (hppa_gdbarch_init): New function.
2018 (hppa_dump_tdep): New function.
2019 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2020 tdep structure dumper.
2021 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2022 until the multi-arching conversion has partially been completed.
2023
2024 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2025
2026 * valops.c (value_assign): Merge lval_register case into
2027 lval_reg_frame_relative. Use frame_register and
2028 regcache_cooked_write instead of get_saved_register and
2029 write_register_bytes. After flushing the register cache, try to
2030 re-select the selected frame.
2031
2032 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2033
2034 * regcache.h (deprecated_register_valid): Rename register_valid.
2035 * regcache.c: Update.
2036 * ia64-aix-nat.c: Update.
2037 * i386gnu-nat.c: Update.
2038 * alpha-nat.c: Update.
2039 * sparc-nat.c: Update.
2040 * lynx-nat.c: Update.
2041 * remote-mips.c: Update.
2042
2043 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2044
2045 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2046 to end of file, to be more consistent with the pratice followed
2047 by other targets.
2048
2049 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2050
2051 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2052 (print_float_info): Print registers in float_reggroup.
2053 (print_vector_info): Print registers in vector_reggroup.
2054 (default_print_registers_info): When all, print registers in
2055 all_reggroup. Otherwize, print registers in general_reggroup.
2056 (registers_info): Rewrite. Add support for register groups.
2057 Eliminate a goto.
2058
2059 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2060
2061 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2062 ages.
2063 (symtab_symbol_info): Remove eons old ifdeffed out code.
2064 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2065 command.
2066
2067 2002-11-06 Theodore A. Roth <troth@openavr.org>
2068
2069 * c-exp.y: Add missing semi-colons.
2070 * f-exp.y: Add missing semi-colons.
2071 * m2-exp.y: Add missing semi-colons.
2072 * p-exp.y: Add missing semi-colons.
2073 Add empty action to start rule to avoid a type clash error when
2074 building with bison >= 1.50.
2075
2076 2002-11-06 Jim Blandy <jimb@redhat.com>
2077
2078 * macrotab.h (struct macro_source_file): Doc fix.
2079
2080 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2081
2082 * varobj.c (child_exists, cplus_number_of_children): Change
2083 STREQ macro references to strcmp.
2084 (cplus_name_of_child): Change code to handle the fact that
2085 fields are not necessarily contiguous with regards to their
2086 access control. This is a fix for PR gdb/792.
2087
2088 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2089
2090 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2091 * gdbarch.h, gdbarch.c: Regnerate.
2092 * frame.h (frame_register): Declare.
2093 * frame.c (frame_register): New function.
2094 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2095 GET_SAVED_REGISTER, otherwize call
2096 generic_unwind_get_saved_register.
2097 (frame_register_read): Use frame_register instead of
2098 get_saved_register.
2099
2100 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2101
2102 From Jim Ingham <jingham@apple.com>:
2103 * event-top.c (gdb_disable_readline): New function.
2104 (_initialize_event_loop): Move comment.
2105
2106 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2107
2108 * event-loop.c (start_event_loop): Add comment.
2109 Update copyright.
2110
2111 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2112
2113 * infcmd.c (default_print_registers_info): Do not call
2114 PRINT_REGISTER_HOOK.
2115
2116 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2117
2118 * sparc-tdep.c (sparc_print_register_hook): Make static.
2119 (sparc_print_registers_info): New function.
2120 (sparc_do_registers_info): New function.
2121 (sparclet_print_registers_info): New function.
2122 (sparclet_do_registers_info): New function.
2123 (do_sparc_print_registers_info): New function.
2124 (sparc_print_registers): New static function, clone of infcmd.c's
2125 default_print_registers_info.
2126 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2127 (sparclet_do_registers_info): Declare.
2128 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2129 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2130 Re-define.
2131 (sparc_do_registers_info): Declare.
2132 (PRINT_REGISTER_HOOK): Delete macro.
2133 (sparc_print_register_hook): Delete declaration.
2134
2135 2002-11-05 David Carlton <carlton@math.stanford.edu>
2136
2137 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2138 functions.
2139 (lookup_symbol_aux_local): New function.
2140 (lookup_symbol_aux_symtabs): New function.
2141 (lookup_symbol_aux_psymtabs): New function.
2142
2143 2002-11-05 David Carlton <carlton@math.stanford.edu>
2144
2145 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2146 previous values of 'objfile' and 'block'.
2147
2148 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2149
2150 * values.c (value_change_enclosing_type): Set
2151 enclosing_type field correctly also for the case where
2152 more memory needs to be allocated.
2153
2154 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2155
2156 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2157 of puts_filtered.
2158
2159 * i387-tdep.c (i387_print_float_info): Replace calls to
2160 register_read and deprecated_read_register_gen with calls to
2161 frame_register_read, and make the necessary adjustments to the
2162 surrounding code.
2163
2164 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2165
2166 * gdbarch.sh (register_reggroup_p): Allow default value.
2167 * gdbarch.h, gdbarch.c: Regenerate.
2168
2169 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2170
2171 * regcache.h: Add coment indicating replacements for deprecated
2172 functions.
2173
2174 2002-11-02 Andrew Cagney <cagney@redhat.com>
2175
2176 * reggroups.h, reggroups.c: New files.
2177 * regcache.c: Include "reggroups.h".
2178 (enum regcache_dump_what): Add `regcache_dump_groups'.
2179 (regcache_dump): Contract size of the "Type" column. When
2180 specified, dump the register's groups.
2181 (maintenance_print_register_groups): New function.
2182 (_initialize_regcache): Add command `maint print register-groups'.
2183 * Makefile.in (COMMON_OBS): Add reggroups.o
2184 (SFILES): Add reggroups.c.
2185 (reggroups_h): Define.
2186 (regcache.o, gdbarch.o): Update dependencies.
2187 (reggroups.o): Specify dependencies.
2188 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2189 Add opaque declaration for `struct reggroup' in generated .h file.
2190 Include "reggroups.h" in generated .c file.
2191 gdbarch.h, gdbarch.c: Re-generate.
2192
2193 2002-11-02 Andrew Cagney <cagney@redhat.com>
2194
2195 * regcache.h (deprecated_read_register_gen): Rename
2196 read_register_gen.
2197 (deprecated_write_register_gen): Rename write_register_gen.
2198 * i387-tdep.c: Update.
2199 * x86-64-linux-nat.c: Update
2200 * wince.c: Update.
2201 * thread-db.c: Update.
2202 * win32-nat.c: Update.
2203 * mips-tdep.c: Update.
2204 * d10v-tdep.c: Update.
2205 * cris-tdep.c: Update.
2206 * remote-sim.c: Update.
2207 * remote-rdi.c: Update.
2208 * remote-rdp.c: Update.
2209 * frame.c: Update.
2210 * target.c: Update.
2211 * blockframe.c: Update.
2212 * x86-64-tdep.c: Update.
2213 * xstormy16-tdep.c: Update.
2214 * sh-tdep.c: Update.
2215 * s390-tdep.c: Update.
2216 * rs6000-tdep.c: Update.
2217 * sparc-tdep.c: Update.
2218 * i386-tdep.c: Update.
2219 * dwarf2cfi.c: Update.
2220 * regcache.c: Update.
2221
2222 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2223
2224 New interix-specific files:
2225 * config/i386/nm-interix.h: New file.
2226 * config/i386/interix.mh: New file.
2227 * config/i386/interix.mt: New file.
2228 * i386-interix-nat.c: New file.
2229 * i386-interix-tdep.c: New file.
2230
2231 2002-11-01 Andrew Cagney <cagney@redhat.com>
2232
2233 * frame.h (deprecated_generic_get_saved_register): Rename
2234 generic_get_saved_register.
2235 * blockframe.c (deprecated_generic_get_saved_register): Update.
2236 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2237 (xstormy16_frame_saved_register): Update.
2238 * sh-tdep.c (sh_gdbarch_init): Update.
2239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2240 * ia64-tdep.c (ia64_get_saved_register): Update.
2241 * cris-tdep.c (cris_gdbarch_init): Update.
2242 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2243 * arm-tdep.c (arm_gdbarch_init): Update.
2244
2245 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2246
2247 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2248
2249 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2250
2251 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2252 trampolines in sigaction.
2253
2254 2002-10-31 Andrew Cagney <cagney@redhat.com>
2255
2256 * h8300-tdep.c: Include "gdb_assert.h".
2257 (h8300_print_register): Add gdbarch, file and frame parameters.
2258 Use frame_read_unsigned_register to read the register's value.
2259 Use fprintf_filtered to display output.
2260 (h8300_print_registers_info): Replace h8300_do_registers_info.
2261 (h8300_gdbarch_init): Set print_registers_info.
2262
2263 2002-10-31 Andrew Cagney <cagney@redhat.com>
2264
2265 * frame.c (frame_read_unsigned_register): New function.
2266 (frame_read_signed_register): New function.
2267 * frame.h (frame_read_unsigned_register): Declare.
2268 (frame_read_signed_register): Declare.
2269
2270 2002-10-31 Andrew Cagney <cagney@redhat.com>
2271
2272 * h8500-tdep.c (h8500_print_registers_info): New static function,
2273 clone of infcmd.c's default_print_registers_info.
2274 (h8500_do_registers_info): New funtion.
2275 (h8500_print_register_hook): Rename print_register_hook, make
2276 static.
2277
2278 * config/h8500/tm-h8500.h: Update copyright.
2279 (DEPRECATED_DO_REGISTERS_INFO): Define.
2280 (h8500_do_registers_info: Declare.
2281 (PRINT_REGISTER_HOOK): Delete macro.
2282 (print_register_hook): Delete function.
2283
2284 2002-10-31 Andrew Cagney <cagney@redhat.com>
2285
2286 * z8k-tdep.c (z8k_print_register_hook): Make static.
2287 (z8k_print_registers_info): New static function, clone of
2288 infcmd.c's default_print_registers_info.
2289 (z8k_do_registers_info): New function. Wrap
2290 z8k_print_registers_info.
2291 * config/z8k/tm-z8k.h: Update copyright.
2292 (PRINT_REGISTER_HOOK): Delete macro.
2293 (z8k_print_register_hook): Delete declaration.
2294 (DEPRECATED_DO_REGISTERS_INFO): Define.
2295 (z8k_do_registers_info): Declare.
2296
2297 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2298
2299 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2300 as this is already provided by value.h, and was actually causing
2301 a compilation error because of a conflict in parameter type
2302 declaration due to a missing const keyword.
2303 (low_text_segment_addres): Fix a compilation warning.
2304
2305 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2308 registers without a name.
2309 (mips_linux_cannot_store_register): Don't store registers without
2310 a name.
2311
2312 2002-10-28 David Carlton <carlton@math.stanford.edu>
2313
2314 * symtab.c (find_addr_symbol): Delete. (It was already commented
2315 out.)
2316 * symtab.h: Delete prototype for find_addr_symbol.
2317
2318 2002-10-26 Andrew Cagney <cagney@redhat.com>
2319
2320 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2321 DO_REGISTERS_INFO.
2322 gdbarch.h, gdbarch.c: Re-generate.
2323 * infcmd.c (default_print_registers_info): Update reference.
2324 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2325 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2326 * sh-tdep.c (sh_gdbarch_init): Ditto.
2327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2328 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2329
2330 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2331
2332 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2333 cfi_init_extra_frame_info.
2334 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2335 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2336
2337 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2338 target where necessary. Add more comments and remove the ones
2339 that don't provide any useful information.
2340
2341 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2342 deprecated_read_register_dummy with
2343 frame_unwind_unsigned_register.
2344
2345 * i386-tdep.c (i386_extract_struct_value_address): Use
2346 regcache_raw_read_unsigned instead of
2347 regcache_cooked_read_unsigned since we know that the register
2348 we're reading isn't a pseudo register. Rename variable 'val' into
2349 the more descriptive 'addr'.
2350
2351 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2352 (x86_64_push_return_address): Add comment.
2353 (x86_64_pop_frame): Make static.
2354 (examine_argument): Clarify comment.
2355 (x86_64_skip_prologue): Make prolog_expact variable static.
2356
2357 * dwarf2cfi.c: Fix some formatting problems.
2358 (context_cpy, read_encoded_pointer): Clarify comments.
2359
2360 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2361 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2362 i386 target back into x86_64_gdbarch_init. Add some comments and
2363 remove meaningless ones.
2364
2365 2002-10-25 Andrew Cagney <cagney@redhat.com>
2366
2367 * complaints.h (struct deprecated_complaint): Rename `struct
2368 complaint'.
2369 * complaints.c (complain): Update.
2370 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2371 incorrect comment indicating that "symfile.h" was being included
2372 for the `struct complaint' definition.
2373 * remote-vx.c: Update.
2374 * objc-lang.c: Update.
2375 * xcoffread.c: Update.
2376 * hpread.c: Update.
2377 * mdebugread.c: Update.
2378 * stabsread.c: Update.
2379 * dwarf2read.c: Update.
2380 * dwarfread.c: Update.
2381 * elfread.c: Update.
2382 * coffread.c: Update.
2383 * stabsread.h: Update.
2384 * dbxread.c: Update.
2385 * buildsym.c: Update.
2386 * gdbtypes.c: Update.
2387 * macrotab.c: Update.
2388
2389 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2390
2391 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2392 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2393 (x86_64_init_abi): ...new function.
2394
2395 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2396 * i386v-nat.c: Include "i386-tdep.h".
2397
2398 2002-10-25 Andrew Cagney <cagney@redhat.com>
2399
2400 * gdbtypes.c (address_space_name_to_int): Update.
2401 (address_space_int_to_name): Update.
2402 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2403 multi-arch predicate.
2404 (address_class_name_to_type_flags): Ditto.
2405 * gdbarch.h, gdbarch.c: Re-generate.
2406
2407 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2408
2409 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2410
2411 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2412
2413 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2414
2415 * symtab.h (INIT_SAL): Delete macro.
2416 (init_sal): Export.
2417 * symtab.c (init_sal): New function.
2418
2419 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2420 to init_sal function call.
2421 (find_sal_from_funcs_and_line): Ditto.
2422 (all_sals_for_line): Ditto.
2423 * breakpoint.c (create_internal_breakpoint): Ditto.
2424 (create_fork_vfork_event_catchpoint): Ditto.
2425 (create_exec_event_catchpoint): Ditto.
2426 (parse_breakpoint_sals): Ditto.
2427 (watch_command_1): Ditto.
2428 (handle_gnu_4_16_catch_command): Ditto.
2429 (clear_command): Ditto.
2430 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2431 * infcmd.c (run_stack_dummy): Ditto.
2432 * infrun.c (process_event_stop_test): Ditto.
2433 (check_sigtramp2): Ditto.
2434 (step_over_function): Ditto.
2435 * linespec.c (decode_line_2): Ditto.
2436 (decode_line_1): Ditto.
2437 * source.c (line_info): Ditto.
2438 * symtab.c (find_pc_sect_line): Ditto.
2439
2440 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2441
2442 * dwarf2cfi.c (struct context)
2443 (struct context_reg): Moved to dwarf2cfi.h
2444 (context_alloc, frame_state_alloc, context_cpy):
2445 Made extern instead of static, removed prototypes.
2446 * dwarf2cfi.h (struct context)
2447 (struct context_reg): New, moved from dwarf2cfi.c
2448 (context_alloc, frame_state_alloc, context_cpy):
2449 New prototypes.
2450 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2451 Changed from static to extern.
2452 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2453 (LINUX_SIGCONTEXT_FP_OFFSET)
2454 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2455 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2456 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2457 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2458 set_gdbarch_*() calls now use x86-64 specific functions
2459 instead of DWARF2 CFI ones.
2460 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2461 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2462 (x86_64_init_extra_frame_info): New prototypes.
2463
2464 2002-10-23 David Carlton <carlton@math.stanford.edu>
2465
2466 * linespec.c: #include "parser-defs.h".
2467 Delete prototype for find_template_name_end.
2468 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2469
2470 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2471
2472 * NEWS: add recent mi fixes.
2473 * varobj.c (struct varobj): Add new "updated" flag.
2474 (new_variable): Default "updated" flag to 0.
2475 (varobj_set_value): Set "updated" flag to 1 if value
2476 changes.
2477 (varobj_update): Check varobj "updated" flag before
2478 comparing old and refreshed values. Fix for
2479 PR gdb/702.
2480
2481 2002-10-23 David Carlton <carlton@math.stanford.edu>
2482
2483 * parse.c (parse_exp_1): Use BLOCK_START.
2484 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2485 SYMBOL_BLOCK_VALUE.
2486 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2487
2488 2002-10-23 David Carlton <carlton@math.stanford.edu>
2489
2490 * symtab.c: Delete cplusplus_hint.
2491 Delete prototype for find_template_name_end.
2492
2493 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2494
2495 * symtab.h: Update comment.
2496
2497 2002-10-23 Michael Snyder <msnyder@redhat.com>
2498
2499 * printcmd.c (address_info): Restore quotes in output.
2500 * valops.c (value_of_local): Restore quotes in error message.
2501
2502 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2503
2504 * symtab.c (symbol_demangled_name): New function.
2505 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2506 turning most of it into a function.
2507 (symbol_demangled_name): Export.
2508
2509 2002-10-23 Michael Snyder <msnyder@redhat.com>
2510
2511 * valops.c (value_of_local): Restore quotes in error message.
2512
2513 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2514
2515 * symtab.c (symbol_init_language_specific): New function.
2516 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2517 turning most of it into a function.
2518 (symbol_init_language_specific): Export.
2519
2520 2002-10-23 David Carlton <carlton@math.stanford.edu>
2521
2522 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2523 (dwarf_attr_name): Ditto.
2524 (dwarf_type_encoding_name): Ditto.
2525 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2526 (process_die): Handle DW_TAG_namespace,
2527 DW_TAG_imported_declaration, DW_TAG_imported_module.
2528 (read_namespace): New function.
2529
2530 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2531
2532 * configure.in: Define NEW_PROC_API on Interix too.
2533 * configure: Regenerate.
2534
2535 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2536
2537 * configure: Regenerate using the proper version of autoconf.
2538
2539 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2540
2541 * findvar.c (read_var_value): Temporarily disable TLS code, until
2542 complete TLS support is added.
2543
2544 2002-10-21 Jim Blandy <jimb@redhat.com>
2545 Elena Zannoni <ezannoni@redhat.com>
2546
2547 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2548 for thread local storage locations.
2549 (struct symbol): Add objfile field.
2550 (SYMBOL_OBJFILE): Define.
2551 * dwarf2read.c (is_thread_local): New static variable.
2552 (new_symbol): If variable is in thread local fill in address class
2553 and objfile appropriately.
2554 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2555 stack operation.
2556 * printcmd.c (address_info): Print the information for thread
2557 local storage variable.
2558 * findvar.c (read_var_value): In case of thread local variable,
2559 defer to the target vector code to compute address.
2560
2561 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2562
2563 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2564 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2565
2566 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2567
2568 * symtab.h (address_class): Rename
2569 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2570 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2571 * printcmd.c (address_info): Ditto.
2572 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2573
2574 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2575
2576 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2577 DBREG_DRX macro to acces debug registers.
2578
2579 * Makefile.in (i386obsd-tdep.o): New target.
2580
2581 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2582 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2583
2584 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2585 * config/i386/obsd.mt: New file.
2586 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2587 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2588 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2589 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2590 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2591 * i386obsd-tdep.c: New file.
2592
2593 2002-10-19 Adam Fedor <fedor@gnu.org>
2594
2595 * objc-exp.y (name_not_typename): Fix invalid comment.
2596
2597 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2598
2599 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2600 to allocate partial syms and macro byte caches.
2601
2602 2002-10-18 David Carlton <carlton@math.stanford.edu>
2603
2604 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2605
2606 2002-10-18 Adam Fedor <fedor@gnu.org>
2607
2608 * stabsread.c (find_name_end): New function.
2609 (define_symbol): Use it.
2610
2611 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2612
2613 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2614 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2615 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2616 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2617
2618 2002-10-17 David Carlton <carlton@math.stanford.edu>
2619
2620 * symfile.h: Add opaque declaration for struct obstack.
2621 Declare obsavestring to take a const char *.
2622 * symfile.c (obsavestring): Make first argument a const char *.
2623
2624 2002-10-16 Adam Fedor <fedor@gnu.org>
2625
2626 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2627 names when matching breakpoints in current file.
2628
2629 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2630
2631 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2632 (read_tag_pointer_type): Add address class support.
2633 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2634 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2635 New methods.
2636 * gdbarch.h, gdbarch.c: Regenerate.
2637 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2638 (make_type_with_address_space, recursive_type_dump): Add address
2639 class support.
2640 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2641 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2642 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2643
2644 2002-10-16 Klee Dienes <kdienes@apple.com>
2645
2646 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2647 to get the last character of a char[] buffer, not
2648 name[sizeof(vptr_name)-1].
2649
2650 2002-10-14 Adam Fedor <fedor@gnu.org>
2651
2652 * symtab.h: New objc_specific struct.
2653 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2654 (SYMBOL_DEMANGLED_NAME): Likewise.
2655
2656 2002-10-14 Adam Fedor <fedor@gnu.org>
2657
2658 * symfile.c (init_filename_language_table): Add ObjC file extension.
2659
2660 2002-10-14 Adam Fedor <fedor@gnu.org>
2661
2662 * utils.c (puts_filtered_tabular): New function.
2663 (fprintf_symbol_filtered): Get ObjC demangled name.
2664 * defs.h (puts_filtered_tabular): Declared.
2665
2666 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2667
2668 * c-lang.h (c_type_print_varspec_prefix): Delete.
2669 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2670 ``need_post_space'' parameter. Adjust all callers.
2671
2672 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2673
2674 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2675 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2676 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2677 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2678
2679 2002-10-13 Adam Fedor <fedor@gnu.org>
2680
2681 * source.c (print_source_lines): Update comments.
2682
2683 2002-10-13 Adam Fedor <fedor@gnu.org>
2684
2685 * valops.c (value_of_local): New function.
2686 (value_of_this): Use it.
2687 * value.h (value_of_local): Declared.
2688
2689 2002-10-13 Adam Fedor <fedor@gnu.org>
2690
2691 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2692 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2693
2694 2002-10-12 Adam Fedor <fedor@gnu.org>
2695
2696 * language.c (binop_result_type): Add language_objc to case.
2697 (integral_type): Likewise.
2698 (character_type): Likewise.
2699 (string_type): Likewise.
2700 (boolean_type): Likewise.
2701 (structured_type): Likewise.
2702 (binop_type_check): Likewise.
2703
2704 2002-10-11 Adam Fedor <fedor@gnu.org>
2705
2706 * printcmd.c (address_info): Print 'self' for ObjC.
2707
2708 2002-10-11 Adam Fedor <fedor@gnu.org>
2709
2710 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2711 OP_SELF.
2712
2713 2002-10-11 Adam Fedor <fedor@gnu.org>
2714
2715 * language.h (CAST_IS_CONVERSION): Add language_objc.
2716
2717 2002-10-11 Adam Fedor <fedor@gnu.org>
2718
2719 * defs.h (enum language): Add language_objc.
2720
2721 2002-10-11 Klee Dienes <kdienes@apple.com>
2722
2723 * corefile.c (read_memory_typed_address): New function.
2724 * gdbcore.h (read_memory_typed_address): Add prototype.
2725 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2726 to read a value destined for a CORE_ADDR, not read_memory_integer.
2727 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2728 (f77_get_dynamic_lowerbound): Ditto.
2729
2730 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2731
2732 * utils.c (string_to_core_addr): After turning string into
2733 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2734 which will do necessary sign-extension, etc.
2735
2736 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2737
2738 * c-exp.y (THIS): Delete token and grammar rule.
2739 (yylex): Don't return THIS.
2740 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2741 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2742 * demangle.c (cplus_markers): Update comment. Put '$'
2743 first. Remove CPLUS_MARKER.
2744 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2745 * jv-exp.y (THIS): Delete token and grammar rule.
2746 (yylex): Don't return THIS.
2747 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2748 * objc-exp.y (THIS): Delete token and grammar rule.
2749 (yylex): Don't return THIS.
2750 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2751 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2752 (read_member_functions): Likewise for opname.
2753 (read_tilde_fields): Use is_cplus_marker.
2754
2755 * defs.h (CPLUS_MARKER): Don't define.
2756 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2757 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2758 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2759 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2760 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2761
2762 * config/i386/tm-i386v4.h: Delete file.
2763 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2764 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2765 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2766 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2767 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2768 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2769 * config/i386/i386v4.mt (TM_FILE): Likewise.
2770 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2771
2772 2002-10-10 Marko Mlinar <markom@opencores.org>
2773
2774 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2775 accidentially not commited 2002-10-09
2776 * gdbarch.h, gdbarch.c: Re-generate.
2777
2778 2002-10-09 Marko Mlinar <markom@opencores.org>
2779
2780 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2781 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2782 * gdbarch.h, gdbarch.c: Re-generate.
2783
2784 2002-10-08 Petr Sorfa <petrs@caldera.com>
2785
2786 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2787
2788 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2789 so we can work on more than one compilation unit at a time. This
2790 helps prepare GDB to handle inter-CU die references.
2791 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2792 the code to be defined before struct comp_unit_head.
2793 (comp_unit_head): Added new members - offset, cu_head,
2794 begin_die, next and dwarf2_abbrevs.
2795 (dwarf2_abbrevs): Removed single static var; now member of
2796 struct comp_unit_head.
2797 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2798 members.
2799 (psymtab_to_symtab_1): Changed to work with the new
2800 struct comp_unit_head.
2801 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2802 constructs the dwarf2_abbrevs[] inside the cu_header.
2803 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2804 dwarf2_abbrev table to clean up.
2805 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2806 handling of dwarf2_abbrevs inside the cu_header.
2807 (read_partial_die): Now supports the call to the new
2808 dwarf2_lookup_abbrev.
2809 (read_full_die): Now supports the call to the new
2810 dwarf2_lookup_abbrev.
2811
2812 2002-10-06 Christopher Faylor <cgf@redhat.com>
2813
2814 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2815 insure that shell variables, such as "transformed_name" are propagated
2816 to later shell statements in rule.
2817
2818 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2819
2820 * config/i386/nm-i386sco.h: Add protection against
2821 multiple-inclusion. Include "i386/nm-i386v.h".
2822 (REGISTER_U_ADDR): Remove define.
2823 (i386_register_u_addr): Remove prototype.
2824
2825 2002-10-04 Michael Snyder <msnyder@redhat.com>
2826
2827 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2828 before treating it as a single-step event.
2829
2830 2002-10-03 Adam Fedor <fedor@gnu.org>
2831
2832 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2833 (objc_demangle): Remove assignment in if statements, Replace
2834 free with xfree.
2835 (add_msglist): Likewise.
2836 (end_msglist): Likewise.
2837 (complare_selectors): Likewise.
2838 (selectors_info): Likewise.
2839 (compare_classes): Likewise.
2840 (classes_info): Likewise.
2841 (print_object_command): Likewise.
2842 (find_objc_msgcall_submethod): Replace PTR with void *.
2843 * objc-lang.h: Remove check for __STDC__.
2844
2845 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2846
2847 * ui-out.h (ui_out_field_fmt_int): New prototype.
2848 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2849 of field width and alignment.
2850 * stack.c (print_frame_info_base): When printing frame level, use
2851 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2852 PR gdb/192
2853
2854 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2855
2856 * MAINTAINERS: Add self to Write After Approval list.
2857
2858 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2859
2860 * infcmd.c (interrupt_target_command_wrapper): Delete.
2861 (interrupt_target_command): Make non static.
2862 (nofp_registers_info): Make static.
2863 * stack.c (return_command_wrapper): Delete.
2864 (return_command): Make non static.
2865
2866 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2867
2868 * event-top.c (gdb_setup_readline): New function. Code moved from
2869 _initialize_event_loop().
2870 (_initialize_event_loop): Call gdb_setup_readline().
2871
2872 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2873
2874 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2875 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2876 * gdbarch.h, gdbarch.c: Re-generate.
2877
2878 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2879
2880 Fix PR gdb/778
2881 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2882 before recursing.
2883 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2884 of fill_in_vptr_fieldno.
2885
2886 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2887
2888 * inferior.h (registers_info, stepi_command, nexti_command,
2889 continue_command, interrupt_target_command): Export from infcmd.c.
2890 * frame.h (args_info, selected_frame_level_changed_hook,
2891 return_command): Export from stack.c.
2892 * v850ice.c (stepi_command, nexti_command, continue_command): use
2893 prototypes from inferior.h.
2894 * tracepoint.c (registers_info, args_info, locals_info): Use
2895 prototypes from frame.h and inferior.h.
2896 * Makefile.in (mi-main.o): Add dependency on frame.h.
2897
2898 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2899
2900 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2901 value in register 3 adjusted by ppc_gp0_regnum.
2902
2903 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2904
2905 2002-10-02 Marko Mlinar <markom@opencores.org>
2906
2907 * MAINTAINERS: Add myself to the Write After Approval list.
2908
2909 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2910
2911 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2912 of the section for the N64 ABI, fixed.
2913
2914 * config/mips/tm-irix6.h: Include solib.h.
2915
2916 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2917
2918 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2919 GNU operators.
2920
2921 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2922
2923 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2924 and that "mi0" syntax has been removed.
2925
2926 2002-09-30 David Carlton <carlton@math.stanford.edu>
2927
2928 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2929 * ppc-sysv-tdep.c: #include "gdb_string.h".
2930 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2931 pacify GCC.
2932
2933 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2934
2935 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2936 "vrsave"'s register number.
2937
2938 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2939
2940 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2941 use frame_unwind_signed_register to obtain the PC.
2942 (mips_frame_chain): Handle a generic dummy frame.
2943 (mips_init_extra_frame_info): When a generic dummy frame, don't
2944 re-compute the frame base.
2945 (mips_pop_frame): Handle generic dummy frames.
2946 (mips_gdbarch_init): When generic dummy frames, set
2947 use_generic_dummy_frames, push_dummy_frame to
2948 generic_push_dummy_frame, pc_in_call_dummy to
2949 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2950 generic_save_dummy_frame_tos.
2951
2952 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2953
2954 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2955 against TOP when TOP was explictly set.
2956 (generic_push_dummy_frame): Set TOP to zero.
2957
2958 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2959
2960 * event-loop.c (start_event_loop): Rename variable 'result' to
2961 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2962
2963 2002-09-30 Keith Seitz <keiths@redhat.com>
2964
2965 * gdb-events.sh (selected_thread_changed): New event.
2966 * gdb-events.c: Regenerated.
2967 * gdb-events.h: Regenerated.
2968
2969 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2970
2971 * MAINTAINERS: Add self to Write After Approval list.
2972
2973 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2974
2975 * disasm.c: New file.
2976 * disasm.h: New file.
2977 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2978 (compare_lines): Ditto.
2979 (dump_insns): Ditto.
2980 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2981 argument.
2982 (do_assembly_only): Ditto.
2983 (do_disassembly): Renamed to gdb_disassembly and moved to
2984 disasm.c. Sdded uiout argument.
2985 * Makefile.in: Add new files. Reorder SFILES list. Update
2986 dependencies. Include libgdb.a later in the insight executable.
2987
2988 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2989
2990 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2991 bfd/elf64-alpha-fbsd.c.
2992
2993 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2994
2995 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2996 i386gnu-tdep.c.
2997
2998 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2999
3000 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3001 __FUNCTION__.
3002 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3003 function name.
3004 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3005 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3006 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3007 (S_msg_sig_post_reply): Ditto.
3008
3009 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3010
3011 * sh-tdep.c (sh_use_struct_convention): Use definition according
3012 to ABI.
3013 (sh_push_arguments): Store in register with correct endianess.
3014 (sh_default_store_return_value): Ditto.
3015 (sh_gdbarch_init): Set sizeof long double to 8.
3016
3017 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3018
3019 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3020 Fix some whitespace problems.
3021
3022 2002-09-27 David Carlton <carlton@math.stanford.edu>
3023
3024 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3025 (mcore-tdep.o): Ditto.
3026 (ns32k-tdep.o): Ditto.
3027 (ns32knbsd-tdep.o): Ditto.
3028 (sh3-rom.o): Ditto.
3029 (vax-tdep.o): Ditto.
3030 * cris-tdep.c: #include "gdb_string.h"
3031 * mcore-tdep.c: Ditto.
3032 * ns32k-tdep.c: Ditto.
3033 * ns32knbsd-tdep.c: Ditto.
3034 * sh3-rom.c: Ditto.
3035 * vax-tdep.c: Ditto.
3036
3037 2002-09-27 David Carlton <carlton@math.stanford.edu>
3038
3039 * config/djgpp/fnchange.lst: Add entries for
3040 gdb/testsuite/gdb.c++/m-static files.
3041
3042 2002-09-27 Jim Wilson <wilson@redhat.com>
3043
3044 * MAINTAINERS: Add myself to the Write After Approval list.
3045
3046 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3047
3048 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3049
3050
3051 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3052
3053 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3054 frame.
3055
3056 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3057
3058 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3059 (rs6000_struct_return_address): Delete variable.
3060 (rs6000_store_struct_return): Update.
3061 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3062 deprecated_extract_struct_value_address.
3063 (rs6000_frame_align): New function.
3064 (rs6000_gdbarch_init): Set frame_align.
3065
3066 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3067
3068 From Grace Sainsbury <graces@redhat.com>:
3069 * Makefile.in (gdbtk-main.o): New target.
3070 (gdb.o): New target.
3071 (main_h): Define.
3072 (main.o): Update dependencies.
3073 (gdb$(EXEEXT)): Add gdb.o.
3074 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3075 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3076 (SUBDIR_GDBTK_CLEAN): Set.
3077 (install-gdbtk): Install the insight binary.
3078 (uninstall-gdbtk): New target.
3079 (all-gdbtk, clean-gdbtk): New rule.
3080 * top.c (use_windows): Default to zero.
3081 * main.c: Include "main.h".
3082 (main): Delete.
3083 (struct captured_main_args): Delete.
3084 (gdb_main): New function.
3085 * main.h: New file.
3086 * gdb.c: New File.
3087
3088 2002-09-25 Andrew Cagney <cagney@redhat.com>
3089
3090 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3091 (frame_map_regnum_to_name): New function.
3092 (frame_map_name_to_regnum): New function.
3093 * frame.h (frame_map_name_to_regnum): Declare.
3094 (frame_map_regnum_to_name): Declare.
3095 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3096 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3097 * parse.c: Do not include "builtin-regs.h".
3098 (target_map_name_to_register): Delete function.
3099 (write_dollar_variable): Use frame_map_name_to_regnum.
3100 * parser-defs.h (target_map_name_to_register): Delete declaration.
3101 * expprint.c: Include "frame.h".
3102 (print_subexp): Use frame_map_regnum_to_name.
3103 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3104 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3105
3106 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3107
3108 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3109 wasn't saved, and the next innermost frame is a dummy, return the
3110 dummy frame's link register.
3111
3112 2002-09-24 Jim Blandy <jimb@redhat.com>
3113
3114 Fix from Paul Breed:
3115 * main.c (captured_main): Add a `break' after the case for 'b'.
3116
3117 2002-09-24 Keith Seitz <keiths@redhat.com>
3118
3119 * varobj.c (c_type_of_child): Use get_target_type instead
3120 of TYPE_TARGET_TYPE.
3121
3122 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3123
3124 * source.c (get_current_or_default_source_symtab_and_line): Remove
3125 function.
3126 (set_default_source_symtab_and_line): New function. Attempts to
3127 determine a source file to list lines from if one is not currently
3128 defined.
3129 (get_current_source_symtab_and_line): Initialize sal.pc and
3130 sal.end fields.
3131 (set_current_source_symtab_and_line): Mark argument as const.
3132 * source.h: Update declarations and comments.
3133 * linespec.c (decode_line_1): Replace call to removed routine above.
3134 * stack.c (print_frame_info_base): Ditto.
3135 * cli/cli-cmds.c (edit_command): Ditto.
3136 (list_command): Ditto.
3137
3138 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3139
3140 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3141 sal.pc and sal.end fields.
3142 (get_current_or_default_source_symtab_and_line): Ditto.
3143 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3144 so we do not cause a new source symtab to be searched for (reverting an
3145 unintentional change from the 2002-09-20 patch).
3146 * scm-lang.c (scm_unpac): Ditto.
3147
3148 2002-09-21 Andrew Cagney <cagney@redhat.com>
3149
3150 * complaints.c (symfile_explanations): Remove new-line from
3151 ``isolated_message''.
3152 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3153 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3154
3155 2002-09-20 Nick Clifton <nickc@redhat.com>
3156
3157 * NEWS: Announce that V850EA ISA is no longer supported.
3158 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3159
3160 2002-09-20 David Carlton <carlton@math.stanford.edu>
3161
3162 * Makefile.in (c-lang.o): Correct dependencies.
3163 (utils.o): Gather dependencies.
3164 (charset.o): Move.
3165 * c-lang.c: #include "gdb_string.h"
3166
3167 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3168
3169 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3170 * cli/cli-cmds.c (list_command): New function. Implements the new
3171 cli edit command.
3172 (_init_cli_cmds): Add new command definition.
3173 * gdb.1: Document edit command.
3174 * doc/gdb.texinfo: Document edit command.
3175
3176 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3177
3178 * source.c: Make global variables current_source_symtab and
3179 current_source_line static.
3180 (list_command): Moved to cli/cli-cmds.c.
3181 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3182 (get_first_line_listed): New accessor function.
3183 (get_lines_to_list): New accessor function.
3184 (get_current_source_symtab_and_line): New function. Retrieves the
3185 position in the source code that we consider current.
3186 (get_current_or_default_source_symtab_and_line): New function.
3187 Like the above but attempts to determine a default position if one
3188 is not currently defined.
3189 (set_current_source_symtab_and_line): New function. Sets the source
3190 code position considered current and returns the previously set one.
3191 (clear_current_source_symtab_and_line): Reset stored information about
3192 a current source line.
3193 (_initialize_source): Remove registration for the "list" command and
3194 its alias.
3195 * source.h: Add declarations for the new functions above.
3196 * symtab.h: Remove declarations for the global variables mentioned
3197 above.
3198 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3199 obtain current source line.
3200 * linespec.c (decode_line_1): Ditto.
3201 * macroscope.c (default_macro_scope): Ditto.
3202 * scm-lang.c (scm_unpac): Ditto.
3203 * stack.c (print_frame_info_base): Ditto.
3204 * symfile.c (clear_symtab_users): Ditto.
3205 * symtab.c (decode_line_spec): Ditto.
3206 * cli/cli-cmds.c (list_command): Moved here from source.c.
3207 (ambiguous_line_spec): Moved here from source.c.
3208 (_init_cli_cmds): Add definition for "list" and its alias.
3209 * Makefile.in: Update dependencies.
3210
3211 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3212
3213 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3214 with what gcc thinks is correct.
3215
3216 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3217
3218 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3219 multiple register push instruction.
3220
3221 2002-09-19 Jim Blandy <jimb@redhat.com>
3222
3223 Add support for distinct host and target character sets.
3224 * charset.c, charset.h: New files.
3225 * c-exp.y: #include "charset.h".
3226 (yylex): Convert character and string literals to the target
3227 character set, before returning them as the semantic value of the
3228 token.
3229 * c-lang.c: #include "charset.h".
3230 (c_emit_char): Use charset-specific methods to recognize
3231 characters with backslash escape forms, to decide which characters
3232 to print literally and which to print using numeric escape
3233 sequences, and to convert target characters to host characters
3234 before printing.
3235 * utils.c: #include "charset.h".
3236 (no_control_char_error): New function.
3237 (parse_escape): Use charset-specific methods to recognize
3238 backslash escapes, parse `control character' notation, and convert
3239 characters from the host character set to the target character set.
3240 * configure.in: Set the default host character set.
3241 Check where to find iconv, and what its argument types might be.
3242 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3243 * Makefile.in (SFILES): List charset.c.
3244 (COMMON_OBS): List charset.o.
3245 (charset.o): New rule.
3246 (charset_h): New header dependency variable.
3247 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3248 (LIBICONV): New variable, set by configure.
3249 (CLIBS): Include $(LIBICONV) here.
3250 * aclocal.m4, config.in, configure: Regenerated.
3251
3252 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3253
3254 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3255 bison 1.35 warning.
3256
3257 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3258
3259 * gdb_mbuild.sh: New file.
3260
3261 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3262
3263 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3264
3265 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3266
3267 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3268 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3269 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3270 valops.c, value.h: Revert previous change.
3271
3272 2002-09-18 Michael Snyder <msnyder@redhat.com>
3273
3274 Preliminary support for Objective-C:
3275 * defs.h (language_objc): New enum value.
3276 (puts_filtered_tabular): Declaration only, exported from utils.c.
3277 (skip_quoted): Delete, declared in completer.h.
3278 * c-exp.y: Include completer.h.
3279 * p-exp.y: Ditto.
3280 * jv-exp.y: Ditto.
3281 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3282 New operator enum values.
3283 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3284 * language.c (binop_result_type): Handle language_objc case.
3285 (integral_type, character_type, string_type, boolean_type,
3286 structured_type, binop_type_check): Ditto.
3287 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3288 (struct objc_specific): Add to general_symbol_info.
3289 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3290 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3291 * parser-defs.h (struct objc_class_str): New struct type.
3292 (start_msglist, end_msglist, add_msglist): Declaration only,
3293 exported from objc-lang.c.
3294 * value.h (value_of_local, value_nsstring,
3295 call_function_by_hand_expecting_type): Exported from valops.c.
3296 * valops.c (find_function_addr): Export.
3297 (call_function_by_hand_expecting_type): New function.
3298 (value_of_local): New function.
3299 * symfile.c (init_filename_language_table): Add ".m" extension
3300 for Objective-C.
3301 * utils.c (puts_filtered_tabular): New function.
3302 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3303 (set/show demangle): Extend help-string to refer to ObjC.
3304 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3305 * stabsread.c (symbol_reference_defined): Objective-C symbols
3306 may contain colons: make allowances when scanning stabs strings
3307 for colons.
3308 (objc_find_colon): New function.
3309 * printcmd.c (address_info): If language == objc then print
3310 "self" instead of "this".
3311 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3312 OP_NSSTRING, and OP_SELF.
3313 (prefixify_subexp): Ditto.
3314 * source.c (print_source_lines): Mention objc in comment.
3315 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3316 method names.
3317
3318 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3319
3320 * complaints.h: Update copyright.
3321 (struct complaints): Declare.
3322 (struct complaint): Make `message' constant.
3323 (internal_complaint): Declare.
3324 (complaint): Declare.
3325 (complaint_root): Delete declaration.
3326 (symfile_complaints): Delete declaration.
3327 (struct complaints): Add opaque declaration.
3328 (clear_complaints): Add a complaints parameter.
3329 * complaints.c: Update copyright.
3330 (enum complaint_series): Define.
3331 (complaint_root): Delete.
3332 (struct complaints): Define.
3333 (complaint_sentinel, symfile_complaint_book): New variables.
3334 (symfile_explanations, symfile_complaints): New variables.
3335 New variables.
3336 (get_complaints): New function.
3337 (vcomplaint): New function.
3338 (complaint): New function.
3339 (internal_complaint): New function.
3340 (complain): Call vcomplain with symfile_complaint.
3341 (clear_complaints): Rewrite.
3342 (_initialize_complaints): Use add_setshow_command.
3343 * Makefile.in (complaints.o): Update dependencies.
3344 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3345 to call to clear_complaints.
3346 (new_symfile_objfile, reread_symbols): Ditto.
3347 (oldsyms_complaint): Delete.
3348 (empty_symtab_complaint, unknown_option_complaint): Delete.
3349 (free_named_symtabs): Use complaint instead of complain.
3350
3351 2002-09-18 Michael Snyder <msnyder@redhat.com>
3352
3353 Contributed by Apple Computer, Inc. Merged with current sources
3354 by Adam Fedor <fedor@doc.com> [cagney].
3355
3356 * objc-lang.c: First clean-up round: comments, indentation.
3357 * objc-lang.h: Ditto.
3358 * objc-lang.y: Ditto.
3359
3360 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3361
3362 * maint.c (maintenance_internal_error): Print the parameter as the
3363 error message.
3364 (maintenance_internal_warning): New function.
3365 (_initialize_maint_cmds): Add command `maint internal-warning'.
3366
3367 * defs.h (internal_warning, internal_vwarning): Declare.
3368 * utils.c (struct internal_problem): Define.
3369 (internal_vproblem): New function.
3370 (internal_warning): New function.
3371 (internal_vwarning): New function.
3372 (internal_warning_problem, internal_error_problem): New variables.
3373 (internal_verror): Just call internal_vproblem.
3374
3375 2002-09-18 Michael Snyder <msnyder@redhat.com>
3376
3377 * objc-lang.c: New file, support for Objective-C.
3378 Preliminary check-in, not yet integrated into gdb.
3379 * objc-lang.h: New file.
3380 * objc-exp.y: New file.
3381
3382 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3383
3384 * infrun.c (signal_stop_update): Convert definition to ISO C.
3385 (signal_print_update): Ditto.
3386 (signal_pass_update): Ditto.
3387 * inflow.c (terminal_save_ours): Ditto.
3388
3389 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3390 comments.
3391
3392 * config/djgpp/fnchange.lst: Handle name clashes between
3393 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3394 bfd/coff-tic80.c.
3395
3396 * i386-linux-tdep.h: Fix tipo.
3397
3398 2002-09-18 Adam Fedor <fedor@gnu.org>
3399
3400 * MAINTAINERS: Add myself to the Write After Approval list.
3401
3402 2002-09-18 Jim Blandy <jimb@redhat.com>
3403
3404 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3405 texthigh and textlow to reader-specific structs caused
3406 objfile_relocate to miss them. This is fixable, but the work that
3407 the change was supposed to prepare GDB for never got done anyway.
3408
3409 2002-09-18 David Carlton <carlton@math.stanford.edu>
3410
3411 * MAINTAINERS: Alphabetize Write After Approval list.
3412
3413 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3414
3415 Fix PR gdb/709
3416 * values.c (value_static_field): Call read_var_value.
3417
3418 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3419
3420 * valops.c (hand_function_call): Align the initial stack pointer
3421 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3422 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3423 return value.
3424 * mips-tdep.c (mips_frame_align): New function.
3425 (mips_gdbarch_init): Set frame_align.
3426 * gdbarch.sh (FRAME_ALIGN): New method.
3427 * gdbarch.h, gdbarch.c: Re-generate.
3428
3429 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3430
3431 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3432 registers.
3433
3434 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3435
3436 * NEWS: Mention that MIPS $fp behavior changed.
3437 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3438 reference to FP_REGNUM.
3439 (mipsnbsd_cannot_store_register): Ditto.
3440 * mips-linux-nat.c: Update copyright.
3441 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3442 (mips_linux_cannot_store_register): Ditto.
3443 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3444 * config/mips/tm-mips.h: Update copyright.
3445 (FP_REGNUM): Delete macro.
3446 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3447 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3448 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3449 (mips_r3041_reg_names, mips_r3051_reg_names)
3450 (mips_r3081_reg_names): Replace "fp" with "".
3451 Fix PR gdb/480.
3452
3453 2002-09-17 Theodore A. Roth <troth@verinet.com>
3454
3455 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3456 generic_read_register_dummy() (PR gdb/703).
3457 (avr_push_return_address): #if 0 out unused vars.
3458 (avr_gdbarch_init): Enable use of avr_push_return_address().
3459
3460 2002-09-17 Michael Snyder <msnyder@redhat.com>
3461
3462 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3463 RTE will take care of it.
3464
3465 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3466
3467 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3468 invalid, return SP_REGNUM.
3469
3470 2002-09-17 Michael Snyder <msnyder@redhat.com>
3471
3472 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3473 point registers without sign extension.
3474
3475 2002-09-17 Andrew Cagney <cagney@redhat.com>
3476
3477 * blockframe.c (deprecated_read_register_dummy): Rename
3478 generic_read_register_dummy.
3479 * frame.c (frame_unwind_signed_register): New function.
3480 (frame_unwind_unsigned_register): New function.
3481 * frame.h (frame_unwind_signed_register): Declare.
3482 (frame_unwind_unsigned_register): Declare.
3483 (deprecated_read_register_dummy): Rename
3484 generic_read_register_dummy.
3485
3486 * h8300-tdep.c (h8300_frame_chain): Update.
3487 (h8300_frame_saved_pc): Update.
3488 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3489 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3490 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3491 (s390_frame_chain): Update.
3492 * v850-tdep.c (v850_find_callers_reg): Update.
3493 (v850_frame_saved_pc): Update.
3494 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3495 (m32r_find_callers_reg): Update.
3496 (m32r_frame_saved_pc): Update.
3497 * sh-tdep.c (sh_find_callers_reg): Update.
3498 (sh64_get_saved_pr): Update.
3499 (sh_init_extra_frame_info): Update.
3500 (sh_init_extra_frame_info): Update.
3501 (sh64_init_extra_frame_info): Update.
3502 (sh64_init_extra_frame_info): Update.
3503 * mcore-tdep.c (mcore_find_callers_reg): Update.
3504 (mcore_frame_saved_pc): Update.
3505 (mcore_init_extra_frame_info): Update.
3506 * i386-tdep.c (i386_frame_saved_pc): Update.
3507 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3508 (ia64_init_extra_frame_info): Update.
3509 (ia64_init_extra_frame_info): Update.
3510 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3511 * cris-tdep.c (cris_init_extra_frame_info): Update.
3512 * avr-tdep.c (avr_frame_chain): Update.
3513 (avr_init_extra_frame_info): Update.
3514 (avr_frame_saved_pc): Update.
3515 * arm-tdep.c (arm_find_callers_reg): Update.
3516 (arm_init_extra_frame_info): Update.
3517 (arm_frame_saved_pc): Update.
3518
3519 2002-09-17 Tom Tromey <tromey@redhat.com>
3520
3521 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3522 is "'".
3523
3524 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3525
3526 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3527 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3528 NEXT_PROLOGUE_INSN.
3529 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3530 NEXT_PROLOGUE_INSN.
3531
3532 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3533
3534 * osfsolib.c: Remove file, replaced by solib-osf.c.
3535 * Makefile.in: Remove compilation rules for osfsolib.c.
3536
3537 2002-09-16 David Carlton <carlton@math.stanford.edu>
3538
3539 * cp-valprint.c (cp_print_class_method): Correct args to
3540 check_stub_method_group.
3541
3542 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3543
3544 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3545 `set architecture'. Unify naming convention of functions.
3546 (h8300_skip_prologue): Improve prologue analysis.
3547 (h8300_push_arguments): Rewritten to more closely match GCC's
3548 bizarre argument-passing behavior, along with the comment describing
3549 said behavior.
3550 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3551 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3552 sim, remote-e7000.c, remote-hms.c and remote.c
3553
3554 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3555
3556 * i386-tdep.c (gdb_print_insn_i386): Removed.
3557 (i386_print_insn): New function.
3558 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3559 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3560 tm_print_insn_info.
3561
3562 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3563
3564 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3565 zero.
3566
3567 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3568
3569 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3570 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3571 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3572
3573 2002-09-13 Christopher Faylor <cgf@redhat.com>
3574
3575 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3576
3577 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3578
3579 * gdbtypes.c (check_stub_method): Make static.
3580 (check_stub_method_group): New function.
3581 * gdbtypes.h: Update prototypes.
3582 * cp-support.c: New file.
3583 * cp-support.h: New file.
3584
3585 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3586 (update_method_name_from_physname): New function.
3587 (read_member_functions): Correct method names for operators
3588 and v3 constructors/destructors. Separate v2 constructors and
3589 destructors.
3590 * Makefile.in (stabsread.o): Update dependencies.
3591 (SFILES): Add cp-support.c.
3592 (COMMON_OBS): Add cp-support.o.
3593 (cp_support_h, cp-support.o): Add.
3594
3595 * cp-valprint.c (cp_print_class_method): Call
3596 check_stub_method_group instead of check_stub_method. Remove
3597 extraneous QUITs.
3598 * p-valprint.c (pascal_object_print_class_method): Likewise.
3599 * valops.c (search_struct_method): Likewise.
3600 (find_method_list, value_struct_elt_for_reference): Likewise.
3601
3602 2002-09-13 Andrew Cagney <cagney@redhat.com>
3603
3604 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3605 * gdbarch.h, gdbarch.c: Regenerate.
3606
3607 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3608
3609 * frame.c (find_saved_register): Delete function.
3610 * frame.h (find_saved_register): Delete declaration.
3611 Fix PR gdb/631.
3612
3613 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3614
3615 * mips-tdep.c (read_next_frame_reg): Re-hack using
3616 frame_register_unwind.
3617
3618 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3619
3620 * mips-tdep.c (mips_get_saved_register): Re-hack using
3621 frame_register_unwind.
3622
3623 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3624
3625 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3626 vector. Will be useful for Interix.
3627 * gdbarch.h, gdbarch.c: Regenerate.
3628
3629 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3630 name of the malloc function by NAME_OF_MALLOC.
3631
3632 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3633
3634 * value.h (find_function_in_inferior): Add const keyword to
3635 one of the parameters. Allows us to invoke this function with
3636 a const char *.
3637 * valops.c (find_function_in_inferior): Likewise.
3638
3639 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3640
3641 * exec.c (xfer_memory): Fix compilation warning with old versions
3642 of GCC.
3643 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3644
3645 2002-09-12 David Carlton <carlton@math.stanford.edu>
3646
3647 * symtab.h: Run through gdb_indent.h.
3648 Add 2002 to Copyright year list.
3649
3650 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3651
3652 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3653 mach constants.
3654 * MAINTAINERS: Add myself to write after approval list.
3655
3656 2002-09-11 J. Brobecker <brobecker@gnat.com>
3657
3658 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3659
3660 2002-09-11 J. Brobecker <brobecker@gnat.com>
3661
3662 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3663 Interix.
3664
3665 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3666
3667 * procfs.c (do_detach): Clear current signal, not just fault.
3668 Corrects problem with breakpoint trap signal leaking to detached
3669 process on Tru64.
3670
3671 2002-09-10 Michael Snyder <msnyder@redhat.com>
3672
3673 * buildsym.c (finish_block): Protect against null pointer.
3674
3675 2002-09-10 Andrew Cagney <cagney@redhat.com>
3676
3677 * infcmd.c (default_print_registers_info): Send all output to
3678 ``file'' instead of ``gdb_stdout''.
3679
3680 2002-09-10 Michael Snyder <msnyder@redhat.com>
3681
3682 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3683 LONGEST, and use signed register read (addresses are sign-
3684 extended for mips).
3685
3686 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3687
3688 * event-loop.c (gdb_do_one_event): Make public.
3689 * event-loop.h (gdb_do_one_event): Declare.
3690
3691 2002-09-10 Jeff Law <law@redhat.com>
3692
3693 * infttrace.c (child_resume): Simplify and rework to avoid
3694 TT_PROC_CONTINUE.
3695
3696 2002-09-09 Fred Fish <fnf@intrinsity.com>
3697
3698 * printcmd.c (print_scalar_formatted): "len" is the number of
3699 target bytes, NOT the number of target bits.
3700
3701 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3702
3703 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3704 * top.c (init_main): Set rl_terminal_name.
3705
3706 2002-09-08 Aidan Skinner <aidan@velvet.net>
3707
3708 * ada-lang.c (ada_array_bound, ada_type_match,
3709 _initialize_ada_language): Fix K&R definitions.
3710 * ada-tasks.c (get_current_task): Fix K&R definitions.
3711 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3712
3713 2002-09-07 Christopher Faylor <cgf@redhat.com>
3714
3715 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3716 Add XP.
3717
3718 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3719
3720 * i386-tdep.c (i386_register_virtual_type,
3721 i386_register_convertible, i386_register_convert_to_virtual,
3722 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3723 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3724 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3725 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3726 Don't set push_arguments twice.
3727
3728 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3729 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3730 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3731 sigtramp_end to NULL.
3732 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3733 defines.
3734 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3735
3736 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3737 whitespace.
3738
3739 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3740 * gdbarch.h, gdbarch.c: Re-generate.
3741 * blockframe.c (find_pc_sect_partial_function): Convert to use
3742 SIGTRAMP_START_P predicate.
3743
3744 2002-09-05 Michael Snyder <msnyder@redhat.com>
3745
3746 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3747 generic_dummy_frame method and old method. Also distinguish
3748 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3749 (arm_extract_return_value): Use new regcache method.
3750
3751 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3752 adjustment that doesn't conform to the ABI.
3753 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3754 saved regcache, not from current regcache.
3755
3756 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3757
3758 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3759 * README: Update.
3760
3761 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3762
3763 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3764 if arm_apcs_32 is false.
3765
3766 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3767
3768 GDB 5.3 branch created.
3769
3770 2002-09-03 Theodore A. Roth <troth@verinet.com>
3771
3772 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3773 generic_unwind_get_saved_register.
3774
3775 2002-09-03 David Carlton <carlton@math.stanford.edu>
3776
3777 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3778 argument (PR gdb/653). Update call to smash_to_method_type.
3779 (read_structure_scope): Update call to dwarf2_add_member_fn.
3780
3781 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3782
3783 * x86-64-linux-tdep.c: Include gdb_string.h
3784 * x86-64-linux-nat.c: Ditto.
3785
3786 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3787
3788 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3789 when YYDEBUG is set to 1.
3790 * c-exp.y: Likewise.
3791 * f-exp.y: Likewise.
3792 * jv-exp.y: Likewise.
3793 * m2-exp.y: Likewise.
3794 * p-exp.y: Likewise.
3795
3796 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3797
3798 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3799 dependency list.
3800 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3801 solib_svr4_fetch_link_map_offsets to
3802 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3803 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3804 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3805 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3806 solib-svr4.o, and solib-legacy.o.
3807 * config/i386/tm-nbsd.h: Include solib.h.
3808
3809 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3810
3811 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3812 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3813 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3814 comment noting that this needs its own target configuration.
3815 * config/i386/nbsd.mt: New file.
3816 * config/i386/nbsdaout.mt: Remove.
3817 * config/i386/nbsdelf.mt: Ditto.
3818 * config/i386/tm-nbsdaout.h: Ditto.
3819
3820 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3821
3822 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3823 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3824 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3825 tdep->sigtramp_end.
3826 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3827 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3828 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3829
3830 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3831
3832 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3833 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3834 * i386-tdep.h (i386bsd_init_abi): New prototype.
3835 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3836 function declaration.
3837 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3838 for NetBSD-a.out or NetBSD-ELF.
3839 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3840 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3841 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3842 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3843 and nbsd-tdep.h.
3844 (i386nbsd_pc_in_sigtramp): New function.
3845 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3846 i386nbsd_pc_in_sigtramp.
3847 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3848 and i386nbsdelf_init_abi OS ABI handlers.
3849 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3850 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3851
3852 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3853
3854 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3855 registers if the target really has them.
3856
3857 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3858
3859 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3860 than nbsd-tdep.h.
3861
3862 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3863
3864 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3865 list.
3866 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3867 (alphanbsd_skip_sigtramp_frame): New functions.
3868 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3869 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3870 to alphanbsd_sigcontext_addr.
3871
3872 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3873
3874 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3875 list.
3876 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3877 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3878 nbsd_pc_in_sigtramp.
3879 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3880 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3881 * nbsd-tdep.c: Include gdb_string.h.
3882 (nbsd_pc_in_sigtramp): New function.
3883 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3884 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3885 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3886 ppcnbsd_pc_in_sigtramp.
3887 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3888 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3889 shnbsd_pc_in_sigtramp.
3890 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3891 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3892 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3893
3894 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3895
3896 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3897 watchpoints to NULL.
3898 (insert_breakpoints): set val field of watchpoints if NULL.
3899
3900
3901 2002-08-29 Jim Blandy <jimb@redhat.com>
3902
3903 * symtab.c (lookup_symbol_aux): In the cases where we find a
3904 minimal symbol of an appropriate name and use its address to
3905 select a symtab to read and search, use `name' (as passed to us)
3906 as the demangled name when searching the symtab's global and
3907 static blocks, not the minsym's name.
3908
3909 2002-08-29 Keith Seitz <keiths@redhat.com>
3910
3911 * stack.c (print_frame_info_base): Always set current_source_symtab
3912 and current_source_line.
3913
3914 2002-08-29 Donn Terry <donnte@microsoft.com>
3915
3916 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3917
3918 2002-08-28 Keith Seitz <keiths@redhat.com>
3919
3920 * stack.c (select_frame): Add FIXME concerning selected-frame
3921 events.
3922 (select_frame_command): Send selected-frame-level-changed
3923 event notification, but only if the level actually changed.
3924 (up_silently_base): Add selected-frame-level-changed event
3925 notification.
3926 (down_silently_base): Likewise.
3927
3928 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3929
3930 * Makefile.in: Update dependencies for all gdb/*.c files.
3931
3932 2002-08-27 Tom Tromey <tromey@redhat.com>
3933
3934 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3935 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3936 Update dependencies.
3937 * i387-tdep.c: Include gdb_string.h.
3938 * osabi.c: Likewise.
3939 * i386-linux-nat.c: Likewise.
3940 * lin-lwp.c: Likewise.
3941 * ax-gdb.c: Likewise.
3942 * signals/signals.c: Likewise.
3943 * jv-valprint.c: Likewise.
3944 * p-lang.c: Likewise.
3945 * c-valprint.c: Likewise.
3946 * cp-abi.c: Likewise.
3947
3948 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3949
3950 * cli/cli-script.h (copy_command_lines): Export.
3951 * breakpoint.c: Include cli/cli-script.h.
3952 * Makefile.in (breakpoint.o): Update dependencies.
3953
3954 2002-08-26 Michael Snyder <msnyder@redhat.com>
3955
3956 * breakpoint.c (insert_breakpoints): Protect all references
3957 to 'process_warning'. Shorten long lines.
3958
3959 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3960
3961 * cli/cli-script.c (copy_command_lines): New function.
3962 * defs.h (copy_command_lines): Export.
3963 * testsuite/gdb.base/commands.exp: New tests for commands
3964 attached to a temporary breakpoint, and for commands that
3965 delete the breakpoint they are attached to.
3966
3967 2002-08-26 Michael Snyder <msnyder@redhat.com>
3968
3969 * breakpoint.c (bpstat_stop_status): Instead of copying the
3970 pointer to the breakpoint commands struct, make a new copy
3971 of the struct and point to that.
3972 (bpstat_clear): Free the commands struct.
3973 (bpstat_clear_actions): Free the commands struct.
3974 (bpstat_do_actions): Free the command actions. Also execute
3975 the local cleanups, instead of deleting them.
3976 (delete_breakpoint): Leave the commands field of the bpstat
3977 chain alone -- it will be freed later.
3978
3979 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3980
3981 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3982 deleted in 2002-08-20 commit. This function is still used by
3983 ppc-linux-nat.c.
3984
3985 2002-08-26 Keith Seitz <keiths@redhat.com>
3986
3987 * gdb-events.sh: Add selected-frame-level-changed event.
3988 * gdb-events.c: Regenerated.
3989 * gdb-events.h: Regenerated.
3990
3991 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3992
3993 Fix PR gdb/393:
3994 * inflow.c (terminal_save_ours): New function to save terminal
3995 settings.
3996 * inferior.h (terminal_save_ours): Declare.
3997 * target.c (debug_to_terminal_save_ours): New function.
3998 (cleanup_target): Defaults to_terminal_save_ours.
3999 (update_current_target): Inherit to_terminal_save_ours.
4000 (setup_target_debug): Set to_terminal_save_ours.
4001 * target.h (target_terminal_save_ours): New to save terminal settings.
4002 (target_ops): New member to_terminal_save_ours.
4003 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4004 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4005 * inftarg.c (init_child_ops): Likewise.
4006 * m3-nat.c (init_m3_ops): Likewise.
4007 * procfs.c (init_procfs_ops): Likewise.
4008 * wince.c (init_child_ops): Likewise.
4009 * win32-nat.c (init_child_ops): Likewise.
4010 * sol-thread.c (init_sol_thread_ops): Likewise.
4011
4012 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4013
4014 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4015 use regcache_* functions.
4016 (i386_gdbarch_init): Set store_return_value instead of
4017 deprecated_store_return_value.
4018
4019 * regcache.c (regcache_raw_write_signed,
4020 regcache_raw_write_unsigned): New functions.
4021 * regcache.h (regcache_raw_write_signed,
4022 regcache_raw_write_unsigned): New prototypes.
4023
4024 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4025
4026 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4027 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4028 source file dependencies. Cleanup corresponding generator rules.
4029
4030 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4031
4032 * regcache.h (register_offset_hack): Declare.
4033 (regcache_cooked_read_using_offset_hack): Declare.
4034 (regcache_cooked_write_using_offset_hack): Declare.
4035
4036 * regcache.c (register_offset_hack): New function.
4037 (regcache_cooked_read_using_offset_hack): New function.
4038 (regcache_cooked_write_using_offset_hack): New function.
4039 (regcache_dump): Check that the registers, according to their
4040 offset, are packed hard against each other.
4041 (cooked_xfer_using_offset_hack): New function.
4042
4043 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4044
4045 * regcache.c (struct regcache_descr): Add field register_type.
4046 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4047 in as a parameter
4048 (init_regcache_descr): Initialize register_type. Pass the descr
4049 to init_legacy_regcache_descr. Use register_type instead of
4050 REGISTER_VIRTUAL_TYPE.
4051 (register_type): New function.
4052 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4053 * regcache.h (register_type): Declare.
4054
4055 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4056
4057 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4058 instead of deprecated_store_return_value. Fix fallout from
4059 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4060
4061 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4062
4063 * regcache.c (max_register_size): New function.
4064 (init_legacy_regcache_descr): Ensure that max_register_size is
4065 large enough for REGISTER_VIRTUAL_SIZE.
4066 * regcache.h (max_register_size): Declare.
4067
4068 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4069
4070 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4071 store_return_value.
4072 (e500_extract_return_value): Change type of valbuf pointer to
4073 void.
4074
4075 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4076
4077 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4078 workaround.
4079
4080 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4081 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4082 long long) to prevent compiler warning on 64-bit systems.
4083
4084 2002-08-23 Andrew Cagney <cagney@redhat.com>
4085
4086 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4087 (DEPRECATED_STORE_RETURN_VALUE): New method.
4088 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4089 * gdbarch.h, gdbarch.c: Re-generate.
4090
4091 * values.c (set_return_value): Pass current_regcache to
4092 STORE_RETURN_VALUE.
4093 * arch-utils.h (legacy_store_return_value): Declare.
4094 * arch-utils.c (legacy_store_return_value): New function.
4095 (legacy_extract_return_value): Update parameters.
4096
4097 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4098 STORE_RETURN_VALUE.
4099 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4100 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4101 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4102 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4103 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4104 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4105 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4106 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4107 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4108 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4109
4110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4111 * i386-tdep.c (i386_extract_return_value): Update.
4112 * arch-utils.c (legacy_extract_return_value): Update.
4113 * frv-tdep.c (frv_gdbarch_init): Update.
4114 * cris-tdep.c (cris_gdbarch_init): Update.
4115 * d10v-tdep.c (d10v_gdbarch_init): Update.
4116 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4117 * m68k-tdep.c (m68k_gdbarch_init): Update.
4118 * mcore-tdep.c (mcore_gdbarch_init): Update.
4119 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4120 * s390-tdep.c (s390_gdbarch_init): Update.
4121 * sparc-tdep.c (sparc_gdbarch_init): Update.
4122 * sh-tdep.c (sh_gdbarch_init): Update.
4123 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4124 * v850-tdep.c (v850_gdbarch_init): Update.
4125 * avr-tdep.c (avr_gdbarch_init): Update.
4126 * ia64-tdep.c (ia64_gdbarch_init): Update.
4127 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4128 * vax-tdep.c (vax_gdbarch_init): Update.
4129 * alpha-tdep.c (alpha_gdbarch_init): Update.
4130 * arm-tdep.c (arm_gdbarch_init): Update.
4131 * mips-tdep.c (mips_gdbarch_init): Update.
4132 * i386-tdep.c (i386_gdbarch_init): Update.
4133
4134 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4135
4136 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4137 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4138
4139 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4140
4141 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4142 problems.
4143
4144 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4145
4146 * infrun.c (handle_inferior_event): Move a comment outside of a
4147 function call, in order to avoid indent reformatting this part
4148 of the code in an unreadable way.
4149
4150 2002-08-23 Grace Sainsbury <graces@redhat.com>
4151
4152 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4153 when breakpoints fail. Move general breakpoint error messages to
4154 insert_breakpoints.
4155 * breakpoint.c (insert_breakpoints): Change warnings when
4156 breakpoints are nto inserted to specify the type. Remove call to
4157 memory_error when hardware breakpoints can't be inserted. Remove
4158 multiple calls to warning so all messages are sent to the user at
4159 once.
4160 (delete_breakpoints): Make insert error messsages more explicit.
4161
4162 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4163
4164 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4165 gdbserver/ChangeLog.
4166
4167 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4168
4169 * i386-tdep.c: Include "objfiles.h".
4170 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4171 skip_trampoline_code.
4172 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4173 (CPLUS_MARKER): Define to '.'.
4174
4175 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4176 member.
4177 (linux_corefile_thread_callback): Increase args->num_notes.
4178 (linux_make_note_section): Initialize thread_args.num_notes, and
4179 use it to determine whether notes for any threads were created.
4180
4181 2002-08-23 Donn Terry <donnte@microsoft.com>
4182
4183 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4184 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4185 and PCUNKILL.
4186 (write_with_trace): Conditionalize out the switch branch handling
4187 PCSHOLD if the corresponding macro is not defined. Likewise for
4188 PRSABORT and PRSTOP.
4189 This change will be needed by the Interix port.
4190
4191 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4192
4193 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4194 write_register wherever possible instead of manipulating the
4195 register bytes directly.
4196 Assign VALUE_CONTENTS to a variable and use that.
4197 The GPR numbers are now dependent on the architecture.
4198
4199 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4200
4201 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4202 ev_offset fields.
4203 (skip_prologue): Add support for BookE/e500 instructions.
4204 (e500_extract_return_value): New function.
4205 (frame_get_saved_regs): Add support for saving ev registers and
4206 pseudo gpr's.
4207 (e500_store_return_value): New function.
4208 (rs6000_gdbarch_init): Move up default intializations of
4209 deprecated_extract_return_value and store_return_value. Overwrite
4210 init of store_return_value with e500 specific version.
4211 Set extract_return_value for e500.
4212
4213 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4214
4215 * blockframe.c (generic_call_dummy_register_unwind): Use
4216 regcache_cooked_read to catch cases in which the variable is
4217 stored in a pseudo register.
4218
4219 2002-08-22 Andrew Cagney <cagney@redhat.com>
4220
4221 * NEWS: Mention that the i960 has been made obsolete.
4222 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4223 i960-tdep.c
4224 (remote-nrom.o): Obsolete target.
4225 (remote-nindy.o, i960-tdep.o): Ditto.
4226 * remote-nrom.c: Make file obsolete.
4227 * remote-nindy.c, remote-vx960.c: Ditto.
4228 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4229 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4230 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4231 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4232 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4233 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4234 i960-*-vxworks* obsolete.
4235 * MAINTAINERS: Note that the i960 is obsolete.
4236
4237 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4238
4239 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4240 detach to allow reinitialization.
4241
4242 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4243
4244 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4245 attempt).
4246
4247 2002-08-22 Jim Blandy <jimb@redhat.com>
4248
4249 * coffread.c (coff_symfile_read): Don't try to read the line
4250 number table from disk if the image file doesn't have a symbol
4251 table; we'll never actually look at the info anyway, and Windows
4252 ships DLL's with bogus file offsets for the line number data.
4253
4254 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4255
4256 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4257 an e500 executable.
4258
4259 2002-08-21 Michael Snyder <msnyder@redhat.com>
4260
4261 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4262 (MSYMBOL_SIZE): Replace macro with function.
4263 (DEFAULT_MIPS_TYPE): Delete unused macro.
4264 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4265 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4266
4267 2002-08-21 Jim Blandy <jimb@redhat.com>
4268
4269 * valops.c (value_cast): Simplify and correct logic for doing a
4270 static cast from a pointer to a base class to a pointer to a
4271 derived class.
4272
4273 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4274
4275 * infcmd.c (default_print_registers_info): Replace
4276 do_registers_info.
4277 (registers_info): Use gdbarch_print_registers_info instead of
4278 DO_REGISTERS_INFO.
4279 * inferior.h (default_print_registers_info): Replace
4280 do_registers_info.
4281 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4282 (DO_REGISTERS_INFO): Change to a predicate function.
4283 * gdbarch.h, gdbarch.c: Regenerate.
4284
4285 2002-08-21 Keith Seitz <keiths@redhat.com>
4286
4287 * gdb-events.sh: Add target-changed event.
4288 * gdb-events.c: Regenerated.
4289 * gdb-events.c: Regenerated.
4290 * valops.c (value_assign): Add target-changed event notification
4291 to inlval_register, lval_memory, and lval_reg_frame_relative.
4292
4293 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4294
4295 * NEWS: Add an entry regarding the improvement of the next/step
4296 operation on Alpha Tru64 multi-processor machines.
4297
4298 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4299
4300 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4301 directores.
4302 * Makefile.in: Update all _h macro definitions.
4303 * Makefile.in (install-gdbtk): Move to install section.
4304 (rdi-share/libangsd.a): Move to end of file.
4305
4306 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4307
4308 * frame.c (frame_register_unwind): When a register, set addrp to
4309 the register's byte.
4310
4311 2002-08-20 Michael Snyder <msnyder@redhat.com>
4312
4313 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4314 used locally, so move them from the target machine header to here.
4315 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4316 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4317 Make static.
4318 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4319
4320 2002-08-20 Andrew Cagney <cagney@redhat.com>
4321
4322 * NEWS: Mention that the Apollo line was made obsolete.
4323 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4324 m68*-hp-hpux* obsolete.
4325 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4326 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4327 * buildsym.c (make_blockvector): Make static.
4328 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4329 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4330 (ALLDEPFILES): Remove dstread.c.
4331 (dstread.o): Obsolete make rule.
4332 * dstread.c: Makefile obsolete.
4333 * dst.h: Ditto.
4334 * config/m68k/hp300hpux.mt: Ditto.
4335 * config/m68k/hp300hpux.mh: Ditto.
4336 * config/m68k/hp300bsd.mt: Ditto.
4337 * config/m68k/hp300bsd.mh: Ditto.
4338 * config/m68k/apollo68b.mt: Ditto.
4339 * config/m68k/apollo68v.mh: Ditto.
4340 * config/m68k/apollo68b.mh: Ditto.
4341
4342 2002-08-20 Michael Snyder <msnyder@redhat.com>
4343
4344 * mips-tdep.c (mips_in_return_stub): Make static.
4345 (mips_gdbarch_init): Set in_solib_return_trampoline.
4346 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4347
4348 2002-08-20 Michael Snyder <msnyder@redhat.com>
4349
4350 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4351 * gdbarch.c, gdbarch.h: Regenerate.
4352 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4353 Add.
4354 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4355
4356 2002-08-20 Michael Snyder <msnyder@redhat.com>
4357
4358 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4359 (mips_gdbarch_init): Set skip_trampoline_code,
4360 in_solib_call_trampoline.
4361 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4362 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4363
4364 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4365
4366 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4367
4368 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4369 vector type for ev registers.
4370 (e500_pseudo_register_read): New function.
4371 (e500_pseudo_register_write): New function.
4372 (e500_dwarf2_reg_to_regnum): New function.
4373 (PPC_UISA_NOFP_SPRS): New macro.
4374 (PPC_EV_REGS): New macro.
4375 (PPC_GPRS_PSEUDO_REGS): New macro.
4376 (registers_e500): New register set for e500.
4377 (variants): Add e500 variant.
4378 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4379 before setting architectural dependent variations. Initialize ev
4380 registers numbers. Add case for e500 architecture. Set the
4381 number of pseudo registers.
4382
4383 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4384
4385 * rs6000-tdep.c: Clean up comments.
4386
4387 2002-08-20 Andrew Cagney <cagney@redhat.com>
4388
4389 * h8300-tdep.c: Re-indent file.
4390
4391 2002-08-20 Jim Blandy <jimb@redhat.com>
4392
4393 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4394 default for this.
4395
4396 2002-08-20 Keith Seitz <keiths@redhat.com>
4397
4398 * breakpoints.c (watch_command_1): Use internal breakpoint
4399 when setting a watchpoint_scope breakpoint.
4400
4401 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4402
4403 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4404 (build_builtin_type_vec64i): Ditto.
4405 (build_builtin_type_vec128): Ditto.
4406 (build_builtin_type_vec128i): Ditto.
4407
4408 2002-08-19 Michael Snyder <msnyder@redhat.com>
4409
4410 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4411 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4412 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4413 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4414 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4415 CALL_DUMMY_ADDRESS): Delete.
4416 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4417 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4418 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4419 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4420 push_return_address.
4421 (mips_register_raw_size, mips_eabi_use_struct_convention,
4422 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4423 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4424 mips_init_extra_frame_info, mips_eabi_push_arguments,
4425 mips_n32n64_push_arguments, mips_push_return_address,
4426 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4427 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4428
4429 2002-08-19 Michael Snyder <msnyder@redhat.com>
4430
4431 * mips-tdep.c (mips_frame_num_args): New function.
4432 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4433 frame_saved_pc, frame_args_address, frame_locals_address,
4434 frame_num_args, and frame_args_skip.
4435 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4436 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4437 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4438 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4439
4440 2002-08-20 Michael Snyder <msnyder@redhat.com>
4441
4442 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4443 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4444 * mips-tdep.c (mips_store_struct_return): New function.
4445 (mips_extract_struct_value_address): New function.
4446 (mips_gdbarch_init): Set store_struct_return and
4447 extract_struct_value_address.
4448
4449 2002-08-20 David Carlton <carlton@math.stanford.edu>
4450
4451 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4452 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4453 (read_file_scope): Check that line_header is nonzero before
4454 decoding macro information.
4455
4456 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4457
4458 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4459 flag the general-purpose registers as floating-point on targets
4460 that don't support the floating-point registers.
4461
4462 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4463
4464 * rs6000-tdep.c (altivec_register_p): Delete.
4465 (rs6000_do_altivec_registers): Delete.
4466 (rs6000_altivec_registers_info): Delete.
4467 (rs6000_do_registers_info): Delete.
4468 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4469 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4470
4471 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4472
4473 * infcmd.c (do_registers_info): Print vector registers in hex
4474 format only.
4475 (print_vector_info): Check that printing registers
4476 makes sense.
4477 (print_float_info): Ditto.
4478
4479 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4480
4481 * mips-tdep.c (mips_gdbarch_init): Update.
4482 (mips_o32_extract_return_value): Rewrite.
4483 (mips_o32_store_return_value): Rewrite.
4484 (mips_o32_xfer_return_value): New function.
4485 (mips_xfer_register): Tweak debug print message. Allow for
4486 buf_offset when dumping the value transfered.
4487
4488 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4489
4490 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4491 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4492 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4493 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4494 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4495
4496 2002-08-14 Michael Snyder <msnyder@redhat.com>
4497
4498 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4499
4500 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4501
4502 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4503 register.
4504 (P): New macro to define a register as a pseudo register.
4505 (R, R4, R8, R16, FR32, R64, R0): Updated.
4506 (struct variant): Add new fields for number of pseudo registers
4507 and number of total registers.
4508 (tot_num_registers): New macro replacing....
4509 (num_registers): ...deleted macro.
4510 (num_registers): New function.
4511 (num_pseudo_registers): New function.
4512 (variants): Update all variants to intialize new fields correctly.
4513 Postpone initialization of number of pseudo regs and real regs.
4514 (init_variants): New function.
4515 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4516 registers offsets.
4517
4518 2002-08-19 David Carlton <carlton@math.stanford.edu>
4519
4520 * valops.c (search_struct_field): Change error message to treat
4521 return value of 0 from value_static_field as meaning that field is
4522 optimized out.
4523 (value_struct_elt_for_reference): Ditto.
4524 * values.c (value_static_field): Treat an unresolved location the
4525 same as a nonexistent symbol. Fix PR gdb/635.
4526 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4527 enclosed. Fix PR gdb/574.
4528 * MAINTAINERS: Add self to Write After Approval list.
4529
4530 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4531
4532 * mips-tdep.c (mips_xfer_register): New function.
4533 (mips_n32n64_extract_return_value): Rewrite.
4534 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4535 instead of deprecated_extract_return_value.
4536
4537 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4538
4539 * rs6000-tdep.c (TDEP): Delete macro.
4540 (branch_dest): Replace use of TDEP macro with its body.
4541 (rs6000_pop_frame): Ditto.
4542 (rs6000_push_arguments): Ditto.
4543 (rs6000_skip_trampoline_code): Ditto.
4544 (rs6000_frame_saved_pc): Ditto.
4545 (rs6000_frame_chain): Ditto.
4546 (rs6000_register_name): Ditto.
4547 (rs6000_register_byte): Ditto.
4548 (rs6000_register_raw_size): Ditto.
4549 (rs6000_register_virtual_type): Ditto.
4550 (rs6000_register_convertible): Ditto.
4551 (rs6000_convert_from_func_ptr_addr): Ditto.
4552
4553 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4554
4555 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4556 conditionally.
4557 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4558 MIPS_LINUX_JB_ELEMENT_SIZE.
4559 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4560 for MAX_REGISTER_RAW_SIZE arrays.
4561 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4562 MIPS_LINUX_JB_ELEMENT_SIZE.
4563
4564 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4565
4566 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4567
4568 2002-08-19 Aidan Skinner <aidan@velvet.net>
4569
4570 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4571 ada-valprint.c ada-tasks.c.
4572 (YYFILES): Add ada-exp.y.
4573 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4574 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4575 (ada-exp.tab.o): New target.
4576
4577 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4578
4579 * regcache.c (regcache_xfer_part): New function.
4580 (regcache_raw_read_part): New function.
4581 (regcache_raw_write_part): New function.
4582 (regcache_cooked_read_part): New function.
4583 (regcache_cooked_write_part): New function.
4584 * regcache.h (regcache_raw_read_part): Declare.
4585 (regcache_raw_write_part): Declare.
4586 (regcache_cooked_read_part): Declare.
4587 (regcache_cooked_write_part): Declare.
4588
4589 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4590
4591 * remote.c (remote_open_1): Add async_p.
4592 (remote_async_open_1): Delete.
4593 (open_remote_target): Delete.
4594 (remote_open, extended_remote_open): Update calls to remote_open_1.
4595 (remote_async_open, extended_remote_async_open): Call
4596 remote_open_1 instead of remote_async_open_1.
4597
4598 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4599
4600 * blockframe.c: Fix a few coding standard violations.
4601
4602 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4603
4604 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4605 here from ...
4606 * config/i386/tm-i386sco5.h: ... here. File removed.
4607 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4608
4609 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4610 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4611 (TM_FILE): Set to tm-i386.h.
4612 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4613 * config/i386/tm-i386v.h: Remove file.
4614 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4615 instead of "i386/tm-i386v.h".
4616 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4617 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4618 "i386/tm-i386v.h".
4619 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4620 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4621 "i386/tm-i386.h".
4622
4623 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4624
4625 * config/i386/nm-i386v.h: Add protection against
4626 multiple-inclusion.
4627 (i386_register_u_addr): Remove prototype.
4628 (register_u_addr): New prototype.
4629 (REGISTER_U_ADDR): Redefine accordingly.
4630 * i386v-nat.c: Improve several comments.
4631 (i386_register_u_addr): Change signature and rename to
4632 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4633 ubase variable.
4634
4635 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4636
4637 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4638 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4639 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4640 deprecated_extract_return_value.
4641 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4642 rename mips_o32o64_push_arguments.
4643 (mips_gdbarch_init): Update.
4644 (mips_extract_return_value): Delete.
4645 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4646 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4647 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4648 (mips_n32n64_extract_return_value): Clone
4649 mips_extract_return_value.
4650 (mips_store_return_value): Delete.
4651 (mips_o32_store_return_value): Clone mips_store_return_value.
4652 (mips_o64_store_return_value): Clone mips_store_return_value.
4653 (mips_eabi_store_return_value): Clone mips_store_return_value.
4654 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4655
4656 2002-08-18 Aidan Skinner <aidan@velvet.net>
4657
4658 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4659 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4660
4661 2002-08-18 Aidan Skinner <aidan@velvet.net>
4662
4663 * ada-lang.c: Run through gdb_indent.sh.
4664 * ada-lang.h: Run through gdb_indent.sh.
4665 * ada-tasks.c: Run through gdb_indent.sh.
4666 * ada-typeprint.c: Run through gdb_indent.sh.
4667 * ada-valprint.c: Run through gdb_indent.sh.
4668
4669 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4670
4671 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4672 ABI.
4673
4674 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4675
4676 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4677
4678 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4679 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4680
4681 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4682 write_register_gen instead of write_register_bytes.
4683
4684 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4685 i[3456]-*-osf1mk* configurations have been made obsolete.
4686 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4687 i[3456]86-*-osf1mk* hosts obsolete.
4688 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4689 targets obsolete.
4690 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4691 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4692 config/i386/i386m3.mt, config/i386/nm-m3.h,
4693 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4694 config/i386/i386mk.mh, config/i386/i386mk.mt,
4695 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4696 obsolete.
4697 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4698 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4699 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4700
4701 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4702
4703 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4704 (hppa_value_returned_from_stack): Declare.
4705 (hppa_extract_return_value): Declare.
4706 * config/pa/hppa.mt: New file.
4707 * configure.tgt: Recognize hppa*-*-*.
4708 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4709
4710 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4711
4712 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4713 comment.
4714
4715 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4716
4717 * top.c (gdb_rl_operate_and_get_next): Make sure
4718 operate-and-get-next functions correctly even when the history
4719 list is completely filled.
4720
4721 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4722
4723 * MAINTAINERS (Target Instruction Set Architectures): Rename
4724 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4725 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4726 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4727 already listed under Host/Native.
4728
4729 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4730 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4731 mips*-*-*.
4732
4733 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4734
4735 * config/ia64/ia64.mt: New file.
4736 * config/alpha/alpha.mt: New file.
4737 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4738 ia64-linux-gnu. Mention that ia64-elf is broken.
4739 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4740
4741 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4742
4743 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4744 generic_func_frame_valid instead of func_frame_valid.
4745
4746 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4747
4748 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4749 procfs appears to be broken when debugging on multi-processor
4750 machines. So enable software single stepping in order to avoid
4751 using the procfs interface to do next/step operations, using
4752 internal breakpoints instead.
4753
4754 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4755 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4756 make this pc address equal to the value it would have if the
4757 system stepping capability was used. Also set a new flag used
4758 to ensure that we don't readjust the PC one more time later.
4759
4760 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4761 address by DECR_PC_AFTER_BREAK when software single step is
4762 in use for this architecture, as this has already been taken
4763 care of in handle_inferior_event().
4764
4765 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4766
4767 * infrun.c (handle_inferior_event): Minor reformatting, to make
4768 a rather long condition expression easier to read.
4769
4770 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4771
4772 * Makefile.in (gdbtk.o): Move to end of file.
4773 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4774 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4775 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4776 (gdbtk-wrapper.o, gdbres.o): Ditto.
4777
4778 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4779
4780 * Makefile.in (copying.o): Separate out compile rule.
4781 (hpux-thread.o, procfs.o, signals.o): Ditto.
4782 (v850ice.o, z8k-tdep.o): Ditto.
4783 (tui-file.o): Move to TUI section.
4784 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4785 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4786
4787 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4788
4789 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4790 skip_trampoline_code, for better namespace-proofing.
4791
4792 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4793
4794 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4795
4796 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4797
4798 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4799
4800 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4801 signal, check whether we hit a breakpoint before checking for a
4802 single step breakpoint. Otherwise, GDB fails to notice that a
4803 breakpoint has been hit when stepping onto a breakpoint.
4804
4805 2002-08-16 Keith Seitz <keiths@redhat.com>
4806
4807 * gdb-events.sh (clear_gdb_event_hooks): New function.
4808 * gdb-events.c: Regenerate.
4809 * gdb-events.h: Regenerate.
4810
4811 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4812
4813 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4814 not_a_sw_breakpoint.
4815 * breakpoint.h (bpstat_stop_status): Add parameter names.
4816
4817 2002-08-16 Grace Sainsbury <graces@redhat.com>
4818
4819 * remote.c (remote_insert_hw_breakpoint)
4820 (remote_remove_hw_breakpoint): Fix calculation of length field
4821 for Z-packet.
4822
4823 2002-08-15 Michael Snyder <msnyder@redhat.com>
4824
4825 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4826 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4827 (supply_fpregset): Ditto.
4828
4829 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4830 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4831 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4832 (TARGET_READ_SP): Delete.
4833 (DO_REGISTERS_INFO): Delete.
4834 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4835 Delete.
4836 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4837 from macros to functions.
4838
4839 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4840 (mips_register_convertible, mips_register_convert_to_virtual,
4841 mips_register_convert_to_raw): Make static.
4842 (mips_read_sp): New function.
4843 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4844 (mips_do_registers_info): Make static.
4845 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4846 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4847 (mips_register_convert_from_type, mips_register_convert_to_type):
4848 New functions.
4849 (mips_gdbarch_init): Set up function_start_offset,
4850 register_virtual_size, pc_in_sigtramp.
4851
4852 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4853
4854 * infcmd.c (vector_info): New function.
4855 (_initialize_infcmd): Add command "info vector".
4856 (print_vector_info): New function.
4857
4858 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4859 * gdbarch.h, gdbarch.c: Regenerate.
4860
4861 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4862
4863 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4864 ``print_all''. Only print vector registers when ``print_all''.
4865
4866 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4867
4868 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4869 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4870
4871 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4872 Add `args' parameter.
4873 * gdbarch.h, gdbarch.c: Regenerate.
4874
4875 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4876
4877 * infcmd.c (float_info): Call print_float_info.
4878 (print_float_info): New function. By default, print the
4879 floating-point registers.
4880
4881 * arch-utils.h (default_print_float_info): Delete declaration.
4882 * arch-utils.c (default_print_float_info): Delete function.
4883
4884 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4885
4886 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4887 out define.
4888
4889 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4890 FRAME.
4891
4892 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4893 * configure.host: Make i[3456]86-*-aix host obsolete.
4894 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4895 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4896 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4897 config/i386/xm-i386aix.h: Make files obsolete.
4898 * i386aix-nat.c: Make file obsolete.
4899 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4900 (i386aix-nat.o): Make target obsolete.
4901
4902 * config/i386/nm-gnu.h: Removed.
4903 * config/i386/nm-i386gnu.h: New file.
4904 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4905 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4906 Moved here from ...
4907 * config/i386/tm-i386gnu.h: ... here. Removed.
4908 * config/i386/xm-i386gnu.h: Removed.
4909 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4910 (NAT_FILE): Set to nm-i386gnu.h.
4911 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4912 * i386-tdep.c: New file.
4913 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4914 (i386gnu-tdep.o): Specify dependencies.
4915
4916 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4917
4918 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4919 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4920 Adjust a few comments to reflect reality a bit closer.
4921 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4922 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4923 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4924 target_insert_watchpoint, target_remove_watchpoint):
4925 Move defines to ...
4926 * config/i386/nm-i386sco5.h: ... here.
4927 (kernel_u_size): Add prototype. Improve a few comments and add
4928 protection against multiple inclusion.
4929
4930 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4931 out define.
4932
4933 * uw-thread.c (SP_ARG0): Define if not already defined.
4934 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4935
4936 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4937
4938 * config/i386/tm-i386.h: Don't include "regcache.h".
4939
4940 * i387-tdep.h (i387_print_float_info): New prototype.
4941 * i387-tdep.c (print_i387_value, print_i387_ext,
4942 print_i387_status_word, print_i387_control_word): Add `struct
4943 ui_file *' argument and use it for output.
4944 (i387_print_float_info): Renamed from i387_float_info. Add
4945 `struct gdbarch *' and `struct ui_file *' arguments and use the
4946 latter for output.
4947 * i386-tdep.c: Include "i387-tdep.h".
4948 (i386_gdbarch_init): Set print_float_info.
4949 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4950 (FLOAT_INFO): Remove define.
4951
4952 2002-08-13 Michael Snyder <msnyder@redhat.com>
4953
4954 * mips-tdep.c (mips_push_arguments): Rename to
4955 mips_eabi_push_arguments, and tune for EABI.
4956 (MIPS_REGS_HAVE_HOME_P): Delete.
4957 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4958 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4959 Delete references to mips_regs_have_home_p.
4960
4961 2002-08-14 Keith Seitz <keiths@redhat.com>
4962
4963 * Makefile.in (install-gdbtk): Create insight plugin directory.
4964 Install plugins.tcl file.
4965
4966 2002-08-14 Keith Seitz <keiths@redhat.com>
4967
4968 * configure.in: Move SUBDIRS to near top of the file so that
4969 --enable options may add things to it.
4970 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4971 * configure: Regenerate.
4972
4973 2002-08-13 Michael Snyder <msnyder@redhat.com>
4974
4975 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4976 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4977 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4978
4979 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4980
4981 * vax-tdep.c (vax_get_saved_register): Delete function.
4982 (vax_gdbarch_init): Update.
4983 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4984 (ns32k_gdbarch_init): Update.
4985 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4986 (alpha_gdbarch_init): Update.
4987
4988 2002-08-13 Andrew Cagney <cagney@redhat.com>
4989
4990 * regcache.c (init_regcache_descr): Overallocate the
4991 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4992 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4993 nr_raw_registers.
4994 (set_register_cached): Add range checking assertions. Use
4995 current_regcache.
4996
4997 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4998
4999 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5000 numbers for MMX registers.
5001
5002 2002-08-13 Andrew Cagney <cagney@redhat.com>
5003
5004 * i386-tdep.c (i386_gdbarch_init): Use
5005 generic_unwind_get_saved_register.
5006
5007 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5008
5009 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5010 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5011 target vector.
5012 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5013 Delete. Add comment regarding this now-deleted target method.
5014
5015 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5016
5017 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5018 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5019 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5020 real PC and the page number (if it's within the memory bank window).
5021 (m68hc11_pseudo_register_write): Likewise when saving.
5022 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5023 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5024 (m68hc11_register_raw_size): And use 32-bit for it.
5025 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5026 16K memory bank is used by the prog; also use the virtual pc.
5027
5028 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5029
5030 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5031 (m68hc11_gdbarch_init): Install it in gdbarch.
5032 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5033 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5034 (MSYMBOL_SIZE): New for documentation.
5035 (insn_return_kind): Enum to specify how a function returns.
5036 (frame_extra_info): Cleanup and record the return mode.
5037 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5038 register in address computation.
5039 (m68hc11_get_return_insn): New to obtain the return instruction used
5040 by the function.
5041 (m68hc11_frame_init_saved_regs): Take into account the return
5042 instruction used by the function for far and interrupt functions.
5043 (m68hc11_init_extra_frame_info): Take into account page register.
5044 (m68hc11_frame_args_address): Adjust according to the return mode.
5045 (show_regs): Print page register only when it's used.
5046
5047 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5048
5049 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5050 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5051 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5052 registers.
5053 (m68hc11_register_raw_size): Likewise.
5054
5055 2002-08-13 Andrew Cagney <cagney@redhat.com>
5056
5057 * i386-tdep.c (i386_register_name): Handle mmx registers.
5058 (mmx_regnum_p): New function.
5059 (i386_mmx_names): New array.
5060 (mmx_num_regs): New variable.
5061 (i386_pseudo_register_read): New function.
5062 (i386_pseudo_register_write): New function.
5063 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5064
5065 * regcache.c (regcache_raw_read_unsigned): New function.
5066 (regcache_raw_read_signed): New function.
5067 * regcache.h (regcache_raw_read_unsigned): Declare.
5068 (regcache_raw_read_signed): Declare.
5069
5070 2002-08-13 Andrew Cagney <cagney@redhat.com>
5071
5072 * regcache.c (regcache_raw_read_as_address): Delete function.
5073 (regcache_cooked_read_signed): New function.
5074 (regcache_cooked_read_unsigned): New function.
5075 * regcache.h (regcache_cooked_read_signed): Declare.
5076 (regcache_cooked_read_unsigned): Declare.
5077 (regcache_raw_read_as_address): Delete declaration.
5078
5079 * blockframe.c (generic_read_register_dummy): Use
5080 regcache_cooked_read_unsigned.
5081 * i386-tdep.c (i386_extract_struct_value_address): Use
5082 regcache_cooked_read_unsigned.
5083
5084 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5085
5086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5087 double sizes according to ELF ABI flags.
5088 (gdbarch_tdep): Record elf_flags.
5089
5090 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5091
5092 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5093 (m6812_prolog): They can appear in 68HC12 function prologue.
5094 (m68hc11_frame_chain): Cleanup.
5095
5096 2002-08-12 Andrew Cagney <cagney@redhat.com>
5097
5098 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5099 declarations.
5100 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5101 (i386_linux_register_raw_size): Delete function.
5102 (i386_linux_init_abi): Update.
5103 * i386-tdep.c (i386_register_raw_size): Delete function.
5104 (i386_register_byte): Delete function.
5105 (i386_gdbarch_init): Update.
5106 (i386_register_size): Delete array.
5107 (i386_register_offset): Delete array.
5108
5109 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5110 (REGISTER_RAW_SIZE): Delete macro.
5111 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5112 (REGISTER_BYTE): Delete macro.
5113
5114 2002-08-11 Aidan Skinner <aidan@velvet.net>
5115
5116 * ada-lang.c (ada_lookup_partial_symbol)
5117 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5118 prototype names so that grep ^func works properly.
5119
5120 * ada-lang.c (ada_array_element_type)
5121 (ada_lookup_partial_symbol): Fix typos in parameter list.
5122
5123 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5124 Fix prototype names so that grep ^func works properly.
5125
5126 2002-08-10 Andrew Cagney <cagney@redhat.com>
5127 Elena Zannoni <ezannoni@redhat.com>
5128 Martin M. Hunt <hunt@redhat.com>
5129
5130 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5131 (build_builtin_type_vec128i): Set the vector bit.
5132 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5133 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5134 (build_builtin_type_vec64): New function.
5135 (build_builtin_type_vec64i): New function.
5136 (build_gdbtypes): Initialize builtin_type_vec64 and
5137 builtin_type_vec64i.
5138
5139 2002-08-09 Andrew Cagney <cagney@redhat.com>
5140
5141 * regcache.c (regcache_dump): Compare the register offset
5142 with REGISTER_BYTE.
5143 * arch-utils.c (generic_register_byte): New function.
5144 * arch-utils.h (generic_register_byte): Declare.
5145 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5146 * gdbarch.h, gdbarch.c: Regenerate.
5147
5148 2002-08-09 Andrew Cagney <cagney@redhat.com>
5149
5150 * regcache.c: Include "gdbcmd.h"
5151 (_initialize_regcache): Add commands "maintenance print
5152 registers", "maintenance print raw-registers" and "maintenance
5153 print cooked-registers".
5154 (enum regcache_dump_what): Define.
5155 (dump_endian_bytes): New function.
5156 (regcache_dump): New function.
5157 (regcache_print): New function.
5158 (maintenance_print_registers): New function.
5159 (maintenance_print_raw_registers): New function.
5160 (maintenance_print_cooked_registers): New function.
5161 * Makefile.in (regcache.o): Update dependencies.
5162
5163 2002-08-09 Michael Snyder <msnyder@redhat.com>
5164
5165 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5166 (mips_push_arguments): Correct some comments. Use paddr_nz
5167 for printing addresses in debug output. Replace static
5168 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5169 (mips_n32n64_push_arguments): New function, cloned from
5170 mips_push_arguments and tuned for the n32/n64 ABI.
5171 (mips_push_register): Buffer needs dynamic allocation.
5172 (mips_print_register): Ditto.
5173 (do_gp_register_row): Ditto.
5174 (mips_store_return_value): Ditto.
5175 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5176
5177 2002-08-09 Don Howard <dhoward@redhat.com>
5178
5179 * memattr.c (mem_info_command): Print special case of upper bound
5180 as max CORE_ADDR + 1.
5181
5182 2002-08-08 Michael Snyder <msnyder@redhat.com>
5183
5184 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5185 returns structs by ref if they're too big to fit in two registers.
5186
5187 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5188
5189 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5190 saved regs value.
5191 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5192 mips_find_saved_regs().
5193 (mips_pop_frame): Likewise.
5194
5195 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5196
5197 * blockframe.c (frame_saved_regs_register_unwind): Revise
5198 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5199 frames are in use.
5200
5201 2002-08-09 Grace Sainsbury <graces@redhat.com>
5202
5203 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5204 T-packets; the 'a' is not taken as a register number.
5205 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5206 (remote_stopped_data_address): New functions; add to target
5207 vector.
5208 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5209 prototypes to match other implementations of this
5210 function. replace integer argument with pointer -- the length
5211 field in the Z-packet is the length of what is pointed to or 1 if
5212 pointer is null. Add to target vector.
5213 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5214 target vector.
5215
5216 From Mark Salter:
5217 * remote.c (remote_wait): Add support to extract optional
5218 watchpoint information from T-packet. Ignore unrecognized
5219 optional info in T-packet.
5220 (remote_async_wait): Ditto.
5221
5222 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5223
5224 * cli/cli-dump.c: Change fopen modes to use binary open modes
5225 as defined in include/fopen-bin.h throughout.
5226
5227 2002-08-08 Michael Snyder <msnyder@redhat.com>
5228
5229 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5230
5231 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5232
5233 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5234 assertion failure by returning early after a warning.
5235
5236 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5237
5238 * mips-tdep.c (mips_find_saved_regs): Make static.
5239 (mips_frame_init_saved_regs): New function.
5240 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5241 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5242 (mips_find_saved_regs): Delete declaration.
5243
5244 2002-08-08 Grace Sainsbury <graces@redhat.com>
5245
5246 * remote.c (remote_wait, remote_async_wait): Change
5247 thread_num from int to ULONGEST.
5248 (unpack_varlen_hex): Change result parameter from
5249 int * to ULONGEST *.
5250
5251 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5252
5253 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5254 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5255 powerpc*-*-*.
5256 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5257
5258 2002-08-08 Andrew Cagney <cagney@redhat.com>
5259
5260 * gcore.c (override_derive_stack_segment): Delete variable.
5261 (preempt_derive_stack_segment): Delete function.
5262 (derive_stack_segment): Delete function.
5263 (default_derive_stack_segment): Renamed to derive_stack_segment.
5264 (override_derive_heap_segment): Delete variable.
5265 (preempt_derive_heap_segment): Delete function.
5266 (derive_heap_segment): Delete function.
5267 (default_derive_heap_segment): Rename to derive_heap_segment.
5268
5269 2002-08-06 Michael Snyder <msnyder@redhat.com>
5270
5271 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5272 * mips-tdep.c (mips_EABI_use_struct_convention,
5273 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5274 New functions. (mips_use_struct_convention): Delete.
5275 (mips_gdbarch_init): set use_gdbarch_convention.
5276
5277 2002-08-06 Michael Snyder <msnyder@redhat.com>
5278
5279 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5280 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5281 mips_o32_reg_struct_has_addr): New functions.
5282 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5283
5284 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5285
5286 * regcache.c (pseudo_register): Delete function.
5287 (fetch_register): Delete function.
5288 (store_register): Delete function.
5289 (regcache_raw_read, legacy_read_register_gen): Use
5290 target_fetch_registers instead of fetch_register.
5291 (legacy_write_register_gen, regcache_raw_write): Use
5292 target_store_register instead of store_register.
5293 (write_register_bytes): Ditto.
5294
5295 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5296 (STORE_PSEUDO_REGISTER): Delete.
5297 * gdbarch.h, gdbarch.c: Regenerate.
5298
5299 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5300
5301 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5302 write dump file binary.
5303
5304 2002-08-05 Michael Snyder <msnyder@redhat.com>
5305
5306 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5307 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5308 (mips_gdbarch_init): Set N32 target to be mips64.
5309
5310 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5311
5312 * frame.c (find_saved_register): Break out of loop once saved
5313 register address is found. Don't mention sparc in loop comment
5314 anymore.
5315
5316 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5317
5318 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5319 mips_default_saved_regsize to 8.
5320
5321 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5322
5323 * gcore.c: Do not include <sys/procfs.h>.
5324 * Makefile.in (gcore.o): Update dependencies.
5325
5326 2002-08-06 Andrew Cagney <cagney@redhat.com>
5327
5328 * configure.tgt: Make arc-*-* obsolete.
5329 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5330 * MAINTAINERS: Make arc-elf obsolete.
5331 * arc-tdep.c: Make file obsolete.
5332 * config/arc/arc.mt: Ditto.
5333 * config/arc/tm-arc.h: Ditto.
5334
5335 2002-08-05 Theodore A. Roth <troth@verinet.com>
5336
5337 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5338
5339 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5340
5341 * mcore-tdep.c (mcore_gdbarch_init): Use
5342 generic_unwind_get_saved_register instead of
5343 generic_get_saved_register.
5344 * v850-tdep.c (v850_gdbarch_init): Ditto.
5345 * frv-tdep.c (frv_gdbarch_init): Ditto.
5346 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5347 * s390-tdep.c (s390_gdbarch_init): Ditto.
5348 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5349 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5350 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5351
5352 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5353
5354 * objfiles.h: Add missing #include "symfile.h"
5355
5356 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5357
5358 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5359
5360 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5361 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5362 of FIELD_BITSIZE.
5363
5364 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5365
5366 * NEWS: Cleanup and nitpick.
5367
5368 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5369
5370 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5371
5372 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5373
5374 * Makefile.in (gdbtk-bp.o): Update dependencies.
5375 (gdbtk-register.o): Ditto.
5376 (gdbtk-varobj.o): Ditto.
5377
5378 2002-08-03 Andrew Cagney <cagney@redhat.com>
5379
5380 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5381 m68hc11_fetch_pseudo_register.
5382 (m68hc11_pseudo_register_write): Replace
5383 m68hc11_store_pseudo_register.
5384 (m68hc11_gdbarch_init): Update.
5385
5386 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5387
5388 * gdbarch.sh: Include "gdb_string.h".
5389 * gdbarch.c: Regenerate.
5390
5391 * regcache.c: Include "gdb_string.h".
5392 * ax-general.c: Ditto.
5393 * varobj.c: Ditto.
5394 * std-regs.c: Ditto.
5395 * fbsd-proc.c: Ditto.
5396 * thread.c: Ditto.
5397
5398 * Makefile.in (regcache.o): Update dependencies.
5399 (thread.o, gdbarch.o): Ditto.
5400 (ax-general.o, gdbarch.o): Ditto.
5401 (varobj.o, std-regs.o): Ditto.
5402 (fbsd-proc.o): Specify dependencies.
5403
5404 2002-08-02 Andrew Cagney <cagney@redhat.com>
5405
5406 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5407 regnum.
5408 (regcache_cooked_write): Ditto.
5409
5410 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5411
5412 * regcache.c (regcache_cooked_read): New function.
5413 (regcache_cooked_write): New function.
5414 (read_register_gen): Rewrite using regcache_cooked_read.
5415 (write_register_gen): Rewrite using regcache_cooked_write.
5416
5417 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5418 Declare.
5419
5420 2002-08-02 Andrew Cagney <cagney@redhat.com>
5421
5422 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5423 Replace the architecture methods register_read and register_write.
5424 * gdbarch.h, gdbarch.c: Regenerate.
5425 * regcache.c (init_regcache_descr): Update.
5426 (read_register_gen): Update.
5427 (write_register_gen): Update.
5428 (supply_register): Update comment.
5429
5430 * sh-tdep.c (sh_gdbarch_init): Update.
5431 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5432 `regcache' and `gdbarch' parameters. Make `buffer' a void
5433 pointer. Update code.
5434 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5435 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5436 void pointer. Update code.
5437 (sh64_register_write): Delete.
5438 (sh4_register_read): Delete.
5439 (sh64_register_read): Delete.
5440 (sh4_register_write): Delete.
5441 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5442 void pointer, `to' parameter a void pointer.
5443 (sh_sh64_register_convert_to_raw): Ditto.
5444
5445 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5446
5447 * mips-tdep.c (mips_register_virtual_type): Use architecture
5448 invariant return values.
5449
5450 2002-08-01 Andrew Cagney <cagney@redhat.com>
5451
5452 * linux-proc.c: Include "gdb_string.h".
5453 * Makefile.in (linux-proc.o): Update dependency list.
5454
5455 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5456
5457 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5458 comment.
5459
5460 2002-08-01 Grace Sainsbury <graces@redhat.com>
5461
5462 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5463 to_insert_watchpoint, to_remove_watchpoint,
5464 to_stopped_by_watchpoint, to_stopped_data_address,
5465 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5466 target vecctor. Define their corresponding macros so they call
5467 them.
5468
5469 * target.c: Add default and debug versions of for
5470 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5471 to_insert_watchpoint, to_remove_watchpoint,
5472 to_stopped_by_watchpoint, to_stopped_data_address,
5473 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5474
5475 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5476
5477 * mips-tdep.c (mips_register_virtual_type): New function.
5478 (mips_gdbarch_init): Register mips_register_virtual_type()
5479 with gdbarch machinery.
5480 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5481 this file instead of tm-bigmips.h.
5482 (MIPS_REGSIZE): Delete this macro.
5483 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5484 multiarch version in mips-tdep.c will be found.
5485
5486 2002-08-01 Andrew Cagney <cagney@redhat.com>
5487
5488 * NEWS: Menion that CHILL has been made obsolete.
5489
5490 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5491 * stabsread.c (read_range_type): Ditto.
5492 * gdbtypes.h: Ditto.
5493 * language.c (binop_type_check): Ditto.
5494 (binop_result_type): Ditto.
5495 (integral_type): Ditto.
5496 (character_type): Ditto.
5497 (string_type): Ditto.
5498 (boolean_type): Ditto.
5499 (structured_type): Ditto.
5500 (lang_bool_type): Ditto.
5501 (binop_type_check): Ditto.
5502 * language.h (_LANG_chill): Ditto.
5503 * dwarfread.c (set_cu_language): Ditto.
5504 * dwarfread.c (CHILL_PRODUCER): Ditto.
5505 * dwarfread.c (handle_producer): Ditto.
5506 * expression.h (enum exp_opcode): Ditto.
5507 * eval.c: Ditto for comments.
5508 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5509 * expprint.c (print_subexp): Ditto.
5510 (print_subexp): Ditto.
5511 * valops.c (value_cast): Ditto.
5512 (search_struct_field): Ditto.
5513 * value.h (COERCE_VARYING_ARRAY): Ditto.
5514 * symfile.c (init_filename_language_table): Ditto.
5515 (add_psymbol_with_dem_name_to_list): Ditto.
5516 * valarith.c (value_binop): Ditto.
5517 (value_neg): Ditto.
5518 * valops.c (value_slice): Ditto.
5519 * symtab.h (union language_specific): Ditto.
5520 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5521 (SYMBOL_DEMANGLED_NAME): Ditto.
5522 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5523 * defs.h (enum language): Ditto.
5524 * symtab.c (got_symtab): Ditto.
5525 * utils.c (fprintf_symbol_filtered): Ditto.
5526
5527 * ch-typeprint.c: Make file obsolete.
5528 * ch-valprint.c: Make file obsolete.
5529 * ch-lang.h: Make file obsolete.
5530 * ch-exp.c: Make file obsolete.
5531 * ch-lang.c: Make file obsolete.
5532
5533 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5534 CHILL_LIB.
5535 (TARGET_FLAGS_TO_PASS): Ditto.
5536 (CHILLFLAGS): Obsolete.
5537 (CHILL): Obsolete.
5538 (CHILL_FOR_TARGET): Obsolete.
5539 (CHILL_LIB): Obsolete.
5540 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5541 ch-valprint.c.
5542 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5543 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5544 ch-lang.o.
5545 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5546 targets.
5547
5548 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5549
5550 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5551 This does not change anything at the moment, but will be helpful
5552 later when full Ada support is integrated.
5553
5554 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5555
5556 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5557 help message.
5558
5559 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5560
5561 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5562 and save it in a local variable. Use variable in later test.
5563
5564 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5565
5566 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5567 test. (Thanks to Daniel Jacobowitz.)
5568
5569 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5570
5571 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5572 (mips_abi_strings): Add "n64".
5573 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5574
5575 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5576
5577 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5578 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5579
5580 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5581
5582 * utils.c (host_pointer_to_address, address_to_host_pointer):
5583 Use gdb_assert() instead of explicit call to internal_error().
5584
5585 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5586
5587 * Makefile.in (rs6000-nat.o): Update dependencies.
5588
5589 From Nicholas Duffek:
5590 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5591 (aix-thread.o): New rule.
5592 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5593 * config/powerpc/aix432.mh: New file.
5594
5595 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5596
5597 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5598 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5599 (fetch_core_registers, ppc_linux_supply_gregset)
5600 (ppc_linux_supply_fpregset): New functions.
5601 (ppc_linux_regset_core_fns): New.
5602 (_initialize_ppc_linux_tdep): Call add_core_fns.
5603 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5604 and ppc_linux_supply_gregset.
5605 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5606 (supply_fpregset): Call ppc_linux_supply_fpregset.
5607 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5608 corelow.o.
5609 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5610
5611 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5612
5613 * symtab.c (lookup_symbol): Demangle before lowercasing.
5614
5615 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5616
5617 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5618 declaration.
5619 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5620 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5621 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5622 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5623 "gdb_string.h".
5624 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5625 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5626 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5627 (avr-tdep.o, mon960-rom.o): Ditto.
5628 (aout_stabs_gnu_h): Define.
5629 (symtab_h): Remove $(gdb_obstack_h).
5630
5631 2002-07-30 Jim Blandy <jimb@redhat.com>
5632
5633 Patch from David Carlton <carlton@math.stanford.edu>:
5634 * gdbinit.in: Move the `dir' commands that add GDB's own source
5635 directory to the search path to the end, so that the `gdb' source
5636 directory will be searched first.
5637
5638 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5639
5640 * gdb_obstack.h: New file.
5641 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5642 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5643 * objfiles.h: Include "gdb_obstack.h".
5644 * Makefile.in (gdb_obstack_h): Define.
5645 (symtab_h): Add $(gdb_obstack_h).
5646 (objfiles_h): Add $(gdb_obstack_h).
5647
5648 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5649 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5650 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5651 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5652 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5653 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5654 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5655 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5656
5657 * Makefile.in (bcache.o): Update dependencies.
5658 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5659 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5660 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5661 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5662 (stabsread.o, symfile.o, symmisc.o): Ditto.
5663 (symtab.o, typeprint.o, macroexp.o): Ditto.
5664 (macrotab.o, mdebugread.o): Ditto.
5665 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5666 (coff_ecoff_h, aout_aout64_h): Define.
5667 (aout_stabs_gnu_h, libaout_h): Define.
5668
5669 2002-07-29 Andrew Cagney <cagney@redhat.com>
5670
5671 * regcache.c (struct regcache_descr): Rename nr_registers to
5672 nr_cooked_registers. Revise comments describing the structure
5673 member fields.
5674 (init_regcache_descr): Update.
5675 (init_legacy_regcache_descr): Update.
5676 (read_register_gen, write_register_gen): When a cooked register in
5677 the raw register range, directly access the value from the raw
5678 register cache.
5679
5680 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5681
5682 * z8k-tdep.c: Do not include "obstack.h".
5683 * h8300-tdep.c, h8500-tdep.c: Ditto.
5684 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5685 * valprint.c, v850-tdep.c: Ditto.
5686 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5687 * mn10200-tdep.c: Ditto.
5688
5689 * Makefile.in (z8k-tdep.o): Update dependencies.
5690 (m68hc11-tdep.o, valprint.o): Ditto.
5691 (v850-tdep.o, d10v-tdep.o): Ditto.
5692 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5693 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5694 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5695 (sh_opc_h, gdb_sim_sh_h): Define.
5696 (elf_sh_h, elf_bfd_h): Define.
5697 (opcode_m68hc11_h): Define.
5698 (OPCODES_SRC, OPCODES_DIR): define.
5699 (OPCODES): Use $(OPCODES_DIR).
5700 (gdb_sim_d10v_h): Rename sim_d10v_h.
5701 (gdb_sim_arm_h): Rename sim_arm_h.
5702
5703 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5704
5705 * utils.c (host_pointer_to_address, address_to_host_pointer):
5706 Change internal_error() message to indicate function responsible
5707 for the error.
5708
5709 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5710
5711 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5712 calls to local_hex_string_custom().
5713
5714 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5715
5716 * irix5-nat.c: Move IRIX shared library support from here...
5717 * solib-irix.c: ...to here. Revised substantially to work with
5718 generic solib framework.
5719
5720 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5721 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5722 * mips-irix-tdep.c: New file.
5723
5724 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5725 (mips-irix-tdep.o, solib-irix.o): New rules.
5726 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5727 solib-irix.o.
5728 * config/mips/irix6.mt (TDEPFILES): Likewise.
5729 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5730
5731 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5732
5733 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5734 disabled (via ``#if 0'') includes.
5735
5736 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5737
5738 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5739 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5740 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5741 Add support for the fpscr register.
5742 * rs6000-nat.c (regmap, fetch_inferior_registers)
5743 (store_inferior_registers, fetch_core_registers): Likewise.
5744
5745 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5746
5747 * rs6000-nat.c (language.h): Include.
5748 (special_regs): Delete this array.
5749 (regmap): New function.
5750 (fetch_register, store_register): Use regmap() to map gdb
5751 register numbers to ptrace register numbers. Also, use
5752 outputs from regmap() to make decisions regarding type of
5753 ptrace() call to make. In particular, don't compare against
5754 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5755 (fetch_inferior_registers, store_inferior_registers): Where
5756 possible, obtain register numbers from tdep struct. Don't
5757 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5758 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5759 (LAST_UISA_SP_REGNUM): Delete.
5760
5761 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5762
5763 * rs6000-nat.c (ppc-tdep.h): Include.
5764 (fetch_registers, store_register, fetch_core_registers): Don't
5765 access registers[] directly. Instead, use supply_register() or
5766 regcache_collect() as appropriate.
5767 (find_toc_address): Format hex address with local_hex_string().
5768
5769 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5770
5771 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5772 bfd/elf32-frv.c.
5773
5774 2002-07-24 Tom Tromey <tromey@redhat.com>
5775
5776 * jv-exp.y: Marked all strings with _().
5777 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5778 internal_error.
5779 (MethodInvocation, CastExpression, parse_number, yyerror,
5780 java_type_from_name, push_expression_name, yylex): Typo fixes.
5781
5782 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5783
5784 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5785 (tee_file_flush, tee_file_write, tee_file_fputs)
5786 (tee_file_isatty): New.
5787 * ui-file.h (tee_file_new): Add prototype.
5788
5789 2002-07-24 Aidan Skinner <aidan@velvet.net>
5790
5791 * ada-lang.c: Change k&r style function definitions to prototyped
5792 form.
5793 * ada-typeprint.c: Change k&r style function definitions to prototyped
5794 form.
5795 * ada-valprint.c: Change k&r style function definitions to prototyped
5796 form.
5797
5798 2002-07-24 Andrew Cagney <cagney@redhat.com>
5799
5800 * README: Remove reference to remote-bug.
5801 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5802 remote-bug.c.
5803 (m88k-nat.o): Delete rule.
5804 (m88k-tdep.o): Delete rule.
5805 (remote-bug.o): Delete rule.
5806 * MAINTAINERS: Mark as obsolete.
5807 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5808 * m88k-tdep.c: Make file obsolete.
5809 * config/m88k/m88k.mh: Ditto.
5810 * config/m88k/delta88v4.mh: Ditto.
5811 * config/m88k/delta88v4.mt: Ditto.
5812 * config/m88k/delta88.mt: Ditto.
5813 * config/m88k/delta88.mh: Ditto.
5814 * remote-bug.c: Ditto.
5815 * config/m88k/tm-delta88.h: Ditto.
5816 * config/m88k/nm-delta88v4.h: Ditto.
5817 * config/m88k/xm-delta88.h: Ditto.
5818 * config/m88k/xm-dgux.h: Ditto.
5819 * config/m88k/tm-m88k.h: Ditto.
5820 * config/m88k/nm-m88k.h: Ditto.
5821 * config/m88k/tm-delta88v4.h: Ditto.
5822 * m88k-nat.c: Ditto.
5823 * cxux-nat.c: Ditto.
5824 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5825 and m88*-*-* obsolete.
5826 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5827 m88*-*-* obsolete.
5828
5829 2002-07-24 Andrew Cagney <cagney@redhat.com>
5830
5831 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5832 constant. Same for local pointer variables.
5833 (extract_signed_integer): Ditto.
5834 * defs.h (extract_unsigned_integer): Update.
5835 (extract_signed_integer): Update.
5836
5837 2002-07-24 Andrew Cagney <cagney@redhat.com>
5838
5839 * regcache.c (regcache_raw_write): Change buf parameter to a
5840 constant void pointer.
5841 (regcache_raw_read): Change buf parameter to a void pointer.
5842 (legacy_write_register_gen): Change myaddr parameter a constant
5843 void pointer.
5844 (supply_register): Change val parameter to a const void pointer.
5845 * regcache.h (regcache_raw_write): Update declaration.
5846 (regcache_raw_read): Update declaration.
5847 (supply_register): Update declaration.
5848
5849 2002-07-24 Tom Tromey <tromey@redhat.com>
5850
5851 * defs.h (gdb_readline_wrapper): Declare.
5852 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5853 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5854 * top.c (gdb_readline_wrapper): New function.
5855 (command_line_input): Use it.
5856
5857 2002-07-24 Andrew Cagney <cagney@redhat.com>
5858
5859 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5860 regcache_read and regcache_write.
5861 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5862 * regcache.c: Update.
5863 * sh-tdep.c (sh64_push_arguments): Update comment.
5864 (sh_pseudo_register_read): Update.
5865 (sh_pseudo_register_write): Update.
5866 (sh4_register_read): Update.
5867 (sh4_register_write): Update.
5868 (sh64_pseudo_register_read): Update.
5869 (sh64_pseudo_register_write): Update.
5870 (sh64_register_read): Update.
5871 (sh64_register_write): Update.
5872 * i386-tdep.c (i386_extract_return_value): Update.
5873 (i386_extract_struct_value_address): Update.
5874 (i386_extract_return_value): Update.
5875 * blockframe.c (generic_read_register_dummy): Update.
5876 (generic_call_dummy_register_unwind): Update
5877 * infrun.c (write_inferior_status_register): Update.
5878
5879 2002-07-23 Jim Blandy <jimb@redhat.com>
5880
5881 * parser-defs.h (expression_context_pc): Make this extern.
5882 (Thanks to Michael Snyder.)
5883
5884 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5885
5886 GDB 5.2.1 released from 5.2 branch.
5887 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5888 * README: Update to mention 5.2.1.
5889
5890 2002-07-23 Mark Salter <msalter@redhat.com>
5891
5892 * remote.c (remote_read_bytes): Fix check for error.
5893
5894 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5895
5896 * aix-thread.c (language.h): Include.
5897 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5898 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5899 Print newlines at end of debug messages.
5900 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5901 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5902
5903 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5904
5905 * aix-thread.c (ppc-tdep.h): Include.
5906 (special_register_p): New function.
5907 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5908 (store_regs_user_thread): Use register number information from
5909 gdbarch_tdep struct instead of hardcoded offsets relative to
5910 FIRST_UISA_SP_REGNUM.
5911 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5912 special_register_p() instead of using FPLAST_REGNUM and
5913 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5914 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5915 will be MQ's register number.
5916
5917 2002-07-22 Michael Snyder <msnyder@redhat.com>
5918
5919 * aix-thread.c (ops): Rename to aix_thread_ops.
5920 (base_ops): Rename to base_target.
5921 (ops_attach): Rename to aix_thread_attach.
5922 (ops_detach): Rename to aix_thread_detach.
5923 (ops_resume): Rename to aix_thread_detach.
5924 (ops_wait): Rename to aix_thread_wait.
5925 (ops_kill): Rename to aix_thread_kill.
5926 (init_ops): Rename to init_aix_thread_ops.
5927 (ops_fetch_register): Rename to aix_thread_fetch_register.
5928 (ops_store_register): Rename to aix_thread_store_register.
5929 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5930 (ops_thread_alive): Rename to aix_thread_thread_alive.
5931 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5932 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5933 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5934 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5935 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5936 (store_regs_lib): Rename to store_regs_user_thread.
5937 (store_regs_kern): Rename to store_regs_kernel_thread.
5938
5939 2002-07-22 Michael Snyder <msnyder@redhat.com>
5940
5941 * aix-thread.c (ops_prepare_to_store): Eliminate.
5942 (init_ops): Don't initialize ops.prepare_to_store.
5943 (store_regs_kern): Pre-fetch register buffers from child,
5944 because some registers may not be in the cache. Copy
5945 regs from register cache only if they are cached.
5946 (store_regs_lib): Copy regs from register cache only
5947 if they are cached.
5948 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5949 fill_gprs64): Ditto.
5950
5951 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5952
5953 * aix-thread.c (gdb_assert.h): Include.
5954 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5955 register sizes (from register cache) match size of buffer holding
5956 register data.
5957 (fill_sprs32): Change parameter types to match those in the ptrace()
5958 buffer.
5959 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5960 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5961
5962 2002-07-22 Michael Snyder <msnyder@redhat.com>
5963
5964 * aix-thread.c (supply_sprs64): Cosmetic change.
5965 (supply_sprs32): Cosmetic change.
5966 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5967 (fill_sprs64): Use regcache_collect instead of read_register.
5968 (store_regs_lib): Use regcache_collect instead of
5969 read_register. Use fill_sprs32 instead of fill_sprs64,
5970 if debugging a 32-bit architecture.
5971 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5972 out of the register cache, instead of passing a pointer into
5973 the register cache directly to ptrace. Use regcache_collect
5974 insteaad of read_register.
5975 (ops_prepare_to_store): Use target_read_registers instead
5976 of read_register_bytes.
5977
5978 2002-07-20 Aidan Skinner <aidan@velvet.net>
5979
5980 * MAINTAINERS: Add self under write after approval.
5981
5982 2002-07-20 Aidan Skinner <aidan@velvet.net>
5983
5984 * ada-tasks.c: Change k&r style function definitions to prototyped
5985 form.
5986
5987 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5988
5989 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5990 * x86-64-tdep.c: Include "objfiles.h".
5991 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5992 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5993
5994 2002-07-17 Michal Ludvig <michal@suse.cz>
5995
5996 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5997 (update_context): Initialise cfa variable.
5998
5999 2002-07-17 Michael Snyder <msnyder@redhat.com>
6000
6001 * aix-thread.c: Shorten some long lines.
6002 Bring comments into line with code spec.
6003
6004 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6005
6006 * infrun.c: Re-indent using gdb_indent.sh.
6007
6008 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6009
6010 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6011 Leave the indentation temporarily untouched, to minimize the diffs.
6012
6013 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6014
6015 * stabsread.c: Make os9k sections of the code obsolete,
6016 for real this time.
6017 * stabsread.h: Make os9k sections of the code obsolete.
6018
6019 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6020
6021 * linux-low.c (regsets_store_inferior_registers): Add free()
6022 at the end of a loop to prevent memory leak.
6023 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6024 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6025 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6026 line a comment.
6027 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6028
6029 2002-07-17 Jim Blandy <jimb@redhat.com>
6030
6031 * macrocmd.c (info_macro_command): Remove newline from error
6032 message.
6033
6034 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6035
6036 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6037 (sh_gdbarch_init): Use it for sh-dsp.
6038
6039 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6040
6041 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6042 64-bit DWARF2 format.
6043
6044 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6045
6046 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6047 <sys/proc.h> when not available.
6048
6049 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6050
6051 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6052 * stabsread.c: Make os9k sections of the code obsolete.
6053 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6054 * config/i386/i386os9k.mt: Make file obsolete.
6055 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6056 (COMMON_OBS): Remove os9kread.o
6057 (SFILES): Remove os9kread.c.
6058 (os9kread.o, remote-os9k.o): Make target obsolete.
6059 * remote-os9k.c: Make file obsolete.
6060 * os9kread.c: Make file obsolete.
6061 * Makefile.in
6062
6063 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6064
6065 * NEWS: Mention that the FR30 has been made obsolete.
6066 * fr30-tdep.c: Make file obsolete.
6067 * config/fr30/tm-fr30.h: Ditto.
6068 * config/fr30/fr30.mt: Ditto.
6069 * configure.tgt: Make fr30-*-elf obsolete.
6070 * MAINTAINERS: Make fr30-elf obsolete.
6071
6072 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6073
6074 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6075 found is not inside a section.
6076
6077 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6078
6079 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6080 strerror().
6081 (pdc_realloc): Use xrealloc() instead of realloc().
6082
6083 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6084
6085 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6086 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6087 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6088 macros.
6089
6090 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6091
6092 * aix-thread.c (ptrace_check): Eliminate goto.
6093 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6094 problem.
6095
6096 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6097
6098 * aix-thread.c (gdbcmd.h): Include.
6099 (DEBUG, DBG, DBG2, dbg): Eliminate.
6100 (debug_aix_thread): New static global.
6101 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6102 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6103 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6104 invocations to DBG and DBG2 macros to test against
6105 ``debug_aix_thread'' and call fprintf_unfiltered().
6106 (_initialize_aix_thread): Add new command "set debug aix-thread".
6107
6108 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6109
6110 From Gerhard Tonn <TON@de.ibm.com>:
6111 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6112 instead of supply_register.
6113
6114 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6115
6116 * dwarf2cfi.c: Include "gdb_assert.h".
6117 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6118 non-NULL.
6119 (update_context): Do not use __func__. Add missing ``break''.
6120 (update_context): Do not use __func__.
6121
6122 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6123
6124 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6125 and its setting. Set gdbarch instruction printing functions
6126 directly. For non-rs6000 case use new function
6127 gdb_print_insn_powerpc.
6128 (gdb_print_insn_powerpc): New function.
6129
6130 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6131
6132 * NEWS: Mention that the d30v has been marked obsolete.
6133 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6134 * configure.tgt: Mark d30v-*-* as obsolete.
6135 * d30v-tdep.c: Mark file as obsolete.
6136 * config/d30v/d30v.mt: Ditto.
6137 * config/d30v/tm-d30v.h: Ditto.
6138
6139 2002-07-13 Aidan Skinner <aidan@velvet.net>
6140
6141 * ada-tasks.c (add_task_entry): replace calls to
6142 malloc() with xmalloc
6143 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6144
6145 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6146 ada_finish_decode_line_1, all_sals_for_line
6147 ada_breakpoint_rewrite): replace calls to free() with xfree()
6148
6149 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6150
6151 From Nicholas Duffek (with minor changes by Martin Hunt,
6152 Louis Hamilton, and Kevin Buettner):
6153 * aix-thread.c: New file.
6154
6155 2002-07-12 Petr Sorfa <petrs@caldera.com>
6156
6157 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6158 complaint for invalid attribute class or form.
6159 (read_func_scope): DW_AT_frame_base
6160 better handling of DW_AT_block*.
6161 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6162 better handling of DW_AT_block*.
6163 (read_common_block): DW_AT_location
6164 better handling of DW_AT_block*.
6165 (read_partial_die): DW_AT_location better handling
6166 of DW_AT_block*.
6167 (new_symbol): DW_AT_external better handling of
6168 DW_AT_block*. Proper initialization of variable
6169 "addr".
6170 (attr_form_is_block): New function that returns true
6171 if the attribute's form is of DW_FORM_block*.
6172
6173 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6174
6175 * valops.c (find_method_list): Remove comment about
6176 removed STATIC_MEMFUNCP argument.
6177 (value_find_oload_method_list): Likewise.
6178
6179 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6180
6181 From Nicholas Duffek:
6182 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6183 target_new_objfile_hook.
6184
6185 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6186
6187 From Nicholas Duffek:
6188 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6189 csect.
6190
6191 2002-07-12 Andrew Cagney <cagney@redhat.com>
6192
6193 * MAINTAINERS: Mention --enable-sim-build-warnings.
6194 (m68hc11-elf): Disable sim build warnings.
6195 (m32r-elf): Mark as broken obsolete candidate.
6196 (x86_64-linux-gnu): Mark as buildable with -Werror.
6197 (arm-elf): Change -w to ``,'' which enables warnings but not
6198 -Werror.
6199
6200 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6201
6202 * bcache.h: Update copyright.
6203 (struct bstring, struct bcache): Move definition to "bcache.c".
6204 Replaced by opaque declaration.
6205 (bcache_xfree): Replace free_bcache.
6206 (bcache_xmalloc, bcache_memory_used): Declare.
6207
6208 * bcache.c: Update copyright.
6209 (struct bstring, struct bcache): Moved to here from "bcache.h".
6210 Update comments.
6211 (bcache_xmalloc, bcache_memory_used): New functions.
6212 (bcache_xfree): Replace function free_bcache.
6213
6214 * Makefile.in (objfiles.o): Add $(bcache_h).
6215 (objfiles_h): Remove $(bcache_h).
6216 (symfile.o): Add $(bcache_h).
6217
6218 * symmisc.c: Update copyright.
6219 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6220 (print_objfile_statistics): Use bcache_memory_used.
6221
6222 * symfile.c: Include "bcache.h".
6223 (reread_symbols): Use bcache_xfree.
6224 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6225 (add_psymbol_to_list): Pass psymbol_cache by value.
6226 (add_psymbol_with_dem_name_to_list): Ditto.
6227
6228 * objfiles.h: Update copyright.
6229 (struct bcache): Declare opaque. Do not include "bcache.h".
6230 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6231 bcache'' pointers.
6232 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6233
6234 * objfiles.c: Include "bcache.h". Update copyright.
6235 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6236 macro_cache.
6237 (free_objfile): Use bcache_xfree.
6238
6239 2002-07-11 Grace Sainsbury <graces@redhat.com>
6240
6241 * monitor.c (monitor_fetch_register): Make name a constant.
6242 (monitor_store_register): Same.
6243
6244 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6245
6246 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6247 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6248 (finish_block) For non-function blocks, hash the symbol table. For
6249 function blocks, mark the symbol table as unhashed.
6250 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6251 (msymbol_hash_iw): Likewise.
6252 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6253 value.
6254 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6255 (lookup_minimal_symbol): Likewise for both.
6256 * symtab.h (struct block): Add `hashtable' flag. Comment the
6257 hashtable.
6258 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6259 (ALL_BLOCK_SYMBOLS): Update.
6260 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6261 (struct symbol): Add `hash_next' pointer.
6262 * symtab.c (lookup_block_symbol): Search using the hash table when
6263 possible.
6264 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6265 (search_symbols, find_addr_symbol): Likewise.
6266
6267 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6268 (read_dst_symtab): Likewise.
6269 * jv-lang.c (get_java_class_symtab): Likewise.
6270 * mdebugread.c: Include "gdb_assert.h".
6271 (shrink_block): Assert that the block being modified is not hashed.
6272 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6273 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6274 symbols.
6275 (dump_symtab): Recognize hashed blocks.
6276 * printcmd.c (print_frame_args): Assert that function blocks do not
6277 have hashed symbol tables.
6278 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6279 (fill_in_ada_prototype, debug_print_block): Likewise.
6280 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6281
6282 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6283
6284 * stack.c (print_frame): Use result of frame_address_in_block()
6285 instead of fi->pc when evaluating symbols.
6286 (backtrace_command_1): Ditto.
6287
6288 2002-07-11 Andrew Cagney <cagney@redhat.com>
6289
6290 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6291 Make static.
6292
6293 * arm-tdep.c (arm_register_name): Make return type constant.
6294
6295 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6296
6297 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6298 prototype.
6299 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6300 * s390-tdep.c (s390_fp_regnum): Ditto.
6301 (s390_read_fp): Ditto.
6302 (s390_pop_frame): Ditto.
6303 (_initialize_s390_tdep): Ditto.
6304 * remote.c (get_remote_state): Ditto.
6305 * procfs.c (mappingflags): Ditto.
6306 * memattr.c (_initialize_mem): Ditto.
6307 * mcore-tdep.c (mcore_pop_frame): Ditto.
6308 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6309 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6310 * language.c (set_case_str): Ditto.
6311 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6312 * frv-tdep.c (new_variant): Ditto.
6313 (frv_stopped_data_address): Ditto.
6314 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6315 (context_alloc): Ditto.
6316 (frame_state_alloc): Ditto.
6317 (unwind_tmp_obstack_init): Ditto.
6318 (unwind_tmp_obstack_free): Ditto.
6319 (cfi_read_fp): Ditto.
6320 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6321 (cris_pop_frame): Ditto.
6322 * c-lang.c (scanning_macro_expansion): Ditto.
6323 (finished_macro_expansion): Ditto.
6324 (c_preprocess_and_parse): Ditto.
6325 * gdbarch.sh: Ditto.
6326 * gdbarch.h, gdbarch.c: Regenerate.
6327 * config/mn10200/tm-mn10200.h: Adjust indentation.
6328 * target.c: Adjust indentation.
6329 * symtab.h: Adjust indentation.
6330 * stabsread.h: Adjust indentation.
6331 * remote-es.c: Adjust indentation.
6332 * os9kread.c: Adjust indentation.
6333
6334 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6335
6336 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6337 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6338
6339 2002-07-10 Grace Sainsbury <graces@redhat.com>
6340
6341 * NEWS: Mention m68k, mcore multi-arching.
6342 * MAINTAINERS: Change status of m68k, mcore to reflect
6343 multi-arching.
6344
6345 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6346
6347 * valops.c (find_overload_match): Free oload_syms.
6348
6349 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6350
6351 Define HAVE_SYS_PROC_H if sys/proc.h exists
6352 * configure.in: Add check for sys/proc.h
6353 * config.in: Regenerate.
6354 * configure: Regenerate.
6355
6356 2002-07-09 Grace Sainsbury <graces@redhat.com>
6357
6358 * config/m68k/tm-m68k.h: Remove macros wrapped in
6359 #if !GDB_MULTI_ARCH.
6360
6361 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6362
6363 * config.in, configure: Regenerate.
6364
6365 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6366
6367 * dwarf2cfi.c: Include "gcore.h".
6368 (execute_stack_op): Fix implementation of the
6369 DW_OP_deref and DW_OP_deref_size operators by letting do their
6370 lookup in the target.
6371
6372 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6373
6374 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6375 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6376 tdep->sc_sp_offset.
6377
6378 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6379
6380 Fix PR gdb/595, gdb/602
6381 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6382 Don't call value_cast, just read the vtable pointer; update comments
6383 to match.
6384
6385 2002-07-05 Grace Sainsbury <graces@redhat.com>
6386
6387 * config/mcore/tm-mcore.h: Remove file.
6388 * config/mcore/mcore.mt: Remove definition of TM_FILE
6389 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6390
6391 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6392
6393 * i386bsd-tdep.c: Include "gdb_string.h".
6394
6395 2002-07-04 Grace Sainsbury <graces@redhat.com>
6396
6397 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6398 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6399 mcore-tdep.
6400 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6401 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6402 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6403 (RETVAL_REGNUM): Move macros from tm-mcore.h
6404 (mcore_reg_struct_has_addr): New function.
6405 (mcore_gdbarch_init): Added initializations for the macros removed
6406 from tm-mcore.h.
6407
6408 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6409
6410 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6411 traditonal string branding within the ELF header.
6412
6413 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6414
6415 * symtab.c (remove_params): New function.
6416 (make_symbol_overload_list): Use it instead of cplus_demangle.
6417 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6418
6419 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6420
6421 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6422
6423 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6424 New variables.
6425 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6426 and tdep->sigtramp_end.
6427 * i386obsd-nat.c: New file.
6428 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6429
6430 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6431 Don't call get_current_frame().
6432
6433 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6434
6435 * i386-nat.c (child_post_startup_inferior): New function
6436 calling i386_cleanup_dregs if
6437 I386_USE_GENERIC_WATCHPOINTS is defined.
6438 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6439 conditional to acknowledge that i386-nat.c has its
6440 own child_post_startup_inferior function.
6441
6442 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6443
6444 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6445 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6446 instead of MAX_REGISTER_RAW_SIZE.
6447 (i386_extract_return_value, i386_extract_struct_value_address):
6448 Convert to use regcache.
6449 (i386_gdbarch_init): Set max_register_raw_size and
6450 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6451 Set extract_return_value and extract_struct_value_address instead
6452 of their deprecated variants.
6453
6454 Convert i386 target to generic dummy frames.
6455 * i386-tdep.c: Include "symfile.h".
6456 (i386_frameless_signal_p): Consider a function to be frameless if
6457 the pc points at the first instruction of the function.
6458 (i386_frame_chain): Handle (generic) call dummies.
6459 (i386_frame_saved_pc): Likewise.
6460 (i386_frame_init_saved_regs): Remove code dealing with call
6461 dummies on the stack.
6462 (i386_push_dummy_frame): Removed.
6463 (i386_call_dummy_words): Removed.
6464 (i386_fix_call_dummy): Removed.
6465 (i386_push_return_address): New function.
6466 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6467 parameter, and don't call get_current_frame.
6468 (i386_pop_frame): New function.
6469 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6470 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6471 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6472 call_dummy_length to 0, set call_dummy_words to NULL, set
6473 sizeof_call_dummy_words to 0, set fix_call_dummy to
6474 generic_fix_call_dummy, set pc_in_call_dummy to
6475 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6476 generic_push_dummy_frame, set push_return_address to
6477 i386_push_return_address and set frame_chain_valid to
6478 generic_file_frame_chain_valid.
6479
6480 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6481
6482 * gdbarch.sh (struct regcache): Add opaque declaration.
6483 (EXTRACT_RETURN_VALUE): New architecture method.
6484 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6485 * gdbarch.h, gdbarch.c: Regenerate.
6486 * arch-utils.c (legacy_extract_return_value): New function.
6487 * arch-utils.h (legacy_extract_return_value): Declare.
6488 * values.c (value_being_returned): Re-enable code handling
6489 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6490 deprecated_grub_regcache_for_registers call to block handling
6491 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6492 (EXTRACT_RETURN_VALUE): Do not define.
6493
6494 2002-07-03 Grace Sainsbury <graces@redhat.com>
6495
6496 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6497 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6498 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6499 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6500 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6501 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6502 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6503 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6504 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6505 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6506 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6507 argument so the function fits the prototype in the architecture
6508 vector.
6509 (mcore_pop_frame): Remove argument so the function fits the
6510 prototype. Use get_current_frame instead of the argument.
6511 (mcore_push_arguments): Change type of struct_return so the
6512 function can be used in the architecture vector.
6513 (mcore_store_struct_return): Add.
6514 (mcore_frame_init_saved_regs): Add.
6515 (mcore_gdbarch_init): Add function calls to replace the macros
6516 removed from tm-mcore.h
6517
6518 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6519
6520 * infcmd.c (print_return_value): Remove compatibility code calling
6521 deprecated_grub_regcache_for_registers.
6522
6523 * values.c: Include "regcache.h".
6524 (value_being_returned): Update. Use
6525 deprecated_grub_regcache_for_registers to extract the register
6526 buffer address.
6527 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6528 ``struct regcache''.
6529 * Makefile.in (values.o): Add dependency on $(regcache_h).
6530
6531 * inferior.h (run_stack_dummy): Change type of second parameter to
6532 a ``struct regcache''.
6533 * valops.c (hand_function_call): Change type of retbuf to ``struct
6534 regcache''. Allocate using regcache_xmalloc, clean using
6535 make_cleanup_regcache_xfree.
6536 * infcmd.c (run_stack_dummy): Update. Use
6537 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6538
6539 * regcache.c (do_regcache_xfree): New function.
6540 (make_cleanup_regcache_xfree): New function.
6541 * regcache.h (make_cleanup_regcache_xfree): Declare.
6542
6543 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6544
6545 * event-top.c (command_line_handler): Don't read past
6546 beginning of buffer.
6547
6548 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6549
6550 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6551 struct frame_id.
6552 (varobj_create): Store frame_id for root.
6553 (varobj_gen_name): Use xasprintf.
6554 (varobj_update): Save and restore frame using get_frame_id() and
6555 frame_find_by_id().
6556 (create_child): Use xasprintf.
6557 (new_root_variable): Initialize frame_id.
6558 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6559 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6560 to prevent memory leak.
6561
6562 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6563
6564 * valops.c (hand_function_call): Move declaration of retbuf to
6565 start of function, allocate using malloc, add a cleanup but before
6566 the inf_status cleanup, cleanup the buffer. Rename local variable
6567 old_chain to inf_status_cleanup.
6568
6569 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6570
6571 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6572
6573 * cli/cli-decode.c (cmd_func_p): New function.
6574 (cmd_func): New function.
6575
6576 * command.h: Add cmd_func() and cmd_func_p().
6577
6578 2002-07-03 Grace Sainsbury <graces@redhat.com>
6579
6580 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6581 (REGISTER_SIZE): Remove.
6582 (MAX_REGISTER_RAW_SIZE): Remove.
6583 (REGISTER_VIRTUAL_TYPE): Remove.
6584 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6585 (REGISTER_NAME): Remove.
6586 (USE_GENERIC_DUMMY_FRAMES): Remove.
6587 (CALL_DUMMY): Remove.
6588 (CALL_DUMMY_START_OFFSET): Remove.
6589 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6590 (CALL_DUMMY_LOCATION): Remove.
6591 (FIX_CALL_DUMMY): Remove.
6592 (CALL_DUMMY_ADDRESS): Remove.
6593 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6594 (SAVE_DUMMY_FRAME_TOS): Remove.
6595 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6596 (mcore_register_virtual_type): New function.
6597 (mcore_register_byte): New function.
6598 (mcore_register_size): New function.
6599 (mcore_register_name): New function.
6600 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6601 macros removed from tm-mcore.h.
6602 (mcore_dump_tdep): Add.
6603 (_initialize_mcore_tdep): Add gdbarch_register call.
6604
6605 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6606
6607 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6608 frameless_look_for_prologue, such that we actually call this
6609 function.
6610
6611 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6612
6613 * frame.h (frame_address_in_block): New function.
6614
6615 * blockframe.c (frame_address_in_block): New function extracted
6616 from get_frame_block().
6617 (get_frame_block): Use frame_address_in_block().
6618 (block_innermost_frame): Use frame_address_in_block() to match
6619 the frame pc address against the block boundaries rather than
6620 the frame pc directly. This prevents a failure when a frame pc
6621 is actually a return-address pointing immediately after the end
6622 of the given block.
6623
6624 2002-07-02 Grace Sainsbury <graces@redhat.com>
6625
6626 * MAINTAINERS: Add self under write after approval.
6627
6628 2002-07-02 Grace Sainsbury <graces@redhat.com>
6629
6630 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6631 used in architecture vector. The default is
6632 m68k_local_breakpoint_from_pc.
6633 (m68k_local_breakpoint_from_pc): Add.
6634 (enum): Add register numbers from tm-m68k.h.
6635 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6636 vector.
6637 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6638 GDB_MULTI_ARCH_PARTIAL.
6639 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6640 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6641 m68k-tdep.c.
6642 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6643 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6644 to enum in m68k-tdep.c
6645
6646 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6647
6648 * solib-osf.c (open_map): Compute the list of shared libraries
6649 loaded by the inferior, rather than the list of libraries loaded
6650 by GDB itself. Otherwise, GDB ends up reading the symbols from
6651 the wrong shared libraries...
6652
6653 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6654
6655 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6656 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6657 macros.
6658 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6659 Remove functions.
6660 (FRAMELESS_SIGNAL): Remove function.
6661 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6662 i386_linux_saved_pc_after_call): Removed.
6663 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6664 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6665 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6666
6667 * i386-tdep.c (i386_frameless_signal_p): New function.
6668 (i386_frame_chain): Deal with frameless signals.
6669 (i386_sigtramp_saved_sp): New function.
6670 (i386_frame_saved_pc): Deal with frameless signals.
6671 (i386_saved_pc_after_call): Make sure the correct value is
6672 returned just after entry into a sigtramp.
6673 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6674 i386fbsd4_sc_sp_offset): New variables.
6675 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6676 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6677 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6678 similiar to what we already did for sc_pc_offset.
6679 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6680 tdep->sc_sp_offset.
6681
6682 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6683
6684 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6685
6686 * config/i386/tm-x86-64linux.h: New.
6687 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6688 definitions.
6689 * config/i386/nm-x86-64.h: Rename to ...
6690 * config/i386/nm-x86-64linux.h: ... this one.
6691 * config/i386/x86-64linux.mh: Reflect the above change.
6692
6693 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6694
6695 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6696 with sigcontext_addr. Add sc_sp_offset.
6697 (i386bsd_sigtramp_saved_pc): Remove prototype.
6698 (i386bsd_sicontext_addr): Add prototype.
6699 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6700 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6701 (i386_svr4_sigtramp_saved_pc): Removed.
6702 (i386_svr4_sigcontext_addr): New function.
6703 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6704 Initialize tdep->sigcontext_addr instead. Initialize
6705 tdep->sc_pc_offset and tdep->sc_sp_offset.
6706 (i386_gdbarch_init): Likewise.
6707 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6708 any more.
6709 (i386bsd_sigtramp_saved_pc): Remove function.
6710 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6711 Initialize tdep->sigcontext_addr instead. Initialize
6712 tdep->sc_pc_offset.
6713 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6714 of tdep->sigtramp_saved_pc.
6715 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6716 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6717 instead.
6718
6719 * i386-tdep.c (i386_frameless_function_invocation,
6720 i386_frame_num_args, i386_frame_init_saved_regs,
6721 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6722 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6723 i386_extract_return_value, i386_store_return_value,
6724 i386_extract_struct_value_address, i386_register_virtual_type,
6725 i386_register_convertible, i386_register_convert_to_virtual,
6726 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6727 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6728 static.
6729
6730 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6731
6732 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6733
6734 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6735 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6736 this macro. Include "value.h".
6737
6738 2002-06-30 Aidan Skinner <aidan@velvet.net>
6739
6740 * ada-exp.tab.c: remove as it's a generated file
6741 * ada-lex.c: remove as it's a generated file
6742
6743 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6744
6745 * config/i386/tm-i386.h (struct frame_info, struct
6746 frame_saved_regs, struct value, struct type): Remove forward
6747 declarations.
6748
6749 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6750 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6751 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6752 (FILL_FPXREGSET): Define.
6753
6754 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6755
6756 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6757 i[3456]86-*-netbsd* case.
6758 * config/i386/tm-obsd.h: Removed.
6759 * config/i386/obsd.mt: Removed.
6760 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6761 core-aout.o.
6762 (MH_CFLAGS): Add -DYYDEBUG=0.
6763
6764 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6765 i386nbsd_sc_pc_offset on OpenBSD too.
6766
6767 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6768 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6769 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6770 define.
6771 * i386bsd-tdep.c: Include "arch-utils.h".
6772 (i386bsd_aout_in_solib_call_trampoline): New function.
6773 (i386bsd_init_abi): Set in_solib_call_trampoline to
6774 i386bsd_aout_in_solib_call_trampoline.
6775 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6776 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6777
6778 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6779
6780 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6781 (struct obstack, struct bcache): Add opaque declarations.
6782 * Makefile.in (macrotab_h): Update
6783
6784 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6785
6786 * blockframe.c (generic_find_dummy_frame): Change return type to
6787 ``struct regcache''.
6788 (struct dummy_frame): Replace field ``registers'' with regcache, a
6789 struct regcache object.
6790 (generic_find_dummy_frame): Update.
6791 (generic_push_dummy_frame): Update. Use regcache_xfree,
6792 regcache_xmalloc and regcache_cpy.
6793 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6794 regcache_xfree.
6795 (deprecated_generic_find_dummy_frame): Update.
6796 (generic_read_register_dummy): Update. Use
6797 regcache_read_as_address.
6798 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6799 (generic_get_saved_register): Update. Use regcache_read.
6800
6801 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6802
6803 * Makefile.in (objfiles_h): Add $(bcache_h).
6804 * objfiles.h: Include "bcache.h".
6805
6806 * Makefile.in (symtab_h): Remove $(bcache_h).
6807 * symtab.h: Do not include "bcache.h".
6808
6809 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6810
6811 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6812 generic_func_frame_chain_valid.
6813
6814 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6815
6816 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6817 * config/i386/tm-fbsd.h: Likewise.
6818
6819 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6820
6821 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6822 generic_unwind_get_saved_register.
6823
6824 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6825
6826 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6827 * regcache.c (supply_register): Add missing argument to
6828 register_buffer call.
6829
6830 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6831
6832 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6833 Solaris /bin/grep does not not like it. From Peter Schauer.
6834
6835 2002-06-26 Tom Tromey <tromey@redhat.com>
6836
6837 * command.h (add_setshow_cmd): Declare.
6838 (add_setshow_cmd_full): Declare.
6839 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6840 returns void. Use add_setshow_cmd_full.
6841 (add_setshow_cmd_full): New function.
6842 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6843 (add_setshow_boolean_cmd): Likewise.
6844
6845 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6846
6847 * config/vax/tm-vax.h: Protect from multiple inclusion.
6848 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6849 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6850 * config/vax/tm-vaxbsd.h: ...here. New file.
6851 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6852
6853 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6854
6855 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6856 (BELIEVE_PCC_PROMOTION): Remove.
6857 (AP_REGNUM): Move to...
6858 * config/vax/nm-vax.h: ...here.
6859 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6860 (vax_breakpoint_from_pc): New function.
6861 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6862 and gdbarch_believe_pcc_promotion.
6863
6864 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * Makefile.in (vax_tdep_h): Define.
6867 (vax-tdep.o): Use $(vax_tdep_h).
6868 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6869 (vax_dump_tdep): New function.
6870 (_initialize_vax_tdep): Register vax_dump_tdep.
6871 * vax-tdep.h: Include osabi.h.
6872 (struct gdbarch_tdep): New.
6873
6874 2002-06-26 Andrew Cagney <cagney@redhat.com>
6875
6876 * frame.h (deprecated_generic_find_dummy_frame): Rename
6877 generic_find_dummy_frame.
6878 * blockframe.c (generic_find_dummy_frame): Make static.
6879 (deprecated_generic_find_dummy_frame): New function.
6880 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6881 generic_find_dummy_frame with deprecated_find_dummy_frame.
6882 (sh64_nofp_frame_init_saved_regs): Ditto.
6883 (sh_fp_frame_init_saved_regs): Ditto.
6884 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6885 (s390_frame_chain): Ditto.
6886 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6887
6888 2002-06-26 Grace Sainsbury <graces@redhat.com>
6889
6890 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6891 gdbarch vector are at the top.
6892 (NUM_REGS): Remove.
6893 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6894 (FRAME_ARGS_ADDRESS): Remove.
6895 (FRAME_LOCALS_ADDRESS): Remove.
6896 (FRAME_NUM_ARGS): Remove.
6897 (FRAME_ARGS_SKIP): Remove.
6898 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6899 (m68k_gdbarch_init): Add gdbarch initializations for macros
6900 undefined in tm-m68k.h
6901
6902 2002-06-26 Grace Sainsbury <graces@redhat.com>
6903
6904 * monitor.h: Add the function regname to monitor_ops
6905 structure. This way NUM_REGS does not have to be a constant.
6906 * monitor.c (monitor_fetch_register): Added support for regname
6907 function. The function is called if the array regnames is NULL.
6908 (monitor_store_register): Same.
6909 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6910 regnames array.
6911 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6912 cpu32bug_cmds.regname to point to new function.
6913 * abug-rom.c (abug_regname): Same as above.
6914 (init_abug_cmds): Same.
6915 * dbug-rom.c (dbug_regname): Same as above.
6916 (init_dbug_cmds): Same.
6917 * remote-est.c (est_regname): Same.
6918 (init_est_cmds): Same.
6919 * rom68k-rom.c (rom68k_regname): Same.
6920 (init_rom68k_cmds): Same.
6921
6922 2002-06-25 Tom Tromey <tromey@redhat.com>
6923
6924 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6925
6926 2002-06-25 Andrew Cagney <cagney@redhat.com>
6927
6928 * infrun.c (stop_registers): Change variable's type to ``struct
6929 regcache'''.
6930 (xmalloc_inferior_status): Delete function.
6931 (free_inferior_status): Delete function.
6932 (normal_stop): Use regcache_cpy.
6933 (struct inferior_status): Change type of fields ``stop_registers''
6934 and ``registers'' to ``struct regcache''.
6935 (write_inferior_status_register): Use regcache_write.
6936 (save_inferior_status): Instead of calling
6937 xmalloc_inferior_status, allocate the inf_status buffer directly.
6938 Use regcache_dup_no_passthrough and regcache_dup to save the
6939 buffers.
6940 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6941 Replace the stop_registers regcache instead of overriding it. Use
6942 regcache_xfree. Instead of calling free_inferior_status, xfree
6943 the buffer directly.
6944 (discard_inferior_status): Use regcache_xfree. Instead of calling
6945 free_inferior_status, xfree the buffer directly.
6946 (build_infrun): Use regcache_xmalloc.
6947 (_initialize_infrun): Delete redundant call to build_infrun.
6948
6949 * Makefile.in (infcmd.o): Add $(regcache_h).
6950
6951 * infcmd.c: Include "regcache.h".
6952 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6953 obtain the address of `stop_registers' register buffer.
6954 (print_return_value): Ditto.
6955
6956 * inferior.h (struct regcache): Add opaque declaration.
6957 (stop_registers): Change variable's declared type to ``struct
6958 regcache''.
6959
6960 2002-06-24 Tom Tromey <tromey@redhat.com>
6961
6962 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6963 * target.c (initialize_targets): Fixed typo in
6964 trust-readonly-sections `show' documentation.
6965
6966 * main.c: Marked all strings with _().
6967
6968 2002-06-24 Don Howard <dhoward@redhat.com>
6969
6970 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6971 that means max CORE_ADDR+1.
6972 (lookup_mem_region): Ditto.
6973 (mem_info_command): Ditto.
6974
6975 2002-06-24 Grace Sainsbury <graces@redhat.com>
6976
6977 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6978 (REGISTER_BYTES_OK): Remove.
6979 (REGISTER_BYTES): Remove.
6980 (STORE_STRUCT_RETURN): Remove.
6981 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6982 (STORE_RETURN_VALUE): Remove.
6983 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6984 (FRAME_CHAIN): Remove.
6985 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6986 (FRAME_SAVED_PC): Remove.
6987 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6988 (m68k_store_struct_return): Add.
6989 (m68k_deprecated_extract_return_value): Add.
6990 (m68k_deprecated_extract_struct_value_address): Add.
6991 (m68k_store_return_value): Add.
6992 (m68k_frame_chain): Add.
6993 (m68k_frameless_function_invocation): Add.
6994 (m68k_frame_saved_pc): Add.
6995 (m68k_gdbarch_init): added set_gdbarch calls for new
6996 functions and deleted macros.
6997
6998 2002-06-23 Tom Tromey <tromey@redhat.com>
6999
7000 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7001 (ALLDEPFILES): Likewise.
7002 (udiheaders): Removed.
7003 (udip2soc.o): Likewise.
7004 (udi2go32.o): Likewise.
7005 (udr.o): Likewise.
7006 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7007
7008 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7009
7010 * infrun.c (_initialize_infrun): Delete unnecessary call to
7011 build_infrun.
7012
7013 * regcache.h: Update comments describing the regcache_cpy family
7014 of functions.
7015 (regcache_save, regcache_restore): Delete declaration.
7016 (regcache_save_no_passthrough): Delete declaration.
7017 (regcache_restore_no_passthrough): Delete declaration.
7018 * regcache.c (regcache_save): Delete function.
7019 (regcache_save_no_passthrough): Delete function.
7020 (regcache_restore): Delete function.
7021 (regcache_restore_no_passthrough): Delete function.
7022
7023 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7024
7025 * config/m68k/tm-m68k.h: Fix typo.
7026 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7027 (m68k_frame_init_saved_regs): Declare.
7028
7029 2002-06-21 Jim Blandy <jimb@redhat.com>
7030
7031 Remove some vestiges of Harris 88k support.
7032 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7033 register numbering quirk.
7034 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7035 odd symbols occurring in Harris 88k ELF targets.
7036
7037 2002-06-21 Tom Tromey <tromey@redhat.com>
7038
7039 * gdb_locale.h: New file.
7040 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7041 (defs_h): Added gdb_locale.h.
7042 * configure, config.in: Rebuilt.
7043 * configure.in (PACKAGE): Define.
7044 * defs.h: Include gdb_locale.h.
7045 * main.c (captured_main): Call setlocale, bindtextdomain,
7046 textdomain.
7047
7048 2002-06-21 Dave Brolley <brolley@redhat.com>
7049
7050 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7051 * config/frv/frv.mt: New file.
7052 * config/frv/tm-frv.h: New file.
7053 * configure.tgt: Support frv-*-*.
7054 * Makefile.in (frv-tdep.o): New target.
7055 * frv-tdep.c: New file.
7056 * NEWS: Mention frv.
7057
7058 2002-06-21 Dave Brolley <brolley@redhat.com>
7059
7060 * MAINTAINERS: Add self to "Write After Approval" list.
7061
7062 2002-06-21 Grace Sainsbury <graces@redhat.com>
7063
7064 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7065 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7066 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7067 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7068 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7069
7070 * m68k-tdep.c: Include arch-utils.h
7071 (m68k_register_raw_size): Add.
7072 (m68k_register_virtual_size): Add.
7073 (m68k_register_virtual_type): Add.
7074 (m68k_register_name): Add.
7075 (m68k_stack_align): Add.
7076 (m68k_register_byte): Add.
7077 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7078 tm-m68k.h.
7079
7080 2002-06-21 Grace Sainsbury <graces@redhat.com>
7081
7082 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7083 m68k_find_saved_regs.
7084 (m68k_pop_frame): Removed saved_regs structure, and replaced
7085 references to it with frame->saved_regs.
7086 (m68k_gdbarch_init): Added function calls to initialize the
7087 gdbarch structure.
7088 (m68k_fix_call_dummy): Add.
7089 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7090 (CALL_DUMMY): Remove.
7091 (CALL_DUMMY_LENGTH): Remove.
7092 (CALL_DUMMY_START_OFFSET): Remove.
7093 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7094 (FIX_CALL_DUMMY): Remove.
7095 (PUSH_DUMMY_FRAME): Remove.
7096 (POP_FRAME): Remove.
7097
7098 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7099
7100 * parse.c (parse_fprintf): New function used to avoid calls to
7101 fprintf in bison parser generated debug code.
7102 * parser-defs.h: Declaration of new parse_fprintf function.
7103 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7104 Set YYDEBUG to 1 by default.
7105 Set YYFPRINTF as parse_fprintf.
7106
7107 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7108
7109 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7110 encoding anymore.
7111 (pointer_encoding, enum ptr_encoding): New.
7112 (execute_cfa_program): Take care about pointer encoding.
7113 (dwarf2_build_frame_info): Only call parse_frame_info for
7114 .debug_frame and .eh_frame.
7115 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7116 fixed augmentation handling, added relative addressing,
7117 ignore duplicate FDEs. Added comments.
7118 * dwarf2cfi.c: Reindented.
7119
7120 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7121
7122 * event-top.c (command_handler): Don't use space_at_cmd_start
7123 unless there is sbrk() on the host. Assign time and space data
7124 to union fields of the appropriate length.
7125
7126 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7127
7128 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7129 x86_64_register_name. Return type changed to 'const char *'.
7130 (x86_64_register_name2nr): Rename to x86_64_register_number.
7131 (x86_64_gdbarch_init): Update to reflect the change.
7132 * x86-64-tdep.h: Ditto.
7133 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7134 (supply_fpregset): Ditto.
7135
7136 2002-06-19 Andrew Cagney <cagney@redhat.com>
7137
7138 * regcache.h: Update copyright.
7139 (struct regcache, struct gdbarch): Add opaque declarations.
7140 (current_regcache): Declare global variable.
7141 (regcache_read, regcache_write): Add gdbarch parameter.
7142 (regcache_save, regcache_save_no_passthrough)
7143 (regcache_restore, regcache_restore_no_passthrough)
7144 (regcache_dup, regcache_dup_no_passthrough)
7145 (regcache_cpy, regcache_cpy_no_passthrough)
7146 (deprecated_grub_regcache_for_registers)
7147 (deprecated_grub_regcache_for_register_valid)
7148 (regcache_valid_p): Add function declarations.
7149
7150 * regcache.c: Update copyright.
7151 (regcache_descr_handle): New global variable.
7152 (struct regcache_descr): Define.
7153 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7154 (regcache_descr, xfree_regcache_descr): New functions.
7155 (struct regcache): Define.
7156 (regcache_xmalloc, regcache_xfree): New functions.
7157 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7158 (regcache_dup, regcache_dup_no_passthrough): New functions.
7159 (regcache_valid_p, regcache_read_as_address): New functions.
7160 (deprecated_grub_regcache_for_registers): New function.
7161 (deprecated_grub_regcache_for_register_valid): New function.
7162 (current_regcache): New global variable.
7163 (register_buffer): Add regcache parameter. Update calls.
7164 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7165 (read_register_gen, write_register_gen): Update register_buffer
7166 call. Test for legacy_p instead of gdbarch_register_read_p or
7167 gdbarch_register_write_p.
7168 (regcache_collect): Update register_buffer call.
7169 (build_regcache): Rewrite. Use deprecated grub functions.
7170 (regcache_save, regcache_save_no_passthrough): New functions.
7171 (regcache_restore, regcache_restore_no_passthrough): New
7172 functions.
7173 (_initialize_regcache): Create the regcache_data_handle. Swap
7174 current_regcache global variable.
7175
7176 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7177 parameter to regcache_read and regcache_write calls.
7178 (sh4_register_read): Ditto.
7179 (sh64_pseudo_register_read): Ditto.
7180 (sh64_register_read): Ditto.
7181 (sh_pseudo_register_write): Ditto.
7182 (sh4_register_write): Ditto.
7183 (sh64_pseudo_register_write): Ditto.
7184 (sh64_register_write): Ditto.
7185
7186 * defs.h (XCALLOC): Define.
7187
7188 2002-06-19 Grace Sainsbury <graces@redhat.com>
7189
7190 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7191 * m68k-tdep.c (m68k_gdbarch_init): Added.
7192 (m68k_dump_tdep): Added.
7193
7194 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7195
7196 * ada-lang.c (fill_in_ada_prototype): Update comment.
7197
7198 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7199
7200 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7201 MIPS_ABI_LAST.
7202 (mips_abi_string, mips_abi_strings): New.
7203 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7204 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7205 tdep->mips_abi_string. Honor mips_abi_string. Default to
7206 O32 if no ABI is found.
7207 (mips_dump_tdep): Use mips_abi_strings.
7208 (mips_abi_update): New function.
7209 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7210 ``set mips abi'' and ``show mips abi''. Check the size of
7211 mips_abi_strings.
7212
7213 2002-06-19 Andrew Cagney <cagney@redhat.com>
7214
7215 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7216 constant.
7217
7218 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7219
7220 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7221 current frame using only the first stack size adjustment. All
7222 subsequent size adjustments are not considered to be part of
7223 the "static" part of the current frame.
7224 Compute the address of the saved registers relative to the
7225 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7226 in use in this frame.
7227
7228 2002-06-18 Don Howard <dhoward@redhat.com>
7229
7230 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7231 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7232 suggesting this solution.
7233
7234 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7235
7236 * config/romp/xm-rtbsd.h: Delete file.
7237 * config/romp/rtbsd.mh: Delete file.
7238
7239 2002-06-18 Keith Seitz <keiths@redhat.com>
7240
7241 * breakpoint.c (condition_command): Post breakpoint_modify
7242 when a condition is added to an existing breakpoint.
7243 (commands_command): Likewise for commands.
7244 (set_ignore_count): Likewise for ignore counts.
7245 If no tty, do not simply return, still need to send event
7246 notification.
7247 (ignore_command): Only print a newline if the command came
7248 from a tty.
7249 Don't call breakpoints_changed, since this is now properly
7250 handled by set_ignore_count.
7251
7252 2002-06-18 Andrew Cagney <cagney@redhat.com>
7253
7254 * MAINTAINERS: Note that cris-elf target can be compiled with
7255 -Werror.
7256 * cris-tdep.c (cris_register_name): Make return type constant.
7257 (cris_breakpoint_from_pc): Ditto.
7258
7259 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7260
7261 * frame.h (struct frame_info): Change type of context to
7262 'struct context'.
7263
7264 2002-06-17 Andrew Cagney <cagney@redhat.com>
7265
7266 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7267 pointer.
7268 * gdbarch.h, gdbarch.c: Regenerate.
7269 * config/mips/tm-mips.h (mips_register_name): Update.
7270 * i386-tdep.h (i386_register_name): Update.
7271 * mips-tdep.c (mips_register_name): Update
7272 * alpha-tdep.c (alpha_register_name): Update.
7273 * arch-utils.c (legacy_register_name): Update.
7274 * arch-utils.h (legacy_register_name): Update.
7275 * avr-tdep.c (avr_register_name): Update.
7276 * ia64-tdep.c (ia64_register_name): Update.
7277 * i386-tdep.c (i386_register_name): Update.
7278 * sparc-tdep.c (sparc32_register_name): Update.
7279 (sparc64_register_name): Update.
7280 (sparclite_register_name): Update.
7281 (sparclet_register_name): Update.
7282 * sh-tdep.c (sh_generic_register_name): Update.
7283 (sh_sh_register_name): Update.
7284 (sh_sh3_register_name): Update.
7285 (sh_sh3e_register_name): Update.
7286 (sh_sh_dsp_register_name): Update.
7287 (sh_sh3_dsp_register_name): Update.
7288 (sh_sh4_register_name): Update.
7289 (sh_sh64_register_name): Update.
7290 * s390-tdep.c (s390_register_name): Update.
7291 * rs6000-tdep.c (rs6000_register_name): Update.
7292 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7293 (ns32k_register_name_32382): Update.
7294 * d10v-tdep.c (d10v_ts2_register_name): Update.
7295 (d10v_ts3_register_name): Update.
7296 * xstormy16-tdep.c (xstormy16_register_name): Update.
7297 * vax-tdep.c (vax_register_name): Update.
7298 * v850-tdep.c (v850_register_name): Update.
7299 * m68hc11-tdep.c (m68hc11_register_name): Update.
7300 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7301 (am33_register_name): Update.
7302
7303 2002-06-17 Grace Sainsbury <graces@redhat.com>
7304
7305 * m68k-tdep.c: Reindented.
7306
7307 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7308
7309 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7310 list of predefined types.
7311
7312 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7313
7314 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7315 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7316 REGISTER_CONVERT_TO_RAW): Remove defines.
7317 (i386_register_virtual_type, i386_register_convertible,
7318 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7319 Remove prototypes.
7320 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7321 macros mentioned above.
7322
7323 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7324 (i386lynx_saved_pc_after_call): Remove prototype.
7325 * i386ly-tdep.c: Include "i386-tdep.h".
7326 (i386lynx_saved_pc_after_call): Make static. Use
7327 read_memory_nobpt instead of read_memory. Use
7328 read_memory_unsigned_integer instead of read_memory_integer.
7329 (i386lynx_init_abi): New function.
7330 (i386lynx_coff_osabi_sniffer): New function.
7331 (_initialize_i386bsd_tdep): New function.
7332
7333 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7334 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7335 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7336 (i386_fix_call_dummy): Remove prototype.
7337 * i386-tdep.c (i386_call_dummy_words): New variable.
7338 (i386_gdbarch_init): Adjust for removal of the
7339 macros mentioned above.
7340
7341 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7342
7343 * command.h (add_setshow_auto_boolean_cmd): Replace
7344 add_set_auto_boolean_cmd.
7345 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7346 add_set_auto_boolean_cmd.
7347 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7348 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7349 mask-address'' command.
7350 (show_mask_address): Add cmd parameter.
7351 * remote.c (add_packet_config_cmd): Update. Change type of
7352 set_func and show_func to cmd_sfunc_ftype.
7353 (_initialize_remote): Update `set remote Z-packet'
7354 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7355 (show_remote_protocol_e_packet_cmd): Ditto.
7356 (show_remote_protocol_E_packet_cmd): Ditto.
7357 (show_remote_protocol_P_packet_cmd): Ditto.
7358 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7359 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7360 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7361 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7362 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7363 (show_remote_protocol_Z_packet_cmd): Ditto.
7364 (show_remote_protocol_binary_download_cmd): Ditto.
7365 (show_remote_cmd): Pass NULL to all of above.
7366
7367 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7368
7369 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7370 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7371 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7372 POP_FRAME): Remove defines.
7373 (i386_push_arguments, i386_store_struct_return,
7374 i386_extract_return_value, i386_store_return_value,
7375 i386_extract_struct_value_address, i386_push_dummy_frame,
7376 i386_pop_frame): Renove prototypes.
7377 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7378 macros mentioned above.
7379
7380 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7381
7382 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7383 add_set_boolean_cmd.
7384 (add_setshow_cmd): New function.
7385 * command.h (add_setshow_boolean_cmd): Replace
7386 add_set_boolean_cmd.
7387 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7388 and ``set rdiromatzero''.
7389 * maint.c (_initialize_maint_cmds): Update commented out code.
7390 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7391 * target.c (initialize_targets): Update `set
7392 trust-readonly-sections'.
7393 * remote.c (_initialize_remote): Update `set remotebreak'.
7394
7395 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7396
7397 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7398 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7399 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7400 fit into multi-arch framework.
7401 (i386_breakpoint_from_pc): New function.
7402 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7403 above.
7404
7405 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7406 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7407 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7408 (i386_frameless_function_invocation, i386_frame_num_args,
7409 i386_frame_init_saved_regs): Remove prototypes.
7410 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7411 macros mentioned above.
7412
7413 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7414
7415 * cli/cli-decode.c (set_cmd_cfunc): Update.
7416 (set_cmd_sfunc): Update.
7417 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7418 (set_cmd_sfunc, set_cmd_cfunc): Update.
7419 * cli/cli-decode.h: Update.
7420
7421 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7422
7423 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7424 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7425
7426 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7427
7428 * defs.h (auto_boolean): Declare enum.
7429 * command.h (cmd_auto_boolean): Delete enum.
7430 * mips-tdep.c (mask_address_var): Update.
7431 (mips_mask_address_p): Update.
7432 (show_mask_address): Update.
7433 * remote.c (struct packet_config): Update.
7434 (update_packet_config): Update.
7435 (show_packet_config_cmd): Update.
7436 (packet_ok): Update.
7437 (add_packet_config_cmd): Update.
7438 (_initialize_remote):
7439 * command.h: Update.
7440 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7441 (do_setshow_command): Update.
7442 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7443 * cli/cli-decode.h: Update.
7444
7445 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7446
7447 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7448 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7449 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7450 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7451 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7452 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7453
7454 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7455 list of DJGPP COFF targets.
7456
7457 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7458 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7459 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7460 (FP0_REGNUM): Remove define.
7461 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7462 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7463 (i386_register_virtual_size): Remove protoype.
7464 * i386-tdep.c (i386_register_virtual_size): Removed.
7465 (i386_extract_return_value, i386_store_return_value): Use
7466 FP0_REGNUM instead of NUM_FREGS to determine whether the
7467 floating-point registers are available.
7468 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7469 Adjust for removal of macros mentioned above.
7470
7471 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7472
7473 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7474 comments.
7475 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7476 Remove prototypes.
7477 (supply_gregset, fill_gregset): Remove use of register keyword and
7478 remove declaration for regmap. Use I386_NUM_GREGS instead of
7479 NUM_REGS and NUM_FREGS.
7480 (FPREGSET_FSAVE_OFFSET): Remove.
7481 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7482 NUM_FREGS to determine whether the floating-point registers are
7483 available.
7484
7485 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7486 gnu_store_registers): Replace usage of NUM_GREGS with
7487 I386_NUM_GREGS.
7488
7489 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7490 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7491 usage of NUM_GREGS with I386_NUM_GREGS.
7492
7493 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7494
7495 * i386bsd-nat.c: Include "i386-tdep.h".
7496 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7497 I386_NUM_GREGS.
7498
7499 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7500 and associated comment. They no longer make any sense, since we
7501 don't use this file anymore on Linux.
7502
7503 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7504 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7505 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7506 elements in these arrays.
7507 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7508 MAX_NUM_REGS.
7509
7510 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7511
7512 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7513 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7514
7515 2002-06-14 Andrew Cagney <cagney@redhat.com>
7516
7517 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7518 EXTRACT_RETURN_VALUE.
7519 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7520 EXTRACT_STRUCT_VALUE_ADDRESS.
7521 * gdbarch.h, gdbarch.c: Regenerate.
7522
7523 * values.c (value_being_returned): Handle
7524 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7525 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7526
7527 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7528 * arm-tdep.c (arm_gdbarch_init): Update.
7529 * avr-tdep.c (avr_gdbarch_init): Update.
7530 * cris-tdep.c (cris_gdbarch_init): Update.
7531 * d10v-tdep.c (d10v_gdbarch_init): Update.
7532 * ia64-tdep.c (ia64_gdbarch_init): Update.
7533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7535 * s390-tdep.c (s390_gdbarch_init): Update.
7536 * sh-tdep.c (sh_gdbarch_init): Update.
7537 * s390-tdep.c (s390_gdbarch_init): Update.
7538 * sparc-tdep.c (sparc_gdbarch_init): Update.
7539 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7540 * v850-tdep.c (v850_gdbarch_init): Update.
7541 * vax-tdep.c (vax_gdbarch_init): Update.
7542 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7544
7545 * config/arc/tm-arc.h: Update.
7546 * config/d30v/tm-d30v.h: Update.
7547 * config/fr30/tm-fr30.h: Update.
7548 * config/h8300/tm-h8300.h: Update.
7549 * config/h8500/tm-h8500.h: Update.
7550 * config/i386/tm-i386.h: Update.
7551 * config/i386/tm-ptx.h: Update.
7552 * config/i386/tm-symmetry.h: Update.
7553 * config/i960/tm-i960.h: Update.
7554 * config/m32r/tm-m32r.h: Update.
7555 * config/m68k/tm-delta68.h: Update.
7556 * config/m68k/tm-linux.h: Update.
7557 * config/m68k/tm-m68k.h: Update.
7558 * config/m88k/tm-m88k.h: Update.
7559 * config/mcore/tm-mcore.h: Update.
7560 * config/mips/tm-mips.h: Update.
7561 * config/mn10200/tm-mn10200.h: Update.
7562 * config/pa/tm-hppa.h: Update.
7563 * config/pa/tm-hppa64.h: Update.
7564 * config/sparc/tm-sp64.h: Update.
7565 * config/sparc/tm-sparc.h: Update.
7566 * config/sparc/tm-sparclet.h: Update.
7567 * config/z8k/tm-z8k.h: Update.
7568
7569 2002-06-14 Andrew Cagney <cagney@redhat.com>
7570
7571 * Makefile.in (i386_linux_tdep_h): Define.
7572 (i386_tdep_h, i387_tdep_h): Define.
7573 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7574 $(i386_tdep_h) and $(i387_tdep_h).
7575 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7576
7577 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7578
7579 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7580 Already covered by the default.
7581
7582 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7583 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7584 (i386_gdbarch_init): Initialize long_double_format and long_double
7585 bit.
7586
7587 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7588 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7589 Move these to ...
7590 * config/i386/i386sol2.mh: ... here.
7591 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7592 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7593 (SIGCONTEXT_PC_OFFSET): Remove define.
7594 (IN_SIGTRAMP): Remove define.
7595 * i386-sol2-tdep.c: New file.
7596
7597 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7598 * config/i386/tm-i386nw.h: Removed.
7599
7600 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7601 USE_STRUCT_CONVENTION): Remove defines.
7602 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7603 (get_longjmp_target): Remove prototype.
7604 (IN_SIGTRAMP): Remove define.
7605 (i386bsd_in_sigtramp): Remove prototype.
7606 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7607 function. Update comment accordingly
7608 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7609 (FRAME_SAVED_PC): Remove define.
7610 (i386bsd_frame_saved_pc): Remove prototype.
7611 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7612 GET_LONGJMP_TARGET): Remove defines.
7613 (get_longjmp_target): Remove prototype.
7614 (IN_SIGTRAMP): Remove define.
7615 (i386bsd_in_sigtramp): Remove prototype.
7616 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7617 function. Update comment accordingly
7618 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7619 (FRAME_SAVED_PC): Remove define.
7620 (i386bsd_frame_saved_pc): Remove prototype.
7621 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7622 Remove prototype.
7623 (USE_STRUCT_CONVENTION): Remove prototype.
7624 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7625 declaration.
7626 (_initialize_i386bsd_nat): Revise logic to determine some
7627 constants at compile time when compiling a native GDB. Warn if
7628 things don't match up with what we expect.
7629 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7630 Remove variables.
7631 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7632 to use date stored in `struct gdbarch_tdep'.
7633 (i386bsd_sigcontext_offset): Remove varaible.
7634 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7635 stored in `struct gdbarch_tdep'.
7636 (i386bsd_frame_saved_pc): Make static.
7637 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7638 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7639 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7640 i386fbsd4_sc_pc_offset): New variables.
7641 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7642 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7643 functions.
7644 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7645 functions.
7646 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7647 Modify the value of i386fbsd_sigtramp_start and
7648 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7649 i386fbsd_sigtramp_end.
7650 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7651 function.
7652
7653 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7654 define to i386-linux-tdep.h.
7655 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7656 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7657 defines.
7658 (i386_linux_register_name, i386_linux_register_byte,
7659 i386_linux_register_raw_size): Remove prototypes.
7660 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7661 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7662 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7663 TARGET_WRITE_PC): Remove defines.
7664 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7665 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7666 i386_linux_write_pc): Remove prototypes.
7667 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7668 (get_longjmp_target): Remove prototype.
7669 * i386-linux-tdep.h: New file.
7670 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7671 * i386-linux-tdep.c: Include "i386-tdep.h" and
7672 "i386-linux-tdep.h".
7673 (i386_linux_register_name, i386_linux_register_byte,
7674 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7675 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7676 Make static.
7677 (i386_linux_init_abi): New function.
7678 (_initialize_i386_linux_tdep): New function.
7679
7680 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7681 (i386_saved_pc_after_call): Remove prototype.
7682 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7683 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7684 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7685 (i386_register_name, i386_stab_reg_to_regnum,
7686 i386_dwarf_reg_to_regnum): Remove prototypes.
7687 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7688 SIZEOF_SSE_REGS): Remove defines.
7689 (REGISTER_BYTES): Remove define.
7690 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7691 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7692 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7693 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7694 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7695 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7696 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7697 (get_longjmp_target): Remove prototype.
7698 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7699 (sigtramp_saved_pc): Remove define.
7700 (i386v4_sigtramp_saved_pc): Remove prototype.
7701 * config/i386/tm-go32.h (FRAME_CHAIN,
7702 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7703 (i386go32_frame_saved_pc): Remove prototype.
7704 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7705 (get_longjmp_target): Remove prototype.
7706 * i386-tdep.h: Include "osabi.h".
7707 (enum i386_abi): Removed.
7708 (enum struct_return): New enum.
7709 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7710 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7711 sc_pc_offset members.
7712 (i386_gdbarch_register_os_abi): Remove prototype.
7713 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7714 I386_SSE_NUM_REGS): New defines.
7715 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7716 I386_SSE_SIZEOF_REGS): New defines.
7717 (i386_register_name, i386_register_byte, i386_register_raw_size):
7718 New prototypes.
7719 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7720 (i386bsd_sigtramp_saved_pc): New prototype.
7721 * i386-tdep.c: Don't include "elf-bfd.h".
7722 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7723 i386_frame_chain, i386_saved_pc_after_call): Make static.
7724 (i386_frame_saved_pc): Rewrite to call architecture dependent
7725 function to deal with signal handlers. Make static.
7726 (i386go32_frame_saved_pc): Removed.
7727 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7728 Removed.
7729 (i386_get_longjmp_target): New function.
7730 (default_struct_convention, pcc_struct_convention,
7731 reg_struct_convention, valid_conventions, struct_convention): New
7732 variables.
7733 (i386_use_struct_convention): New function.
7734 (i386v4_sigtramp_saved_pc): Renamed to
7735 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7736 (i386_pc_in_sigtramp): New function.
7737 (i386_abi_names): Removed.
7738 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7739 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7740 Removed.
7741 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7742 i386_gdbarch_register_os_abi): Removed.
7743 (struct i386_abi_handler): Removed.
7744 (i386_abi_handler_list): Removed.
7745 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7746 functions.
7747 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7748 i386_nw_init_abi): New functions.
7749 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7750 Use set_gdbarch_xxx() calls instead of relying on macros for a
7751 number of calls.
7752 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7753 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7754 Register the various architecture variants defined in this file.
7755
7756 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7757
7758 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7759 (struct main_type): Remove arg_types member. Update comments for
7760 struct field.
7761 (TYPE_ARG_TYPES): Remove.
7762 (TYPE_FN_FIELD_ARGS): Update.
7763 (smash_to_method_type): Update prototype.
7764
7765 * c-typeprint.c (cp_type_print_method_args): Take method type
7766 instead of argument list. Use new argument layout. Simplify.
7767 (c_type_print_args): Use new argument layout. Simplify.
7768 (c_type_print_base): Update call to cp_type_print_method_args.
7769 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7770 argument; use die->type instead. Update call to
7771 smash_to_method_type.
7772 (read_structure_scope): Update call to dwarf2_add_member_fn.
7773 * gdbtypes.c (allocate_stub_method): Update comment.
7774 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7775 Use new argument layout.
7776 (check_stub_method): Use new argument layout. Don't count
7777 void as an argument.
7778 (print_arg_types): Update comments. Use new argument layout.
7779 (recursive_dump_type): Don't print arg_types member.
7780 * hpread.c (hpread_read_struct_type): Use new argument layout.
7781 (fixup_class_method_type): Likewise.
7782 (hpread_type_lookup): Likewise.
7783 * stabsread.c (read_type): Update calls to read_args and
7784 smash_to_method_type.
7785 (read_args): Use new argument layout. Simplify.
7786 * valops.c (typecmp): Use new argument layout. Update parameters
7787 and comments. Simplify.
7788 (hand_function_call): Use new argument layout.
7789 (search_struct_method): Update call to typecmp.
7790 (find_overload_match): Use new argument layout.
7791
7792 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7793
7794 * NEWS: Mention multithreaded debug support for gdbserver.
7795
7796 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7797
7798 * MAINTAINERS: Mention NEWS.
7799
7800 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7801
7802 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7803 (struct mips_objfile_private, compare_pdr_entries): New.
7804 (non_heuristic_proc_desc): Read the ".pdr" section if it
7805 is present.
7806
7807 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7808
7809 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7810 (arm_debug): New static variable.
7811 (_initialize_arm_tdep): Add ``set debug arm'' command.
7812
7813 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7814
7815 * Makefile.in (sim_arm_h): Define.
7816 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7817 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7818 (arm_register_sim_regno): New function, map an internal REGNUM
7819 onto a simulator register number.
7820 (arm_gdbarch_init): Set register_sim_regno.
7821
7822 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7823
7824 * MAINTAINERS: Add self.
7825
7826 2002-06-11 Jim Blandy <jimb@redhat.com>
7827
7828 * source.c (source_info): Mention whether the symtab has
7829 information about preprocessor macros.
7830
7831 Call the command `info macro', not `show macro'.
7832 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7833 Fix error message.
7834 (_initialize_macrocmd): Register `info_macro_command' in
7835 `infolist', not `showlist'.
7836
7837 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7838
7839 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7840 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7841 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7842 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7843 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7844 unconditionally.
7845 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7846 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7847 (_initialize_mips_tdep): Remove dead code.
7848 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7849 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7850 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7851 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7852 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7853 MIPS_LAST_FP_ARG_REGNUM): Remove.
7854
7855 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7856
7857 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7858 (unwind_tmp_obstack_free, parse_frame_info)
7859 (update_context, cfi_read_fp, cfi_write_fp)
7860 (cfi_frame_chain, cfi_init_extra_frame_info)
7861 (cfi_virtual_frame_pointer): Use the above function.
7862 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7863
7864 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7865
7866 * v850-tdep.c (v850_type_is_scalar): New function.
7867 (v850_use_struct_convention): Match current gcc implementation
7868 as close as possible.
7869 (v850_push_arguments): Fix stack_offset handling. Don't write
7870 struct_addr into register. This is done by v850_store_struct_return.
7871 (v850_extract_return_value): Care for structs.
7872 (v850_store_return_value): Ditto.
7873 (v850_store_struct_return): Actually write address.
7874
7875 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7876
7877 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7878 without debug information too.
7879
7880 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7881
7882 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7883 Make multi-arch pure.
7884 * gdbarch.h, gdbarch.c: Re-generate.
7885 * arm-tdep.c (arm_print_float_info): Update.
7886 * arch-utils.h (default_print_float_info): Update.
7887 * arch-utils.c (default_print_float_info): Update.
7888 * infcmd.c (float_info): Update call.
7889
7890 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7891
7892 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7893 the front of the initialize list.
7894
7895 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7896
7897 * infrun.c (struct inferior_status): Replace fields
7898 selected_frame_address and selected_level with field
7899 selected_frame_id.
7900 (save_inferior_status): Update. Use get_frame_id.
7901 (struct restore_selected_frame_args): Delete.
7902 (restore_selected_frame): Update. Use frame_find_by_id.
7903 (restore_inferior_status): Update.
7904
7905 * breakpoint.h (struct breakpoint): Change type of
7906 watchpoint_frame to frame_id.
7907 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7908 call to get_current_frame.
7909 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7910 get_current_frame.
7911 (watchpoint_check): Use frame_find_by_id.
7912
7913 * frame.h (record_selected_frame): Delete declaration.
7914 * stack.c (record_selected_frame): Delete function.
7915
7916 * frame.h (struct frame_id): Define.
7917 (get_frame_id): Declare.
7918 (frame_find_by_id): Declare.
7919 * frame.c (frame_find_by_id): New function.
7920 (get_frame_id): New function.
7921
7922 2002-06-10 Andrey Volkov <avolkov@transas.com>
7923
7924 * ser-e7kpc.c: Fix duplicated define and call of
7925 _initialize_ser_e7000pc
7926
7927 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7928
7929 * signals/signals.c (target_signal_from_host): Fix #ifdef
7930 SIGRTMIN case.
7931 (do_target_signal_to_host): Likewise.
7932
7933 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7934
7935 * mips-tdep.c (mips_find_abi_section): New function.
7936 (mips_gdbarch_init): Call it.
7937
7938 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7939
7940 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7941 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7942 after Andrew's 2002-06-08 gdbarch change.
7943
7944 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7945
7946 * i386-linux-nat.c (suppy_gregset): Don't supply
7947 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7948 register cache.
7949 (fill_gregset): Don't fetch it under the same circumstances.
7950
7951 2002-06-09 Andrew Cagney <cagney@redhat.com>
7952
7953 * Makefile.in (callback_h): Define.
7954 (remote_sim_h): Update path to remote-sim.h.
7955 (remote-rdp.o): Add $(callback_h).
7956 (remote-sim.o): Use $(callback_h).
7957 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7958 * remote-rdp.c: Include "gdb/callback.h".
7959
7960 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7961
7962 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7963 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7964
7965 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7966
7967 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7968 * rdi-share/serpardr.c: Ditto.
7969 * rdi-share/unixcomm.c: Ditto.
7970 * rdi-share/serdrv.c: Ditto.
7971 * rdi-share/hostchan.h: Ditto.
7972 * rdi-share/hostchan.c: Ditto.
7973 * rdi-share/host.h: Ditto.
7974 * rdi-share/devsw.c: Ditto.
7975
7976 * objfiles.h: Change type of obj_private to void pointer.
7977 * pa64solib.c: Update copyright. Don't include "assert.h", use
7978 strcmp instead of STREQ, use LONGEST, do not use PTR
7979 * somsolib.c: Ditto.
7980
7981 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7982 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7983 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7984
7985 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7986
7987 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7988 (default_get_saved_register): Delete function.
7989 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7990 generic_unwind_get_saved_register.
7991 * gdbarch.h, gdbarch.c: Re-generate.
7992
7993 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7994
7995 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7996 generic_func_frame_chain_valid.
7997 * gdbarch.h, gdbarch.c: Re-generate.
7998 * blockframe.c (generic_func_frame_chain_valid): Only check
7999 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8000 passing FP to PC_IN_CALL_DUMMY.
8001 Fix PR gdb/360.
8002
8003 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8004
8005 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8006 (register_gdbarch_data): Initialize init_p.
8007 (gdbarch_data): Initialize data pointer using the init function.
8008 (init_gdbarch_data): Delete function.
8009 (gdbarch_update_p): Update.
8010 (initialize_non_multiarch): Update.
8011 (struct gdbarch): Add field initialized_p.
8012 * gdbarch.h, gdbarch.c: Re-generate.
8013
8014 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8015
8016 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8017 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8018 better do the things actually here.
8019 * x86-64-tdep.c (x86_64_register_name2nr): New.
8020 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8021 (x86_64_gdbarch_init): Respect the above change.
8022 * x86-64-tdep.h (x86_64_register_name2nr)
8023 (x86_64_register_nr2name): Add prototypes.
8024 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8025
8026 2002-06-06 Michael Snyder <msnyder@redhat.com>
8027
8028 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8029 Delete extra braces and re-indent.
8030 (d10v_store_return_value): Char return values
8031 must be shifted over by one byte in R0.
8032 (d10v_extract_return_value): Delete extra braces, re-indent.
8033
8034 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8035
8036 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8037 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8038 (d10v_integer_to_address): Rewrite.
8039 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8040 the d10v specific functions which take care of converting to the
8041 correct space.
8042
8043 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8044
8045 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8046 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8047
8048 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8049
8050 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8051 includes.
8052 * config/tm-linux.h: Ditto.
8053 * config/alpha/tm-alphalinux.h: Ditto.
8054 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8055 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8056 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8057 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8058 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8059 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8060 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8061 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8062 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8063 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8064 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8065 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8066 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8067 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8068 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8069 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8070 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8071 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8072 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8073 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8074 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8075 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8076 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8077 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8078 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8079 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8080 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8081 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8082 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8083 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8084 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8085 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8086 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8087 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8088 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8089 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8090 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8091
8092 2002-05-04 Aidan Skinner <aidan@velvet.net>
8093
8094 * ada-exp.tab.c: New file
8095 * ada-exp.y: New file
8096 * ada-lang.c: New file
8097 * ada-lang.h: New file
8098 * ada-lex.c: New file
8099 * ada-lex.l: New file
8100 * ada-tasks.c: New file
8101 * ada-typeprint.c: New file
8102 * ada-valprint.c: New file
8103
8104 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8105
8106 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8107 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8108
8109 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8110
8111 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8112 insetead of ppc-linux-tdep.o.
8113 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8114 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8115
8116 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8117
8118 2002-05-07 Christian Groessler <chris@groessler.org>
8119 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8120 bit register contents for little endian hosts.
8121
8122 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8123
8124 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8125 any maintainer.
8126
8127 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8128
8129 * gdbarch.h: Regenerate.
8130
8131 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8132
8133 * MAINTAINERS: Add everyone to write-after-approval list.
8134
8135 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8136
8137 * stack.c (frame_info): Use frame_register_unwind instead of
8138 saved_regs. Mention when the SP is on the stack or in a register.
8139
8140 * frame.h (frame_register_unwind_ftype): Define. Document.
8141 (struct frame_info): Add field register_unwind and
8142 register_unwind_cache.
8143 (frame_register_unwind): Declare.
8144 (generic_unwind_get_saved_register): Declare.
8145
8146 * frame.c (frame_register_unwind): New function.
8147 (generic_unwind_get_saved_register): New function.
8148
8149 * blockframe.c (generic_call_dummy_register_unwind): New function.
8150 (frame_saved_regs_register_unwind): New function.
8151 (set_unwind_by_pc): New function.
8152 (create_new_frame): New function.
8153 (get_prev_frame): New function.
8154
8155 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8156
8157 * a29k-share/: Delete directory.
8158 * remote-vx29k.c: Delete file.
8159
8160 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8161
8162 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8163 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8164
8165 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8166
8167 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8168 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8169 (sparc64nbsd-nat.o)
8170 (sparcnbsd-nat.o)
8171 (sparcnbsd-tdep.o): New dependency lists.
8172 * NEWS: Note new UltraSPARC NetBSD native configuration.
8173 * configure.host (sparc64-*-netbsd*): New host.
8174 * configure.tgt (sparc-*-netbsdelf*)
8175 (sparc-*-netbsd*): Set gdb_target to nbsd.
8176 (sparc64-*-netbsd*): New target.
8177 * sparc64nbsd-nat.c: New file.
8178 * sparcnbsd-nat.c: New file.
8179 * sparcnbsd-tdep.c: New file.
8180 * sparcnbsd-tdep.h: New file.
8181 * config/sparc/nbsd.mt: New file.
8182 * config/sparc/nbsd64.mh: New file.
8183 * config/sparc/nbsd64.mt: New file.
8184 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8185 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8186 (HOST_IPC): Remove.
8187 * config/sparc/nbsdaout.mt: Remove.
8188 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8189 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8190 (HOST_IPC): Remove.
8191 * config/sparc/nbsdelf.mt: Remove.
8192 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8193 sparc-nat.c compatiblity defines.
8194 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8195 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8196 * config/sparc/tm-nbsd64.h: New file.
8197 * config/sparc/tm-nbsdaout.h: Remove.
8198 * config/sparc/xm-nbsd.h: Remove.
8199
8200 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8201
8202 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8203 * sparc-tdep.c: Include osabi.h.
8204 (gdbarch_tdep): Add osabi member.
8205 (_initialize_sparc_tdep): Use gdbarch_register.
8206 (sparc_gdbarch_init): Use generic OS ABI framework.
8207 (sparc_dump_tdep): New function.
8208
8209 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8210
8211 * corefile.c (do_captured_read_memory_integer): Return non-zero
8212 result.
8213 (safe_read_memory_integer): Copy result of memory read when
8214 status is non-zero. Also, add comments.
8215
8216 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8217
8218 * Makefile.in (ppc_tdep_h): Define.
8219 (ppc-linux-nat.o)
8220 (ppc-linux-tdep.o)
8221 (rs6000-tdep.o): Use $(ppc_tdep_h).
8222 (ppc-sysv-tdep.o)
8223 (ppcnbsd-nat.o)
8224 (ppcnbsd-tdep.o): New dependency lists.
8225 * ppc-tdep.h: Use generic OS ABI framework.
8226 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8227 (ppc_linux_init_abi): New functions.
8228 (ppc_sysv_abi_broken_use_struct_convention)
8229 (ppc_sysv_abi_use_struct_convention)
8230 (ppc_sysv_abi_push_arguments): Move to...
8231 * ppc-sysv-tdep.c: ...here.
8232 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8233 * rs6000-tdep.c (process_note_abi_tag_sections)
8234 (get_elfosabi): Remove.
8235 (rs6000_gdbarch_init): Use generic OS ABI framework.
8236 (rs6000_dump_tdep): New function.
8237 (_initialize_rs6000_tdep): Use gdbarch_register.
8238 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8239 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8240 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8241 of ppc-linux-tdep.o.
8242 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8243 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8244 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8245 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8246 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8247 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8248
8249 2002-05-29 Jim Blandy <jimb@redhat.com>
8250
8251 * macroscope.c (default_macro_scope): Put `void' in empty argument
8252 list.
8253
8254 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8255
8256 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8257 * arch-utils.c: Include "sim-regno.h".
8258 * gdbarch.sh: Don't include "sim-regno.h".
8259 * gdbarch.h, gdbarch.c: Regenerate.
8260 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8261 here.
8262 * arch-utils.h (legacy_register_sim_regno): To here.
8263 * remote-sim.c (legacy_register_sim_regno): Move function from
8264 here.
8265 * arch-utils.c (legacy_register_sim_regno): To here.
8266
8267 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8268
8269 * sim-regno.h: New file.
8270 * Makefile.in (sim_regno_h): Define.
8271 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8272 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8273 (legacy_register_sim_regno): New function.
8274 (one2one_register_sim_regno): New function.
8275 (gdbsim_fetch_register): Rewrite.
8276 (gdbsim_store_register): Only store a register when
8277 REGISTER_SIM_REGNO is valid.
8278 * d10v-tdep.c: Include "sim-regno.h".
8279 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8280 (d10v_ts3_register_sim_regno): Ditto.
8281 * gdbarch.sh: Include "sim-regno.h".
8282 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8283 * gdbarch.h, gdbarch.c: Regenerate.
8284 * arch-utils.h (default_register_sim_regno): Delete declaration.
8285 * arch-utils.c (default_register_sim_regno): Delete function.
8286
8287 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8288
8289 * ppcnbsd-nat.c: Rewrite.
8290 * ppcnbsd-tdep.c: New file.
8291 * ppcnbsd-tdep.h: New file.
8292 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8293 solib.o, and solib-svr4.o.
8294 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8295 nbsd-tdep.o, and corelow.o.
8296
8297 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8298
8299 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8300 `tr' and `sed'. Mention that `broken' targets are not expected to
8301 build.
8302
8303 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8304
8305 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8306 Let PC point right after the prologue before looking up symbols.
8307
8308 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8309
8310 * i386-tdep.c (i386_register_virtual_type): Return
8311 builtin_type_vec128i for SSE registers.
8312
8313 * gdbtypes.h (builtin_type_vec128i): Declare.
8314
8315 * gdbtypes.c (build_builtin_type_vec128i): New function.
8316 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8317 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8318 (build_gdbtypes): Initialize new builtin vector types.
8319 (_initialize_gdbtypes): Register new vector types with gdbarch.
8320
8321 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8322
8323 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8324 since it has been multi-arch'd.
8325 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8326 Move Alpha and VAX multi-arch news entries to same section
8327 as other multi-arch news.
8328
8329 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8330
8331 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8332 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8333 static. Rename some register numbers to put them in ns32k-tdep
8334 private namespace.
8335 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8336 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8337 functions.
8338 (_initialize_ns32k_tdep): Use gdbarch_register.
8339 * ns32k-tdep.h: New file.
8340 * ns32knbsd-tdep.c: New file.
8341 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8342 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8343 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8344 REGISTER_BYTES, REGISTER_BYTE): Remove.
8345 * config/ns32k/tm-ns32k.h: New file.
8346 * config/ns32k/tm-umax.h: Remove.
8347
8348 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8349
8350 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8351 ns32k_store_struct_return, ns32k_extract_return_value,
8352 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8353 functions.
8354 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8355 ns32k_saved_pc_after_call.
8356 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8357 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8358 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8359 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8360 ns32k_extract_struct_value_address.
8361
8362 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8363
8364 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8365 ns32k_fix_call_dummy): New.
8366 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8367 ns32k_call_dummy_words.
8368 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8369 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8370 CALL_DUMMY_NARGS): Remove.
8371 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8372
8373 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8374
8375 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8376 ns32k_frame_saved_pc, ns32k_frame_args_address,
8377 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8378 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8379 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8380 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8381 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8382 (BREAKPOINT): Remove..
8383 (FRAME_CHAIN): Define as ns32k_frame_chain.
8384 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8385 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8386 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8387 (FRAME_FIND_SAVED_REGS): Remove.
8388 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8389 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8390 (POP_FRAME): Define as ns32k_pop_frame.
8391
8392 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8393
8394 * ns32k-tdep.c (ns32k_register_byte_32082,
8395 ns32k_register_byte_32382, ns32k_register_raw_size,
8396 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8397 functions.
8398 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8399 ns32k_register_byte_32382.
8400 * config/ns32k/tm-umax.h: Update copyright years.
8401 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8402 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8403 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8404 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8405 (ns32k_get_enter_addr): Fix prototype.
8406
8407 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8408
8409 * ns32k-tdep.c: Update copyright years.
8410 (ns32k_register_name_32082): New function.
8411 (ns32k_register_name_32382): Ditto.
8412 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8413 (REGISTER_NAME): Define as ns32k_register_name_32382.
8414 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8415 (REGISTER_NAME): Define as ns32k_register_name_32082.
8416
8417 2002-05-24 Jim Blandy <jimb@redhat.com>
8418
8419 * dwarf2read.c (free_line_header): Use xfree, not free.
8420
8421 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8422
8423 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8424 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8425
8426 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8427
8428 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8429
8430 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8431
8432 From Ross Alexander at NEC Europe:
8433 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8434
8435 2002-05-23 Michael Snyder <msnyder@redhat.com>
8436
8437 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8438 for input, rather than parse_and_eval_address.
8439
8440 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8441
8442 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8443 * Makefile.in (sim_d10v_h): Update definition.
8444
8445 2002-05-24 Andrew Cagney <cagney@redhat.com>
8446
8447 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8448 change `2002-05-22 Michael Snyder' below.
8449 (d10v_push_arguments): Ditto.
8450 (d10v_extract_return_value): Ditto.
8451
8452 2002-05-23 Jim Blandy <jimb@redhat.com>
8453
8454 * macrotab.c (check_for_redefinition): Don't complain if the new
8455 definition is the same as the previous one. Take more arguments
8456 to allow the comparison.
8457 (macro_define_object, macro_define_function): Pass more arguments
8458 to check_for_redefinition.
8459
8460 2002-05-22 Michael Snyder <msnyder@redhat.com>
8461
8462 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8463 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8464 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8465 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8466 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8467 Add a temp variable to save a call (and a memory read).
8468 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8469 if possible (so that PC_IN_CALL_DUMMY will work).
8470
8471 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8472
8473 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8474
8475 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8476
8477 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8478 fde->cie_ptr.
8479 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8480 (dwarf2_build_frame_info): Add offset to fde->initial_location
8481 so that frames of shared libraries are mapped correctly.
8482 (execute_stack_op): Change type of 'result' from ULONGEST to
8483 CORE_ADDR.
8484
8485 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8486
8487 * config/alpha/tm-nbsd.h: Include solib.h.
8488
8489 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8490
8491 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8492 assumptions about the host's byte order.
8493
8494 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8495
8496 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8497 to dependency list.
8498 * alphanbsd-tdep.c: Include solib-svr4.h.
8499 * shnbsd-tdep.c: Ditto.
8500
8501 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8502
8503 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8504 nbsd-tdep.h to dependency list.
8505 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8506 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8507 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8508 nbsdaout.mh and nbsdelf.mh consistently.
8509 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8510 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8511 nbsdaout.mt and nbsdelf.mh consistently.
8512 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8513 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8514 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8515 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8516 a.out shared library stuff from here...
8517 * config/nm-nbsdaout.h: ...to here.
8518 * config/tm-nbsd.h: Remove.
8519 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8520 * config/arm/nbsd.mh: Remove.
8521 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8522 nbsd-tdep.o.
8523 * config/arm/nbsdaout.mh: New file.
8524 * config/arm/nbsdelf.mh: New file.
8525 * config/arm/nm-nbsdaout.h: New file.
8526 * config/i386/nbsd.mh: Remove.
8527 * config/i386/nbsd.mt: Remove.
8528 * config/i386/nbsdaout.mh: New file.
8529 * config/i386/nbsdaout.mt: New file.
8530 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8531 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8532 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8533 i386_register_u_addr): Remove.
8534 * config/i386/nm-nbsdaout.h: New file.
8535 * config/i386/nm-nbsdelf.h: Remove.
8536 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8537 (USE_STRUCT_CONVENTION): Remove.
8538 * config/i386/tm-nbsdaout.h: New file.
8539 * config/i386/tm-nbsdelf.h: Remove.
8540 * config/m68k/nbsd.mh: Remove.
8541 * config/m68k/nbsd.mt: Remove.
8542 * config/m68k/nbsdaout.mh: New file.
8543 * config/m68k/nbsdaout.mt: New file.
8544 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8545 * config/m68k/nm-nbsdaout.h: New file.
8546 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8547 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8548 * config/ns32k/nbsd.mh: Remove.
8549 * config/ns32k/nbsd.mt: Remove.
8550 * config/ns32k/nbsdaout.mh: New file.
8551 * config/ns32k/nbsdaout.mt: New file.
8552 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8553 * config/ns32k/nm-nbsdaout.h: New file.
8554 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8555 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8556 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8557 (SVR4_SHARED_LIBS): Remove.
8558 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8559 * config/sparc/nbsd.mh: Remove.
8560 * config/sparc/nbsd.mt: Remove.
8561 * config/sparc/nbsdaout.mh: New file.
8562 * config/sparc/nbsdaout.mt: New file.
8563 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8564 * config/sparc/nbsdelf.mt: New file.
8565 * config/sparc/nm-nbsdaout.h: New file.
8566 * config/sparc/nm-nbsdelf.h: Remove.
8567 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8568 * config/sparc/tm-nbsdaout.h: New file.
8569
8570 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8571
8572 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8573 mipsnbsd-tdep.c
8574 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8575
8576 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8577
8578 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8579 shnbsd-nat.c.
8580 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8581
8582 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8583
8584 * NEWS: Note new MIPS NetBSD native configuration.
8585 * configure.host (mips*-*-netbsd*): New host.
8586 * configure.tgt (mips*-*-netbsd*): New target.
8587 * mipsnbsd-nat.c: New file.
8588 * mipsnbsd-tdep.c: New file.
8589 * mipsnbsd-tdep.h: New file.
8590 * config/mips/nbsd.mh: New file.
8591 * config/mips/nbsd.mt: New file.
8592 * config/mips/nm-nbsd.h: New file.
8593 * config/mips/tm-nbsd.h: New file.
8594
8595 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8596
8597 * Makefile.in (SFILES): Add osabi.c.
8598 (COMMON_OBS): Add osabi.o.
8599 (osabi.o): New dependency list.
8600 * osabi.c: New file.
8601 * osabi.h: New file.
8602 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8603
8604 * Makefile.in (alpha_tdep_h): Define and use instead of
8605 alpha-tdep.h.
8606 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8607 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8608 Remove.
8609 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8610 * alpha-tdep.h: Include osabi.h.
8611 (alpha_abi): Remove.
8612 (gdbarch_tdep): Use generic OS ABI framework.
8613 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8614 gdbarch_register_osabi.
8615 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8616 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8617 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8618
8619 * Makefile.in (sh_tdep_h): Add osabi.h.
8620 * sh-tdep.h (sh_osabi): Remove.
8621 (gdbarch_tdep): Use generic OS ABI framework.
8622 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8623 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8624 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8625 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8626
8627 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8628 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8629 gdbarch_register_osabi.
8630 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8631 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8632 (get_elfosabi): Rename to...
8633 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8634 ABI framework support routines.
8635 (arm_gdbarch_init): Use generic OS ABI framework.
8636 (arm_dump_tdep): Likewise.
8637 (_initialize_arm_tdep): Likewise.
8638 * arm-tdep.h: Include osabi.h.
8639 (arm_abi): Remove.
8640 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8641 osabi member.
8642 (arm_gdbarch_register_os_abi): Remove prototype.
8643 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8644 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8645
8646 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8647 * mips-tdep.c: Include osabi.h.
8648 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8649 OS ABI framework.
8650
8651 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8652
8653 * h8300-tdep.c: Fix formatting.
8654
8655 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8656
8657 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8658 printing vector registers.
8659
8660 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8661
8662 From Fernando Nasser:
8663 * remote.c (remote_async_open_1): Re-throw the exception when the
8664 connection fails.
8665 (remote_cisco_open): Ditto.
8666 (remote_open_1): Ditto.
8667
8668 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8669
8670 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8671 (remote_start_remote): Add uiout parameter. Pass through to
8672 remote_start_remote_dummy.
8673 (remote_open_1): Use catch_exception instead of catch_errors.
8674 (remote_async_open_1): Ditto.
8675 (remote_cisco_open): Ditto.
8676
8677 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8678
8679 * remote.c (remote_start_remote): Replace PTR with void pointer.
8680 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8681 static.
8682
8683 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8684
8685 * gdb_indent.sh: Allow the script to be run in the sim directory.
8686
8687 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8688
8689 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8690 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8691
8692 * corelow.c (core_open): Only call set_gdbarch_from_file if
8693 exec_bfd is NULL.
8694
8695 2002-05-17 Andrey Volkov <avolkov@transas.com>
8696
8697 * h8300-tdep.c: Add support of EXR register
8698 * config/h8300/tm-h8300.h: Ditto.
8699
8700 2002-05-17 Andrey Volkov <avolkov@transas.com>
8701
8702 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8703
8704 2002-05-17 Andrey Volkov <avolkov@transas.com>
8705
8706 * h8300-tdep.c: Change literal regnums to REGNO.
8707
8708 2002-05-17 Jim Blandy <jimb@redhat.com>
8709
8710 * NEWS: Note addition of macro support.
8711
8712 Expand preprocessor macros in C expressions.
8713 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8714 (scan_macro_expansion, scanning_macro_expansion,
8715 finished_macro_expansion): New function declarations.
8716 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8717 variable declarations.
8718 * parser-defs.h (expression_context_pc): New declaration.
8719 * parse.c (expression_context_pc): New variable.
8720 (parse_exp_1): Set expression_context_pc, as well as
8721 expression_context_block.
8722 * c-exp.y (yylex): If we're not already reading the result of a
8723 macro expansion, try to macro-expand the next token. When we're
8724 done scanning a macro expansion, switch back to the mainline text.
8725 Commas and `if's in a macro's expansion don't terminate the input.
8726 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8727 (macro_original_text, macro_expanded_text,
8728 expression_macro_lookup_func, expression_macro_lookup_baton): New
8729 variables.
8730 (scan_macro_expansion, scanning_macro_expansion,
8731 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8732 c_preprocess_and_parse): New functions.
8733 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8734 c_preprocess_and_parse, instead of c_parse.
8735 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8736 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8737
8738 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8739
8740 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8741 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8742 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8743
8744 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8745
8746 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8747
8748 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8749
8750 * Makefile.in (sh_tdep_h): Define and use.
8751 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8752 register enum): Move to...
8753 * * sh-tdep.h: ...here.
8754 * sh-tdep.c: Include sh-tdep.h.
8755 * sh3-rom.c: Likewise.
8756 * shnbsd-tdep.c: Likewise.
8757
8758 2002-05-16 Michael Snyder <msnyder@redhat.com>
8759
8760 * arm-tdep.c: Spelling fix in comment.
8761
8762 2002-05-16 Jim Blandy <jimb@redhat.com>
8763
8764 Add commands for manually expanding macros and showing their
8765 definitions.
8766 * macrocmd.c, macroscope.c, macroscope.h: New files.
8767 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8768 (macroscope_h): New variable.
8769 (HFILES_NO_SRCDIR): Add macroscope.h.
8770 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8771 (macroscope.o, macrocmd.o): New rules.
8772
8773 Teach the Dwarf 2 reader to read macro information.
8774 * dwarf2read.c: #include "macrotab.h".
8775 (dwarf_macinfo_buffer): New variable.
8776 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8777 dwarf_macinfo_size.
8778 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8779 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8780 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8781 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8782 dwarf2_macro_spaces_in_definition): New complaints.
8783 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8784 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8785 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8786 the partial symbol table.
8787 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8788 from what's recorded in the partial symbol table.
8789 (read_file_scope): If the compilation unit has a
8790 `DW_AT_macro_info' attribute, read its macro information.
8791 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8792
8793 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8794
8795 Fix PR gdb/546
8796 * ser-tcp.c: Don't include <netinet/udp.h>.
8797
8798 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8799
8800 * MAINTAINERS: Update my email address.
8801
8802 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8803
8804 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8805 include file of the same name.
8806
8807 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8808
8809 * configure.tgt: Mark v850 as multi-arched.
8810 * config/v850/tm-v850.h: Remove file.
8811 * config/v850/v850.mt: Eliminate TM_FILE.
8812
8813 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8814
8815 * v850-tdep.c: Full multi-arch.
8816 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8817 Define GDB_MULTI_ARCH to 2.
8818
8819 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8820
8821 * p-exp.y (current_type): New static variable.
8822 Carries the type of the expression at the position that is parsed.
8823 (push_current_type, pop_current_type): Two new functions. Used
8824 to store/restore current_type in expression on specific tokens.
8825 (search_field): New static variable. Set to one after parsing a point
8826 as at that point only a FIELDNAME token should be searched.
8827 (FIELDNAME): New token. After a point only a token belonging to
8828 current_type type definition is allowed.
8829 (all over token rules): reset and change current_type according
8830 to rules.
8831 (exp '[' rule): insert implicit array index field if
8832 exp is a pascal string type.
8833
8834 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8835
8836 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8837 frame info. Use frame_info's saved_regs instead of matching member
8838 in extra_frame_info throughout.
8839 (v850_frame_init_saved_regs): New function.
8840 (v850_init_extra_frame_info): Move most functionality into
8841 v850_frame_init_saved_regs().
8842 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8843 (v850_frame_find_saved_regs): Remove declaration.
8844 (FRAME_FIND_SAVED_REGS): Remove definition.
8845 (v850_frame_init_saved_regs): Add declaration.
8846 (FRAME_INIT_SAVED_REGS): Add definition.
8847
8848 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8849
8850 * v850-tdep.c: Begin multi-arch'ing v850.
8851 (v850_target_architecture_hook): Remove function.
8852 (v850_gdbarch_init): New function. Add code previously in
8853 v850_target_architecture_hook().
8854 (_initialize_v850_tdep): Don't set target_architecture_hook.
8855 Call register_gdbarch_init() instead.
8856
8857 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8858
8859 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8860 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8861 (fixup_class_method_type): Likewise.
8862
8863 2002-05-15 Jim Blandy <jimb@redhat.com>
8864
8865 Add macro structures to GDB's symbol tables. Nobody puts anything
8866 in them yet.
8867 * symtab.h (struct symtab): New member: `macro_table'.
8868 * buildsym.h (pending_macros): New global variable.
8869 * buildsym.c: #include "macrotab.h".
8870 (buildsym_init): Initialize `pending_macros'.
8871 (end_symtab): If we found macro information while reading a CU's
8872 debugging info, do build a symtab structure for it. Make the
8873 symtab point to the macro information, and clear the
8874 `pending_macros' pointer which held it while we were reading the
8875 debug info.
8876 (really_free_pendings): Free any pending macro table.
8877 * objfiles.h (struct objfile): New member: `macro_cache'.
8878 * objfiles.c (allocate_objfile): Set allocate and free functions
8879 for the macro cache's objstack.
8880 (free_objfile): Empty the macro cache's obstack.
8881 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8882 set new allocate and free functions for it.
8883 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8884 free functions for the macro cache's objstack. (Why is this
8885 function building its own objfile?)
8886 * symmisc.c (print_objfile_statistics): Print statistics on the
8887 macro bcache.
8888 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8889
8890 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8891
8892 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8893 (REGISTER_U_ADDR): Delete definition.
8894 (arm_register_u_addr): Delete declaration.
8895
8896 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8897
8898 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8899 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8900
8901 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8902
8903 * regcache.c (register_valid): Revise comments refering to "Not
8904 available" and "unavailable".
8905 * frame.c (frame_register_read): Ditto.
8906 * findvar.c (value_of_register): Ditto.
8907
8908 2002-05-15 Andrew Cagney <cagney@redhat.com>
8909
8910 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8911 (remote-sim.o): Update dependencies.
8912 (d10v-tdep.o): Specify dependencies.
8913 (sim_d10v_h): Define.
8914
8915 2002-05-14 Jim Blandy <jimb@redhat.com>
8916
8917 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8918 * macrotab.c (macro_lookup_inclusion, find_definition,
8919 new_macro_table): Same.
8920
8921 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8922 not `! strcmp ()'. This is a dubious improvement.
8923 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8924
8925 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8926 although it's not necessary, to avoid a warning.
8927
8928 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8929
8930 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8931 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8932 TYPE_INSTANCE_FLAGS.
8933 (struct main_type): New.
8934 (struct type): Move most members to struct main_type. Change
8935 cv_type and as_type to new type_chain member. Add instance_flags.
8936 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8937 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8938 (finish_cv_type): Remove prototype.
8939 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8940 Set TYPE_CHAIN.
8941 (alloc_type_instance): New function.
8942 (smash_type): New function.
8943 (make_pointer_type, make_reference_type, make_function_type)
8944 (smash_to_member_type, smash_to_method_type): Call smash_type.
8945 (make_qualified_type): New function.
8946 (make_type_with_address_space): Call make_qualified_type.
8947 (make_cv_type): Likewise.
8948 (finish_cv_type): Remove unnecessary function.
8949 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8950 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8951 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8952 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8953 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8954 * hpread.c (hpread_read_struct_type): Likewise.
8955 * stabsread.c (read_struct_type): Likewise.
8956
8957 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8958
8959 * configure.tgt: Add a catch all sh* target, for cases like
8960 sh[2,3,4]-elf and sh-hms.
8961
8962 2002-05-14 Keith Seitz <keiths@redhat.com>
8963
8964 * event-loop.c (create_file_handler): Don't do anything but
8965 update data when we are given a fd which we are already
8966 monitoring.
8967
8968 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8969
8970 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8971 (update_context): Use __func__ in warnings.
8972
8973 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8974
8975 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8976 and tcp_close to net_open and net_close.
8977 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8978 using UDP if requested. Don't try to disable Nagle on UDP
8979 sockets.
8980 * remote.c (remote_serial_open): New function. Warn about UDP.
8981 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8982
8983 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8984
8985 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8986
8987 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8988
8989 * configure.tgt: Remove sh-hms target.
8990 * MAINTAINERS: Don't list sh-hms as a separate target.
8991
8992 2002-05-13 Jim Blandy <jimb@redhat.com>
8993
8994 Add first preprocessor macro-expansion files.
8995 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8996 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8997 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8998 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8999 (COMMON_OBS): Add macrotab.o, macroexp.o.
9000 (macroexp.o, macrotab.o): New rules.
9001
9002 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9003
9004 * config/m88k/tm-m88k.h: Update copyright.
9005 (m88k_target_write_pc): Declare
9006 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9007 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9008 (SHIFT_INST_REGS): Update definition.
9009 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9010 using old definition of TARGET_WRITE_PC.
9011 * regcache.c (generic_target_write_pc): Delete code handling
9012 NNPC_REGNUM.
9013 * gdbarch.sh (NNPC_REGNUM): Delete.
9014 * gdbarch.h, gdbarch.c: Regenerate.
9015
9016 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9017
9018 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9019 builtin reg number.
9020
9021 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9022
9023 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9024 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9025 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9026 access macros.
9027 * c-typeprint.c (cp_type_print_method_args): Likewise.
9028 (c_type_print_args): Likewise.
9029 * d10v-tdep.c (d10v_push_arguments): Likewise.
9030 (d10v_extract_return_value): Likewise.
9031 * expprint.c (print_subexp): Likewise.
9032 * gdbtypes.c (lookup_primitive_typename): Likewise.
9033 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9034 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9035 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9036 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9037 (TYPE_VECTOR): Likewise.
9038 * hpread.c (hpread_read_struct_type)
9039 (fix_static_member_physnames, fixup_class_method_type)
9040 (hpread_type_lookup): Likewise.
9041 * mdebugread.c (parse_symbol, parse_type): Likewise.
9042 * p-lang.c (is_pascal_string_type): Likewise.
9043 * valops.c (hand_function_call): Likewise.
9044 * x86-64-tdep.c (classify_argument): Likewise.
9045
9046 * hpread.c (hpread_read_function_type)
9047 (hpread_read_doc_function_type): Call replace_type.
9048 * dstread.c (create_new_type): Delete.
9049 (decode_dst_structure, process_dst_function): Call alloc_type.
9050 Use type access macros.
9051
9052 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9053
9054 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9055 the're not supported by the current architecture.
9056 (i387_fill_fxsave): Likewise.
9057
9058 2002-05-12 Fred Fish <fnf@redhat.com>
9059
9060 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9061 sect_index_xxx members to index the first slot in section_offsets
9062 if all of the section_offsets are zero.
9063
9064 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9065
9066 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9067 checked in with last change.
9068
9069 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9070
9071 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9072 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9073 config.sub.
9074
9075 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9076
9077 * Makefile.in: Update dependencies.
9078
9079 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9080
9081 * language.c (local_hex_string_custom): Simplify. Do not depend
9082 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9083
9084 * memattr.c (mem_info_command): Replace calls to
9085 longest_local_hex_string and longest_local_hex_string_custom.
9086 * buildsym.c (make_blockvector): Ditto.
9087 * solib.c (info_sharedlibrary_command): Ditto.
9088 * tracepoint.c (tracepoints_info): Ditto.
9089 * symtab.c (print_msymbol_info): Ditto.
9090
9091 * language.c (local_hex_string): Delete.
9092 (local_hex_string_custom): Delete.
9093 (longest_local_hex_string): Rename to local_hex_string.
9094 (longest_local_hex_string_custom): Rename to
9095 local_hex_string_custom.
9096 * language.h (local_hex_string): Change parameter type to LONGEST.
9097 (local_hex_string_custom): Ditto.
9098 (longest_local_hex_string): Delete declaration.
9099 (longest_local_hex_string_custom): Ditto.
9100
9101 * solib.c: Update copyright.
9102 * memattr.c: Update copyright.
9103
9104 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9105
9106 * arch-utils.h (legacy_register_to_value): Declare.
9107 (legacy_value_to_register): Declare.
9108 (legacy_convert_register_p): Declare.
9109 * arch-utils.c (legacy_register_to_value): New function.
9110 (legacy_value_to_register): New function.
9111 (legacy_convert_register_p): New function.
9112
9113 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9114 (VALUE_TO_REGISTER): Define.
9115 (CONVERT_REGISTER_P): Define.
9116 * gdbarch.h, gdbarch.c: Regenerate.
9117
9118 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9119 VALUE_TO_REGISTER.
9120 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9121 CONVERT_REGISTER_P.
9122
9123 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9124 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9125
9126 * Makefile.in: Update dependencies for valops.c.
9127 * valops.c: Include "gdb_assert.h".
9128 (typecmp): Skip THIS parameter to methods.
9129 (find_method_list): Remove static_memfuncp argument,
9130 update callers. Check for stub methods.
9131 (find_value_oload_method_list): Don't set *static_memfuncp.
9132 (find_overload_match): Don't check for stub methods. Assert
9133 that methods are not stubbed. Handle static methods.
9134 (value_find_oload_method_list): Remove static_memfuncp argument.
9135 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9136 to the argument list for static stub methods.
9137 * value.h (value_find_oload_method_list): Update prototype.
9138
9139 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9140
9141 * arch-utils.h (generic_register_size): Declare.
9142 (generic_register_raw_size, generic_register_virtual_size): Delete
9143 declarations.
9144 * arch-utils.c (generic_register_raw_size): Delete.
9145 (generic_register_size): New function.
9146 (generic_register_virtual_size): Delete.
9147
9148 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9149 default generic_register_size.
9150 * gdbarch.h, gdbarch.c: Re-generate.
9151
9152 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9153 register_virtual_size.
9154 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9155 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9156
9157 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9158
9159 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9160 * gdbarch.h, gdbarch.c: Regenerate.
9161 * gnu-v3-abi.c: Update copyright.
9162 (vtable_address_point_offset): Update.
9163 (gnuv3_rtti_type): Update.
9164 (gnuv3_baseclass_offset): Update.
9165 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9166 (init_fetch_link_map_offsets): Update.
9167 * remote.c (get_remote_state): Update.
9168
9169 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * TODO: Remove value_headof/value_from_vtable_info comment.
9172 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9173 * values.c (value_headof, value_from_vtable_info): Delete.
9174 * value.h (value_from_vtable_info): Delete prototype.
9175
9176 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9177
9178 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9179 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9180 $(gdb_regex_h).
9181 (gdb_assert_h): Define.
9182 (gdb_wait_h): Define.
9183 (gdb_regex_h): Define.
9184
9185 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9186
9187 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9188 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9189
9190 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9191
9192 * nbsd-tdep.c: Fix comment.
9193
9194 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9195
9196 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9197 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9198 (nbsd-tdep.o): New dependency list.
9199 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9200 nbsd-tdep.h.
9201 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9202 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9203 * nbsd-tdep.c: New file.
9204 * nbsd-tdep.h: New file.
9205 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9206 nbsd-tdep.h.
9207 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9208 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9209 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9210 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9211
9212 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9213
9214 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9215 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9216 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9217 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9218 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9219 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9220
9221 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9222
9223 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9224 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9225 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9226 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9227 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9228 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9229 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9230
9231 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9232
9233 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9234 fetch_elfcore_registers to...
9235 * i386nbsd-tdep.c: ...here.
9236 (i386nbsd_use_struct_convention): Rename to...
9237 (i386nbsd_aout_use_struct_convention): ...this.
9238 (i386nbsd_supply_reg): New function.
9239 (i386nbsd_fill_reg): New function.
9240 (fetch_core_registers): Use i386nbsd_supply_reg.
9241 (fetch_elfcore_registers): Likewise.
9242 (_initialize_i386nbsd_tdep): New function.
9243 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9244 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9245 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9246 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9247 (i386nbsd_aout_use_struct_convention): ...this.
9248
9249 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9250
9251 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9252 (store_inferior_registers): Use shnbsd_fill_reg.
9253 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9254 sh_nbsd_supply_register): Collapse into...
9255 (shnbsd_supply_reg): ...this.
9256 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9257 (shnbsd_fill_reg): ...this.
9258 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9259 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9260 (fetch_core_registers): Use shnbsd_supply_reg.
9261 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9262 (sh_nbsd_core_fns): Rename to...
9263 (shnbsd_core_fns): ...this.
9264 (sh_nbsd_elfcore_fns): Rename to...
9265 (shnbsd_elfcore_fns): ...this.
9266 (sh_nbsd_init_abi): Rename to...
9267 (shnbsd_init_abi): ...this.
9268 (_initialize_sh_nbsd_tdep): Rename to...
9269 (_initialize_shnbsd_tdep): ...this.
9270 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9271 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9272 sh_nbsd_fill_register): Remove prototypes.
9273 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9274
9275 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9276
9277 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9278 (i387-nat.o): Delete dependency list.
9279 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9280 (x86-64-linux-nat.o): Likewise.
9281 * i387-nat.c: Delete file, moving contents to...
9282 * i387-tdep.c: ...here.
9283 * i387-nat.h: Rename...
9284 * i387-tdep.h: ...to this.
9285 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9286 * i386-linux-nat.c: Likewise.
9287 * i386bsd-nat.c: Likewise.
9288 * i386gnu-nat.c: Likewise.
9289 * i386nbsd-nat.c: Likewise.
9290 * i386v4-nat.c: Likewise.
9291 * x86-64-linux-nat.c: Likewise.
9292 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9293 * config/i386/go32.mh (NATDEPFILES): Likewise.
9294 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9295 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9296 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9297 * config/i386/linux.mh (NATDEPFILES): Likewise.
9298 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9299 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9300 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9301 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9302
9303 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9304
9305 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9306 (alphanbsd-nat.o): Remove dependency list.
9307 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9308 * alphanbsd-nat.c: Delete. Contents moved to...
9309 * alphanbsd-tdep.c: ...here.
9310 (_initialize_alphanbsd_tdep): Register core functions.
9311 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9312
9313 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9314
9315 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9316 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9317 (alphanbsd-nat.o): Likewise.
9318 (alphabsd-tdep.o): New dependency list.
9319 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9320 (fill_gregset): Use alphabsd_fill_reg.
9321 (supply_fpregset): Use alphabsd_supply_fpreg.
9322 (fill_fpregset): Use alphabsd_fill_fpreg.
9323 (fetch_inferior_registers): Use struct reg and struct fpreg
9324 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9325 and alphabsd_supply_fpreg.
9326 (store_inferior_registers): Use struct reg and struct fpreg
9327 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9328 and alphabsd_fill_fpreg.
9329 * alphabsd-tdep.c: New file.
9330 * alphabsd-tdep.h: New file.
9331 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9332 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9333 alphabsd_supply_fpreg.
9334 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9335 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9336
9337 2002-05-11 Eric Christopher <echristo@redhat.com>
9338
9339 * mips-tdep.c (mips_double_register_type): Fix thinko.
9340 (mips_single_register_type): Ditto.
9341 * MAINTAINERS: Add self.
9342
9343 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9344
9345 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9346 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9347 right thing on architectures with different endianness and/or
9348 integer sizes.
9349
9350 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9351
9352 From Christian Limpach <chris@Pin.LU>
9353 * configure.in: Change sed expression which comments out
9354 NATDEPFILES to also comment out continuation lines.
9355 * configure: Regenerate.
9356
9357 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9358
9359 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9360 big patch.
9361
9362 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9363
9364 * sh-tdep.c: Include correct file.
9365
9366 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9367
9368 New support for sh64-elf (sh5) target.
9369
9370 * configure.tgt: For sh64-elf target, default to sh-elf.
9371
9372 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9373 (struct gdbarch_tdep): Add new fields for new registers and ABI
9374 info.
9375
9376 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9377 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9378 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9379 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9380 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9381 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9382 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9383 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9384 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9385 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9386 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9387 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9388 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9389 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9390 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9391 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9392 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9393 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9394 sign_extend, sh64_nofp_frame_init_saved_regs,
9395 sh64_init_extra_frame_info, sh64_get_saved_register,
9396 sh64_extract_struct_value_address, sh64_pop_frame,
9397 sh64_push_arguments, sh64_extract_return_value,
9398 sh64_store_return_value, sh64_show_media_regs,
9399 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9400 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9401 sh_sh64_register_virtual_type,
9402 sh_sh64_register_convert_to_virtual,
9403 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9404 sh64_register_read, sh64_pseudo_register_write,
9405 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9406 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9407 sh64_do_pseudo_register, sh_compact_do_registers_info,
9408 sh64_do_registers_info, sh_gdbarch_init): New functions.
9409
9410 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9411
9412 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9413
9414 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9415
9416 * linespec.c (decode_line_1): Check for a double quote after
9417 a filename correctly.
9418
9419 2002-05-10 Jim Blandy <jimb@redhat.com>
9420
9421 Properly track the size of the current objfile's .debug_line section.
9422 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9423 (DWARF_LINE_SIZE): New macro.
9424 (dwarf2_build_psymtabs_hard): Record the line section's size in
9425 the partial symbol table.
9426 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9427 symbol table.
9428
9429 2002-05-10 Petr Sorfa <petrs@caldera.com>
9430
9431 * ia64-tdep.c: Handle breakpoints on L instruction type
9432 in MLX instruction bundle by moving the breakpoint to
9433 the third slot (X instruction type) as L holds only data.
9434
9435 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9436
9437 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9438 (process_one_symbol): Complain about discarding local symbols
9439 due to a misplaced N_LBRAC entry.
9440
9441 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9442
9443 From Daniel Berlin <dan@cgsoftware.com>
9444 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9445 decrease the depth we are at, in the case of templates.
9446
9447 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * mips-tdep.c (mips_float_register_type): New function.
9450 (mips_double_register_type): New function.
9451 (mips_print_register): Use them.
9452 (do_fp_register_row): Likewise.
9453
9454 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9455
9456 * signals/signals.c (signals): Remove conditional compilation around
9457 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9458 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9459
9460 2002-05-09 Michael Snyder <msnyder@redhat.com>
9461
9462 * remote-rdp.c (remote_rdp_can_run): Remove.
9463
9464 2002-05-09 Tom Tromey <tromey@redhat.com>
9465
9466 * jv-valprint.c (java_val_print): Handle `char' as a special case
9467 of TYPE_CODE_INT.
9468
9469 2002-05-09 Michael Snyder <msnyder@redhat.com>
9470
9471 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9472 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9473 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9474 str r(0123),[sp,#nn].
9475 (arm_skip_prologue): Ditto. Also make disassembly
9476 order-independent by placing it in a loop.
9477
9478 2002-05-06 Michael Snyder <msnyder@redhat.com>
9479
9480 * stabsread.c (read_type): Add recognition for new attribute:
9481 "@V;" means that an array type is actually a vector.
9482 This is analogous to the vector flag that's been added to dwarf2.
9483
9484 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9485
9486 * i386-tdep.h (i386_abi): New enum.
9487 (struct gdbarch_tdep): Replace os_ident member with abi.
9488 (i386_gdbarch_register_os_abi): New prototype.
9489 * i386-tdep.c (i386_abi_names): New array.
9490 (process_note_abi_tag_sections): Removed.
9491 (process_note_sections): New function.
9492 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9493 (struct i386_abi_handler): New struct.
9494 (i386_abi_handler_list): New variable.
9495 (i386_gdbarch_register_os_abi): New function.
9496 (i386_gdbarch_init): Adapt for the changes given above.
9497
9498 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9499
9500 * gregset.h: Say "GNU/Linux".
9501
9502 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9503
9504 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9505 (build_gdbtypes): Build builtin_type_v2_float.
9506 (_initialize_gdbtypes): Register new builtin type.
9507
9508 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9509
9510 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9511 (clear_gdbarch_swap): New function.
9512 (initialize_non_multiarch): Call.
9513 (gdbarch_update_p): Before calling init(), swap out and clear the
9514 existing architecture.
9515 * gdbarch.c: Regenerate.
9516
9517 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9518
9519 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9520 alphanbsd-tdep.c.
9521
9522 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9523
9524 * sh-nbsd-nat.c: Rename to...
9525 * shnbsd-nat.c: ...this.
9526 * sh-nbsd-tdep.c: Rename to...
9527 * shnbsd-tdep.c: ...this.
9528 * sh-nbsd-tdep.h: Rename to...
9529 * shnbsd-tdep.h: ...this.
9530 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9531 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9532
9533 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9534
9535 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9536 concatenation for command help messages.
9537
9538 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9539
9540 * NEWS: Note new sh*-*-netbsdelf* configuration.
9541 * configure.host: Set gdb_host_cpu to sh for all sh*.
9542 (sh*-*-netbsdelf*): New host.
9543 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9544 (sh*-*-netbsdelf*): New target.
9545 * sh-nbsd-nat.c: New file.
9546 * sh-nbsd-tdep.c: New file.
9547 * sh-nbsd-tdep.h: New file.
9548 * config/sh/nbsd.mh: New file.
9549 * config/sh/nbsd.mt: New file.
9550 * config/sh/nm-nbsd.h: New file.
9551 * config/sh/tm-nbsd.h: New file.
9552
9553 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9554
9555 * sh-tdep.c (sh_osabi_names): Declare.
9556 (process_note_abi_tag_sections): New function.
9557 (get_elfosabi): Ditto.
9558 (sh_gdbarch_register_os_abi): Ditto.
9559 (sh_dump_tdep): Ditto.
9560 _initialize_sh_tdep): Use gdbarch_register to register
9561 sh_gdbarch_init and sh_dump_tdep.
9562 * config/sh/tm-sh.h (sh_osabi): Declare.
9563 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9564
9565 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9566
9567 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9568 (thumb_scan_prologue): Ditto.
9569 (arm_find_callers_reg): Ditto.
9570 (arm_frame_chain): Ditto.
9571 (arm_init_extra_frame_info): Ditto.
9572 (arm_frame_saved_pc): Ditto.
9573 (arm_pop_frame): Ditto.
9574 (arm_push_return_address): New function.
9575 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9576 call_dummy_location, call_dummy_breakpoint_offset_p,
9577 call_dummy_breakpoint_offset, call_dummy_p,
9578 call_dummy_stack_adjust_p, call_dummy_words,
9579 sizeof_call_dummy_words, call_dummy_start_offset,
9580 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9581 call_dummy_address, push_return_address and push_dummy_frame for
9582 generic dummy frames.
9583
9584 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9585
9586 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9587 size computation for alloca.
9588 (sh_fp_frame_init_saved_regs): Likewise.
9589
9590 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9591
9592 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9593 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9594 * arm-tdep.c (arm_store_return_value): Use them.
9595 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9596 * remote-rdp.c (remote_rdp_fetch_register): Use
9597 ARM_MAX_REGISTER_RAW_SIZE.
9598 (remote_rdp_store_register): Likewise.
9599
9600 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9601
9602 * dwarf2cfi.c: Code cleanup, removed unused variables,
9603 added default labels to switch {} statements.
9604 * x86-64-tdep.c: Ditto.
9605 * x86-64-linux-nat.c: Ditto.
9606
9607 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * solib.h: Protect against multiple inclusion.
9610
9611 2002-05-06 Jim Blandy <jimb@redhat.com>
9612
9613 Add first preprocessor macro-expansion files.
9614 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9615 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9616 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9617 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9618 (COMMON_OBS): Add macrotab.o, macroexp.o.
9619 (macroexp.o, macrotab.o): New rules.
9620
9621 Separate the job of reading the line number info statement program
9622 header (...expialidocious) out into its own function.
9623 * dwarf2read.c (struct line_head, struct filenames, struct
9624 directories): Replace with...
9625 (struct line_header): New structure, containing the full
9626 contents of the statement program header, including the
9627 include directory and file name tables.
9628 (read_file_scope): If we have line number info, instead of just
9629 calling dwarf_decode_lines to do all the work, call
9630 dwarf_decode_line_header first to get a `struct line_header'
9631 containing the data in the statement program header, and then
9632 pass that to dwarf_decode_lines, which will pick up where that
9633 left off. Be sure to clean up the `struct line_header' object.
9634 (dwarf_decode_line_header, free_line_header, add_include_dir,
9635 add_file_name): New functions.
9636 (dwarf_decode_lines): Move all the code to read the statement
9637 program header into dwarf_decode_line_header. Take the line
9638 header it built as the first argument, instead of the offset to
9639 the compilation unit's line number info. Use the new `struct
9640 line_header' type instead of the old structures. No need to do
9641 cleanups here now, since we don't allocate anything.
9642 (dwarf2_statement_list_fits_in_line_number_section,
9643 dwarf2_line_header_too_long): New complaints.
9644
9645 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9646
9647 * gdbtypes.c (init_vector_type): New function.
9648 (build_builtin_type_vec128): Simplify the representation of SIMD
9649 registers.
9650 (build_gdbtypes): Initialize new builtin vector types.
9651 (_initialize_gdbtypes): Register new vector types with gdbarch.
9652 (builtin_type_v4_float, builtin_type_v4_int32,
9653 builtin_type_v8_int16, builtin_type_v16_int8,
9654 builtin_type_v2_int32, builtin_type_v4_int16,
9655 builtin_type_v8_int8): New (renamed) SIMD types.
9656
9657 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9658
9659 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9660 (i387_fill_fxsave): Likewise.
9661
9662 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9663
9664 * alpha-tdep.c (alpha_extract_return_value): Don't use
9665 non-constant array size in prototype.
9666
9667 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9668
9669 From Brian Taylor <briant at model dot com>:
9670 * ui-out.c (ui_out_field_core_addr): Use the function
9671 longest_local_hex_string_custom'to format addresses > 32 bits
9672 wide.
9673
9674 * ui-out.c (ui_out_field_core_addr): Update comment.
9675
9676 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9677
9678 * stack.c (select_and_print_frame): Make static. Delete the
9679 parameter `level'.
9680 (func_command): Update call.
9681 (select_frame_command): Delete code computing the frame level.
9682 * frame.h (select_and_print_frame): Delete declaration.
9683
9684 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9685
9686 * sparc-tdep.c (sparc_get_saved_register): Comment why
9687 get_prev_frame call is safe.
9688
9689 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9690
9691 * frame.h (select_frame): Delete level parameter.
9692 * stack.c (select_frame): Update. Use frame_relative_level to
9693 obtain the frame's level.
9694 (select_and_print_frame): Update call.
9695 (select_frame_command): Ditto.
9696 (up_silently_base): Ditto.
9697 (down_silently_base): Ditto.
9698 * ocd.c (ocd_start_remote): Ditto.
9699 * remote-rdp.c (remote_rdp_open): Ditto.
9700 * remote-mips.c (mips_initialize): Ditto.
9701 (common_open): Ditto.
9702 * remote-e7000.c (e7000_start_remote): Ditto.
9703 * m3-nat.c (select_thread): Ditto.
9704 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9705 (child_get_current_exception_event): Ditto.
9706 * varobj.c (varobj_create): Ditto.
9707 (varobj_update): Ditto.
9708 (c_value_of_root): Ditto.
9709 * tracepoint.c (finish_tfind_command): Ditto.
9710 * corelow.c (core_open): Ditto.
9711 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9712 * thread.c (info_threads_command): Ditto.
9713 (switch_to_thread): Ditto.
9714 * infrun.c (normal_stop): Ditto.
9715 (restore_selected_frame): Ditto.
9716 (restore_inferior_status): Ditto.
9717 * breakpoint.c (insert_breakpoints): Ditto.
9718 (watchpoint_check): Ditto.
9719 (bpstat_stop_status): Ditto.
9720 (do_enable_breakpoint): Ditto.
9721 * blockframe.c (flush_cached_frames): Ditto.
9722 (reinit_frame_cache): Ditto.
9723
9724 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9725
9726 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9727 maintainer.
9728
9729 2002-05-04 Jim Blandy <jimb@redhat.com>
9730
9731 * gdbtypes.c (replace_type): Doc fix.
9732
9733 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9734
9735 * valprint.c (strcat_longest): Delete commented out function.
9736 Update copyright.
9737
9738 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9739
9740 * MAINTAINERS: Mark a29k as deleted.
9741 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9742 Move new configurations to the top.
9743 * configure.tgt: Remove a29k.
9744 * config/a29k/tm-vx29k.h: Delete.
9745 * config/a29k/vx29k.mt: Delete.
9746 * config/a29k/tm-a29k.h: Delete.
9747 * config/a29k/a29k-udi.mt: Delete.
9748 * config/a29k/a29k.mt: Delete.
9749 * a29k-tdep.c: Delete.
9750 * remote-udi.c: Delete.
9751 * remote-mm.c: Delete.
9752 * remote-eb.c: Delete.
9753 * remote-adapt.c: Delete.
9754 * Makefile.in: Remove obsolete code.
9755 * config/s390/s390x.mt: Ditto.
9756 * config/s390/s390.mt: Ditto.
9757 * config/sparc/sparclynx.mh: Ditto.
9758 * config/sparc/linux.mh: Ditto.
9759 * config/pa/hppaosf.mh: Ditto.
9760 * config/pa/hppabsd.mh: Ditto.
9761 * config/ns32k/nbsd.mt: Ditto.
9762 * config/mips/vr5000.mt: Ditto.
9763 * config/m68k/sun3os4.mh: Ditto.
9764 * config/m68k/nbsd.mt: Ditto.
9765 * config/m68k/m68klynx.mh: Ditto.
9766 * config/m32r/m32r.mt: Ditto.
9767 * config/i386/x86-64linux.mt: Ditto.
9768 * config/i386/nbsdelf.mt: Ditto.
9769 * config/i386/nbsd.mt: Ditto.
9770 * config/i386/i386lynx.mh: Ditto.
9771
9772 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9773
9774 * target.c (debug_print_register): New function. Handle oversize
9775 registers.
9776 (debug_to_fetch_registers): Call.
9777 (debug_to_store_registers): Call.
9778
9779 2002-05-03 Jim Blandy <jimb@redhat.com>
9780
9781 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9782 (read_type): Doc fix.
9783 * gdbtypes.c (replace_type): Doc fix.
9784
9785 * stabsread.c (multiply_defined_struct): New complaint.
9786 (read_struct_type): If the type we were passed isn't empty, or
9787 incomplete, don't read the new struct type into it; complain,
9788 and return the original type unchanged. Take a new `type_code'
9789 argument, which is the type code for the new type.
9790 (read_type): Rather than storing the type's type code here, pass
9791 it as an argument to read_struct_type, and let that take care of
9792 storing it. That way, we don't overwrite the original type code,
9793 so read_struct_type can use it to decide whether we're overwriting
9794 something we shouldn't.
9795 (complain_about_struct_wipeout): New function.
9796
9797 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9798
9799 * gdbarch.sh: Assert that gdbarch is non-NULL.
9800 * gdbarch.c: Regenerate.
9801
9802 2002-05-03 Jason Merrill <jason@redhat.com>
9803
9804 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9805 and return NULL.
9806
9807 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9808
9809 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9810 (x86_64_dwarf2gdb_regno_map_length),
9811 (x86_64_dwarf2_reg_to_regnum): Added.
9812 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9813 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9814 (_initialize_x86_64_tdep): Synced with the change above.
9815 (x86_64_skip_prologue): Reformulated message.
9816
9817 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9818
9819 * f-exp.y: Also use new prev_lexptr variable
9820 to improve error reporting. Based on Michael Snyder
9821 2002-04-24 dated patch to c-exp.y.
9822 * jv-exp.y: Likewise.
9823 * m2-exp.y: Likewise.
9824
9825 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9826
9827 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9828 we are dealing with vectors.
9829
9830 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9831
9832 * config/m68k/tm-nbsd.h: Obvious fix,
9833 correct machine name.
9834
9835 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9836
9837 * p-typeprint.c (pascal_type_print_base): Add support
9838 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9839
9840 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9841
9842 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9843 for fondamental pascal 'char' type.
9844
9845 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9846
9847 * p-lang.h (is_pascal_string_type): Declaration changed,
9848 new sixth argument of type char ** added.
9849 * p-lang.c (is_pascal_string_type): Implementation
9850 changed. Args length_pos, length_size, string_pos, char_size
9851 can now be NULL. New argument arrayname set to the field
9852 name of the char array. Return value set to char array
9853 field index plus one.
9854 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9855 is_pascal_string_type function.
9856
9857 2002-05-02 Andrew Cagney <cagney@redhat.com>
9858
9859 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9860 <cagney@redhat.com> change.
9861 * gdbarch.c: Regenerate.
9862
9863 2002-05-02 Andrew Cagney <cagney@redhat.com>
9864
9865 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9866 before probing for a new one. Detect errorenous gdbarch_init
9867 functions.
9868 * gdbarch.c: Regenerate.
9869
9870 2002-05-01 Andrew Cagney <cagney@redhat.com>
9871
9872 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9873 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9874 * config/v850/tm-v850.h: Ditto. Update copyright.
9875
9876 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9877
9878 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9879 current_gdbarch.
9880
9881 2002-04-30 Michael Snyder <msnyder@redhat.com>
9882
9883 * arm-tdep.c: Whitespace clean-ups.
9884 (arm_skip_prologue): Fix thinko; two lines
9885 should have been removed as part of 4/24 change.
9886
9887 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9888
9889 * rs6000-tdep.c: Added comment describing how fpscr register
9890 numbers were chosen.
9891
9892 2002-04-30 Michael Snyder <msnyder@redhat.com>
9893
9894 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9895
9896 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9897
9898 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9899 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9900 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9901
9902 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9903
9904 From Louis Hamilton <hamilton@redhat.com>:
9905 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9906 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9907 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9908 not bfd-private xcoff data, to determine wordsize.
9909 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9910
9911 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9912
9913 GDB 5.2 released from 5.2 branch.
9914
9915 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9916
9917 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9918 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9919 (x86_64_register_info_table): Added comments with register numbers.
9920
9921 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9922
9923 * rs6000-tdep.c (rs6000_extract_return_value,
9924 rs6000_store_return_value): Handle returning vectors.
9925 (rs6000_gdbarch_init): Use
9926 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9927 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9928 New function.
9929 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9930 vectors.
9931 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9932 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9933
9934 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9935
9936 * hpread.c (hpread_psymtab_to_symtab_1,
9937 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9938 with fprintf_unfiltered (gdb_stderr,...).
9939
9940 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9941
9942 * remote-array.c (printf_monitor, write_monitor,
9943 array_insert_breakpoint, array_remove_breakpoint ):
9944 Replace fprintf (stderr,...
9945 with fprintf_unfiltered (gdb_stderr,....
9946 * remote-es.c: Likewise.
9947 * remote-os9k.c: Likewise.
9948 * remote-st.c: Likewise.
9949
9950 2002-04-28 Andreas Schwab <schwab@suse.de>
9951
9952 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9953 linux-proc.o and gcore.o.
9954
9955 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9956
9957 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9958 code without frame pointers.
9959
9960 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9961
9962 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9963 ON_STACK is needed.
9964
9965 2002-04-26 Ben Elliston <bje@redhat.com>
9966
9967 * target.c (do_xfer_memory): Correct reference to the new option
9968 "trust-readonly-sections".
9969
9970 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9971
9972 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9973 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9974 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9975 vectors.
9976 (read_array_type): Record the fact that this array type is really a
9977 vector (i.e. are passed in by value).
9978
9979 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9980
9981 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9982 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9983 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9984 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9985 * alpha-linux-tdep.c: Include frame.h.
9986 (alpha_linux_sigcontext_addr): New function.
9987 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9988 alpha_linux_sigcontext_addr.
9989 * alpha-osf1-tdep.c: Include gdbcore.h.
9990 (alpha_osf1_sigcontext_addr): New function.
9991 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9992 alpha_osf1_sigcontext_addr.
9993 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9994 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9995
9996 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9997
9998 * stack.c (selected_frame_level):
9999 (select_frame): Do not set selected_frame_level.
10000 * frame.h (selected_frame_level): Delete declaration.
10001
10002 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10003
10004 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10005 convert_from_func_ptr-addr when AIX / PowerOpen.
10006
10007 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10008
10009 * valops.c (hand_function_call): Call
10010 generic_save_call_dummy_addr.
10011 * frame.h (generic_save_call_dummy_addr): Declare.
10012 * blockframe.c (struct dummy_frame): Add fields call_lo and
10013 call_hi.
10014 (generic_find_dummy_frame): Check for PC in range call_lo to
10015 call_hi instead of entry_point_address.
10016 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10017 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10018 (generic_save_call_dummy_addr): New function.
10019
10020 2002-04-24 David S. Miller <davem@redhat.com>
10021
10022 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10023 sparc_skip_prologue.
10024 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10025 information to find prologue when possible.
10026 (sparc_prologue_frameless_p): Call examine_prologue directly.
10027 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10028 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10029 second argument.
10030 (SKIP_PROLOGUE): Likewise.
10031
10032 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10033
10034 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10035 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10036 indicate that the condition it was testing is always true.
10037 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10038 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10039 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10040
10041 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10042
10043 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10044 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10045 tdep->jb_pc and tdep->jb_elt_size.
10046 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10047 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10048 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10049 * alpha-nat.c (get_longjmp_target): Remove.
10050 (JB_ELEMENT_SIZE): Ditto.
10051 (JB_PC): Ditto.
10052 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10053 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10054 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10055 to alpha_get_longjmp_target.
10056 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10057 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10058 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10059
10060 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10061
10062 * README: Update to GDB 5.2.
10063
10064 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10065
10066 * gdbarch.sh (LC_ALL): Set to `c'.
10067
10068 2002-04-25 Theodore A. Roth <troth@verinet.com>
10069
10070 * avr-tdep.c: Ran through gdb_indent.sh.
10071
10072 2002-04-25 Theodore A. Roth <troth@verinet.com>
10073
10074 * MAINTAINERS: Add myself as AVR maintainer.
10075 * NEWS: Note new target avr.
10076
10077 2002-04-25 Theodore A. Roth <troth@verinet.com>
10078
10079 * Makefile.in: Add support for AVR target.
10080 * configure.tgt: Add support for AVR target.
10081 * avr-tdep.c: New file
10082 * config/avr/avr.mt: New file.
10083
10084 2002-04-25 Theodore A. Roth <troth@verinet.com>
10085
10086 * MAINTAINERS: Add myself to write-after-approval.
10087
10088 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10089
10090 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10091 with fprintf_unfiltered (gdb_stderr,....
10092
10093 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10094
10095 Fix PR gdb/508.
10096 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10097
10098 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10099
10100 * p-exp.y: Also use new prev_lexptr variable
10101 to improve error reporting. Based on Michael Snyder
10102 2002-04-24 dated patch to c-exp.y.
10103
10104 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10105
10106 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10107 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10108 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10109 to 0.
10110 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10111 and struct value.
10112 (FUNCTION_START_OFFSET): Remove.
10113 (BREAKPOINT): Ditto.
10114
10115 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10116
10117 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10118 * NEWS: Ditto.
10119
10120 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10121
10122 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10123 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10124 alpha_linux_pc_in_sigtramp.
10125 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10126 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10127 alpha_osf1_pc_in_sigtramp.
10128 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10129 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10130 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10131 alphafbsd_pc_in_sigtramp.
10132 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10133 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10134 alphanbsd_pc_in_sigtramp.
10135 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10136 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10137
10138 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10139
10140 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10141
10142 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10143
10144 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10145 alphanbsd-tdep.c.
10146 (alphanbsd-nat.o): New dependency list.
10147 (alphanbsd-tdep.o): Ditto.
10148 * NEWS: Note new native NetBSD/alpha configuration.
10149 * alphanbsd-nat.c: New file.
10150 * alphanbsd-tdep.c: Ditto.
10151 * configure.host (alpha*-*-netbsd*): New host.
10152 * configure.tgt (alpha*-*-netbsd*): New target.
10153 * config/alpha/nbsd.mh: New file.
10154 * config/alpha/nbsd.mt: Ditto.
10155 * config/alpha/nm-nbsd.h: Ditto.
10156 * config/alpha/tm-nbsd.h: Ditto.
10157
10158 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10159
10160 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10161 (alpha-osf1-tdep.o): New dependency list.
10162 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10163 and skip_sigtramp_frame members.
10164 * alpha-linux-tdep.c: Include gdbcore.h.
10165 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10166 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10167 * alpha-osf1-tdep.c: New file.
10168 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10169 alpha-osf1-dep.c.
10170 (alpha_frame_past_sigtramp_frame): New function.
10171 (alpha_dynamic_sigtramp_offset): Ditto.
10172 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10173 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10174 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10175 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10176 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10177 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10178 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10179 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10180 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10181 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10182 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10183 to find_solib_trampoline_target.
10184 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10185 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10186 (SKIP_TRAMPOLINE_CODE): Remove.
10187 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10188 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10189 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10190 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10191 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10192 (PROC_SIGTRAMP_MAGIC): Ditto.
10193 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10194 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10195 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10196 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10197 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10198
10199 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10200
10201 * NEWS: Note that Alpha targets are now multi-arch.
10202
10203 2002-04-24 Michael Snyder <msnyder@redhat.com>
10204
10205 * parser-defs.h (prev_lexptr): New external variable.
10206 * parse.c (parse_exp_1): Set prev_lexptr to null before
10207 calling the language-specific parser.
10208 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10209 (yyerror): Use prev_lexptr in error reporting.
10210
10211 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10214 * gregset.h: If FILL_FPXREGSET is defined, provide
10215 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10216 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10217 is defined, call fill_fpxregset.
10218
10219 2002-04-24 Roland McGrath <roland@frob.com>
10220
10221 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10222 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10223 (supply_gregset, supply_fpregset): New functions.
10224
10225 * gnu-nat.c (gnu_find_memory_regions): New function.
10226 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10227 (gnu_xfer_memory): Add a cast.
10228
10229 2002-04-24 Michael Snyder <msnyder@redhat.com>
10230
10231 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10232 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10233 of argument regs ("str r(0123), [r11, #-nn"]).
10234 (arm_skip_prologue): Better handling for frameless functions.
10235 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10236 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10237
10238 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10239
10240 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10241 NUM_PSEUDO_REGS can be used.
10242
10243 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10244
10245 * arch-utils.h: Update copyright.
10246
10247 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10248 * gdbarch.h, gdbarch.c: Re-generate.
10249
10250 * inferior.h (IN_SIGTRAMP): Delete definition.
10251 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10252 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10253
10254 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10255 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10256 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10257 (find_proc_framesize): Ditto.
10258 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10259 (alpha_init_extra_frame_info): Ditto.
10260 * infrun.c (handle_inferior_event): Ditto.
10261 (handle_inferior_event): Ditto.
10262 (check_sigtramp2): Ditto.
10263 * blockframe.c (create_new_frame): Ditto.
10264 (get_prev_frame): Ditto.
10265 * ppc-linux-tdep.c: Update comments.
10266 * i386-linux-tdep.c: Update comments.
10267 * breakpoint.c (bpstat_what): Update comment.
10268
10269 2002-04-24 David S. Miller <davem@redhat.com>
10270
10271 * i960-tdep.c (register_in_window_p): New function.
10272 (i960_find_saved_register): Use it instead of
10273 REGISTER_IN_WINDOW_P.
10274 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10275
10276 * symtab.h (find_stab_function_addr): Kill extern.
10277 * minsyms.c (find_stab_function_addr): Remove from here...
10278 * dbxread.c: ... to here, and mark it static.
10279
10280 2002-04-20 David S. Miller <davem@redhat.com>
10281
10282 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10283 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10284
10285 2002-04-21 David S. Miller <davem@redhat.com>
10286
10287 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10288 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10289 (vx_write_register): Likewise.
10290
10291 2002-04-23 J. Brobecker <brobecker@gnat.com>
10292
10293 * source.c (is_regular_file): New function.
10294 (openp): Check wether file to open is a regular file
10295 to avoid opening directories.
10296
10297 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10298
10299 * findvar.c (extract_signed_integer): Cast printf argument
10300 to suppress format warning.
10301 (extract_unsigned_integer): Likewise.
10302 * infcmd.c (registers_info): Likewise.
10303 * top.c (get_prompt_1): Likewise.
10304 * valops.c (value_assign): Likewise.
10305 * valprint.c (print_decimal): Likewise.
10306
10307 2002-04-22 H.J. Lu (hjl@gnu.org)
10308
10309 * c-exp.y (typebase): Support
10310
10311 [long|long long|short] [signed|unsigned] [int|]
10312
10313 and
10314
10315 signed [long|long long|short] int
10316
10317 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10318
10319 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10320 and vax-tdep.h.
10321 * vax-tdep.h: New file.
10322 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10323 Make several routines static.
10324 (vax_get_saved_register): New function.
10325 (vax_gdbarch_init): New function.
10326 (_initialize_vax_tdep): Register vax_gdbarch_init.
10327 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10328 Remove macros now under the control of gdbarch.
10329
10330 2002-04-22 Michael Snyder <msnyder@redhat.com>
10331
10332 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10333 Some whitespace and coding standards tweaks.
10334
10335 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10336
10337 * vax-tdep.c: Include regcache.h.
10338 (vax_call_dummy_words): New.
10339 (sizeof_vax_call_dummy_words): New.
10340 (vax_fix_call_dummy): New function.
10341 (vax_saved_pc_after_call): Ditto.
10342 * config/vax/tm-vax.h: Don't include regcache.h.
10343 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10344 (CALL_DUMMY): Remove.
10345 (CALL_DUMMY_WORDS): Define.
10346 (SIZEOF_CALL_DUMMY_WORDS): Define.
10347 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10348
10349 2002-04-18 Michael Snyder <msnyder@redhat.com>
10350
10351 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10352
10353 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10354
10355 * vax-tdep.c (vax_frame_chain): New function.
10356 (vax_push_dummy_frame): Ditto.
10357 (vax_pop_frame): Ditto.
10358 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10359 (FRAMELESS_FUNCTION_INVOCATION): Use
10360 generic_frameless_function_invocation_not.
10361 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10362 (POP_FRAME): Use vax_pop_frame.
10363
10364 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10365
10366 * vax-tdep.c (vax_store_struct_return): New function.
10367 (vax_extract_return_value): Ditto.
10368 (vax_store_return_value): Ditto.
10369 (vax_extract_struct_value_address): Ditto.
10370 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10371 vax_store_struct_return.
10372 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10373 (STORE_RETURN_VALUE): Use vax_store_return_value.
10374 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10375
10376 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10377
10378 * vax-tdep.c (vax_frame_saved_pc): New function.
10379 (vax_frame_args_address_correct): Ditto.
10380 (vax_frame_args_address): Ditto.
10381 (vax_frame_locals_address): Ditto.
10382 (vax_frame_num_args): Move code to be in proximity to
10383 other frame-related functions.
10384 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10385 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10386 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10387 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10388 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10389
10390 2002-04-22 H.J. Lu (hjl@gnu.org)
10391
10392 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10393 includedir.
10394
10395 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10396
10397 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10398 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10399 (FRAME_INIT_SAVED_REGS): New macro.
10400
10401 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10402
10403 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10404
10405 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10406
10407 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10408 where needed.
10409 (fetch_osf_core_registers): Likewise.
10410 (supply_gregset): Likewise.
10411
10412 2002-04-22 J. Brobecker <brobecker@gnat.com>
10413
10414 * symfile.h (get_section_index): Define.
10415 * symfile.c (get_section_index): New function.
10416 * mdebugread.c (SC_IS_SBSS): New macro.
10417 (SC_IS_BSS): Return true for the scBss storage class only, as
10418 the scSBss storage class refers to the .sbss section.
10419 (parse_partial_symbols): Discard the symbols which associated
10420 section does not exist.
10421 Make sure to use the .sbss section index for symbols which
10422 storage class is scBss, rather than using the .bss section index.
10423
10424 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10425
10426 * vax-tdep.c: Update copyright years.
10427 (vax_register_name): New function.
10428 (vax_register_byte): Ditto.
10429 (vax_register_raw_size): Ditto.
10430 (vax_register_virtual_size): Ditto.
10431 (vax_register_virtual_type): Ditto.
10432 * config/vax/tm-vax.h: Update copyright years.
10433 (REGISTER_NAMES): Remove.
10434 (REGISTER_NAME): Define.
10435 (REGISTER_BYTE): Use vax_register_byte.
10436 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10437 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10438 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10439
10440 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10441
10442 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10443 declaration
10444 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10445
10446 2002-04-21 David S. Miller <davem@redhat.com>
10447
10448 * arch-utils.c (generic_prologue_frameless_p): Kill
10449 SKIP_PROLOGUE_FRAMELESS_P code.
10450 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10451 references.
10452 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10453 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10454 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10455 references.
10456 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10457 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10458 (sparc_gdbarch_init): Pass it to
10459 set_gdbarch_prologue_frameless_p.
10460
10461 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10462
10463 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10464 (alphabsd-nat.o): New dependency list.
10465
10466 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10467
10468 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10469 alphafbsd-tdep.c.
10470 (alpha-linux-tdep.o): New dependency list.
10471 (alphafbsd-tdep.o): Likewise.
10472
10473 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10474
10475 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10476 to here...
10477 * alpha-tdep.c: ...from here.
10478 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10479
10480 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10481
10482 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10483 prototype from here...
10484 * alpha-tdep.h: ...to here.
10485
10486 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10487
10488 * frame.h (selected_frame_level): Document as deprecated.
10489 (frame_relative_level): Declare.
10490 * stack.c (frame_relative_level): New function.
10491 (selected_frame_level): Document as deprecated.
10492 (select_frame): Do not set the selected_frame_level.
10493
10494 * stack.c (frame_info, record_selected_frame): Update.
10495 (frame_command, current_frame_command): Update.
10496 (up_silently_base, up_command, down_silently_base): Update.
10497 (down_command): Update.
10498 * inflow.c (kill_command): Update.
10499 * tracepoint.c (finish_tfind_command): Update.
10500 * corelow.c (core_open): Update.
10501 * thread.c (info_threads_command): Update.
10502 (do_captured_thread_select): Update.
10503 * infcmd.c (finish_command): Update.
10504 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10505
10506 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10507
10508 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10509
10510 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10511
10512 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10513 type const.
10514
10515 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10516
10517 * alphafbsd-tdep.c: Update copyright years. Include
10518 alpha-tdep.h.
10519 (alphafbsd_use_struct_convention): Make static.
10520 (alphafbsd_init_abi): New function.
10521 (_initialize_alphafbsd_tdep): New function.
10522 * config/alpha/tm-fbsd.h: Update copyright years.
10523 (USE_STRUCT_CONVENTION): Remove.
10524
10525 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10526
10527 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10528 an Alpha ABI variant.
10529 (alpha_abi_handler_list): Declare.
10530 (alpha_gdbarch_register_os_abi): New function.
10531 (alpha_gdbarch_init): Give registered ABI variant handlers a
10532 chance to tweak the gdbarch once we have set up defaults.
10533 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10534
10535 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10536
10537 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10538 to standard_coerce_float_to_double.
10539 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10540
10541 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10542
10543 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10544 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10545 from gdbarch_tdep rather than a constant.
10546 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10547 the default text address for all Alpha Unix ABIs.
10548 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10549 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10550
10551 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10552
10553 * alpha-tdep.h: New file. Includes several Alpha target constants
10554 taken from...
10555 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10556 let gdbarch deal with.
10557 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10558 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10559 to dependency list.
10560 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10561 Alpha target register names.
10562 * alphabsd-nat.c: Likewise.
10563 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10564 Alpha target register names. Make serveral routines static.
10565 (alpha_get_saved_register): New function.
10566 (alpha_abi_names): New.
10567 (process_note_abi_tag_sections): New function.
10568 (get_elfosabi): New function.
10569 (alpha_gdbarch_init): New function.
10570 (alpha_dump_tdep): New function.
10571 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10572
10573 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10574
10575 * frame.c (find_saved_register): Delete #ifdef
10576 HAVE_REGISTER_WINDOWS code.
10577 * config/sparc/tm-sparc.h: Update comments.
10578 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10579
10580 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10581
10582 * i960-tdep.c (i960_find_saved_register): New function.
10583 (i960_get_saved_register): New function.
10584 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10585 (i960_get_saved_register): Declare.
10586 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10587
10588 2002-04-20 David S. Miller <davem@redhat.com>
10589
10590 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10591
10592 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10593
10594 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10595 instead of NUM_PSEUDO_REGS.
10596
10597 2002-04-20 David S. Miller <davem@redhat.com>
10598
10599 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10600 GDB_MULTI_ARCH_PARTIAL
10601 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10602 define, let tm-sp64.h do it.
10603
10604 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10605
10606 * frame.c (find_saved_register): Avoid a NULL pointer
10607 dereference and actually walk the frame list.
10608
10609 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10610
10611 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10612 sorted in most most-recent-used order. Document.
10613 * gdbarch.h, gdbarch.c: Regenerate.
10614
10615 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10616
10617 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10618 instead of ->prev.
10619 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10620 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10621 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10622 instead of ->prev.
10623
10624 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10625
10626 Fix PR gdb/471.
10627 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10628 (build_builtin_type_vec128): Ditto.
10629 (append_composite_type_field): Fix calculation of type length in
10630 union case.
10631
10632 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10633
10634 * config/djgpp/README: Update.
10635
10636 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10637 compiler warnings.
10638
10639 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10640
10641 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10642 (alpha_setup_arbitrary_frame): ...to this.
10643 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10644 for alpha_setup_arbitrary_frame.
10645
10646 2002-04-18 Andrew Cagney <cagney@redhat.com>
10647
10648 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10649 * gdbarch.h, gdbarch.c: Regenerate.
10650
10651 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10652 * target.h (memory_breakpoint_from_pc): Update declaration.
10653 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10654
10655 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10656 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10657 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10658 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10659 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10660 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10661 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10662 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10663 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10664 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10665 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10666 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10667
10668 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10669 const pointer.
10670 * monitor.c (monitor_insert_breakpoint): Ditto.
10671 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10672
10673 * config/mcore/tm-mcore.h: Update copyright.
10674 * mem-break.c: Ditto.
10675 * xstormy16-tdep.c: Ditto.
10676
10677 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10678
10679 * p-exp.y: Add precedence rule for '^' token.
10680 This removes the shift/reduce conflicts.
10681 Remove the comment concerning these shift/reduce conflicts.
10682
10683 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10684
10685 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10686 (registers_powerpc_nofp): New register set for processors
10687 without floating point unit.
10688
10689 2002-04-18 David S. Miller <davem@redhat.com>
10690
10691 * MAINTAINERS: Add myself to write-after-approval.
10692
10693 2002-04-17 Michael Snyder <msnyder@redhat.com>
10694
10695 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10696
10697 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10698
10699 * rs6000-tdep.c (frame_initial_stack_address): Use
10700 frame_register_read to read the alloca_reg.
10701
10702 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10703
10704 * frame.c (find_saved_register): Find saved registers in the next
10705 not prev frame.
10706 Fix PR gdb/365.
10707
10708 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10709
10710 * gdbarch.sh (LANG): Set to ``c''.
10711
10712 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10713
10714 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10715
10716 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10717
10718 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10719 Update copyright.
10720
10721 * hpread.c (hpread_get_lntt): Add declaration.
10722 Also fix PR gdb/391.
10723
10724 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10725
10726 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10727 * aclocal.m4, configure: Re-generate.
10728 Fix PR gdb/391.
10729
10730 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10731
10732 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10733 instead of tm_print_insn.
10734
10735 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10736
10737 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10738
10739 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10740
10741 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10742 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10743 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10744
10745 2002-04-12 Don Howard <dhoward@redhat.com>
10746
10747 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10748 max_user_call_depth.
10749 (init_cmd_lists): Initialize the new value;
10750 * cli/cli-script.c (execute_user_command): Limit the call depth of
10751 user defined commands. This avoids a core-dump when user commands
10752 are infinitly recursive.
10753
10754 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10755
10756 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10757 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10758 from tdep struct instead of DEFAULT_LR_SAVE.
10759 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10760 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10761 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10762
10763 2002-04-12 Michael Snyder <msnyder@redhat.com>
10764
10765 * Remote.c: Spelling fix.
10766 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10767 If no symbol found for "sbrk", try "_sbrk".
10768 (make_output_phdrs): Use bfd_section_name.
10769 (gcore_copy_callback): Use bfd_section_name.
10770 * eval.c: Indentation fix-ups.
10771 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10772 in case it gets applied to an address that is already
10773 in the instruction space.
10774 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10775 * symfile.c: Fix indentation, long lines.
10776 * source.c: White space fix-up.
10777
10778 2002-04-12 Andrew Cagney <cagney@redhat.com>
10779
10780 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10781 * frame.c (frame_register_read): New function. Return non-zero on
10782 success.
10783 (read_relative_register_raw_bytes_for_frame): Delete.
10784 (read_relative_register_raw_bytes): Delete.
10785 * frame.h (frame_register_read): Declare.
10786 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10787 * sh-tdep.c: Ditto.
10788 * infcmd.c (do_registers_info): Ditto.
10789 * hppa-tdep.c: Ditto.
10790 * rs6000-tdep.c: Ditto.
10791 * h8500-tdep.c: Ditto.
10792 * mips-tdep.c: Ditto.
10793 * h8300-tdep.c: Ditto.
10794 * z8k-tdep.c: Ditto.
10795
10796 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10797
10798 From Jimi X <jimix@watson.ibm.com>:
10799 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10800 64-bit SysV ABI.
10801
10802 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10803
10804 From Jimi X <jimix@watson.ibm.com>:
10805 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10806 bfd info.
10807
10808 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10809
10810 From Jimi X <jimix@watson.ibm.com>:
10811 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10812 register sets for these processor variants.
10813
10814 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10815
10816 * regformats/reg-ppc.dat: Support FPSCR.
10817
10818 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10819
10820 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10821 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10822 Add fpscr as an invalid/unfetchable register.
10823 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10824 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10825 (fill_fpregset): Add support for register fpscr.
10826 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10827 (fill_gregset): Account for the fact that register ``mq'' might
10828 not exist.
10829 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10830 (registers_power): Add fpscr to register set at slot 71.
10831 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10832 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10833
10834 2002-04-11 Michael Snyder <msnyder@redhat.com>
10835
10836 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10837 * configure: Regenerate.
10838 * config.in: Regenerate.
10839 * acconfig.h: Add define for _SYSCALL32.
10840 * core-sol2.c: Remove #define _SYSCALL32.
10841 * solib-legacy.c: Remove #define _SYSCALL32.
10842
10843 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10844
10845 * stack.c (select_frame): Cleanup internal error message, do not
10846 use %p.
10847
10848 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10849
10850 * stack.c (select_frame): Check that selected_frame and the
10851 specified level are as expected.
10852 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10853 Update copyright.
10854 * frame.h (struct frame_info): Add field `level'. Update
10855 copyright.
10856 Work-in-progress PR gdb/464.
10857
10858 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10859
10860 * maint.c (maint_print_section_info): Rename print_section_info.
10861 (print_bfd_section_info, print_objfile_section_info): Update.
10862 * inferior.h (struct gdbarch): Add opaque declaration.
10863 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10864 * gdbarch.h: Regenerate.
10865
10866 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10867
10868 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10869 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10870 (kernel_u_size): Added.
10871 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10872 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10873
10874 2002-04-04 Jim Ingham <jingham@apple.com>
10875
10876 * valarith.c (find_size_for_pointer_math): New function, either returns
10877 the size for a pointer's target, returns 1 for void *, or errors for
10878 incomplete types.
10879 (value_add, value_sub): use find_size_for_pointer_math.
10880
10881 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10882
10883 * linux-low.c (linux_look_up_symbols): New hook.
10884 (linux_target_ops): Add linux_look_up_symbols.
10885 * remote-utils.c (decode_address): New function.
10886 (look_up_one_symbol): New function.
10887 * server.c (handle_query): Call target look_up_symbols hook.
10888 * server.h (look_up_one_symbol): Add prototype.
10889 * target.h (struct target_ops): Add look_up_symbols hook.
10890
10891 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10892
10893 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10894 override FP_REGNUM with frame->fp. Update copyright.
10895 * parse.c (num_std_regs, std_regs): Delete.
10896 (target_map_name_to_register): Do not search std_regs. Update
10897 function description.
10898 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10899 declarations. Update copyright.
10900 Fix PR gdb/251.
10901
10902 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10903
10904 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10905 after the last symbol in a block.
10906
10907 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10908
10909 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10910 is non zero as a found symbol.
10911
10912 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10913
10914 * findvar.c: Include "builtin-regs.h".
10915 (value_of_register): Call value_of_builtin_reg when applicable.
10916 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10917 (target_map_name_to_register): Call
10918 builtin_reg_map_name_to_regnum.
10919 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10920 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10921 (builtin_regs_h): Define.
10922 (builtin-regs.o): New target.
10923 (findvar.o): Add $(builtin_regs_h).
10924 * builtin-regs.c, builtin-regs.h: New files.
10925 * std-regs.c: New file.
10926 Partial fix for PR gdb/251.
10927
10928 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10929
10930 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10931 it's no longer required.
10932
10933 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10934
10935 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10936
10937 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10938
10939 From Jimi X <jimix@watson.ibm.com>:
10940 * rs6000-tdep.c (rs6000_software_single_step): Use
10941 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10942 and size. Use target_insert_breakpoint() and
10943 target_remove_breakpoint() to insert and remove breakpoints
10944 instead of explicit memory reads and writes.
10945
10946 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10947
10948 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10949 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10950 ELF_OBJECT_FORMAT ifdef.
10951
10952 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10953
10954 From Jimi X <jimix@watson.ibm.com>:
10955 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10956
10957 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10958
10959 From Jimi X <jimix@watson.ibm.com>:
10960 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10961 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10962
10963 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10964
10965 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10966 s/asprintf/xasprintf/.
10967 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10968
10969 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10970
10971 I believe Jeff Law denies responsability for this one:
10972 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10973 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10974 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10975 Work-around for PR gdb/366.
10976
10977 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10978
10979 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10980 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10981 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10982
10983 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10984
10985 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10986 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10987 information.
10988
10989 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10990
10991 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10992 maintainer.
10993
10994 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10995
10996 * README (Reporting Bugs in GDB): Document the bug web page as the
10997 prefered way of submitting bugs.
10998 Fix PR gdb/402.
10999
11000 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11001
11002 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11003 -1. Update comment.
11004 * gdbarch.h, gdbarch.c: Re-generate.
11005
11006 2002-04-07 Andreas Schwab <schwab@suse.de>
11007
11008 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11009 buffer to regcache_collect.
11010
11011 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11012
11013 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11014 * gdbarch.c, gdbarch.h: Re-generate.
11015
11016 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11017
11018 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11019 declaration. Fix -Werror.
11020
11021 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11022
11023 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11024 * gdbarch.c: Regenerate.
11025
11026 2002-04-05 Michael Snyder <msnyder@redhat.com>
11027
11028 * breakpoint.c (clear_command): Rewrite middle section to
11029 combine two loops with identical control conditions.
11030 Add a cleanup to eliminate a memory leak.
11031 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11032
11033 2002-04-05 H.J. Lu (hjl@gnu.org)
11034
11035 * solib-svr4.c (bkpt_names): Add "__start".
11036
11037 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11038
11039 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11040 as test for 64 bit target.
11041
11042 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11043
11044 * h8500-tdep.c (h8500_write_fp): Delete function.
11045 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11046 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11047 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11049 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11050 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11051 (s390_write_fp):
11052 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11053 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11054 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11055 (d10v_write_fp): Delete function.
11056 * inferior.h (write_fp, generic_target_write_fp): Delete
11057 declarations.
11058 * regcache.c (generic_target_write_fp): Delete function.
11059 (write_fp): Delete function.
11060 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11061 * gdbarch.h, gdbarch.c: Regenerate.
11062 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11063 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11064 (sparc64_write_fp): Delete declaration.
11065 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11066 (h8500_write_fp): Delete declaration.
11067
11068 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11069
11070 * sparc-tdep.c (sparc64_write_fp): Delete.
11071 (sparc_push_dummy_frame): Replace write_fp call with code to store
11072 the FP directly.
11073 (sparc_gdbarch_init): Do not initialize write_fp.
11074
11075 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11076
11077 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11078 clause.
11079
11080 2002-03-29 Jim Blandy <jimb@redhat.com>
11081
11082 * stack.c (get_selected_block): Add new argument `addr_in_block',
11083 used to return the exact code address we used to select the block,
11084 not just the block.
11085 * blockframe.c (get_frame_block, get_current_block): Same.
11086 * frame.h (get_frame_block, get_current_block,
11087 get_selected_block): Update declarations.
11088 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11089 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11090
11091 2002-04-05 Michael Snyder <msnyder@redhat.com>
11092
11093 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11094 warning message.
11095
11096 2002-04-05 J. Brobecker <brobecker@gnat.com>
11097
11098 * utils.c (xfullpath): New function.
11099 * defs.h (xfullpath): Add declaration.
11100 * source.c (openp): Use xfullpath in place of gdb_realpath to
11101 avoid resolving the basename part of filenames when the
11102 associated file is a symbolic link. This fixes a potential
11103 inconsistency between the filenames known to GDB and the
11104 filenames it prints in the annotations.
11105 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11106 to be able to match a filename with either the real filename, or
11107 the name of any symbolic link to this file.
11108 (lookup_partial_symtab): Ditto.
11109
11110 2002-04-04 Michael Snyder <msnyder@redhat.com>
11111
11112 * breakpoint.c: Add support for hardware breakpoints in overlays.
11113 (overlay_events_enabled): New state variable.
11114 (insert_breakpoints): Use overlay_events_enabled to decide
11115 whether to attempt to set a breakpoint at the overlay load addr.
11116 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11117 (remove_breakpoint): Use overlay_events_enabled to decide
11118 whether breakpoints need to be removed from overlay load addr.
11119 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11120 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11121 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11122 disable_overlay_breakpoints): Update overlay_events_enabled.
11123
11124 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11125
11126 * dwarf2read.c (struct function_range): New.
11127 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11128 (check_cu_functions): New.
11129 (read_file_scope): Initialize global function lists.
11130 Call dwarf_decode_line after processing children.
11131 (read_func_scope): Add to global function list.
11132 (dwarf_decode_lines): Call check_cu_functions everywhere
11133 record_line is called. Call record_line with a linenumber
11134 of 0 to mark sequence ends.
11135
11136 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11137
11138 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11139 change sync with glibc.
11140
11141 2002-04-03 Jim Blandy <jimb@redhat.com>
11142
11143 * configure.in: Call AC_C_INLINE.
11144 * configure: Regenerated.
11145
11146 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11147
11148 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11149 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11150
11151 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11152
11153 * NEWS: Mention gcore support on FreeBSD/i386.
11154
11155 * fbsd-proc.c: New file.
11156 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11157 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11158
11159 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11160 while statement.
11161
11162 2002-03-29 Jim Blandy <jimb@redhat.com>
11163
11164 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11165 unescaped newlines in string literals, but newer ones don't. So
11166 escape them.
11167
11168 2002-03-26 Michael Snyder <msnyder@redhat.com>
11169 Andrew Cagney <cagney@redhat.com>
11170
11171 * cli/cli-dump.c: New file. Dump memory to file,
11172 restore file to memory.
11173 * cli/cli-dump.h: New file.
11174 * Makefile.in: Add rules, dependencies for cli-dump.o.
11175 * NEWS: Mention new commands.
11176
11177 2002-03-28 Michael Snyder <msnyder@redhat.com>
11178
11179 * symfile.c (symbol_file_add): Move test for null symbols to later.
11180
11181 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11182
11183 From veksler at il.ibm.com:
11184 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11185 the xstrduped original path.
11186 Fix PR gdb/417.
11187
11188 2002-03-27 Michael Snyder <msnyder@redhat.com>
11189
11190 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11191 * infcmd.c (_initialize_infcmd): Ditto.
11192 * language.c (_initialize_language): Ditto.
11193 * symfile.c (_initialize_symfile): Ditto.
11194 * top.c (_init_main): Ditto.
11195 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11196
11197 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11198
11199 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11200 vector registers handling.
11201 (skip_prologue): Handle new AltiVec instructions. Fill in new
11202 fields of frame data.
11203 (frame_get_saved_regs): Fill in information for AltiVec registers.
11204
11205 2002-03-27 Jim Blandy <jimb@redhat.com>
11206
11207 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11208 a function; leave this macro here to invoke that function.
11209 (symbol_init_mangled_name): Declaration for that function.
11210 * symtab.c (symbol_init_mangled_name): New function.
11211
11212 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11213
11214 * valarith.c: Replace strerror with safe_strerror.
11215 * tracepoint.c: Ditto.
11216 * lin-lwp.c: Ditto.
11217 * go32-nat.c: Ditto.
11218 * inflow.c: Ditto.
11219 * gnu-nat.c: Ditto.
11220
11221 2002-03-27 Andreas Schwab <schwab@suse.de>
11222
11223 * event-top.c (command_line_handler): Remove useless if.
11224
11225 2002-03-27 Andreas Jaeger <aj@suse.de>
11226
11227 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11228 comment.
11229
11230 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11231
11232 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11233 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11234 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11235 (x86_64_linux_dr_get_status, supply_gregset),
11236 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11237 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11238 (x86_64_register_info_table): Add.
11239 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11240 (x86_64_register_raw_size, x86_64_register_virtual_type),
11241 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11242 general x86_64_register_info_table.
11243 (i386_gdbarch_init): gdbarch_register_bytes is now set
11244 dynamicaly during initialization.
11245 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11246 * gdbserver/linux-x86-64-low.c: Ditto.
11247
11248 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11249
11250 * gdbserver/server.c (main): Call target_signal_to_host_p
11251 and target_signal_to_host on signals received from the remote.
11252 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11253 target_signal_from_host on signals sent to the remote.
11254 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11255 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11256
11257 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11258
11259 * signals/signals.c: Include "server.h" in gdbserver build.
11260 (target_signal_from_name): Don't use STREQ.
11261 (_initialize_signals): Likewise. Don't include function in
11262 gdbserver build.
11263
11264 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11265
11266 * signals.c: Moved to...
11267 * signals/signals.c: Here.
11268 * Makefile (signals.o): Update.
11269
11270 2002-03-26 Jeff Law (law@redhat.com)
11271
11272 * somread.c (som_symtab_read): Remove some commented out code and
11273 updated related comments. Do not set the minimal symbol table to
11274 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11275 in a dynamic executable.
11276 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11277 where we are unable to find the minimal symbol for the given
11278 PC value.
11279
11280 2002-03-25 Jeff Law (law@redhat.com)
11281
11282 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11283
11284 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11285
11286 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11287
11288 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11289
11290 * command.h: Update copyright.
11291 (struct cmd_list_element): Replace definition with opaque
11292 declaration.
11293 (enum cmd_types): Document that it will eventually be moved to
11294 cli/cli-decode.h
11295 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11296 (MALLOCED_REPLACEMENT): Delete macro.
11297 * Makefile.in (cli_decode_h): Add $(command_h).
11298 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11299 * top.c: Include "cli/cli-decode.h".
11300 * completer.c: Include "cli/cli-decode.h".
11301 * maint.c: Include "cli/cli-decode.h".
11302 * cli/cli-decode.h: Include "command.h".
11303 (enum command_class): Delete.
11304 (enum cmd_types): Comment out.
11305 (enum cmd_auto_boolean): Delete.
11306 (enum var_types): Delete.
11307
11308 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11309
11310 * cli/cli-decode.c: Include "gdb_assert.h".
11311 (add_set_or_show_cmd): New static function.
11312 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11313 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11314 all fields, such as func, from the set command.
11315
11316 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11317
11318 * MAINTAINERS (sh-elf): Change warning flag to -w.
11319
11320 2002-03-23 Andrew Cagney <cagney@redhat.com>
11321
11322 * defs.h (error): Add printf format attribute.
11323 * thread-db.c (thread_from_lwp): Fix error format string.
11324 * stack.c (parse_frame_specification): Ditto.
11325 * cli/cli-decode.c (undef_cmd_error): Ditto.
11326 * scm-lang.c (scm_lookup_name): Ditto.
11327 * tracepoint.c (trace_error): Ditto.
11328 * remote-utils.c (usage): Ditto.
11329 * remote.c (compare_sections_command): Ditto.
11330 Fix PR gdb/328.
11331
11332 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11333
11334 * gdbtypes.c (append_composite_type_field): New function.
11335 (init_composite_type): New function.
11336 * gdbtypes.h (append_composite_type_field): Declare.
11337 (init_composite_type): Ditto.
11338
11339 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11340
11341 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11342 function.
11343 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11344 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11345 structure returning convention for SYSV ABI case, but not
11346 for GNU/Linux, FreeBSD, or NetBSD.
11347
11348 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11349
11350 * symtab.h (lookup_block_symbol): Add mangled_name argument
11351 to prototype.
11352
11353 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11354 with new mangled_name argument.
11355 * linespec.c (decode_line_1): Likewise.
11356 * valops (value_of_this): Likewise.
11357 * symtab.c (lookup_transparent_type): Likewise.
11358 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11359 (lookup_symbol): If we are given a mangled name, pass it down
11360 to lookup_symbol_aux.
11361 (lookup_block_symbol): If we are given a mangled name to check
11362 against, only return symbols which match it.
11363
11364 2002-03-22 Christopher Faylor <cgf@redhat.com>
11365
11366 * win32-nat.c (child_create_inferior): Check for proper shell to use
11367 here, in case the user changes it on the fly.
11368 (_initialize_inftarg): Remove shell path considerations.
11369
11370 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11371
11372 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11373 for gdbarch_max_register_raw_size and max_register_virtual_size.
11374 Adjust copyright year.
11375
11376 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11377
11378 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11379 in a function to cover the entire beginning of the function
11380 as well if it does not already.
11381
11382 2002-03-21 Tom Rix <trix@redhat.com>
11383
11384 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11385 (rs6000_ptrace64): Renamed from ptrace64.
11386
11387 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11388
11389 * gdbserver/remote-utils.c (remote_open): Don't call
11390 getprotobyname, we're all using TCP here so just use
11391 IPPROTO_TCP.
11392 * gdbserver/gdbreplay.c (remote_open): Ditto.
11393
11394 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11395
11396 * regcache.c (_initialize_regcache): No need to call
11397 build_regcache() at this time; it gets called whenever
11398 the gdbarch changes.
11399
11400 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11401
11402 * sparc-nat.c: Include sys/param.h where possible.
11403
11404 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11405
11406 Fix PR gdb/422.
11407 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11408 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11409 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11410 complex types.
11411 * stabsread.c (rs6000_builtin_type): Likewise.
11412 (read_sun_floating_type): Likewise.
11413
11414 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11415
11416 * stabsread.c (read_member_functions): Remove skip code for duplicate
11417 constructor/destructor methods. Use standard parsing for these
11418 methods and just do not chain them to the list of methods after
11419 parsing.
11420
11421 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11422
11423 * coffread.c: Remove redundant static declarations. Replace
11424 occurrences of `PTR' with `void *'.
11425 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11426 * top.h (quit_cover): Likewise.
11427 * defs.h (catch_errors): Likewise.
11428
11429 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11430
11431 * defs.h (XMALLOC): Define.
11432 * gdb-events.sh (XMALLOC): Delete macro.
11433 * gdb-events.c, gdb-events.h: Regenerate.
11434 * gdbarch.sh (XMALLOC): Delete macro.
11435 * gdbarch.c: Regenerate.
11436 * serial.c (XMALLOC): Delete macro.
11437 * ui-file.c (XMALLOC): Ditto.
11438 * ser-unix.h (XMALLOC): Ditto.
11439 * sh-tdep.c (XMALLOC): Ditto.
11440 * ui-out.c (XMALLOC): Ditto.
11441 * utils.c (XMALLOC): Ditto.
11442 * i386-tdep.c (XMALLOC): Ditto.
11443 * gdb-events.c (XMALLOC): Ditto.
11444 * d10v-tdep.c (XMALLOC): Ditto.
11445 * cli-out.c (XMALLOC): Ditto.
11446
11447 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11448 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11449 * ui-file.c, ui-out.c: Ditto.
11450
11451 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11452
11453 * command.h (struct cmd_list_element): Add field context.
11454 (set_cmd_context, get_cmd_context): Declare.
11455 * cli/cli-decode.h: Ditto.
11456 * cli/cli-decode.c (get_cmd_context): New function.
11457 (set_cmd_context): New function.
11458 (add_cmd): Initialize context.
11459 Part of fixing PR gdb/145 and PR gdb/146.
11460
11461 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11462
11463 * cli/cli-decode.c (cmd_type): New function.
11464 * command.h (cmd_type): Declare.
11465 * infrun.c (set_schedlock_func): Call function cmd_type.
11466 * kod.c (kod_set_os): Call cmd_type.
11467 * cris-tdep.c (cris_version_update): Use function cmd_type.
11468 (cris_mode_update, cris_abi_update): Ditto.
11469
11470 * command.h: (execute_cmd_post_hook): Declare.
11471 (execute_cmd_pre_hook): Declare.
11472 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11473 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11474 functions. Execute pre/post hook while ensuring that afterwords
11475 hook_in is cleared.
11476 * top.c (execute_command): Use execute_cmd_post_hook, and
11477 execute_cmd_pre_hook to execute pre/post commands.
11478 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11479 hook_stop_stub.
11480 (hook_stop_stub): Call execute_cmd_pre_hook.
11481
11482 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11483
11484 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11485 set'' and this leads to a core dump. Move xstrdup of
11486 operating_system to after check that it is not NULL.
11487
11488 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11489
11490 * kod.c (kod_set_os): Remove unnecessary check that
11491 ``command->type'' is set_cmd.
11492
11493 * valprint.c (set_input_radix): Use input_radix.
11494 (set_output_radix): Use output_radix.
11495 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11496 isn't reverted.
11497
11498 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11499
11500 * value.h (struct value): Delete field ``substring_addr''. Change
11501 aligner fields to force_doublest_align, force_longest_align,
11502 force_core_addr_align and force_pointer_aligh.
11503
11504 * value.h (struct value): Fix typo in above change.
11505
11506 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11507
11508 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11509 to fix internal_error from ``maintenance print architecture''.
11510
11511 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11512
11513 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11514 for gcc versions after gcc-2.8.1.
11515
11516 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11517
11518 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11519 for method resolution. Restore adjustment of ``this'' pointer after
11520 calling value_struct_elt, which was accidentally removed during the
11521 HP merge.
11522
11523 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11524
11525 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11526 value_of_register.
11527 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11528 get_saved_register.
11529 * value.h (value_of_register): Update.
11530
11531 2002-03-14 Richard Henderson <rth@redhat.com>
11532
11533 * configure.in: Detect declaration for canonicalize_file_name.
11534 * utils.c (canonicalize_file_name): Declare, if needed.
11535 (gdb_realpath): Prefer realpath if available and usable.
11536 * config.in, configure: Rebuild.
11537
11538 2002-03-14 Richard Henderson <rth@redhat.com>
11539
11540 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11541 a constant array bound.
11542
11543 * MAINTAINERS: Add myself to write-after-approval.
11544
11545 2002-03-14 Michael Snyder <msnyder@redhat.com>
11546
11547 * symfile.c (syms_from_objfile): Return immediately if no syms.
11548 (symbol_file_add): Return immediately if no syms.
11549 (find_sym_fns): Return immediately if no syms.
11550
11551 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11552
11553 * gdbserver/remote-util.c (remote_open): Print remote-side's
11554 IP address when remote debugging over the network.
11555
11556 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11557
11558 * config/sparc/fbsd.mh: Fix copyright.
11559 * config/sparc/fbsd.mt: Likewise.
11560
11561 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11562
11563 * MAINTAINERS: Fix typo in name of gdb warnings option.
11564 (x86-64): Fix formating so that this can be parsed by awk.
11565
11566 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11567
11568 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11569 * defs.h: Include "gdb/signals.h".
11570 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11571
11572 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11573
11574 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11575 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11576 from x86-64-tdep.h
11577
11578 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11579 Don Howard <dhoward@redhat.com>
11580
11581 * mips-tdep.c (ST0_FR): Define.
11582 (mips2_fp_compat): New function, temporarily disabled.
11583 (mips_read_fp_register_single): New function.
11584 (mips_read_fp_register_double): New function.
11585 (mips_print_register): Use them.
11586 (do_fp_register_row): Likewise.
11587
11588 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11589
11590 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11591 approval''.
11592
11593 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11594
11595 * stabsread.c (read_member_functions): Fix is_stub test for
11596 static member functions, improve comment.
11597
11598 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11599
11600 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11601 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11602 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11603 commands that set boolean values.
11604 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11605 (arm_rdi_resume): Always initialize PC.
11606 (arm_rdi_open): Don't use rslt as a boolean.
11607 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11608 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11609 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11610 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11611
11612 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11613
11614 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11615 * configure: Rebuilt.
11616
11617 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11618
11619 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11620 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11621
11622 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11623
11624 * cli/cli-decode.c (set_cmd_completer): New function.
11625 * command.h (set_cmd_completer): Declare.
11626 * cli/cli-decode.h (set_cmd_completer): Ditto.
11627
11628 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11629 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11630 * win32-nat.c (_initialize_inftarg): Ditto.
11631 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11632 * proc-api.c (_initialize_proc_api): Ditto.
11633 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11634 * source.c (_initialize_source): Ditto.
11635 * exec.c (_initialize_exec): Ditto.
11636 * solib.c (_initialize_solib): Ditto.
11637 * top.c (init_main): Ditto.
11638 * tracepoint.c (_initialize_tracepoint): Ditto.
11639 * symfile.c (_initialize_symfile): Ditto.
11640 * printcmd.c (_initialize_printcmd): Ditto.
11641 * infcmd.c (_initialize_infcmd): Ditto.
11642 * corefile.c (_initialize_core): Ditto.
11643
11644 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11645
11646 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11647
11648 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11649
11650 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11651
11652 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11653
11654 * NEWS: Update headings, 5.2 has branched.
11655
11656 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11657
11658 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11659 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11660 (register_addr, REGISTER_RAW_SIZE): Likewise.
11661 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11662 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11663
11664 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11665
11666 * MAINTAINERS (x86-64): Add myself.
11667 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11668 changed value_ptr -> struct value *
11669
11670 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11671
11672 * configure.host (sparc64-*-freebsd): Add.
11673 * configure.tgt: Likewise.
11674 * config/sparc/fbsd.mh: New file.
11675 * config/sparc/fbsd.mt: Likewise.
11676 * config/sparc/nm-fbsd.h: Likewise.
11677 * config/sparc/tm-fbsd.h: Likewise.
11678
11679 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11680
11681 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11682 regformats/reg-s390x.dat.
11683
11684 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11685
11686 * utils.c: Add FIXME explaining true/false problem.
11687
11688 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11689
11690 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11691
11692 2002-02-28 Michael Chastain <mec@shout.net>
11693
11694 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11695
11696 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11697
11698 * gdbserver/linux-s390-low.c: New file.
11699 * regformats/reg-s390.dat: New file.
11700 * regformats/reg-s390x.dat: New file.
11701 * gdbserver/configure.srv: Add S/390.
11702 * gdbserver/Makefile.in: Add S/390.
11703 * configure.tgt: Enable gdbserver for S/390.
11704
11705 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11706
11707 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11708 first line of the doc string for "info dos", except at the end of
11709 the sentence, since the short help stops at the first period.
11710
11711 2002-02-28 Jason Merrill <jason@redhat.com>
11712
11713 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11714
11715 2002-02-27 Fred Fish <fnf@redhat.com>
11716
11717 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11718 comment (dumy -> dummy).
11719
11720 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11721
11722 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11723
11724 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11725
11726 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11727
11728 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11729
11730 * gdbserver/acconfig.h: New file.
11731 * gdbserver/i387-fp.c: New file.
11732 * gdbserver/i387-fp.h: New file.
11733 * gdbserver/linux-x86-64.c: New file.
11734 * regformats/reg-x86-64.dat: New file.
11735 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11736 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11737 * gdbserver/configure.in: Add support for regsets.
11738 * gdbserver/config.in: Regenerate.
11739 * gdbserver/configure: Regenerate.
11740 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11741 * gdbserver/linux-low.h: New file.
11742 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11743 for regsets.
11744 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11745 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11746 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11747 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11748 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11749 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11750 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11751 "i387-fp.h". Add PTRACE_GETREGS and friends.
11752 * gdbserver/regcache.c (supply_register): New function.
11753 (supply_register_by_name): New function.
11754 (collect_register): New function.
11755 (collect_register_by_name): New function.
11756
11757 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11758
11759 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11760 (config.status): Add configure.srv dependency.
11761 (server_h): Add config.h dependency.
11762
11763 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11764
11765 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11766 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11767 * gdbserver/configure.srv: Change i386-*-linux* to use
11768 reg-i386-linux.o.
11769
11770 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11771
11772 * x86-64-tdep.c: Re-indent. Update copyright date.
11773
11774 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11775
11776 From Michal Ludvig <mludvig@suse.cz>:
11777 * x86-64-tdep.c (value.h): Delete.
11778 (gdb_assert.h): Include.
11779 (x86_64_register_convert_to_virtual,
11780 x86_64_register_convert_to_raw ): Add check which lets only
11781 floating-point values to be converted.
11782 (value_push): Delete.
11783 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11784 (i386_gdbarch_init): Number of register_bytes fixed.
11785
11786 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11787
11788 * MAINTAINERS: Add x86-64 target.
11789
11790 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11791
11792 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11793 * osfsolib.c (solib_map_sections): Ditto.
11794 * irix5-nat.c (solib_map_sections): Ditto.
11795 * corelow.c (gdb_check_format): Ditto.
11796 * symfile.c (symfile_bfd_open): Ditto.
11797 * solib.c (solib_map_sections): Ditto.
11798 Fix PR gdb/354.
11799
11800 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11801
11802 * remote.c (_initialize_remote): By default, disable ``e'' and
11803 ``E'' step out-of-range packets.
11804
11805 2002-02-26 Andreas Schwab <schwab@suse.de>
11806
11807 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11808 m68k_linux_frame_saved_pc.
11809 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11810 in_sigtramp.
11811 (SIGCONTEXT_PC_OFFSET): Remove.
11812 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11813 m68k_linux_sigtramp_saved_pc): New functions.
11814 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11815 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11816 (UCONTEXT_PC_OFFSET): Define.
11817 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11818 non-RT and RT signal trampolines.
11819
11820 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11821
11822 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11823 (TARGET_NBPG, STACK_END_ADDR): Delete
11824 (VARIABLES_INSIDE_BLOCK): Delete.
11825
11826 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11827
11828 * utils.c (perror_with_name): Make string parameter constant.
11829 (print_sys_errmsg): Ditto.
11830 (query): Ditto.
11831 * defs.h (perror_with_name): Update.
11832 (print_sys_errmsg): Update.
11833 (query): Update.
11834
11835 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11836
11837 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11838 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11839
11840 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11841
11842 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11843 if it already matches the current architecture from the exec file.
11844 Include arch-utils.h for gdbarch_info_init prototype.
11845 * Makefile.in (rs6000-nat.o): Update dependencies.
11846
11847 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11848
11849 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11850 list of exported variables.
11851
11852 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11853
11854 * gdbserver/configure.srv: New file.
11855 * gdbserver/configure.in: Use configure.srv instead
11856 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11857 from it.
11858 * gdbserver/configure: Regenerated.
11859 * gdbserver/terminal.h: New file.
11860 * gdbserver/Makefile.in: Update for configure changes. Remove
11861 more unneeded include paths.
11862
11863 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11864
11865 From wiz at danbala:
11866 * config/sparc/tm-sp64.h: Fix grammar and typos.
11867 Fix PR gdb/287.
11868
11869 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11870
11871 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11872 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11873 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11874 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11875 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11876 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11877 * s390-tdep.c: Ditto.
11878 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11879 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11880 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11881 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11882 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11883 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11884 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11885 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11886 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11887 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11888 Fix PR gdb/378.
11889
11890 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11891
11892 * lin-thread.c: Delete file.
11893 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11894 to gdb_proc_service.h.
11895 * configure: Re-generate.
11896
11897 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11898 * serial.c (serial_open): Delete check for "ocd".
11899 Fix PR gdb/349.
11900
11901 * Makefile.in (linux-thread.o): Delete target.
11902 * linux-thread.c: Delete file.
11903
11904 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11905 renamed SH files to be consistent.
11906
11907 * symtab.c (sort_search_symbols): Use xfree.
11908
11909 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11910
11911 * arm-linux-tdep.c (arm_linux_init_abi): Register
11912 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11913 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11914 definition with undef, since we don't want the sysvr4 definition.
11915 (SKIP_TRAMPOLINE_CODE): Likewise.
11916
11917 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11918
11919 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11920
11921 * configure.in: (AC_CHECK_FUNCS) Added test for
11922 canonicalize_file_name Regenerated.
11923 * config.in, configure: Regenerated.
11924 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11925 defined use canonicalize_file_name.
11926
11927 2002-02-23 Michael Chastain <mec@shout.net>
11928
11929 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11930
11931 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11932
11933 * README: Remove references to cygnus.com.
11934 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11935 dot com'' form. Remove references to cygnus.com and sourceware.
11936
11937 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11938
11939 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11940 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11941 1003.1-2001 no longer allows "head -1".
11942 * gdb/Makefile.in (version.c): Likewise.
11943 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11944 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11945 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11946
11947 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11948
11949 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11950 * command.h (cmd_cfunc_eq): Declare.
11951 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11952
11953 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11954 ``struct cmd_list_element *''.
11955 * cli/cli-cmds.c (is_complete_command): Update. Use
11956 cmd_cfunc_eq.
11957 * top.c (execute_command): Pass the command to
11958 is_complete_command.
11959 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11960
11961 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11962
11963 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11964 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11965 architecture defines.
11966 * s390-tdep.c (s390_gdbarch_init): Likewise.
11967
11968 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11969
11970 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11971 (arm_linux_push_arguments): Likewise.
11972 (arm_linux_init_abi): Register them. Also register linux-specific
11973 call_dummy_words.
11974 (find_minsym_and_objfile): Use strcmp, not STREQ.
11975 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11976 (arm_linux_call_dummy_words): Delete declaration.
11977 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11978 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11979 declarations.
11980 (LOWEST_PC): Delete.
11981
11982 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11983
11984 * maint.c (print_section_info): Do not prepend `0x' to filepos
11985 output, it will be handled by local_hex_string_custom.
11986
11987 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11988
11989 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11990 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11991 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11992
11993 2002-02-22 Jim Blandy <jimb@redhat.com>
11994
11995 Indicate that the bcache functions don't change the strings
11996 they're passed.
11997 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11998 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11999
12000 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12001
12002 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12003
12004 2002-02-21 Christopher Faylor <cgf@redhat.com>
12005
12006 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12007 find the complete path to a loaded DLL.
12008
12009 2002-02-21 Fred Fish <fnf@redhat.com>
12010
12011 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12012 that marks the end of the range of a function, enter a line number
12013 entry that has a line number of zero and a PC offset that matches
12014 the end of the function. This starts a range of PC's for which no
12015 line number information is known.
12016 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12017 PC's for which no line number info is found (line number is zero)
12018 then we didn't find any valid line information.
12019 * symtab.h: Document use of zero line number entry.
12020
12021 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12022
12023 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12024 (have_ptrace_getvrregs): Define for run time checks.
12025 (gdb_vrregset_t): New type for Altivec register handling.
12026 (fetch_register, store_register): Fetch/store altivec register
12027 when needed.
12028 (fetch_altivec_register, store_altivec_register): New functions.
12029 (supply_vrregset, fill_vrregset): New functions.
12030 (fetch_altivec_registers, store_altivec_registers): New functions.
12031 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12032 registers as well.
12033
12034 2002-02-21 Jiri Smid <smid@suse.cz>
12035
12036 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12037
12038 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12039
12040 * Makefile.in (armnbsd-nat.o): Update dependencies.
12041 * armnbsd-nat.c (supply_gregset): New function. Common code to
12042 supply the integer register set.
12043 (supply_fparegset): New function. Similar for FPA registers.
12044 (fetch_regs, fetch_fp_regs): Use them.
12045 (fetch_core_registers): Likewise.
12046 (fetch_elfcore_registers): New function.
12047 (arm_netbsd_elfcore_fns): New core-file type specification.
12048 (_initialize_arm_netbsd_nat): Register it.
12049
12050 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12051
12052 * armnbsd-nat.c: Include gdbcore.h.
12053 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12054 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12055 'void' to declaration, to shut up ARI.
12056 (fetch_core_registers): Make static. Rewrite using supply_register.
12057 (arm_netbsd_core_fns): New core-file type specification.
12058 (_initialize_arm_netbsd_nat): New function.
12059
12060 2002-02-21 Christopher Faylor <cgf@redhat.com>
12061
12062 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12063 value.
12064
12065 2002-02-20 Christopher Faylor <cgf@redhat.com>
12066
12067 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12068 fails.
12069
12070 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12071
12072 * jv-exp.y (parse_number): Change type of implicit longs
12073 to builtin_type_uint64.
12074
12075 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12076
12077 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12078 to be an integer instead of a `union wait'.
12079
12080 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12081
12082 * mips-linux-nat.c: Call the operating system GNU/Linux.
12083 * mips-linux-tdep.c: Likewise.
12084 * mips-tdep.c: Likewise.
12085
12086 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12087
12088 Fix PR gdb/265.
12089 * jv-exp.y (parse_number): Handle 64-bit integers.
12090
12091 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12092
12093 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12094 AC_STDC_HEADERS to AC_HEADER_STDC.
12095 * gdbserver/configure: Regenerated.
12096
12097 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12098
12099 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12100 is defined.
12101 * sparc-tdep.c (get_longjmp_target): Likewise.
12102
12103 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12104
12105 * News: Add news about ARM and Multi-arch. Mention the new target
12106 arm*-*-netbsd*.
12107
12108 2002-02-19 Jim Blandy <jimb@redhat.com>
12109
12110 * stabsread.c (error_type_complaint): Improve error message.
12111
12112 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12113
12114 * gdbserver/README: Update documentation.
12115 * gdbserver/configure.in: Update configury to match documentation.
12116 * gdbserver/Makefile.in: Likewise.
12117 * gdbserver/configure: Regenerated.
12118 * gdbserver/aclocal.m4: New file, generated by aclocal.
12119 * gdbserver/config.in: New file, generated by autoheader.
12120
12121 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12122
12123 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12124 armnbsd-nat.c.
12125
12126 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12127
12128 * arm-tdep.h (enum arm_float_model): New enum.
12129 (struct gdbarch_tdep): Add fp_model.
12130 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12131 up floating-point conversions until we know the floating-point model
12132 in use by the inferior. Don't complain about being unable to
12133 determine the ABI of the inferior when we don't have one.
12134 (arm_extract_return_value): Support different floating-point models.
12135 (arm_store_return_value): Likewise.
12136 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12137 ARM_FLOAT_SOFT.
12138 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12139
12140 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12141
12142 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12143 of ``current_gdbarch''.
12144
12145 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12146
12147 * armnbsd-nat.c : ANSIfy all function declarations.
12148 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12149 (fetch_inferior_registers): Re-implement in terms of above.
12150 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12151 (store_inferior_registers): Re-implement in terms of above.
12152
12153 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12154
12155 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12156 kernel.
12157 * arm-linux-tdep.c: Likewise.
12158 * config/arm/tm-linux.h: Likewise.
12159
12160 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12161
12162 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12163 * config/arm/nbsd.mt (TM_FILE): Delete.
12164 * config/arm/tm-nbsd.h: Delete.
12165
12166 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12167
12168 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12169 Initialize CALL_DUMMY_LENGTH.
12170
12171 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12172
12173 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12174 function.
12175 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12176 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12177 defines one thing and that is incorrect for this port.
12178 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12179
12180 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12181
12182 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12183
12184 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12185
12186 * win32-nat.c (display_selector): New function. Displays information
12187 about the information returned by GetThreadSelectorEntry API function.
12188 (display_selectors): New function. Displays the infomation of
12189 the selector given as argument, or of CS, DS ans FS selectors
12190 if no argument is given.
12191 ( _initialize_inftarg): Add "w32" as info prefix command.
12192 Add "info w32 selector" as command calling display_selectors.
12193
12194 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12195
12196 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12197 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12198 if not defined.
12199
12200 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12201
12202 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12203
12204 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12205
12206 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12207 (arm_fix_call_dummy): Call it.
12208 (arm_call_dummy_breakpoint_offset): Delete.
12209 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12210 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12211
12212 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12213
12214 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12215 Default to func_frame_chain_valid.
12216 * gdbarch.h, gdbarch.c: Re-generate.
12217 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12218
12219 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12220
12221 * ppc-linux-nat.c: Update copyright.
12222 (fetch_register, store_register): Add tid parameter, don't compute
12223 tid here.
12224 (fetch_ppc_registers, store_ppc_registers): Add tid
12225 parameter. Pass it along to callees.
12226 (fetch_inferior_registers, store_inferior_registers): Compute tid
12227 here, and pass it to calleed functions.
12228 (fill_gregset, supply_fpregset): Clean up formatting.
12229
12230 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12231
12232 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12233 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12234
12235 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12236
12237 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12238 * gdbarch.c gdbarch.h: Regenerate.
12239 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12240 function.
12241 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12242 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12243 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12244
12245 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12246 * arm-tdep.c (arm_get_longjmp_target): New function.
12247 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12248 this to a positive value register arm_get_longjmp_target as the
12249 longjmp handler.
12250 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12251 (arm_linux_init_abi): Set up longjmp description in tdep.
12252 * armnbsd-nat.c (get_longjmp_target): Delete.
12253 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12254 description in tdep.
12255 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12256 (get_longjmp_target): Delete declaration.
12257 (GET_LONGJMP_TARGET): Delete.
12258 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12259 (GET_LONGJMP_TARGET): Delete.
12260
12261 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12262
12263 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12264 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12265 of ``current_gdbarch''.
12266
12267 2002-02-17 Tom Tromey <tromey@redhat.com>
12268
12269 * cli/cli-cmds.c (compare_strings): New function.
12270 (complete_command): Only print each unique item once.
12271 * completer.h (complete_line): Declare.
12272 * completer.c (complete_line): New function.
12273 (line_completion_function): Use it.
12274
12275 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12276
12277 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12278 * gdbarch.h, gdbarch.c: Re-generate.
12279
12280 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12283
12284 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12285
12286 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12287 * valops.c (value_arg_coerce): Don't take the address of a reference
12288 to convert an argument to a reference.
12289
12290 2002-02-15 Christopher Faylor <cgf@redhat.com>
12291
12292 * win32-nat.c (get_image_name): New function.
12293 (handle_load_dll): Use get_image_name function.
12294 (get_child_debug_event): Avoid registering debug events until possibly
12295 execed process is started.
12296 (child_create_inferior): Allow invocation via shell so that command
12297 line redirection, etc. works ok.
12298 (_initialize_inftarg): Add new command: "set shell" to control whether
12299 a shell is used to start a process.
12300
12301 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12302
12303 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12304 instead of find_register_by_number.
12305 (cannot_store_register): Likewise.
12306
12307 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12308
12309 * dwarf2read.c: Replace fprintf (stderr, ...) by
12310 fprintf_unfiltered (gdb_stderr, ...).
12311
12312 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12313
12314 * gdbserver/gdbserver.1: Document --attach.
12315
12316 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12317
12318 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12319 descriptions.
12320 * arm-tdep.c (arm_default_arm_le_breakpoint)
12321 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12322 (arm_default_thumb_be_breakpoint): New. Initialize them from
12323 traditional breakpoint defines.
12324 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12325 (arm_gdbarch_init): Initialize new breakpoint variables.
12326 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12327 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12328 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12329 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12330 code out to ...
12331 (arm_netbsd_init_abi_common): ... here; new function.
12332 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12333 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12334 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12335 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12336
12337 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12338
12339 * arm-tdep.h (enum arm_abi): New enum.
12340 (struct gdbarch_tdep): New structure.
12341 (LOWEST_PC): Provide a default.
12342 (arm_gdbarch_register_os_abi): Declare new function.
12343 * arm-tdep.c (arm_abi_names): New array.
12344 (process_note_abi_tag_sections): New function.
12345 (get_elfosabi): New function.
12346 (arm_gdbarch_register_os_abi): New function.
12347 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12348 support for that ABI has been built in, then call the appropriate
12349 configuration routine. Use gdbarch_num_regs() to get the number
12350 of registers.
12351 (arm_dump_tdep): New function.
12352 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12353 place-holder functions.
12354 (_initialize_arm_tdep): Register them.
12355 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12356
12357 * armnbsd-tdep.c: New file.
12358 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12359 * config/arm/nbsd.mt (TDEPFILES): Add it.
12360 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12361
12362 * armnbsd-nat.c: Include regcache.h.
12363 * Makefile.in (armnbsd-nat.o): Update dependency list.
12364
12365 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12366
12367 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12368
12369 * gdbserver/Makefile.in: Fix typos in target rules.
12370
12371 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12372
12373 Fix part of PR gdb/267.
12374 * linespec.c (find_methods): Handle constructors specially for now.
12375
12376 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12377
12378 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12379 handling.
12380 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12381 standard_coerce_float_to_double().
12382
12383 2002-02-14 Christopher Faylor <cgf@redhat.com>
12384
12385 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12386 GDBINIT_FILENAME.
12387
12388 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12389
12390 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12391 find_variant_by_name, because it confuses the multiarch
12392 framework. Return NULL if there isn't an architecture with the
12393 user supplied name, instead of forcing a different one without
12394 recording the change with the multiarch machinery.
12395 (find_variant_by_name): Delete.
12396
12397 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12398
12399 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12400 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12401
12402 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12403
12404 * stack.c (print_frame_info_base): When calling
12405 print_frame_info_listing_hook, set current_source_symtab.
12406
12407 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12408
12409 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12410 and remove unused $(INCLUDE_DIR).
12411 Add regcache.c to OBS.
12412 Add generated register protocol files to clean target.
12413 Update dependencies for new objects, obsolete old target code.
12414
12415 * gdbserver/linux-low.c: Remove all platform-specific code to
12416 new files. Remove various dead code. Update to use regcache
12417 functionality.
12418 * gdbserver/remote-utils.c (fromhex): Add return statement
12419 to quiet warning.
12420 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12421 constant.
12422 (input_interrupt): Add integer parameter to match prototype
12423 of a signal handler.
12424 (outreg): Use register_data ().
12425 (prepare_resume_reply): Use gdbserver_expedite_regs.
12426 * gdbserver/server.c (main): Dynamically allocate own_buf because
12427 PBUFSIZ is no longer constant. Use registers_to_string () and
12428 registers_from_string ().
12429 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12430 for error (), fatal (), and warning (). Update definition of
12431 PBUFSIZ to use regcache functionality. Add include guard.
12432 * gdbserver/utils.c (fatal): Add missing ``const''.
12433 (warning): New function.
12434
12435 * regformats/regdat.sh: Include "regcache.h" in generated files.
12436 Provide init_registers () function.
12437 * regformats/regdef.h: Add prototype for set_register_cache ().
12438 Add include guard.
12439
12440 * gdbserver/linux-arm-low.c: New file.
12441 * gdbserver/linux-i386-low.c: New file.
12442 * gdbserver/linux-ia64-low.c: New file.
12443 * gdbserver/linux-m68k-low.c: New file.
12444 * gdbserver/linux-mips-low.c: New file.
12445 * gdbserver/linux-ppc-low.c: New file.
12446 * gdbserver/linux-sh-low.c: New file.
12447
12448 * gdbserver/regcache.c: New file.
12449 * gdbserver/regcache.h: New file.
12450
12451 * gdbserver/low-linux.c: Removed obsolete file.
12452
12453 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12454
12455 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12456 * config/i386/linux.mt: Likewise.
12457 * config/ia64/linux.mt: Likewise.
12458 * config/m68k/linux.mh: Likewise.
12459 * config/powerpc/linux.mh: Likewise.
12460 * config/mips/linux.mt: Likewise.
12461
12462 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12463
12464 * config/i386/i386lynx.mh: Mark gdbserver variables
12465 as (currently) obsolete for this target.
12466 * config/i386/nbsd.mt: Likewise.
12467 * config/i386/nbsdelf.mt: Likewise.
12468 * config/m32r/m32r.mt: Likewise.
12469 * config/m68k/m68klynx.mh: Likewise.
12470 * config/m68k/nbsd.mt: Likewise.
12471 * config/m68k/sun3os4.mh: Likewise.
12472 * config/mips/vr5000.mt: Likewise.
12473 * config/ns32k/nbsd.mt: Likewise.
12474 * config/pa/hppabsd.mh: Likewise.
12475 * config/pa/hppaosf.mh: Likewise.
12476 * config/powerpc/nbsd.mt: Likewise.
12477 * config/rs6000/rs6000lynx.mh: Likewise.
12478 * config/s390/s390.mt: Likewise.
12479 * config/s390/s390x.mt: Likewise.
12480 * config/sparc/sparclynx.mh: Likewise.
12481 * config/sparc/sun4os4.mh: Likewise.
12482 * config/i386/x86-64linux.mt: Likewise.
12483 * config/sparc/linux.mh: Likewise.
12484
12485 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12486
12487 * configure.tgt: Configure gdbserver only for known working
12488 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12489 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12490 SUBDIRS if it is configured. Update comment for ${nativefile}.
12491 * configure: Regenerated.
12492
12493 2002-02-13 Michael Snyder <msnyder@redhat.com>
12494
12495 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12496
12497 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12498 (default_gcore_mach): Just return 0, work around a problem in bfd.
12499 (default_gcore_target): OK to return NULL if exec_bfd is null.
12500 (make_mem_sec): Use a cast, avoid a warning.
12501
12502 * procfs.c (find_memory_regions_callback): Use a cast instead of
12503 calling host_pointer_to_address (which complains if
12504 sizeof (host pointer) != sizeof (target pointer)).
12505 (procfs_make_note_section): Avoid overflow in psargs string.
12506
12507 * procfs.c (procfs_make_note_section): Make the default
12508 implementation return an error.
12509
12510 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12511
12512 * procfs.c (procfs_make_note_section): Provide a default definition
12513 (for alpha-dec-osf4.0f). Fix typos.
12514
12515 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12516
12517 * linux-proc.c: Add include of regcache.h.
12518 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12519
12520 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12521
12522 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12523 * memattr.c (create_mem_region): Disallow useless empty region.
12524 Regions are half-open intervals, so allow [A..B) [B..C) as
12525 non-overlapping.
12526
12527 2002-02-13 Michael Chastain <mec@shout.net>
12528
12529 * defs.h: Kill CONST_PTR.
12530 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12531 * c-lang.c (c_builtin_types): Likewise.
12532 * ch-lang.c (ch_builtin_types): Likewise.
12533 * f-lang.c (f_builtin_types): Likewise.
12534 * language.c (unknown_builtin_types): Likewise.
12535 * m2-lang.c (m2_builtin_types): Likewise.
12536 * p-lang.c (pascal_builtin_types): Likewise.
12537 * scm-lang.c (c_builtin_types): Likewise.
12538
12539 2002-02-13 Keith Seitz <keiths@redhat.com>
12540
12541 * arm-tdep.h (arm_get_next_pc): Add declaration.
12542
12543 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12544
12545 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12546 with other related struct-returning functions.
12547 (arm_extract_struct_value_address): New function.
12548 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12549 initialize float_format, double_format and long_double_format as
12550 appropriate to the endianness of the target.
12551 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12552 (arm_use_struct_convention): Delete declaration.
12553 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12554
12555 2002-02-13 Keith Seitz <keiths@redhat.com>
12556
12557 * defs.h (core_addr_to_string_nz): New function.
12558
12559 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12560
12561 Apply missing bits of 2002-01-15 patch.
12562 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12563 (fill_fpregset): Use i387_fill_fsave.
12564
12565 2002-02-12 Keith Seitz <keiths@redhat.com>
12566
12567 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12568 (core_addr_to_string_nz): New function.
12569
12570 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12571
12572 * arm-linux-nat.c: Really include arm-tdep.h.
12573 * config/arm/tm-linux.h (struct type, struct value): Declare.
12574
12575 2002-02-11 Michael Snyder <msnyder@redhat.com>
12576
12577 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12578 (gcore section): Ifdef for Solaris and Unixware only.
12579 (procfs_do_thread_registers): Unixware needs one lwpstatus
12580 per thread (not one prstatus or pstatus).
12581 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12582 not over all gdb threads. For unixware, call elfcore_write_pstatus
12583 once before iterating over threads.
12584
12585 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12586
12587 * arm-tdep.h: New file.
12588 * arm-tdep.c: Include arm-tdep.h.
12589 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12590 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12591 (arm_print_float_info, arm_register_type, convert_to_extended)
12592 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12593 (arm_extract_return_value, arm_register_name): Make static.
12594 (arm_software_single_step): Similarly. Fix types in declaration.
12595 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12596 (arm_store_return_value, arm_store_struct_return): New functions.
12597 (arm_gdbarch_init): Register the above functions. Also register
12598 call_dummy_start_offset, sizeof_call_dummy_words,
12599 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12600 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12601 max_register_virtual_size, register_size. Set up
12602 prologue_cache.saved_regs here, rather than ...
12603 (_initialize_arm_tdep): ... here.
12604 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12605 declarations.
12606 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12607 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12608 (arm_print_float_info, arm_register_type, convert_to_extended)
12609 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12610 (arm_extract_return_value, arm_register_name): Delete declarations.
12611 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12612 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12613 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12614 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12615 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12616 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12617 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12618 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12619 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12620 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12621 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12622 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12623 interface.
12624 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12625 * remote-rdi.c remote-rdp.c: Likewise.
12626 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12627 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12628 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12629 definition.
12630
12631 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12632 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12633 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12634 from non-ARM_ prefixed definitions.
12635 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12636 all uses of above.
12637 * remote-rdi.c remote-rdp.c: Likewise.
12638 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12639
12640 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12641
12642 * arm-tdep.c (arm_frameless_function_invocation)
12643 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12644 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12645 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12646 (arm_pop_frame, arm_get_next_pc): Make static.
12647 (arm_gdbarch_init): Register above in gdbarch structure.
12648 (arm_read_fp): Renamed from arm_target_read_fp.
12649 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12650 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12651 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12652 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12653 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12654 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12655 (arm_pc_is_thumb_dummy): Delete declarations.
12656 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12657 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12658 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12659 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12660
12661 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12662
12663 * symtab.c (compare_search_syms): New function.
12664 (sort_search_symbols): New function.
12665 (search_symbols): Sort symbols after searching rather than
12666 before.
12667
12668 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12669
12670 * NEWS: Linux -> GNU/Linux.
12671
12672 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12673
12674 * gdbarch.sh: For for level one methods, disallow a definition
12675 when partially multi-arched. Add comments explaining rationale.
12676 * gdbarch.h: Re-generate.
12677
12678 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12679
12680 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12681 multi-arch partial.
12682
12683 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12684
12685 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12686 field. Use diff -u.
12687 * gdbarch.c: Re-generate.
12688
12689 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12690
12691 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12692 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12693 partial.
12694
12695 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12696
12697 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12698 multi-arch partial.
12699 (PUSH_ARGUMENTS): Switch to using predefault.
12700 * gdbarch.c: Regenerate.
12701
12702 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12703
12704 * valops.c (PUSH_ARGUMENTS): Delete definition.
12705 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12706 partial. Default to default_push_arguments.
12707 * gdbarch.h, gdbarch.c: Regenerate.
12708
12709 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12710
12711 * defs.h (throw_exception): Rename return_to_top_level. Update
12712 comments.
12713 * utils.c (error_stream, internal_verror, quit): Ditto.
12714 * top.c (throw_exception, catcher): Ditto.
12715 * sparclet-rom.c (sparclet_load): Ditto.
12716 * remote.c (interrupt_query, minitelnet): Ditto.
12717 * remote-sds.c (interrupt_query): Ditto.
12718 * remote-mips.c (mips_error, mips_kill): Ditto.
12719 * ocd.c (interrupt_query): Ditto.
12720 * monitor.c (monitor_interrupt_query): Ditto.
12721 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12722 * target.h: Update comment.
12723
12724 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12725
12726 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12727
12728 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12729 default_double_format.
12730 * gdbarch.h, gdbarch.c: Re-generate.
12731 * findvar.c (floatformat_unknown): Delete variable definition.
12732 * doublest.h (floatformat_unknown): Delete variable declaration.
12733
12734 2002-02-09 Jim Blandy <jimb@redhat.com>
12735
12736 * stabsread.c (read_type): Add code to parse Sun's syntax for
12737 prototyped function types.
12738
12739 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12740
12741 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12742 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12743
12744 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12745
12746 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12747 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12748 now _initialize_xcoffsolib gets called again and overrides the
12749 commands from solib.c in a native configuration.
12750
12751 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12752
12753 * doublest.c (store_typed_floating): Don't try to return a value.
12754 Fixes PR gdb/290.
12755
12756 2002-02-08 Jim Blandy <jimb@redhat.com>
12757
12758 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12759 is prototyped and has no arguments, print its argument list as
12760 `(void)'.
12761
12762 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12763
12764 * MAINTAINERS (write-after-approval): Add myself.
12765 (paper-trail): I've escaped!
12766
12767 2002-02-08 Christopher Faylor <cgf@redhat.com>
12768
12769 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12770 changes.
12771 (_initialize_check_for_gdb_ini): Ditto.
12772
12773 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12774
12775 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12776 xaprintf -> xasprintf.
12777
12778 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12779
12780 * win32-nat.c: Remove use of printf and sprintf functions.
12781
12782 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12783
12784 * arm-tdep.c (arm_frame_chain_valid): Make static.
12785 (arm_push_arguments): Likewise.
12786 (arm_gdbarch_init): New function.
12787 (_initialize_arm_tdep): Call it.
12788 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12789 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12790 (FRAME_CHAIN_VALID): Delete.
12791 (arm_frame_chain_valid): Delete declaration.
12792 (PUSH_ARGUMENTS): Delete.
12793 (arm_push_arguments): Delete declaration.
12794 (CALL_DUMMY_P): Delete.
12795
12796 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12797 Corinna Vinschen <vinschen@redhat.com>
12798
12799 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12800 on builtin float types.
12801
12802 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12803
12804 * utils.c: Include <curses.h> before "bfd.h".
12805 * tui/tui-hooks.c: Likewise.
12806 * tui/tui.c: Likewise.
12807 * tui/tuiCommand.c: Likewise.
12808 * tui/tuiData.c: Likewise.
12809 * tui/tuiDataWin.c: Likewise.
12810 * tui/tuiDisassem.c: Likewise.
12811 * tui/tuiGeneralWin.c: Likewise.
12812 * tui/tuiIO.c: Likewise.
12813 * tui/tuiLayout.c: Likewise.
12814 * tui/tuiRegs.c: Likewise.
12815 * tui/tuiSource.c: Likewise.
12816 * tui/tuiSourceWin.c: Likewise.
12817 * tui/tuiStack.c: Likewise.
12818 * tui/tuiWin.c: Likewise.
12819
12820 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12821
12822 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12823 to include space for pseudoregs as well. Update loops accordingly.
12824 (sh_fp_frame_init_saved_regs): Ditto.
12825 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12826
12827 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12828
12829 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12830 Add Richard Earnshaw to Arm maintainers.
12831
12832 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12833
12834 * defs.h (warning_begin): Delete declaration.
12835
12836 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12837 Delete macro.
12838
12839 2002-02-07 Michael Snyder <msnyder@redhat.com>
12840
12841 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12842 Logic bug, remove misplaced else.
12843
12844 2002-02-07 Klee Dienes <klee@apple.com>
12845
12846 * fork-inferior.c (fork_inferior): Add '!' to the list of
12847 characters that need to be quoted when building a string for the
12848 shell. Quote '!' specifically with a backslash, since CSH chokes
12849 when trying to evaluate "str!str".
12850
12851 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12852
12853 * rdi-share/host.h: Only provide a typedef for bool if it is not
12854 defined.
12855
12856 2002-02-04 Michael Snyder <msnyder@redhat.com>
12857
12858 * breakpoint.h (enum bptype): Add new overlay event bp type.
12859 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12860
12861 * breakpoint.c (create_internal_breakpoint): New function.
12862 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12863 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12864 (create_thread_event_breakpoint): Ditto.
12865 (create_solib_event_breakpoint): Ditto.
12866 (create_overlay_event_breakpoint): New function.
12867 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12868 (update_breakpoints_after_exec): Delete and re-initialize
12869 overlay event breakpoints after an exec. Add FIXME comment
12870 about longjmp breakpoint.
12871 (print_it_typical): Ignore overlay event breakpoints.
12872 (print_one_breakpoint): Ditto.
12873 (mention): Ditto.
12874 (bpstat_what): Do not stop for overlay event breakpoints.
12875 (delete_breakpoint): Don't delete overlay event breakpoints.
12876 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12877 (breakpoint_re_set): Re-create overlay event breakpoint.
12878
12879 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12880 (overlay_manual_command): Disable overlay breakpoints.
12881 (overlay_off_command): Disable overlay breakpoints.
12882
12883 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12884
12885 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12886 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12887 to here from config/tm-arm.h.
12888 (coff_sym_is_thumb): Make static.
12889 (arm_elf_make_msymbol_special): New function.
12890 (arm_coff_make_msymbol_special): New function.
12891 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12892 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12893 (coff_sym_is_thumb): Delete declaration.
12894 (arm_elf_make_msymbol_special): Declare.
12895 (arm_coff_make_msymbol_special): Declare.
12896 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12897 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12898
12899 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12900
12901 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12902
12903 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12904
12905 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12906 * gdbarch.c gdbarch.h: Regenerate.
12907 * arch-utils.c (default_print_float_info): New function.
12908 * arch-utils.h (default_print_float_info): Prototype it.
12909 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12910 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12911 (PRINT_FLOAT_INFO): Document it.
12912
12913 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12914 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12915 (PRINT_FLOAT_INFO): Define.
12916
12917 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12918
12919 * win32-nat.c (_initialize_check_for_gdb_ini):
12920 Add typecast to sprintf argument to suppress a warning.
12921
12922 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12923
12924 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12925 to allow easier handling of pass state.
12926 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12927 that gives exception name and address.
12928 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12929 and set last_sig value to ourstatus->value.sig. Some missing
12930 exceptions added.
12931 (child_continue): Correctly report continue_status.
12932 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12933 TARGET_SIGNAL_0 (new default value).
12934 (child_resume): consider sig argument passed to decide if
12935 the exception should be passed to debuggee or not.
12936
12937 2002-02-05 Michael Snyder <msnyder@redhat.com>
12938
12939 * regcache.c (fetch_register): Call target_fetch_register
12940 only if we don't call FETCH_PSEUDO_REGISTER.
12941 (store_register): Call target_store_register only if we
12942 don't call STORE_PSEUDO_REGISTER.
12943
12944 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12945
12946 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12947 ELF_MAKE_MSYMBOL_SPECIAL.
12948 * gdbarch.c, gdbarch.h: Regenerate.
12949 * arch-utils.c (default_make_msymbol_special): New function.
12950 * arch-utils.h (default_make_msymbol_special): Export.
12951 * elfread.c (elf_symtab_read): Compile use of
12952 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12953 multiarched.
12954 * coffread.c (coff_symtab_read): Ditto, for
12955 COFF_MAKE_MSYMBOL_SPECIAL.
12956
12957 2002-02-05 Jim Blandy <jimb@redhat.com>
12958
12959 * solib-svr4.c (svr4_truncate_ptr): New function.
12960 (svr4_relocate_section_addresses): Do the address arithmetic with
12961 the appropriate truncation for target addresses, even when
12962 CORE_ADDR is larger than a target address.
12963
12964 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12965
12966 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12967 to (int *).
12968
12969 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12970
12971 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12972 code.
12973
12974 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12975
12976 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12977
12978 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12979
12980 * gdbserver/linux-low.c: Remove unused include files.
12981
12982 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12983
12984 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12985 (read_inferior_memory): Use it.
12986 (write_inferior_memory): Likewise.
12987
12988 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12989
12990 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12991 grubbing through sys_errlist.
12992
12993 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12994
12995 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12996
12997 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12998 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12999
13000 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13001
13002 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13003 (do_sfunc, set_cmd_sfunc): New functions.
13004
13005 * command.h (struct cmd_list_element): Add field func.
13006 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13007 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13008 * cli/cli-decode.h: Ditto.
13009
13010 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13011 (help_all, help_cmd_list): Ditto.
13012 (find_cmd, complete_on_cmdlist): Ditto.
13013 * top.c (execute_command): Ditto.
13014
13015 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13016 function.sfunc.
13017
13018 * infcmd.c (notice_args_read): Fix function signature.
13019
13020 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13021 * cli/cli-decode.c (add_set_cmd): Ditto.
13022 * utils.c (initialize_utils): Ditto.
13023 * maint.c (_initialize_maint_cmds): Ditto.
13024 * infrun.c (_initialize_infrun): Ditto.
13025 * demangle.c (_initialize_demangler): Ditto.
13026 * remote.c (add_packet_config_cmd): Ditto.
13027 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13028 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13029 * proc-api.c (_initialize_proc_api): Ditto.
13030 * kod.c (_initialize_kod): Ditto.
13031 * valprint.c (_initialize_valprint): Ditto.
13032 * top.c (init_main): Ditto.
13033 * infcmd.c (_initialize_infcmd): Ditto.
13034 * corefile.c (_initialize_core): Ditto.
13035 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13036 * arch-utils.c (initialize_current_architecture): Ditto.
13037 (_initialize_gdbarch_utils): Ditto.
13038 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13039
13040 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13041 * wince.c (_initialize_inftarg): Ditto.
13042 * symfile.c (_initialize_symfile): Ditto.
13043 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13044 * language.c (_initialize_language): Ditto.
13045 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13046
13047 2002-02-04 Michael Snyder <msnyder@redhat.com>
13048
13049 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13050
13051 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13052
13053 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13054 Add rules for building the register data files.
13055
13056 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13057
13058 * regformats/regdat.sh: Add braces to the definition of
13059 expedite_regs_${arch}.
13060
13061 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13062
13063 * regformats/regdef.h (struct reg): Add comment describing the
13064 requirements for offset and size fields.
13065
13066 2002-02-04 Andreas Schwab <schwab@suse.de>
13067
13068 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13069 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13070
13071 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13072
13073 * gdbarch.sh (copyright): Update years in generated header.
13074 (SMASH_TEXT_ADDRESS): Add rule.
13075 * gdbarch.h, gdbarch.c: Re-generate.
13076 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13077 * dbxread.c: Likewise.
13078 * dwarfread.c: Likewise.
13079 * elfread.c: Likewise.
13080 * somread.c: Likewise.
13081
13082 * arm-tdep.c (arm_smash_text_address): New function.
13083 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13084
13085 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13086
13087 Add support for hardware watchpoints on win32 native.
13088 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13089 CONTEXT_DEBUG_REGISTERS.
13090 (dr variable): New variable. Static array containing a local copy
13091 of debug registers.
13092 (debug_registers_changed): New variable. Reflects when debug registers
13093 are changed and need to be written to inferior.
13094 (debug_registers_used): New variable. Reflects when any debug register
13095 was set, used when new threads are created.
13096 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13097 i386-nat code.
13098 (thread_rec): Set dr array if id is the thread of current_event .
13099 (child_continue, child_resume): Change the debug registers for all
13100 threads if debug_registers_changed.
13101 (child_add_thread): Change the debug registers if debug_registers_used.
13102 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13103 Link nm.h to new nm-cygwin.h file.
13104 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13105 of hardware registers.
13106
13107 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13108
13109 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13110 Restore behavour broken by 2002-01-20 Andrew Cagney
13111 <ac131313@redhat.com> IEEE_FLOAT removal.
13112
13113 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13114
13115 * c-valprint.c (c_val_print): Pass a proper valaddr to
13116 cp_print_class_method.
13117 * valops.c (search_struct_method): If there is only one method
13118 and args is NULL, return that method.
13119
13120 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13121
13122 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13123 accessing tag_name directly.
13124
13125 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13126
13127 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13128 of accessing tag_name directly.
13129
13130 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13131
13132 PR gdb/280
13133 * gdbtypes.c (replace_type): New function.
13134 * gdbtypes.h (replace_type): Add prototype.
13135 * stabsread.c (read_type): Use replace_type.
13136
13137 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13138
13139 * Makefile.in (memattr.o): Add missing dependencies rule.
13140
13141 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13142
13143 * breakpoint.c (break_at_finish_command): Really export.
13144 (break_at_finish_at_depth_command): Ditto.
13145 (tbreak_at_finish_command): Ditto.
13146 * hppa-tdep.c: Include completer.h.
13147 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13148 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13149
13150 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13151
13152 * utils.c (do_write): New function.
13153 (error_stream): Rewrite combining the code from error_begin and
13154 verror.
13155 (verror): Rewrite using error_stream.
13156 (error_begin): Delete function.
13157
13158 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13159
13160 * utils.c (error_begin): Make static.
13161 * defs.h (error_begin): Delete declaration.
13162
13163 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13164 (decode_line_1): Use cplusplus_error instead of error_begin,
13165 cplusplus_hint and return_to_top_level.
13166 * coffread.c (coff_symfile_read): Use error instead of error_begin
13167 and return_to_top_level.
13168 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13169
13170 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13171
13172 * language.h (type_error, range_error): Make string parameter
13173 constant.
13174 * language.c (warning_pre_print): Delete extern declaration.
13175 * dwarfread.c (warning_pre_print): Ditto.
13176 * language.c (type_error, range_error): Rewrite to use verror and
13177 vwarning instead of warning_begin.
13178
13179 2002-02-01 Michael Snyder <msnyder@redhat.com>
13180
13181 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13182 (set_ignore_count): Move misplaced comment back where it belongs.
13183
13184 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13185
13186 * command.h (NO_FUNCTION): Delete macro.
13187 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13188 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13189 * tracepoint.c (_initialize_tracepoint): Ditto.
13190 * cli/cli-decode.c (add_set_cmd): Ditto.
13191 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13192
13193 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13194
13195 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13196 Update ``this'' pointer when calling virtual functions.
13197
13198 2002-02-01 Michael Snyder <msnyder@redhat.com>
13199
13200 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13201 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13202
13203 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13204
13205 * regformats/reg-arm.dat: New file.
13206 * regformats/reg-i386.dat: New file.
13207 * regformats/reg-ia64.dat: New file.
13208 * regformats/reg-m68k.dat: New file.
13209 * regformats/reg-mips.dat: New file.
13210 * regformats/reg-ppc.dat: New file.
13211 * regformats/reg-sh.dat: New file.
13212 * regformats/regdef.h: New file.
13213 * regformats/regdat.sh: New file.
13214
13215 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13216
13217 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13218 (arm_frame_args_address, arm_frame_locals_address): New functions.
13219 (arm_frame_num_args): New function.
13220 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13221 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13222 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13223
13224 2002-01-31 Michael Snyder <msnyder@redhat.com>
13225
13226 * breakpoint.c (break_at_finish_command): Export.
13227 (break_at_finish_at_depth_command): Export.
13228 (tbreak_at_finish_command): Export.
13229 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13230 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13231 "txbreak" commands, which are HPPA specific.
13232
13233 * printcmd.c (disassemble_command): Remove an ancient
13234 artifact of an old merge.
13235
13236 * symfile.h (enum overlay_debugging_state):
13237 Define enum constant values for overlay mode.
13238 * symfile.c (overlay_debugging): Use enums instead of literals.
13239 (overlay_is_mapped, overlay_auto_command,
13240 overlay_manual_command): Ditto.
13241
13242 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13243 breakpoint_here_p, breakpoint_inserted_here_p,
13244 breakpoint_thread_match, bpstat_stop_status,
13245 describe_other_breakpoints, check_duplicates, clear_command):
13246 Coding standard fixes.
13247
13248 * target.c (target_xfer_memory): Add spaces, coding standard.
13249 (do_xfer_memory): Add missing line to trust-readonly
13250 code: check bfd SEC_READONLY flag for section.
13251
13252 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13253
13254 * PROBLEMS: Fix typo, 5.1->5.1.1.
13255
13256 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13257
13258 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13259 data symbols, since we search based on textlow and texthigh.
13260 (find_pc_sect_symtab): Likewise.
13261
13262 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13263
13264 * defs.h (vwarning): Declare.
13265 * utils.c (vwarning): New function.
13266 (warning): Call vwarning.
13267 (warning_begin): Delete function.
13268
13269 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13270 the warning message.
13271 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13272 warning_begin.
13273
13274 2002-01-30 Michael Snyder <msnyder@redhat.com>
13275
13276 * NEWS: Mention "set trust-readonly-sections" command.
13277 Mention generate-core-file command.
13278
13279 2002-01-15 Michael Snyder <msnyder@redhat.com>
13280
13281 * target.c: New command, "set trust-readonly-sections on".
13282 (do_xfer_memory): Honor the suggestion to trust readonly sections
13283 by reading them from the object file instead of from the target.
13284 (initialize_targets): Register command "set trust-readonly-sections".
13285
13286 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13287
13288 * parse.c (target_map_name_to_register): Simplify, search regs and
13289 pseudo-regs using a single loop.
13290
13291 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13292
13293 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13294
13295 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13296
13297 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13298 * config/i386/i386v42mp.mh: Add i387-nat.o .
13299 * i386v4-nat.c: Include i387-nat.h.
13300 (supply_fpregset): Use i387_supply_fsave.
13301 (fill_fpregset): Use i387_fill_fsave.
13302
13303 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13304
13305 * arm-tdep.c (arm_call_dummy_words): Define.
13306 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13307 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13308 (CALL_DUMMY_WORDS): Define.
13309 (arm_call_dummy_words): Declare.
13310 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13311 (arm_linux_call_dummy_words): Declare.
13312
13313 2002-01-30 Andreas Schwab <schwab@suse.de>
13314
13315 * m68klinux-nat.c: Fix last change to use regcache_collect
13316 instead of referencing registers[] directly.
13317
13318 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13319
13320 * parse.c (target_map_name_to_register): Delete code wrapped in
13321 #ifdef REGISTER_NAME_ALIAS_HOOK.
13322
13323 2002-01-28 Michael Snyder <msnyder@redhat.com>
13324
13325 * regcache.c (legacy_read_register_gen): Need to be able to
13326 read pseudo-register as well as real register.
13327 (legacy_write_register_gen): Ditto.
13328
13329 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13330
13331 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13332 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13333 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13334 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13335 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13336 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13337 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13338 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13339 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13340 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13341 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13342 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13343 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13344 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13345 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13346 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13347 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13348 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13349 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13350 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13351
13352 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13353
13354 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13355 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13356 (initialize_current_architecture): Update target_byte_order using
13357 information from BFD.
13358 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13359 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13360
13361 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13362
13363 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13364 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13365
13366 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13367 #ifdef INVALID_FLOAT.
13368 * infcmd.c (do_registers_info): Ditto.
13369 * values.c (unpack_double): Ditto. Add comment.
13370
13371 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13372 already commented out.
13373
13374 2002-01-26 Andreas Schwab <schwab@suse.de>
13375
13376 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13377 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13378 registers and add support for PTRACE_GETREGS.
13379
13380 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13381
13382 GDB 5.1.1 released from 5.1 branch.
13383 * NEWS: Add 5.1.1 news.
13384 * README: Sync with 5.1 branch.
13385
13386 2002-01-23 Fred Fish <fnf@redhat.com>
13387
13388 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13389 stabstring on initial malloc. Reallocing will copy it for us,
13390 if necessary.
13391
13392 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13393
13394 * Makefile.in (hpread_h): Delete.
13395 (HFILES_NO_SRCDIR): Remove hpread.h.
13396 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13397 (hpread.o): Update dependencies.
13398 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13399
13400 * hp-psymtab-read.c: Remove file.
13401 * hp-symtab-read.c: Remove file.
13402 * hpread.h: Remove file.
13403
13404 * hpread.c: Merge all contents of hp-psymtab-read.c,
13405 hp-symtab-read.c and hpread.h into this file, as it was prior to
13406 January 1999.
13407
13408 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13409 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13410 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13411 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13412
13413 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13414
13415 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13416 fill_gregset): Call gdbarch_tdep() just once, assign result to
13417 variable and use that, instead of calling the function several
13418 times.
13419
13420 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13421
13422 * configure.host: Accept sparcv9 as alias for sparc64.
13423 * configure.tgt: Likewise.
13424
13425 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13426
13427 * solib-aix5.c (build_so_list_from_mapfile)
13428 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13429 arguments is not reversed.
13430 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13431 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13432
13433 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13434
13435 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13436 modified version of obsolete sh_fetch_pseudo_register.
13437 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13438 (sh4_register_read): New function.
13439 (sh_pseudo_register_write): New function. Renamed and modified
13440 version of obsolete sh_store_pseudo_register.
13441 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13442 (sh4_register_write): New function.
13443 (sh_gdbarch_init): Remove setting of gdbarch function
13444 fetch_pseudo_register and store_pseudo_register. Remove setting of
13445 register_convert_to_raw, register_convert_to_virtual,
13446 register_convertible.
13447 (sh_sh4_register_convertible): Delete. No longer needed. All is
13448 taken care by architecture specific functions
13449 register_read/register_write.
13450 (sh_sh4_register_convert_to_virtual): Make static.
13451 (sh_sh4_register_convert_to_raw): Ditto.
13452
13453 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13454
13455 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13456 (floatformat_is_nan, floatformat_mantissa): Ditto.
13457
13458 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13459 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13460 builtin_type_ieee_double_little,
13461 builtin_type_ieee_double_littlebyte_bigword,
13462 builtin_type_m68881_ext, builtin_type_i960_ext,
13463 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13464 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13465 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13466 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13467
13468 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13469
13470 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13471 parameter. Set frameless flag if it exists and depended of
13472 whether the scanned function is frameless or not.
13473 (xstormy16_skip_prologue): If function is frameless, return
13474 result of xstormy16_scan_prologue().
13475 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13476 call.
13477
13478 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13479
13480 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13481 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13482 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13483 sh_sh4_register_byte, sh_sh4_register_raw_size,
13484 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13485 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13486 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13487 sh_store_pseudo_register, sh_do_pseudo_register): Call
13488 gdbarch_tdep() just once, assign result to variable and use that,
13489 instead of calling the function several times.
13490
13491 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13492
13493 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13494 macros instead of LAST_FPU_CTRL_REGNUM.
13495 (store_register): Likewise.
13496
13497 2002-01-21 Jim Blandy <jimb@redhat.com>
13498
13499 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13500 is up-to-date before running the program, not just when a program
13501 exits.
13502
13503 2002-01-21 Fred Fish <fnf@redhat.com>
13504
13505 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13506 when we have found all instructions we are looking for.
13507
13508 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13509
13510 * arm-tdep.c (arm_register_name): New function.
13511 (arm_registers_names): Make static.
13512 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13513 (arm_register_name): Declare.
13514 (REGISTER_NAME): Use it.
13515
13516 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13517 Kevin Buettner <kevinb@redhat.com>
13518
13519 Convert arm targets to new FRAME interface.
13520 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13521 (arm_frame_find_save_regs): Delete.
13522 (arm_frame_init_saved_regs): New.
13523 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13524 Allocate extra_info as required. Convert all uses of fsr.regs
13525 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13526 to use extra_info.
13527 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13528 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13529 (check_prologue_cache, save_prologue_cache): Likewise.
13530 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13531 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13532 (FRAME_FIND_SAVED_REGS): Delete.
13533 (arm_frame_find_saved_regs): Delete prototype.
13534 (arm_frame_init_saved_regs): New prototype.
13535 (FRAME_INIT_SAVED_REGS): Define.
13536
13537 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13538
13539 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13540
13541 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13542
13543 From Jeff Law <law@redhat.com>:
13544 * infttrace.c: Include <sys/pstat.h>.
13545 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13546 exec file if the ttrace equivalent fails.
13547
13548 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13549
13550 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13551 (closeLogFile): Ditto.
13552
13553 2002-01-20 Michael Chastain <mec@shout.net>
13554
13555 * top.c (print_gdb_version): Bump copyright year to 2002.
13556
13557 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13558
13559 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13560 Zannoni and Eli Zaretskii.
13561
13562 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13563
13564 * buildsym.c: Update copyright years.
13565 * c-typeprint.c: Likewise.
13566 * dwarf2read.c: Likewise.
13567 * f-typeprint.c: Likewise.
13568 * gdbtypes.c: Likewise.
13569 * gdbtypes.h: Likewise.
13570 * hp-symtab-read.c: Likewise.
13571 * hpread.c: Likewise.
13572 * mdebugread.c: Likewise.
13573 * p-typeprint.c: Likewise.
13574
13575 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13576
13577 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13578 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13579 byte-order selectable.
13580 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13581 * arch-utils.c: Ditto.
13582 (set_endian): Ditto.
13583 (set_endian_from_file): Ditto.
13584 * gdbserver/low-sim.c (create_inferior): Ditto.
13585 * gdbarch.sh: Ditto.
13586 * gdbarch.h: Re-generate.
13587 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13588 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13589 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13590 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13591 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13592 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13593 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13594 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13595 macro definition.
13596 * config/mips/tm-wince.h: Remove #undef of macro
13597 TARGET_BYTE_ORDER_SELECTABLE.
13598 * config/sh/tm-wince.h: Ditto.
13599
13600 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13601
13602 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13603 member function fields. Add accessor macro
13604 TYPE_FN_FIELD_ARTIFICIAL.
13605 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13606 * c-typeprint.c (c_type_print_base): Skip artificial member
13607 functions.
13608
13609 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13610
13611 * f-typeprint.c: Delete unused function f_type_print_args.
13612 * p-typeprint.c: Delete unused function pascal_type_print_args.
13613
13614 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13615
13616 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13617 comment. Add ``artificial'' to ``union field_location''.
13618
13619 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13620
13621 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13622 * mdebugread.c (parse_symbol): Likewise.
13623 * stabsread.c (define_symbol): Likewise.
13624 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13625 initializing TYPE_FIELD_BITPOS to n (obsolete).
13626 (hpread_doc_function_type): Likewise.
13627 * hpread.c (hpread_function_type): Likewise.
13628
13629 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13630
13631 * configure.in (host_makefile_frag): Only require a host makefile
13632 fragment when a native build.
13633 * configure: Re-generate.
13634
13635 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13636
13637 * doublest.h (floatformat_from_type): Declare.
13638 * doublest.c (floatformat_from_type): New function.
13639 (convert_typed_floating): Use.
13640
13641 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13642 call to function floatformat_from_type.
13643
13644 * gdbarch.sh (IEEE_FLOAT): Delete.
13645 * gdbarch.h, gdbarch.c: Re-generate.
13646 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13647 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13648 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13649 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13650 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13651 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13652 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13653 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13654 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13655 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13656 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13657 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13658
13659 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13660 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13661 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13662 * sh-tdep.c (sh_gdbarch_init): Ditto.
13663 * mips-tdep.c (mips_gdbarch_init): Ditto.
13664 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13665 * cris-tdep.c (cris_gdbarch_init): Ditto.
13666
13667 2002-01-20 Jiri Smid <smid@suse.cz>
13668
13669 * configure.host, configure.tgt: Support x86-64.
13670 * NEWS: Note new target x86-64.
13671
13672 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13673 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13674 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13675 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13676 x86-64-linux-nat.o): Fix dependencies.
13677
13678 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13679
13680 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13681 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13682 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13683 * config/sparc/xm-sun4os4.h: Delete file.
13684 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13685
13686 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13687
13688 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13689 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13690 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13691 * config/i386/i386lynx.mh (XM_FILE): Delete.
13692 * config/rs6000/xm-rs6000ly.h: Delete file.
13693 * config/sparc/xm-sparclynx.h: Delete file.
13694 * config/m68k/xm-m68klynx.h: Delete file.
13695 * config/i386/xm-i386lynx.h: Delete file.
13696 * config/xm-lynx.h: Delete file.
13697 * config/djgpp/fnchange.lst: Update.
13698
13699 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13700
13701 * alpha-tdep.c (alpha_register_byte): New function.
13702 (alpha_register_raw_size): Ditto.
13703 (alpha_register_virtual_size): Ditto.
13704 (alpha_skip_prologue_internal): Renamed from
13705 alpha_skip_prologue.
13706 (alpha_skip_prologue): New version that calls
13707 alpha_skip_prologue_internal.
13708 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13709 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13710 second argument from alpha_skip_prologue.
13711 (REGISTER_BYTE): Use alpha_register_byte.
13712 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13713 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13714 (FRAMELESS_FUNCTION_INVOCATION): Use
13715 generic_frameless_function_invocation_not.
13716 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13717 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13718
13719 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13720
13721 * config/mips/xm-news-mips.h: Delete file.
13722 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13723
13724 * config/m88k/xm-m88k.h: Delete file.
13725 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13726 * config/m88k/xm-delta88v4.h: Ditto.
13727 * config/m88k/xm-delta88.h: Ditto.
13728
13729 * config/alpha/xm-fbsd.h: Delete file.
13730 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13731
13732 * config/sparc/xm-sparc.h: Delete file.
13733 * Makefile.in (xm-sun4os4.h): Delete dependency.
13734 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13735 * config/sparc/xm-sun4os4.h: Ditto.
13736 * config/sparc/xm-linux.h: Ditto.
13737
13738 * config/i386/xm-windows.h: Delete file.
13739
13740 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13741
13742 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13743 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13744
13745 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13746
13747 * alpha-tdep.c (alpha_call_dummy_words): New.
13748 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13749 (CALL_DUMMY_P): Define.
13750 (CALL_DUMMY_WORDS): Define.
13751 (SIZEOF_CALL_DUMMY_WORDS): Define.
13752
13753 2002-01-19 Per Bothner <per@bothner.com>
13754
13755 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13756 isn't NULL, which can happen with some gcj-3.x-produced code.
13757
13758 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13759
13760 * alpha-tdep.c (alpha_register_virtual_type): New function.
13761 (alpha_init_frame_pc_first): Ditto.
13762 (alpha_fix_call_dummy): Ditto.
13763 (alpha_store_struct_return): Ditto.
13764 (alpha_extract_struct_value_address): Ditto.
13765 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13766 alpha_register_virtual_type.
13767 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13768 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13769 alpha_extract_struct_value_address.
13770 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13771 (INIT_FRAME_PC): Use init_frame_pc_noop.
13772 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13773
13774 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13775
13776 * i386gnu-nat.c: Include "i386-tdep.h".
13777 (fetch_fpregs): Simplify code dealing with uninitialized floating
13778 point states such that it doesn't require FP7_REGNUM.
13779
13780 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13781
13782 * alpha-tdep.c (frame_extra_info): New.
13783 (alpha_find_saved_regs): Make static. Use
13784 frame->extra_info.
13785 (alpha_frame_init_saved_regs): New function.
13786 (alpha_frame_saved_pc): Use frame->extra_info.
13787 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13788 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13789 (init_extra_frame_info): Rename to...
13790 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13791 (alpha_print_extra_frame_info): New function.
13792 (alpha_frame_locals_address): Ditto.
13793 (alpha_frame_args_address): Ditto.
13794 (alpha_pop_frame): Use frame->extra_info.
13795 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13796 alpha_frame_args_address.
13797 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13798 (alpha_find_saved_regs): Remove prototype.
13799 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13800 (EXTRA_FRAME_INFO): Remove.
13801 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13802 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13803
13804 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13805
13806 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13807 (alpha_cannot_fetch_register): Ditto.
13808 (alpha_cannot_store_register): Ditto.
13809 (alpha_register_convertible): Ditto.
13810 (alpha_use_struct_convention): Ditto.
13811 * config/alpha/tm-alpha.h: Update copyright years.
13812 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13813 (INNER_THAN): Use core_addr_lessthan.
13814 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13815 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13816 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13817 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13818 (FRAME_CHAIN): Remove unnecessary cast.
13819
13820 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13821
13822 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13823 obsolete.
13824
13825 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13826
13827 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13828 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13829 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13830 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13831 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13832 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13833 * x86-64-linux-nat.c: Ditto.
13834
13835 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13836
13837 * alpha-tdep.c (alpha_register_name): New function.
13838 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13839 (REGISTER_NAME): Define.
13840
13841 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13842
13843 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13844
13845 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13846
13847 * alpha-tdep.c: Update copyright years.
13848 (alpha_next_pc): New function.
13849 (alpha_software_single_step): Ditto.
13850 * config/alpha/tm-alpha.h: Add prototype for
13851 alpha_software_single_step.
13852
13853 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13854
13855 * alphabsd-nat.c: Update copyright years.
13856 (fill_gregset): Use regcache_collect.
13857 (fill_fpregset): Likewise.
13858 (fetch_inferior_registers): Only fetch integer registers
13859 if requested to do so.
13860 (store_inferior_registers): Only store integer registers
13861 if requested to do so.
13862
13863 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13864
13865 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13866 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13867 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13868 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13869 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13870 * config/arm/linux.mh (XDEPFILES): Delete.
13871 * config/arm/nbsd.mh (XDEPFILES): Delete.
13872 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13873 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13874 * config/i386/i386m3.mh (XDEPFILES): Delete.
13875 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13876 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13877 * config/i386/fbsd.mh (XDEPFILES): Delete.
13878 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13879 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13880 * config/i386/i386v4.mh (XDEPFILES): Delete.
13881 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13882 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13883 * config/i386/i386aix.mh (XDEPFILES): Delete.
13884 * config/i386/go32.mh (XDEPFILES): Delete.
13885 * config/i386/cygwin.mh (XDEPFILES): Delete.
13886 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13887 * config/i386/i386mach.mh (XDEPFILES): Delete.
13888 * config/i386/i386v32.mh (XDEPFILES): Delete.
13889 * config/i386/linux.mh (XDEPFILES): Delete.
13890 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13891 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13892 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13893 * config/i386/i386sco.mh (XDEPFILES): Delete.
13894 * config/i386/i386v.mh (XDEPFILES): Delete.
13895 * config/i386/nbsd.mh (XDEPFILES): Delete.
13896 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13897 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13898 * config/i386/symmetry.mh (XDEPFILES): Delete.
13899 * config/i386/obsd.mh (XDEPFILES): Delete.
13900 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13901 * config/ia64/linux.mh (XDEPFILES): Delete.
13902 * config/ia64/aix.mh (XDEPFILES): Delete.
13903 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13904 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13905 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13906 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13907 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13908 * config/m68k/linux.mh (XDEPFILES): Delete.
13909 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13910 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13911 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13912 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13913 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13914 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13915 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13916 * config/m88k/delta88.mh (XDEPFILES): Delete.
13917 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13918 * config/m88k/m88k.mh (XDEPFILES): Delete.
13919 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13920 * config/mips/linux.mh (XDEPFILES): Delete.
13921 * config/mips/irix6.mh (XDEPFILES): Delete.
13922 * config/mips/irix5.mh (XDEPFILES): Delete.
13923 * config/mips/irix4.mh (XDEPFILES): Delete.
13924 * config/mips/irix3.mh (XDEPFILES): Delete.
13925 * config/mips/decstation.mh (XDEPFILES): Delete.
13926 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13927 (NATDEPFILES): Move core-aout.o to here.
13928 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13929 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13930 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13931 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13932 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13933 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13934 * config/pa/hpux11.mh (XDEPFILES): Delete.
13935 * config/powerpc/aix.mh (XDEPFILES): Delete.
13936 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13937 * config/powerpc/linux.mh (XDEPFILES): Delete.
13938 * config/romp/rtbsd.mh: Rename XDEPFILES.
13939 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13940 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13941 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13942 * config/s390/s390.mh (XDEPFILES): Delete.
13943 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13944 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13945 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13946 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13947 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13948 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13949 * config/sparc/linux.mh (XDEPFILES): Delete.
13950 * config/vax/vaxult.mh (XDEPFILES): Delete.
13951 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13952 * Makefile.in (DEPFILES): Remove XDEPFILES.
13953
13954 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13955
13956 * utils.c (internal_verror): Fix comments, default is yes not no.
13957 Update queries to match. Default to quit and dump core.
13958
13959 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13960
13961 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13962 copyright.
13963 * defs.h, event-top.c, gdbcmd.h: Ditto.
13964 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13965 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13966 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13967 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13968 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13969 * mi/mi-main.c:Ditto.
13970
13971 * stack.c, symfile.c: Update copyright.
13972
13973 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13974
13975 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13976 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13977 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13978 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13979
13980 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13981
13982 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13983 * gdbserver/low-lynx.c (myattach): Likewise.
13984 * gdbserver/low-nbsd.c (myattach): Likewise.
13985 * gdbserver/low-sim.c (myattach): Likewise.
13986 * gdbserver/low-sparc.c (myattach): Likewise.
13987 * gdbserver/low-sun3.c (myattach): Likewise.
13988
13989 * gdbserver/low-linux.c (myattach): New function.
13990
13991 * gdbserver/server.c (attach_inferior): New function.
13992 (main): Handle "--attach".
13993
13994 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13995
13996 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13997 maintainer.
13998
13999 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14000
14001 * c-typeprint.c (is_type_conversion_operator): Add additional
14002 check for non-conversion operators.
14003
14004 2002-01-15 Michael Snyder <msnyder@redhat.com>
14005
14006 * linux-proc.c: Add "info proc" command, a la procfs.c.
14007 (read_mapping): New function, abstract and re-use code.
14008 (linux_find_memory_regions): Use new func read_mapping.
14009 (linux_info_proc_cmd): New function, implement "info proc".
14010 (_initialize_linux_proc): Add new command "info proc".
14011
14012 2002-01-15 Michael Snyder <msnyder@redhat.com>
14013
14014 * symfile.c (generic_load): Use bfd_map_over_sections method
14015 instead of manipulating bfd structure members directly.
14016 (add_section_size_callback): New function, bfd sections callback
14017 used by generic_load.
14018 (load_sections_callback): New function, bfd sections callback
14019 used by generic_load.
14020
14021 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14022
14023 [Based on work by Jim Blandy]
14024 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14025 (builtin_type_vec128): Export.
14026 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14027 types.
14028 (builtin_type_vec128): New builtin type for 128 bit vector
14029 registers.
14030 (build_gdbtypes): Initialize builtin_type_v16qi and
14031 builtin_type_v8hi. Create the vec128 register builtin type
14032 structure.
14033 (build_builtin_type_vec128): New function.
14034 (_initialize_gdbtypes): Register builtin_type_v16qi and
14035 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14036 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14037 AltiVec register to new builtin type.
14038
14039 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14040
14041 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14042 to make_cv_type.
14043
14044 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14045
14046 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14047 CLEAN_UP_REGISTER_VALUE.
14048 * regcache.c (supply_register): Update only call.
14049
14050 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14051
14052 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14053 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14054 a29k-*-vxworks* targets as obsolete.
14055
14056 2002-01-14 Michael Snyder <msnyder@redhat.com>
14057
14058 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14059 until we can resolve portability issues.
14060 * gregset.h: Remove references to fpxregs.
14061 * gcore.c (gcore_command): Initialize note_sec to NULL.
14062
14063 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14064
14065 * signals.c (target_signal_to_name): Rewrite. Only use
14066 signals[].name when in bounds and non-NULL.
14067
14068 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14069
14070 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14071 * signals.c (target_signal_to_name): Verify that SIG is within the
14072 bounds of the signals array.
14073
14074 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14075
14076 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14077
14078 2002-01-13 Keith Seitz <keiths@redhat.com>
14079
14080 * stack.c (print_frame_info_base): Print the frame's pc
14081 only if when print_frame_info_listing_hook is not defined.
14082
14083 2002-01-13 Keith Seitz <keiths@redhat.com>
14084
14085 * varobj.c (varobj_set_value): Make sure that there were no
14086 errors evaluating the object before attempting to set its
14087 value.
14088 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14089 so this offset adjustment is no longer necessary.
14090 (create_child): Don't set the error flag if the child is
14091 a CPLUS_FAKE_CHILD.
14092 (value_of_child): If value_fetch_lazy fails, return NULL
14093 so that callers will be notified that an error occurred.
14094 (c_value_of_variable): Delay check of variable's validity
14095 until later. We actually want all structs and unions to have
14096 the value "{...}".
14097 Do not return "???" for variables which could not be evaluated.
14098 This error condition must be returned to the caller so that it
14099 can get the error condition from gdb.
14100 (cplus_name_of_child): Adjust index for vptr before figuring
14101 out the name of the child.
14102 (cplus_value_of_child): If a child's (real) parent is not valid,
14103 don't even bother trying to give a value for it. Just return
14104 an error. Change all instances in this function.
14105 (cplus_type_of_child): If our parent is one of the "fake"
14106 parents, we need to get at the type of the real parent, and
14107 derive the child's true type using this information.
14108
14109 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14110
14111 From 2002-01-09 John Marshall <johnm@falch.net>:
14112 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14113 sources.redhat.com, and tweak some related URLs which had
14114 suffered from linkrot.
14115
14116 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14117
14118 From Jeff law:
14119 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14120 structures passed in registers.
14121
14122 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14123
14124 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14125 white space which prevented compilation. Reported by DSK
14126 <dsk@student.unsw.edu.au>.
14127
14128 2002-01-11 Michael Snyder <msnyder@redhat.com>
14129
14130 * symfile.c (build_section_addr_info_from_section_tab):
14131 Use bfd access method instead of manipulating bfd directly.
14132 (syms_from_objfile): Ditto.
14133 (simple_overlay_update_1): Ditto.
14134 (simple_overlay_update): Ditto.
14135 (generic_load): Ditto.
14136 (overlay_unmapped_address): FIXME comment, bfd access methods.
14137 (sections_overlap): FIXME comment, bfd access methods.
14138 (pc_in_mapped_range): FIXME comment, bfd access methods.
14139 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14140 (section_is_mapped): FIXME comment, bfd access methods.
14141 (section_is_overlay): FIXME comment, bfd access methods.
14142
14143 * symfile.c (generic_load): Whitespace and long line cleanups.
14144 Remove duplicate variable, change several local variables to
14145 more appropriate data types.
14146 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14147
14148 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14149
14150 From Peter Schauer:
14151 * language.c (longest_local_hex_string_custom): Use phex_nz to
14152 convert NUM to a hex string.
14153
14154 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14155
14156 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14157 the function.
14158 Update Copyright year.
14159
14160 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14161
14162 * language.c (longest_raw_hex_string): Delete unused function.
14163
14164 2002-01-11 Petr Sorfa <petrs@caldera.com>
14165
14166 * MAINTAINERS (write-after-approval): Add myself.
14167 * dwarf2read.c (read_tag_string_type): Handling of
14168 DW_AT_byte_size.
14169 (read_tag_string_type): FORTRAN fix to prevent propagation of
14170 first string size.
14171 (set_cu_language): Handling of DW_LANG_Fortran95
14172
14173 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14174
14175 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14176 GETPID(inferior_ptid).
14177 (store_inferior_registers): Likewise.
14178
14179 2002-01-10 Jason Merrill <jason@redhat.com>
14180
14181 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14182 Fix DW_OP_minus.
14183
14184 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14185
14186 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14187 and bfd/elf32-sh-nbsd.c.
14188
14189 2002-01-10 Michael Snyder <msnyder@redhat.com>
14190
14191 * NEWS: Mention --pid and corefile/proc-id behavior change.
14192
14193 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14194 * gcore.c: Include cli/cli-decode.h instead of command.h.
14195
14196 * main.c (captured_main): Add new command line option "--pid".
14197 If the second command line argument (following the symbol-file)
14198 begins with a digit, try to attach to it before trying to open
14199 it as a corefile.
14200 (print_gdb_help): Document the "--pid" argument.
14201
14202 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14203
14204 * completer.c (command_completer): New function.
14205
14206 * completer.h <command_completer>: Add prototype.
14207
14208 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14209 completer for the "help" command.
14210
14211 2002-01-09 Jason Merrill <jason@redhat.com>
14212
14213 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14214
14215 2002-01-09 Michael Snyder <msnyder@redhat.com>
14216
14217 * i386-linux-nat.c (fill_fpxregset): Make global.
14218 (store_fpxregset): Ditto.
14219
14220 * gregset.h (gdb_fpxregset_t): Define.
14221 (supply_fpxregset): Prototype.
14222 (fill_fpxregset): Prototype.
14223
14224 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14225
14226 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14227
14228 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14229 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14230 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14231
14232 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14233
14234 * MAINTAINERS: Update target maintainer rules so that any
14235 Maintainer can approve a tested patch for a maintenance-only
14236 target.
14237
14238 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14239
14240 * MAINTAINERS (write-after-approval): Add myself.
14241
14242 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14243 IN_SIGTRAMP.
14244
14245 2002-01-08 Michael Snyder <msnyder@redhat.com>
14246
14247 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14248 real name of the executable, rather than the /proc name.
14249
14250 2002-01-03 Michael Snyder <msnyder@redhat.com>
14251
14252 Implement a "generate-core-file" command in gdb, save target state.
14253 * gcore.c: New file. Implement new command 'generate-core-file'.
14254 Save a corefile image of the current state of the inferior.
14255 * linux-proc.c: Add linux-specific code for saving corefiles.
14256 * target.h (struct target_ops): Add new target vectors for saving
14257 corefiles; to_find_memory_regions and to_make_corefile_notes.
14258 (target_find_memory_regions): New macro.
14259 (target_make_corefile_notes): New macro.
14260 * target.c (update_current_target): Inherit new target methods.
14261 (dummy_find_memory_regions): New place-holder method.
14262 (dummy_make_corefile_notes): New place-holder method.
14263 (init_dummy_target): Initialize new dummy target vectors.
14264 * exec.c (exec_set_find_memory_regions): New function.
14265 Allow the exec_ops vector for memory regions to be taken over.
14266 (exec_make_note_section): New function, target vector method.
14267 * defs.h (exec_set_find_memory_regions): Export prototype.
14268 * procfs.c (proc_find_memory_regions): New function, corefile method.
14269 (procfs_make_note_section): New function, corefile method.
14270 (init_procfs_ops): Set new target vector pointers.
14271 (find_memory_regions_callback): New function.
14272 (procfs_do_thread_registers): New function.
14273 (procfs_corefile_thread_callback): New function.
14274 * sol-thread.c (sol_find_memory_regions): New function.
14275 (sol_make_note_section): New function.
14276 (init_sol_thread_ops): Initialize new target vectors.
14277 * inftarg.c (inftarg_set_find_memory_regions): New function.
14278 Allow to_find_memory_regions vector to be taken over.
14279 (inftarg_set_make_corefile_notes): New function.
14280 Allow to_make_corefile_notes vector to be taken over.
14281 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14282 interface layer if not target_has_execution (may be a corefile).
14283 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14284 * config/sparc/sun4sol2.mh: Ditto.
14285 * config/alpha/alpha-linux.mh: Ditto.
14286 * config/arm/linux.mh: Ditto.
14287 * config/i386/x86-64linux.mh: Ditto.
14288 * config/ia64/linux.mh: Ditto.
14289 * config/m68k/linux.mh: Ditto.
14290 * config/mips/linux.mh: Ditto.
14291 * config/powerpc/linux.mh: Ditto.
14292 * config/sparc/linux.mh: Ditto.
14293
14294 2002-01-07 Michael Snyder <msnyder@redhat.com>
14295
14296 * arm-linux-nat.c: Remove references to regcache.c internal data
14297 (registers[] and register_valid[]).
14298
14299 2002-01-07 Michael Snyder <msnyder@redhat.com>
14300
14301 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14302 so that attaching to a pid will automatically read the process's
14303 symbol file and shlibs.
14304 * Makefile.in: Add rule for linux-proc.o.
14305 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14306 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14307 * config/arm/linux.mh: Ditto.
14308 * config/i386/linux.mh: Ditto.
14309 * config/i386/x86-64linux.mh: Ditto.
14310 * config/ia64/linux.mh: Ditto.
14311 * config/m68k/linux.mh: Ditto.
14312 * config/mips/linux.mh: Ditto.
14313 * config/powerpc/linux.mh: Ditto.
14314 * config/sparc/linux.mh: Ditto.
14315
14316 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14317
14318 * win32-nat.c: Add i386-tdep.h dependency.
14319
14320 2002-01-07 Michael Snyder <msnyder@redhat.com>
14321
14322 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14323 instead of bfd_get_arch_size. Don't bail out just because
14324 there's no exec_bfd.
14325
14326 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14327 * p-valprint.c (pascal_object_print_value): Ditto.
14328 * somread.c (som_symtab_read): Ditto.
14329 * symfile.c (simple_free_overlay_region_table): Ditto.
14330 * valops.c (value_assign): Ditto.
14331
14332 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14333 use tilde_expand and strerror for opening save-tracepoints file.
14334
14335 * thread-db.c (thread_db_new_objfile): Indendation fix.
14336
14337 * infptrace.c (GDB_MAX_ALLOCA): New define.
14338 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14339 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14340 can be overridden with whatever value is appropriate to the host).
14341 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14342 alloca to allocate potentially large buffer.
14343 * rs6000-nat.c (child_xfer_memory): Ditto.
14344 * symm-nat.c (child_xfer_memory): Ditto.
14345 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14346
14347 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14348
14349 From Nick Clifton <nickc@redhat.com>
14350 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14351
14352 2002-01-07 Michael Snyder <msnyder@redhat.com>
14353
14354 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14355 Don't use exec_bfd if it's NULL.
14356
14357 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14358
14359 * valops.c (value_arg_coerce): Fix formatting.
14360
14361 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14362
14363 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14364 * gnu-nat.c: Ditto.
14365
14366 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14367
14368 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14369 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14370 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14371 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14372 z8k-coff have not been multi-arched. Update z8k-coff build
14373 status.
14374
14375 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14376
14377 * MAINTAINERS: Mark a29k target as obsolete.
14378 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14379 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14380 comments.
14381 * NEWS: Note that a29k targets are obsolete.
14382 * a29k-tdep.c: Mark as obsolete.
14383 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14384 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14385 a29k-*-vxworks* targets as obsolete.
14386 * remote-adapt.c: Obsolete.
14387 * remote-eb.c: Obsolete.
14388 * remote-mm.c: Obsolete.
14389 * remote-udi.c: Obsolete.
14390 * config/a29k/a29k-udi.mt: Obsolete.
14391 * config/a29k/a29k.mt: Obsolete.
14392 * config/a29k/tm-a29k.h: Obsolete.
14393 * config/a29k/tm-vx29k.h: Obsolete.
14394 * config/a29k/vx29k.mt: Obsolete.
14395
14396 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14397
14398 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14399 with BFD_ENDIAN_BIG.
14400
14401 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14402
14403 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14404 * configure, config.in: Re-generate.
14405 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14406 * defs.h: Do not include <endian.h>.
14407
14408 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14409
14410 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14411 * config.in: Regenerate.
14412 * configure.in: Update copyright years.
14413 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14414 * configure: Regenerate.
14415 * i386bsd-nat.c: Update copyright years.
14416 (fill_gregset): Use regcache_collect.
14417 (fetch_inferior_registers): Only fetch integer registers
14418 if requested to do so. Add support for XMM registers
14419 using PT_GETXMMREGS.
14420 (store_inferior_registers): Only store integer registers
14421 if requested to do so. Add support for XMM registers
14422 using PT_SETXMMREGS.
14423 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14424 (store_inferior_registers): Remove.
14425 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14426 (fetch_elfcore_registers): New function.
14427 (i386nbsd_elfcore_fns): New.
14428 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14429 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14430 i386bsd-nat.o.
14431 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14432 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14433 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14434 * config/i386/tm-nbsd.h: Update copyright years.
14435 (HAVE_SSE_REGS): Define.
14436 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14437 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14438 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14439 (SIGCONTEXT_PC_OFFSET): Remove.
14440 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14441
14442 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14443
14444 * configure.tgt: Remove powerpc-*-macos* target.
14445 * config/m68k/xm-mpw.h: Delete file.
14446 * config/xm-mpw.h: Delete file.
14447 * ser-mac.c: Delete file.
14448 * mpw-make.sed: Delete file.
14449 * mpw-config.in: Delete file.
14450 * mac-xdep.c: Delete file.
14451 * mac-gdb.r: Delete file.
14452 * mac-defs.h: Delete file.
14453 * mac-nat.c: Delete file.
14454 * config/powerpc/macos.mh: Delete file.
14455 * config/powerpc/macos.mt: Delete file.
14456 * config/powerpc/nm-macos.h: Delete file.
14457 * config/powerpc/tm-macos.h: Delete file.
14458 * source.c (openp, open_source_file): Remove obsolete code.
14459 * top.c (gdb_readline): Ditto.
14460 * utils.c (query): Ditto.
14461 * event-top.c (display_gdb_prompt): Ditto.
14462 * Makefile.in (ser-mac.o): Delete obsolete target.
14463 * NEWS: Update.
14464
14465 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14466
14467 * defs.h (BIG_ENDIAN): Delete macro definition.
14468 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14469 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14470 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14471 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14472 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14473 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14474 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14475 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14476 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14477 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14478 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14479 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14480 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14481 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14482 * gdbarch.c: Re-generate.
14483
14484 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14485
14486 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14487 for core files.
14488
14489 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14490
14491 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14492
14493 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14494
14495 * value.h (value_ptr): Delete typedef.
14496
14497 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14498
14499 * i386nbsd-nat.c: Update copyright years.
14500 Include i386-tdep.h.
14501
14502 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14503
14504 * stabsread.c: Update copyright years.
14505
14506 From Debashis Mahata <debashis.mahata@wipro.com>:
14507 (read_struct_fields): Deal with Sun C compiler erroneous stab
14508 output for structs and unions.
14509 Fix PR gdb/269.
14510
14511 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14512
14513 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14514 prototype.
14515
14516 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14517
14518 * cp-abi.c: Fix whitespace.
14519 (baseclass_offset): New wrapper function.
14520 * cp-abi.h (baseclass_offset): Add prototype.
14521 (struct cp_abi_ops): Add baseclass_offset pointer.
14522
14523 * valops.c (vb_match): Move to...
14524 * gnu-v2-abi.c (vb_match): here.
14525 * valops.c (baseclass_offset): Move to...
14526 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14527
14528 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14529
14530 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14531 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14532 * hpacc-abi.c (init_hpacc_ops): Likewise.
14533
14534 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14535
14536 * valops.c (find_overload_match): Accept obj as a
14537 reference parameter. Update it before returning.
14538 * value.h (find_overload_match): Update prototype.
14539 * eval.c (evaluate_subexp_standard): Pass object to
14540 find_overload_match by reference.
14541
14542 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14543
14544 * valarith.c: Replace value_ptr with struct value pointer. Remove
14545 register attribute from value declarations.
14546 * valops.c: Ditto.
14547 * value.h: Ditto.
14548 * scm-lang.c (scm_lookup_name): Ditto.
14549
14550 2002-01-03 Michael Snyder <msnyder@redhat.com>
14551
14552 Abstract the functionality of iterating over mapped memory
14553 regions into a general purpose iterator function.
14554 * procfs.c (iterate_over_mappings): New function, general purpose
14555 iterator for memory sections.
14556 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14557 (solib_mappings_callback): New function, callback for above.
14558 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14559 (info_mappings_callback): New function, callback for above.
14560
14561 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14562
14563 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14564
14565 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14566 * i386-tdep.c: Include "elf-bfd.h".
14567 (process_note_abi_tag_sections): New function.
14568 (i386_gdbarch_init): Add code to recognize various OS/ABI
14569 combinations.
14570
14571 * maint.c (_initialize_maint_cmds): Add missing \ in
14572 string-literal.
14573
14574 For older changes see ChangeLog-2001
14575 \f
14576 Local Variables:
14577 mode: change-log
14578 left-margin: 8
14579 fill-column: 74
14580 version-control: never
14581 End:
This page took 0.339838 seconds and 4 git commands to generate.