2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
2
3 * thread-db.c (thread_from_lwp): Uniquify error msg.
4 (lwp_from_thread): Ditto.
5 (check_event): Ditto.
6 (find_new_threads_callback): Ditto.
7 (thread_db_pid_to_str): Ditto.
8
9 2002-12-13 Andrew Cagney <ac131313@redhat.com>
10
11 * frame.h (get_frame_saved_regs): Declare.
12 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
13 pointer.
14 * frame.c (get_frame_saved_regs): New function.
15 (frame_saved_regs_zalloc): Return the allocated saved_regs.
16
17 2002-12-13 Andrew Cagney <ac131313@redhat.com>
18
19 * frame.c (deprecated_update_current_frame_pc_hack): New
20 function.
21 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
22 * infrun.c (normal_stop): Use said function instead of directly
23 modifying the frame's PC.
24
25 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
26
27 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
28
29 2002-12-13 Kevin Buettner <kevinb@redhat.com>
30
31 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
32 config/mips/tm-irix6.h (NUM_REGS): Delete.
33 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
34 (temp_saved_regs): Declare as a pointer rather than an array.
35 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
36 that ``temp_saved_regs'' has storage allocated to it and that
37 it's the correct size.
38
39 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
40
41 * defs.h (init_last_source_visited): New prototype.
42 (add_path): Ditto.
43 * source.c (add_path): New function that adds to a specified path.
44 (mod_path): Change to call add_path.
45 (init_last_source_visited): New function to allow interfaces to
46 initialize static variable: last_source_visited. Part of fix
47 for PR gdb/741.
48 * Makefile.in: Add support for mi/mi-cmd-env.c.
49
50 2002-12-13 Andrew Cagney <ac131313@redhat.com>
51
52 * frame.h (frame_id_unwind): Declare.
53 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
54 id_unwind_cache.
55 (frame_id_unwind_ftype): Declare.
56 * frame.c (frame_id_unwind): New function.
57 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
58 (create_new_frame, get_prev_frame): Pass id_unwind to
59 set_unwind_by_pc.
60 (frame_saved_regs_id_unwind): New function.
61 (frame_saved_regs_id_unwind): New function.
62 * dummy-frame.c (dummy_frame_id_unwind): New function.
63 (struct dummy_frame): Add field id.
64 (generic_push_dummy_frame): Initialize `id'.
65 * dummy-frame.h (dummy_frame_id_unwind): Declare.
66
67 2002-12-13 Andrew Cagney <ac131313@redhat.com>
68
69 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
70 pass that to set_momentary_breakpoint. Move comments to where they
71 belong.
72 * frame.h (set_current_frame): Delete declaration.
73 * frame.c (set_current_frame): Delete function.
74
75 2002-12-13 Andrew Cagney <ac131313@redhat.com>
76
77 * frame.c (frame_extra_info_zalloc): New function.
78 * frame.h (frame_extra_info_zalloc): Declare.
79
80 2002-12-13 Joel Brobecker <brobecker@gnat.com>
81
82 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
83 in the previous prototype change to set_momentary_breakpoint.
84
85 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
86
87 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
88 and saw_child_exec.
89 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
90 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
91 (stop_stepping): Remove outdated check for child vfork events.
92
93 2002-12-12 Andrew Cagney <ac131313@redhat.com>
94
95 * GDB 5.3 released from gdb_5_3-branch.
96
97 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
98
99 * corelow.c (init_core_ops): Delete references to to_require_attach
100 and to_require_detach.
101 * exec.c (init_exec_ops): Likewise.
102 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
103 hppa_require_detach directly.
104 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
105 * inftarg.c (child_detach): Remove.
106 (child_detach_from_process): Rename to child_detach, remove
107 after_fork argument.
108 (child_attach): Remove.
109 (child_attach_to_process): Rename to child_attach, remove after_fork
110 argument.
111 (init_child_ops): Delete references to to_require_attach
112 and to_require_detach.
113 * infttrace.c (hppa_require_attach): Update comment.
114 * target.c (cleanup_target, update_current_target)
115 (init_dummy_target, setup_target_debug): Delete references to
116 to_require_attach and to_require_detach.
117 (find_default_require_detach, find_default_require_attach)
118 (debug_to_require_attach, debug_to_require_detach): Remove
119 functions.
120 * target.h (struct target_ops): Remove to_require_attach
121 and to_require_detach.
122 (target_require_attach, target_require_detach): Delete macros.
123 (find_default_require_detach, find_default_require_attach): Delete
124 prototypes.
125 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
126
127 2002-12-11 Andrew Cagney <ac131313@redhat.com>
128
129 * frame.c (get_frame_extra_info): New function.
130 * frame.h (get_frame_extra_info): Declare.
131
132 2002-12-11 Andrew Cagney <ac131313@redhat.com>
133
134 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
135 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
136 with `struct frame_id'.
137 (set_longjmp_resume_breakpoint): Ditto.
138 * infrun.c (handle_inferior_event): Update.
139 * breakpoint.c (watch_command_1, until_break_command): Update.
140 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
141 (handle_inferior_event, step_over_function): Update.
142 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
143 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
144 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
145 * infcmd.c (finish_command, run_stack_dummy): Update.
146
147 2002-12-11 Kevin Buettner <kevinb@redhat.com>
148
149 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
150 (dwarf2_non_const_array_bound_ignored)
151 (dwarf2_missing_line_number_section)
152 (dwarf2_statement_list_fits_in_line_number_section)
153 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
154 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
155 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
156 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
157 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
158 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
159 (dwarf2_missing_member_fn_type_complaint)
160 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
161 (dwarf2_const_value_length_mismatch)
162 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
163 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
164 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
165 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
166 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
167 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
168 complaints using deprecated struct..
169 (dwarf2_non_const_array_bound_ignored_complaint)
170 (dwarf2_complex_location_expr_complaint)
171 (dwarf2_unsupported_at_frame_base_complaint)
172 (dwarf2_const_value_length_mismatch_complaint)
173 (dwarf2_macros_too_long_complaint)
174 (dwarf2_macro_malformed_definition_complaint)
175 (dwarf2_invalid_attrib_class_complaint): New functions.
176 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
177 (read_structure_scope, read_array_type, read_common_block)
178 (read_tag_pointer_type, read_base_type, read_partial_die)
179 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
180 (new_symbol, dwarf2_const_value, read_type_die)
181 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
182 (parse_macro_definition, dwarf_decode_macros): Replace calls to
183 complain() with, possibly indirect, calls to complaint().
184
185 2002-12-11 Andrew Cagney <cagney@redhat.com>
186
187 * frame.c (deprecated_get_frame_saved_regs): Rename
188 get_frame_saved_regs.
189 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
190 * sparc-tdep.c: Update.
191 * hppa-tdep.c: Update.
192 * h8500-tdep.c: Update.
193
194 2002-12-11 Kevin Buettner <kevinb@redhat.com>
195
196 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
197 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
198 ``char *'' for return and parameter types.
199 * gdbarch.h, gdbarch.c: Regenerate.
200 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
201 return type from ``char *'' to ``const char *''.
202 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
203 const.
204
205 2002-12-11 Mark Kettenis <kettenis@gnu.org>
206
207 * i386-tdep.c: Include "dummy-frame.h".
208 (i386_frame_chain, i386_frame_saved_pc): Replace
209 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
210 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
211
212 2002-12-10 Andrew Cagney <cagney@redhat.com>
213
214 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
215 Change to a function with predicate.
216 * gdbarch.h, gdbarch.c: Re-generate.
217 * frame.c (get_prev_frame): Update. Test
218 DEPRECATED_INIT_FRAME_PC_P.
219 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
220 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
221 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
222 * alpha-tdep.c (alpha_gdbarch_init): Update.
223 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
224 * mips-tdep.c (mips_gdbarch_init): Update.
225 * i386-interix-tdep.c (i386_interix_init_abi): Update.
226 * arm-tdep.c: Update comments.
227 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
228 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
229 * frv-tdep.c (frv_gdbarch_init): Ditto.
230 * x86-64-tdep.c (x86_64_init_abi): Ditto.
231 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
232 * s390-tdep.c (s390_gdbarch_init): Ditto.
233 * v850-tdep.c (v850_gdbarch_init): Ditto.
234 * vax-tdep.c (vax_gdbarch_init): Ditto.
235 * sh-tdep.c (sh_gdbarch_init): Ditto.
236 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
238 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
240 * i386-tdep.c (i386_gdbarch_init): Ditto.
241 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
242 * cris-tdep.c (cris_gdbarch_init): Ditto.
243 * avr-tdep.c (avr_gdbarch_init): Ditto.
244 * arm-tdep.c (arm_gdbarch_init): Ditto.
245 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
246 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
247
248 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
249
250 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
251 CHILD_FOLLOW_FORK.
252 * hppah-nat.c (saved_vfork_pid): Add.
253 (child_post_follow_vfork): Remove.
254 (child_follow_fork): New function.
255 (child_wait): Call detach_breakpoints after receiving the child vfork.
256 Call child_resume directly instead of going through resume ().
257 Make sure we have the exec before reporting the vfork.
258 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
259 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
260 (follow_fork): New function. Call target_follow_fork.
261 (follow_inferior_reset_breakpoints): New function broken out from
262 old follow_inferior_fork.
263 (resume): Remove hack to follow exec after vfork.
264 * inftarg.c (child_post_follow_vfork): Remove.
265 (child_follow_fork): New function.
266 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
267 * target.c (cleanup_target): Replace to_post_follow_vfork with
268 to_follow_fork.
269 (update_current_target): Likewise.
270 (setup_target_debug): Likewise.
271 (debug_to_post_follow_vfork): Remove.
272 (debug_to_follow_fork): New function.
273 * target.h (struct target_ops): Replace to_post_folow_vfork with
274 to_follow_fork.
275 (child_post_follow_vfork): Remove prototype.
276 (child_follow_fork): Add prototype.
277 (target_post_follow_vfork): Remove macro.
278 (target_follow_fork): Add macro.
279
280 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
281
282 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
283 (child_post_follow_vfork): Cancel pending exec event if we follow
284 the parent.
285 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
286 events have been processed. Return a fake TARGET_WAITKIND_EXECD
287 event at the following wait call if necessary.
288 * infrun.c (follow_vfork): Don't follow_exec here.
289 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
290 case about HP/UX 10.20. Remove code pushed down to
291 hppah-nat.c:child_wait.
292 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
293 vfork_in_flight is set.
294
295 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
296
297 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
298 for the parent's fork event.
299 * infrun.c (handle_inferior_event): Only expect one fork event.
300 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
301 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
302
303 2002-12-10 Andrew Cagney <ac131313@redhat.com>
304
305 * PROBLEMS: Delete reference to PR gdb/725.
306
307 * MAINTAINERS (gdb.c++): Add David Carlton.
308
309 2002-12-09 David Carlton <carlton@math.stanford.edu>
310
311 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
312 * cli/cli-cmds.c: Ditto.
313
314 2002-12-09 Andrew Cagney <cagney@redhat.com>
315
316 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
317 function address in <>.
318 * gdbarch.c: Re-generate.
319
320 2002-12-09 David Carlton <carlton@math.stanford.edu>
321
322 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
323
324 2002-12-09 David Carlton <carlton@math.stanford.edu>
325
326 * linespec.c (symtab_from_filename): New function.
327 (decode_line_1): Move code into symtab_from_filename.
328
329 2002-12-09 Kevin Buettner <kevinb@redhat.com>
330
331 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
332
333 2002-12-07 Andrew Cagney <ac131313@redhat.com>
334
335 * f-valprint.c (info_common_command): Use get_frame_pc.
336 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
337 * ax-gdb.c (agent_command): Ditto.
338 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
339 (rs6000_pop_frame): Ditto.
340 (rs6000_frameless_function_invocation): Ditto.
341 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
342 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
343 * macroscope.c (default_macro_scope): Ditto.
344 * stack.c (print_frame_info_base): Ditto.
345 (print_frame, frame_info, print_frame_label_vars): Ditto.
346 (return_command, func_command, get_frame_language): Ditto.
347 * infcmd.c (finish_command): Ditto.
348 * dummy-frame.c (cached_find_dummy_frame): Ditto.
349 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
350 (break_at_finish_at_depth_command_1): Ditto.
351 (break_at_finish_command_1): Ditto.
352 (until_break_command, get_catch_sals): Ditto.
353 * blockframe.c (func_frame_chain_valid): Ditto.
354 (frameless_look_for_prologue): Ditto.
355 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
356
357 2002-12-08 Andrew Cagney <ac131313@redhat.com>
358
359 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
360 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
361
362 2002-12-08 Andrew Cagney <ac131313@redhat.com>
363
364 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
365 to pure functions.
366 * gdbarch.h, gdbarch.c: Re-generate.
367 * frame.c (get_prev_frame): Explictly assign prev's pc with value
368 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
369
370 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
371 declaration to a function returning a CORE_ADDR.
372 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
373 * arch-utils.c (init_frame_pc_noop): Return the PC value.
374 (init_frame_pc_default): Ditto.
375 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
376 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
377 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
378 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
379 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
380 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
381
382 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
383 to init_frame_pc_noop.
384 (i386_interix_init_frame_pc): Delete function.
385 * z8k-tdep.c (init_frame_pc): Delete function.
386 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
387 (INIT_FRAME_PC_FIRST): Ditto.
388 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
389 (INIT_FRAME_PC_FIRST): Ditto.
390 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
391 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
392 init_frame_pc_noop.
393 (INIT_FRAME_PC_FIRST): Convert to an expression.
394 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
395
396 2002-12-08 Andrew Cagney <ac131313@redhat.com>
397
398 * blockframe.c: Use get_frame_base instead of directly accessing
399 the `struct frame_info' member frame.
400 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
401 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
402
403 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
404
405 * Makefile.in (readline_h): Define.
406 (completer.o): Depend on readline_h.
407 (corelow.o): Ditto.
408 (event-top.o): Ditto.
409 (exec.o): Ditto.
410 (solib.o): Ditto.
411 (source.o): Ditto.
412 (symfile.o): Ditto.
413 (symmisc.o): Ditto.
414 (top.o): Ditto.
415 (tracepoint.o): Ditto.
416 (utils.o): Ditto.
417 (cli-dump.o): Ditto.
418 (tui-hooks.o): Ditto.
419 (tuiWin.o): Ditto.
420
421 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
422
423 More cleanup from import of readline 4.3.
424 * completer.h (complete_line, readline_line_completion_function):
425 Update prototypes.
426 (line_completion_function): Removed, not used outside of completer.c.
427 * completer.c (readline_line_completion_function,
428 complete_function, line_completion_function): Use const for first
429 parameter.
430 (line_completion_function): Make static.
431 (filename_completer): filename_completion_function is now called
432 rl_filename_completion_function
433 * corelow.c: Include <readline/readline.h>.
434 * exec.c: Ditto.
435 * solib.c: Ditto.
436 * source.c: Ditto.
437 * symfile.c: Ditto.
438 * symmisc.c: Ditto.
439 * top.c (init_main): No need to coerce
440 readline_line_completion_function anymore.
441 * cli/cli-dump.c: Include <readline/readline.h>.
442
443 2002-12-08 Andrew Cagney <ac131313@redhat.com>
444
445 * stack.c (frame_info): Use get_prev_frame.
446 * blockframe.c (frame_address_in_block): Ditto.
447 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
448 (rs6000_frameless_function_invocation): Ditto.
449 (rs6000_frame_saved_pc): Ditto.
450 (rs6000_frame_chain): Ditto.
451 * arch-utils.c (init_frame_pc_default): Ditto.
452
453 2002-12-08 Andrew Cagney <ac131313@redhat.com>
454
455 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
456 Delete redundant definition.
457
458 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
459
460 Import of readline 4.3:
461 * cli/cli-cmds.c: Include readline/tilde.h.
462 * cli/cli-setshow.c: Ditto.
463 * defs.h: Don't declare tilde_expand anymore, since readline
464 exports it.
465
466 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
467
468 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
469 -Werror on this file.
470
471 2002-12-07 Andrew Cagney <ac131313@redhat.com>
472
473 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
474 the format name.
475 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
476 * gdbarch.c: Regenerate.
477
478 2002-12-06 Andrew Cagney <ac131313@redhat.com>
479
480 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
481 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
482 provide a default value.
483 * gdbarch.h, gdbarch.c: Regenerate.
484 * frame.c (get_prev_frame): Update. Check
485 DEPRECATED_INIT_FRAME_PC_FIRST_P.
486 * s390-tdep.c (s390_gdbarch_init): Update.
487 * mips-tdep.c (mips_gdbarch_init): Update.
488 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
489 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
490 * alpha-tdep.c (alpha_gdbarch_init): Update.
491
492 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
493
494 * ia64-linux-nat.c: Include gdb_string.h.
495 * alpha-nat.c: Ditto.
496 * ppc-linux-nat.c: Ditto.
497 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
498 Update dependencies.
499
500 2002-12-05 Andrew Cagney <ac131313@redhat.com>
501
502 * gdbthread.h: Include "frame.h".
503 (struct thread_info): Replace step_frame_address with
504 step_frame_id.
505 * inferior.h: Include "frame.h".
506 (step_frame_id): Replace external variable step_frame_address.
507 * gdbthread.h (save_infrun_state): Replace step_frame_address
508 parameter with step_frame_id parameter.
509 (load_infrun_state): Ditto.
510 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
511 * infcmd.c (step_frame_id, step_1, step_once): Update.
512 * thread.c (load_infrun_state, save_infrun_state): Update.
513 * infrun.c (clear_proceed_status, save_inferior_status): Update.
514 (handle_inferior_event, step_over_function): Update.
515 (normal_stop, context_switch, restore_inferior_status): Update.
516 (struct inferior_status): Replace step_frame_address with
517 step_frame_id.
518
519 2002-12-05 David Carlton <carlton@math.stanford.edu>
520
521 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
522 DW_TAG_member as well as a declaration as being a C++ static data
523 member.
524 (read_structure_scope): Combine tests for DW_TAG_member and
525 DW_TAG_variable.
526
527 2002-12-05 David Carlton <carlton@math.stanford.edu>
528
529 * linespec.c (decode_compound): New function.
530 (decode_line_1): Move code into decode_compound.
531
532 2002-12-05 David Carlton <carlton@math.stanford.edu>
533
534 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
535 argument.
536 (lookup_symbol_aux): Do the 'field_of_this' check before checking
537 the static block. See PR gdb/804.
538
539 2002-12-05 David Carlton <carlton@math.stanford.edu>
540
541 * symtab.c (lookup_symbol_aux_block): New function.
542 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
543
544 2002-12-05 Andrew Cagney <ac131313@redhat.com>
545
546 * gdbarch.sh: Dump the predicate function and macro values.
547 (read): Print error on standard error.
548 * gdbarch.c: Regenerate.
549
550 2002-12-04 Kevin Buettner <kevinb@redhat.com>
551
552 * Makefile.in (mips_tdep_h): Define.
553 (mips-tdep.o): Add mips_tdep_h to dependency list.
554 * mips-tdep.h: New file.
555 * mips-tdep.c (mips-tdep.h): Include.
556 (enum mips_abi): Move to mips-tdep.h.
557 (mips_abi): New function.
558
559 2002-12-04 David Carlton <carlton@math.stanford.edu>
560
561 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
562
563 2002-12-04 David Carlton <carlton@math.stanford.edu>
564
565 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
566 function.
567 (lookup_symbol_aux_minsyms): New function.
568
569 2002-12-04 J. Brobecker <brobecker@gnat.com>
570
571 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
572
573 2002-12-04 J. Brobecker <brobecker@gnat.com>
574
575 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
576 which is an obsolete macro name.
577
578 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
579
580 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
581 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
582
583 2002-12-03 H.J. Lu (hjl@gnu.org)
584
585 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
586 (create_breakpoints): Make sure the addr_string field is not
587 NULL.
588
589 2002-12-03 Andrew Cagney <ac131313@redhat.com>
590
591 * sparc-nat.c (fetch_inferior_registers)
592 (store_inferior_registers): Add comment on problem of LWP vs
593 threads.
594
595 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
596 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
597 (lin_lwp_store_registers): Remove.
598 (init_lin_lwp_ops): Use fetch_inferior_registers
599 and store_inferior_registers directly.
600 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
601 (store_inferior_registers): Likewise.
602 Fix PR gdb/725.
603
604 2002-12-03 Andrew Cagney <ac131313@redhat.com>
605
606 * frame.h (get_frame_id): Convert to a function.
607 (null_frame_id, frame_id_p): Declare.
608 (frame_id_eq, frame_id_inner): Declare.
609 (frame_id_build): New function.
610 * frame.c (get_frame_id): Update. Use null_frame_id.
611 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
612 frame_id_inner.
613 (null_frame_id, frame_id_p): Define.
614 (frame_id_eq, frame_id_inner): Define.
615 (frame_id_build): New function.
616 * varobj.c (varobj_create): Update.
617 (varobj_update): Update.
618 * valops.c (value_assign): Update.
619 (new_root_variable): Update.
620 * infrun.c (save_inferior_status): Update.
621 * breakpoint.c (watch_command_1): Update.
622
623 2002-12-03 J. Brobecker <brobecker@gnat.com>
624
625 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
626 (SNAP2): Likewise.
627
628 2002-12-03 Andrew Cagney <cagney@redhat.com>
629
630 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
631 patch.
632
633 * PROBLEMS: Mention PR gdb/725.
634
635 2002-12-03 Andreas Schwab <schwab@suse.de>
636
637 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
638
639 2002-12-02 Adam Fedor <fedor@gnu.org>
640 Klee Dienes <kdienes@apple.com>
641
642 * objc-lang.c (objc_printstr): Add width arg to match
643 printstr prototype.
644 (compare_selectors): Add 'const' to arg types.
645 (compare_classes): Likewise.
646 (find_imps): Cast msym pointer to avoid compiler warning.
647 (print_object_command): Validate the address before
648 passing it to the print routine.
649 (find_objc_msgcall_submethod): Change function argument to
650 return an int.
651 * objc-lang.h: Add 'extern' to all function declarations.
652 (value_nsstring): Add declaration.
653
654 2002-12-02 J. Brobecker <brobecker@gnat.com>
655
656 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
657 Fixes a build failure on HP/UX.
658
659 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
660 failure on HP/UX.
661 (hpread_has_name): Advance declaration to avoid a compilation warning.
662 (pst_syms_count): Add missing variable type. By change, the compiler
663 was defaulting to int, which seems a good choice. Fixes a compilation
664 warning.
665 (pst_syms_size): Likewise.
666
667 2002-12-02 J. Brobecker <brobecker@gnat.com>
668
669 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
670 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
671 later to set the proper gdbarch methods depending on the osabi.
672 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
673
674 2002-12-02 J. Brobecker <brobecker@gnat.com>
675
676 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
677 * osabi.c (gdb_osabi_name): Add strings images for the two new
678 enum values.
679 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
680
681 2002-12-02 Andrew Cagney <ac131313@redhat.com>
682
683 * MAINTAINERS (Java): Global maintainers are responible for Java.
684 (Past Maintainers): Mention both Anthony Green and Per Bothner as
685 part Java maintainers.
686
687 2002-12-02 J. Brobecker <brobecker@gnat.com>
688
689 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
690 Fixes a compilation failure on AiX.
691
692 2002-12-02 J. Brobecker <brobecker@gnat.com>
693
694 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
695 why aix-thread.o is not listed.
696
697 2002-12-01 Andrew Cagney <ac131313@redhat.com>
698
699 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
700 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
701 * gdbarch.h, gdbarch.c: Re-generate.
702 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
703 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
704 * config/pa/tm-hppa.h, frame.h: Update.
705 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
706 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
707 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
708 * cris-tdep.c, alpha-tdep.c: Update.
709 * frame.c (set_unwind_by_pc, create_new_frame): Use either
710 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
711 (get_prev_frame): Ditto.
712
713 2002-11-30 Andrew Cagney <cagney@redhat.com>
714
715 * exec.c (xfer_memory): Replace boolean with int.
716 * p-exp.y: Use 0 instead of false.
717 * corelow.c (gdb_check_format): Change return type to int from
718 boolean.
719 * utils.c: Don't include <curses.h> or <term.h> first.
720
721 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
722
723 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
724 (m68hc11_register_byte): Remove.
725 (m68hc11_gdbarch_init): Don't set the above.
726
727 2002-11-29 Andrew Cagney <cagney@redhat.com>
728
729 * remote-mips.c (mips_initialize): Force a selected frame rebuild
730 by calling get_selected_frame.
731 * ocd.c (ocd_start_remote): Use get_selected frame instead of
732 set_current_frame, create_new_frame, select_frame and
733 get_current_frame.
734 * remote-e7000.c (e7000_start_remote): Ditto.
735 * remote-mips.c (common_open): Ditto
736 * remote-rdp.c (remote_rdp_open): Ditto.
737
738 2002-11-29 Andreas Schwab <schwab@suse.de>
739
740 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
741 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
742 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
743 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
744 read_memory_unsigned_integer instead of read_memory_integer when
745 dealing with addresses and instruction opcodes.
746 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
747 (m68k_linux_frame_saved_pc): Likewise.
748
749 2002-11-29 Andrew Cagney <ac131313@redhat.com>
750
751 * stack.c (selected_frame, select_frame): Move from here ...
752 * frame.c (selected_frame, select_frame): ... to here. Include
753 "language.h".
754 * Makefile.in (frame.o): Update dependencies.
755 * frame.c (get_selected_frame): New function.
756 * frame.h (get_selected_frame): Declare.
757 (deprecated_selected_frame): Rename selected_frame.
758 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
759 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
760 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
761 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
762 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
763 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
764 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
765 * z8k-tdep.c, cli/cli-cmds.c: Update.
766
767 2002-11-29 Andrew Cagney <ac131313@redhat.com>
768
769 * frame.h (get_selected_block): Add comments.
770
771 2002-11-28 Andrew Cagney <ac131313@redhat.com>
772
773 * frame.c (pc_notcurrent): New function.
774 (find_frame_sal): New function.
775 * frame.h (find_frame_sal): Declare.
776 (struct symtab_and_line): Add opaque declaration.
777 * stack.c (print_frame_info_base): Use find_frame_sal instead of
778 find_pc_line.
779 (frame_info): Ditto.
780 * ada-lang.c (find_printable_frame): Ditto.
781
782 2002-11-28 J. Brobecker <brobecker@gnat.com>
783
784 * configure.in: Check that the pthdebug library is recent enough
785 before enabling thread support on native AiX.
786 * configure: Regenerate.
787
788 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
789 from the list of object files as it is now appended by configure
790 if thread support is enabled.
791 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
792 if thread support is enabled.
793
794 2002-11-28 Andrew Cagney <cagney@redhat.com>
795
796 * stack.c (get_selected_block): In-line get_current_block.
797 * frame.h (get_current_block): Delete declaration.
798 * blockframe.c (get_current_block): Delete function.
799
800 2002-11-28 Andrew Cagney <ac131313@redhat.com>
801
802 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
803 USE_GENERIC_DUMMY_FRAMES.
804 * gdbarch.h, gdbarch.c: Regenerate.
805 * valops.c, frame.c: Update.
806 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
807 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
808 * config/pa/tm-hppa.h, blockframe.c: Update.
809 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
810 * m68k-tdep.c, alpha-tdep.c: Ditto.
811
812 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
813 * mips-tdep.c: Ditto.
814
815 2002-11-27 Andrew Cagney <ac131313@redhat.com>
816
817 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
818 (USE_GENERIC_DUMMY_FRAMES): Default to true.
819 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
820 * gdbarch.c, gdbarch.h: Re-generate.
821 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
822 (CALL_DUMMY_LOCATION): Delete macro definition.
823 (PC_IN_CALL_DUMMY): Delete macro definitions.
824
825 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
826 default is already generic_pc_in_call_dummy.
827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
828 * v850-tdep.c (v850_gdbarch_init): Ditto.
829 * sh-tdep.c (sh_gdbarch_init): Ditto.
830 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
831 * mips-tdep.c (mips_gdbarch_init): Ditto.
832 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
834 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
835 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
836 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
837 * avr-tdep.c (avr_gdbarch_init): Ditto.
838
839 * arm-tdep.c (arm_gdbarch_init): Do not set
840 use_generic_dummy_frames, default is already 1.
841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
842 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
843 * v850-tdep.c (v850_gdbarch_init): Ditto.
844 * sh-tdep.c (sh_gdbarch_init): Ditto.
845 * s390-tdep.c (s390_gdbarch_init): Ditto.
846 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
848 * mips-tdep.c (mips_gdbarch_init): Ditto.
849 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
851 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
852 * i386-tdep.c (i386_gdbarch_init): Ditto.
853 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
854 * frv-tdep.c (frv_gdbarch_init): Ditto.
855 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
856 * cris-tdep.c (cris_gdbarch_init): Ditto.
857 * avr-tdep.c (avr_gdbarch_init): Ditto.
858
859 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
860 call_dummy_location, default is already AT_ENTRY_POINT.
861 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
862 * v850-tdep.c (v850_gdbarch_init): Ditto.
863 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
864 * sh-tdep.c (sh_gdbarch_init): Ditto.
865 * s390-tdep.c (s390_gdbarch_init): Ditto.
866 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
867 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
868 * mips-tdep.c (mips_gdbarch_init): Ditto.
869 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
871 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
872 * i386-tdep.c (i386_gdbarch_init): Ditto.
873 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
874 * frv-tdep.c (frv_gdbarch_init): Ditto.
875 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
876 * cris-tdep.c (cris_gdbarch_init): Ditto.
877 * avr-tdep.c (avr_gdbarch_init): Ditto.
878 * arm-tdep.c (arm_gdbarch_init): Ditto.
879 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
880
881 2002-11-28 Andrew Cagney <cagney@redhat.com>
882
883 * frame.h: Update comments on set_current_frame, create_new_frame,
884 flush_cached_frames, reinit_frame_cache, select_frame and
885 selected_frame.
886
887 2002-11-27 Andrew Cagney <cagney@redhat.com>
888
889 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
890 deprecated pc_in_call_dummy function.
891 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
892 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
893 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
894 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
895 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
896
897 2002-11-26 Martin M. Hunt <hunt@redhat.com>
898
899 * Makefile.in: Remove Tix dependencies.
900 * acinclude.m4: Ditto.
901 * aclocal.m4: Ditto.
902 * configure.in: Ditto.
903 * configure: Regenerated.
904
905 2002-11-26 Andrew Cagney <ac131313@redhat.com>
906
907 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
908 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
909 * gdbarch.c: Re-generate.
910
911 2002-11-26 Andrew Cagney <ac131313@redhat.com>
912
913 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
914 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
915 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
916 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
917 pc_in_call_dummy_at_entry_point.
918 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
919 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
920 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
921 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
922 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
923 pc_in_call_dummy_on_stack.
924 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
925 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
926 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
927 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
928 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
929
930 2002-11-26 Andrew Cagney <ac131313@redhat.com>
931
932 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
933 pc_in_call_dummy_before_text_end
934 (deprecated_pc_in_call_dummy_after_text_end): Rename
935 pc_in_call_dummy_after_text_end.
936 (deprecated_pc_in_call_dummy_on_stack): Rename
937 pc_in_call_dummy_on_stack.
938 (deprecated_pc_in_call_dummy_at_entry_point): Rename
939 pc_in_call_dummy_at_entry_point.
940 * m68k-tdep.c (m68k_gdbarch_init): Update.
941 * s390-tdep.c (s390_gdbarch_init): Update.
942 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
943 * vax-tdep.c (vax_gdbarch_init): Update.
944 * sparc-tdep.c (sparc_gdbarch_init): Update.
945 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
946 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
947 * i386-tdep.c (i386_gdbarch_init): Update.
948 * frv-tdep.c (frv_gdbarch_init): Update.
949 * cris-tdep.c (cris_gdbarch_init): Update.
950 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
951 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
952 (deprecated_pc_in_call_dummy_after_text_end)
953 (deprecated_pc_in_call_dummy_on_stack)
954 (deprecated_pc_in_call_dummy_at_entry_point): Update.
955 * alpha-tdep.c (alpha_gdbarch_init): Update.
956
957 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
958
959 * acconfig.h (HAVE_PREAD64): Add.
960 * configure.in: Check for pread64.
961 * config.in: Regenerated.
962 * configure: Regenerated.
963 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
964 * linux-proc.c (linux_proc_xfer_memory): New function.
965 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
966
967 2002-11-25 David Carlton <carlton@math.stanford.edu>
968
969 * dwarf2read.c (scan_partial_symbols): Descend into namespace
970 pdi's with no name.
971
972 2002-11-25 Andrew Cagney <ac131313@redhat.com>
973
974 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
975 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
976
977 2002-11-25 Jim Blandy <jimb@redhat.com>
978
979 * symfile.c (init_objfile_sect_indices): New function.
980 (default_symfile_offsets): Move the section-index-initializing
981 stuff into init_objfile_sect_indices, and call that.
982
983 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
984 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
985
986 * symfile.c (syms_from_objfile): Adjust indentation.
987
988 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
989 || info_verbose isn't true.
990
991 2002-11-24 Andrew Cagney <ac131313@redhat.com>
992
993 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
994 default to get_frame_base.
995 * gdbarch.h, gdbarch.c: Regenerate.
996 * arch-utils.c (default_frame_address): Delete function.
997 * arch-utils.h (default_frame_address): Delete declaration
998
999 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1000
1001 * varobj.c (find_frame_addr_in_frame_chain):
1002 Use get_frame_base instead of FRAME_FP,
1003 obvious fix.
1004
1005 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1006
1007 * frame.h (FRAME_FP): Delete macro.
1008 (get_frame_base): New function declaration.
1009 * frame.c (get_frame_base): New function.
1010 (get_frame_id): Use ->frame.
1011 (frame_find_by_id): Rewrite to use get_frame_id.
1012 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1013 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1014 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1015 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1016 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1017 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1018 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1019
1020 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1021
1022 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1023
1024 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1025
1026 * frame.c (set_unwind_by_pc): Revert change below, use
1027 PC_IN_CALL_DUMMY.
1028 (get_prev_frame): Ditto.
1029
1030 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1031
1032 * dummy-frame.c (pc_in_dummy_frame): New function.
1033 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1034 (find_dummy_frame): Update comment.
1035 (generic_pop_current_frame): Use get_frame_type.
1036 * dummy-frame.h (pc_in_dummy_frame): Declare.
1037 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1038 (create_new_frame): Use pc_in_dummy_frame.
1039 (get_prev_frame): Use pc_in_dummy_frame.
1040 (frame_saved_regs_register_unwind): Use get_prev_frame.
1041 (deprecated_generic_get_saved_register): Use get_prev_frame.
1042
1043 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1044
1045 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1046 from here ...
1047 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1048 (varobj_create): Note that frame ID should be used.
1049 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1050
1051 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1052
1053 * breakpoint.c: Include "gdb_assert.h".
1054 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1055 not being used.
1056 * Makefile.in (breakpoint.o): Update dependencies.
1057 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1058 deprecated_frame_in_dummy.
1059 * stack.c (print_frame_info_base): Ditto.
1060 (frame_info): Ditto.
1061 (print_frame_info_base): Ditto. Delete dead code.
1062
1063 2002-11-23 Andreas Schwab <schwab@suse.de>
1064
1065 * Makefile.in (m68k_tdep_h): Define.
1066 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1067 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1068 * m68k-tdep.c: Move register number enum ...
1069 * m68k-tdep.h: ... to this new file and rename the constants from
1070 E_* to M68K_*. All uses changed.
1071 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1072 * abug-rom.c: Include "m68k-tdep.h". Use
1073 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1074 * cpu32bug-rom.c: Likewise.
1075 * dbug-rom.c: Likewise.
1076 * m68k-tdep.c: Likewise.
1077 * m68klinux-nat.c: Likewise.
1078 * remote-est.c: Likewise.
1079 * rom68k-rom.c: Likewise.
1080 * config/m68k/tm-linux.h: Likewise.
1081
1082 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1083
1084 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1085 dummy frame initialization code.
1086 * mips-tdep.c (mips_gdbarch_init): Ditto.
1087
1088 2002-11-22 Christopher Faylor <cgf@redhat.com>
1089
1090 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1091 attach will hang.
1092
1093 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1094
1095 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1096 to default_frame_address.
1097 * gdbarch.h, gdbarch.c: Re-generate.
1098
1099 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1100 or frame_locals_address to default_frame_address.
1101 * m68k-tdep.c (m68k_gdbarch_init): Update.
1102 * i386-tdep.c (i386_gdbarch_init): Update.
1103 * frv-tdep.c (frv_gdbarch_init): Update.
1104 * sh-tdep.c (sh_gdbarch_init): Update.
1105 * v850-tdep.c (v850_gdbarch_init): Update.
1106 * sparc-tdep.c (sparc_gdbarch_init): Update.
1107 * mips-tdep.c (mips_gdbarch_init): Update.
1108 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1109 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1110 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1111
1112 * cris-tdep.c (cris_frame_args_address): Delete function.
1113 (cris_frame_locals_address): Delete function.
1114 (cris_gdbarch_init): Do not set frame_args_address or
1115 frame_locals_address.
1116
1117 2002-11-22 Michael Snyder <msnyder@redhat.com>
1118
1119 * thread-db.c (thread_db_load): Tell the user what's going on
1120 if dlopen fails on libthread_db.
1121
1122 2002-11-23 Andreas Schwab <schwab@suse.de>
1123
1124 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1125 invariant return values.
1126
1127 2002-11-22 Andreas Schwab <schwab@suse.de>
1128
1129 * valops.c (value_slice): Move declaration of `offset' to avoid
1130 warning.
1131
1132 2002-11-22 Christopher Faylor <cgf@redhat.com>
1133
1134 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1135 (struct so_stuff): Add end_addr field.
1136 (register_loaded_dll): Calculate and store end address of loaded dll.
1137 (solib_address): New function.
1138 (child_solib_loaded_library_pathname): Pass carefully constructed
1139 section info to safe_symbol_file_add rather than ignoring it.
1140 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1141 DLL is loaded.
1142 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1143 (child_create_inferior): Fix a compiler warning.
1144 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1145 (solib_address): Declare new function.
1146
1147 2002-11-22 Andreas Schwab <schwab@suse.de>
1148
1149 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1150 and FPS registers.
1151
1152 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1153
1154 * maint.c (_initialize_maint_cmds): Fix typo. From
1155 Francesco Potorti` <pot@gnu.org>.
1156
1157 2002-11-21 Andrew Cagney <cagney@redhat.com>
1158
1159 * mips-tdep.c (mips_dump_tdep): Delete references to
1160 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1161 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1162 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1163 * printcmd.c (build_address_symbolic): Delete calls to
1164 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1165 (address_info): Ditto.
1166 Fix PR gdb/773.
1167
1168 2002-11-19 Klee Dienes <kdienes@apple.com>
1169 Adam Fedor <fedor@gnu.org>
1170
1171 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1172 the ability to explicitly specify the quote characters and word
1173 break characters; if NULL is specified for either, use the old
1174 behavior of using the characters used by the completer.
1175 (skip_chars): New function. Convenience wrapper around
1176 skip_quoted_chars to provide the original skip_chars behavior.
1177 * completer.h (skip_quoted_chars): Add prototype.
1178
1179 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1180
1181 Problems reported by Paul Eggert.
1182 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1183
1184 2002-11-19 Andreas Schwab <schwab@suse.de>
1185
1186 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1187 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1188 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1189 (m68k_linux_frame_saved_pc): Move to ...
1190 * m68klinux-tdep.c: ... here. New file.
1191 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1192 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1193
1194 2002-11-19 Adam Fedor <fedor@gnu.org>
1195
1196 * objc-exp.y: Revert to old skip_quoted usage.
1197
1198 2002-11-19 Adam Fedor <fedor@gnu.org>
1199
1200 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1201 (objc_lang_h): Define.
1202 (YYFILES): Add objc-exp.tab.c.
1203 (local-maintainer-clean): Remove objc-exp.tab.c.
1204 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1205
1206 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1207
1208 * p-exp.y (typecast rule): Add automatic dereference of
1209 pascal classes if needed.
1210 (THIS): Set current_type.
1211 Automatically dereference pascal classes.
1212 (typebase rule): Add ^typebase recognition.
1213
1214 2002-11-18 Adam Fedor <fedor@gnu.org>
1215
1216 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1217 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1218 (op_name): Handle OP_OBJC_SELF.
1219 * Makefile.in (expprint.o): Add additional depends.
1220
1221 2002-11-18 Adam Fedor <fedor@gnu.org>
1222
1223 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1224 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1225 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1226 * objc-exp.y: Likewise.
1227
1228 2002-11-18 Adam Fedor <fedor@gnu.org>
1229
1230 * gdb/parser-defs.h: (struct objc_class_str): New structure
1231 for parsing ObjC classes.
1232
1233 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1234
1235 * stack.c (frame_relative_level): Copy function from here ...
1236 * frame.c (frame_relative_level): ...to here.
1237
1238 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1239
1240 * frame.h (enum frame_type): Define.
1241 (get_frame_type): Declare.
1242 (struct frame_info): Add field `type'. Delete field
1243 signal_handler_caller.
1244 (deprecated_set_frame_signal_handler_caller): Declare.
1245 * frame.c (get_frame_type): New function.
1246 (deprecated_set_frame_type): New function.
1247 (create_new_frame): Set the frame's type.
1248 (get_prev_frame): Similar.
1249 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1250 * s390-tdep.c: Ditto.
1251 * m68klinux-nat.c: Ditto.
1252 * ns32k-tdep.c: Ditto.
1253 * x86-64-linux-tdep.c: Ditto.
1254 * vax-tdep.c: Ditto.
1255 * rs6000-tdep.c: Ditto.
1256 * ppc-linux-tdep.c: Ditto.
1257 * i386-interix-tdep.c: Ditto.
1258 * mips-tdep.c: Ditto.
1259 * m68k-tdep.c: Ditto.
1260 * hppa-tdep.c: Ditto.
1261 * ia64-tdep.c: Ditto.
1262 * cris-tdep.c: Ditto.
1263 * arm-tdep.c: Ditto.
1264 * alpha-tdep.c: Ditto.
1265 * i386-tdep.c: Ditto.
1266 * stack.c: Ditto.
1267 * ada-lang.c: Ditto.
1268 * blockframe.c: Update.
1269 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1270 deprecated_set_frame_type instead of signal_handler_caller.
1271 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1272 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1273 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1274
1275 2002-11-18 Klee Dienes <kdienes@apple.com>
1276
1277 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1278
1279 2002-11-18 Klee Dienes <kdienes@apple.com>
1280
1281 * buildsym.c (pop_context): Add comment.
1282
1283 2002-11-18 Klee Dienes <kdienes@apple.com>
1284
1285 * buildsym.h (pop_context): Convert to function, defined in
1286 buildsym.c.
1287 * buildsym.c: Include gdb_assert.h.
1288 (pop_context): Implement as C function. Add check for stack
1289 underflow.
1290 * dbxread.c (process_one_symbol): Complain and stop processing
1291 that symbol if we are already at the top of the context stack for
1292 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1293 when processing N_RBRAC.
1294
1295 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1296
1297 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1298 define.
1299 (struct target_waitstatus): Add opaque definition.
1300 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1301 * exec.c (init_exec_ops): Likewise.
1302 * fork-child.c (clone_and_follow_inferior): Remove.
1303 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1304 * inferior.h (clone_and_follow_inferior): Remove prototype.
1305 * infrun.c (follow_fork_mode_both): Remove.
1306 (follow_fork_mode_kind_names): Remove commented out "both".
1307 (follow_inferior_fork): Remove follow_fork_mode_both support.
1308 * inftarg.c (child_clone_and_follow_inferior): Remove.
1309 (child_post_follow_inferior_by_clone): Remove.
1310 (init_child_ops): Don't set to_clone_and_follow_inferior
1311 or to_post_follow_inferior_by_clone.
1312 * target.c (default_clone_and_follow_inferior): Remove.
1313 (cleanup_target): Don't set to_clone_and_follow_inferior
1314 or to_post_follow_inferior_by_clone.
1315 (find_default_clone_and_follow_inferior): Remove.
1316 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1317 (debug_to_clone_and_follow_inferior): Remove.
1318 (debug_to_post_follow_inferior_by_clone): Remove.
1319 (setup_target_debug): Don't set to_clone_and_follow_inferior
1320 or to_post_follow_inferior_by_clone.
1321 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1322 and to_post_follow_inferior_by_clone.
1323 (child_clone_and_follow_inferior): Remove prototype.
1324 (child_post_follow_inferior_by_clone): Remove prototype.
1325 (target_clone_and_follow_inferior): Remove macro.
1326 (target_post_follow_inferior_by_clone): Remove macro.
1327 (find_default_clone_and_follow_inferior): Remove prototype.
1328
1329 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1330
1331 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1332 inferior_has_vforked, and inferior_has_execd instead of
1333 target_has_forked, target_has_vforked, and target_has_execd.
1334 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1335 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1336 (CHILD_WAIT): Define.
1337 (child_wait): Add prototype.
1338 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1339 Add prototype.
1340 (hpux_has_vforked): Likewise, from child_has_vforked.
1341 (hpux_has_execd): Likewise, from child_has_execd.
1342 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1343 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1344 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1345 and hpux_has_syscall_event instead of the target hooks.
1346 * infrun.c (inferior_has_forked, inferior_has_vforked)
1347 (inferior_has_execd): New functions.
1348 * inftarg.c (not_same_real_pid): Remove.
1349 (child_wait): Remove references to not_same_real_pid,
1350 target_has_forked, target_has_vforked, target_has_execd,
1351 and target_has_syscall_event.
1352 (child_has_forked, child_has_vforked, child_has_execd)
1353 (child_has_syscall_event): Remove.
1354 (init_child_ops): Remove references to child_has_forked,
1355 child_has_vforked, child_has_execd, and child_has_syscall_event.
1356 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1357 (hpux_has_vforked): Likewise, from child_has_vforked.
1358 (hpux_has_execd): Likewise, from child_has_execd.
1359 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1360 * target.c (cleanup_target): Remove references to
1361 to_has_forked, to_has_vforked, to_has_execd, and
1362 to_has_syscall_event.
1363 (update_current_target): Likewise.
1364 (setup_target_debug): Likewise.
1365 (debug_to_has_forked): Remove.
1366 (debug_to_has_vforked): Remove.
1367 (debug_to_has_execd): Remove.
1368 (debug_to_has_syscall_event): Remove.
1369 * target.h (struct target_ops): Remove to_has_forked.
1370 to_has_vforked, to_has_execd, and to_has_syscall_event.
1371 (child_has_forked, child_has_vforked, child_has_execd)
1372 (child_has_syscall_event): Remove prototypes.
1373 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1374 prototypes.
1375 (target_has_forked, target_has_vforked, target_has_execd)
1376 (target_has_syscall_event): Remove macros.
1377
1378 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1379
1380 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1381 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1382 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1383 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1384 * target.c (cleanup_target): Remove reference to
1385 to_can_follow_vfork_prior_to_exec.
1386 (update_current_target): Likewise.
1387 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1388 (setup_target_debug): Remove reference to
1389 to_can_follow_vfork_prior_to_exec.
1390 * target.h (struct target_ops): Remove
1391 to_can_follow_vfork_prior_to_exec.
1392 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1393 (target_can_follow_vfork_prior_to_exec): Remove definition.
1394 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1395 define.
1396 * infrun.c (follow_vfork_when_exec): Remove.
1397 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1398 (follow_exec): Likewise.
1399 (handle_inferior_event): Likewise.
1400 (keep_going): Likewise.
1401
1402 2002-11-15 Andrew Cagney <cagney@redhat.com>
1403
1404 * frame.c (generic_unwind_get_saved_register): Make static.
1405 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1406 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1407 defaults to generic_unwind_get_saved_register.
1408 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1409 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1410 * frv-tdep.c (frv_gdbarch_init): Ditto.
1411 * i386-tdep.c (i386_gdbarch_init): Ditto.
1412 * s390-tdep.c (s390_gdbarch_init): Ditto.
1413 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1414 * v850-tdep.c (v850_gdbarch_init): Ditto.
1415 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1416 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1417 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1418
1419 2002-11-15 Andrew Cagney <cagney@redhat.com>
1420
1421 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1422 i386-tdep.c.
1423
1424 2002-11-15 Andrew Cagney <cagney@redhat.com>
1425
1426 * frame.h (sigtramp_saved_pc): Delete declaration.
1427 * blockframe.c (sigtramp_saved_pc): Delete function.
1428 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1429 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1430 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1431 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1432
1433 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1434
1435 * frame.c (frame_pc_unwind): New function.
1436 (frame_saved_regs_pc_unwind): New function.
1437 (frame_register_unwind): Pass unwind_cache instead of
1438 register_unwind_cache.
1439 (set_unwind_by_pc): Add unwind_pc parameter, set.
1440 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1441 (get_prev_frame): Ditto.
1442 * frame.h (frame_pc_unwind_ftype): Declare.
1443 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1444 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1445 (frame_pc_unwind): Declare.
1446 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1447 (struct dummy_frame): Add comment mentioning that values are for
1448 previous frame.
1449 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1450 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1451 (generic_file_frame_chain_valid): Ditto.
1452 * stack.c (frame_info): Ditto.
1453
1454 2002-11-15 David Carlton <carlton@math.stanford.edu>
1455
1456 * linespec.c (locate_first_half): New function.
1457 (decode_line_1): Move code into locate_first_half.
1458
1459 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1460
1461 * complaints.h: Add comment explaining how to eliminate a
1462 deprecated_complain call.
1463 * complaints.h: Fix spelling errors.
1464
1465 2002-11-15 David Carlton <carlton@math.stanford.edu>
1466
1467 * printcmd.c: Remove #include "disasm.h".
1468
1469 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1470
1471 * frame.h: Move the most relevant interface functions to the start
1472 of the file.
1473
1474 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1475
1476 * regcache.h (deprecated_registers): Rename registers.
1477 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1478 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1479 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1480 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1481 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1482 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1483 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1484 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1485 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1486 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1487 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1488 * v850ice.c: Update.
1489
1490 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1491
1492 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1493 NULL buffer.
1494
1495 2002-11-13 Andrew Cagney <cagney@redhat.com>
1496
1497 * regcache.h (deprecated_read_register_bytes): Rename
1498 read_register_bytes.
1499 (deprecated_write_register_bytes): Rename write_register_bytes.
1500 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1501 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1502 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1503 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1504 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1505 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1506 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1507 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1508 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1509 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1510 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1511 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1512 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1513 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1514
1515 2002-11-13 Jim Blandy <jimb@redhat.com>
1516
1517 * findvar.c (read_var_value): Doc fix.
1518
1519 2002-11-13 Andrew Cagney <cagney@redhat.com>
1520
1521 * regcache.c (struct regcache): Replace passthough_p with
1522 readonly_p.
1523 (regcache_xmalloc): Initialize readonly_p.
1524 (build_regcache): Initialize readonly_p.
1525 (regcache_save): New function.
1526 (regcache_restore): New function.
1527 (regcache_cpy): Re-implement using regcache_save and
1528 regcache_restore.
1529 (regcache_raw_read): Update.
1530 (regcache_cooked_read): When a read-only cache, checked for cached
1531 pseudo register values.
1532 (regcache_raw_write): Assert that the cache is not read-only.
1533 Remove code handling a non-passthrough cache.
1534 * regcache.h (regcache_save): Declare.
1535 (regcache_restore): Declare.
1536
1537 2002-11-13 Andrew Cagney <cagney@redhat.com>
1538
1539 * regcache.c (struct regcache_descr): Add fields
1540 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1541 (init_legacy_regcache_descr): Compute the size of a cooked
1542 register cache and then assign that to sizeof_raw_registers. Set
1543 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1544 (init_legacy_regcache_descr): Ditto.
1545
1546 2002-11-13 Andrew Cagney <cagney@redhat.com>
1547
1548 * regcache.c (register_buffer): Move to near start of file, update
1549 description.
1550 (regcache_raw_read): Use.
1551 (regcache_raw_write): Use.
1552 (struct regcache): Rename raw_registers to registers and
1553 raw_register_valid_p to register_valid_p.
1554 (regcache_xmalloc): Update.
1555 (regcache_xfree): Update.
1556 (register_buffer): Update.
1557 (regcache_cpy): Update.
1558 (regcache_cpy_no_passthrough): Update.
1559 (regcache_valid_p): Update.
1560 (deprecated_grub_regcache_for_registers): Update.
1561 (deprecated_grub_regcache_for_register_valid): Update.
1562 (set_register_cached): Update.
1563 (regcache_raw_write): Update.
1564
1565 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1566
1567 * p-exp.y (name_not_typename): Use copy_name to
1568 set current_type variable for fields of THIS.
1569
1570 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1571
1572 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1573 * monitor.c (init_base_monitor_ops): Likewise.
1574 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1575 * remote-array.c (init_array_ops): Likewise.
1576 * remote-e7000.c (init_e7000_ops): Likewise.
1577 * remote-es.c (init_es1800_ops): Likewise.
1578 (init_es1800_child_ops): Likewise.
1579 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1580 * remote-sim.c (init_gdbsim_ops): Likewise.
1581 * remote-st.c (init_st2000_ops): Likewise.
1582 * sol-thread.c (init_sol_core_ops): Likewise.
1583 (init_sol_thread_ops): Likewise.
1584 * v850ice.c (init_850ice_ops): Likewise.
1585 * win32-nat.c (init_child_ops): Likewise.
1586 * wince.c (init_child_ops): Likewise.
1587
1588 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1589
1590 * utils.c (gdb_realpath): Make rp a constant pointer.
1591
1592 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1593
1594 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1595 a constant buffer; cannonicalize_file_name(); realpath() with a
1596 pathconf() defined buffer, xstrdup().
1597
1598 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1599
1600 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1601 to hang2.C; hang3.c to hang3.C.
1602
1603 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1604
1605 * findvar.c (read_var_value): Reenable TLS code.
1606
1607 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1608 Jim Blandy <jimb@redhat.com>
1609
1610 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1611 * target.c (update_current_target): Add
1612 to_get_thread_local_address.
1613 * target.h (to_get_thread_local_address): Export.
1614 (target_get_thread_local_address): Define.
1615 (target_get_thread_local_address_p): Define.
1616 * thread-db.c: Include solib-svr4.h.
1617 (td_thr_tls_get_addr_p): Define.
1618 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1619 (thread_db_get_thread_local_address): New function.
1620 (init_thread_db_ops): Initialize to_get_thread_local_address.
1621 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1622 * configure: Regenerate.
1623 * config.in: Regenerate.
1624
1625 2002-11-11 David Carlton <carlton@math.stanford.edu>
1626
1627 * linespec.c (set_flags): New function.
1628 (decode_line_1): Move code into set_flags.
1629
1630 2002-11-11 David Carlton <carlton@math.stanford.edu>
1631
1632 * linespec.c (decode_line_1): Move chunks of code to separate
1633 functions.
1634 (initialize_defaults): New function.
1635 (decode_indirect): New function.
1636
1637 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1638
1639 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1640 instead of void_code_ptr.
1641 (sigtramp_saved_pc): Ditto.
1642
1643 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1644 i386_fp_regnum_p.
1645
1646 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1647
1648 * gdbtypes.h (struct main_type): Move artificial flag out of
1649 loc. New member of ``struct field'' named static_kind. Reduce
1650 overloaded meaning of bitsize.
1651 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1652 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1653 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1654
1655 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1656 new fields.
1657 (template_to_fixed_record_type, template_to_static_fixed_type)
1658 (to_record_with_fixed_variant_part): Likewise.
1659 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1660 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1661 * dwarfread.c (struct_type, enum_type): Likewise.
1662 * hpread.c (hpread_read_enum_type)
1663 (hpread_read_function_type, hpread_read_doc_function_type)
1664 (hpread_read_struct_type): Likewise.
1665 * mdebugread.c (parse_symbol): Likewise.
1666
1667 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1668
1669 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1670 * stack.c (print_frame_info_base): Update.
1671 (print_frame_info_base, frame_info): Update.
1672 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1673 (sparc_frame_saved_pc): Update.
1674 * ada-lang.c (find_printable_frame): Update.
1675 * breakpoint.c (deprecated_frame_in_dummy): Update.
1676
1677 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1678
1679 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1680 defined.
1681 (regmap): Extend to cover all registers.
1682 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1683 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1684 definitions.
1685 (fetch_register, sore_register): Simplify.
1686 (old_fetch_inferior_registers, old_store_inferior_registers):
1687 Remove functions.
1688 (cannot_fetch_register, cannot_store_register): Change
1689 implementation to use regmap array to decide which registers
1690 cannot be fetched/stored. This removes $orig_eax from the
1691 registers that cannot be fetched/stored.
1692 (fetch_inferior_registers): Call fetch_register directly instead
1693 of calling old_fetch_inferior_registers.
1694 (store_inferior_registers): Call store_register directly instead
1695 of calling old_store_inferior_registers.
1696 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1697 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1698 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1699
1700 2002-11-09 Klee Dienes <kdienes@apple.com>
1701
1702 * i387-tdep.c (i387_supply_register): When called with NULL as a
1703 buffer, mark the register as not provided (to mirror the behavior
1704 of supply_register).
1705 (i387_supply_fxsave): Ditto.
1706 (i387_supply_fsave): Ditto (inherits the behavior from
1707 i387_supply_register).
1708
1709 2002-11-09 Klee Dienes <kdienes@apple.com>
1710
1711 * blockframe.c (sigtramp_saved_pc): Use
1712 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1713 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1714 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1715
1716 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1717
1718 * frame.c (get_prev_frame): Test prev_p to identify a previously
1719 unwound frame. Initialize prev_p.
1720 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1721 comment.
1722
1723 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1724
1725 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1726 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1727 more comments. Zap dead code.
1728
1729 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1730
1731 * infcmd.c (print_vector_info, print_float_info): Move code that
1732 checks whether the target has any registers and whether there is a
1733 selected frame up, such that it is also used if a target provides
1734 multi-arch definitions of these functions.
1735
1736 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1737
1738 * Makefile.in (DESTDIR): Define.
1739 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1740 prefix.
1741
1742 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1743 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1744
1745 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1746
1747 * i386-linux-tdep.c: Include "reggroups.h".
1748 (i386_linux_register_reggroup_p): New function.
1749 (i386_linux_init_abi): Set register_reggroup_p to
1750 i386_linux_register_reggroup_p.
1751 * i386-tdep.h (i386_register_reggroup_p): Declare.
1752 * i386-tdep.c: Include "reggroups.h".
1753 (i386_init_reggroups): New function.
1754 (i386_add_reggroups): New function.
1755 (i386_register_reggroup_p): New function.
1756 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1757 (_initialize_i386_tdep): Call i386_init_reggroups.
1758 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1759 specific reggroups.
1760
1761 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1762
1763 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1764 request that's available in *BSD.
1765
1766 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1767
1768 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1769 FDOFF_REGNUM.
1770
1771 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1772
1773 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1774 * dummy-frame.c (find_dummy_frame): Rename
1775 generic_find_dummy_frame, make static. Return the dummy frame
1776 instead of the regcache.
1777 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1778 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1779 (dummy_frame_register_unwind): Rename
1780 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1781 * dummy-frame.h (dummy_frame_register_unwind): Rename
1782 generic_call_dummy_register_unwind.
1783
1784 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1785
1786 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1787 except the inclusion of "i386/tm-i386.h", to...
1788 * config/i386/nm-i386v42mp.h: ...here.
1789 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1790
1791 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1792
1793 * Makefile.in (frame.o): Update dependencies.
1794 * blockframe.c (current_frame, frame_obstack_alloc)
1795 (frame_saved_regs_zalloc, get_current_frame)
1796 (set_current_frame, create_new_frame)
1797 (set_unwind_by_pc, get_next_frame)
1798 (flush_cached_frames, reinit_frame_cache)
1799 (frame_saved_regs_register_unwind)
1800 (deprecated_generic_get_saved_register)
1801 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1802 (_initialize_blockframe): Move frame code from here...
1803 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1804 "annotate.h" and "dummy-frame.h".
1805 (_initialize_frame): New function.
1806
1807 2002-11-08 Jim Blandy <jimb@redhat.com>
1808
1809 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1810 when we finish a function a context.
1811 * buildsym.h (outermost_context_p): New macro.
1812 (Bug analyzed by David Edelsohn.)
1813
1814 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1815
1816 * blockframe.c: Include "dummy-frame.h".
1817 (struct dummy_frame, dummy_frame_stack)
1818 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1819 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1820 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1821 (generic_save_call_dummy_addr, generic_pop_current_frame)
1822 (generic_pop_dummy_frame, generic_fix_call_dummy)
1823 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1824 dummy frame code from here...
1825 * dummy-frame.c: ...to here. New file.
1826 * dummy-frame.h: New file.
1827 (generic_call_dummy_register_unwind): Declare.
1828 (generic_find_dummy_frame): Declare.
1829 * Makefile.in (SFILES): Add dummy-frame.c.
1830 (dummy-frame.o): Specify dependencies.
1831 (dummy_frame_h): Define.
1832 (COMMON_OBS): Add dummy-frame.o.
1833 (blockframe.o): Update dependencies.
1834
1835 2002-11-08 Jim Blandy <jimb@redhat.com>
1836
1837 * dwarf2read.c (read_func_scope): Restore local_symbols and
1838 param_symbols after we finish the function context. (Based on a
1839 patch from David Edelsohn.)
1840
1841 2002-11-08 David Carlton <carlton@math.stanford.edu>
1842
1843 * linespec.c (symbol_found): New function.
1844 (minsym_found): New function.
1845 (decode_line_1): Separate out some code into separate functions.
1846
1847 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1848
1849 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1850 the benefit of the interix target.
1851 * i386-tdep.h (i386_frameless_signal_p): Declare.
1852
1853 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1854
1855 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1856 declaration that snuck in from change below.
1857
1858 2002-11-06 Andrew Cagney <cagney@redhat.com>
1859
1860 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1861 all callers.
1862 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1863 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1864 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1865 (i386_mxcsr_regnum_p): new function. Use instead of
1866 MXCSR_REGNUM_P.
1867 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1868 (i386_sse_regnum_p): Declare.
1869 (i386_mxcsr_regnum_p): Declare.
1870 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1871 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1872 (IS_FP_REGNUM): Update definition.
1873 (IS_FPU_CTRL_REGNUM): Update definition..
1874 (IS_SSE_REGNUM): Update definition..
1875 * i386v-nat.c (register_u_addr): Update.
1876 * go32-nat.c (fetch_register): Update.
1877 (store_register): Update.
1878
1879 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1880
1881 Preparation work to convert the hppa targets to multiarch partial.
1882
1883 * hppa-tdep.c: Add new functions replacing macro bodies from
1884 config/pa/tm-hppa.h. These function will be used to initialize
1885 the gdbarch structure. Import some comments from tm-hppa.h,
1886 and place them where appropriate, to avoid loosing them when
1887 we cleanup this file.
1888 (hppa_reg_struct_has_addr): New function.
1889 (hppa_inner_than): New function.
1890 (hppa_stack_align): New function.
1891 (hppa_pc_requires_run_before_use): New function.
1892 (hppa_instruction_nullified): New function.
1893 (hppa_register_byte): New function.
1894 (hppa_register_virtual_type): New function.
1895 (hppa_store_struct_return): New function.
1896 (hppa_cannot_store_register): New function.
1897 (hppa_frame_args_address): New function.
1898 (hppa_frame_locals_address): New function.
1899 (hppa_smash_text_address): New function.
1900 (hppa_coerce_float_to_double): New function. Requires the inclusion
1901 of "language.h".
1902
1903 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1904
1905 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1906 gdbarch-eligible macro to a call to the new associated function
1907 created in hppa-tdep.c.
1908 (INNER_THAN): Likewise.
1909 (STACK_ALIGN): Likewise.
1910 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1911 (INSTRUCTION_NULLIFIED): Likewise.
1912 (REGISTER_BYTE): Likewise.
1913 (REGISTER_VIRTUAL_TYPE): Likewise.
1914 (STORE_STRUCT_RETURN): Likewise.
1915 (CANNOT_STORE_REGISTER): Likewise.
1916 (FRAME_ARGS_ADDRESS): Likewise.
1917 (FRAME_LOCALS_ADDRESS): Likewise.
1918 (SMASH_TEXT_ADDRESS): Likewise.
1919 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1920 (ABOUT_TO_RETURN): Delete, as no longer used.
1921
1922 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1923
1924 * printcmd.c (disassemble_command): Remove obsolete function.
1925 (_initialize_printcmd): Do not create disassemble command here.
1926 * cli/cli-cmds.c (disassemble_command): New function. Implements
1927 disassemble command.
1928 (init_cli_cmds): Create disassemble command here instead.
1929
1930 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1931
1932 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1933
1934 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1935
1936 * regcache.h (regcache_cooked_read_using_offset_hack)
1937 (regcache_cooked_write_using_offset_hack): Delete declarations.
1938 (register_changed): Delete declaration.
1939 * regcache.c (regcache_cooked_read_using_offset_hack)
1940 (regcache_cooked_write_using_offset_hack): Delete functions.
1941 (cooked_xfer_using_offset_hack): Delete function.
1942 (register_changed): Delete function.
1943
1944 2002-11-07 Jim Blandy <jimb@redhat.com>
1945
1946 * macroscope.c: #include "complaints.h".
1947 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1948 but not in the macro table.
1949 * Makefile.in (macroscope.o): Record dependency.
1950
1951 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1952
1953 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1954
1955 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1956
1957 * regcache.c (deprecated_registers_fetched): Update.
1958 * regcache.h (deprecated_registers_fetched): Rename
1959 registers_fetched.
1960 * remote-vxsparc.c (vx_read_register): Update.
1961 * remote-vxmips.c (vx_read_register): Update.
1962 * remote-vx68.c (vx_read_register): Update.
1963 * irix5-nat.c (fetch_core_registers): Update.
1964 * mipsm3-nat.c (fetch_inferior_registers): Update.
1965 * sun3-nat.c (fetch_inferior_registers): Update.
1966 * symm-nat.c (fetch_inferior_registers): Update.
1967 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1968 (fetch_core_registers): Update.
1969 (fetch_kcore_registers): Update.
1970 * mips-nat.c (fetch_inferior_registers): Update.
1971 * corelow.c (get_core_registers): Update.
1972 * a68v-nat.c (fetch_inferior_registers): Update.
1973
1974 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1975
1976 Put in place the framework necessary for multiarching the hppa targets.
1977 * hppa-tdep.c (hppa_gdbarch_init): New function.
1978 (hppa_dump_tdep): New function.
1979 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1980 tdep structure dumper.
1981 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1982 until the multi-arching conversion has partially been completed.
1983
1984 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1985
1986 * valops.c (value_assign): Merge lval_register case into
1987 lval_reg_frame_relative. Use frame_register and
1988 regcache_cooked_write instead of get_saved_register and
1989 write_register_bytes. After flushing the register cache, try to
1990 re-select the selected frame.
1991
1992 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1993
1994 * regcache.h (deprecated_register_valid): Rename register_valid.
1995 * regcache.c: Update.
1996 * ia64-aix-nat.c: Update.
1997 * i386gnu-nat.c: Update.
1998 * alpha-nat.c: Update.
1999 * sparc-nat.c: Update.
2000 * lynx-nat.c: Update.
2001 * remote-mips.c: Update.
2002
2003 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2004
2005 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2006 to end of file, to be more consistent with the pratice followed
2007 by other targets.
2008
2009 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2010
2011 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2012 (print_float_info): Print registers in float_reggroup.
2013 (print_vector_info): Print registers in vector_reggroup.
2014 (default_print_registers_info): When all, print registers in
2015 all_reggroup. Otherwize, print registers in general_reggroup.
2016 (registers_info): Rewrite. Add support for register groups.
2017 Eliminate a goto.
2018
2019 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2020
2021 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2022 ages.
2023 (symtab_symbol_info): Remove eons old ifdeffed out code.
2024 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2025 command.
2026
2027 2002-11-06 Theodore A. Roth <troth@openavr.org>
2028
2029 * c-exp.y: Add missing semi-colons.
2030 * f-exp.y: Add missing semi-colons.
2031 * m2-exp.y: Add missing semi-colons.
2032 * p-exp.y: Add missing semi-colons.
2033 Add empty action to start rule to avoid a type clash error when
2034 building with bison >= 1.50.
2035
2036 2002-11-06 Jim Blandy <jimb@redhat.com>
2037
2038 * macrotab.h (struct macro_source_file): Doc fix.
2039
2040 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2041
2042 * varobj.c (child_exists, cplus_number_of_children): Change
2043 STREQ macro references to strcmp.
2044 (cplus_name_of_child): Change code to handle the fact that
2045 fields are not necessarily contiguous with regards to their
2046 access control. This is a fix for PR gdb/792.
2047
2048 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2049
2050 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2051 * gdbarch.h, gdbarch.c: Regnerate.
2052 * frame.h (frame_register): Declare.
2053 * frame.c (frame_register): New function.
2054 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2055 GET_SAVED_REGISTER, otherwize call
2056 generic_unwind_get_saved_register.
2057 (frame_register_read): Use frame_register instead of
2058 get_saved_register.
2059
2060 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2061
2062 From Jim Ingham <jingham@apple.com>:
2063 * event-top.c (gdb_disable_readline): New function.
2064 (_initialize_event_loop): Move comment.
2065
2066 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2067
2068 * event-loop.c (start_event_loop): Add comment.
2069 Update copyright.
2070
2071 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2072
2073 * infcmd.c (default_print_registers_info): Do not call
2074 PRINT_REGISTER_HOOK.
2075
2076 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2077
2078 * sparc-tdep.c (sparc_print_register_hook): Make static.
2079 (sparc_print_registers_info): New function.
2080 (sparc_do_registers_info): New function.
2081 (sparclet_print_registers_info): New function.
2082 (sparclet_do_registers_info): New function.
2083 (do_sparc_print_registers_info): New function.
2084 (sparc_print_registers): New static function, clone of infcmd.c's
2085 default_print_registers_info.
2086 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2087 (sparclet_do_registers_info): Declare.
2088 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2089 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2090 Re-define.
2091 (sparc_do_registers_info): Declare.
2092 (PRINT_REGISTER_HOOK): Delete macro.
2093 (sparc_print_register_hook): Delete declaration.
2094
2095 2002-11-05 David Carlton <carlton@math.stanford.edu>
2096
2097 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2098 functions.
2099 (lookup_symbol_aux_local): New function.
2100 (lookup_symbol_aux_symtabs): New function.
2101 (lookup_symbol_aux_psymtabs): New function.
2102
2103 2002-11-05 David Carlton <carlton@math.stanford.edu>
2104
2105 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2106 previous values of 'objfile' and 'block'.
2107
2108 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2109
2110 * values.c (value_change_enclosing_type): Set
2111 enclosing_type field correctly also for the case where
2112 more memory needs to be allocated.
2113
2114 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2115
2116 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2117 of puts_filtered.
2118
2119 * i387-tdep.c (i387_print_float_info): Replace calls to
2120 register_read and deprecated_read_register_gen with calls to
2121 frame_register_read, and make the necessary adjustments to the
2122 surrounding code.
2123
2124 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2125
2126 * gdbarch.sh (register_reggroup_p): Allow default value.
2127 * gdbarch.h, gdbarch.c: Regenerate.
2128
2129 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2130
2131 * regcache.h: Add coment indicating replacements for deprecated
2132 functions.
2133
2134 2002-11-02 Andrew Cagney <cagney@redhat.com>
2135
2136 * reggroups.h, reggroups.c: New files.
2137 * regcache.c: Include "reggroups.h".
2138 (enum regcache_dump_what): Add `regcache_dump_groups'.
2139 (regcache_dump): Contract size of the "Type" column. When
2140 specified, dump the register's groups.
2141 (maintenance_print_register_groups): New function.
2142 (_initialize_regcache): Add command `maint print register-groups'.
2143 * Makefile.in (COMMON_OBS): Add reggroups.o
2144 (SFILES): Add reggroups.c.
2145 (reggroups_h): Define.
2146 (regcache.o, gdbarch.o): Update dependencies.
2147 (reggroups.o): Specify dependencies.
2148 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2149 Add opaque declaration for `struct reggroup' in generated .h file.
2150 Include "reggroups.h" in generated .c file.
2151 gdbarch.h, gdbarch.c: Re-generate.
2152
2153 2002-11-02 Andrew Cagney <cagney@redhat.com>
2154
2155 * regcache.h (deprecated_read_register_gen): Rename
2156 read_register_gen.
2157 (deprecated_write_register_gen): Rename write_register_gen.
2158 * i387-tdep.c: Update.
2159 * x86-64-linux-nat.c: Update
2160 * wince.c: Update.
2161 * thread-db.c: Update.
2162 * win32-nat.c: Update.
2163 * mips-tdep.c: Update.
2164 * d10v-tdep.c: Update.
2165 * cris-tdep.c: Update.
2166 * remote-sim.c: Update.
2167 * remote-rdi.c: Update.
2168 * remote-rdp.c: Update.
2169 * frame.c: Update.
2170 * target.c: Update.
2171 * blockframe.c: Update.
2172 * x86-64-tdep.c: Update.
2173 * xstormy16-tdep.c: Update.
2174 * sh-tdep.c: Update.
2175 * s390-tdep.c: Update.
2176 * rs6000-tdep.c: Update.
2177 * sparc-tdep.c: Update.
2178 * i386-tdep.c: Update.
2179 * dwarf2cfi.c: Update.
2180 * regcache.c: Update.
2181
2182 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2183
2184 New interix-specific files:
2185 * config/i386/nm-interix.h: New file.
2186 * config/i386/interix.mh: New file.
2187 * config/i386/interix.mt: New file.
2188 * i386-interix-nat.c: New file.
2189 * i386-interix-tdep.c: New file.
2190
2191 2002-11-01 Andrew Cagney <cagney@redhat.com>
2192
2193 * frame.h (deprecated_generic_get_saved_register): Rename
2194 generic_get_saved_register.
2195 * blockframe.c (deprecated_generic_get_saved_register): Update.
2196 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2197 (xstormy16_frame_saved_register): Update.
2198 * sh-tdep.c (sh_gdbarch_init): Update.
2199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2200 * ia64-tdep.c (ia64_get_saved_register): Update.
2201 * cris-tdep.c (cris_gdbarch_init): Update.
2202 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2203 * arm-tdep.c (arm_gdbarch_init): Update.
2204
2205 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2206
2207 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2208
2209 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2210
2211 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2212 trampolines in sigaction.
2213
2214 2002-10-31 Andrew Cagney <cagney@redhat.com>
2215
2216 * h8300-tdep.c: Include "gdb_assert.h".
2217 (h8300_print_register): Add gdbarch, file and frame parameters.
2218 Use frame_read_unsigned_register to read the register's value.
2219 Use fprintf_filtered to display output.
2220 (h8300_print_registers_info): Replace h8300_do_registers_info.
2221 (h8300_gdbarch_init): Set print_registers_info.
2222
2223 2002-10-31 Andrew Cagney <cagney@redhat.com>
2224
2225 * frame.c (frame_read_unsigned_register): New function.
2226 (frame_read_signed_register): New function.
2227 * frame.h (frame_read_unsigned_register): Declare.
2228 (frame_read_signed_register): Declare.
2229
2230 2002-10-31 Andrew Cagney <cagney@redhat.com>
2231
2232 * h8500-tdep.c (h8500_print_registers_info): New static function,
2233 clone of infcmd.c's default_print_registers_info.
2234 (h8500_do_registers_info): New funtion.
2235 (h8500_print_register_hook): Rename print_register_hook, make
2236 static.
2237
2238 * config/h8500/tm-h8500.h: Update copyright.
2239 (DEPRECATED_DO_REGISTERS_INFO): Define.
2240 (h8500_do_registers_info: Declare.
2241 (PRINT_REGISTER_HOOK): Delete macro.
2242 (print_register_hook): Delete function.
2243
2244 2002-10-31 Andrew Cagney <cagney@redhat.com>
2245
2246 * z8k-tdep.c (z8k_print_register_hook): Make static.
2247 (z8k_print_registers_info): New static function, clone of
2248 infcmd.c's default_print_registers_info.
2249 (z8k_do_registers_info): New function. Wrap
2250 z8k_print_registers_info.
2251 * config/z8k/tm-z8k.h: Update copyright.
2252 (PRINT_REGISTER_HOOK): Delete macro.
2253 (z8k_print_register_hook): Delete declaration.
2254 (DEPRECATED_DO_REGISTERS_INFO): Define.
2255 (z8k_do_registers_info): Declare.
2256
2257 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2258
2259 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2260 as this is already provided by value.h, and was actually causing
2261 a compilation error because of a conflict in parameter type
2262 declaration due to a missing const keyword.
2263 (low_text_segment_addres): Fix a compilation warning.
2264
2265 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2266
2267 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2268 registers without a name.
2269 (mips_linux_cannot_store_register): Don't store registers without
2270 a name.
2271
2272 2002-10-28 David Carlton <carlton@math.stanford.edu>
2273
2274 * symtab.c (find_addr_symbol): Delete. (It was already commented
2275 out.)
2276 * symtab.h: Delete prototype for find_addr_symbol.
2277
2278 2002-10-26 Andrew Cagney <cagney@redhat.com>
2279
2280 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2281 DO_REGISTERS_INFO.
2282 gdbarch.h, gdbarch.c: Re-generate.
2283 * infcmd.c (default_print_registers_info): Update reference.
2284 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2285 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2286 * sh-tdep.c (sh_gdbarch_init): Ditto.
2287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2288 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2289
2290 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2291
2292 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2293 cfi_init_extra_frame_info.
2294 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2295 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2296
2297 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2298 target where necessary. Add more comments and remove the ones
2299 that don't provide any useful information.
2300
2301 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2302 deprecated_read_register_dummy with
2303 frame_unwind_unsigned_register.
2304
2305 * i386-tdep.c (i386_extract_struct_value_address): Use
2306 regcache_raw_read_unsigned instead of
2307 regcache_cooked_read_unsigned since we know that the register
2308 we're reading isn't a pseudo register. Rename variable 'val' into
2309 the more descriptive 'addr'.
2310
2311 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2312 (x86_64_push_return_address): Add comment.
2313 (x86_64_pop_frame): Make static.
2314 (examine_argument): Clarify comment.
2315 (x86_64_skip_prologue): Make prolog_expact variable static.
2316
2317 * dwarf2cfi.c: Fix some formatting problems.
2318 (context_cpy, read_encoded_pointer): Clarify comments.
2319
2320 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2321 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2322 i386 target back into x86_64_gdbarch_init. Add some comments and
2323 remove meaningless ones.
2324
2325 2002-10-25 Andrew Cagney <cagney@redhat.com>
2326
2327 * complaints.h (struct deprecated_complaint): Rename `struct
2328 complaint'.
2329 * complaints.c (complain): Update.
2330 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2331 incorrect comment indicating that "symfile.h" was being included
2332 for the `struct complaint' definition.
2333 * remote-vx.c: Update.
2334 * objc-lang.c: Update.
2335 * xcoffread.c: Update.
2336 * hpread.c: Update.
2337 * mdebugread.c: Update.
2338 * stabsread.c: Update.
2339 * dwarf2read.c: Update.
2340 * dwarfread.c: Update.
2341 * elfread.c: Update.
2342 * coffread.c: Update.
2343 * stabsread.h: Update.
2344 * dbxread.c: Update.
2345 * buildsym.c: Update.
2346 * gdbtypes.c: Update.
2347 * macrotab.c: Update.
2348
2349 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2350
2351 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2352 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2353 (x86_64_init_abi): ...new function.
2354
2355 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2356 * i386v-nat.c: Include "i386-tdep.h".
2357
2358 2002-10-25 Andrew Cagney <cagney@redhat.com>
2359
2360 * gdbtypes.c (address_space_name_to_int): Update.
2361 (address_space_int_to_name): Update.
2362 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2363 multi-arch predicate.
2364 (address_class_name_to_type_flags): Ditto.
2365 * gdbarch.h, gdbarch.c: Re-generate.
2366
2367 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2368
2369 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2370
2371 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2372
2373 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2374
2375 * symtab.h (INIT_SAL): Delete macro.
2376 (init_sal): Export.
2377 * symtab.c (init_sal): New function.
2378
2379 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2380 to init_sal function call.
2381 (find_sal_from_funcs_and_line): Ditto.
2382 (all_sals_for_line): Ditto.
2383 * breakpoint.c (create_internal_breakpoint): Ditto.
2384 (create_fork_vfork_event_catchpoint): Ditto.
2385 (create_exec_event_catchpoint): Ditto.
2386 (parse_breakpoint_sals): Ditto.
2387 (watch_command_1): Ditto.
2388 (handle_gnu_4_16_catch_command): Ditto.
2389 (clear_command): Ditto.
2390 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2391 * infcmd.c (run_stack_dummy): Ditto.
2392 * infrun.c (process_event_stop_test): Ditto.
2393 (check_sigtramp2): Ditto.
2394 (step_over_function): Ditto.
2395 * linespec.c (decode_line_2): Ditto.
2396 (decode_line_1): Ditto.
2397 * source.c (line_info): Ditto.
2398 * symtab.c (find_pc_sect_line): Ditto.
2399
2400 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2401
2402 * dwarf2cfi.c (struct context)
2403 (struct context_reg): Moved to dwarf2cfi.h
2404 (context_alloc, frame_state_alloc, context_cpy):
2405 Made extern instead of static, removed prototypes.
2406 * dwarf2cfi.h (struct context)
2407 (struct context_reg): New, moved from dwarf2cfi.c
2408 (context_alloc, frame_state_alloc, context_cpy):
2409 New prototypes.
2410 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2411 Changed from static to extern.
2412 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2413 (LINUX_SIGCONTEXT_FP_OFFSET)
2414 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2415 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2416 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2417 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2418 set_gdbarch_*() calls now use x86-64 specific functions
2419 instead of DWARF2 CFI ones.
2420 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2421 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2422 (x86_64_init_extra_frame_info): New prototypes.
2423
2424 2002-10-23 David Carlton <carlton@math.stanford.edu>
2425
2426 * linespec.c: #include "parser-defs.h".
2427 Delete prototype for find_template_name_end.
2428 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2429
2430 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2431
2432 * NEWS: add recent mi fixes.
2433 * varobj.c (struct varobj): Add new "updated" flag.
2434 (new_variable): Default "updated" flag to 0.
2435 (varobj_set_value): Set "updated" flag to 1 if value
2436 changes.
2437 (varobj_update): Check varobj "updated" flag before
2438 comparing old and refreshed values. Fix for
2439 PR gdb/702.
2440
2441 2002-10-23 David Carlton <carlton@math.stanford.edu>
2442
2443 * parse.c (parse_exp_1): Use BLOCK_START.
2444 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2445 SYMBOL_BLOCK_VALUE.
2446 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2447
2448 2002-10-23 David Carlton <carlton@math.stanford.edu>
2449
2450 * symtab.c: Delete cplusplus_hint.
2451 Delete prototype for find_template_name_end.
2452
2453 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2454
2455 * symtab.h: Update comment.
2456
2457 2002-10-23 Michael Snyder <msnyder@redhat.com>
2458
2459 * printcmd.c (address_info): Restore quotes in output.
2460 * valops.c (value_of_local): Restore quotes in error message.
2461
2462 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2463
2464 * symtab.c (symbol_demangled_name): New function.
2465 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2466 turning most of it into a function.
2467 (symbol_demangled_name): Export.
2468
2469 2002-10-23 Michael Snyder <msnyder@redhat.com>
2470
2471 * valops.c (value_of_local): Restore quotes in error message.
2472
2473 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2474
2475 * symtab.c (symbol_init_language_specific): New function.
2476 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2477 turning most of it into a function.
2478 (symbol_init_language_specific): Export.
2479
2480 2002-10-23 David Carlton <carlton@math.stanford.edu>
2481
2482 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2483 (dwarf_attr_name): Ditto.
2484 (dwarf_type_encoding_name): Ditto.
2485 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2486 (process_die): Handle DW_TAG_namespace,
2487 DW_TAG_imported_declaration, DW_TAG_imported_module.
2488 (read_namespace): New function.
2489
2490 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2491
2492 * configure.in: Define NEW_PROC_API on Interix too.
2493 * configure: Regenerate.
2494
2495 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2496
2497 * configure: Regenerate using the proper version of autoconf.
2498
2499 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2500
2501 * findvar.c (read_var_value): Temporarily disable TLS code, until
2502 complete TLS support is added.
2503
2504 2002-10-21 Jim Blandy <jimb@redhat.com>
2505 Elena Zannoni <ezannoni@redhat.com>
2506
2507 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2508 for thread local storage locations.
2509 (struct symbol): Add objfile field.
2510 (SYMBOL_OBJFILE): Define.
2511 * dwarf2read.c (is_thread_local): New static variable.
2512 (new_symbol): If variable is in thread local fill in address class
2513 and objfile appropriately.
2514 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2515 stack operation.
2516 * printcmd.c (address_info): Print the information for thread
2517 local storage variable.
2518 * findvar.c (read_var_value): In case of thread local variable,
2519 defer to the target vector code to compute address.
2520
2521 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2522
2523 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2524 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2525
2526 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2527
2528 * symtab.h (address_class): Rename
2529 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2530 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2531 * printcmd.c (address_info): Ditto.
2532 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2533
2534 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2535
2536 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2537 DBREG_DRX macro to acces debug registers.
2538
2539 * Makefile.in (i386obsd-tdep.o): New target.
2540
2541 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2542 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2543
2544 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2545 * config/i386/obsd.mt: New file.
2546 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2547 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2548 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2549 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2550 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2551 * i386obsd-tdep.c: New file.
2552
2553 2002-10-19 Adam Fedor <fedor@gnu.org>
2554
2555 * objc-exp.y (name_not_typename): Fix invalid comment.
2556
2557 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2558
2559 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2560 to allocate partial syms and macro byte caches.
2561
2562 2002-10-18 David Carlton <carlton@math.stanford.edu>
2563
2564 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2565
2566 2002-10-18 Adam Fedor <fedor@gnu.org>
2567
2568 * stabsread.c (find_name_end): New function.
2569 (define_symbol): Use it.
2570
2571 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2572
2573 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2574 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2575 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2576 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2577
2578 2002-10-17 David Carlton <carlton@math.stanford.edu>
2579
2580 * symfile.h: Add opaque declaration for struct obstack.
2581 Declare obsavestring to take a const char *.
2582 * symfile.c (obsavestring): Make first argument a const char *.
2583
2584 2002-10-16 Adam Fedor <fedor@gnu.org>
2585
2586 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2587 names when matching breakpoints in current file.
2588
2589 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2590
2591 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2592 (read_tag_pointer_type): Add address class support.
2593 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2594 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2595 New methods.
2596 * gdbarch.h, gdbarch.c: Regenerate.
2597 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2598 (make_type_with_address_space, recursive_type_dump): Add address
2599 class support.
2600 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2601 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2602 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2603
2604 2002-10-16 Klee Dienes <kdienes@apple.com>
2605
2606 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2607 to get the last character of a char[] buffer, not
2608 name[sizeof(vptr_name)-1].
2609
2610 2002-10-14 Adam Fedor <fedor@gnu.org>
2611
2612 * symtab.h: New objc_specific struct.
2613 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2614 (SYMBOL_DEMANGLED_NAME): Likewise.
2615
2616 2002-10-14 Adam Fedor <fedor@gnu.org>
2617
2618 * symfile.c (init_filename_language_table): Add ObjC file extension.
2619
2620 2002-10-14 Adam Fedor <fedor@gnu.org>
2621
2622 * utils.c (puts_filtered_tabular): New function.
2623 (fprintf_symbol_filtered): Get ObjC demangled name.
2624 * defs.h (puts_filtered_tabular): Declared.
2625
2626 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2627
2628 * c-lang.h (c_type_print_varspec_prefix): Delete.
2629 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2630 ``need_post_space'' parameter. Adjust all callers.
2631
2632 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2633
2634 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2635 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2636 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2637 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2638
2639 2002-10-13 Adam Fedor <fedor@gnu.org>
2640
2641 * source.c (print_source_lines): Update comments.
2642
2643 2002-10-13 Adam Fedor <fedor@gnu.org>
2644
2645 * valops.c (value_of_local): New function.
2646 (value_of_this): Use it.
2647 * value.h (value_of_local): Declared.
2648
2649 2002-10-13 Adam Fedor <fedor@gnu.org>
2650
2651 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2652 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2653
2654 2002-10-12 Adam Fedor <fedor@gnu.org>
2655
2656 * language.c (binop_result_type): Add language_objc to case.
2657 (integral_type): Likewise.
2658 (character_type): Likewise.
2659 (string_type): Likewise.
2660 (boolean_type): Likewise.
2661 (structured_type): Likewise.
2662 (binop_type_check): Likewise.
2663
2664 2002-10-11 Adam Fedor <fedor@gnu.org>
2665
2666 * printcmd.c (address_info): Print 'self' for ObjC.
2667
2668 2002-10-11 Adam Fedor <fedor@gnu.org>
2669
2670 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2671 OP_SELF.
2672
2673 2002-10-11 Adam Fedor <fedor@gnu.org>
2674
2675 * language.h (CAST_IS_CONVERSION): Add language_objc.
2676
2677 2002-10-11 Adam Fedor <fedor@gnu.org>
2678
2679 * defs.h (enum language): Add language_objc.
2680
2681 2002-10-11 Klee Dienes <kdienes@apple.com>
2682
2683 * corefile.c (read_memory_typed_address): New function.
2684 * gdbcore.h (read_memory_typed_address): Add prototype.
2685 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2686 to read a value destined for a CORE_ADDR, not read_memory_integer.
2687 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2688 (f77_get_dynamic_lowerbound): Ditto.
2689
2690 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2691
2692 * utils.c (string_to_core_addr): After turning string into
2693 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2694 which will do necessary sign-extension, etc.
2695
2696 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2697
2698 * c-exp.y (THIS): Delete token and grammar rule.
2699 (yylex): Don't return THIS.
2700 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2701 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2702 * demangle.c (cplus_markers): Update comment. Put '$'
2703 first. Remove CPLUS_MARKER.
2704 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2705 * jv-exp.y (THIS): Delete token and grammar rule.
2706 (yylex): Don't return THIS.
2707 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2708 * objc-exp.y (THIS): Delete token and grammar rule.
2709 (yylex): Don't return THIS.
2710 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2711 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2712 (read_member_functions): Likewise for opname.
2713 (read_tilde_fields): Use is_cplus_marker.
2714
2715 * defs.h (CPLUS_MARKER): Don't define.
2716 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2717 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2718 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2719 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2720 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2721
2722 * config/i386/tm-i386v4.h: Delete file.
2723 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2724 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2725 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2726 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2727 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2728 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2729 * config/i386/i386v4.mt (TM_FILE): Likewise.
2730 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2731
2732 2002-10-10 Marko Mlinar <markom@opencores.org>
2733
2734 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2735 accidentially not commited 2002-10-09
2736 * gdbarch.h, gdbarch.c: Re-generate.
2737
2738 2002-10-09 Marko Mlinar <markom@opencores.org>
2739
2740 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2741 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2742 * gdbarch.h, gdbarch.c: Re-generate.
2743
2744 2002-10-08 Petr Sorfa <petrs@caldera.com>
2745
2746 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2747
2748 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2749 so we can work on more than one compilation unit at a time. This
2750 helps prepare GDB to handle inter-CU die references.
2751 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2752 the code to be defined before struct comp_unit_head.
2753 (comp_unit_head): Added new members - offset, cu_head,
2754 begin_die, next and dwarf2_abbrevs.
2755 (dwarf2_abbrevs): Removed single static var; now member of
2756 struct comp_unit_head.
2757 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2758 members.
2759 (psymtab_to_symtab_1): Changed to work with the new
2760 struct comp_unit_head.
2761 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2762 constructs the dwarf2_abbrevs[] inside the cu_header.
2763 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2764 dwarf2_abbrev table to clean up.
2765 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2766 handling of dwarf2_abbrevs inside the cu_header.
2767 (read_partial_die): Now supports the call to the new
2768 dwarf2_lookup_abbrev.
2769 (read_full_die): Now supports the call to the new
2770 dwarf2_lookup_abbrev.
2771
2772 2002-10-06 Christopher Faylor <cgf@redhat.com>
2773
2774 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2775 insure that shell variables, such as "transformed_name" are propagated
2776 to later shell statements in rule.
2777
2778 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2779
2780 * config/i386/nm-i386sco.h: Add protection against
2781 multiple-inclusion. Include "i386/nm-i386v.h".
2782 (REGISTER_U_ADDR): Remove define.
2783 (i386_register_u_addr): Remove prototype.
2784
2785 2002-10-04 Michael Snyder <msnyder@redhat.com>
2786
2787 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2788 before treating it as a single-step event.
2789
2790 2002-10-03 Adam Fedor <fedor@gnu.org>
2791
2792 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2793 (objc_demangle): Remove assignment in if statements, Replace
2794 free with xfree.
2795 (add_msglist): Likewise.
2796 (end_msglist): Likewise.
2797 (complare_selectors): Likewise.
2798 (selectors_info): Likewise.
2799 (compare_classes): Likewise.
2800 (classes_info): Likewise.
2801 (print_object_command): Likewise.
2802 (find_objc_msgcall_submethod): Replace PTR with void *.
2803 * objc-lang.h: Remove check for __STDC__.
2804
2805 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2806
2807 * ui-out.h (ui_out_field_fmt_int): New prototype.
2808 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2809 of field width and alignment.
2810 * stack.c (print_frame_info_base): When printing frame level, use
2811 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2812 PR gdb/192
2813
2814 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2815
2816 * MAINTAINERS: Add self to Write After Approval list.
2817
2818 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2819
2820 * infcmd.c (interrupt_target_command_wrapper): Delete.
2821 (interrupt_target_command): Make non static.
2822 (nofp_registers_info): Make static.
2823 * stack.c (return_command_wrapper): Delete.
2824 (return_command): Make non static.
2825
2826 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2827
2828 * event-top.c (gdb_setup_readline): New function. Code moved from
2829 _initialize_event_loop().
2830 (_initialize_event_loop): Call gdb_setup_readline().
2831
2832 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2833
2834 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2835 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2836 * gdbarch.h, gdbarch.c: Re-generate.
2837
2838 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2839
2840 Fix PR gdb/778
2841 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2842 before recursing.
2843 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2844 of fill_in_vptr_fieldno.
2845
2846 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2847
2848 * inferior.h (registers_info, stepi_command, nexti_command,
2849 continue_command, interrupt_target_command): Export from infcmd.c.
2850 * frame.h (args_info, selected_frame_level_changed_hook,
2851 return_command): Export from stack.c.
2852 * v850ice.c (stepi_command, nexti_command, continue_command): use
2853 prototypes from inferior.h.
2854 * tracepoint.c (registers_info, args_info, locals_info): Use
2855 prototypes from frame.h and inferior.h.
2856 * Makefile.in (mi-main.o): Add dependency on frame.h.
2857
2858 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2859
2860 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2861 value in register 3 adjusted by ppc_gp0_regnum.
2862
2863 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2864
2865 2002-10-02 Marko Mlinar <markom@opencores.org>
2866
2867 * MAINTAINERS: Add myself to the Write After Approval list.
2868
2869 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2870
2871 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2872 of the section for the N64 ABI, fixed.
2873
2874 * config/mips/tm-irix6.h: Include solib.h.
2875
2876 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2877
2878 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2879 GNU operators.
2880
2881 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2882
2883 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2884 and that "mi0" syntax has been removed.
2885
2886 2002-09-30 David Carlton <carlton@math.stanford.edu>
2887
2888 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2889 * ppc-sysv-tdep.c: #include "gdb_string.h".
2890 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2891 pacify GCC.
2892
2893 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2894
2895 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2896 "vrsave"'s register number.
2897
2898 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2899
2900 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2901 use frame_unwind_signed_register to obtain the PC.
2902 (mips_frame_chain): Handle a generic dummy frame.
2903 (mips_init_extra_frame_info): When a generic dummy frame, don't
2904 re-compute the frame base.
2905 (mips_pop_frame): Handle generic dummy frames.
2906 (mips_gdbarch_init): When generic dummy frames, set
2907 use_generic_dummy_frames, push_dummy_frame to
2908 generic_push_dummy_frame, pc_in_call_dummy to
2909 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2910 generic_save_dummy_frame_tos.
2911
2912 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2913
2914 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2915 against TOP when TOP was explictly set.
2916 (generic_push_dummy_frame): Set TOP to zero.
2917
2918 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2919
2920 * event-loop.c (start_event_loop): Rename variable 'result' to
2921 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2922
2923 2002-09-30 Keith Seitz <keiths@redhat.com>
2924
2925 * gdb-events.sh (selected_thread_changed): New event.
2926 * gdb-events.c: Regenerated.
2927 * gdb-events.h: Regenerated.
2928
2929 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2930
2931 * MAINTAINERS: Add self to Write After Approval list.
2932
2933 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2934
2935 * disasm.c: New file.
2936 * disasm.h: New file.
2937 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2938 (compare_lines): Ditto.
2939 (dump_insns): Ditto.
2940 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2941 argument.
2942 (do_assembly_only): Ditto.
2943 (do_disassembly): Renamed to gdb_disassembly and moved to
2944 disasm.c. Sdded uiout argument.
2945 * Makefile.in: Add new files. Reorder SFILES list. Update
2946 dependencies. Include libgdb.a later in the insight executable.
2947
2948 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2949
2950 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2951 bfd/elf64-alpha-fbsd.c.
2952
2953 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2954
2955 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2956 i386gnu-tdep.c.
2957
2958 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2959
2960 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2961 __FUNCTION__.
2962 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2963 function name.
2964 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2965 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2966 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2967 (S_msg_sig_post_reply): Ditto.
2968
2969 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2970
2971 * sh-tdep.c (sh_use_struct_convention): Use definition according
2972 to ABI.
2973 (sh_push_arguments): Store in register with correct endianess.
2974 (sh_default_store_return_value): Ditto.
2975 (sh_gdbarch_init): Set sizeof long double to 8.
2976
2977 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2978
2979 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2980 Fix some whitespace problems.
2981
2982 2002-09-27 David Carlton <carlton@math.stanford.edu>
2983
2984 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2985 (mcore-tdep.o): Ditto.
2986 (ns32k-tdep.o): Ditto.
2987 (ns32knbsd-tdep.o): Ditto.
2988 (sh3-rom.o): Ditto.
2989 (vax-tdep.o): Ditto.
2990 * cris-tdep.c: #include "gdb_string.h"
2991 * mcore-tdep.c: Ditto.
2992 * ns32k-tdep.c: Ditto.
2993 * ns32knbsd-tdep.c: Ditto.
2994 * sh3-rom.c: Ditto.
2995 * vax-tdep.c: Ditto.
2996
2997 2002-09-27 David Carlton <carlton@math.stanford.edu>
2998
2999 * config/djgpp/fnchange.lst: Add entries for
3000 gdb/testsuite/gdb.c++/m-static files.
3001
3002 2002-09-27 Jim Wilson <wilson@redhat.com>
3003
3004 * MAINTAINERS: Add myself to the Write After Approval list.
3005
3006 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3007
3008 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3009
3010
3011 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3012
3013 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3014 frame.
3015
3016 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3017
3018 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3019 (rs6000_struct_return_address): Delete variable.
3020 (rs6000_store_struct_return): Update.
3021 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3022 deprecated_extract_struct_value_address.
3023 (rs6000_frame_align): New function.
3024 (rs6000_gdbarch_init): Set frame_align.
3025
3026 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3027
3028 From Grace Sainsbury <graces@redhat.com>:
3029 * Makefile.in (gdbtk-main.o): New target.
3030 (gdb.o): New target.
3031 (main_h): Define.
3032 (main.o): Update dependencies.
3033 (gdb$(EXEEXT)): Add gdb.o.
3034 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3035 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3036 (SUBDIR_GDBTK_CLEAN): Set.
3037 (install-gdbtk): Install the insight binary.
3038 (uninstall-gdbtk): New target.
3039 (all-gdbtk, clean-gdbtk): New rule.
3040 * top.c (use_windows): Default to zero.
3041 * main.c: Include "main.h".
3042 (main): Delete.
3043 (struct captured_main_args): Delete.
3044 (gdb_main): New function.
3045 * main.h: New file.
3046 * gdb.c: New File.
3047
3048 2002-09-25 Andrew Cagney <cagney@redhat.com>
3049
3050 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3051 (frame_map_regnum_to_name): New function.
3052 (frame_map_name_to_regnum): New function.
3053 * frame.h (frame_map_name_to_regnum): Declare.
3054 (frame_map_regnum_to_name): Declare.
3055 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3056 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3057 * parse.c: Do not include "builtin-regs.h".
3058 (target_map_name_to_register): Delete function.
3059 (write_dollar_variable): Use frame_map_name_to_regnum.
3060 * parser-defs.h (target_map_name_to_register): Delete declaration.
3061 * expprint.c: Include "frame.h".
3062 (print_subexp): Use frame_map_regnum_to_name.
3063 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3064 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3065
3066 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3067
3068 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3069 wasn't saved, and the next innermost frame is a dummy, return the
3070 dummy frame's link register.
3071
3072 2002-09-24 Jim Blandy <jimb@redhat.com>
3073
3074 Fix from Paul Breed:
3075 * main.c (captured_main): Add a `break' after the case for 'b'.
3076
3077 2002-09-24 Keith Seitz <keiths@redhat.com>
3078
3079 * varobj.c (c_type_of_child): Use get_target_type instead
3080 of TYPE_TARGET_TYPE.
3081
3082 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3083
3084 * source.c (get_current_or_default_source_symtab_and_line): Remove
3085 function.
3086 (set_default_source_symtab_and_line): New function. Attempts to
3087 determine a source file to list lines from if one is not currently
3088 defined.
3089 (get_current_source_symtab_and_line): Initialize sal.pc and
3090 sal.end fields.
3091 (set_current_source_symtab_and_line): Mark argument as const.
3092 * source.h: Update declarations and comments.
3093 * linespec.c (decode_line_1): Replace call to removed routine above.
3094 * stack.c (print_frame_info_base): Ditto.
3095 * cli/cli-cmds.c (edit_command): Ditto.
3096 (list_command): Ditto.
3097
3098 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3099
3100 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3101 sal.pc and sal.end fields.
3102 (get_current_or_default_source_symtab_and_line): Ditto.
3103 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3104 so we do not cause a new source symtab to be searched for (reverting an
3105 unintentional change from the 2002-09-20 patch).
3106 * scm-lang.c (scm_unpac): Ditto.
3107
3108 2002-09-21 Andrew Cagney <cagney@redhat.com>
3109
3110 * complaints.c (symfile_explanations): Remove new-line from
3111 ``isolated_message''.
3112 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3113 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3114
3115 2002-09-20 Nick Clifton <nickc@redhat.com>
3116
3117 * NEWS: Announce that V850EA ISA is no longer supported.
3118 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3119
3120 2002-09-20 David Carlton <carlton@math.stanford.edu>
3121
3122 * Makefile.in (c-lang.o): Correct dependencies.
3123 (utils.o): Gather dependencies.
3124 (charset.o): Move.
3125 * c-lang.c: #include "gdb_string.h"
3126
3127 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3128
3129 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3130 * cli/cli-cmds.c (list_command): New function. Implements the new
3131 cli edit command.
3132 (_init_cli_cmds): Add new command definition.
3133 * gdb.1: Document edit command.
3134 * doc/gdb.texinfo: Document edit command.
3135
3136 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3137
3138 * source.c: Make global variables current_source_symtab and
3139 current_source_line static.
3140 (list_command): Moved to cli/cli-cmds.c.
3141 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3142 (get_first_line_listed): New accessor function.
3143 (get_lines_to_list): New accessor function.
3144 (get_current_source_symtab_and_line): New function. Retrieves the
3145 position in the source code that we consider current.
3146 (get_current_or_default_source_symtab_and_line): New function.
3147 Like the above but attempts to determine a default position if one
3148 is not currently defined.
3149 (set_current_source_symtab_and_line): New function. Sets the source
3150 code position considered current and returns the previously set one.
3151 (clear_current_source_symtab_and_line): Reset stored information about
3152 a current source line.
3153 (_initialize_source): Remove registration for the "list" command and
3154 its alias.
3155 * source.h: Add declarations for the new functions above.
3156 * symtab.h: Remove declarations for the global variables mentioned
3157 above.
3158 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3159 obtain current source line.
3160 * linespec.c (decode_line_1): Ditto.
3161 * macroscope.c (default_macro_scope): Ditto.
3162 * scm-lang.c (scm_unpac): Ditto.
3163 * stack.c (print_frame_info_base): Ditto.
3164 * symfile.c (clear_symtab_users): Ditto.
3165 * symtab.c (decode_line_spec): Ditto.
3166 * cli/cli-cmds.c (list_command): Moved here from source.c.
3167 (ambiguous_line_spec): Moved here from source.c.
3168 (_init_cli_cmds): Add definition for "list" and its alias.
3169 * Makefile.in: Update dependencies.
3170
3171 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3172
3173 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3174 with what gcc thinks is correct.
3175
3176 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3177
3178 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3179 multiple register push instruction.
3180
3181 2002-09-19 Jim Blandy <jimb@redhat.com>
3182
3183 Add support for distinct host and target character sets.
3184 * charset.c, charset.h: New files.
3185 * c-exp.y: #include "charset.h".
3186 (yylex): Convert character and string literals to the target
3187 character set, before returning them as the semantic value of the
3188 token.
3189 * c-lang.c: #include "charset.h".
3190 (c_emit_char): Use charset-specific methods to recognize
3191 characters with backslash escape forms, to decide which characters
3192 to print literally and which to print using numeric escape
3193 sequences, and to convert target characters to host characters
3194 before printing.
3195 * utils.c: #include "charset.h".
3196 (no_control_char_error): New function.
3197 (parse_escape): Use charset-specific methods to recognize
3198 backslash escapes, parse `control character' notation, and convert
3199 characters from the host character set to the target character set.
3200 * configure.in: Set the default host character set.
3201 Check where to find iconv, and what its argument types might be.
3202 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3203 * Makefile.in (SFILES): List charset.c.
3204 (COMMON_OBS): List charset.o.
3205 (charset.o): New rule.
3206 (charset_h): New header dependency variable.
3207 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3208 (LIBICONV): New variable, set by configure.
3209 (CLIBS): Include $(LIBICONV) here.
3210 * aclocal.m4, config.in, configure: Regenerated.
3211
3212 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3213
3214 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3215 bison 1.35 warning.
3216
3217 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3218
3219 * gdb_mbuild.sh: New file.
3220
3221 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3222
3223 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3224
3225 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3226
3227 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3228 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3229 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3230 valops.c, value.h: Revert previous change.
3231
3232 2002-09-18 Michael Snyder <msnyder@redhat.com>
3233
3234 Preliminary support for Objective-C:
3235 * defs.h (language_objc): New enum value.
3236 (puts_filtered_tabular): Declaration only, exported from utils.c.
3237 (skip_quoted): Delete, declared in completer.h.
3238 * c-exp.y: Include completer.h.
3239 * p-exp.y: Ditto.
3240 * jv-exp.y: Ditto.
3241 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3242 New operator enum values.
3243 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3244 * language.c (binop_result_type): Handle language_objc case.
3245 (integral_type, character_type, string_type, boolean_type,
3246 structured_type, binop_type_check): Ditto.
3247 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3248 (struct objc_specific): Add to general_symbol_info.
3249 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3250 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3251 * parser-defs.h (struct objc_class_str): New struct type.
3252 (start_msglist, end_msglist, add_msglist): Declaration only,
3253 exported from objc-lang.c.
3254 * value.h (value_of_local, value_nsstring,
3255 call_function_by_hand_expecting_type): Exported from valops.c.
3256 * valops.c (find_function_addr): Export.
3257 (call_function_by_hand_expecting_type): New function.
3258 (value_of_local): New function.
3259 * symfile.c (init_filename_language_table): Add ".m" extension
3260 for Objective-C.
3261 * utils.c (puts_filtered_tabular): New function.
3262 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3263 (set/show demangle): Extend help-string to refer to ObjC.
3264 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3265 * stabsread.c (symbol_reference_defined): Objective-C symbols
3266 may contain colons: make allowances when scanning stabs strings
3267 for colons.
3268 (objc_find_colon): New function.
3269 * printcmd.c (address_info): If language == objc then print
3270 "self" instead of "this".
3271 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3272 OP_NSSTRING, and OP_SELF.
3273 (prefixify_subexp): Ditto.
3274 * source.c (print_source_lines): Mention objc in comment.
3275 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3276 method names.
3277
3278 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3279
3280 * complaints.h: Update copyright.
3281 (struct complaints): Declare.
3282 (struct complaint): Make `message' constant.
3283 (internal_complaint): Declare.
3284 (complaint): Declare.
3285 (complaint_root): Delete declaration.
3286 (symfile_complaints): Delete declaration.
3287 (struct complaints): Add opaque declaration.
3288 (clear_complaints): Add a complaints parameter.
3289 * complaints.c: Update copyright.
3290 (enum complaint_series): Define.
3291 (complaint_root): Delete.
3292 (struct complaints): Define.
3293 (complaint_sentinel, symfile_complaint_book): New variables.
3294 (symfile_explanations, symfile_complaints): New variables.
3295 New variables.
3296 (get_complaints): New function.
3297 (vcomplaint): New function.
3298 (complaint): New function.
3299 (internal_complaint): New function.
3300 (complain): Call vcomplain with symfile_complaint.
3301 (clear_complaints): Rewrite.
3302 (_initialize_complaints): Use add_setshow_command.
3303 * Makefile.in (complaints.o): Update dependencies.
3304 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3305 to call to clear_complaints.
3306 (new_symfile_objfile, reread_symbols): Ditto.
3307 (oldsyms_complaint): Delete.
3308 (empty_symtab_complaint, unknown_option_complaint): Delete.
3309 (free_named_symtabs): Use complaint instead of complain.
3310
3311 2002-09-18 Michael Snyder <msnyder@redhat.com>
3312
3313 Contributed by Apple Computer, Inc. Merged with current sources
3314 by Adam Fedor <fedor@doc.com> [cagney].
3315
3316 * objc-lang.c: First clean-up round: comments, indentation.
3317 * objc-lang.h: Ditto.
3318 * objc-lang.y: Ditto.
3319
3320 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3321
3322 * maint.c (maintenance_internal_error): Print the parameter as the
3323 error message.
3324 (maintenance_internal_warning): New function.
3325 (_initialize_maint_cmds): Add command `maint internal-warning'.
3326
3327 * defs.h (internal_warning, internal_vwarning): Declare.
3328 * utils.c (struct internal_problem): Define.
3329 (internal_vproblem): New function.
3330 (internal_warning): New function.
3331 (internal_vwarning): New function.
3332 (internal_warning_problem, internal_error_problem): New variables.
3333 (internal_verror): Just call internal_vproblem.
3334
3335 2002-09-18 Michael Snyder <msnyder@redhat.com>
3336
3337 * objc-lang.c: New file, support for Objective-C.
3338 Preliminary check-in, not yet integrated into gdb.
3339 * objc-lang.h: New file.
3340 * objc-exp.y: New file.
3341
3342 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3343
3344 * infrun.c (signal_stop_update): Convert definition to ISO C.
3345 (signal_print_update): Ditto.
3346 (signal_pass_update): Ditto.
3347 * inflow.c (terminal_save_ours): Ditto.
3348
3349 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3350 comments.
3351
3352 * config/djgpp/fnchange.lst: Handle name clashes between
3353 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3354 bfd/coff-tic80.c.
3355
3356 * i386-linux-tdep.h: Fix tipo.
3357
3358 2002-09-18 Adam Fedor <fedor@gnu.org>
3359
3360 * MAINTAINERS: Add myself to the Write After Approval list.
3361
3362 2002-09-18 Jim Blandy <jimb@redhat.com>
3363
3364 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3365 texthigh and textlow to reader-specific structs caused
3366 objfile_relocate to miss them. This is fixable, but the work that
3367 the change was supposed to prepare GDB for never got done anyway.
3368
3369 2002-09-18 David Carlton <carlton@math.stanford.edu>
3370
3371 * MAINTAINERS: Alphabetize Write After Approval list.
3372
3373 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3374
3375 Fix PR gdb/709
3376 * values.c (value_static_field): Call read_var_value.
3377
3378 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3379
3380 * valops.c (hand_function_call): Align the initial stack pointer
3381 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3382 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3383 return value.
3384 * mips-tdep.c (mips_frame_align): New function.
3385 (mips_gdbarch_init): Set frame_align.
3386 * gdbarch.sh (FRAME_ALIGN): New method.
3387 * gdbarch.h, gdbarch.c: Re-generate.
3388
3389 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3390
3391 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3392 registers.
3393
3394 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3395
3396 * NEWS: Mention that MIPS $fp behavior changed.
3397 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3398 reference to FP_REGNUM.
3399 (mipsnbsd_cannot_store_register): Ditto.
3400 * mips-linux-nat.c: Update copyright.
3401 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3402 (mips_linux_cannot_store_register): Ditto.
3403 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3404 * config/mips/tm-mips.h: Update copyright.
3405 (FP_REGNUM): Delete macro.
3406 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3407 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3408 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3409 (mips_r3041_reg_names, mips_r3051_reg_names)
3410 (mips_r3081_reg_names): Replace "fp" with "".
3411 Fix PR gdb/480.
3412
3413 2002-09-17 Theodore A. Roth <troth@verinet.com>
3414
3415 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3416 generic_read_register_dummy() (PR gdb/703).
3417 (avr_push_return_address): #if 0 out unused vars.
3418 (avr_gdbarch_init): Enable use of avr_push_return_address().
3419
3420 2002-09-17 Michael Snyder <msnyder@redhat.com>
3421
3422 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3423 RTE will take care of it.
3424
3425 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3426
3427 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3428 invalid, return SP_REGNUM.
3429
3430 2002-09-17 Michael Snyder <msnyder@redhat.com>
3431
3432 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3433 point registers without sign extension.
3434
3435 2002-09-17 Andrew Cagney <cagney@redhat.com>
3436
3437 * blockframe.c (deprecated_read_register_dummy): Rename
3438 generic_read_register_dummy.
3439 * frame.c (frame_unwind_signed_register): New function.
3440 (frame_unwind_unsigned_register): New function.
3441 * frame.h (frame_unwind_signed_register): Declare.
3442 (frame_unwind_unsigned_register): Declare.
3443 (deprecated_read_register_dummy): Rename
3444 generic_read_register_dummy.
3445
3446 * h8300-tdep.c (h8300_frame_chain): Update.
3447 (h8300_frame_saved_pc): Update.
3448 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3449 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3450 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3451 (s390_frame_chain): Update.
3452 * v850-tdep.c (v850_find_callers_reg): Update.
3453 (v850_frame_saved_pc): Update.
3454 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3455 (m32r_find_callers_reg): Update.
3456 (m32r_frame_saved_pc): Update.
3457 * sh-tdep.c (sh_find_callers_reg): Update.
3458 (sh64_get_saved_pr): Update.
3459 (sh_init_extra_frame_info): Update.
3460 (sh_init_extra_frame_info): Update.
3461 (sh64_init_extra_frame_info): Update.
3462 (sh64_init_extra_frame_info): Update.
3463 * mcore-tdep.c (mcore_find_callers_reg): Update.
3464 (mcore_frame_saved_pc): Update.
3465 (mcore_init_extra_frame_info): Update.
3466 * i386-tdep.c (i386_frame_saved_pc): Update.
3467 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3468 (ia64_init_extra_frame_info): Update.
3469 (ia64_init_extra_frame_info): Update.
3470 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3471 * cris-tdep.c (cris_init_extra_frame_info): Update.
3472 * avr-tdep.c (avr_frame_chain): Update.
3473 (avr_init_extra_frame_info): Update.
3474 (avr_frame_saved_pc): Update.
3475 * arm-tdep.c (arm_find_callers_reg): Update.
3476 (arm_init_extra_frame_info): Update.
3477 (arm_frame_saved_pc): Update.
3478
3479 2002-09-17 Tom Tromey <tromey@redhat.com>
3480
3481 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3482 is "'".
3483
3484 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3485
3486 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3487 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3488 NEXT_PROLOGUE_INSN.
3489 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3490 NEXT_PROLOGUE_INSN.
3491
3492 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3493
3494 * osfsolib.c: Remove file, replaced by solib-osf.c.
3495 * Makefile.in: Remove compilation rules for osfsolib.c.
3496
3497 2002-09-16 David Carlton <carlton@math.stanford.edu>
3498
3499 * cp-valprint.c (cp_print_class_method): Correct args to
3500 check_stub_method_group.
3501
3502 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3503
3504 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3505 `set architecture'. Unify naming convention of functions.
3506 (h8300_skip_prologue): Improve prologue analysis.
3507 (h8300_push_arguments): Rewritten to more closely match GCC's
3508 bizarre argument-passing behavior, along with the comment describing
3509 said behavior.
3510 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3511 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3512 sim, remote-e7000.c, remote-hms.c and remote.c
3513
3514 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3515
3516 * i386-tdep.c (gdb_print_insn_i386): Removed.
3517 (i386_print_insn): New function.
3518 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3519 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3520 tm_print_insn_info.
3521
3522 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3523
3524 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3525 zero.
3526
3527 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3528
3529 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3530 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3531 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3532
3533 2002-09-13 Christopher Faylor <cgf@redhat.com>
3534
3535 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3536
3537 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3538
3539 * gdbtypes.c (check_stub_method): Make static.
3540 (check_stub_method_group): New function.
3541 * gdbtypes.h: Update prototypes.
3542 * cp-support.c: New file.
3543 * cp-support.h: New file.
3544
3545 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3546 (update_method_name_from_physname): New function.
3547 (read_member_functions): Correct method names for operators
3548 and v3 constructors/destructors. Separate v2 constructors and
3549 destructors.
3550 * Makefile.in (stabsread.o): Update dependencies.
3551 (SFILES): Add cp-support.c.
3552 (COMMON_OBS): Add cp-support.o.
3553 (cp_support_h, cp-support.o): Add.
3554
3555 * cp-valprint.c (cp_print_class_method): Call
3556 check_stub_method_group instead of check_stub_method. Remove
3557 extraneous QUITs.
3558 * p-valprint.c (pascal_object_print_class_method): Likewise.
3559 * valops.c (search_struct_method): Likewise.
3560 (find_method_list, value_struct_elt_for_reference): Likewise.
3561
3562 2002-09-13 Andrew Cagney <cagney@redhat.com>
3563
3564 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3565 * gdbarch.h, gdbarch.c: Regenerate.
3566
3567 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3568
3569 * frame.c (find_saved_register): Delete function.
3570 * frame.h (find_saved_register): Delete declaration.
3571 Fix PR gdb/631.
3572
3573 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3574
3575 * mips-tdep.c (read_next_frame_reg): Re-hack using
3576 frame_register_unwind.
3577
3578 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3579
3580 * mips-tdep.c (mips_get_saved_register): Re-hack using
3581 frame_register_unwind.
3582
3583 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3584
3585 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3586 vector. Will be useful for Interix.
3587 * gdbarch.h, gdbarch.c: Regenerate.
3588
3589 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3590 name of the malloc function by NAME_OF_MALLOC.
3591
3592 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3593
3594 * value.h (find_function_in_inferior): Add const keyword to
3595 one of the parameters. Allows us to invoke this function with
3596 a const char *.
3597 * valops.c (find_function_in_inferior): Likewise.
3598
3599 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3600
3601 * exec.c (xfer_memory): Fix compilation warning with old versions
3602 of GCC.
3603 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3604
3605 2002-09-12 David Carlton <carlton@math.stanford.edu>
3606
3607 * symtab.h: Run through gdb_indent.h.
3608 Add 2002 to Copyright year list.
3609
3610 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3611
3612 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3613 mach constants.
3614 * MAINTAINERS: Add myself to write after approval list.
3615
3616 2002-09-11 J. Brobecker <brobecker@gnat.com>
3617
3618 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3619
3620 2002-09-11 J. Brobecker <brobecker@gnat.com>
3621
3622 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3623 Interix.
3624
3625 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3626
3627 * procfs.c (do_detach): Clear current signal, not just fault.
3628 Corrects problem with breakpoint trap signal leaking to detached
3629 process on Tru64.
3630
3631 2002-09-10 Michael Snyder <msnyder@redhat.com>
3632
3633 * buildsym.c (finish_block): Protect against null pointer.
3634
3635 2002-09-10 Andrew Cagney <cagney@redhat.com>
3636
3637 * infcmd.c (default_print_registers_info): Send all output to
3638 ``file'' instead of ``gdb_stdout''.
3639
3640 2002-09-10 Michael Snyder <msnyder@redhat.com>
3641
3642 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3643 LONGEST, and use signed register read (addresses are sign-
3644 extended for mips).
3645
3646 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3647
3648 * event-loop.c (gdb_do_one_event): Make public.
3649 * event-loop.h (gdb_do_one_event): Declare.
3650
3651 2002-09-10 Jeff Law <law@redhat.com>
3652
3653 * infttrace.c (child_resume): Simplify and rework to avoid
3654 TT_PROC_CONTINUE.
3655
3656 2002-09-09 Fred Fish <fnf@intrinsity.com>
3657
3658 * printcmd.c (print_scalar_formatted): "len" is the number of
3659 target bytes, NOT the number of target bits.
3660
3661 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3662
3663 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3664 * top.c (init_main): Set rl_terminal_name.
3665
3666 2002-09-08 Aidan Skinner <aidan@velvet.net>
3667
3668 * ada-lang.c (ada_array_bound, ada_type_match,
3669 _initialize_ada_language): Fix K&R definitions.
3670 * ada-tasks.c (get_current_task): Fix K&R definitions.
3671 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3672
3673 2002-09-07 Christopher Faylor <cgf@redhat.com>
3674
3675 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3676 Add XP.
3677
3678 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3679
3680 * i386-tdep.c (i386_register_virtual_type,
3681 i386_register_convertible, i386_register_convert_to_virtual,
3682 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3683 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3684 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3685 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3686 Don't set push_arguments twice.
3687
3688 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3689 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3690 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3691 sigtramp_end to NULL.
3692 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3693 defines.
3694 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3695
3696 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3697 whitespace.
3698
3699 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3700 * gdbarch.h, gdbarch.c: Re-generate.
3701 * blockframe.c (find_pc_sect_partial_function): Convert to use
3702 SIGTRAMP_START_P predicate.
3703
3704 2002-09-05 Michael Snyder <msnyder@redhat.com>
3705
3706 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3707 generic_dummy_frame method and old method. Also distinguish
3708 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3709 (arm_extract_return_value): Use new regcache method.
3710
3711 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3712 adjustment that doesn't conform to the ABI.
3713 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3714 saved regcache, not from current regcache.
3715
3716 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3717
3718 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3719 * README: Update.
3720
3721 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3722
3723 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3724 if arm_apcs_32 is false.
3725
3726 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3727
3728 GDB 5.3 branch created.
3729
3730 2002-09-03 Theodore A. Roth <troth@verinet.com>
3731
3732 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3733 generic_unwind_get_saved_register.
3734
3735 2002-09-03 David Carlton <carlton@math.stanford.edu>
3736
3737 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3738 argument (PR gdb/653). Update call to smash_to_method_type.
3739 (read_structure_scope): Update call to dwarf2_add_member_fn.
3740
3741 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3742
3743 * x86-64-linux-tdep.c: Include gdb_string.h
3744 * x86-64-linux-nat.c: Ditto.
3745
3746 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3747
3748 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3749 when YYDEBUG is set to 1.
3750 * c-exp.y: Likewise.
3751 * f-exp.y: Likewise.
3752 * jv-exp.y: Likewise.
3753 * m2-exp.y: Likewise.
3754 * p-exp.y: Likewise.
3755
3756 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3757
3758 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3759 dependency list.
3760 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3761 solib_svr4_fetch_link_map_offsets to
3762 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3763 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3764 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3765 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3766 solib-svr4.o, and solib-legacy.o.
3767 * config/i386/tm-nbsd.h: Include solib.h.
3768
3769 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3770
3771 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3772 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3773 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3774 comment noting that this needs its own target configuration.
3775 * config/i386/nbsd.mt: New file.
3776 * config/i386/nbsdaout.mt: Remove.
3777 * config/i386/nbsdelf.mt: Ditto.
3778 * config/i386/tm-nbsdaout.h: Ditto.
3779
3780 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3781
3782 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3783 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3784 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3785 tdep->sigtramp_end.
3786 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3787 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3788 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3789
3790 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3791
3792 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3793 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3794 * i386-tdep.h (i386bsd_init_abi): New prototype.
3795 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3796 function declaration.
3797 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3798 for NetBSD-a.out or NetBSD-ELF.
3799 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3800 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3801 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3802 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3803 and nbsd-tdep.h.
3804 (i386nbsd_pc_in_sigtramp): New function.
3805 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3806 i386nbsd_pc_in_sigtramp.
3807 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3808 and i386nbsdelf_init_abi OS ABI handlers.
3809 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3810 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3811
3812 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3813
3814 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3815 registers if the target really has them.
3816
3817 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3818
3819 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3820 than nbsd-tdep.h.
3821
3822 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3823
3824 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3825 list.
3826 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3827 (alphanbsd_skip_sigtramp_frame): New functions.
3828 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3829 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3830 to alphanbsd_sigcontext_addr.
3831
3832 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3833
3834 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3835 list.
3836 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3837 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3838 nbsd_pc_in_sigtramp.
3839 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3840 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3841 * nbsd-tdep.c: Include gdb_string.h.
3842 (nbsd_pc_in_sigtramp): New function.
3843 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3844 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3845 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3846 ppcnbsd_pc_in_sigtramp.
3847 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3848 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3849 shnbsd_pc_in_sigtramp.
3850 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3851 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3852 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3853
3854 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3855
3856 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3857 watchpoints to NULL.
3858 (insert_breakpoints): set val field of watchpoints if NULL.
3859
3860
3861 2002-08-29 Jim Blandy <jimb@redhat.com>
3862
3863 * symtab.c (lookup_symbol_aux): In the cases where we find a
3864 minimal symbol of an appropriate name and use its address to
3865 select a symtab to read and search, use `name' (as passed to us)
3866 as the demangled name when searching the symtab's global and
3867 static blocks, not the minsym's name.
3868
3869 2002-08-29 Keith Seitz <keiths@redhat.com>
3870
3871 * stack.c (print_frame_info_base): Always set current_source_symtab
3872 and current_source_line.
3873
3874 2002-08-29 Donn Terry <donnte@microsoft.com>
3875
3876 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3877
3878 2002-08-28 Keith Seitz <keiths@redhat.com>
3879
3880 * stack.c (select_frame): Add FIXME concerning selected-frame
3881 events.
3882 (select_frame_command): Send selected-frame-level-changed
3883 event notification, but only if the level actually changed.
3884 (up_silently_base): Add selected-frame-level-changed event
3885 notification.
3886 (down_silently_base): Likewise.
3887
3888 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3889
3890 * Makefile.in: Update dependencies for all gdb/*.c files.
3891
3892 2002-08-27 Tom Tromey <tromey@redhat.com>
3893
3894 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3895 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3896 Update dependencies.
3897 * i387-tdep.c: Include gdb_string.h.
3898 * osabi.c: Likewise.
3899 * i386-linux-nat.c: Likewise.
3900 * lin-lwp.c: Likewise.
3901 * ax-gdb.c: Likewise.
3902 * signals/signals.c: Likewise.
3903 * jv-valprint.c: Likewise.
3904 * p-lang.c: Likewise.
3905 * c-valprint.c: Likewise.
3906 * cp-abi.c: Likewise.
3907
3908 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3909
3910 * cli/cli-script.h (copy_command_lines): Export.
3911 * breakpoint.c: Include cli/cli-script.h.
3912 * Makefile.in (breakpoint.o): Update dependencies.
3913
3914 2002-08-26 Michael Snyder <msnyder@redhat.com>
3915
3916 * breakpoint.c (insert_breakpoints): Protect all references
3917 to 'process_warning'. Shorten long lines.
3918
3919 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3920
3921 * cli/cli-script.c (copy_command_lines): New function.
3922 * defs.h (copy_command_lines): Export.
3923 * testsuite/gdb.base/commands.exp: New tests for commands
3924 attached to a temporary breakpoint, and for commands that
3925 delete the breakpoint they are attached to.
3926
3927 2002-08-26 Michael Snyder <msnyder@redhat.com>
3928
3929 * breakpoint.c (bpstat_stop_status): Instead of copying the
3930 pointer to the breakpoint commands struct, make a new copy
3931 of the struct and point to that.
3932 (bpstat_clear): Free the commands struct.
3933 (bpstat_clear_actions): Free the commands struct.
3934 (bpstat_do_actions): Free the command actions. Also execute
3935 the local cleanups, instead of deleting them.
3936 (delete_breakpoint): Leave the commands field of the bpstat
3937 chain alone -- it will be freed later.
3938
3939 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3940
3941 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3942 deleted in 2002-08-20 commit. This function is still used by
3943 ppc-linux-nat.c.
3944
3945 2002-08-26 Keith Seitz <keiths@redhat.com>
3946
3947 * gdb-events.sh: Add selected-frame-level-changed event.
3948 * gdb-events.c: Regenerated.
3949 * gdb-events.h: Regenerated.
3950
3951 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3952
3953 Fix PR gdb/393:
3954 * inflow.c (terminal_save_ours): New function to save terminal
3955 settings.
3956 * inferior.h (terminal_save_ours): Declare.
3957 * target.c (debug_to_terminal_save_ours): New function.
3958 (cleanup_target): Defaults to_terminal_save_ours.
3959 (update_current_target): Inherit to_terminal_save_ours.
3960 (setup_target_debug): Set to_terminal_save_ours.
3961 * target.h (target_terminal_save_ours): New to save terminal settings.
3962 (target_ops): New member to_terminal_save_ours.
3963 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3964 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3965 * inftarg.c (init_child_ops): Likewise.
3966 * m3-nat.c (init_m3_ops): Likewise.
3967 * procfs.c (init_procfs_ops): Likewise.
3968 * wince.c (init_child_ops): Likewise.
3969 * win32-nat.c (init_child_ops): Likewise.
3970 * sol-thread.c (init_sol_thread_ops): Likewise.
3971
3972 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3973
3974 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3975 use regcache_* functions.
3976 (i386_gdbarch_init): Set store_return_value instead of
3977 deprecated_store_return_value.
3978
3979 * regcache.c (regcache_raw_write_signed,
3980 regcache_raw_write_unsigned): New functions.
3981 * regcache.h (regcache_raw_write_signed,
3982 regcache_raw_write_unsigned): New prototypes.
3983
3984 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3985
3986 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3987 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3988 source file dependencies. Cleanup corresponding generator rules.
3989
3990 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3991
3992 * regcache.h (register_offset_hack): Declare.
3993 (regcache_cooked_read_using_offset_hack): Declare.
3994 (regcache_cooked_write_using_offset_hack): Declare.
3995
3996 * regcache.c (register_offset_hack): New function.
3997 (regcache_cooked_read_using_offset_hack): New function.
3998 (regcache_cooked_write_using_offset_hack): New function.
3999 (regcache_dump): Check that the registers, according to their
4000 offset, are packed hard against each other.
4001 (cooked_xfer_using_offset_hack): New function.
4002
4003 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4004
4005 * regcache.c (struct regcache_descr): Add field register_type.
4006 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4007 in as a parameter
4008 (init_regcache_descr): Initialize register_type. Pass the descr
4009 to init_legacy_regcache_descr. Use register_type instead of
4010 REGISTER_VIRTUAL_TYPE.
4011 (register_type): New function.
4012 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4013 * regcache.h (register_type): Declare.
4014
4015 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4016
4017 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4018 instead of deprecated_store_return_value. Fix fallout from
4019 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4020
4021 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4022
4023 * regcache.c (max_register_size): New function.
4024 (init_legacy_regcache_descr): Ensure that max_register_size is
4025 large enough for REGISTER_VIRTUAL_SIZE.
4026 * regcache.h (max_register_size): Declare.
4027
4028 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4029
4030 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4031 store_return_value.
4032 (e500_extract_return_value): Change type of valbuf pointer to
4033 void.
4034
4035 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4036
4037 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4038 workaround.
4039
4040 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4041 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4042 long long) to prevent compiler warning on 64-bit systems.
4043
4044 2002-08-23 Andrew Cagney <cagney@redhat.com>
4045
4046 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4047 (DEPRECATED_STORE_RETURN_VALUE): New method.
4048 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4049 * gdbarch.h, gdbarch.c: Re-generate.
4050
4051 * values.c (set_return_value): Pass current_regcache to
4052 STORE_RETURN_VALUE.
4053 * arch-utils.h (legacy_store_return_value): Declare.
4054 * arch-utils.c (legacy_store_return_value): New function.
4055 (legacy_extract_return_value): Update parameters.
4056
4057 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4058 STORE_RETURN_VALUE.
4059 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4060 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4061 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4062 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4063 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4064 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4065 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4066 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4067 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4068 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4069
4070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4071 * i386-tdep.c (i386_extract_return_value): Update.
4072 * arch-utils.c (legacy_extract_return_value): Update.
4073 * frv-tdep.c (frv_gdbarch_init): Update.
4074 * cris-tdep.c (cris_gdbarch_init): Update.
4075 * d10v-tdep.c (d10v_gdbarch_init): Update.
4076 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4077 * m68k-tdep.c (m68k_gdbarch_init): Update.
4078 * mcore-tdep.c (mcore_gdbarch_init): Update.
4079 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4080 * s390-tdep.c (s390_gdbarch_init): Update.
4081 * sparc-tdep.c (sparc_gdbarch_init): Update.
4082 * sh-tdep.c (sh_gdbarch_init): Update.
4083 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4084 * v850-tdep.c (v850_gdbarch_init): Update.
4085 * avr-tdep.c (avr_gdbarch_init): Update.
4086 * ia64-tdep.c (ia64_gdbarch_init): Update.
4087 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4088 * vax-tdep.c (vax_gdbarch_init): Update.
4089 * alpha-tdep.c (alpha_gdbarch_init): Update.
4090 * arm-tdep.c (arm_gdbarch_init): Update.
4091 * mips-tdep.c (mips_gdbarch_init): Update.
4092 * i386-tdep.c (i386_gdbarch_init): Update.
4093
4094 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4095
4096 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4097 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4098
4099 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4100
4101 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4102 problems.
4103
4104 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4105
4106 * infrun.c (handle_inferior_event): Move a comment outside of a
4107 function call, in order to avoid indent reformatting this part
4108 of the code in an unreadable way.
4109
4110 2002-08-23 Grace Sainsbury <graces@redhat.com>
4111
4112 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4113 when breakpoints fail. Move general breakpoint error messages to
4114 insert_breakpoints.
4115 * breakpoint.c (insert_breakpoints): Change warnings when
4116 breakpoints are nto inserted to specify the type. Remove call to
4117 memory_error when hardware breakpoints can't be inserted. Remove
4118 multiple calls to warning so all messages are sent to the user at
4119 once.
4120 (delete_breakpoints): Make insert error messsages more explicit.
4121
4122 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4123
4124 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4125 gdbserver/ChangeLog.
4126
4127 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4128
4129 * i386-tdep.c: Include "objfiles.h".
4130 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4131 skip_trampoline_code.
4132 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4133 (CPLUS_MARKER): Define to '.'.
4134
4135 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4136 member.
4137 (linux_corefile_thread_callback): Increase args->num_notes.
4138 (linux_make_note_section): Initialize thread_args.num_notes, and
4139 use it to determine whether notes for any threads were created.
4140
4141 2002-08-23 Donn Terry <donnte@microsoft.com>
4142
4143 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4144 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4145 and PCUNKILL.
4146 (write_with_trace): Conditionalize out the switch branch handling
4147 PCSHOLD if the corresponding macro is not defined. Likewise for
4148 PRSABORT and PRSTOP.
4149 This change will be needed by the Interix port.
4150
4151 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4152
4153 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4154 write_register wherever possible instead of manipulating the
4155 register bytes directly.
4156 Assign VALUE_CONTENTS to a variable and use that.
4157 The GPR numbers are now dependent on the architecture.
4158
4159 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4160
4161 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4162 ev_offset fields.
4163 (skip_prologue): Add support for BookE/e500 instructions.
4164 (e500_extract_return_value): New function.
4165 (frame_get_saved_regs): Add support for saving ev registers and
4166 pseudo gpr's.
4167 (e500_store_return_value): New function.
4168 (rs6000_gdbarch_init): Move up default intializations of
4169 deprecated_extract_return_value and store_return_value. Overwrite
4170 init of store_return_value with e500 specific version.
4171 Set extract_return_value for e500.
4172
4173 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4174
4175 * blockframe.c (generic_call_dummy_register_unwind): Use
4176 regcache_cooked_read to catch cases in which the variable is
4177 stored in a pseudo register.
4178
4179 2002-08-22 Andrew Cagney <cagney@redhat.com>
4180
4181 * NEWS: Mention that the i960 has been made obsolete.
4182 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4183 i960-tdep.c
4184 (remote-nrom.o): Obsolete target.
4185 (remote-nindy.o, i960-tdep.o): Ditto.
4186 * remote-nrom.c: Make file obsolete.
4187 * remote-nindy.c, remote-vx960.c: Ditto.
4188 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4189 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4190 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4191 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4192 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4193 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4194 i960-*-vxworks* obsolete.
4195 * MAINTAINERS: Note that the i960 is obsolete.
4196
4197 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4198
4199 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4200 detach to allow reinitialization.
4201
4202 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4203
4204 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4205 attempt).
4206
4207 2002-08-22 Jim Blandy <jimb@redhat.com>
4208
4209 * coffread.c (coff_symfile_read): Don't try to read the line
4210 number table from disk if the image file doesn't have a symbol
4211 table; we'll never actually look at the info anyway, and Windows
4212 ships DLL's with bogus file offsets for the line number data.
4213
4214 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4215
4216 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4217 an e500 executable.
4218
4219 2002-08-21 Michael Snyder <msnyder@redhat.com>
4220
4221 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4222 (MSYMBOL_SIZE): Replace macro with function.
4223 (DEFAULT_MIPS_TYPE): Delete unused macro.
4224 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4225 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4226
4227 2002-08-21 Jim Blandy <jimb@redhat.com>
4228
4229 * valops.c (value_cast): Simplify and correct logic for doing a
4230 static cast from a pointer to a base class to a pointer to a
4231 derived class.
4232
4233 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4234
4235 * infcmd.c (default_print_registers_info): Replace
4236 do_registers_info.
4237 (registers_info): Use gdbarch_print_registers_info instead of
4238 DO_REGISTERS_INFO.
4239 * inferior.h (default_print_registers_info): Replace
4240 do_registers_info.
4241 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4242 (DO_REGISTERS_INFO): Change to a predicate function.
4243 * gdbarch.h, gdbarch.c: Regenerate.
4244
4245 2002-08-21 Keith Seitz <keiths@redhat.com>
4246
4247 * gdb-events.sh: Add target-changed event.
4248 * gdb-events.c: Regenerated.
4249 * gdb-events.c: Regenerated.
4250 * valops.c (value_assign): Add target-changed event notification
4251 to inlval_register, lval_memory, and lval_reg_frame_relative.
4252
4253 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4254
4255 * NEWS: Add an entry regarding the improvement of the next/step
4256 operation on Alpha Tru64 multi-processor machines.
4257
4258 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4259
4260 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4261 directores.
4262 * Makefile.in: Update all _h macro definitions.
4263 * Makefile.in (install-gdbtk): Move to install section.
4264 (rdi-share/libangsd.a): Move to end of file.
4265
4266 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4267
4268 * frame.c (frame_register_unwind): When a register, set addrp to
4269 the register's byte.
4270
4271 2002-08-20 Michael Snyder <msnyder@redhat.com>
4272
4273 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4274 used locally, so move them from the target machine header to here.
4275 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4276 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4277 Make static.
4278 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4279
4280 2002-08-20 Andrew Cagney <cagney@redhat.com>
4281
4282 * NEWS: Mention that the Apollo line was made obsolete.
4283 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4284 m68*-hp-hpux* obsolete.
4285 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4286 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4287 * buildsym.c (make_blockvector): Make static.
4288 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4289 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4290 (ALLDEPFILES): Remove dstread.c.
4291 (dstread.o): Obsolete make rule.
4292 * dstread.c: Makefile obsolete.
4293 * dst.h: Ditto.
4294 * config/m68k/hp300hpux.mt: Ditto.
4295 * config/m68k/hp300hpux.mh: Ditto.
4296 * config/m68k/hp300bsd.mt: Ditto.
4297 * config/m68k/hp300bsd.mh: Ditto.
4298 * config/m68k/apollo68b.mt: Ditto.
4299 * config/m68k/apollo68v.mh: Ditto.
4300 * config/m68k/apollo68b.mh: Ditto.
4301
4302 2002-08-20 Michael Snyder <msnyder@redhat.com>
4303
4304 * mips-tdep.c (mips_in_return_stub): Make static.
4305 (mips_gdbarch_init): Set in_solib_return_trampoline.
4306 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4307
4308 2002-08-20 Michael Snyder <msnyder@redhat.com>
4309
4310 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4311 * gdbarch.c, gdbarch.h: Regenerate.
4312 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4313 Add.
4314 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4315
4316 2002-08-20 Michael Snyder <msnyder@redhat.com>
4317
4318 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4319 (mips_gdbarch_init): Set skip_trampoline_code,
4320 in_solib_call_trampoline.
4321 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4322 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4323
4324 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4325
4326 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4327
4328 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4329 vector type for ev registers.
4330 (e500_pseudo_register_read): New function.
4331 (e500_pseudo_register_write): New function.
4332 (e500_dwarf2_reg_to_regnum): New function.
4333 (PPC_UISA_NOFP_SPRS): New macro.
4334 (PPC_EV_REGS): New macro.
4335 (PPC_GPRS_PSEUDO_REGS): New macro.
4336 (registers_e500): New register set for e500.
4337 (variants): Add e500 variant.
4338 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4339 before setting architectural dependent variations. Initialize ev
4340 registers numbers. Add case for e500 architecture. Set the
4341 number of pseudo registers.
4342
4343 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4344
4345 * rs6000-tdep.c: Clean up comments.
4346
4347 2002-08-20 Andrew Cagney <cagney@redhat.com>
4348
4349 * h8300-tdep.c: Re-indent file.
4350
4351 2002-08-20 Jim Blandy <jimb@redhat.com>
4352
4353 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4354 default for this.
4355
4356 2002-08-20 Keith Seitz <keiths@redhat.com>
4357
4358 * breakpoints.c (watch_command_1): Use internal breakpoint
4359 when setting a watchpoint_scope breakpoint.
4360
4361 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4362
4363 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4364 (build_builtin_type_vec64i): Ditto.
4365 (build_builtin_type_vec128): Ditto.
4366 (build_builtin_type_vec128i): Ditto.
4367
4368 2002-08-19 Michael Snyder <msnyder@redhat.com>
4369
4370 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4371 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4372 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4373 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4374 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4375 CALL_DUMMY_ADDRESS): Delete.
4376 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4377 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4378 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4379 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4380 push_return_address.
4381 (mips_register_raw_size, mips_eabi_use_struct_convention,
4382 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4383 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4384 mips_init_extra_frame_info, mips_eabi_push_arguments,
4385 mips_n32n64_push_arguments, mips_push_return_address,
4386 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4387 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4388
4389 2002-08-19 Michael Snyder <msnyder@redhat.com>
4390
4391 * mips-tdep.c (mips_frame_num_args): New function.
4392 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4393 frame_saved_pc, frame_args_address, frame_locals_address,
4394 frame_num_args, and frame_args_skip.
4395 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4396 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4397 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4398 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4399
4400 2002-08-20 Michael Snyder <msnyder@redhat.com>
4401
4402 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4403 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4404 * mips-tdep.c (mips_store_struct_return): New function.
4405 (mips_extract_struct_value_address): New function.
4406 (mips_gdbarch_init): Set store_struct_return and
4407 extract_struct_value_address.
4408
4409 2002-08-20 David Carlton <carlton@math.stanford.edu>
4410
4411 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4412 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4413 (read_file_scope): Check that line_header is nonzero before
4414 decoding macro information.
4415
4416 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4417
4418 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4419 flag the general-purpose registers as floating-point on targets
4420 that don't support the floating-point registers.
4421
4422 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4423
4424 * rs6000-tdep.c (altivec_register_p): Delete.
4425 (rs6000_do_altivec_registers): Delete.
4426 (rs6000_altivec_registers_info): Delete.
4427 (rs6000_do_registers_info): Delete.
4428 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4429 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4430
4431 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4432
4433 * infcmd.c (do_registers_info): Print vector registers in hex
4434 format only.
4435 (print_vector_info): Check that printing registers
4436 makes sense.
4437 (print_float_info): Ditto.
4438
4439 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4440
4441 * mips-tdep.c (mips_gdbarch_init): Update.
4442 (mips_o32_extract_return_value): Rewrite.
4443 (mips_o32_store_return_value): Rewrite.
4444 (mips_o32_xfer_return_value): New function.
4445 (mips_xfer_register): Tweak debug print message. Allow for
4446 buf_offset when dumping the value transfered.
4447
4448 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4449
4450 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4451 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4452 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4453 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4454 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4455
4456 2002-08-14 Michael Snyder <msnyder@redhat.com>
4457
4458 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4459
4460 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4461
4462 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4463 register.
4464 (P): New macro to define a register as a pseudo register.
4465 (R, R4, R8, R16, FR32, R64, R0): Updated.
4466 (struct variant): Add new fields for number of pseudo registers
4467 and number of total registers.
4468 (tot_num_registers): New macro replacing....
4469 (num_registers): ...deleted macro.
4470 (num_registers): New function.
4471 (num_pseudo_registers): New function.
4472 (variants): Update all variants to intialize new fields correctly.
4473 Postpone initialization of number of pseudo regs and real regs.
4474 (init_variants): New function.
4475 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4476 registers offsets.
4477
4478 2002-08-19 David Carlton <carlton@math.stanford.edu>
4479
4480 * valops.c (search_struct_field): Change error message to treat
4481 return value of 0 from value_static_field as meaning that field is
4482 optimized out.
4483 (value_struct_elt_for_reference): Ditto.
4484 * values.c (value_static_field): Treat an unresolved location the
4485 same as a nonexistent symbol. Fix PR gdb/635.
4486 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4487 enclosed. Fix PR gdb/574.
4488 * MAINTAINERS: Add self to Write After Approval list.
4489
4490 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4491
4492 * mips-tdep.c (mips_xfer_register): New function.
4493 (mips_n32n64_extract_return_value): Rewrite.
4494 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4495 instead of deprecated_extract_return_value.
4496
4497 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4498
4499 * rs6000-tdep.c (TDEP): Delete macro.
4500 (branch_dest): Replace use of TDEP macro with its body.
4501 (rs6000_pop_frame): Ditto.
4502 (rs6000_push_arguments): Ditto.
4503 (rs6000_skip_trampoline_code): Ditto.
4504 (rs6000_frame_saved_pc): Ditto.
4505 (rs6000_frame_chain): Ditto.
4506 (rs6000_register_name): Ditto.
4507 (rs6000_register_byte): Ditto.
4508 (rs6000_register_raw_size): Ditto.
4509 (rs6000_register_virtual_type): Ditto.
4510 (rs6000_register_convertible): Ditto.
4511 (rs6000_convert_from_func_ptr_addr): Ditto.
4512
4513 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4514
4515 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4516 conditionally.
4517 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4518 MIPS_LINUX_JB_ELEMENT_SIZE.
4519 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4520 for MAX_REGISTER_RAW_SIZE arrays.
4521 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4522 MIPS_LINUX_JB_ELEMENT_SIZE.
4523
4524 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4525
4526 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4527
4528 2002-08-19 Aidan Skinner <aidan@velvet.net>
4529
4530 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4531 ada-valprint.c ada-tasks.c.
4532 (YYFILES): Add ada-exp.y.
4533 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4534 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4535 (ada-exp.tab.o): New target.
4536
4537 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4538
4539 * regcache.c (regcache_xfer_part): New function.
4540 (regcache_raw_read_part): New function.
4541 (regcache_raw_write_part): New function.
4542 (regcache_cooked_read_part): New function.
4543 (regcache_cooked_write_part): New function.
4544 * regcache.h (regcache_raw_read_part): Declare.
4545 (regcache_raw_write_part): Declare.
4546 (regcache_cooked_read_part): Declare.
4547 (regcache_cooked_write_part): Declare.
4548
4549 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4550
4551 * remote.c (remote_open_1): Add async_p.
4552 (remote_async_open_1): Delete.
4553 (open_remote_target): Delete.
4554 (remote_open, extended_remote_open): Update calls to remote_open_1.
4555 (remote_async_open, extended_remote_async_open): Call
4556 remote_open_1 instead of remote_async_open_1.
4557
4558 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4559
4560 * blockframe.c: Fix a few coding standard violations.
4561
4562 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4563
4564 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4565 here from ...
4566 * config/i386/tm-i386sco5.h: ... here. File removed.
4567 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4568
4569 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4570 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4571 (TM_FILE): Set to tm-i386.h.
4572 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4573 * config/i386/tm-i386v.h: Remove file.
4574 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4575 instead of "i386/tm-i386v.h".
4576 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4577 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4578 "i386/tm-i386v.h".
4579 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4580 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4581 "i386/tm-i386.h".
4582
4583 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4584
4585 * config/i386/nm-i386v.h: Add protection against
4586 multiple-inclusion.
4587 (i386_register_u_addr): Remove prototype.
4588 (register_u_addr): New prototype.
4589 (REGISTER_U_ADDR): Redefine accordingly.
4590 * i386v-nat.c: Improve several comments.
4591 (i386_register_u_addr): Change signature and rename to
4592 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4593 ubase variable.
4594
4595 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4596
4597 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4598 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4599 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4600 deprecated_extract_return_value.
4601 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4602 rename mips_o32o64_push_arguments.
4603 (mips_gdbarch_init): Update.
4604 (mips_extract_return_value): Delete.
4605 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4606 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4607 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4608 (mips_n32n64_extract_return_value): Clone
4609 mips_extract_return_value.
4610 (mips_store_return_value): Delete.
4611 (mips_o32_store_return_value): Clone mips_store_return_value.
4612 (mips_o64_store_return_value): Clone mips_store_return_value.
4613 (mips_eabi_store_return_value): Clone mips_store_return_value.
4614 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4615
4616 2002-08-18 Aidan Skinner <aidan@velvet.net>
4617
4618 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4619 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4620
4621 2002-08-18 Aidan Skinner <aidan@velvet.net>
4622
4623 * ada-lang.c: Run through gdb_indent.sh.
4624 * ada-lang.h: Run through gdb_indent.sh.
4625 * ada-tasks.c: Run through gdb_indent.sh.
4626 * ada-typeprint.c: Run through gdb_indent.sh.
4627 * ada-valprint.c: Run through gdb_indent.sh.
4628
4629 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4630
4631 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4632 ABI.
4633
4634 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4635
4636 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4637
4638 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4639 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4640
4641 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4642 write_register_gen instead of write_register_bytes.
4643
4644 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4645 i[3456]-*-osf1mk* configurations have been made obsolete.
4646 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4647 i[3456]86-*-osf1mk* hosts obsolete.
4648 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4649 targets obsolete.
4650 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4651 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4652 config/i386/i386m3.mt, config/i386/nm-m3.h,
4653 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4654 config/i386/i386mk.mh, config/i386/i386mk.mt,
4655 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4656 obsolete.
4657 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4658 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4659 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4660
4661 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4662
4663 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4664 (hppa_value_returned_from_stack): Declare.
4665 (hppa_extract_return_value): Declare.
4666 * config/pa/hppa.mt: New file.
4667 * configure.tgt: Recognize hppa*-*-*.
4668 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4669
4670 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4671
4672 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4673 comment.
4674
4675 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4676
4677 * top.c (gdb_rl_operate_and_get_next): Make sure
4678 operate-and-get-next functions correctly even when the history
4679 list is completely filled.
4680
4681 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4682
4683 * MAINTAINERS (Target Instruction Set Architectures): Rename
4684 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4685 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4686 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4687 already listed under Host/Native.
4688
4689 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4690 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4691 mips*-*-*.
4692
4693 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4694
4695 * config/ia64/ia64.mt: New file.
4696 * config/alpha/alpha.mt: New file.
4697 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4698 ia64-linux-gnu. Mention that ia64-elf is broken.
4699 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4700
4701 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4702
4703 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4704 generic_func_frame_valid instead of func_frame_valid.
4705
4706 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4707
4708 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4709 procfs appears to be broken when debugging on multi-processor
4710 machines. So enable software single stepping in order to avoid
4711 using the procfs interface to do next/step operations, using
4712 internal breakpoints instead.
4713
4714 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4715 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4716 make this pc address equal to the value it would have if the
4717 system stepping capability was used. Also set a new flag used
4718 to ensure that we don't readjust the PC one more time later.
4719
4720 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4721 address by DECR_PC_AFTER_BREAK when software single step is
4722 in use for this architecture, as this has already been taken
4723 care of in handle_inferior_event().
4724
4725 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4726
4727 * infrun.c (handle_inferior_event): Minor reformatting, to make
4728 a rather long condition expression easier to read.
4729
4730 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4731
4732 * Makefile.in (gdbtk.o): Move to end of file.
4733 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4734 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4735 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4736 (gdbtk-wrapper.o, gdbres.o): Ditto.
4737
4738 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4739
4740 * Makefile.in (copying.o): Separate out compile rule.
4741 (hpux-thread.o, procfs.o, signals.o): Ditto.
4742 (v850ice.o, z8k-tdep.o): Ditto.
4743 (tui-file.o): Move to TUI section.
4744 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4745 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4746
4747 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4748
4749 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4750 skip_trampoline_code, for better namespace-proofing.
4751
4752 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4753
4754 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4755
4756 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4757
4758 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4759
4760 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4761 signal, check whether we hit a breakpoint before checking for a
4762 single step breakpoint. Otherwise, GDB fails to notice that a
4763 breakpoint has been hit when stepping onto a breakpoint.
4764
4765 2002-08-16 Keith Seitz <keiths@redhat.com>
4766
4767 * gdb-events.sh (clear_gdb_event_hooks): New function.
4768 * gdb-events.c: Regenerate.
4769 * gdb-events.h: Regenerate.
4770
4771 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4772
4773 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4774 not_a_sw_breakpoint.
4775 * breakpoint.h (bpstat_stop_status): Add parameter names.
4776
4777 2002-08-16 Grace Sainsbury <graces@redhat.com>
4778
4779 * remote.c (remote_insert_hw_breakpoint)
4780 (remote_remove_hw_breakpoint): Fix calculation of length field
4781 for Z-packet.
4782
4783 2002-08-15 Michael Snyder <msnyder@redhat.com>
4784
4785 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4786 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4787 (supply_fpregset): Ditto.
4788
4789 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4790 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4791 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4792 (TARGET_READ_SP): Delete.
4793 (DO_REGISTERS_INFO): Delete.
4794 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4795 Delete.
4796 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4797 from macros to functions.
4798
4799 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4800 (mips_register_convertible, mips_register_convert_to_virtual,
4801 mips_register_convert_to_raw): Make static.
4802 (mips_read_sp): New function.
4803 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4804 (mips_do_registers_info): Make static.
4805 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4806 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4807 (mips_register_convert_from_type, mips_register_convert_to_type):
4808 New functions.
4809 (mips_gdbarch_init): Set up function_start_offset,
4810 register_virtual_size, pc_in_sigtramp.
4811
4812 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4813
4814 * infcmd.c (vector_info): New function.
4815 (_initialize_infcmd): Add command "info vector".
4816 (print_vector_info): New function.
4817
4818 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4819 * gdbarch.h, gdbarch.c: Regenerate.
4820
4821 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4822
4823 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4824 ``print_all''. Only print vector registers when ``print_all''.
4825
4826 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4827
4828 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4829 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4830
4831 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4832 Add `args' parameter.
4833 * gdbarch.h, gdbarch.c: Regenerate.
4834
4835 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4836
4837 * infcmd.c (float_info): Call print_float_info.
4838 (print_float_info): New function. By default, print the
4839 floating-point registers.
4840
4841 * arch-utils.h (default_print_float_info): Delete declaration.
4842 * arch-utils.c (default_print_float_info): Delete function.
4843
4844 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4845
4846 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4847 out define.
4848
4849 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4850 FRAME.
4851
4852 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4853 * configure.host: Make i[3456]86-*-aix host obsolete.
4854 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4855 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4856 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4857 config/i386/xm-i386aix.h: Make files obsolete.
4858 * i386aix-nat.c: Make file obsolete.
4859 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4860 (i386aix-nat.o): Make target obsolete.
4861
4862 * config/i386/nm-gnu.h: Removed.
4863 * config/i386/nm-i386gnu.h: New file.
4864 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4865 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4866 Moved here from ...
4867 * config/i386/tm-i386gnu.h: ... here. Removed.
4868 * config/i386/xm-i386gnu.h: Removed.
4869 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4870 (NAT_FILE): Set to nm-i386gnu.h.
4871 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4872 * i386-tdep.c: New file.
4873 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4874 (i386gnu-tdep.o): Specify dependencies.
4875
4876 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4877
4878 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4879 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4880 Adjust a few comments to reflect reality a bit closer.
4881 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4882 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4883 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4884 target_insert_watchpoint, target_remove_watchpoint):
4885 Move defines to ...
4886 * config/i386/nm-i386sco5.h: ... here.
4887 (kernel_u_size): Add prototype. Improve a few comments and add
4888 protection against multiple inclusion.
4889
4890 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4891 out define.
4892
4893 * uw-thread.c (SP_ARG0): Define if not already defined.
4894 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4895
4896 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4897
4898 * config/i386/tm-i386.h: Don't include "regcache.h".
4899
4900 * i387-tdep.h (i387_print_float_info): New prototype.
4901 * i387-tdep.c (print_i387_value, print_i387_ext,
4902 print_i387_status_word, print_i387_control_word): Add `struct
4903 ui_file *' argument and use it for output.
4904 (i387_print_float_info): Renamed from i387_float_info. Add
4905 `struct gdbarch *' and `struct ui_file *' arguments and use the
4906 latter for output.
4907 * i386-tdep.c: Include "i387-tdep.h".
4908 (i386_gdbarch_init): Set print_float_info.
4909 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4910 (FLOAT_INFO): Remove define.
4911
4912 2002-08-13 Michael Snyder <msnyder@redhat.com>
4913
4914 * mips-tdep.c (mips_push_arguments): Rename to
4915 mips_eabi_push_arguments, and tune for EABI.
4916 (MIPS_REGS_HAVE_HOME_P): Delete.
4917 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4918 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4919 Delete references to mips_regs_have_home_p.
4920
4921 2002-08-14 Keith Seitz <keiths@redhat.com>
4922
4923 * Makefile.in (install-gdbtk): Create insight plugin directory.
4924 Install plugins.tcl file.
4925
4926 2002-08-14 Keith Seitz <keiths@redhat.com>
4927
4928 * configure.in: Move SUBDIRS to near top of the file so that
4929 --enable options may add things to it.
4930 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4931 * configure: Regenerate.
4932
4933 2002-08-13 Michael Snyder <msnyder@redhat.com>
4934
4935 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4936 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4937 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4938
4939 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4940
4941 * vax-tdep.c (vax_get_saved_register): Delete function.
4942 (vax_gdbarch_init): Update.
4943 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4944 (ns32k_gdbarch_init): Update.
4945 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4946 (alpha_gdbarch_init): Update.
4947
4948 2002-08-13 Andrew Cagney <cagney@redhat.com>
4949
4950 * regcache.c (init_regcache_descr): Overallocate the
4951 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4952 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4953 nr_raw_registers.
4954 (set_register_cached): Add range checking assertions. Use
4955 current_regcache.
4956
4957 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4958
4959 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4960 numbers for MMX registers.
4961
4962 2002-08-13 Andrew Cagney <cagney@redhat.com>
4963
4964 * i386-tdep.c (i386_gdbarch_init): Use
4965 generic_unwind_get_saved_register.
4966
4967 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4968
4969 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4970 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4971 target vector.
4972 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4973 Delete. Add comment regarding this now-deleted target method.
4974
4975 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4976
4977 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4978 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4979 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4980 real PC and the page number (if it's within the memory bank window).
4981 (m68hc11_pseudo_register_write): Likewise when saving.
4982 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4983 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4984 (m68hc11_register_raw_size): And use 32-bit for it.
4985 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4986 16K memory bank is used by the prog; also use the virtual pc.
4987
4988 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4989
4990 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4991 (m68hc11_gdbarch_init): Install it in gdbarch.
4992 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4993 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4994 (MSYMBOL_SIZE): New for documentation.
4995 (insn_return_kind): Enum to specify how a function returns.
4996 (frame_extra_info): Cleanup and record the return mode.
4997 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4998 register in address computation.
4999 (m68hc11_get_return_insn): New to obtain the return instruction used
5000 by the function.
5001 (m68hc11_frame_init_saved_regs): Take into account the return
5002 instruction used by the function for far and interrupt functions.
5003 (m68hc11_init_extra_frame_info): Take into account page register.
5004 (m68hc11_frame_args_address): Adjust according to the return mode.
5005 (show_regs): Print page register only when it's used.
5006
5007 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5008
5009 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5010 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5011 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5012 registers.
5013 (m68hc11_register_raw_size): Likewise.
5014
5015 2002-08-13 Andrew Cagney <cagney@redhat.com>
5016
5017 * i386-tdep.c (i386_register_name): Handle mmx registers.
5018 (mmx_regnum_p): New function.
5019 (i386_mmx_names): New array.
5020 (mmx_num_regs): New variable.
5021 (i386_pseudo_register_read): New function.
5022 (i386_pseudo_register_write): New function.
5023 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5024
5025 * regcache.c (regcache_raw_read_unsigned): New function.
5026 (regcache_raw_read_signed): New function.
5027 * regcache.h (regcache_raw_read_unsigned): Declare.
5028 (regcache_raw_read_signed): Declare.
5029
5030 2002-08-13 Andrew Cagney <cagney@redhat.com>
5031
5032 * regcache.c (regcache_raw_read_as_address): Delete function.
5033 (regcache_cooked_read_signed): New function.
5034 (regcache_cooked_read_unsigned): New function.
5035 * regcache.h (regcache_cooked_read_signed): Declare.
5036 (regcache_cooked_read_unsigned): Declare.
5037 (regcache_raw_read_as_address): Delete declaration.
5038
5039 * blockframe.c (generic_read_register_dummy): Use
5040 regcache_cooked_read_unsigned.
5041 * i386-tdep.c (i386_extract_struct_value_address): Use
5042 regcache_cooked_read_unsigned.
5043
5044 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5045
5046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5047 double sizes according to ELF ABI flags.
5048 (gdbarch_tdep): Record elf_flags.
5049
5050 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5051
5052 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5053 (m6812_prolog): They can appear in 68HC12 function prologue.
5054 (m68hc11_frame_chain): Cleanup.
5055
5056 2002-08-12 Andrew Cagney <cagney@redhat.com>
5057
5058 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5059 declarations.
5060 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5061 (i386_linux_register_raw_size): Delete function.
5062 (i386_linux_init_abi): Update.
5063 * i386-tdep.c (i386_register_raw_size): Delete function.
5064 (i386_register_byte): Delete function.
5065 (i386_gdbarch_init): Update.
5066 (i386_register_size): Delete array.
5067 (i386_register_offset): Delete array.
5068
5069 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5070 (REGISTER_RAW_SIZE): Delete macro.
5071 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5072 (REGISTER_BYTE): Delete macro.
5073
5074 2002-08-11 Aidan Skinner <aidan@velvet.net>
5075
5076 * ada-lang.c (ada_lookup_partial_symbol)
5077 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5078 prototype names so that grep ^func works properly.
5079
5080 * ada-lang.c (ada_array_element_type)
5081 (ada_lookup_partial_symbol): Fix typos in parameter list.
5082
5083 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5084 Fix prototype names so that grep ^func works properly.
5085
5086 2002-08-10 Andrew Cagney <cagney@redhat.com>
5087 Elena Zannoni <ezannoni@redhat.com>
5088 Martin M. Hunt <hunt@redhat.com>
5089
5090 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5091 (build_builtin_type_vec128i): Set the vector bit.
5092 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5093 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5094 (build_builtin_type_vec64): New function.
5095 (build_builtin_type_vec64i): New function.
5096 (build_gdbtypes): Initialize builtin_type_vec64 and
5097 builtin_type_vec64i.
5098
5099 2002-08-09 Andrew Cagney <cagney@redhat.com>
5100
5101 * regcache.c (regcache_dump): Compare the register offset
5102 with REGISTER_BYTE.
5103 * arch-utils.c (generic_register_byte): New function.
5104 * arch-utils.h (generic_register_byte): Declare.
5105 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5106 * gdbarch.h, gdbarch.c: Regenerate.
5107
5108 2002-08-09 Andrew Cagney <cagney@redhat.com>
5109
5110 * regcache.c: Include "gdbcmd.h"
5111 (_initialize_regcache): Add commands "maintenance print
5112 registers", "maintenance print raw-registers" and "maintenance
5113 print cooked-registers".
5114 (enum regcache_dump_what): Define.
5115 (dump_endian_bytes): New function.
5116 (regcache_dump): New function.
5117 (regcache_print): New function.
5118 (maintenance_print_registers): New function.
5119 (maintenance_print_raw_registers): New function.
5120 (maintenance_print_cooked_registers): New function.
5121 * Makefile.in (regcache.o): Update dependencies.
5122
5123 2002-08-09 Michael Snyder <msnyder@redhat.com>
5124
5125 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5126 (mips_push_arguments): Correct some comments. Use paddr_nz
5127 for printing addresses in debug output. Replace static
5128 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5129 (mips_n32n64_push_arguments): New function, cloned from
5130 mips_push_arguments and tuned for the n32/n64 ABI.
5131 (mips_push_register): Buffer needs dynamic allocation.
5132 (mips_print_register): Ditto.
5133 (do_gp_register_row): Ditto.
5134 (mips_store_return_value): Ditto.
5135 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5136
5137 2002-08-09 Don Howard <dhoward@redhat.com>
5138
5139 * memattr.c (mem_info_command): Print special case of upper bound
5140 as max CORE_ADDR + 1.
5141
5142 2002-08-08 Michael Snyder <msnyder@redhat.com>
5143
5144 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5145 returns structs by ref if they're too big to fit in two registers.
5146
5147 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5148
5149 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5150 saved regs value.
5151 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5152 mips_find_saved_regs().
5153 (mips_pop_frame): Likewise.
5154
5155 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5156
5157 * blockframe.c (frame_saved_regs_register_unwind): Revise
5158 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5159 frames are in use.
5160
5161 2002-08-09 Grace Sainsbury <graces@redhat.com>
5162
5163 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5164 T-packets; the 'a' is not taken as a register number.
5165 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5166 (remote_stopped_data_address): New functions; add to target
5167 vector.
5168 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5169 prototypes to match other implementations of this
5170 function. replace integer argument with pointer -- the length
5171 field in the Z-packet is the length of what is pointed to or 1 if
5172 pointer is null. Add to target vector.
5173 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5174 target vector.
5175
5176 From Mark Salter:
5177 * remote.c (remote_wait): Add support to extract optional
5178 watchpoint information from T-packet. Ignore unrecognized
5179 optional info in T-packet.
5180 (remote_async_wait): Ditto.
5181
5182 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5183
5184 * cli/cli-dump.c: Change fopen modes to use binary open modes
5185 as defined in include/fopen-bin.h throughout.
5186
5187 2002-08-08 Michael Snyder <msnyder@redhat.com>
5188
5189 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5190
5191 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5192
5193 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5194 assertion failure by returning early after a warning.
5195
5196 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5197
5198 * mips-tdep.c (mips_find_saved_regs): Make static.
5199 (mips_frame_init_saved_regs): New function.
5200 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5201 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5202 (mips_find_saved_regs): Delete declaration.
5203
5204 2002-08-08 Grace Sainsbury <graces@redhat.com>
5205
5206 * remote.c (remote_wait, remote_async_wait): Change
5207 thread_num from int to ULONGEST.
5208 (unpack_varlen_hex): Change result parameter from
5209 int * to ULONGEST *.
5210
5211 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5212
5213 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5214 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5215 powerpc*-*-*.
5216 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5217
5218 2002-08-08 Andrew Cagney <cagney@redhat.com>
5219
5220 * gcore.c (override_derive_stack_segment): Delete variable.
5221 (preempt_derive_stack_segment): Delete function.
5222 (derive_stack_segment): Delete function.
5223 (default_derive_stack_segment): Renamed to derive_stack_segment.
5224 (override_derive_heap_segment): Delete variable.
5225 (preempt_derive_heap_segment): Delete function.
5226 (derive_heap_segment): Delete function.
5227 (default_derive_heap_segment): Rename to derive_heap_segment.
5228
5229 2002-08-06 Michael Snyder <msnyder@redhat.com>
5230
5231 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5232 * mips-tdep.c (mips_EABI_use_struct_convention,
5233 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5234 New functions. (mips_use_struct_convention): Delete.
5235 (mips_gdbarch_init): set use_gdbarch_convention.
5236
5237 2002-08-06 Michael Snyder <msnyder@redhat.com>
5238
5239 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5240 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5241 mips_o32_reg_struct_has_addr): New functions.
5242 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5243
5244 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5245
5246 * regcache.c (pseudo_register): Delete function.
5247 (fetch_register): Delete function.
5248 (store_register): Delete function.
5249 (regcache_raw_read, legacy_read_register_gen): Use
5250 target_fetch_registers instead of fetch_register.
5251 (legacy_write_register_gen, regcache_raw_write): Use
5252 target_store_register instead of store_register.
5253 (write_register_bytes): Ditto.
5254
5255 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5256 (STORE_PSEUDO_REGISTER): Delete.
5257 * gdbarch.h, gdbarch.c: Regenerate.
5258
5259 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5260
5261 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5262 write dump file binary.
5263
5264 2002-08-05 Michael Snyder <msnyder@redhat.com>
5265
5266 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5267 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5268 (mips_gdbarch_init): Set N32 target to be mips64.
5269
5270 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5271
5272 * frame.c (find_saved_register): Break out of loop once saved
5273 register address is found. Don't mention sparc in loop comment
5274 anymore.
5275
5276 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5277
5278 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5279 mips_default_saved_regsize to 8.
5280
5281 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5282
5283 * gcore.c: Do not include <sys/procfs.h>.
5284 * Makefile.in (gcore.o): Update dependencies.
5285
5286 2002-08-06 Andrew Cagney <cagney@redhat.com>
5287
5288 * configure.tgt: Make arc-*-* obsolete.
5289 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5290 * MAINTAINERS: Make arc-elf obsolete.
5291 * arc-tdep.c: Make file obsolete.
5292 * config/arc/arc.mt: Ditto.
5293 * config/arc/tm-arc.h: Ditto.
5294
5295 2002-08-05 Theodore A. Roth <troth@verinet.com>
5296
5297 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5298
5299 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5300
5301 * mcore-tdep.c (mcore_gdbarch_init): Use
5302 generic_unwind_get_saved_register instead of
5303 generic_get_saved_register.
5304 * v850-tdep.c (v850_gdbarch_init): Ditto.
5305 * frv-tdep.c (frv_gdbarch_init): Ditto.
5306 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5307 * s390-tdep.c (s390_gdbarch_init): Ditto.
5308 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5309 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5310 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5311
5312 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5313
5314 * objfiles.h: Add missing #include "symfile.h"
5315
5316 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5317
5318 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5319
5320 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5321 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5322 of FIELD_BITSIZE.
5323
5324 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5325
5326 * NEWS: Cleanup and nitpick.
5327
5328 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5329
5330 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5331
5332 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5333
5334 * Makefile.in (gdbtk-bp.o): Update dependencies.
5335 (gdbtk-register.o): Ditto.
5336 (gdbtk-varobj.o): Ditto.
5337
5338 2002-08-03 Andrew Cagney <cagney@redhat.com>
5339
5340 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5341 m68hc11_fetch_pseudo_register.
5342 (m68hc11_pseudo_register_write): Replace
5343 m68hc11_store_pseudo_register.
5344 (m68hc11_gdbarch_init): Update.
5345
5346 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5347
5348 * gdbarch.sh: Include "gdb_string.h".
5349 * gdbarch.c: Regenerate.
5350
5351 * regcache.c: Include "gdb_string.h".
5352 * ax-general.c: Ditto.
5353 * varobj.c: Ditto.
5354 * std-regs.c: Ditto.
5355 * fbsd-proc.c: Ditto.
5356 * thread.c: Ditto.
5357
5358 * Makefile.in (regcache.o): Update dependencies.
5359 (thread.o, gdbarch.o): Ditto.
5360 (ax-general.o, gdbarch.o): Ditto.
5361 (varobj.o, std-regs.o): Ditto.
5362 (fbsd-proc.o): Specify dependencies.
5363
5364 2002-08-02 Andrew Cagney <cagney@redhat.com>
5365
5366 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5367 regnum.
5368 (regcache_cooked_write): Ditto.
5369
5370 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5371
5372 * regcache.c (regcache_cooked_read): New function.
5373 (regcache_cooked_write): New function.
5374 (read_register_gen): Rewrite using regcache_cooked_read.
5375 (write_register_gen): Rewrite using regcache_cooked_write.
5376
5377 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5378 Declare.
5379
5380 2002-08-02 Andrew Cagney <cagney@redhat.com>
5381
5382 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5383 Replace the architecture methods register_read and register_write.
5384 * gdbarch.h, gdbarch.c: Regenerate.
5385 * regcache.c (init_regcache_descr): Update.
5386 (read_register_gen): Update.
5387 (write_register_gen): Update.
5388 (supply_register): Update comment.
5389
5390 * sh-tdep.c (sh_gdbarch_init): Update.
5391 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5392 `regcache' and `gdbarch' parameters. Make `buffer' a void
5393 pointer. Update code.
5394 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5395 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5396 void pointer. Update code.
5397 (sh64_register_write): Delete.
5398 (sh4_register_read): Delete.
5399 (sh64_register_read): Delete.
5400 (sh4_register_write): Delete.
5401 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5402 void pointer, `to' parameter a void pointer.
5403 (sh_sh64_register_convert_to_raw): Ditto.
5404
5405 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5406
5407 * mips-tdep.c (mips_register_virtual_type): Use architecture
5408 invariant return values.
5409
5410 2002-08-01 Andrew Cagney <cagney@redhat.com>
5411
5412 * linux-proc.c: Include "gdb_string.h".
5413 * Makefile.in (linux-proc.o): Update dependency list.
5414
5415 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5416
5417 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5418 comment.
5419
5420 2002-08-01 Grace Sainsbury <graces@redhat.com>
5421
5422 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5423 to_insert_watchpoint, to_remove_watchpoint,
5424 to_stopped_by_watchpoint, to_stopped_data_address,
5425 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5426 target vecctor. Define their corresponding macros so they call
5427 them.
5428
5429 * target.c: Add default and debug versions of for
5430 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5431 to_insert_watchpoint, to_remove_watchpoint,
5432 to_stopped_by_watchpoint, to_stopped_data_address,
5433 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5434
5435 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5436
5437 * mips-tdep.c (mips_register_virtual_type): New function.
5438 (mips_gdbarch_init): Register mips_register_virtual_type()
5439 with gdbarch machinery.
5440 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5441 this file instead of tm-bigmips.h.
5442 (MIPS_REGSIZE): Delete this macro.
5443 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5444 multiarch version in mips-tdep.c will be found.
5445
5446 2002-08-01 Andrew Cagney <cagney@redhat.com>
5447
5448 * NEWS: Menion that CHILL has been made obsolete.
5449
5450 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5451 * stabsread.c (read_range_type): Ditto.
5452 * gdbtypes.h: Ditto.
5453 * language.c (binop_type_check): Ditto.
5454 (binop_result_type): Ditto.
5455 (integral_type): Ditto.
5456 (character_type): Ditto.
5457 (string_type): Ditto.
5458 (boolean_type): Ditto.
5459 (structured_type): Ditto.
5460 (lang_bool_type): Ditto.
5461 (binop_type_check): Ditto.
5462 * language.h (_LANG_chill): Ditto.
5463 * dwarfread.c (set_cu_language): Ditto.
5464 * dwarfread.c (CHILL_PRODUCER): Ditto.
5465 * dwarfread.c (handle_producer): Ditto.
5466 * expression.h (enum exp_opcode): Ditto.
5467 * eval.c: Ditto for comments.
5468 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5469 * expprint.c (print_subexp): Ditto.
5470 (print_subexp): Ditto.
5471 * valops.c (value_cast): Ditto.
5472 (search_struct_field): Ditto.
5473 * value.h (COERCE_VARYING_ARRAY): Ditto.
5474 * symfile.c (init_filename_language_table): Ditto.
5475 (add_psymbol_with_dem_name_to_list): Ditto.
5476 * valarith.c (value_binop): Ditto.
5477 (value_neg): Ditto.
5478 * valops.c (value_slice): Ditto.
5479 * symtab.h (union language_specific): Ditto.
5480 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5481 (SYMBOL_DEMANGLED_NAME): Ditto.
5482 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5483 * defs.h (enum language): Ditto.
5484 * symtab.c (got_symtab): Ditto.
5485 * utils.c (fprintf_symbol_filtered): Ditto.
5486
5487 * ch-typeprint.c: Make file obsolete.
5488 * ch-valprint.c: Make file obsolete.
5489 * ch-lang.h: Make file obsolete.
5490 * ch-exp.c: Make file obsolete.
5491 * ch-lang.c: Make file obsolete.
5492
5493 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5494 CHILL_LIB.
5495 (TARGET_FLAGS_TO_PASS): Ditto.
5496 (CHILLFLAGS): Obsolete.
5497 (CHILL): Obsolete.
5498 (CHILL_FOR_TARGET): Obsolete.
5499 (CHILL_LIB): Obsolete.
5500 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5501 ch-valprint.c.
5502 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5503 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5504 ch-lang.o.
5505 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5506 targets.
5507
5508 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5509
5510 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5511 This does not change anything at the moment, but will be helpful
5512 later when full Ada support is integrated.
5513
5514 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5515
5516 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5517 help message.
5518
5519 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5520
5521 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5522 and save it in a local variable. Use variable in later test.
5523
5524 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5525
5526 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5527 test. (Thanks to Daniel Jacobowitz.)
5528
5529 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5530
5531 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5532 (mips_abi_strings): Add "n64".
5533 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5534
5535 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5536
5537 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5538 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5539
5540 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5541
5542 * utils.c (host_pointer_to_address, address_to_host_pointer):
5543 Use gdb_assert() instead of explicit call to internal_error().
5544
5545 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5546
5547 * Makefile.in (rs6000-nat.o): Update dependencies.
5548
5549 From Nicholas Duffek:
5550 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5551 (aix-thread.o): New rule.
5552 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5553 * config/powerpc/aix432.mh: New file.
5554
5555 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5556
5557 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5558 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5559 (fetch_core_registers, ppc_linux_supply_gregset)
5560 (ppc_linux_supply_fpregset): New functions.
5561 (ppc_linux_regset_core_fns): New.
5562 (_initialize_ppc_linux_tdep): Call add_core_fns.
5563 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5564 and ppc_linux_supply_gregset.
5565 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5566 (supply_fpregset): Call ppc_linux_supply_fpregset.
5567 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5568 corelow.o.
5569 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5570
5571 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5572
5573 * symtab.c (lookup_symbol): Demangle before lowercasing.
5574
5575 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5576
5577 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5578 declaration.
5579 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5580 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5581 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5582 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5583 "gdb_string.h".
5584 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5585 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5586 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5587 (avr-tdep.o, mon960-rom.o): Ditto.
5588 (aout_stabs_gnu_h): Define.
5589 (symtab_h): Remove $(gdb_obstack_h).
5590
5591 2002-07-30 Jim Blandy <jimb@redhat.com>
5592
5593 Patch from David Carlton <carlton@math.stanford.edu>:
5594 * gdbinit.in: Move the `dir' commands that add GDB's own source
5595 directory to the search path to the end, so that the `gdb' source
5596 directory will be searched first.
5597
5598 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5599
5600 * gdb_obstack.h: New file.
5601 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5602 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5603 * objfiles.h: Include "gdb_obstack.h".
5604 * Makefile.in (gdb_obstack_h): Define.
5605 (symtab_h): Add $(gdb_obstack_h).
5606 (objfiles_h): Add $(gdb_obstack_h).
5607
5608 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5609 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5610 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5611 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5612 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5613 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5614 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5615 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5616
5617 * Makefile.in (bcache.o): Update dependencies.
5618 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5619 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5620 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5621 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5622 (stabsread.o, symfile.o, symmisc.o): Ditto.
5623 (symtab.o, typeprint.o, macroexp.o): Ditto.
5624 (macrotab.o, mdebugread.o): Ditto.
5625 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5626 (coff_ecoff_h, aout_aout64_h): Define.
5627 (aout_stabs_gnu_h, libaout_h): Define.
5628
5629 2002-07-29 Andrew Cagney <cagney@redhat.com>
5630
5631 * regcache.c (struct regcache_descr): Rename nr_registers to
5632 nr_cooked_registers. Revise comments describing the structure
5633 member fields.
5634 (init_regcache_descr): Update.
5635 (init_legacy_regcache_descr): Update.
5636 (read_register_gen, write_register_gen): When a cooked register in
5637 the raw register range, directly access the value from the raw
5638 register cache.
5639
5640 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5641
5642 * z8k-tdep.c: Do not include "obstack.h".
5643 * h8300-tdep.c, h8500-tdep.c: Ditto.
5644 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5645 * valprint.c, v850-tdep.c: Ditto.
5646 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5647 * mn10200-tdep.c: Ditto.
5648
5649 * Makefile.in (z8k-tdep.o): Update dependencies.
5650 (m68hc11-tdep.o, valprint.o): Ditto.
5651 (v850-tdep.o, d10v-tdep.o): Ditto.
5652 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5653 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5654 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5655 (sh_opc_h, gdb_sim_sh_h): Define.
5656 (elf_sh_h, elf_bfd_h): Define.
5657 (opcode_m68hc11_h): Define.
5658 (OPCODES_SRC, OPCODES_DIR): define.
5659 (OPCODES): Use $(OPCODES_DIR).
5660 (gdb_sim_d10v_h): Rename sim_d10v_h.
5661 (gdb_sim_arm_h): Rename sim_arm_h.
5662
5663 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5664
5665 * utils.c (host_pointer_to_address, address_to_host_pointer):
5666 Change internal_error() message to indicate function responsible
5667 for the error.
5668
5669 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5670
5671 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5672 calls to local_hex_string_custom().
5673
5674 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5675
5676 * irix5-nat.c: Move IRIX shared library support from here...
5677 * solib-irix.c: ...to here. Revised substantially to work with
5678 generic solib framework.
5679
5680 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5681 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5682 * mips-irix-tdep.c: New file.
5683
5684 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5685 (mips-irix-tdep.o, solib-irix.o): New rules.
5686 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5687 solib-irix.o.
5688 * config/mips/irix6.mt (TDEPFILES): Likewise.
5689 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5690
5691 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5692
5693 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5694 disabled (via ``#if 0'') includes.
5695
5696 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5697
5698 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5699 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5700 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5701 Add support for the fpscr register.
5702 * rs6000-nat.c (regmap, fetch_inferior_registers)
5703 (store_inferior_registers, fetch_core_registers): Likewise.
5704
5705 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5706
5707 * rs6000-nat.c (language.h): Include.
5708 (special_regs): Delete this array.
5709 (regmap): New function.
5710 (fetch_register, store_register): Use regmap() to map gdb
5711 register numbers to ptrace register numbers. Also, use
5712 outputs from regmap() to make decisions regarding type of
5713 ptrace() call to make. In particular, don't compare against
5714 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5715 (fetch_inferior_registers, store_inferior_registers): Where
5716 possible, obtain register numbers from tdep struct. Don't
5717 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5718 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5719 (LAST_UISA_SP_REGNUM): Delete.
5720
5721 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5722
5723 * rs6000-nat.c (ppc-tdep.h): Include.
5724 (fetch_registers, store_register, fetch_core_registers): Don't
5725 access registers[] directly. Instead, use supply_register() or
5726 regcache_collect() as appropriate.
5727 (find_toc_address): Format hex address with local_hex_string().
5728
5729 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5730
5731 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5732 bfd/elf32-frv.c.
5733
5734 2002-07-24 Tom Tromey <tromey@redhat.com>
5735
5736 * jv-exp.y: Marked all strings with _().
5737 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5738 internal_error.
5739 (MethodInvocation, CastExpression, parse_number, yyerror,
5740 java_type_from_name, push_expression_name, yylex): Typo fixes.
5741
5742 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5743
5744 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5745 (tee_file_flush, tee_file_write, tee_file_fputs)
5746 (tee_file_isatty): New.
5747 * ui-file.h (tee_file_new): Add prototype.
5748
5749 2002-07-24 Aidan Skinner <aidan@velvet.net>
5750
5751 * ada-lang.c: Change k&r style function definitions to prototyped
5752 form.
5753 * ada-typeprint.c: Change k&r style function definitions to prototyped
5754 form.
5755 * ada-valprint.c: Change k&r style function definitions to prototyped
5756 form.
5757
5758 2002-07-24 Andrew Cagney <cagney@redhat.com>
5759
5760 * README: Remove reference to remote-bug.
5761 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5762 remote-bug.c.
5763 (m88k-nat.o): Delete rule.
5764 (m88k-tdep.o): Delete rule.
5765 (remote-bug.o): Delete rule.
5766 * MAINTAINERS: Mark as obsolete.
5767 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5768 * m88k-tdep.c: Make file obsolete.
5769 * config/m88k/m88k.mh: Ditto.
5770 * config/m88k/delta88v4.mh: Ditto.
5771 * config/m88k/delta88v4.mt: Ditto.
5772 * config/m88k/delta88.mt: Ditto.
5773 * config/m88k/delta88.mh: Ditto.
5774 * remote-bug.c: Ditto.
5775 * config/m88k/tm-delta88.h: Ditto.
5776 * config/m88k/nm-delta88v4.h: Ditto.
5777 * config/m88k/xm-delta88.h: Ditto.
5778 * config/m88k/xm-dgux.h: Ditto.
5779 * config/m88k/tm-m88k.h: Ditto.
5780 * config/m88k/nm-m88k.h: Ditto.
5781 * config/m88k/tm-delta88v4.h: Ditto.
5782 * m88k-nat.c: Ditto.
5783 * cxux-nat.c: Ditto.
5784 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5785 and m88*-*-* obsolete.
5786 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5787 m88*-*-* obsolete.
5788
5789 2002-07-24 Andrew Cagney <cagney@redhat.com>
5790
5791 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5792 constant. Same for local pointer variables.
5793 (extract_signed_integer): Ditto.
5794 * defs.h (extract_unsigned_integer): Update.
5795 (extract_signed_integer): Update.
5796
5797 2002-07-24 Andrew Cagney <cagney@redhat.com>
5798
5799 * regcache.c (regcache_raw_write): Change buf parameter to a
5800 constant void pointer.
5801 (regcache_raw_read): Change buf parameter to a void pointer.
5802 (legacy_write_register_gen): Change myaddr parameter a constant
5803 void pointer.
5804 (supply_register): Change val parameter to a const void pointer.
5805 * regcache.h (regcache_raw_write): Update declaration.
5806 (regcache_raw_read): Update declaration.
5807 (supply_register): Update declaration.
5808
5809 2002-07-24 Tom Tromey <tromey@redhat.com>
5810
5811 * defs.h (gdb_readline_wrapper): Declare.
5812 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5813 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5814 * top.c (gdb_readline_wrapper): New function.
5815 (command_line_input): Use it.
5816
5817 2002-07-24 Andrew Cagney <cagney@redhat.com>
5818
5819 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5820 regcache_read and regcache_write.
5821 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5822 * regcache.c: Update.
5823 * sh-tdep.c (sh64_push_arguments): Update comment.
5824 (sh_pseudo_register_read): Update.
5825 (sh_pseudo_register_write): Update.
5826 (sh4_register_read): Update.
5827 (sh4_register_write): Update.
5828 (sh64_pseudo_register_read): Update.
5829 (sh64_pseudo_register_write): Update.
5830 (sh64_register_read): Update.
5831 (sh64_register_write): Update.
5832 * i386-tdep.c (i386_extract_return_value): Update.
5833 (i386_extract_struct_value_address): Update.
5834 (i386_extract_return_value): Update.
5835 * blockframe.c (generic_read_register_dummy): Update.
5836 (generic_call_dummy_register_unwind): Update
5837 * infrun.c (write_inferior_status_register): Update.
5838
5839 2002-07-23 Jim Blandy <jimb@redhat.com>
5840
5841 * parser-defs.h (expression_context_pc): Make this extern.
5842 (Thanks to Michael Snyder.)
5843
5844 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5845
5846 GDB 5.2.1 released from 5.2 branch.
5847 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5848 * README: Update to mention 5.2.1.
5849
5850 2002-07-23 Mark Salter <msalter@redhat.com>
5851
5852 * remote.c (remote_read_bytes): Fix check for error.
5853
5854 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5855
5856 * aix-thread.c (language.h): Include.
5857 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5858 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5859 Print newlines at end of debug messages.
5860 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5861 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5862
5863 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5864
5865 * aix-thread.c (ppc-tdep.h): Include.
5866 (special_register_p): New function.
5867 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5868 (store_regs_user_thread): Use register number information from
5869 gdbarch_tdep struct instead of hardcoded offsets relative to
5870 FIRST_UISA_SP_REGNUM.
5871 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5872 special_register_p() instead of using FPLAST_REGNUM and
5873 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5874 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5875 will be MQ's register number.
5876
5877 2002-07-22 Michael Snyder <msnyder@redhat.com>
5878
5879 * aix-thread.c (ops): Rename to aix_thread_ops.
5880 (base_ops): Rename to base_target.
5881 (ops_attach): Rename to aix_thread_attach.
5882 (ops_detach): Rename to aix_thread_detach.
5883 (ops_resume): Rename to aix_thread_detach.
5884 (ops_wait): Rename to aix_thread_wait.
5885 (ops_kill): Rename to aix_thread_kill.
5886 (init_ops): Rename to init_aix_thread_ops.
5887 (ops_fetch_register): Rename to aix_thread_fetch_register.
5888 (ops_store_register): Rename to aix_thread_store_register.
5889 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5890 (ops_thread_alive): Rename to aix_thread_thread_alive.
5891 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5892 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5893 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5894 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5895 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5896 (store_regs_lib): Rename to store_regs_user_thread.
5897 (store_regs_kern): Rename to store_regs_kernel_thread.
5898
5899 2002-07-22 Michael Snyder <msnyder@redhat.com>
5900
5901 * aix-thread.c (ops_prepare_to_store): Eliminate.
5902 (init_ops): Don't initialize ops.prepare_to_store.
5903 (store_regs_kern): Pre-fetch register buffers from child,
5904 because some registers may not be in the cache. Copy
5905 regs from register cache only if they are cached.
5906 (store_regs_lib): Copy regs from register cache only
5907 if they are cached.
5908 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5909 fill_gprs64): Ditto.
5910
5911 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5912
5913 * aix-thread.c (gdb_assert.h): Include.
5914 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5915 register sizes (from register cache) match size of buffer holding
5916 register data.
5917 (fill_sprs32): Change parameter types to match those in the ptrace()
5918 buffer.
5919 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5920 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5921
5922 2002-07-22 Michael Snyder <msnyder@redhat.com>
5923
5924 * aix-thread.c (supply_sprs64): Cosmetic change.
5925 (supply_sprs32): Cosmetic change.
5926 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5927 (fill_sprs64): Use regcache_collect instead of read_register.
5928 (store_regs_lib): Use regcache_collect instead of
5929 read_register. Use fill_sprs32 instead of fill_sprs64,
5930 if debugging a 32-bit architecture.
5931 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5932 out of the register cache, instead of passing a pointer into
5933 the register cache directly to ptrace. Use regcache_collect
5934 insteaad of read_register.
5935 (ops_prepare_to_store): Use target_read_registers instead
5936 of read_register_bytes.
5937
5938 2002-07-20 Aidan Skinner <aidan@velvet.net>
5939
5940 * MAINTAINERS: Add self under write after approval.
5941
5942 2002-07-20 Aidan Skinner <aidan@velvet.net>
5943
5944 * ada-tasks.c: Change k&r style function definitions to prototyped
5945 form.
5946
5947 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5948
5949 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5950 * x86-64-tdep.c: Include "objfiles.h".
5951 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5952 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5953
5954 2002-07-17 Michal Ludvig <michal@suse.cz>
5955
5956 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5957 (update_context): Initialise cfa variable.
5958
5959 2002-07-17 Michael Snyder <msnyder@redhat.com>
5960
5961 * aix-thread.c: Shorten some long lines.
5962 Bring comments into line with code spec.
5963
5964 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5965
5966 * infrun.c: Re-indent using gdb_indent.sh.
5967
5968 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5969
5970 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5971 Leave the indentation temporarily untouched, to minimize the diffs.
5972
5973 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5974
5975 * stabsread.c: Make os9k sections of the code obsolete,
5976 for real this time.
5977 * stabsread.h: Make os9k sections of the code obsolete.
5978
5979 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5980
5981 * linux-low.c (regsets_store_inferior_registers): Add free()
5982 at the end of a loop to prevent memory leak.
5983 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5984 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5985 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5986 line a comment.
5987 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5988
5989 2002-07-17 Jim Blandy <jimb@redhat.com>
5990
5991 * macrocmd.c (info_macro_command): Remove newline from error
5992 message.
5993
5994 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5995
5996 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5997 (sh_gdbarch_init): Use it for sh-dsp.
5998
5999 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6000
6001 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6002 64-bit DWARF2 format.
6003
6004 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6005
6006 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6007 <sys/proc.h> when not available.
6008
6009 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6010
6011 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6012 * stabsread.c: Make os9k sections of the code obsolete.
6013 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6014 * config/i386/i386os9k.mt: Make file obsolete.
6015 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6016 (COMMON_OBS): Remove os9kread.o
6017 (SFILES): Remove os9kread.c.
6018 (os9kread.o, remote-os9k.o): Make target obsolete.
6019 * remote-os9k.c: Make file obsolete.
6020 * os9kread.c: Make file obsolete.
6021 * Makefile.in
6022
6023 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6024
6025 * NEWS: Mention that the FR30 has been made obsolete.
6026 * fr30-tdep.c: Make file obsolete.
6027 * config/fr30/tm-fr30.h: Ditto.
6028 * config/fr30/fr30.mt: Ditto.
6029 * configure.tgt: Make fr30-*-elf obsolete.
6030 * MAINTAINERS: Make fr30-elf obsolete.
6031
6032 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6033
6034 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6035 found is not inside a section.
6036
6037 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6038
6039 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6040 strerror().
6041 (pdc_realloc): Use xrealloc() instead of realloc().
6042
6043 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6044
6045 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6046 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6047 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6048 macros.
6049
6050 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6051
6052 * aix-thread.c (ptrace_check): Eliminate goto.
6053 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6054 problem.
6055
6056 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6057
6058 * aix-thread.c (gdbcmd.h): Include.
6059 (DEBUG, DBG, DBG2, dbg): Eliminate.
6060 (debug_aix_thread): New static global.
6061 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6062 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6063 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6064 invocations to DBG and DBG2 macros to test against
6065 ``debug_aix_thread'' and call fprintf_unfiltered().
6066 (_initialize_aix_thread): Add new command "set debug aix-thread".
6067
6068 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6069
6070 From Gerhard Tonn <TON@de.ibm.com>:
6071 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6072 instead of supply_register.
6073
6074 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6075
6076 * dwarf2cfi.c: Include "gdb_assert.h".
6077 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6078 non-NULL.
6079 (update_context): Do not use __func__. Add missing ``break''.
6080 (update_context): Do not use __func__.
6081
6082 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6083
6084 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6085 and its setting. Set gdbarch instruction printing functions
6086 directly. For non-rs6000 case use new function
6087 gdb_print_insn_powerpc.
6088 (gdb_print_insn_powerpc): New function.
6089
6090 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6091
6092 * NEWS: Mention that the d30v has been marked obsolete.
6093 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6094 * configure.tgt: Mark d30v-*-* as obsolete.
6095 * d30v-tdep.c: Mark file as obsolete.
6096 * config/d30v/d30v.mt: Ditto.
6097 * config/d30v/tm-d30v.h: Ditto.
6098
6099 2002-07-13 Aidan Skinner <aidan@velvet.net>
6100
6101 * ada-tasks.c (add_task_entry): replace calls to
6102 malloc() with xmalloc
6103 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6104
6105 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6106 ada_finish_decode_line_1, all_sals_for_line
6107 ada_breakpoint_rewrite): replace calls to free() with xfree()
6108
6109 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6110
6111 From Nicholas Duffek (with minor changes by Martin Hunt,
6112 Louis Hamilton, and Kevin Buettner):
6113 * aix-thread.c: New file.
6114
6115 2002-07-12 Petr Sorfa <petrs@caldera.com>
6116
6117 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6118 complaint for invalid attribute class or form.
6119 (read_func_scope): DW_AT_frame_base
6120 better handling of DW_AT_block*.
6121 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6122 better handling of DW_AT_block*.
6123 (read_common_block): DW_AT_location
6124 better handling of DW_AT_block*.
6125 (read_partial_die): DW_AT_location better handling
6126 of DW_AT_block*.
6127 (new_symbol): DW_AT_external better handling of
6128 DW_AT_block*. Proper initialization of variable
6129 "addr".
6130 (attr_form_is_block): New function that returns true
6131 if the attribute's form is of DW_FORM_block*.
6132
6133 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6134
6135 * valops.c (find_method_list): Remove comment about
6136 removed STATIC_MEMFUNCP argument.
6137 (value_find_oload_method_list): Likewise.
6138
6139 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6140
6141 From Nicholas Duffek:
6142 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6143 target_new_objfile_hook.
6144
6145 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6146
6147 From Nicholas Duffek:
6148 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6149 csect.
6150
6151 2002-07-12 Andrew Cagney <cagney@redhat.com>
6152
6153 * MAINTAINERS: Mention --enable-sim-build-warnings.
6154 (m68hc11-elf): Disable sim build warnings.
6155 (m32r-elf): Mark as broken obsolete candidate.
6156 (x86_64-linux-gnu): Mark as buildable with -Werror.
6157 (arm-elf): Change -w to ``,'' which enables warnings but not
6158 -Werror.
6159
6160 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6161
6162 * bcache.h: Update copyright.
6163 (struct bstring, struct bcache): Move definition to "bcache.c".
6164 Replaced by opaque declaration.
6165 (bcache_xfree): Replace free_bcache.
6166 (bcache_xmalloc, bcache_memory_used): Declare.
6167
6168 * bcache.c: Update copyright.
6169 (struct bstring, struct bcache): Moved to here from "bcache.h".
6170 Update comments.
6171 (bcache_xmalloc, bcache_memory_used): New functions.
6172 (bcache_xfree): Replace function free_bcache.
6173
6174 * Makefile.in (objfiles.o): Add $(bcache_h).
6175 (objfiles_h): Remove $(bcache_h).
6176 (symfile.o): Add $(bcache_h).
6177
6178 * symmisc.c: Update copyright.
6179 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6180 (print_objfile_statistics): Use bcache_memory_used.
6181
6182 * symfile.c: Include "bcache.h".
6183 (reread_symbols): Use bcache_xfree.
6184 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6185 (add_psymbol_to_list): Pass psymbol_cache by value.
6186 (add_psymbol_with_dem_name_to_list): Ditto.
6187
6188 * objfiles.h: Update copyright.
6189 (struct bcache): Declare opaque. Do not include "bcache.h".
6190 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6191 bcache'' pointers.
6192 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6193
6194 * objfiles.c: Include "bcache.h". Update copyright.
6195 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6196 macro_cache.
6197 (free_objfile): Use bcache_xfree.
6198
6199 2002-07-11 Grace Sainsbury <graces@redhat.com>
6200
6201 * monitor.c (monitor_fetch_register): Make name a constant.
6202 (monitor_store_register): Same.
6203
6204 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6205
6206 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6207 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6208 (finish_block) For non-function blocks, hash the symbol table. For
6209 function blocks, mark the symbol table as unhashed.
6210 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6211 (msymbol_hash_iw): Likewise.
6212 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6213 value.
6214 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6215 (lookup_minimal_symbol): Likewise for both.
6216 * symtab.h (struct block): Add `hashtable' flag. Comment the
6217 hashtable.
6218 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6219 (ALL_BLOCK_SYMBOLS): Update.
6220 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6221 (struct symbol): Add `hash_next' pointer.
6222 * symtab.c (lookup_block_symbol): Search using the hash table when
6223 possible.
6224 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6225 (search_symbols, find_addr_symbol): Likewise.
6226
6227 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6228 (read_dst_symtab): Likewise.
6229 * jv-lang.c (get_java_class_symtab): Likewise.
6230 * mdebugread.c: Include "gdb_assert.h".
6231 (shrink_block): Assert that the block being modified is not hashed.
6232 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6233 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6234 symbols.
6235 (dump_symtab): Recognize hashed blocks.
6236 * printcmd.c (print_frame_args): Assert that function blocks do not
6237 have hashed symbol tables.
6238 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6239 (fill_in_ada_prototype, debug_print_block): Likewise.
6240 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6241
6242 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6243
6244 * stack.c (print_frame): Use result of frame_address_in_block()
6245 instead of fi->pc when evaluating symbols.
6246 (backtrace_command_1): Ditto.
6247
6248 2002-07-11 Andrew Cagney <cagney@redhat.com>
6249
6250 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6251 Make static.
6252
6253 * arm-tdep.c (arm_register_name): Make return type constant.
6254
6255 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6256
6257 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6258 prototype.
6259 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6260 * s390-tdep.c (s390_fp_regnum): Ditto.
6261 (s390_read_fp): Ditto.
6262 (s390_pop_frame): Ditto.
6263 (_initialize_s390_tdep): Ditto.
6264 * remote.c (get_remote_state): Ditto.
6265 * procfs.c (mappingflags): Ditto.
6266 * memattr.c (_initialize_mem): Ditto.
6267 * mcore-tdep.c (mcore_pop_frame): Ditto.
6268 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6269 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6270 * language.c (set_case_str): Ditto.
6271 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6272 * frv-tdep.c (new_variant): Ditto.
6273 (frv_stopped_data_address): Ditto.
6274 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6275 (context_alloc): Ditto.
6276 (frame_state_alloc): Ditto.
6277 (unwind_tmp_obstack_init): Ditto.
6278 (unwind_tmp_obstack_free): Ditto.
6279 (cfi_read_fp): Ditto.
6280 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6281 (cris_pop_frame): Ditto.
6282 * c-lang.c (scanning_macro_expansion): Ditto.
6283 (finished_macro_expansion): Ditto.
6284 (c_preprocess_and_parse): Ditto.
6285 * gdbarch.sh: Ditto.
6286 * gdbarch.h, gdbarch.c: Regenerate.
6287 * config/mn10200/tm-mn10200.h: Adjust indentation.
6288 * target.c: Adjust indentation.
6289 * symtab.h: Adjust indentation.
6290 * stabsread.h: Adjust indentation.
6291 * remote-es.c: Adjust indentation.
6292 * os9kread.c: Adjust indentation.
6293
6294 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6295
6296 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6297 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6298
6299 2002-07-10 Grace Sainsbury <graces@redhat.com>
6300
6301 * NEWS: Mention m68k, mcore multi-arching.
6302 * MAINTAINERS: Change status of m68k, mcore to reflect
6303 multi-arching.
6304
6305 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6306
6307 * valops.c (find_overload_match): Free oload_syms.
6308
6309 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6310
6311 Define HAVE_SYS_PROC_H if sys/proc.h exists
6312 * configure.in: Add check for sys/proc.h
6313 * config.in: Regenerate.
6314 * configure: Regenerate.
6315
6316 2002-07-09 Grace Sainsbury <graces@redhat.com>
6317
6318 * config/m68k/tm-m68k.h: Remove macros wrapped in
6319 #if !GDB_MULTI_ARCH.
6320
6321 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6322
6323 * config.in, configure: Regenerate.
6324
6325 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6326
6327 * dwarf2cfi.c: Include "gcore.h".
6328 (execute_stack_op): Fix implementation of the
6329 DW_OP_deref and DW_OP_deref_size operators by letting do their
6330 lookup in the target.
6331
6332 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6333
6334 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6335 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6336 tdep->sc_sp_offset.
6337
6338 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6339
6340 Fix PR gdb/595, gdb/602
6341 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6342 Don't call value_cast, just read the vtable pointer; update comments
6343 to match.
6344
6345 2002-07-05 Grace Sainsbury <graces@redhat.com>
6346
6347 * config/mcore/tm-mcore.h: Remove file.
6348 * config/mcore/mcore.mt: Remove definition of TM_FILE
6349 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6350
6351 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6352
6353 * i386bsd-tdep.c: Include "gdb_string.h".
6354
6355 2002-07-04 Grace Sainsbury <graces@redhat.com>
6356
6357 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6358 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6359 mcore-tdep.
6360 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6361 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6362 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6363 (RETVAL_REGNUM): Move macros from tm-mcore.h
6364 (mcore_reg_struct_has_addr): New function.
6365 (mcore_gdbarch_init): Added initializations for the macros removed
6366 from tm-mcore.h.
6367
6368 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6369
6370 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6371 traditonal string branding within the ELF header.
6372
6373 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6374
6375 * symtab.c (remove_params): New function.
6376 (make_symbol_overload_list): Use it instead of cplus_demangle.
6377 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6378
6379 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6380
6381 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6382
6383 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6384 New variables.
6385 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6386 and tdep->sigtramp_end.
6387 * i386obsd-nat.c: New file.
6388 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6389
6390 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6391 Don't call get_current_frame().
6392
6393 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6394
6395 * i386-nat.c (child_post_startup_inferior): New function
6396 calling i386_cleanup_dregs if
6397 I386_USE_GENERIC_WATCHPOINTS is defined.
6398 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6399 conditional to acknowledge that i386-nat.c has its
6400 own child_post_startup_inferior function.
6401
6402 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6403
6404 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6405 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6406 instead of MAX_REGISTER_RAW_SIZE.
6407 (i386_extract_return_value, i386_extract_struct_value_address):
6408 Convert to use regcache.
6409 (i386_gdbarch_init): Set max_register_raw_size and
6410 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6411 Set extract_return_value and extract_struct_value_address instead
6412 of their deprecated variants.
6413
6414 Convert i386 target to generic dummy frames.
6415 * i386-tdep.c: Include "symfile.h".
6416 (i386_frameless_signal_p): Consider a function to be frameless if
6417 the pc points at the first instruction of the function.
6418 (i386_frame_chain): Handle (generic) call dummies.
6419 (i386_frame_saved_pc): Likewise.
6420 (i386_frame_init_saved_regs): Remove code dealing with call
6421 dummies on the stack.
6422 (i386_push_dummy_frame): Removed.
6423 (i386_call_dummy_words): Removed.
6424 (i386_fix_call_dummy): Removed.
6425 (i386_push_return_address): New function.
6426 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6427 parameter, and don't call get_current_frame.
6428 (i386_pop_frame): New function.
6429 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6430 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6431 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6432 call_dummy_length to 0, set call_dummy_words to NULL, set
6433 sizeof_call_dummy_words to 0, set fix_call_dummy to
6434 generic_fix_call_dummy, set pc_in_call_dummy to
6435 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6436 generic_push_dummy_frame, set push_return_address to
6437 i386_push_return_address and set frame_chain_valid to
6438 generic_file_frame_chain_valid.
6439
6440 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6441
6442 * gdbarch.sh (struct regcache): Add opaque declaration.
6443 (EXTRACT_RETURN_VALUE): New architecture method.
6444 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6445 * gdbarch.h, gdbarch.c: Regenerate.
6446 * arch-utils.c (legacy_extract_return_value): New function.
6447 * arch-utils.h (legacy_extract_return_value): Declare.
6448 * values.c (value_being_returned): Re-enable code handling
6449 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6450 deprecated_grub_regcache_for_registers call to block handling
6451 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6452 (EXTRACT_RETURN_VALUE): Do not define.
6453
6454 2002-07-03 Grace Sainsbury <graces@redhat.com>
6455
6456 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6457 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6458 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6459 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6460 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6461 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6462 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6463 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6464 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6465 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6466 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6467 argument so the function fits the prototype in the architecture
6468 vector.
6469 (mcore_pop_frame): Remove argument so the function fits the
6470 prototype. Use get_current_frame instead of the argument.
6471 (mcore_push_arguments): Change type of struct_return so the
6472 function can be used in the architecture vector.
6473 (mcore_store_struct_return): Add.
6474 (mcore_frame_init_saved_regs): Add.
6475 (mcore_gdbarch_init): Add function calls to replace the macros
6476 removed from tm-mcore.h
6477
6478 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6479
6480 * infcmd.c (print_return_value): Remove compatibility code calling
6481 deprecated_grub_regcache_for_registers.
6482
6483 * values.c: Include "regcache.h".
6484 (value_being_returned): Update. Use
6485 deprecated_grub_regcache_for_registers to extract the register
6486 buffer address.
6487 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6488 ``struct regcache''.
6489 * Makefile.in (values.o): Add dependency on $(regcache_h).
6490
6491 * inferior.h (run_stack_dummy): Change type of second parameter to
6492 a ``struct regcache''.
6493 * valops.c (hand_function_call): Change type of retbuf to ``struct
6494 regcache''. Allocate using regcache_xmalloc, clean using
6495 make_cleanup_regcache_xfree.
6496 * infcmd.c (run_stack_dummy): Update. Use
6497 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6498
6499 * regcache.c (do_regcache_xfree): New function.
6500 (make_cleanup_regcache_xfree): New function.
6501 * regcache.h (make_cleanup_regcache_xfree): Declare.
6502
6503 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6504
6505 * event-top.c (command_line_handler): Don't read past
6506 beginning of buffer.
6507
6508 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6509
6510 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6511 struct frame_id.
6512 (varobj_create): Store frame_id for root.
6513 (varobj_gen_name): Use xasprintf.
6514 (varobj_update): Save and restore frame using get_frame_id() and
6515 frame_find_by_id().
6516 (create_child): Use xasprintf.
6517 (new_root_variable): Initialize frame_id.
6518 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6519 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6520 to prevent memory leak.
6521
6522 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6523
6524 * valops.c (hand_function_call): Move declaration of retbuf to
6525 start of function, allocate using malloc, add a cleanup but before
6526 the inf_status cleanup, cleanup the buffer. Rename local variable
6527 old_chain to inf_status_cleanup.
6528
6529 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6530
6531 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6532
6533 * cli/cli-decode.c (cmd_func_p): New function.
6534 (cmd_func): New function.
6535
6536 * command.h: Add cmd_func() and cmd_func_p().
6537
6538 2002-07-03 Grace Sainsbury <graces@redhat.com>
6539
6540 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6541 (REGISTER_SIZE): Remove.
6542 (MAX_REGISTER_RAW_SIZE): Remove.
6543 (REGISTER_VIRTUAL_TYPE): Remove.
6544 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6545 (REGISTER_NAME): Remove.
6546 (USE_GENERIC_DUMMY_FRAMES): Remove.
6547 (CALL_DUMMY): Remove.
6548 (CALL_DUMMY_START_OFFSET): Remove.
6549 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6550 (CALL_DUMMY_LOCATION): Remove.
6551 (FIX_CALL_DUMMY): Remove.
6552 (CALL_DUMMY_ADDRESS): Remove.
6553 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6554 (SAVE_DUMMY_FRAME_TOS): Remove.
6555 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6556 (mcore_register_virtual_type): New function.
6557 (mcore_register_byte): New function.
6558 (mcore_register_size): New function.
6559 (mcore_register_name): New function.
6560 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6561 macros removed from tm-mcore.h.
6562 (mcore_dump_tdep): Add.
6563 (_initialize_mcore_tdep): Add gdbarch_register call.
6564
6565 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6566
6567 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6568 frameless_look_for_prologue, such that we actually call this
6569 function.
6570
6571 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6572
6573 * frame.h (frame_address_in_block): New function.
6574
6575 * blockframe.c (frame_address_in_block): New function extracted
6576 from get_frame_block().
6577 (get_frame_block): Use frame_address_in_block().
6578 (block_innermost_frame): Use frame_address_in_block() to match
6579 the frame pc address against the block boundaries rather than
6580 the frame pc directly. This prevents a failure when a frame pc
6581 is actually a return-address pointing immediately after the end
6582 of the given block.
6583
6584 2002-07-02 Grace Sainsbury <graces@redhat.com>
6585
6586 * MAINTAINERS: Add self under write after approval.
6587
6588 2002-07-02 Grace Sainsbury <graces@redhat.com>
6589
6590 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6591 used in architecture vector. The default is
6592 m68k_local_breakpoint_from_pc.
6593 (m68k_local_breakpoint_from_pc): Add.
6594 (enum): Add register numbers from tm-m68k.h.
6595 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6596 vector.
6597 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6598 GDB_MULTI_ARCH_PARTIAL.
6599 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6600 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6601 m68k-tdep.c.
6602 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6603 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6604 to enum in m68k-tdep.c
6605
6606 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6607
6608 * solib-osf.c (open_map): Compute the list of shared libraries
6609 loaded by the inferior, rather than the list of libraries loaded
6610 by GDB itself. Otherwise, GDB ends up reading the symbols from
6611 the wrong shared libraries...
6612
6613 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6614
6615 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6616 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6617 macros.
6618 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6619 Remove functions.
6620 (FRAMELESS_SIGNAL): Remove function.
6621 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6622 i386_linux_saved_pc_after_call): Removed.
6623 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6624 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6625 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6626
6627 * i386-tdep.c (i386_frameless_signal_p): New function.
6628 (i386_frame_chain): Deal with frameless signals.
6629 (i386_sigtramp_saved_sp): New function.
6630 (i386_frame_saved_pc): Deal with frameless signals.
6631 (i386_saved_pc_after_call): Make sure the correct value is
6632 returned just after entry into a sigtramp.
6633 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6634 i386fbsd4_sc_sp_offset): New variables.
6635 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6636 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6637 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6638 similiar to what we already did for sc_pc_offset.
6639 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6640 tdep->sc_sp_offset.
6641
6642 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6643
6644 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6645
6646 * config/i386/tm-x86-64linux.h: New.
6647 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6648 definitions.
6649 * config/i386/nm-x86-64.h: Rename to ...
6650 * config/i386/nm-x86-64linux.h: ... this one.
6651 * config/i386/x86-64linux.mh: Reflect the above change.
6652
6653 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6654
6655 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6656 with sigcontext_addr. Add sc_sp_offset.
6657 (i386bsd_sigtramp_saved_pc): Remove prototype.
6658 (i386bsd_sicontext_addr): Add prototype.
6659 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6660 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6661 (i386_svr4_sigtramp_saved_pc): Removed.
6662 (i386_svr4_sigcontext_addr): New function.
6663 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6664 Initialize tdep->sigcontext_addr instead. Initialize
6665 tdep->sc_pc_offset and tdep->sc_sp_offset.
6666 (i386_gdbarch_init): Likewise.
6667 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6668 any more.
6669 (i386bsd_sigtramp_saved_pc): Remove function.
6670 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6671 Initialize tdep->sigcontext_addr instead. Initialize
6672 tdep->sc_pc_offset.
6673 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6674 of tdep->sigtramp_saved_pc.
6675 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6676 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6677 instead.
6678
6679 * i386-tdep.c (i386_frameless_function_invocation,
6680 i386_frame_num_args, i386_frame_init_saved_regs,
6681 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6682 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6683 i386_extract_return_value, i386_store_return_value,
6684 i386_extract_struct_value_address, i386_register_virtual_type,
6685 i386_register_convertible, i386_register_convert_to_virtual,
6686 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6687 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6688 static.
6689
6690 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6691
6692 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6693
6694 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6695 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6696 this macro. Include "value.h".
6697
6698 2002-06-30 Aidan Skinner <aidan@velvet.net>
6699
6700 * ada-exp.tab.c: remove as it's a generated file
6701 * ada-lex.c: remove as it's a generated file
6702
6703 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6704
6705 * config/i386/tm-i386.h (struct frame_info, struct
6706 frame_saved_regs, struct value, struct type): Remove forward
6707 declarations.
6708
6709 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6710 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6711 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6712 (FILL_FPXREGSET): Define.
6713
6714 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6715
6716 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6717 i[3456]86-*-netbsd* case.
6718 * config/i386/tm-obsd.h: Removed.
6719 * config/i386/obsd.mt: Removed.
6720 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6721 core-aout.o.
6722 (MH_CFLAGS): Add -DYYDEBUG=0.
6723
6724 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6725 i386nbsd_sc_pc_offset on OpenBSD too.
6726
6727 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6728 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6729 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6730 define.
6731 * i386bsd-tdep.c: Include "arch-utils.h".
6732 (i386bsd_aout_in_solib_call_trampoline): New function.
6733 (i386bsd_init_abi): Set in_solib_call_trampoline to
6734 i386bsd_aout_in_solib_call_trampoline.
6735 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6736 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6737
6738 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6739
6740 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6741 (struct obstack, struct bcache): Add opaque declarations.
6742 * Makefile.in (macrotab_h): Update
6743
6744 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6745
6746 * blockframe.c (generic_find_dummy_frame): Change return type to
6747 ``struct regcache''.
6748 (struct dummy_frame): Replace field ``registers'' with regcache, a
6749 struct regcache object.
6750 (generic_find_dummy_frame): Update.
6751 (generic_push_dummy_frame): Update. Use regcache_xfree,
6752 regcache_xmalloc and regcache_cpy.
6753 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6754 regcache_xfree.
6755 (deprecated_generic_find_dummy_frame): Update.
6756 (generic_read_register_dummy): Update. Use
6757 regcache_read_as_address.
6758 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6759 (generic_get_saved_register): Update. Use regcache_read.
6760
6761 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6762
6763 * Makefile.in (objfiles_h): Add $(bcache_h).
6764 * objfiles.h: Include "bcache.h".
6765
6766 * Makefile.in (symtab_h): Remove $(bcache_h).
6767 * symtab.h: Do not include "bcache.h".
6768
6769 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6770
6771 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6772 generic_func_frame_chain_valid.
6773
6774 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6775
6776 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6777 * config/i386/tm-fbsd.h: Likewise.
6778
6779 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6780
6781 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6782 generic_unwind_get_saved_register.
6783
6784 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6785
6786 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6787 * regcache.c (supply_register): Add missing argument to
6788 register_buffer call.
6789
6790 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6791
6792 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6793 Solaris /bin/grep does not not like it. From Peter Schauer.
6794
6795 2002-06-26 Tom Tromey <tromey@redhat.com>
6796
6797 * command.h (add_setshow_cmd): Declare.
6798 (add_setshow_cmd_full): Declare.
6799 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6800 returns void. Use add_setshow_cmd_full.
6801 (add_setshow_cmd_full): New function.
6802 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6803 (add_setshow_boolean_cmd): Likewise.
6804
6805 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6806
6807 * config/vax/tm-vax.h: Protect from multiple inclusion.
6808 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6809 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6810 * config/vax/tm-vaxbsd.h: ...here. New file.
6811 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6812
6813 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6814
6815 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6816 (BELIEVE_PCC_PROMOTION): Remove.
6817 (AP_REGNUM): Move to...
6818 * config/vax/nm-vax.h: ...here.
6819 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6820 (vax_breakpoint_from_pc): New function.
6821 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6822 and gdbarch_believe_pcc_promotion.
6823
6824 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6825
6826 * Makefile.in (vax_tdep_h): Define.
6827 (vax-tdep.o): Use $(vax_tdep_h).
6828 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6829 (vax_dump_tdep): New function.
6830 (_initialize_vax_tdep): Register vax_dump_tdep.
6831 * vax-tdep.h: Include osabi.h.
6832 (struct gdbarch_tdep): New.
6833
6834 2002-06-26 Andrew Cagney <cagney@redhat.com>
6835
6836 * frame.h (deprecated_generic_find_dummy_frame): Rename
6837 generic_find_dummy_frame.
6838 * blockframe.c (generic_find_dummy_frame): Make static.
6839 (deprecated_generic_find_dummy_frame): New function.
6840 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6841 generic_find_dummy_frame with deprecated_find_dummy_frame.
6842 (sh64_nofp_frame_init_saved_regs): Ditto.
6843 (sh_fp_frame_init_saved_regs): Ditto.
6844 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6845 (s390_frame_chain): Ditto.
6846 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6847
6848 2002-06-26 Grace Sainsbury <graces@redhat.com>
6849
6850 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6851 gdbarch vector are at the top.
6852 (NUM_REGS): Remove.
6853 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6854 (FRAME_ARGS_ADDRESS): Remove.
6855 (FRAME_LOCALS_ADDRESS): Remove.
6856 (FRAME_NUM_ARGS): Remove.
6857 (FRAME_ARGS_SKIP): Remove.
6858 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6859 (m68k_gdbarch_init): Add gdbarch initializations for macros
6860 undefined in tm-m68k.h
6861
6862 2002-06-26 Grace Sainsbury <graces@redhat.com>
6863
6864 * monitor.h: Add the function regname to monitor_ops
6865 structure. This way NUM_REGS does not have to be a constant.
6866 * monitor.c (monitor_fetch_register): Added support for regname
6867 function. The function is called if the array regnames is NULL.
6868 (monitor_store_register): Same.
6869 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6870 regnames array.
6871 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6872 cpu32bug_cmds.regname to point to new function.
6873 * abug-rom.c (abug_regname): Same as above.
6874 (init_abug_cmds): Same.
6875 * dbug-rom.c (dbug_regname): Same as above.
6876 (init_dbug_cmds): Same.
6877 * remote-est.c (est_regname): Same.
6878 (init_est_cmds): Same.
6879 * rom68k-rom.c (rom68k_regname): Same.
6880 (init_rom68k_cmds): Same.
6881
6882 2002-06-25 Tom Tromey <tromey@redhat.com>
6883
6884 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6885
6886 2002-06-25 Andrew Cagney <cagney@redhat.com>
6887
6888 * infrun.c (stop_registers): Change variable's type to ``struct
6889 regcache'''.
6890 (xmalloc_inferior_status): Delete function.
6891 (free_inferior_status): Delete function.
6892 (normal_stop): Use regcache_cpy.
6893 (struct inferior_status): Change type of fields ``stop_registers''
6894 and ``registers'' to ``struct regcache''.
6895 (write_inferior_status_register): Use regcache_write.
6896 (save_inferior_status): Instead of calling
6897 xmalloc_inferior_status, allocate the inf_status buffer directly.
6898 Use regcache_dup_no_passthrough and regcache_dup to save the
6899 buffers.
6900 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6901 Replace the stop_registers regcache instead of overriding it. Use
6902 regcache_xfree. Instead of calling free_inferior_status, xfree
6903 the buffer directly.
6904 (discard_inferior_status): Use regcache_xfree. Instead of calling
6905 free_inferior_status, xfree the buffer directly.
6906 (build_infrun): Use regcache_xmalloc.
6907 (_initialize_infrun): Delete redundant call to build_infrun.
6908
6909 * Makefile.in (infcmd.o): Add $(regcache_h).
6910
6911 * infcmd.c: Include "regcache.h".
6912 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6913 obtain the address of `stop_registers' register buffer.
6914 (print_return_value): Ditto.
6915
6916 * inferior.h (struct regcache): Add opaque declaration.
6917 (stop_registers): Change variable's declared type to ``struct
6918 regcache''.
6919
6920 2002-06-24 Tom Tromey <tromey@redhat.com>
6921
6922 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6923 * target.c (initialize_targets): Fixed typo in
6924 trust-readonly-sections `show' documentation.
6925
6926 * main.c: Marked all strings with _().
6927
6928 2002-06-24 Don Howard <dhoward@redhat.com>
6929
6930 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6931 that means max CORE_ADDR+1.
6932 (lookup_mem_region): Ditto.
6933 (mem_info_command): Ditto.
6934
6935 2002-06-24 Grace Sainsbury <graces@redhat.com>
6936
6937 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6938 (REGISTER_BYTES_OK): Remove.
6939 (REGISTER_BYTES): Remove.
6940 (STORE_STRUCT_RETURN): Remove.
6941 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6942 (STORE_RETURN_VALUE): Remove.
6943 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6944 (FRAME_CHAIN): Remove.
6945 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6946 (FRAME_SAVED_PC): Remove.
6947 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6948 (m68k_store_struct_return): Add.
6949 (m68k_deprecated_extract_return_value): Add.
6950 (m68k_deprecated_extract_struct_value_address): Add.
6951 (m68k_store_return_value): Add.
6952 (m68k_frame_chain): Add.
6953 (m68k_frameless_function_invocation): Add.
6954 (m68k_frame_saved_pc): Add.
6955 (m68k_gdbarch_init): added set_gdbarch calls for new
6956 functions and deleted macros.
6957
6958 2002-06-23 Tom Tromey <tromey@redhat.com>
6959
6960 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6961 (ALLDEPFILES): Likewise.
6962 (udiheaders): Removed.
6963 (udip2soc.o): Likewise.
6964 (udi2go32.o): Likewise.
6965 (udr.o): Likewise.
6966 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6967
6968 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6969
6970 * infrun.c (_initialize_infrun): Delete unnecessary call to
6971 build_infrun.
6972
6973 * regcache.h: Update comments describing the regcache_cpy family
6974 of functions.
6975 (regcache_save, regcache_restore): Delete declaration.
6976 (regcache_save_no_passthrough): Delete declaration.
6977 (regcache_restore_no_passthrough): Delete declaration.
6978 * regcache.c (regcache_save): Delete function.
6979 (regcache_save_no_passthrough): Delete function.
6980 (regcache_restore): Delete function.
6981 (regcache_restore_no_passthrough): Delete function.
6982
6983 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6984
6985 * config/m68k/tm-m68k.h: Fix typo.
6986 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6987 (m68k_frame_init_saved_regs): Declare.
6988
6989 2002-06-21 Jim Blandy <jimb@redhat.com>
6990
6991 Remove some vestiges of Harris 88k support.
6992 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6993 register numbering quirk.
6994 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6995 odd symbols occurring in Harris 88k ELF targets.
6996
6997 2002-06-21 Tom Tromey <tromey@redhat.com>
6998
6999 * gdb_locale.h: New file.
7000 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7001 (defs_h): Added gdb_locale.h.
7002 * configure, config.in: Rebuilt.
7003 * configure.in (PACKAGE): Define.
7004 * defs.h: Include gdb_locale.h.
7005 * main.c (captured_main): Call setlocale, bindtextdomain,
7006 textdomain.
7007
7008 2002-06-21 Dave Brolley <brolley@redhat.com>
7009
7010 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7011 * config/frv/frv.mt: New file.
7012 * config/frv/tm-frv.h: New file.
7013 * configure.tgt: Support frv-*-*.
7014 * Makefile.in (frv-tdep.o): New target.
7015 * frv-tdep.c: New file.
7016 * NEWS: Mention frv.
7017
7018 2002-06-21 Dave Brolley <brolley@redhat.com>
7019
7020 * MAINTAINERS: Add self to "Write After Approval" list.
7021
7022 2002-06-21 Grace Sainsbury <graces@redhat.com>
7023
7024 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7025 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7026 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7027 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7028 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7029
7030 * m68k-tdep.c: Include arch-utils.h
7031 (m68k_register_raw_size): Add.
7032 (m68k_register_virtual_size): Add.
7033 (m68k_register_virtual_type): Add.
7034 (m68k_register_name): Add.
7035 (m68k_stack_align): Add.
7036 (m68k_register_byte): Add.
7037 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7038 tm-m68k.h.
7039
7040 2002-06-21 Grace Sainsbury <graces@redhat.com>
7041
7042 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7043 m68k_find_saved_regs.
7044 (m68k_pop_frame): Removed saved_regs structure, and replaced
7045 references to it with frame->saved_regs.
7046 (m68k_gdbarch_init): Added function calls to initialize the
7047 gdbarch structure.
7048 (m68k_fix_call_dummy): Add.
7049 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7050 (CALL_DUMMY): Remove.
7051 (CALL_DUMMY_LENGTH): Remove.
7052 (CALL_DUMMY_START_OFFSET): Remove.
7053 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7054 (FIX_CALL_DUMMY): Remove.
7055 (PUSH_DUMMY_FRAME): Remove.
7056 (POP_FRAME): Remove.
7057
7058 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7059
7060 * parse.c (parse_fprintf): New function used to avoid calls to
7061 fprintf in bison parser generated debug code.
7062 * parser-defs.h: Declaration of new parse_fprintf function.
7063 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7064 Set YYDEBUG to 1 by default.
7065 Set YYFPRINTF as parse_fprintf.
7066
7067 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7068
7069 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7070 encoding anymore.
7071 (pointer_encoding, enum ptr_encoding): New.
7072 (execute_cfa_program): Take care about pointer encoding.
7073 (dwarf2_build_frame_info): Only call parse_frame_info for
7074 .debug_frame and .eh_frame.
7075 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7076 fixed augmentation handling, added relative addressing,
7077 ignore duplicate FDEs. Added comments.
7078 * dwarf2cfi.c: Reindented.
7079
7080 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7081
7082 * event-top.c (command_handler): Don't use space_at_cmd_start
7083 unless there is sbrk() on the host. Assign time and space data
7084 to union fields of the appropriate length.
7085
7086 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7087
7088 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7089 x86_64_register_name. Return type changed to 'const char *'.
7090 (x86_64_register_name2nr): Rename to x86_64_register_number.
7091 (x86_64_gdbarch_init): Update to reflect the change.
7092 * x86-64-tdep.h: Ditto.
7093 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7094 (supply_fpregset): Ditto.
7095
7096 2002-06-19 Andrew Cagney <cagney@redhat.com>
7097
7098 * regcache.h: Update copyright.
7099 (struct regcache, struct gdbarch): Add opaque declarations.
7100 (current_regcache): Declare global variable.
7101 (regcache_read, regcache_write): Add gdbarch parameter.
7102 (regcache_save, regcache_save_no_passthrough)
7103 (regcache_restore, regcache_restore_no_passthrough)
7104 (regcache_dup, regcache_dup_no_passthrough)
7105 (regcache_cpy, regcache_cpy_no_passthrough)
7106 (deprecated_grub_regcache_for_registers)
7107 (deprecated_grub_regcache_for_register_valid)
7108 (regcache_valid_p): Add function declarations.
7109
7110 * regcache.c: Update copyright.
7111 (regcache_descr_handle): New global variable.
7112 (struct regcache_descr): Define.
7113 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7114 (regcache_descr, xfree_regcache_descr): New functions.
7115 (struct regcache): Define.
7116 (regcache_xmalloc, regcache_xfree): New functions.
7117 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7118 (regcache_dup, regcache_dup_no_passthrough): New functions.
7119 (regcache_valid_p, regcache_read_as_address): New functions.
7120 (deprecated_grub_regcache_for_registers): New function.
7121 (deprecated_grub_regcache_for_register_valid): New function.
7122 (current_regcache): New global variable.
7123 (register_buffer): Add regcache parameter. Update calls.
7124 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7125 (read_register_gen, write_register_gen): Update register_buffer
7126 call. Test for legacy_p instead of gdbarch_register_read_p or
7127 gdbarch_register_write_p.
7128 (regcache_collect): Update register_buffer call.
7129 (build_regcache): Rewrite. Use deprecated grub functions.
7130 (regcache_save, regcache_save_no_passthrough): New functions.
7131 (regcache_restore, regcache_restore_no_passthrough): New
7132 functions.
7133 (_initialize_regcache): Create the regcache_data_handle. Swap
7134 current_regcache global variable.
7135
7136 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7137 parameter to regcache_read and regcache_write calls.
7138 (sh4_register_read): Ditto.
7139 (sh64_pseudo_register_read): Ditto.
7140 (sh64_register_read): Ditto.
7141 (sh_pseudo_register_write): Ditto.
7142 (sh4_register_write): Ditto.
7143 (sh64_pseudo_register_write): Ditto.
7144 (sh64_register_write): Ditto.
7145
7146 * defs.h (XCALLOC): Define.
7147
7148 2002-06-19 Grace Sainsbury <graces@redhat.com>
7149
7150 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7151 * m68k-tdep.c (m68k_gdbarch_init): Added.
7152 (m68k_dump_tdep): Added.
7153
7154 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7155
7156 * ada-lang.c (fill_in_ada_prototype): Update comment.
7157
7158 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7159
7160 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7161 MIPS_ABI_LAST.
7162 (mips_abi_string, mips_abi_strings): New.
7163 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7164 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7165 tdep->mips_abi_string. Honor mips_abi_string. Default to
7166 O32 if no ABI is found.
7167 (mips_dump_tdep): Use mips_abi_strings.
7168 (mips_abi_update): New function.
7169 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7170 ``set mips abi'' and ``show mips abi''. Check the size of
7171 mips_abi_strings.
7172
7173 2002-06-19 Andrew Cagney <cagney@redhat.com>
7174
7175 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7176 constant.
7177
7178 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7179
7180 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7181 current frame using only the first stack size adjustment. All
7182 subsequent size adjustments are not considered to be part of
7183 the "static" part of the current frame.
7184 Compute the address of the saved registers relative to the
7185 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7186 in use in this frame.
7187
7188 2002-06-18 Don Howard <dhoward@redhat.com>
7189
7190 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7191 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7192 suggesting this solution.
7193
7194 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7195
7196 * config/romp/xm-rtbsd.h: Delete file.
7197 * config/romp/rtbsd.mh: Delete file.
7198
7199 2002-06-18 Keith Seitz <keiths@redhat.com>
7200
7201 * breakpoint.c (condition_command): Post breakpoint_modify
7202 when a condition is added to an existing breakpoint.
7203 (commands_command): Likewise for commands.
7204 (set_ignore_count): Likewise for ignore counts.
7205 If no tty, do not simply return, still need to send event
7206 notification.
7207 (ignore_command): Only print a newline if the command came
7208 from a tty.
7209 Don't call breakpoints_changed, since this is now properly
7210 handled by set_ignore_count.
7211
7212 2002-06-18 Andrew Cagney <cagney@redhat.com>
7213
7214 * MAINTAINERS: Note that cris-elf target can be compiled with
7215 -Werror.
7216 * cris-tdep.c (cris_register_name): Make return type constant.
7217 (cris_breakpoint_from_pc): Ditto.
7218
7219 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7220
7221 * frame.h (struct frame_info): Change type of context to
7222 'struct context'.
7223
7224 2002-06-17 Andrew Cagney <cagney@redhat.com>
7225
7226 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7227 pointer.
7228 * gdbarch.h, gdbarch.c: Regenerate.
7229 * config/mips/tm-mips.h (mips_register_name): Update.
7230 * i386-tdep.h (i386_register_name): Update.
7231 * mips-tdep.c (mips_register_name): Update
7232 * alpha-tdep.c (alpha_register_name): Update.
7233 * arch-utils.c (legacy_register_name): Update.
7234 * arch-utils.h (legacy_register_name): Update.
7235 * avr-tdep.c (avr_register_name): Update.
7236 * ia64-tdep.c (ia64_register_name): Update.
7237 * i386-tdep.c (i386_register_name): Update.
7238 * sparc-tdep.c (sparc32_register_name): Update.
7239 (sparc64_register_name): Update.
7240 (sparclite_register_name): Update.
7241 (sparclet_register_name): Update.
7242 * sh-tdep.c (sh_generic_register_name): Update.
7243 (sh_sh_register_name): Update.
7244 (sh_sh3_register_name): Update.
7245 (sh_sh3e_register_name): Update.
7246 (sh_sh_dsp_register_name): Update.
7247 (sh_sh3_dsp_register_name): Update.
7248 (sh_sh4_register_name): Update.
7249 (sh_sh64_register_name): Update.
7250 * s390-tdep.c (s390_register_name): Update.
7251 * rs6000-tdep.c (rs6000_register_name): Update.
7252 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7253 (ns32k_register_name_32382): Update.
7254 * d10v-tdep.c (d10v_ts2_register_name): Update.
7255 (d10v_ts3_register_name): Update.
7256 * xstormy16-tdep.c (xstormy16_register_name): Update.
7257 * vax-tdep.c (vax_register_name): Update.
7258 * v850-tdep.c (v850_register_name): Update.
7259 * m68hc11-tdep.c (m68hc11_register_name): Update.
7260 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7261 (am33_register_name): Update.
7262
7263 2002-06-17 Grace Sainsbury <graces@redhat.com>
7264
7265 * m68k-tdep.c: Reindented.
7266
7267 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7268
7269 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7270 list of predefined types.
7271
7272 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7273
7274 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7275 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7276 REGISTER_CONVERT_TO_RAW): Remove defines.
7277 (i386_register_virtual_type, i386_register_convertible,
7278 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7279 Remove prototypes.
7280 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7281 macros mentioned above.
7282
7283 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7284 (i386lynx_saved_pc_after_call): Remove prototype.
7285 * i386ly-tdep.c: Include "i386-tdep.h".
7286 (i386lynx_saved_pc_after_call): Make static. Use
7287 read_memory_nobpt instead of read_memory. Use
7288 read_memory_unsigned_integer instead of read_memory_integer.
7289 (i386lynx_init_abi): New function.
7290 (i386lynx_coff_osabi_sniffer): New function.
7291 (_initialize_i386bsd_tdep): New function.
7292
7293 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7294 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7295 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7296 (i386_fix_call_dummy): Remove prototype.
7297 * i386-tdep.c (i386_call_dummy_words): New variable.
7298 (i386_gdbarch_init): Adjust for removal of the
7299 macros mentioned above.
7300
7301 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7302
7303 * command.h (add_setshow_auto_boolean_cmd): Replace
7304 add_set_auto_boolean_cmd.
7305 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7306 add_set_auto_boolean_cmd.
7307 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7308 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7309 mask-address'' command.
7310 (show_mask_address): Add cmd parameter.
7311 * remote.c (add_packet_config_cmd): Update. Change type of
7312 set_func and show_func to cmd_sfunc_ftype.
7313 (_initialize_remote): Update `set remote Z-packet'
7314 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7315 (show_remote_protocol_e_packet_cmd): Ditto.
7316 (show_remote_protocol_E_packet_cmd): Ditto.
7317 (show_remote_protocol_P_packet_cmd): Ditto.
7318 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7319 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7320 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7321 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7322 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7323 (show_remote_protocol_Z_packet_cmd): Ditto.
7324 (show_remote_protocol_binary_download_cmd): Ditto.
7325 (show_remote_cmd): Pass NULL to all of above.
7326
7327 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7328
7329 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7330 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7331 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7332 POP_FRAME): Remove defines.
7333 (i386_push_arguments, i386_store_struct_return,
7334 i386_extract_return_value, i386_store_return_value,
7335 i386_extract_struct_value_address, i386_push_dummy_frame,
7336 i386_pop_frame): Renove prototypes.
7337 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7338 macros mentioned above.
7339
7340 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7341
7342 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7343 add_set_boolean_cmd.
7344 (add_setshow_cmd): New function.
7345 * command.h (add_setshow_boolean_cmd): Replace
7346 add_set_boolean_cmd.
7347 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7348 and ``set rdiromatzero''.
7349 * maint.c (_initialize_maint_cmds): Update commented out code.
7350 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7351 * target.c (initialize_targets): Update `set
7352 trust-readonly-sections'.
7353 * remote.c (_initialize_remote): Update `set remotebreak'.
7354
7355 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7356
7357 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7358 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7359 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7360 fit into multi-arch framework.
7361 (i386_breakpoint_from_pc): New function.
7362 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7363 above.
7364
7365 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7366 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7367 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7368 (i386_frameless_function_invocation, i386_frame_num_args,
7369 i386_frame_init_saved_regs): Remove prototypes.
7370 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7371 macros mentioned above.
7372
7373 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7374
7375 * cli/cli-decode.c (set_cmd_cfunc): Update.
7376 (set_cmd_sfunc): Update.
7377 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7378 (set_cmd_sfunc, set_cmd_cfunc): Update.
7379 * cli/cli-decode.h: Update.
7380
7381 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7382
7383 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7384 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7385
7386 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7387
7388 * defs.h (auto_boolean): Declare enum.
7389 * command.h (cmd_auto_boolean): Delete enum.
7390 * mips-tdep.c (mask_address_var): Update.
7391 (mips_mask_address_p): Update.
7392 (show_mask_address): Update.
7393 * remote.c (struct packet_config): Update.
7394 (update_packet_config): Update.
7395 (show_packet_config_cmd): Update.
7396 (packet_ok): Update.
7397 (add_packet_config_cmd): Update.
7398 (_initialize_remote):
7399 * command.h: Update.
7400 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7401 (do_setshow_command): Update.
7402 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7403 * cli/cli-decode.h: Update.
7404
7405 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7406
7407 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7408 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7409 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7410 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7411 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7412 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7413
7414 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7415 list of DJGPP COFF targets.
7416
7417 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7418 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7419 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7420 (FP0_REGNUM): Remove define.
7421 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7422 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7423 (i386_register_virtual_size): Remove protoype.
7424 * i386-tdep.c (i386_register_virtual_size): Removed.
7425 (i386_extract_return_value, i386_store_return_value): Use
7426 FP0_REGNUM instead of NUM_FREGS to determine whether the
7427 floating-point registers are available.
7428 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7429 Adjust for removal of macros mentioned above.
7430
7431 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7432
7433 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7434 comments.
7435 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7436 Remove prototypes.
7437 (supply_gregset, fill_gregset): Remove use of register keyword and
7438 remove declaration for regmap. Use I386_NUM_GREGS instead of
7439 NUM_REGS and NUM_FREGS.
7440 (FPREGSET_FSAVE_OFFSET): Remove.
7441 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7442 NUM_FREGS to determine whether the floating-point registers are
7443 available.
7444
7445 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7446 gnu_store_registers): Replace usage of NUM_GREGS with
7447 I386_NUM_GREGS.
7448
7449 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7450 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7451 usage of NUM_GREGS with I386_NUM_GREGS.
7452
7453 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7454
7455 * i386bsd-nat.c: Include "i386-tdep.h".
7456 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7457 I386_NUM_GREGS.
7458
7459 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7460 and associated comment. They no longer make any sense, since we
7461 don't use this file anymore on Linux.
7462
7463 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7464 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7465 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7466 elements in these arrays.
7467 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7468 MAX_NUM_REGS.
7469
7470 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7471
7472 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7473 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7474
7475 2002-06-14 Andrew Cagney <cagney@redhat.com>
7476
7477 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7478 EXTRACT_RETURN_VALUE.
7479 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7480 EXTRACT_STRUCT_VALUE_ADDRESS.
7481 * gdbarch.h, gdbarch.c: Regenerate.
7482
7483 * values.c (value_being_returned): Handle
7484 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7485 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7486
7487 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7488 * arm-tdep.c (arm_gdbarch_init): Update.
7489 * avr-tdep.c (avr_gdbarch_init): Update.
7490 * cris-tdep.c (cris_gdbarch_init): Update.
7491 * d10v-tdep.c (d10v_gdbarch_init): Update.
7492 * ia64-tdep.c (ia64_gdbarch_init): Update.
7493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7494 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7495 * s390-tdep.c (s390_gdbarch_init): Update.
7496 * sh-tdep.c (sh_gdbarch_init): Update.
7497 * s390-tdep.c (s390_gdbarch_init): Update.
7498 * sparc-tdep.c (sparc_gdbarch_init): Update.
7499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7500 * v850-tdep.c (v850_gdbarch_init): Update.
7501 * vax-tdep.c (vax_gdbarch_init): Update.
7502 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7504
7505 * config/arc/tm-arc.h: Update.
7506 * config/d30v/tm-d30v.h: Update.
7507 * config/fr30/tm-fr30.h: Update.
7508 * config/h8300/tm-h8300.h: Update.
7509 * config/h8500/tm-h8500.h: Update.
7510 * config/i386/tm-i386.h: Update.
7511 * config/i386/tm-ptx.h: Update.
7512 * config/i386/tm-symmetry.h: Update.
7513 * config/i960/tm-i960.h: Update.
7514 * config/m32r/tm-m32r.h: Update.
7515 * config/m68k/tm-delta68.h: Update.
7516 * config/m68k/tm-linux.h: Update.
7517 * config/m68k/tm-m68k.h: Update.
7518 * config/m88k/tm-m88k.h: Update.
7519 * config/mcore/tm-mcore.h: Update.
7520 * config/mips/tm-mips.h: Update.
7521 * config/mn10200/tm-mn10200.h: Update.
7522 * config/pa/tm-hppa.h: Update.
7523 * config/pa/tm-hppa64.h: Update.
7524 * config/sparc/tm-sp64.h: Update.
7525 * config/sparc/tm-sparc.h: Update.
7526 * config/sparc/tm-sparclet.h: Update.
7527 * config/z8k/tm-z8k.h: Update.
7528
7529 2002-06-14 Andrew Cagney <cagney@redhat.com>
7530
7531 * Makefile.in (i386_linux_tdep_h): Define.
7532 (i386_tdep_h, i387_tdep_h): Define.
7533 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7534 $(i386_tdep_h) and $(i387_tdep_h).
7535 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7536
7537 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7538
7539 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7540 Already covered by the default.
7541
7542 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7543 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7544 (i386_gdbarch_init): Initialize long_double_format and long_double
7545 bit.
7546
7547 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7548 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7549 Move these to ...
7550 * config/i386/i386sol2.mh: ... here.
7551 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7552 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7553 (SIGCONTEXT_PC_OFFSET): Remove define.
7554 (IN_SIGTRAMP): Remove define.
7555 * i386-sol2-tdep.c: New file.
7556
7557 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7558 * config/i386/tm-i386nw.h: Removed.
7559
7560 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7561 USE_STRUCT_CONVENTION): Remove defines.
7562 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7563 (get_longjmp_target): Remove prototype.
7564 (IN_SIGTRAMP): Remove define.
7565 (i386bsd_in_sigtramp): Remove prototype.
7566 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7567 function. Update comment accordingly
7568 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7569 (FRAME_SAVED_PC): Remove define.
7570 (i386bsd_frame_saved_pc): Remove prototype.
7571 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7572 GET_LONGJMP_TARGET): Remove defines.
7573 (get_longjmp_target): Remove prototype.
7574 (IN_SIGTRAMP): Remove define.
7575 (i386bsd_in_sigtramp): Remove prototype.
7576 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7577 function. Update comment accordingly
7578 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7579 (FRAME_SAVED_PC): Remove define.
7580 (i386bsd_frame_saved_pc): Remove prototype.
7581 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7582 Remove prototype.
7583 (USE_STRUCT_CONVENTION): Remove prototype.
7584 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7585 declaration.
7586 (_initialize_i386bsd_nat): Revise logic to determine some
7587 constants at compile time when compiling a native GDB. Warn if
7588 things don't match up with what we expect.
7589 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7590 Remove variables.
7591 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7592 to use date stored in `struct gdbarch_tdep'.
7593 (i386bsd_sigcontext_offset): Remove varaible.
7594 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7595 stored in `struct gdbarch_tdep'.
7596 (i386bsd_frame_saved_pc): Make static.
7597 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7598 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7599 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7600 i386fbsd4_sc_pc_offset): New variables.
7601 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7602 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7603 functions.
7604 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7605 functions.
7606 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7607 Modify the value of i386fbsd_sigtramp_start and
7608 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7609 i386fbsd_sigtramp_end.
7610 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7611 function.
7612
7613 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7614 define to i386-linux-tdep.h.
7615 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7616 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7617 defines.
7618 (i386_linux_register_name, i386_linux_register_byte,
7619 i386_linux_register_raw_size): Remove prototypes.
7620 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7621 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7622 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7623 TARGET_WRITE_PC): Remove defines.
7624 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7625 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7626 i386_linux_write_pc): Remove prototypes.
7627 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7628 (get_longjmp_target): Remove prototype.
7629 * i386-linux-tdep.h: New file.
7630 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7631 * i386-linux-tdep.c: Include "i386-tdep.h" and
7632 "i386-linux-tdep.h".
7633 (i386_linux_register_name, i386_linux_register_byte,
7634 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7635 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7636 Make static.
7637 (i386_linux_init_abi): New function.
7638 (_initialize_i386_linux_tdep): New function.
7639
7640 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7641 (i386_saved_pc_after_call): Remove prototype.
7642 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7643 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7644 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7645 (i386_register_name, i386_stab_reg_to_regnum,
7646 i386_dwarf_reg_to_regnum): Remove prototypes.
7647 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7648 SIZEOF_SSE_REGS): Remove defines.
7649 (REGISTER_BYTES): Remove define.
7650 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7651 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7652 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7653 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7654 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7655 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7656 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7657 (get_longjmp_target): Remove prototype.
7658 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7659 (sigtramp_saved_pc): Remove define.
7660 (i386v4_sigtramp_saved_pc): Remove prototype.
7661 * config/i386/tm-go32.h (FRAME_CHAIN,
7662 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7663 (i386go32_frame_saved_pc): Remove prototype.
7664 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7665 (get_longjmp_target): Remove prototype.
7666 * i386-tdep.h: Include "osabi.h".
7667 (enum i386_abi): Removed.
7668 (enum struct_return): New enum.
7669 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7670 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7671 sc_pc_offset members.
7672 (i386_gdbarch_register_os_abi): Remove prototype.
7673 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7674 I386_SSE_NUM_REGS): New defines.
7675 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7676 I386_SSE_SIZEOF_REGS): New defines.
7677 (i386_register_name, i386_register_byte, i386_register_raw_size):
7678 New prototypes.
7679 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7680 (i386bsd_sigtramp_saved_pc): New prototype.
7681 * i386-tdep.c: Don't include "elf-bfd.h".
7682 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7683 i386_frame_chain, i386_saved_pc_after_call): Make static.
7684 (i386_frame_saved_pc): Rewrite to call architecture dependent
7685 function to deal with signal handlers. Make static.
7686 (i386go32_frame_saved_pc): Removed.
7687 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7688 Removed.
7689 (i386_get_longjmp_target): New function.
7690 (default_struct_convention, pcc_struct_convention,
7691 reg_struct_convention, valid_conventions, struct_convention): New
7692 variables.
7693 (i386_use_struct_convention): New function.
7694 (i386v4_sigtramp_saved_pc): Renamed to
7695 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7696 (i386_pc_in_sigtramp): New function.
7697 (i386_abi_names): Removed.
7698 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7699 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7700 Removed.
7701 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7702 i386_gdbarch_register_os_abi): Removed.
7703 (struct i386_abi_handler): Removed.
7704 (i386_abi_handler_list): Removed.
7705 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7706 functions.
7707 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7708 i386_nw_init_abi): New functions.
7709 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7710 Use set_gdbarch_xxx() calls instead of relying on macros for a
7711 number of calls.
7712 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7713 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7714 Register the various architecture variants defined in this file.
7715
7716 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7717
7718 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7719 (struct main_type): Remove arg_types member. Update comments for
7720 struct field.
7721 (TYPE_ARG_TYPES): Remove.
7722 (TYPE_FN_FIELD_ARGS): Update.
7723 (smash_to_method_type): Update prototype.
7724
7725 * c-typeprint.c (cp_type_print_method_args): Take method type
7726 instead of argument list. Use new argument layout. Simplify.
7727 (c_type_print_args): Use new argument layout. Simplify.
7728 (c_type_print_base): Update call to cp_type_print_method_args.
7729 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7730 argument; use die->type instead. Update call to
7731 smash_to_method_type.
7732 (read_structure_scope): Update call to dwarf2_add_member_fn.
7733 * gdbtypes.c (allocate_stub_method): Update comment.
7734 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7735 Use new argument layout.
7736 (check_stub_method): Use new argument layout. Don't count
7737 void as an argument.
7738 (print_arg_types): Update comments. Use new argument layout.
7739 (recursive_dump_type): Don't print arg_types member.
7740 * hpread.c (hpread_read_struct_type): Use new argument layout.
7741 (fixup_class_method_type): Likewise.
7742 (hpread_type_lookup): Likewise.
7743 * stabsread.c (read_type): Update calls to read_args and
7744 smash_to_method_type.
7745 (read_args): Use new argument layout. Simplify.
7746 * valops.c (typecmp): Use new argument layout. Update parameters
7747 and comments. Simplify.
7748 (hand_function_call): Use new argument layout.
7749 (search_struct_method): Update call to typecmp.
7750 (find_overload_match): Use new argument layout.
7751
7752 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7753
7754 * NEWS: Mention multithreaded debug support for gdbserver.
7755
7756 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7757
7758 * MAINTAINERS: Mention NEWS.
7759
7760 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7761
7762 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7763 (struct mips_objfile_private, compare_pdr_entries): New.
7764 (non_heuristic_proc_desc): Read the ".pdr" section if it
7765 is present.
7766
7767 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7768
7769 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7770 (arm_debug): New static variable.
7771 (_initialize_arm_tdep): Add ``set debug arm'' command.
7772
7773 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7774
7775 * Makefile.in (sim_arm_h): Define.
7776 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7777 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7778 (arm_register_sim_regno): New function, map an internal REGNUM
7779 onto a simulator register number.
7780 (arm_gdbarch_init): Set register_sim_regno.
7781
7782 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7783
7784 * MAINTAINERS: Add self.
7785
7786 2002-06-11 Jim Blandy <jimb@redhat.com>
7787
7788 * source.c (source_info): Mention whether the symtab has
7789 information about preprocessor macros.
7790
7791 Call the command `info macro', not `show macro'.
7792 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7793 Fix error message.
7794 (_initialize_macrocmd): Register `info_macro_command' in
7795 `infolist', not `showlist'.
7796
7797 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7798
7799 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7800 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7801 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7802 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7803 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7804 unconditionally.
7805 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7806 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7807 (_initialize_mips_tdep): Remove dead code.
7808 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7809 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7810 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7811 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7812 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7813 MIPS_LAST_FP_ARG_REGNUM): Remove.
7814
7815 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7816
7817 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7818 (unwind_tmp_obstack_free, parse_frame_info)
7819 (update_context, cfi_read_fp, cfi_write_fp)
7820 (cfi_frame_chain, cfi_init_extra_frame_info)
7821 (cfi_virtual_frame_pointer): Use the above function.
7822 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7823
7824 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7825
7826 * v850-tdep.c (v850_type_is_scalar): New function.
7827 (v850_use_struct_convention): Match current gcc implementation
7828 as close as possible.
7829 (v850_push_arguments): Fix stack_offset handling. Don't write
7830 struct_addr into register. This is done by v850_store_struct_return.
7831 (v850_extract_return_value): Care for structs.
7832 (v850_store_return_value): Ditto.
7833 (v850_store_struct_return): Actually write address.
7834
7835 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7836
7837 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7838 without debug information too.
7839
7840 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7841
7842 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7843 Make multi-arch pure.
7844 * gdbarch.h, gdbarch.c: Re-generate.
7845 * arm-tdep.c (arm_print_float_info): Update.
7846 * arch-utils.h (default_print_float_info): Update.
7847 * arch-utils.c (default_print_float_info): Update.
7848 * infcmd.c (float_info): Update call.
7849
7850 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7851
7852 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7853 the front of the initialize list.
7854
7855 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7856
7857 * infrun.c (struct inferior_status): Replace fields
7858 selected_frame_address and selected_level with field
7859 selected_frame_id.
7860 (save_inferior_status): Update. Use get_frame_id.
7861 (struct restore_selected_frame_args): Delete.
7862 (restore_selected_frame): Update. Use frame_find_by_id.
7863 (restore_inferior_status): Update.
7864
7865 * breakpoint.h (struct breakpoint): Change type of
7866 watchpoint_frame to frame_id.
7867 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7868 call to get_current_frame.
7869 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7870 get_current_frame.
7871 (watchpoint_check): Use frame_find_by_id.
7872
7873 * frame.h (record_selected_frame): Delete declaration.
7874 * stack.c (record_selected_frame): Delete function.
7875
7876 * frame.h (struct frame_id): Define.
7877 (get_frame_id): Declare.
7878 (frame_find_by_id): Declare.
7879 * frame.c (frame_find_by_id): New function.
7880 (get_frame_id): New function.
7881
7882 2002-06-10 Andrey Volkov <avolkov@transas.com>
7883
7884 * ser-e7kpc.c: Fix duplicated define and call of
7885 _initialize_ser_e7000pc
7886
7887 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7888
7889 * signals/signals.c (target_signal_from_host): Fix #ifdef
7890 SIGRTMIN case.
7891 (do_target_signal_to_host): Likewise.
7892
7893 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7894
7895 * mips-tdep.c (mips_find_abi_section): New function.
7896 (mips_gdbarch_init): Call it.
7897
7898 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7899
7900 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7901 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7902 after Andrew's 2002-06-08 gdbarch change.
7903
7904 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7905
7906 * i386-linux-nat.c (suppy_gregset): Don't supply
7907 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7908 register cache.
7909 (fill_gregset): Don't fetch it under the same circumstances.
7910
7911 2002-06-09 Andrew Cagney <cagney@redhat.com>
7912
7913 * Makefile.in (callback_h): Define.
7914 (remote_sim_h): Update path to remote-sim.h.
7915 (remote-rdp.o): Add $(callback_h).
7916 (remote-sim.o): Use $(callback_h).
7917 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7918 * remote-rdp.c: Include "gdb/callback.h".
7919
7920 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7921
7922 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7923 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7924
7925 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7926
7927 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7928 * rdi-share/serpardr.c: Ditto.
7929 * rdi-share/unixcomm.c: Ditto.
7930 * rdi-share/serdrv.c: Ditto.
7931 * rdi-share/hostchan.h: Ditto.
7932 * rdi-share/hostchan.c: Ditto.
7933 * rdi-share/host.h: Ditto.
7934 * rdi-share/devsw.c: Ditto.
7935
7936 * objfiles.h: Change type of obj_private to void pointer.
7937 * pa64solib.c: Update copyright. Don't include "assert.h", use
7938 strcmp instead of STREQ, use LONGEST, do not use PTR
7939 * somsolib.c: Ditto.
7940
7941 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7942 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7943 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7944
7945 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7946
7947 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7948 (default_get_saved_register): Delete function.
7949 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7950 generic_unwind_get_saved_register.
7951 * gdbarch.h, gdbarch.c: Re-generate.
7952
7953 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7954
7955 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7956 generic_func_frame_chain_valid.
7957 * gdbarch.h, gdbarch.c: Re-generate.
7958 * blockframe.c (generic_func_frame_chain_valid): Only check
7959 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7960 passing FP to PC_IN_CALL_DUMMY.
7961 Fix PR gdb/360.
7962
7963 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7964
7965 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7966 (register_gdbarch_data): Initialize init_p.
7967 (gdbarch_data): Initialize data pointer using the init function.
7968 (init_gdbarch_data): Delete function.
7969 (gdbarch_update_p): Update.
7970 (initialize_non_multiarch): Update.
7971 (struct gdbarch): Add field initialized_p.
7972 * gdbarch.h, gdbarch.c: Re-generate.
7973
7974 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7975
7976 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7977 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7978 better do the things actually here.
7979 * x86-64-tdep.c (x86_64_register_name2nr): New.
7980 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7981 (x86_64_gdbarch_init): Respect the above change.
7982 * x86-64-tdep.h (x86_64_register_name2nr)
7983 (x86_64_register_nr2name): Add prototypes.
7984 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7985
7986 2002-06-06 Michael Snyder <msnyder@redhat.com>
7987
7988 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7989 Delete extra braces and re-indent.
7990 (d10v_store_return_value): Char return values
7991 must be shifted over by one byte in R0.
7992 (d10v_extract_return_value): Delete extra braces, re-indent.
7993
7994 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7995
7996 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7997 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7998 (d10v_integer_to_address): Rewrite.
7999 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8000 the d10v specific functions which take care of converting to the
8001 correct space.
8002
8003 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8004
8005 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8006 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8007
8008 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8009
8010 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8011 includes.
8012 * config/tm-linux.h: Ditto.
8013 * config/alpha/tm-alphalinux.h: Ditto.
8014 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8015 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8016 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8017 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8018 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8019 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8020 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8021 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8022 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8023 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8024 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8025 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8026 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8027 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8028 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8029 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8030 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8031 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8032 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8033 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8034 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8035 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8036 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8037 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8038 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8039 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8040 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8041 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8042 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8043 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8044 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8045 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8046 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8047 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8048 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8049 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8050 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8051
8052 2002-05-04 Aidan Skinner <aidan@velvet.net>
8053
8054 * ada-exp.tab.c: New file
8055 * ada-exp.y: New file
8056 * ada-lang.c: New file
8057 * ada-lang.h: New file
8058 * ada-lex.c: New file
8059 * ada-lex.l: New file
8060 * ada-tasks.c: New file
8061 * ada-typeprint.c: New file
8062 * ada-valprint.c: New file
8063
8064 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8065
8066 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8067 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8068
8069 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8070
8071 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8072 insetead of ppc-linux-tdep.o.
8073 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8074 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8075
8076 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8077
8078 2002-05-07 Christian Groessler <chris@groessler.org>
8079 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8080 bit register contents for little endian hosts.
8081
8082 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8083
8084 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8085 any maintainer.
8086
8087 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8088
8089 * gdbarch.h: Regenerate.
8090
8091 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8092
8093 * MAINTAINERS: Add everyone to write-after-approval list.
8094
8095 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8096
8097 * stack.c (frame_info): Use frame_register_unwind instead of
8098 saved_regs. Mention when the SP is on the stack or in a register.
8099
8100 * frame.h (frame_register_unwind_ftype): Define. Document.
8101 (struct frame_info): Add field register_unwind and
8102 register_unwind_cache.
8103 (frame_register_unwind): Declare.
8104 (generic_unwind_get_saved_register): Declare.
8105
8106 * frame.c (frame_register_unwind): New function.
8107 (generic_unwind_get_saved_register): New function.
8108
8109 * blockframe.c (generic_call_dummy_register_unwind): New function.
8110 (frame_saved_regs_register_unwind): New function.
8111 (set_unwind_by_pc): New function.
8112 (create_new_frame): New function.
8113 (get_prev_frame): New function.
8114
8115 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8116
8117 * a29k-share/: Delete directory.
8118 * remote-vx29k.c: Delete file.
8119
8120 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8121
8122 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8123 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8124
8125 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8126
8127 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8128 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8129 (sparc64nbsd-nat.o)
8130 (sparcnbsd-nat.o)
8131 (sparcnbsd-tdep.o): New dependency lists.
8132 * NEWS: Note new UltraSPARC NetBSD native configuration.
8133 * configure.host (sparc64-*-netbsd*): New host.
8134 * configure.tgt (sparc-*-netbsdelf*)
8135 (sparc-*-netbsd*): Set gdb_target to nbsd.
8136 (sparc64-*-netbsd*): New target.
8137 * sparc64nbsd-nat.c: New file.
8138 * sparcnbsd-nat.c: New file.
8139 * sparcnbsd-tdep.c: New file.
8140 * sparcnbsd-tdep.h: New file.
8141 * config/sparc/nbsd.mt: New file.
8142 * config/sparc/nbsd64.mh: New file.
8143 * config/sparc/nbsd64.mt: New file.
8144 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8145 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8146 (HOST_IPC): Remove.
8147 * config/sparc/nbsdaout.mt: Remove.
8148 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8149 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8150 (HOST_IPC): Remove.
8151 * config/sparc/nbsdelf.mt: Remove.
8152 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8153 sparc-nat.c compatiblity defines.
8154 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8155 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8156 * config/sparc/tm-nbsd64.h: New file.
8157 * config/sparc/tm-nbsdaout.h: Remove.
8158 * config/sparc/xm-nbsd.h: Remove.
8159
8160 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8161
8162 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8163 * sparc-tdep.c: Include osabi.h.
8164 (gdbarch_tdep): Add osabi member.
8165 (_initialize_sparc_tdep): Use gdbarch_register.
8166 (sparc_gdbarch_init): Use generic OS ABI framework.
8167 (sparc_dump_tdep): New function.
8168
8169 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8170
8171 * corefile.c (do_captured_read_memory_integer): Return non-zero
8172 result.
8173 (safe_read_memory_integer): Copy result of memory read when
8174 status is non-zero. Also, add comments.
8175
8176 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8177
8178 * Makefile.in (ppc_tdep_h): Define.
8179 (ppc-linux-nat.o)
8180 (ppc-linux-tdep.o)
8181 (rs6000-tdep.o): Use $(ppc_tdep_h).
8182 (ppc-sysv-tdep.o)
8183 (ppcnbsd-nat.o)
8184 (ppcnbsd-tdep.o): New dependency lists.
8185 * ppc-tdep.h: Use generic OS ABI framework.
8186 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8187 (ppc_linux_init_abi): New functions.
8188 (ppc_sysv_abi_broken_use_struct_convention)
8189 (ppc_sysv_abi_use_struct_convention)
8190 (ppc_sysv_abi_push_arguments): Move to...
8191 * ppc-sysv-tdep.c: ...here.
8192 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8193 * rs6000-tdep.c (process_note_abi_tag_sections)
8194 (get_elfosabi): Remove.
8195 (rs6000_gdbarch_init): Use generic OS ABI framework.
8196 (rs6000_dump_tdep): New function.
8197 (_initialize_rs6000_tdep): Use gdbarch_register.
8198 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8199 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8200 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8201 of ppc-linux-tdep.o.
8202 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8203 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8204 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8205 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8206 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8207 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8208
8209 2002-05-29 Jim Blandy <jimb@redhat.com>
8210
8211 * macroscope.c (default_macro_scope): Put `void' in empty argument
8212 list.
8213
8214 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8215
8216 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8217 * arch-utils.c: Include "sim-regno.h".
8218 * gdbarch.sh: Don't include "sim-regno.h".
8219 * gdbarch.h, gdbarch.c: Regenerate.
8220 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8221 here.
8222 * arch-utils.h (legacy_register_sim_regno): To here.
8223 * remote-sim.c (legacy_register_sim_regno): Move function from
8224 here.
8225 * arch-utils.c (legacy_register_sim_regno): To here.
8226
8227 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8228
8229 * sim-regno.h: New file.
8230 * Makefile.in (sim_regno_h): Define.
8231 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8232 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8233 (legacy_register_sim_regno): New function.
8234 (one2one_register_sim_regno): New function.
8235 (gdbsim_fetch_register): Rewrite.
8236 (gdbsim_store_register): Only store a register when
8237 REGISTER_SIM_REGNO is valid.
8238 * d10v-tdep.c: Include "sim-regno.h".
8239 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8240 (d10v_ts3_register_sim_regno): Ditto.
8241 * gdbarch.sh: Include "sim-regno.h".
8242 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8243 * gdbarch.h, gdbarch.c: Regenerate.
8244 * arch-utils.h (default_register_sim_regno): Delete declaration.
8245 * arch-utils.c (default_register_sim_regno): Delete function.
8246
8247 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8248
8249 * ppcnbsd-nat.c: Rewrite.
8250 * ppcnbsd-tdep.c: New file.
8251 * ppcnbsd-tdep.h: New file.
8252 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8253 solib.o, and solib-svr4.o.
8254 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8255 nbsd-tdep.o, and corelow.o.
8256
8257 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8258
8259 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8260 `tr' and `sed'. Mention that `broken' targets are not expected to
8261 build.
8262
8263 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8264
8265 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8266 Let PC point right after the prologue before looking up symbols.
8267
8268 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8269
8270 * i386-tdep.c (i386_register_virtual_type): Return
8271 builtin_type_vec128i for SSE registers.
8272
8273 * gdbtypes.h (builtin_type_vec128i): Declare.
8274
8275 * gdbtypes.c (build_builtin_type_vec128i): New function.
8276 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8277 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8278 (build_gdbtypes): Initialize new builtin vector types.
8279 (_initialize_gdbtypes): Register new vector types with gdbarch.
8280
8281 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8282
8283 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8284 since it has been multi-arch'd.
8285 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8286 Move Alpha and VAX multi-arch news entries to same section
8287 as other multi-arch news.
8288
8289 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8290
8291 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8292 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8293 static. Rename some register numbers to put them in ns32k-tdep
8294 private namespace.
8295 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8296 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8297 functions.
8298 (_initialize_ns32k_tdep): Use gdbarch_register.
8299 * ns32k-tdep.h: New file.
8300 * ns32knbsd-tdep.c: New file.
8301 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8302 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8303 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8304 REGISTER_BYTES, REGISTER_BYTE): Remove.
8305 * config/ns32k/tm-ns32k.h: New file.
8306 * config/ns32k/tm-umax.h: Remove.
8307
8308 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8309
8310 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8311 ns32k_store_struct_return, ns32k_extract_return_value,
8312 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8313 functions.
8314 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8315 ns32k_saved_pc_after_call.
8316 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8317 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8318 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8319 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8320 ns32k_extract_struct_value_address.
8321
8322 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8323
8324 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8325 ns32k_fix_call_dummy): New.
8326 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8327 ns32k_call_dummy_words.
8328 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8329 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8330 CALL_DUMMY_NARGS): Remove.
8331 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8332
8333 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8334
8335 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8336 ns32k_frame_saved_pc, ns32k_frame_args_address,
8337 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8338 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8339 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8340 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8341 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8342 (BREAKPOINT): Remove..
8343 (FRAME_CHAIN): Define as ns32k_frame_chain.
8344 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8345 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8346 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8347 (FRAME_FIND_SAVED_REGS): Remove.
8348 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8349 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8350 (POP_FRAME): Define as ns32k_pop_frame.
8351
8352 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8353
8354 * ns32k-tdep.c (ns32k_register_byte_32082,
8355 ns32k_register_byte_32382, ns32k_register_raw_size,
8356 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8357 functions.
8358 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8359 ns32k_register_byte_32382.
8360 * config/ns32k/tm-umax.h: Update copyright years.
8361 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8362 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8363 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8364 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8365 (ns32k_get_enter_addr): Fix prototype.
8366
8367 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8368
8369 * ns32k-tdep.c: Update copyright years.
8370 (ns32k_register_name_32082): New function.
8371 (ns32k_register_name_32382): Ditto.
8372 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8373 (REGISTER_NAME): Define as ns32k_register_name_32382.
8374 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8375 (REGISTER_NAME): Define as ns32k_register_name_32082.
8376
8377 2002-05-24 Jim Blandy <jimb@redhat.com>
8378
8379 * dwarf2read.c (free_line_header): Use xfree, not free.
8380
8381 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8382
8383 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8384 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8385
8386 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8387
8388 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8389
8390 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8391
8392 From Ross Alexander at NEC Europe:
8393 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8394
8395 2002-05-23 Michael Snyder <msnyder@redhat.com>
8396
8397 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8398 for input, rather than parse_and_eval_address.
8399
8400 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8401
8402 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8403 * Makefile.in (sim_d10v_h): Update definition.
8404
8405 2002-05-24 Andrew Cagney <cagney@redhat.com>
8406
8407 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8408 change `2002-05-22 Michael Snyder' below.
8409 (d10v_push_arguments): Ditto.
8410 (d10v_extract_return_value): Ditto.
8411
8412 2002-05-23 Jim Blandy <jimb@redhat.com>
8413
8414 * macrotab.c (check_for_redefinition): Don't complain if the new
8415 definition is the same as the previous one. Take more arguments
8416 to allow the comparison.
8417 (macro_define_object, macro_define_function): Pass more arguments
8418 to check_for_redefinition.
8419
8420 2002-05-22 Michael Snyder <msnyder@redhat.com>
8421
8422 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8423 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8424 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8425 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8426 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8427 Add a temp variable to save a call (and a memory read).
8428 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8429 if possible (so that PC_IN_CALL_DUMMY will work).
8430
8431 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8432
8433 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8434
8435 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8436
8437 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8438 fde->cie_ptr.
8439 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8440 (dwarf2_build_frame_info): Add offset to fde->initial_location
8441 so that frames of shared libraries are mapped correctly.
8442 (execute_stack_op): Change type of 'result' from ULONGEST to
8443 CORE_ADDR.
8444
8445 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8446
8447 * config/alpha/tm-nbsd.h: Include solib.h.
8448
8449 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8450
8451 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8452 assumptions about the host's byte order.
8453
8454 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8455
8456 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8457 to dependency list.
8458 * alphanbsd-tdep.c: Include solib-svr4.h.
8459 * shnbsd-tdep.c: Ditto.
8460
8461 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8462
8463 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8464 nbsd-tdep.h to dependency list.
8465 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8466 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8467 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8468 nbsdaout.mh and nbsdelf.mh consistently.
8469 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8470 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8471 nbsdaout.mt and nbsdelf.mh consistently.
8472 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8473 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8474 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8475 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8476 a.out shared library stuff from here...
8477 * config/nm-nbsdaout.h: ...to here.
8478 * config/tm-nbsd.h: Remove.
8479 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8480 * config/arm/nbsd.mh: Remove.
8481 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8482 nbsd-tdep.o.
8483 * config/arm/nbsdaout.mh: New file.
8484 * config/arm/nbsdelf.mh: New file.
8485 * config/arm/nm-nbsdaout.h: New file.
8486 * config/i386/nbsd.mh: Remove.
8487 * config/i386/nbsd.mt: Remove.
8488 * config/i386/nbsdaout.mh: New file.
8489 * config/i386/nbsdaout.mt: New file.
8490 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8491 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8492 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8493 i386_register_u_addr): Remove.
8494 * config/i386/nm-nbsdaout.h: New file.
8495 * config/i386/nm-nbsdelf.h: Remove.
8496 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8497 (USE_STRUCT_CONVENTION): Remove.
8498 * config/i386/tm-nbsdaout.h: New file.
8499 * config/i386/tm-nbsdelf.h: Remove.
8500 * config/m68k/nbsd.mh: Remove.
8501 * config/m68k/nbsd.mt: Remove.
8502 * config/m68k/nbsdaout.mh: New file.
8503 * config/m68k/nbsdaout.mt: New file.
8504 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8505 * config/m68k/nm-nbsdaout.h: New file.
8506 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8507 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8508 * config/ns32k/nbsd.mh: Remove.
8509 * config/ns32k/nbsd.mt: Remove.
8510 * config/ns32k/nbsdaout.mh: New file.
8511 * config/ns32k/nbsdaout.mt: New file.
8512 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8513 * config/ns32k/nm-nbsdaout.h: New file.
8514 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8515 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8516 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8517 (SVR4_SHARED_LIBS): Remove.
8518 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8519 * config/sparc/nbsd.mh: Remove.
8520 * config/sparc/nbsd.mt: Remove.
8521 * config/sparc/nbsdaout.mh: New file.
8522 * config/sparc/nbsdaout.mt: New file.
8523 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8524 * config/sparc/nbsdelf.mt: New file.
8525 * config/sparc/nm-nbsdaout.h: New file.
8526 * config/sparc/nm-nbsdelf.h: Remove.
8527 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8528 * config/sparc/tm-nbsdaout.h: New file.
8529
8530 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8531
8532 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8533 mipsnbsd-tdep.c
8534 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8535
8536 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8537
8538 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8539 shnbsd-nat.c.
8540 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8541
8542 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8543
8544 * NEWS: Note new MIPS NetBSD native configuration.
8545 * configure.host (mips*-*-netbsd*): New host.
8546 * configure.tgt (mips*-*-netbsd*): New target.
8547 * mipsnbsd-nat.c: New file.
8548 * mipsnbsd-tdep.c: New file.
8549 * mipsnbsd-tdep.h: New file.
8550 * config/mips/nbsd.mh: New file.
8551 * config/mips/nbsd.mt: New file.
8552 * config/mips/nm-nbsd.h: New file.
8553 * config/mips/tm-nbsd.h: New file.
8554
8555 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8556
8557 * Makefile.in (SFILES): Add osabi.c.
8558 (COMMON_OBS): Add osabi.o.
8559 (osabi.o): New dependency list.
8560 * osabi.c: New file.
8561 * osabi.h: New file.
8562 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8563
8564 * Makefile.in (alpha_tdep_h): Define and use instead of
8565 alpha-tdep.h.
8566 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8567 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8568 Remove.
8569 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8570 * alpha-tdep.h: Include osabi.h.
8571 (alpha_abi): Remove.
8572 (gdbarch_tdep): Use generic OS ABI framework.
8573 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8574 gdbarch_register_osabi.
8575 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8576 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8577 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8578
8579 * Makefile.in (sh_tdep_h): Add osabi.h.
8580 * sh-tdep.h (sh_osabi): Remove.
8581 (gdbarch_tdep): Use generic OS ABI framework.
8582 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8583 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8584 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8585 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8586
8587 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8588 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8589 gdbarch_register_osabi.
8590 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8591 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8592 (get_elfosabi): Rename to...
8593 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8594 ABI framework support routines.
8595 (arm_gdbarch_init): Use generic OS ABI framework.
8596 (arm_dump_tdep): Likewise.
8597 (_initialize_arm_tdep): Likewise.
8598 * arm-tdep.h: Include osabi.h.
8599 (arm_abi): Remove.
8600 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8601 osabi member.
8602 (arm_gdbarch_register_os_abi): Remove prototype.
8603 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8604 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8605
8606 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8607 * mips-tdep.c: Include osabi.h.
8608 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8609 OS ABI framework.
8610
8611 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8612
8613 * h8300-tdep.c: Fix formatting.
8614
8615 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8616
8617 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8618 printing vector registers.
8619
8620 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8621
8622 From Fernando Nasser:
8623 * remote.c (remote_async_open_1): Re-throw the exception when the
8624 connection fails.
8625 (remote_cisco_open): Ditto.
8626 (remote_open_1): Ditto.
8627
8628 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8629
8630 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8631 (remote_start_remote): Add uiout parameter. Pass through to
8632 remote_start_remote_dummy.
8633 (remote_open_1): Use catch_exception instead of catch_errors.
8634 (remote_async_open_1): Ditto.
8635 (remote_cisco_open): Ditto.
8636
8637 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8638
8639 * remote.c (remote_start_remote): Replace PTR with void pointer.
8640 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8641 static.
8642
8643 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8644
8645 * gdb_indent.sh: Allow the script to be run in the sim directory.
8646
8647 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8648
8649 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8650 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8651
8652 * corelow.c (core_open): Only call set_gdbarch_from_file if
8653 exec_bfd is NULL.
8654
8655 2002-05-17 Andrey Volkov <avolkov@transas.com>
8656
8657 * h8300-tdep.c: Add support of EXR register
8658 * config/h8300/tm-h8300.h: Ditto.
8659
8660 2002-05-17 Andrey Volkov <avolkov@transas.com>
8661
8662 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8663
8664 2002-05-17 Andrey Volkov <avolkov@transas.com>
8665
8666 * h8300-tdep.c: Change literal regnums to REGNO.
8667
8668 2002-05-17 Jim Blandy <jimb@redhat.com>
8669
8670 * NEWS: Note addition of macro support.
8671
8672 Expand preprocessor macros in C expressions.
8673 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8674 (scan_macro_expansion, scanning_macro_expansion,
8675 finished_macro_expansion): New function declarations.
8676 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8677 variable declarations.
8678 * parser-defs.h (expression_context_pc): New declaration.
8679 * parse.c (expression_context_pc): New variable.
8680 (parse_exp_1): Set expression_context_pc, as well as
8681 expression_context_block.
8682 * c-exp.y (yylex): If we're not already reading the result of a
8683 macro expansion, try to macro-expand the next token. When we're
8684 done scanning a macro expansion, switch back to the mainline text.
8685 Commas and `if's in a macro's expansion don't terminate the input.
8686 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8687 (macro_original_text, macro_expanded_text,
8688 expression_macro_lookup_func, expression_macro_lookup_baton): New
8689 variables.
8690 (scan_macro_expansion, scanning_macro_expansion,
8691 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8692 c_preprocess_and_parse): New functions.
8693 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8694 c_preprocess_and_parse, instead of c_parse.
8695 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8696 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8697
8698 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8699
8700 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8701 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8702 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8703
8704 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8705
8706 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8707
8708 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8709
8710 * Makefile.in (sh_tdep_h): Define and use.
8711 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8712 register enum): Move to...
8713 * * sh-tdep.h: ...here.
8714 * sh-tdep.c: Include sh-tdep.h.
8715 * sh3-rom.c: Likewise.
8716 * shnbsd-tdep.c: Likewise.
8717
8718 2002-05-16 Michael Snyder <msnyder@redhat.com>
8719
8720 * arm-tdep.c: Spelling fix in comment.
8721
8722 2002-05-16 Jim Blandy <jimb@redhat.com>
8723
8724 Add commands for manually expanding macros and showing their
8725 definitions.
8726 * macrocmd.c, macroscope.c, macroscope.h: New files.
8727 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8728 (macroscope_h): New variable.
8729 (HFILES_NO_SRCDIR): Add macroscope.h.
8730 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8731 (macroscope.o, macrocmd.o): New rules.
8732
8733 Teach the Dwarf 2 reader to read macro information.
8734 * dwarf2read.c: #include "macrotab.h".
8735 (dwarf_macinfo_buffer): New variable.
8736 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8737 dwarf_macinfo_size.
8738 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8739 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8740 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8741 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8742 dwarf2_macro_spaces_in_definition): New complaints.
8743 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8744 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8745 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8746 the partial symbol table.
8747 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8748 from what's recorded in the partial symbol table.
8749 (read_file_scope): If the compilation unit has a
8750 `DW_AT_macro_info' attribute, read its macro information.
8751 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8752
8753 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8754
8755 Fix PR gdb/546
8756 * ser-tcp.c: Don't include <netinet/udp.h>.
8757
8758 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8759
8760 * MAINTAINERS: Update my email address.
8761
8762 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8763
8764 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8765 include file of the same name.
8766
8767 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8768
8769 * configure.tgt: Mark v850 as multi-arched.
8770 * config/v850/tm-v850.h: Remove file.
8771 * config/v850/v850.mt: Eliminate TM_FILE.
8772
8773 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8774
8775 * v850-tdep.c: Full multi-arch.
8776 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8777 Define GDB_MULTI_ARCH to 2.
8778
8779 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8780
8781 * p-exp.y (current_type): New static variable.
8782 Carries the type of the expression at the position that is parsed.
8783 (push_current_type, pop_current_type): Two new functions. Used
8784 to store/restore current_type in expression on specific tokens.
8785 (search_field): New static variable. Set to one after parsing a point
8786 as at that point only a FIELDNAME token should be searched.
8787 (FIELDNAME): New token. After a point only a token belonging to
8788 current_type type definition is allowed.
8789 (all over token rules): reset and change current_type according
8790 to rules.
8791 (exp '[' rule): insert implicit array index field if
8792 exp is a pascal string type.
8793
8794 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8795
8796 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8797 frame info. Use frame_info's saved_regs instead of matching member
8798 in extra_frame_info throughout.
8799 (v850_frame_init_saved_regs): New function.
8800 (v850_init_extra_frame_info): Move most functionality into
8801 v850_frame_init_saved_regs().
8802 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8803 (v850_frame_find_saved_regs): Remove declaration.
8804 (FRAME_FIND_SAVED_REGS): Remove definition.
8805 (v850_frame_init_saved_regs): Add declaration.
8806 (FRAME_INIT_SAVED_REGS): Add definition.
8807
8808 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8809
8810 * v850-tdep.c: Begin multi-arch'ing v850.
8811 (v850_target_architecture_hook): Remove function.
8812 (v850_gdbarch_init): New function. Add code previously in
8813 v850_target_architecture_hook().
8814 (_initialize_v850_tdep): Don't set target_architecture_hook.
8815 Call register_gdbarch_init() instead.
8816
8817 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8818
8819 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8820 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8821 (fixup_class_method_type): Likewise.
8822
8823 2002-05-15 Jim Blandy <jimb@redhat.com>
8824
8825 Add macro structures to GDB's symbol tables. Nobody puts anything
8826 in them yet.
8827 * symtab.h (struct symtab): New member: `macro_table'.
8828 * buildsym.h (pending_macros): New global variable.
8829 * buildsym.c: #include "macrotab.h".
8830 (buildsym_init): Initialize `pending_macros'.
8831 (end_symtab): If we found macro information while reading a CU's
8832 debugging info, do build a symtab structure for it. Make the
8833 symtab point to the macro information, and clear the
8834 `pending_macros' pointer which held it while we were reading the
8835 debug info.
8836 (really_free_pendings): Free any pending macro table.
8837 * objfiles.h (struct objfile): New member: `macro_cache'.
8838 * objfiles.c (allocate_objfile): Set allocate and free functions
8839 for the macro cache's objstack.
8840 (free_objfile): Empty the macro cache's obstack.
8841 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8842 set new allocate and free functions for it.
8843 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8844 free functions for the macro cache's objstack. (Why is this
8845 function building its own objfile?)
8846 * symmisc.c (print_objfile_statistics): Print statistics on the
8847 macro bcache.
8848 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8849
8850 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8851
8852 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8853 (REGISTER_U_ADDR): Delete definition.
8854 (arm_register_u_addr): Delete declaration.
8855
8856 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8857
8858 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8859 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8860
8861 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8862
8863 * regcache.c (register_valid): Revise comments refering to "Not
8864 available" and "unavailable".
8865 * frame.c (frame_register_read): Ditto.
8866 * findvar.c (value_of_register): Ditto.
8867
8868 2002-05-15 Andrew Cagney <cagney@redhat.com>
8869
8870 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8871 (remote-sim.o): Update dependencies.
8872 (d10v-tdep.o): Specify dependencies.
8873 (sim_d10v_h): Define.
8874
8875 2002-05-14 Jim Blandy <jimb@redhat.com>
8876
8877 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8878 * macrotab.c (macro_lookup_inclusion, find_definition,
8879 new_macro_table): Same.
8880
8881 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8882 not `! strcmp ()'. This is a dubious improvement.
8883 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8884
8885 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8886 although it's not necessary, to avoid a warning.
8887
8888 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8889
8890 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8891 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8892 TYPE_INSTANCE_FLAGS.
8893 (struct main_type): New.
8894 (struct type): Move most members to struct main_type. Change
8895 cv_type and as_type to new type_chain member. Add instance_flags.
8896 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8897 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8898 (finish_cv_type): Remove prototype.
8899 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8900 Set TYPE_CHAIN.
8901 (alloc_type_instance): New function.
8902 (smash_type): New function.
8903 (make_pointer_type, make_reference_type, make_function_type)
8904 (smash_to_member_type, smash_to_method_type): Call smash_type.
8905 (make_qualified_type): New function.
8906 (make_type_with_address_space): Call make_qualified_type.
8907 (make_cv_type): Likewise.
8908 (finish_cv_type): Remove unnecessary function.
8909 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8910 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8911 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8912 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8913 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8914 * hpread.c (hpread_read_struct_type): Likewise.
8915 * stabsread.c (read_struct_type): Likewise.
8916
8917 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8918
8919 * configure.tgt: Add a catch all sh* target, for cases like
8920 sh[2,3,4]-elf and sh-hms.
8921
8922 2002-05-14 Keith Seitz <keiths@redhat.com>
8923
8924 * event-loop.c (create_file_handler): Don't do anything but
8925 update data when we are given a fd which we are already
8926 monitoring.
8927
8928 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8929
8930 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8931 (update_context): Use __func__ in warnings.
8932
8933 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8934
8935 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8936 and tcp_close to net_open and net_close.
8937 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8938 using UDP if requested. Don't try to disable Nagle on UDP
8939 sockets.
8940 * remote.c (remote_serial_open): New function. Warn about UDP.
8941 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8942
8943 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8944
8945 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8946
8947 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8948
8949 * configure.tgt: Remove sh-hms target.
8950 * MAINTAINERS: Don't list sh-hms as a separate target.
8951
8952 2002-05-13 Jim Blandy <jimb@redhat.com>
8953
8954 Add first preprocessor macro-expansion files.
8955 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8956 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8957 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8958 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8959 (COMMON_OBS): Add macrotab.o, macroexp.o.
8960 (macroexp.o, macrotab.o): New rules.
8961
8962 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8963
8964 * config/m88k/tm-m88k.h: Update copyright.
8965 (m88k_target_write_pc): Declare
8966 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8967 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8968 (SHIFT_INST_REGS): Update definition.
8969 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8970 using old definition of TARGET_WRITE_PC.
8971 * regcache.c (generic_target_write_pc): Delete code handling
8972 NNPC_REGNUM.
8973 * gdbarch.sh (NNPC_REGNUM): Delete.
8974 * gdbarch.h, gdbarch.c: Regenerate.
8975
8976 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8977
8978 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8979 builtin reg number.
8980
8981 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8982
8983 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8984 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8985 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8986 access macros.
8987 * c-typeprint.c (cp_type_print_method_args): Likewise.
8988 (c_type_print_args): Likewise.
8989 * d10v-tdep.c (d10v_push_arguments): Likewise.
8990 (d10v_extract_return_value): Likewise.
8991 * expprint.c (print_subexp): Likewise.
8992 * gdbtypes.c (lookup_primitive_typename): Likewise.
8993 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8994 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8995 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8996 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8997 (TYPE_VECTOR): Likewise.
8998 * hpread.c (hpread_read_struct_type)
8999 (fix_static_member_physnames, fixup_class_method_type)
9000 (hpread_type_lookup): Likewise.
9001 * mdebugread.c (parse_symbol, parse_type): Likewise.
9002 * p-lang.c (is_pascal_string_type): Likewise.
9003 * valops.c (hand_function_call): Likewise.
9004 * x86-64-tdep.c (classify_argument): Likewise.
9005
9006 * hpread.c (hpread_read_function_type)
9007 (hpread_read_doc_function_type): Call replace_type.
9008 * dstread.c (create_new_type): Delete.
9009 (decode_dst_structure, process_dst_function): Call alloc_type.
9010 Use type access macros.
9011
9012 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9013
9014 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9015 the're not supported by the current architecture.
9016 (i387_fill_fxsave): Likewise.
9017
9018 2002-05-12 Fred Fish <fnf@redhat.com>
9019
9020 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9021 sect_index_xxx members to index the first slot in section_offsets
9022 if all of the section_offsets are zero.
9023
9024 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9025
9026 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9027 checked in with last change.
9028
9029 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9030
9031 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9032 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9033 config.sub.
9034
9035 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * Makefile.in: Update dependencies.
9038
9039 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9040
9041 * language.c (local_hex_string_custom): Simplify. Do not depend
9042 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9043
9044 * memattr.c (mem_info_command): Replace calls to
9045 longest_local_hex_string and longest_local_hex_string_custom.
9046 * buildsym.c (make_blockvector): Ditto.
9047 * solib.c (info_sharedlibrary_command): Ditto.
9048 * tracepoint.c (tracepoints_info): Ditto.
9049 * symtab.c (print_msymbol_info): Ditto.
9050
9051 * language.c (local_hex_string): Delete.
9052 (local_hex_string_custom): Delete.
9053 (longest_local_hex_string): Rename to local_hex_string.
9054 (longest_local_hex_string_custom): Rename to
9055 local_hex_string_custom.
9056 * language.h (local_hex_string): Change parameter type to LONGEST.
9057 (local_hex_string_custom): Ditto.
9058 (longest_local_hex_string): Delete declaration.
9059 (longest_local_hex_string_custom): Ditto.
9060
9061 * solib.c: Update copyright.
9062 * memattr.c: Update copyright.
9063
9064 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9065
9066 * arch-utils.h (legacy_register_to_value): Declare.
9067 (legacy_value_to_register): Declare.
9068 (legacy_convert_register_p): Declare.
9069 * arch-utils.c (legacy_register_to_value): New function.
9070 (legacy_value_to_register): New function.
9071 (legacy_convert_register_p): New function.
9072
9073 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9074 (VALUE_TO_REGISTER): Define.
9075 (CONVERT_REGISTER_P): Define.
9076 * gdbarch.h, gdbarch.c: Regenerate.
9077
9078 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9079 VALUE_TO_REGISTER.
9080 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9081 CONVERT_REGISTER_P.
9082
9083 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9084 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9085
9086 * Makefile.in: Update dependencies for valops.c.
9087 * valops.c: Include "gdb_assert.h".
9088 (typecmp): Skip THIS parameter to methods.
9089 (find_method_list): Remove static_memfuncp argument,
9090 update callers. Check for stub methods.
9091 (find_value_oload_method_list): Don't set *static_memfuncp.
9092 (find_overload_match): Don't check for stub methods. Assert
9093 that methods are not stubbed. Handle static methods.
9094 (value_find_oload_method_list): Remove static_memfuncp argument.
9095 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9096 to the argument list for static stub methods.
9097 * value.h (value_find_oload_method_list): Update prototype.
9098
9099 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9100
9101 * arch-utils.h (generic_register_size): Declare.
9102 (generic_register_raw_size, generic_register_virtual_size): Delete
9103 declarations.
9104 * arch-utils.c (generic_register_raw_size): Delete.
9105 (generic_register_size): New function.
9106 (generic_register_virtual_size): Delete.
9107
9108 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9109 default generic_register_size.
9110 * gdbarch.h, gdbarch.c: Re-generate.
9111
9112 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9113 register_virtual_size.
9114 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9115 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9116
9117 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9118
9119 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9120 * gdbarch.h, gdbarch.c: Regenerate.
9121 * gnu-v3-abi.c: Update copyright.
9122 (vtable_address_point_offset): Update.
9123 (gnuv3_rtti_type): Update.
9124 (gnuv3_baseclass_offset): Update.
9125 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9126 (init_fetch_link_map_offsets): Update.
9127 * remote.c (get_remote_state): Update.
9128
9129 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9130
9131 * TODO: Remove value_headof/value_from_vtable_info comment.
9132 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9133 * values.c (value_headof, value_from_vtable_info): Delete.
9134 * value.h (value_from_vtable_info): Delete prototype.
9135
9136 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9137
9138 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9139 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9140 $(gdb_regex_h).
9141 (gdb_assert_h): Define.
9142 (gdb_wait_h): Define.
9143 (gdb_regex_h): Define.
9144
9145 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9146
9147 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9148 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9149
9150 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9151
9152 * nbsd-tdep.c: Fix comment.
9153
9154 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9155
9156 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9157 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9158 (nbsd-tdep.o): New dependency list.
9159 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9160 nbsd-tdep.h.
9161 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9162 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9163 * nbsd-tdep.c: New file.
9164 * nbsd-tdep.h: New file.
9165 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9166 nbsd-tdep.h.
9167 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9168 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9169 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9170 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9171
9172 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9173
9174 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9175 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9176 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9177 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9178 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9179 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9180
9181 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9182
9183 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9184 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9185 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9186 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9187 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9188 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9189 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9190
9191 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9192
9193 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9194 fetch_elfcore_registers to...
9195 * i386nbsd-tdep.c: ...here.
9196 (i386nbsd_use_struct_convention): Rename to...
9197 (i386nbsd_aout_use_struct_convention): ...this.
9198 (i386nbsd_supply_reg): New function.
9199 (i386nbsd_fill_reg): New function.
9200 (fetch_core_registers): Use i386nbsd_supply_reg.
9201 (fetch_elfcore_registers): Likewise.
9202 (_initialize_i386nbsd_tdep): New function.
9203 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9204 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9205 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9206 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9207 (i386nbsd_aout_use_struct_convention): ...this.
9208
9209 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9210
9211 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9212 (store_inferior_registers): Use shnbsd_fill_reg.
9213 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9214 sh_nbsd_supply_register): Collapse into...
9215 (shnbsd_supply_reg): ...this.
9216 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9217 (shnbsd_fill_reg): ...this.
9218 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9219 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9220 (fetch_core_registers): Use shnbsd_supply_reg.
9221 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9222 (sh_nbsd_core_fns): Rename to...
9223 (shnbsd_core_fns): ...this.
9224 (sh_nbsd_elfcore_fns): Rename to...
9225 (shnbsd_elfcore_fns): ...this.
9226 (sh_nbsd_init_abi): Rename to...
9227 (shnbsd_init_abi): ...this.
9228 (_initialize_sh_nbsd_tdep): Rename to...
9229 (_initialize_shnbsd_tdep): ...this.
9230 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9231 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9232 sh_nbsd_fill_register): Remove prototypes.
9233 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9234
9235 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9236
9237 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9238 (i387-nat.o): Delete dependency list.
9239 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9240 (x86-64-linux-nat.o): Likewise.
9241 * i387-nat.c: Delete file, moving contents to...
9242 * i387-tdep.c: ...here.
9243 * i387-nat.h: Rename...
9244 * i387-tdep.h: ...to this.
9245 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9246 * i386-linux-nat.c: Likewise.
9247 * i386bsd-nat.c: Likewise.
9248 * i386gnu-nat.c: Likewise.
9249 * i386nbsd-nat.c: Likewise.
9250 * i386v4-nat.c: Likewise.
9251 * x86-64-linux-nat.c: Likewise.
9252 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9253 * config/i386/go32.mh (NATDEPFILES): Likewise.
9254 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9255 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9256 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9257 * config/i386/linux.mh (NATDEPFILES): Likewise.
9258 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9259 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9260 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9261 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9262
9263 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9264
9265 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9266 (alphanbsd-nat.o): Remove dependency list.
9267 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9268 * alphanbsd-nat.c: Delete. Contents moved to...
9269 * alphanbsd-tdep.c: ...here.
9270 (_initialize_alphanbsd_tdep): Register core functions.
9271 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9272
9273 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9274
9275 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9276 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9277 (alphanbsd-nat.o): Likewise.
9278 (alphabsd-tdep.o): New dependency list.
9279 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9280 (fill_gregset): Use alphabsd_fill_reg.
9281 (supply_fpregset): Use alphabsd_supply_fpreg.
9282 (fill_fpregset): Use alphabsd_fill_fpreg.
9283 (fetch_inferior_registers): Use struct reg and struct fpreg
9284 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9285 and alphabsd_supply_fpreg.
9286 (store_inferior_registers): Use struct reg and struct fpreg
9287 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9288 and alphabsd_fill_fpreg.
9289 * alphabsd-tdep.c: New file.
9290 * alphabsd-tdep.h: New file.
9291 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9292 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9293 alphabsd_supply_fpreg.
9294 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9295 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9296
9297 2002-05-11 Eric Christopher <echristo@redhat.com>
9298
9299 * mips-tdep.c (mips_double_register_type): Fix thinko.
9300 (mips_single_register_type): Ditto.
9301 * MAINTAINERS: Add self.
9302
9303 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9304
9305 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9306 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9307 right thing on architectures with different endianness and/or
9308 integer sizes.
9309
9310 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9311
9312 From Christian Limpach <chris@Pin.LU>
9313 * configure.in: Change sed expression which comments out
9314 NATDEPFILES to also comment out continuation lines.
9315 * configure: Regenerate.
9316
9317 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9318
9319 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9320 big patch.
9321
9322 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9323
9324 * sh-tdep.c: Include correct file.
9325
9326 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9327
9328 New support for sh64-elf (sh5) target.
9329
9330 * configure.tgt: For sh64-elf target, default to sh-elf.
9331
9332 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9333 (struct gdbarch_tdep): Add new fields for new registers and ABI
9334 info.
9335
9336 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9337 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9338 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9339 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9340 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9341 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9342 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9343 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9344 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9345 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9346 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9347 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9348 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9349 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9350 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9351 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9352 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9353 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9354 sign_extend, sh64_nofp_frame_init_saved_regs,
9355 sh64_init_extra_frame_info, sh64_get_saved_register,
9356 sh64_extract_struct_value_address, sh64_pop_frame,
9357 sh64_push_arguments, sh64_extract_return_value,
9358 sh64_store_return_value, sh64_show_media_regs,
9359 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9360 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9361 sh_sh64_register_virtual_type,
9362 sh_sh64_register_convert_to_virtual,
9363 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9364 sh64_register_read, sh64_pseudo_register_write,
9365 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9366 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9367 sh64_do_pseudo_register, sh_compact_do_registers_info,
9368 sh64_do_registers_info, sh_gdbarch_init): New functions.
9369
9370 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9371
9372 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9373
9374 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9375
9376 * linespec.c (decode_line_1): Check for a double quote after
9377 a filename correctly.
9378
9379 2002-05-10 Jim Blandy <jimb@redhat.com>
9380
9381 Properly track the size of the current objfile's .debug_line section.
9382 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9383 (DWARF_LINE_SIZE): New macro.
9384 (dwarf2_build_psymtabs_hard): Record the line section's size in
9385 the partial symbol table.
9386 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9387 symbol table.
9388
9389 2002-05-10 Petr Sorfa <petrs@caldera.com>
9390
9391 * ia64-tdep.c: Handle breakpoints on L instruction type
9392 in MLX instruction bundle by moving the breakpoint to
9393 the third slot (X instruction type) as L holds only data.
9394
9395 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9396
9397 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9398 (process_one_symbol): Complain about discarding local symbols
9399 due to a misplaced N_LBRAC entry.
9400
9401 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9402
9403 From Daniel Berlin <dan@cgsoftware.com>
9404 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9405 decrease the depth we are at, in the case of templates.
9406
9407 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9408
9409 * mips-tdep.c (mips_float_register_type): New function.
9410 (mips_double_register_type): New function.
9411 (mips_print_register): Use them.
9412 (do_fp_register_row): Likewise.
9413
9414 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9415
9416 * signals/signals.c (signals): Remove conditional compilation around
9417 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9418 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9419
9420 2002-05-09 Michael Snyder <msnyder@redhat.com>
9421
9422 * remote-rdp.c (remote_rdp_can_run): Remove.
9423
9424 2002-05-09 Tom Tromey <tromey@redhat.com>
9425
9426 * jv-valprint.c (java_val_print): Handle `char' as a special case
9427 of TYPE_CODE_INT.
9428
9429 2002-05-09 Michael Snyder <msnyder@redhat.com>
9430
9431 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9432 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9433 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9434 str r(0123),[sp,#nn].
9435 (arm_skip_prologue): Ditto. Also make disassembly
9436 order-independent by placing it in a loop.
9437
9438 2002-05-06 Michael Snyder <msnyder@redhat.com>
9439
9440 * stabsread.c (read_type): Add recognition for new attribute:
9441 "@V;" means that an array type is actually a vector.
9442 This is analogous to the vector flag that's been added to dwarf2.
9443
9444 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9445
9446 * i386-tdep.h (i386_abi): New enum.
9447 (struct gdbarch_tdep): Replace os_ident member with abi.
9448 (i386_gdbarch_register_os_abi): New prototype.
9449 * i386-tdep.c (i386_abi_names): New array.
9450 (process_note_abi_tag_sections): Removed.
9451 (process_note_sections): New function.
9452 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9453 (struct i386_abi_handler): New struct.
9454 (i386_abi_handler_list): New variable.
9455 (i386_gdbarch_register_os_abi): New function.
9456 (i386_gdbarch_init): Adapt for the changes given above.
9457
9458 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9459
9460 * gregset.h: Say "GNU/Linux".
9461
9462 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9463
9464 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9465 (build_gdbtypes): Build builtin_type_v2_float.
9466 (_initialize_gdbtypes): Register new builtin type.
9467
9468 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9469
9470 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9471 (clear_gdbarch_swap): New function.
9472 (initialize_non_multiarch): Call.
9473 (gdbarch_update_p): Before calling init(), swap out and clear the
9474 existing architecture.
9475 * gdbarch.c: Regenerate.
9476
9477 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9478
9479 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9480 alphanbsd-tdep.c.
9481
9482 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9483
9484 * sh-nbsd-nat.c: Rename to...
9485 * shnbsd-nat.c: ...this.
9486 * sh-nbsd-tdep.c: Rename to...
9487 * shnbsd-tdep.c: ...this.
9488 * sh-nbsd-tdep.h: Rename to...
9489 * shnbsd-tdep.h: ...this.
9490 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9491 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9492
9493 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9494
9495 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9496 concatenation for command help messages.
9497
9498 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9499
9500 * NEWS: Note new sh*-*-netbsdelf* configuration.
9501 * configure.host: Set gdb_host_cpu to sh for all sh*.
9502 (sh*-*-netbsdelf*): New host.
9503 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9504 (sh*-*-netbsdelf*): New target.
9505 * sh-nbsd-nat.c: New file.
9506 * sh-nbsd-tdep.c: New file.
9507 * sh-nbsd-tdep.h: New file.
9508 * config/sh/nbsd.mh: New file.
9509 * config/sh/nbsd.mt: New file.
9510 * config/sh/nm-nbsd.h: New file.
9511 * config/sh/tm-nbsd.h: New file.
9512
9513 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9514
9515 * sh-tdep.c (sh_osabi_names): Declare.
9516 (process_note_abi_tag_sections): New function.
9517 (get_elfosabi): Ditto.
9518 (sh_gdbarch_register_os_abi): Ditto.
9519 (sh_dump_tdep): Ditto.
9520 _initialize_sh_tdep): Use gdbarch_register to register
9521 sh_gdbarch_init and sh_dump_tdep.
9522 * config/sh/tm-sh.h (sh_osabi): Declare.
9523 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9524
9525 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9526
9527 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9528 (thumb_scan_prologue): Ditto.
9529 (arm_find_callers_reg): Ditto.
9530 (arm_frame_chain): Ditto.
9531 (arm_init_extra_frame_info): Ditto.
9532 (arm_frame_saved_pc): Ditto.
9533 (arm_pop_frame): Ditto.
9534 (arm_push_return_address): New function.
9535 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9536 call_dummy_location, call_dummy_breakpoint_offset_p,
9537 call_dummy_breakpoint_offset, call_dummy_p,
9538 call_dummy_stack_adjust_p, call_dummy_words,
9539 sizeof_call_dummy_words, call_dummy_start_offset,
9540 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9541 call_dummy_address, push_return_address and push_dummy_frame for
9542 generic dummy frames.
9543
9544 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9545
9546 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9547 size computation for alloca.
9548 (sh_fp_frame_init_saved_regs): Likewise.
9549
9550 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9551
9552 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9553 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9554 * arm-tdep.c (arm_store_return_value): Use them.
9555 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9556 * remote-rdp.c (remote_rdp_fetch_register): Use
9557 ARM_MAX_REGISTER_RAW_SIZE.
9558 (remote_rdp_store_register): Likewise.
9559
9560 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9561
9562 * dwarf2cfi.c: Code cleanup, removed unused variables,
9563 added default labels to switch {} statements.
9564 * x86-64-tdep.c: Ditto.
9565 * x86-64-linux-nat.c: Ditto.
9566
9567 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9568
9569 * solib.h: Protect against multiple inclusion.
9570
9571 2002-05-06 Jim Blandy <jimb@redhat.com>
9572
9573 Add first preprocessor macro-expansion files.
9574 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9575 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9576 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9577 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9578 (COMMON_OBS): Add macrotab.o, macroexp.o.
9579 (macroexp.o, macrotab.o): New rules.
9580
9581 Separate the job of reading the line number info statement program
9582 header (...expialidocious) out into its own function.
9583 * dwarf2read.c (struct line_head, struct filenames, struct
9584 directories): Replace with...
9585 (struct line_header): New structure, containing the full
9586 contents of the statement program header, including the
9587 include directory and file name tables.
9588 (read_file_scope): If we have line number info, instead of just
9589 calling dwarf_decode_lines to do all the work, call
9590 dwarf_decode_line_header first to get a `struct line_header'
9591 containing the data in the statement program header, and then
9592 pass that to dwarf_decode_lines, which will pick up where that
9593 left off. Be sure to clean up the `struct line_header' object.
9594 (dwarf_decode_line_header, free_line_header, add_include_dir,
9595 add_file_name): New functions.
9596 (dwarf_decode_lines): Move all the code to read the statement
9597 program header into dwarf_decode_line_header. Take the line
9598 header it built as the first argument, instead of the offset to
9599 the compilation unit's line number info. Use the new `struct
9600 line_header' type instead of the old structures. No need to do
9601 cleanups here now, since we don't allocate anything.
9602 (dwarf2_statement_list_fits_in_line_number_section,
9603 dwarf2_line_header_too_long): New complaints.
9604
9605 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9606
9607 * gdbtypes.c (init_vector_type): New function.
9608 (build_builtin_type_vec128): Simplify the representation of SIMD
9609 registers.
9610 (build_gdbtypes): Initialize new builtin vector types.
9611 (_initialize_gdbtypes): Register new vector types with gdbarch.
9612 (builtin_type_v4_float, builtin_type_v4_int32,
9613 builtin_type_v8_int16, builtin_type_v16_int8,
9614 builtin_type_v2_int32, builtin_type_v4_int16,
9615 builtin_type_v8_int8): New (renamed) SIMD types.
9616
9617 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9618
9619 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9620 (i387_fill_fxsave): Likewise.
9621
9622 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9623
9624 * alpha-tdep.c (alpha_extract_return_value): Don't use
9625 non-constant array size in prototype.
9626
9627 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9628
9629 From Brian Taylor <briant at model dot com>:
9630 * ui-out.c (ui_out_field_core_addr): Use the function
9631 longest_local_hex_string_custom'to format addresses > 32 bits
9632 wide.
9633
9634 * ui-out.c (ui_out_field_core_addr): Update comment.
9635
9636 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9637
9638 * stack.c (select_and_print_frame): Make static. Delete the
9639 parameter `level'.
9640 (func_command): Update call.
9641 (select_frame_command): Delete code computing the frame level.
9642 * frame.h (select_and_print_frame): Delete declaration.
9643
9644 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9645
9646 * sparc-tdep.c (sparc_get_saved_register): Comment why
9647 get_prev_frame call is safe.
9648
9649 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9650
9651 * frame.h (select_frame): Delete level parameter.
9652 * stack.c (select_frame): Update. Use frame_relative_level to
9653 obtain the frame's level.
9654 (select_and_print_frame): Update call.
9655 (select_frame_command): Ditto.
9656 (up_silently_base): Ditto.
9657 (down_silently_base): Ditto.
9658 * ocd.c (ocd_start_remote): Ditto.
9659 * remote-rdp.c (remote_rdp_open): Ditto.
9660 * remote-mips.c (mips_initialize): Ditto.
9661 (common_open): Ditto.
9662 * remote-e7000.c (e7000_start_remote): Ditto.
9663 * m3-nat.c (select_thread): Ditto.
9664 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9665 (child_get_current_exception_event): Ditto.
9666 * varobj.c (varobj_create): Ditto.
9667 (varobj_update): Ditto.
9668 (c_value_of_root): Ditto.
9669 * tracepoint.c (finish_tfind_command): Ditto.
9670 * corelow.c (core_open): Ditto.
9671 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9672 * thread.c (info_threads_command): Ditto.
9673 (switch_to_thread): Ditto.
9674 * infrun.c (normal_stop): Ditto.
9675 (restore_selected_frame): Ditto.
9676 (restore_inferior_status): Ditto.
9677 * breakpoint.c (insert_breakpoints): Ditto.
9678 (watchpoint_check): Ditto.
9679 (bpstat_stop_status): Ditto.
9680 (do_enable_breakpoint): Ditto.
9681 * blockframe.c (flush_cached_frames): Ditto.
9682 (reinit_frame_cache): Ditto.
9683
9684 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9685
9686 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9687 maintainer.
9688
9689 2002-05-04 Jim Blandy <jimb@redhat.com>
9690
9691 * gdbtypes.c (replace_type): Doc fix.
9692
9693 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9694
9695 * valprint.c (strcat_longest): Delete commented out function.
9696 Update copyright.
9697
9698 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9699
9700 * MAINTAINERS: Mark a29k as deleted.
9701 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9702 Move new configurations to the top.
9703 * configure.tgt: Remove a29k.
9704 * config/a29k/tm-vx29k.h: Delete.
9705 * config/a29k/vx29k.mt: Delete.
9706 * config/a29k/tm-a29k.h: Delete.
9707 * config/a29k/a29k-udi.mt: Delete.
9708 * config/a29k/a29k.mt: Delete.
9709 * a29k-tdep.c: Delete.
9710 * remote-udi.c: Delete.
9711 * remote-mm.c: Delete.
9712 * remote-eb.c: Delete.
9713 * remote-adapt.c: Delete.
9714 * Makefile.in: Remove obsolete code.
9715 * config/s390/s390x.mt: Ditto.
9716 * config/s390/s390.mt: Ditto.
9717 * config/sparc/sparclynx.mh: Ditto.
9718 * config/sparc/linux.mh: Ditto.
9719 * config/pa/hppaosf.mh: Ditto.
9720 * config/pa/hppabsd.mh: Ditto.
9721 * config/ns32k/nbsd.mt: Ditto.
9722 * config/mips/vr5000.mt: Ditto.
9723 * config/m68k/sun3os4.mh: Ditto.
9724 * config/m68k/nbsd.mt: Ditto.
9725 * config/m68k/m68klynx.mh: Ditto.
9726 * config/m32r/m32r.mt: Ditto.
9727 * config/i386/x86-64linux.mt: Ditto.
9728 * config/i386/nbsdelf.mt: Ditto.
9729 * config/i386/nbsd.mt: Ditto.
9730 * config/i386/i386lynx.mh: Ditto.
9731
9732 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9733
9734 * target.c (debug_print_register): New function. Handle oversize
9735 registers.
9736 (debug_to_fetch_registers): Call.
9737 (debug_to_store_registers): Call.
9738
9739 2002-05-03 Jim Blandy <jimb@redhat.com>
9740
9741 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9742 (read_type): Doc fix.
9743 * gdbtypes.c (replace_type): Doc fix.
9744
9745 * stabsread.c (multiply_defined_struct): New complaint.
9746 (read_struct_type): If the type we were passed isn't empty, or
9747 incomplete, don't read the new struct type into it; complain,
9748 and return the original type unchanged. Take a new `type_code'
9749 argument, which is the type code for the new type.
9750 (read_type): Rather than storing the type's type code here, pass
9751 it as an argument to read_struct_type, and let that take care of
9752 storing it. That way, we don't overwrite the original type code,
9753 so read_struct_type can use it to decide whether we're overwriting
9754 something we shouldn't.
9755 (complain_about_struct_wipeout): New function.
9756
9757 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9758
9759 * gdbarch.sh: Assert that gdbarch is non-NULL.
9760 * gdbarch.c: Regenerate.
9761
9762 2002-05-03 Jason Merrill <jason@redhat.com>
9763
9764 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9765 and return NULL.
9766
9767 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9768
9769 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9770 (x86_64_dwarf2gdb_regno_map_length),
9771 (x86_64_dwarf2_reg_to_regnum): Added.
9772 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9773 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9774 (_initialize_x86_64_tdep): Synced with the change above.
9775 (x86_64_skip_prologue): Reformulated message.
9776
9777 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9778
9779 * f-exp.y: Also use new prev_lexptr variable
9780 to improve error reporting. Based on Michael Snyder
9781 2002-04-24 dated patch to c-exp.y.
9782 * jv-exp.y: Likewise.
9783 * m2-exp.y: Likewise.
9784
9785 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9786
9787 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9788 we are dealing with vectors.
9789
9790 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9791
9792 * config/m68k/tm-nbsd.h: Obvious fix,
9793 correct machine name.
9794
9795 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9796
9797 * p-typeprint.c (pascal_type_print_base): Add support
9798 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9799
9800 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9801
9802 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9803 for fondamental pascal 'char' type.
9804
9805 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9806
9807 * p-lang.h (is_pascal_string_type): Declaration changed,
9808 new sixth argument of type char ** added.
9809 * p-lang.c (is_pascal_string_type): Implementation
9810 changed. Args length_pos, length_size, string_pos, char_size
9811 can now be NULL. New argument arrayname set to the field
9812 name of the char array. Return value set to char array
9813 field index plus one.
9814 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9815 is_pascal_string_type function.
9816
9817 2002-05-02 Andrew Cagney <cagney@redhat.com>
9818
9819 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9820 <cagney@redhat.com> change.
9821 * gdbarch.c: Regenerate.
9822
9823 2002-05-02 Andrew Cagney <cagney@redhat.com>
9824
9825 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9826 before probing for a new one. Detect errorenous gdbarch_init
9827 functions.
9828 * gdbarch.c: Regenerate.
9829
9830 2002-05-01 Andrew Cagney <cagney@redhat.com>
9831
9832 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9833 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9834 * config/v850/tm-v850.h: Ditto. Update copyright.
9835
9836 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9837
9838 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9839 current_gdbarch.
9840
9841 2002-04-30 Michael Snyder <msnyder@redhat.com>
9842
9843 * arm-tdep.c: Whitespace clean-ups.
9844 (arm_skip_prologue): Fix thinko; two lines
9845 should have been removed as part of 4/24 change.
9846
9847 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9848
9849 * rs6000-tdep.c: Added comment describing how fpscr register
9850 numbers were chosen.
9851
9852 2002-04-30 Michael Snyder <msnyder@redhat.com>
9853
9854 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9855
9856 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9857
9858 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9859 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9860 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9861
9862 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9863
9864 From Louis Hamilton <hamilton@redhat.com>:
9865 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9866 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9867 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9868 not bfd-private xcoff data, to determine wordsize.
9869 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9870
9871 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9872
9873 GDB 5.2 released from 5.2 branch.
9874
9875 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9876
9877 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9878 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9879 (x86_64_register_info_table): Added comments with register numbers.
9880
9881 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9882
9883 * rs6000-tdep.c (rs6000_extract_return_value,
9884 rs6000_store_return_value): Handle returning vectors.
9885 (rs6000_gdbarch_init): Use
9886 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9887 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9888 New function.
9889 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9890 vectors.
9891 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9892 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9893
9894 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9895
9896 * hpread.c (hpread_psymtab_to_symtab_1,
9897 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9898 with fprintf_unfiltered (gdb_stderr,...).
9899
9900 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9901
9902 * remote-array.c (printf_monitor, write_monitor,
9903 array_insert_breakpoint, array_remove_breakpoint ):
9904 Replace fprintf (stderr,...
9905 with fprintf_unfiltered (gdb_stderr,....
9906 * remote-es.c: Likewise.
9907 * remote-os9k.c: Likewise.
9908 * remote-st.c: Likewise.
9909
9910 2002-04-28 Andreas Schwab <schwab@suse.de>
9911
9912 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9913 linux-proc.o and gcore.o.
9914
9915 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9916
9917 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9918 code without frame pointers.
9919
9920 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9921
9922 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9923 ON_STACK is needed.
9924
9925 2002-04-26 Ben Elliston <bje@redhat.com>
9926
9927 * target.c (do_xfer_memory): Correct reference to the new option
9928 "trust-readonly-sections".
9929
9930 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9931
9932 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9933 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9934 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9935 vectors.
9936 (read_array_type): Record the fact that this array type is really a
9937 vector (i.e. are passed in by value).
9938
9939 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9940
9941 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9942 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9943 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9944 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9945 * alpha-linux-tdep.c: Include frame.h.
9946 (alpha_linux_sigcontext_addr): New function.
9947 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9948 alpha_linux_sigcontext_addr.
9949 * alpha-osf1-tdep.c: Include gdbcore.h.
9950 (alpha_osf1_sigcontext_addr): New function.
9951 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9952 alpha_osf1_sigcontext_addr.
9953 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9954 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9955
9956 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9957
9958 * stack.c (selected_frame_level):
9959 (select_frame): Do not set selected_frame_level.
9960 * frame.h (selected_frame_level): Delete declaration.
9961
9962 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9963
9964 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9965 convert_from_func_ptr-addr when AIX / PowerOpen.
9966
9967 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9968
9969 * valops.c (hand_function_call): Call
9970 generic_save_call_dummy_addr.
9971 * frame.h (generic_save_call_dummy_addr): Declare.
9972 * blockframe.c (struct dummy_frame): Add fields call_lo and
9973 call_hi.
9974 (generic_find_dummy_frame): Check for PC in range call_lo to
9975 call_hi instead of entry_point_address.
9976 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9977 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9978 (generic_save_call_dummy_addr): New function.
9979
9980 2002-04-24 David S. Miller <davem@redhat.com>
9981
9982 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9983 sparc_skip_prologue.
9984 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9985 information to find prologue when possible.
9986 (sparc_prologue_frameless_p): Call examine_prologue directly.
9987 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9988 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9989 second argument.
9990 (SKIP_PROLOGUE): Likewise.
9991
9992 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9993
9994 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9995 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9996 indicate that the condition it was testing is always true.
9997 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9998 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9999 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10000
10001 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10002
10003 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10004 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10005 tdep->jb_pc and tdep->jb_elt_size.
10006 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10007 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10008 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10009 * alpha-nat.c (get_longjmp_target): Remove.
10010 (JB_ELEMENT_SIZE): Ditto.
10011 (JB_PC): Ditto.
10012 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10013 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10014 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10015 to alpha_get_longjmp_target.
10016 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10017 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10018 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10019
10020 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10021
10022 * README: Update to GDB 5.2.
10023
10024 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10025
10026 * gdbarch.sh (LC_ALL): Set to `c'.
10027
10028 2002-04-25 Theodore A. Roth <troth@verinet.com>
10029
10030 * avr-tdep.c: Ran through gdb_indent.sh.
10031
10032 2002-04-25 Theodore A. Roth <troth@verinet.com>
10033
10034 * MAINTAINERS: Add myself as AVR maintainer.
10035 * NEWS: Note new target avr.
10036
10037 2002-04-25 Theodore A. Roth <troth@verinet.com>
10038
10039 * Makefile.in: Add support for AVR target.
10040 * configure.tgt: Add support for AVR target.
10041 * avr-tdep.c: New file
10042 * config/avr/avr.mt: New file.
10043
10044 2002-04-25 Theodore A. Roth <troth@verinet.com>
10045
10046 * MAINTAINERS: Add myself to write-after-approval.
10047
10048 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10049
10050 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10051 with fprintf_unfiltered (gdb_stderr,....
10052
10053 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10054
10055 Fix PR gdb/508.
10056 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10057
10058 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10059
10060 * p-exp.y: Also use new prev_lexptr variable
10061 to improve error reporting. Based on Michael Snyder
10062 2002-04-24 dated patch to c-exp.y.
10063
10064 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10065
10066 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10067 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10068 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10069 to 0.
10070 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10071 and struct value.
10072 (FUNCTION_START_OFFSET): Remove.
10073 (BREAKPOINT): Ditto.
10074
10075 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10076
10077 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10078 * NEWS: Ditto.
10079
10080 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10081
10082 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10083 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10084 alpha_linux_pc_in_sigtramp.
10085 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10086 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10087 alpha_osf1_pc_in_sigtramp.
10088 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10089 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10090 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10091 alphafbsd_pc_in_sigtramp.
10092 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10093 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10094 alphanbsd_pc_in_sigtramp.
10095 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10096 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10097
10098 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10099
10100 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10101
10102 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10103
10104 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10105 alphanbsd-tdep.c.
10106 (alphanbsd-nat.o): New dependency list.
10107 (alphanbsd-tdep.o): Ditto.
10108 * NEWS: Note new native NetBSD/alpha configuration.
10109 * alphanbsd-nat.c: New file.
10110 * alphanbsd-tdep.c: Ditto.
10111 * configure.host (alpha*-*-netbsd*): New host.
10112 * configure.tgt (alpha*-*-netbsd*): New target.
10113 * config/alpha/nbsd.mh: New file.
10114 * config/alpha/nbsd.mt: Ditto.
10115 * config/alpha/nm-nbsd.h: Ditto.
10116 * config/alpha/tm-nbsd.h: Ditto.
10117
10118 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10119
10120 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10121 (alpha-osf1-tdep.o): New dependency list.
10122 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10123 and skip_sigtramp_frame members.
10124 * alpha-linux-tdep.c: Include gdbcore.h.
10125 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10126 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10127 * alpha-osf1-tdep.c: New file.
10128 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10129 alpha-osf1-dep.c.
10130 (alpha_frame_past_sigtramp_frame): New function.
10131 (alpha_dynamic_sigtramp_offset): Ditto.
10132 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10133 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10134 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10135 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10136 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10137 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10138 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10139 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10140 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10141 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10142 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10143 to find_solib_trampoline_target.
10144 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10145 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10146 (SKIP_TRAMPOLINE_CODE): Remove.
10147 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10148 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10149 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10150 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10151 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10152 (PROC_SIGTRAMP_MAGIC): Ditto.
10153 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10154 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10155 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10156 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10157 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10158
10159 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10160
10161 * NEWS: Note that Alpha targets are now multi-arch.
10162
10163 2002-04-24 Michael Snyder <msnyder@redhat.com>
10164
10165 * parser-defs.h (prev_lexptr): New external variable.
10166 * parse.c (parse_exp_1): Set prev_lexptr to null before
10167 calling the language-specific parser.
10168 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10169 (yyerror): Use prev_lexptr in error reporting.
10170
10171 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10174 * gregset.h: If FILL_FPXREGSET is defined, provide
10175 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10176 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10177 is defined, call fill_fpxregset.
10178
10179 2002-04-24 Roland McGrath <roland@frob.com>
10180
10181 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10182 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10183 (supply_gregset, supply_fpregset): New functions.
10184
10185 * gnu-nat.c (gnu_find_memory_regions): New function.
10186 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10187 (gnu_xfer_memory): Add a cast.
10188
10189 2002-04-24 Michael Snyder <msnyder@redhat.com>
10190
10191 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10192 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10193 of argument regs ("str r(0123), [r11, #-nn"]).
10194 (arm_skip_prologue): Better handling for frameless functions.
10195 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10196 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10197
10198 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10199
10200 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10201 NUM_PSEUDO_REGS can be used.
10202
10203 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10204
10205 * arch-utils.h: Update copyright.
10206
10207 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10208 * gdbarch.h, gdbarch.c: Re-generate.
10209
10210 * inferior.h (IN_SIGTRAMP): Delete definition.
10211 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10212 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10213
10214 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10215 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10216 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10217 (find_proc_framesize): Ditto.
10218 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10219 (alpha_init_extra_frame_info): Ditto.
10220 * infrun.c (handle_inferior_event): Ditto.
10221 (handle_inferior_event): Ditto.
10222 (check_sigtramp2): Ditto.
10223 * blockframe.c (create_new_frame): Ditto.
10224 (get_prev_frame): Ditto.
10225 * ppc-linux-tdep.c: Update comments.
10226 * i386-linux-tdep.c: Update comments.
10227 * breakpoint.c (bpstat_what): Update comment.
10228
10229 2002-04-24 David S. Miller <davem@redhat.com>
10230
10231 * i960-tdep.c (register_in_window_p): New function.
10232 (i960_find_saved_register): Use it instead of
10233 REGISTER_IN_WINDOW_P.
10234 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10235
10236 * symtab.h (find_stab_function_addr): Kill extern.
10237 * minsyms.c (find_stab_function_addr): Remove from here...
10238 * dbxread.c: ... to here, and mark it static.
10239
10240 2002-04-20 David S. Miller <davem@redhat.com>
10241
10242 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10243 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10244
10245 2002-04-21 David S. Miller <davem@redhat.com>
10246
10247 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10248 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10249 (vx_write_register): Likewise.
10250
10251 2002-04-23 J. Brobecker <brobecker@gnat.com>
10252
10253 * source.c (is_regular_file): New function.
10254 (openp): Check wether file to open is a regular file
10255 to avoid opening directories.
10256
10257 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10258
10259 * findvar.c (extract_signed_integer): Cast printf argument
10260 to suppress format warning.
10261 (extract_unsigned_integer): Likewise.
10262 * infcmd.c (registers_info): Likewise.
10263 * top.c (get_prompt_1): Likewise.
10264 * valops.c (value_assign): Likewise.
10265 * valprint.c (print_decimal): Likewise.
10266
10267 2002-04-22 H.J. Lu (hjl@gnu.org)
10268
10269 * c-exp.y (typebase): Support
10270
10271 [long|long long|short] [signed|unsigned] [int|]
10272
10273 and
10274
10275 signed [long|long long|short] int
10276
10277 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10278
10279 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10280 and vax-tdep.h.
10281 * vax-tdep.h: New file.
10282 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10283 Make several routines static.
10284 (vax_get_saved_register): New function.
10285 (vax_gdbarch_init): New function.
10286 (_initialize_vax_tdep): Register vax_gdbarch_init.
10287 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10288 Remove macros now under the control of gdbarch.
10289
10290 2002-04-22 Michael Snyder <msnyder@redhat.com>
10291
10292 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10293 Some whitespace and coding standards tweaks.
10294
10295 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10296
10297 * vax-tdep.c: Include regcache.h.
10298 (vax_call_dummy_words): New.
10299 (sizeof_vax_call_dummy_words): New.
10300 (vax_fix_call_dummy): New function.
10301 (vax_saved_pc_after_call): Ditto.
10302 * config/vax/tm-vax.h: Don't include regcache.h.
10303 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10304 (CALL_DUMMY): Remove.
10305 (CALL_DUMMY_WORDS): Define.
10306 (SIZEOF_CALL_DUMMY_WORDS): Define.
10307 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10308
10309 2002-04-18 Michael Snyder <msnyder@redhat.com>
10310
10311 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10312
10313 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10314
10315 * vax-tdep.c (vax_frame_chain): New function.
10316 (vax_push_dummy_frame): Ditto.
10317 (vax_pop_frame): Ditto.
10318 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10319 (FRAMELESS_FUNCTION_INVOCATION): Use
10320 generic_frameless_function_invocation_not.
10321 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10322 (POP_FRAME): Use vax_pop_frame.
10323
10324 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10325
10326 * vax-tdep.c (vax_store_struct_return): New function.
10327 (vax_extract_return_value): Ditto.
10328 (vax_store_return_value): Ditto.
10329 (vax_extract_struct_value_address): Ditto.
10330 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10331 vax_store_struct_return.
10332 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10333 (STORE_RETURN_VALUE): Use vax_store_return_value.
10334 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10335
10336 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10337
10338 * vax-tdep.c (vax_frame_saved_pc): New function.
10339 (vax_frame_args_address_correct): Ditto.
10340 (vax_frame_args_address): Ditto.
10341 (vax_frame_locals_address): Ditto.
10342 (vax_frame_num_args): Move code to be in proximity to
10343 other frame-related functions.
10344 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10345 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10346 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10347 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10348 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10349
10350 2002-04-22 H.J. Lu (hjl@gnu.org)
10351
10352 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10353 includedir.
10354
10355 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10356
10357 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10358 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10359 (FRAME_INIT_SAVED_REGS): New macro.
10360
10361 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10362
10363 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10364
10365 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10366
10367 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10368 where needed.
10369 (fetch_osf_core_registers): Likewise.
10370 (supply_gregset): Likewise.
10371
10372 2002-04-22 J. Brobecker <brobecker@gnat.com>
10373
10374 * symfile.h (get_section_index): Define.
10375 * symfile.c (get_section_index): New function.
10376 * mdebugread.c (SC_IS_SBSS): New macro.
10377 (SC_IS_BSS): Return true for the scBss storage class only, as
10378 the scSBss storage class refers to the .sbss section.
10379 (parse_partial_symbols): Discard the symbols which associated
10380 section does not exist.
10381 Make sure to use the .sbss section index for symbols which
10382 storage class is scBss, rather than using the .bss section index.
10383
10384 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10385
10386 * vax-tdep.c: Update copyright years.
10387 (vax_register_name): New function.
10388 (vax_register_byte): Ditto.
10389 (vax_register_raw_size): Ditto.
10390 (vax_register_virtual_size): Ditto.
10391 (vax_register_virtual_type): Ditto.
10392 * config/vax/tm-vax.h: Update copyright years.
10393 (REGISTER_NAMES): Remove.
10394 (REGISTER_NAME): Define.
10395 (REGISTER_BYTE): Use vax_register_byte.
10396 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10397 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10398 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10399
10400 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10401
10402 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10403 declaration
10404 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10405
10406 2002-04-21 David S. Miller <davem@redhat.com>
10407
10408 * arch-utils.c (generic_prologue_frameless_p): Kill
10409 SKIP_PROLOGUE_FRAMELESS_P code.
10410 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10411 references.
10412 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10413 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10414 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10415 references.
10416 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10417 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10418 (sparc_gdbarch_init): Pass it to
10419 set_gdbarch_prologue_frameless_p.
10420
10421 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10422
10423 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10424 (alphabsd-nat.o): New dependency list.
10425
10426 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10427
10428 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10429 alphafbsd-tdep.c.
10430 (alpha-linux-tdep.o): New dependency list.
10431 (alphafbsd-tdep.o): Likewise.
10432
10433 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10434
10435 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10436 to here...
10437 * alpha-tdep.c: ...from here.
10438 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10439
10440 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10441
10442 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10443 prototype from here...
10444 * alpha-tdep.h: ...to here.
10445
10446 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10447
10448 * frame.h (selected_frame_level): Document as deprecated.
10449 (frame_relative_level): Declare.
10450 * stack.c (frame_relative_level): New function.
10451 (selected_frame_level): Document as deprecated.
10452 (select_frame): Do not set the selected_frame_level.
10453
10454 * stack.c (frame_info, record_selected_frame): Update.
10455 (frame_command, current_frame_command): Update.
10456 (up_silently_base, up_command, down_silently_base): Update.
10457 (down_command): Update.
10458 * inflow.c (kill_command): Update.
10459 * tracepoint.c (finish_tfind_command): Update.
10460 * corelow.c (core_open): Update.
10461 * thread.c (info_threads_command): Update.
10462 (do_captured_thread_select): Update.
10463 * infcmd.c (finish_command): Update.
10464 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10465
10466 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10467
10468 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10469
10470 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10471
10472 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10473 type const.
10474
10475 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10476
10477 * alphafbsd-tdep.c: Update copyright years. Include
10478 alpha-tdep.h.
10479 (alphafbsd_use_struct_convention): Make static.
10480 (alphafbsd_init_abi): New function.
10481 (_initialize_alphafbsd_tdep): New function.
10482 * config/alpha/tm-fbsd.h: Update copyright years.
10483 (USE_STRUCT_CONVENTION): Remove.
10484
10485 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10486
10487 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10488 an Alpha ABI variant.
10489 (alpha_abi_handler_list): Declare.
10490 (alpha_gdbarch_register_os_abi): New function.
10491 (alpha_gdbarch_init): Give registered ABI variant handlers a
10492 chance to tweak the gdbarch once we have set up defaults.
10493 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10494
10495 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10496
10497 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10498 to standard_coerce_float_to_double.
10499 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10500
10501 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10502
10503 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10504 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10505 from gdbarch_tdep rather than a constant.
10506 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10507 the default text address for all Alpha Unix ABIs.
10508 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10509 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10510
10511 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10512
10513 * alpha-tdep.h: New file. Includes several Alpha target constants
10514 taken from...
10515 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10516 let gdbarch deal with.
10517 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10518 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10519 to dependency list.
10520 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10521 Alpha target register names.
10522 * alphabsd-nat.c: Likewise.
10523 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10524 Alpha target register names. Make serveral routines static.
10525 (alpha_get_saved_register): New function.
10526 (alpha_abi_names): New.
10527 (process_note_abi_tag_sections): New function.
10528 (get_elfosabi): New function.
10529 (alpha_gdbarch_init): New function.
10530 (alpha_dump_tdep): New function.
10531 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10532
10533 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10534
10535 * frame.c (find_saved_register): Delete #ifdef
10536 HAVE_REGISTER_WINDOWS code.
10537 * config/sparc/tm-sparc.h: Update comments.
10538 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10539
10540 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10541
10542 * i960-tdep.c (i960_find_saved_register): New function.
10543 (i960_get_saved_register): New function.
10544 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10545 (i960_get_saved_register): Declare.
10546 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10547
10548 2002-04-20 David S. Miller <davem@redhat.com>
10549
10550 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10551
10552 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10553
10554 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10555 instead of NUM_PSEUDO_REGS.
10556
10557 2002-04-20 David S. Miller <davem@redhat.com>
10558
10559 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10560 GDB_MULTI_ARCH_PARTIAL
10561 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10562 define, let tm-sp64.h do it.
10563
10564 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10565
10566 * frame.c (find_saved_register): Avoid a NULL pointer
10567 dereference and actually walk the frame list.
10568
10569 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10570
10571 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10572 sorted in most most-recent-used order. Document.
10573 * gdbarch.h, gdbarch.c: Regenerate.
10574
10575 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10576
10577 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10578 instead of ->prev.
10579 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10580 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10581 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10582 instead of ->prev.
10583
10584 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10585
10586 Fix PR gdb/471.
10587 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10588 (build_builtin_type_vec128): Ditto.
10589 (append_composite_type_field): Fix calculation of type length in
10590 union case.
10591
10592 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10593
10594 * config/djgpp/README: Update.
10595
10596 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10597 compiler warnings.
10598
10599 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10600
10601 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10602 (alpha_setup_arbitrary_frame): ...to this.
10603 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10604 for alpha_setup_arbitrary_frame.
10605
10606 2002-04-18 Andrew Cagney <cagney@redhat.com>
10607
10608 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10609 * gdbarch.h, gdbarch.c: Regenerate.
10610
10611 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10612 * target.h (memory_breakpoint_from_pc): Update declaration.
10613 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10614
10615 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10616 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10617 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10618 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10619 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10620 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10621 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10622 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10623 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10624 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10625 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10626 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10627
10628 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10629 const pointer.
10630 * monitor.c (monitor_insert_breakpoint): Ditto.
10631 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10632
10633 * config/mcore/tm-mcore.h: Update copyright.
10634 * mem-break.c: Ditto.
10635 * xstormy16-tdep.c: Ditto.
10636
10637 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10638
10639 * p-exp.y: Add precedence rule for '^' token.
10640 This removes the shift/reduce conflicts.
10641 Remove the comment concerning these shift/reduce conflicts.
10642
10643 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10644
10645 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10646 (registers_powerpc_nofp): New register set for processors
10647 without floating point unit.
10648
10649 2002-04-18 David S. Miller <davem@redhat.com>
10650
10651 * MAINTAINERS: Add myself to write-after-approval.
10652
10653 2002-04-17 Michael Snyder <msnyder@redhat.com>
10654
10655 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10656
10657 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10658
10659 * rs6000-tdep.c (frame_initial_stack_address): Use
10660 frame_register_read to read the alloca_reg.
10661
10662 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10663
10664 * frame.c (find_saved_register): Find saved registers in the next
10665 not prev frame.
10666 Fix PR gdb/365.
10667
10668 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10669
10670 * gdbarch.sh (LANG): Set to ``c''.
10671
10672 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10673
10674 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10675
10676 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10677
10678 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10679 Update copyright.
10680
10681 * hpread.c (hpread_get_lntt): Add declaration.
10682 Also fix PR gdb/391.
10683
10684 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10685
10686 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10687 * aclocal.m4, configure: Re-generate.
10688 Fix PR gdb/391.
10689
10690 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10691
10692 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10693 instead of tm_print_insn.
10694
10695 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10696
10697 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10698
10699 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10700
10701 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10702 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10703 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10704
10705 2002-04-12 Don Howard <dhoward@redhat.com>
10706
10707 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10708 max_user_call_depth.
10709 (init_cmd_lists): Initialize the new value;
10710 * cli/cli-script.c (execute_user_command): Limit the call depth of
10711 user defined commands. This avoids a core-dump when user commands
10712 are infinitly recursive.
10713
10714 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10715
10716 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10717 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10718 from tdep struct instead of DEFAULT_LR_SAVE.
10719 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10720 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10721 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10722
10723 2002-04-12 Michael Snyder <msnyder@redhat.com>
10724
10725 * Remote.c: Spelling fix.
10726 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10727 If no symbol found for "sbrk", try "_sbrk".
10728 (make_output_phdrs): Use bfd_section_name.
10729 (gcore_copy_callback): Use bfd_section_name.
10730 * eval.c: Indentation fix-ups.
10731 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10732 in case it gets applied to an address that is already
10733 in the instruction space.
10734 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10735 * symfile.c: Fix indentation, long lines.
10736 * source.c: White space fix-up.
10737
10738 2002-04-12 Andrew Cagney <cagney@redhat.com>
10739
10740 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10741 * frame.c (frame_register_read): New function. Return non-zero on
10742 success.
10743 (read_relative_register_raw_bytes_for_frame): Delete.
10744 (read_relative_register_raw_bytes): Delete.
10745 * frame.h (frame_register_read): Declare.
10746 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10747 * sh-tdep.c: Ditto.
10748 * infcmd.c (do_registers_info): Ditto.
10749 * hppa-tdep.c: Ditto.
10750 * rs6000-tdep.c: Ditto.
10751 * h8500-tdep.c: Ditto.
10752 * mips-tdep.c: Ditto.
10753 * h8300-tdep.c: Ditto.
10754 * z8k-tdep.c: Ditto.
10755
10756 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10757
10758 From Jimi X <jimix@watson.ibm.com>:
10759 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10760 64-bit SysV ABI.
10761
10762 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10763
10764 From Jimi X <jimix@watson.ibm.com>:
10765 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10766 bfd info.
10767
10768 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10769
10770 From Jimi X <jimix@watson.ibm.com>:
10771 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10772 register sets for these processor variants.
10773
10774 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10775
10776 * regformats/reg-ppc.dat: Support FPSCR.
10777
10778 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10779
10780 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10781 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10782 Add fpscr as an invalid/unfetchable register.
10783 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10784 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10785 (fill_fpregset): Add support for register fpscr.
10786 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10787 (fill_gregset): Account for the fact that register ``mq'' might
10788 not exist.
10789 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10790 (registers_power): Add fpscr to register set at slot 71.
10791 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10792 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10793
10794 2002-04-11 Michael Snyder <msnyder@redhat.com>
10795
10796 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10797 * configure: Regenerate.
10798 * config.in: Regenerate.
10799 * acconfig.h: Add define for _SYSCALL32.
10800 * core-sol2.c: Remove #define _SYSCALL32.
10801 * solib-legacy.c: Remove #define _SYSCALL32.
10802
10803 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10804
10805 * stack.c (select_frame): Cleanup internal error message, do not
10806 use %p.
10807
10808 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10809
10810 * stack.c (select_frame): Check that selected_frame and the
10811 specified level are as expected.
10812 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10813 Update copyright.
10814 * frame.h (struct frame_info): Add field `level'. Update
10815 copyright.
10816 Work-in-progress PR gdb/464.
10817
10818 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10819
10820 * maint.c (maint_print_section_info): Rename print_section_info.
10821 (print_bfd_section_info, print_objfile_section_info): Update.
10822 * inferior.h (struct gdbarch): Add opaque declaration.
10823 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10824 * gdbarch.h: Regenerate.
10825
10826 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10827
10828 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10829 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10830 (kernel_u_size): Added.
10831 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10832 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10833
10834 2002-04-04 Jim Ingham <jingham@apple.com>
10835
10836 * valarith.c (find_size_for_pointer_math): New function, either returns
10837 the size for a pointer's target, returns 1 for void *, or errors for
10838 incomplete types.
10839 (value_add, value_sub): use find_size_for_pointer_math.
10840
10841 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10842
10843 * linux-low.c (linux_look_up_symbols): New hook.
10844 (linux_target_ops): Add linux_look_up_symbols.
10845 * remote-utils.c (decode_address): New function.
10846 (look_up_one_symbol): New function.
10847 * server.c (handle_query): Call target look_up_symbols hook.
10848 * server.h (look_up_one_symbol): Add prototype.
10849 * target.h (struct target_ops): Add look_up_symbols hook.
10850
10851 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10852
10853 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10854 override FP_REGNUM with frame->fp. Update copyright.
10855 * parse.c (num_std_regs, std_regs): Delete.
10856 (target_map_name_to_register): Do not search std_regs. Update
10857 function description.
10858 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10859 declarations. Update copyright.
10860 Fix PR gdb/251.
10861
10862 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10863
10864 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10865 after the last symbol in a block.
10866
10867 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10868
10869 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10870 is non zero as a found symbol.
10871
10872 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10873
10874 * findvar.c: Include "builtin-regs.h".
10875 (value_of_register): Call value_of_builtin_reg when applicable.
10876 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10877 (target_map_name_to_register): Call
10878 builtin_reg_map_name_to_regnum.
10879 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10880 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10881 (builtin_regs_h): Define.
10882 (builtin-regs.o): New target.
10883 (findvar.o): Add $(builtin_regs_h).
10884 * builtin-regs.c, builtin-regs.h: New files.
10885 * std-regs.c: New file.
10886 Partial fix for PR gdb/251.
10887
10888 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10889
10890 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10891 it's no longer required.
10892
10893 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10894
10895 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10896
10897 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10898
10899 From Jimi X <jimix@watson.ibm.com>:
10900 * rs6000-tdep.c (rs6000_software_single_step): Use
10901 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10902 and size. Use target_insert_breakpoint() and
10903 target_remove_breakpoint() to insert and remove breakpoints
10904 instead of explicit memory reads and writes.
10905
10906 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10907
10908 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10909 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10910 ELF_OBJECT_FORMAT ifdef.
10911
10912 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10913
10914 From Jimi X <jimix@watson.ibm.com>:
10915 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10916
10917 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10918
10919 From Jimi X <jimix@watson.ibm.com>:
10920 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10921 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10922
10923 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10924
10925 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10926 s/asprintf/xasprintf/.
10927 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10928
10929 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10930
10931 I believe Jeff Law denies responsability for this one:
10932 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10933 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10934 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10935 Work-around for PR gdb/366.
10936
10937 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10938
10939 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10940 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10941 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10942
10943 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10944
10945 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10946 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10947 information.
10948
10949 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10950
10951 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10952 maintainer.
10953
10954 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10955
10956 * README (Reporting Bugs in GDB): Document the bug web page as the
10957 prefered way of submitting bugs.
10958 Fix PR gdb/402.
10959
10960 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10961
10962 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10963 -1. Update comment.
10964 * gdbarch.h, gdbarch.c: Re-generate.
10965
10966 2002-04-07 Andreas Schwab <schwab@suse.de>
10967
10968 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10969 buffer to regcache_collect.
10970
10971 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10972
10973 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10974 * gdbarch.c, gdbarch.h: Re-generate.
10975
10976 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10977
10978 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10979 declaration. Fix -Werror.
10980
10981 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10982
10983 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10984 * gdbarch.c: Regenerate.
10985
10986 2002-04-05 Michael Snyder <msnyder@redhat.com>
10987
10988 * breakpoint.c (clear_command): Rewrite middle section to
10989 combine two loops with identical control conditions.
10990 Add a cleanup to eliminate a memory leak.
10991 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10992
10993 2002-04-05 H.J. Lu (hjl@gnu.org)
10994
10995 * solib-svr4.c (bkpt_names): Add "__start".
10996
10997 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10998
10999 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11000 as test for 64 bit target.
11001
11002 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11003
11004 * h8500-tdep.c (h8500_write_fp): Delete function.
11005 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11006 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11007 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11009 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11010 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11011 (s390_write_fp):
11012 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11013 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11014 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11015 (d10v_write_fp): Delete function.
11016 * inferior.h (write_fp, generic_target_write_fp): Delete
11017 declarations.
11018 * regcache.c (generic_target_write_fp): Delete function.
11019 (write_fp): Delete function.
11020 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11021 * gdbarch.h, gdbarch.c: Regenerate.
11022 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11023 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11024 (sparc64_write_fp): Delete declaration.
11025 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11026 (h8500_write_fp): Delete declaration.
11027
11028 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11029
11030 * sparc-tdep.c (sparc64_write_fp): Delete.
11031 (sparc_push_dummy_frame): Replace write_fp call with code to store
11032 the FP directly.
11033 (sparc_gdbarch_init): Do not initialize write_fp.
11034
11035 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11036
11037 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11038 clause.
11039
11040 2002-03-29 Jim Blandy <jimb@redhat.com>
11041
11042 * stack.c (get_selected_block): Add new argument `addr_in_block',
11043 used to return the exact code address we used to select the block,
11044 not just the block.
11045 * blockframe.c (get_frame_block, get_current_block): Same.
11046 * frame.h (get_frame_block, get_current_block,
11047 get_selected_block): Update declarations.
11048 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11049 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11050
11051 2002-04-05 Michael Snyder <msnyder@redhat.com>
11052
11053 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11054 warning message.
11055
11056 2002-04-05 J. Brobecker <brobecker@gnat.com>
11057
11058 * utils.c (xfullpath): New function.
11059 * defs.h (xfullpath): Add declaration.
11060 * source.c (openp): Use xfullpath in place of gdb_realpath to
11061 avoid resolving the basename part of filenames when the
11062 associated file is a symbolic link. This fixes a potential
11063 inconsistency between the filenames known to GDB and the
11064 filenames it prints in the annotations.
11065 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11066 to be able to match a filename with either the real filename, or
11067 the name of any symbolic link to this file.
11068 (lookup_partial_symtab): Ditto.
11069
11070 2002-04-04 Michael Snyder <msnyder@redhat.com>
11071
11072 * breakpoint.c: Add support for hardware breakpoints in overlays.
11073 (overlay_events_enabled): New state variable.
11074 (insert_breakpoints): Use overlay_events_enabled to decide
11075 whether to attempt to set a breakpoint at the overlay load addr.
11076 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11077 (remove_breakpoint): Use overlay_events_enabled to decide
11078 whether breakpoints need to be removed from overlay load addr.
11079 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11080 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11081 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11082 disable_overlay_breakpoints): Update overlay_events_enabled.
11083
11084 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11085
11086 * dwarf2read.c (struct function_range): New.
11087 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11088 (check_cu_functions): New.
11089 (read_file_scope): Initialize global function lists.
11090 Call dwarf_decode_line after processing children.
11091 (read_func_scope): Add to global function list.
11092 (dwarf_decode_lines): Call check_cu_functions everywhere
11093 record_line is called. Call record_line with a linenumber
11094 of 0 to mark sequence ends.
11095
11096 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11097
11098 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11099 change sync with glibc.
11100
11101 2002-04-03 Jim Blandy <jimb@redhat.com>
11102
11103 * configure.in: Call AC_C_INLINE.
11104 * configure: Regenerated.
11105
11106 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11107
11108 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11109 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11110
11111 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11112
11113 * NEWS: Mention gcore support on FreeBSD/i386.
11114
11115 * fbsd-proc.c: New file.
11116 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11117 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11118
11119 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11120 while statement.
11121
11122 2002-03-29 Jim Blandy <jimb@redhat.com>
11123
11124 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11125 unescaped newlines in string literals, but newer ones don't. So
11126 escape them.
11127
11128 2002-03-26 Michael Snyder <msnyder@redhat.com>
11129 Andrew Cagney <cagney@redhat.com>
11130
11131 * cli/cli-dump.c: New file. Dump memory to file,
11132 restore file to memory.
11133 * cli/cli-dump.h: New file.
11134 * Makefile.in: Add rules, dependencies for cli-dump.o.
11135 * NEWS: Mention new commands.
11136
11137 2002-03-28 Michael Snyder <msnyder@redhat.com>
11138
11139 * symfile.c (symbol_file_add): Move test for null symbols to later.
11140
11141 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11142
11143 From veksler at il.ibm.com:
11144 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11145 the xstrduped original path.
11146 Fix PR gdb/417.
11147
11148 2002-03-27 Michael Snyder <msnyder@redhat.com>
11149
11150 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11151 * infcmd.c (_initialize_infcmd): Ditto.
11152 * language.c (_initialize_language): Ditto.
11153 * symfile.c (_initialize_symfile): Ditto.
11154 * top.c (_init_main): Ditto.
11155 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11156
11157 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11158
11159 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11160 vector registers handling.
11161 (skip_prologue): Handle new AltiVec instructions. Fill in new
11162 fields of frame data.
11163 (frame_get_saved_regs): Fill in information for AltiVec registers.
11164
11165 2002-03-27 Jim Blandy <jimb@redhat.com>
11166
11167 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11168 a function; leave this macro here to invoke that function.
11169 (symbol_init_mangled_name): Declaration for that function.
11170 * symtab.c (symbol_init_mangled_name): New function.
11171
11172 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11173
11174 * valarith.c: Replace strerror with safe_strerror.
11175 * tracepoint.c: Ditto.
11176 * lin-lwp.c: Ditto.
11177 * go32-nat.c: Ditto.
11178 * inflow.c: Ditto.
11179 * gnu-nat.c: Ditto.
11180
11181 2002-03-27 Andreas Schwab <schwab@suse.de>
11182
11183 * event-top.c (command_line_handler): Remove useless if.
11184
11185 2002-03-27 Andreas Jaeger <aj@suse.de>
11186
11187 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11188 comment.
11189
11190 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11191
11192 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11193 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11194 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11195 (x86_64_linux_dr_get_status, supply_gregset),
11196 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11197 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11198 (x86_64_register_info_table): Add.
11199 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11200 (x86_64_register_raw_size, x86_64_register_virtual_type),
11201 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11202 general x86_64_register_info_table.
11203 (i386_gdbarch_init): gdbarch_register_bytes is now set
11204 dynamicaly during initialization.
11205 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11206 * gdbserver/linux-x86-64-low.c: Ditto.
11207
11208 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11209
11210 * gdbserver/server.c (main): Call target_signal_to_host_p
11211 and target_signal_to_host on signals received from the remote.
11212 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11213 target_signal_from_host on signals sent to the remote.
11214 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11215 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11216
11217 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11218
11219 * signals/signals.c: Include "server.h" in gdbserver build.
11220 (target_signal_from_name): Don't use STREQ.
11221 (_initialize_signals): Likewise. Don't include function in
11222 gdbserver build.
11223
11224 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11225
11226 * signals.c: Moved to...
11227 * signals/signals.c: Here.
11228 * Makefile (signals.o): Update.
11229
11230 2002-03-26 Jeff Law (law@redhat.com)
11231
11232 * somread.c (som_symtab_read): Remove some commented out code and
11233 updated related comments. Do not set the minimal symbol table to
11234 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11235 in a dynamic executable.
11236 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11237 where we are unable to find the minimal symbol for the given
11238 PC value.
11239
11240 2002-03-25 Jeff Law (law@redhat.com)
11241
11242 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11243
11244 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11245
11246 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11247
11248 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11249
11250 * command.h: Update copyright.
11251 (struct cmd_list_element): Replace definition with opaque
11252 declaration.
11253 (enum cmd_types): Document that it will eventually be moved to
11254 cli/cli-decode.h
11255 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11256 (MALLOCED_REPLACEMENT): Delete macro.
11257 * Makefile.in (cli_decode_h): Add $(command_h).
11258 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11259 * top.c: Include "cli/cli-decode.h".
11260 * completer.c: Include "cli/cli-decode.h".
11261 * maint.c: Include "cli/cli-decode.h".
11262 * cli/cli-decode.h: Include "command.h".
11263 (enum command_class): Delete.
11264 (enum cmd_types): Comment out.
11265 (enum cmd_auto_boolean): Delete.
11266 (enum var_types): Delete.
11267
11268 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11269
11270 * cli/cli-decode.c: Include "gdb_assert.h".
11271 (add_set_or_show_cmd): New static function.
11272 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11273 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11274 all fields, such as func, from the set command.
11275
11276 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11277
11278 * MAINTAINERS (sh-elf): Change warning flag to -w.
11279
11280 2002-03-23 Andrew Cagney <cagney@redhat.com>
11281
11282 * defs.h (error): Add printf format attribute.
11283 * thread-db.c (thread_from_lwp): Fix error format string.
11284 * stack.c (parse_frame_specification): Ditto.
11285 * cli/cli-decode.c (undef_cmd_error): Ditto.
11286 * scm-lang.c (scm_lookup_name): Ditto.
11287 * tracepoint.c (trace_error): Ditto.
11288 * remote-utils.c (usage): Ditto.
11289 * remote.c (compare_sections_command): Ditto.
11290 Fix PR gdb/328.
11291
11292 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11293
11294 * gdbtypes.c (append_composite_type_field): New function.
11295 (init_composite_type): New function.
11296 * gdbtypes.h (append_composite_type_field): Declare.
11297 (init_composite_type): Ditto.
11298
11299 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11300
11301 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11302 function.
11303 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11304 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11305 structure returning convention for SYSV ABI case, but not
11306 for GNU/Linux, FreeBSD, or NetBSD.
11307
11308 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11309
11310 * symtab.h (lookup_block_symbol): Add mangled_name argument
11311 to prototype.
11312
11313 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11314 with new mangled_name argument.
11315 * linespec.c (decode_line_1): Likewise.
11316 * valops (value_of_this): Likewise.
11317 * symtab.c (lookup_transparent_type): Likewise.
11318 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11319 (lookup_symbol): If we are given a mangled name, pass it down
11320 to lookup_symbol_aux.
11321 (lookup_block_symbol): If we are given a mangled name to check
11322 against, only return symbols which match it.
11323
11324 2002-03-22 Christopher Faylor <cgf@redhat.com>
11325
11326 * win32-nat.c (child_create_inferior): Check for proper shell to use
11327 here, in case the user changes it on the fly.
11328 (_initialize_inftarg): Remove shell path considerations.
11329
11330 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11331
11332 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11333 for gdbarch_max_register_raw_size and max_register_virtual_size.
11334 Adjust copyright year.
11335
11336 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11337
11338 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11339 in a function to cover the entire beginning of the function
11340 as well if it does not already.
11341
11342 2002-03-21 Tom Rix <trix@redhat.com>
11343
11344 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11345 (rs6000_ptrace64): Renamed from ptrace64.
11346
11347 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11348
11349 * gdbserver/remote-utils.c (remote_open): Don't call
11350 getprotobyname, we're all using TCP here so just use
11351 IPPROTO_TCP.
11352 * gdbserver/gdbreplay.c (remote_open): Ditto.
11353
11354 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11355
11356 * regcache.c (_initialize_regcache): No need to call
11357 build_regcache() at this time; it gets called whenever
11358 the gdbarch changes.
11359
11360 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11361
11362 * sparc-nat.c: Include sys/param.h where possible.
11363
11364 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11365
11366 Fix PR gdb/422.
11367 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11368 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11369 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11370 complex types.
11371 * stabsread.c (rs6000_builtin_type): Likewise.
11372 (read_sun_floating_type): Likewise.
11373
11374 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11375
11376 * stabsread.c (read_member_functions): Remove skip code for duplicate
11377 constructor/destructor methods. Use standard parsing for these
11378 methods and just do not chain them to the list of methods after
11379 parsing.
11380
11381 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11382
11383 * coffread.c: Remove redundant static declarations. Replace
11384 occurrences of `PTR' with `void *'.
11385 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11386 * top.h (quit_cover): Likewise.
11387 * defs.h (catch_errors): Likewise.
11388
11389 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11390
11391 * defs.h (XMALLOC): Define.
11392 * gdb-events.sh (XMALLOC): Delete macro.
11393 * gdb-events.c, gdb-events.h: Regenerate.
11394 * gdbarch.sh (XMALLOC): Delete macro.
11395 * gdbarch.c: Regenerate.
11396 * serial.c (XMALLOC): Delete macro.
11397 * ui-file.c (XMALLOC): Ditto.
11398 * ser-unix.h (XMALLOC): Ditto.
11399 * sh-tdep.c (XMALLOC): Ditto.
11400 * ui-out.c (XMALLOC): Ditto.
11401 * utils.c (XMALLOC): Ditto.
11402 * i386-tdep.c (XMALLOC): Ditto.
11403 * gdb-events.c (XMALLOC): Ditto.
11404 * d10v-tdep.c (XMALLOC): Ditto.
11405 * cli-out.c (XMALLOC): Ditto.
11406
11407 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11408 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11409 * ui-file.c, ui-out.c: Ditto.
11410
11411 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11412
11413 * command.h (struct cmd_list_element): Add field context.
11414 (set_cmd_context, get_cmd_context): Declare.
11415 * cli/cli-decode.h: Ditto.
11416 * cli/cli-decode.c (get_cmd_context): New function.
11417 (set_cmd_context): New function.
11418 (add_cmd): Initialize context.
11419 Part of fixing PR gdb/145 and PR gdb/146.
11420
11421 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11422
11423 * cli/cli-decode.c (cmd_type): New function.
11424 * command.h (cmd_type): Declare.
11425 * infrun.c (set_schedlock_func): Call function cmd_type.
11426 * kod.c (kod_set_os): Call cmd_type.
11427 * cris-tdep.c (cris_version_update): Use function cmd_type.
11428 (cris_mode_update, cris_abi_update): Ditto.
11429
11430 * command.h: (execute_cmd_post_hook): Declare.
11431 (execute_cmd_pre_hook): Declare.
11432 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11433 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11434 functions. Execute pre/post hook while ensuring that afterwords
11435 hook_in is cleared.
11436 * top.c (execute_command): Use execute_cmd_post_hook, and
11437 execute_cmd_pre_hook to execute pre/post commands.
11438 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11439 hook_stop_stub.
11440 (hook_stop_stub): Call execute_cmd_pre_hook.
11441
11442 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11443
11444 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11445 set'' and this leads to a core dump. Move xstrdup of
11446 operating_system to after check that it is not NULL.
11447
11448 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11449
11450 * kod.c (kod_set_os): Remove unnecessary check that
11451 ``command->type'' is set_cmd.
11452
11453 * valprint.c (set_input_radix): Use input_radix.
11454 (set_output_radix): Use output_radix.
11455 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11456 isn't reverted.
11457
11458 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11459
11460 * value.h (struct value): Delete field ``substring_addr''. Change
11461 aligner fields to force_doublest_align, force_longest_align,
11462 force_core_addr_align and force_pointer_aligh.
11463
11464 * value.h (struct value): Fix typo in above change.
11465
11466 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11467
11468 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11469 to fix internal_error from ``maintenance print architecture''.
11470
11471 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11472
11473 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11474 for gcc versions after gcc-2.8.1.
11475
11476 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11477
11478 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11479 for method resolution. Restore adjustment of ``this'' pointer after
11480 calling value_struct_elt, which was accidentally removed during the
11481 HP merge.
11482
11483 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11484
11485 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11486 value_of_register.
11487 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11488 get_saved_register.
11489 * value.h (value_of_register): Update.
11490
11491 2002-03-14 Richard Henderson <rth@redhat.com>
11492
11493 * configure.in: Detect declaration for canonicalize_file_name.
11494 * utils.c (canonicalize_file_name): Declare, if needed.
11495 (gdb_realpath): Prefer realpath if available and usable.
11496 * config.in, configure: Rebuild.
11497
11498 2002-03-14 Richard Henderson <rth@redhat.com>
11499
11500 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11501 a constant array bound.
11502
11503 * MAINTAINERS: Add myself to write-after-approval.
11504
11505 2002-03-14 Michael Snyder <msnyder@redhat.com>
11506
11507 * symfile.c (syms_from_objfile): Return immediately if no syms.
11508 (symbol_file_add): Return immediately if no syms.
11509 (find_sym_fns): Return immediately if no syms.
11510
11511 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11512
11513 * gdbserver/remote-util.c (remote_open): Print remote-side's
11514 IP address when remote debugging over the network.
11515
11516 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11517
11518 * config/sparc/fbsd.mh: Fix copyright.
11519 * config/sparc/fbsd.mt: Likewise.
11520
11521 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11522
11523 * MAINTAINERS: Fix typo in name of gdb warnings option.
11524 (x86-64): Fix formating so that this can be parsed by awk.
11525
11526 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11527
11528 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11529 * defs.h: Include "gdb/signals.h".
11530 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11531
11532 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11533
11534 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11535 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11536 from x86-64-tdep.h
11537
11538 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11539 Don Howard <dhoward@redhat.com>
11540
11541 * mips-tdep.c (ST0_FR): Define.
11542 (mips2_fp_compat): New function, temporarily disabled.
11543 (mips_read_fp_register_single): New function.
11544 (mips_read_fp_register_double): New function.
11545 (mips_print_register): Use them.
11546 (do_fp_register_row): Likewise.
11547
11548 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11549
11550 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11551 approval''.
11552
11553 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11554
11555 * stabsread.c (read_member_functions): Fix is_stub test for
11556 static member functions, improve comment.
11557
11558 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11559
11560 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11561 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11562 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11563 commands that set boolean values.
11564 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11565 (arm_rdi_resume): Always initialize PC.
11566 (arm_rdi_open): Don't use rslt as a boolean.
11567 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11568 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11569 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11570 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11571
11572 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11573
11574 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11575 * configure: Rebuilt.
11576
11577 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11578
11579 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11580 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11581
11582 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11583
11584 * cli/cli-decode.c (set_cmd_completer): New function.
11585 * command.h (set_cmd_completer): Declare.
11586 * cli/cli-decode.h (set_cmd_completer): Ditto.
11587
11588 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11589 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11590 * win32-nat.c (_initialize_inftarg): Ditto.
11591 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11592 * proc-api.c (_initialize_proc_api): Ditto.
11593 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11594 * source.c (_initialize_source): Ditto.
11595 * exec.c (_initialize_exec): Ditto.
11596 * solib.c (_initialize_solib): Ditto.
11597 * top.c (init_main): Ditto.
11598 * tracepoint.c (_initialize_tracepoint): Ditto.
11599 * symfile.c (_initialize_symfile): Ditto.
11600 * printcmd.c (_initialize_printcmd): Ditto.
11601 * infcmd.c (_initialize_infcmd): Ditto.
11602 * corefile.c (_initialize_core): Ditto.
11603
11604 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11605
11606 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11607
11608 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11609
11610 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11611
11612 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11613
11614 * NEWS: Update headings, 5.2 has branched.
11615
11616 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11617
11618 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11619 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11620 (register_addr, REGISTER_RAW_SIZE): Likewise.
11621 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11622 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11623
11624 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11625
11626 * MAINTAINERS (x86-64): Add myself.
11627 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11628 changed value_ptr -> struct value *
11629
11630 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11631
11632 * configure.host (sparc64-*-freebsd): Add.
11633 * configure.tgt: Likewise.
11634 * config/sparc/fbsd.mh: New file.
11635 * config/sparc/fbsd.mt: Likewise.
11636 * config/sparc/nm-fbsd.h: Likewise.
11637 * config/sparc/tm-fbsd.h: Likewise.
11638
11639 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11640
11641 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11642 regformats/reg-s390x.dat.
11643
11644 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11645
11646 * utils.c: Add FIXME explaining true/false problem.
11647
11648 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11649
11650 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11651
11652 2002-02-28 Michael Chastain <mec@shout.net>
11653
11654 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11655
11656 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11657
11658 * gdbserver/linux-s390-low.c: New file.
11659 * regformats/reg-s390.dat: New file.
11660 * regformats/reg-s390x.dat: New file.
11661 * gdbserver/configure.srv: Add S/390.
11662 * gdbserver/Makefile.in: Add S/390.
11663 * configure.tgt: Enable gdbserver for S/390.
11664
11665 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11666
11667 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11668 first line of the doc string for "info dos", except at the end of
11669 the sentence, since the short help stops at the first period.
11670
11671 2002-02-28 Jason Merrill <jason@redhat.com>
11672
11673 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11674
11675 2002-02-27 Fred Fish <fnf@redhat.com>
11676
11677 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11678 comment (dumy -> dummy).
11679
11680 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11681
11682 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11683
11684 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11685
11686 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11687
11688 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * gdbserver/acconfig.h: New file.
11691 * gdbserver/i387-fp.c: New file.
11692 * gdbserver/i387-fp.h: New file.
11693 * gdbserver/linux-x86-64.c: New file.
11694 * regformats/reg-x86-64.dat: New file.
11695 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11696 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11697 * gdbserver/configure.in: Add support for regsets.
11698 * gdbserver/config.in: Regenerate.
11699 * gdbserver/configure: Regenerate.
11700 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11701 * gdbserver/linux-low.h: New file.
11702 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11703 for regsets.
11704 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11705 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11706 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11707 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11708 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11709 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11710 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11711 "i387-fp.h". Add PTRACE_GETREGS and friends.
11712 * gdbserver/regcache.c (supply_register): New function.
11713 (supply_register_by_name): New function.
11714 (collect_register): New function.
11715 (collect_register_by_name): New function.
11716
11717 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11718
11719 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11720 (config.status): Add configure.srv dependency.
11721 (server_h): Add config.h dependency.
11722
11723 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11724
11725 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11726 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11727 * gdbserver/configure.srv: Change i386-*-linux* to use
11728 reg-i386-linux.o.
11729
11730 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11731
11732 * x86-64-tdep.c: Re-indent. Update copyright date.
11733
11734 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11735
11736 From Michal Ludvig <mludvig@suse.cz>:
11737 * x86-64-tdep.c (value.h): Delete.
11738 (gdb_assert.h): Include.
11739 (x86_64_register_convert_to_virtual,
11740 x86_64_register_convert_to_raw ): Add check which lets only
11741 floating-point values to be converted.
11742 (value_push): Delete.
11743 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11744 (i386_gdbarch_init): Number of register_bytes fixed.
11745
11746 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11747
11748 * MAINTAINERS: Add x86-64 target.
11749
11750 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11751
11752 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11753 * osfsolib.c (solib_map_sections): Ditto.
11754 * irix5-nat.c (solib_map_sections): Ditto.
11755 * corelow.c (gdb_check_format): Ditto.
11756 * symfile.c (symfile_bfd_open): Ditto.
11757 * solib.c (solib_map_sections): Ditto.
11758 Fix PR gdb/354.
11759
11760 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11761
11762 * remote.c (_initialize_remote): By default, disable ``e'' and
11763 ``E'' step out-of-range packets.
11764
11765 2002-02-26 Andreas Schwab <schwab@suse.de>
11766
11767 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11768 m68k_linux_frame_saved_pc.
11769 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11770 in_sigtramp.
11771 (SIGCONTEXT_PC_OFFSET): Remove.
11772 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11773 m68k_linux_sigtramp_saved_pc): New functions.
11774 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11775 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11776 (UCONTEXT_PC_OFFSET): Define.
11777 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11778 non-RT and RT signal trampolines.
11779
11780 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11781
11782 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11783 (TARGET_NBPG, STACK_END_ADDR): Delete
11784 (VARIABLES_INSIDE_BLOCK): Delete.
11785
11786 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11787
11788 * utils.c (perror_with_name): Make string parameter constant.
11789 (print_sys_errmsg): Ditto.
11790 (query): Ditto.
11791 * defs.h (perror_with_name): Update.
11792 (print_sys_errmsg): Update.
11793 (query): Update.
11794
11795 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11796
11797 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11798 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11799
11800 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11801
11802 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11803 if it already matches the current architecture from the exec file.
11804 Include arch-utils.h for gdbarch_info_init prototype.
11805 * Makefile.in (rs6000-nat.o): Update dependencies.
11806
11807 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11808
11809 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11810 list of exported variables.
11811
11812 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11813
11814 * gdbserver/configure.srv: New file.
11815 * gdbserver/configure.in: Use configure.srv instead
11816 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11817 from it.
11818 * gdbserver/configure: Regenerated.
11819 * gdbserver/terminal.h: New file.
11820 * gdbserver/Makefile.in: Update for configure changes. Remove
11821 more unneeded include paths.
11822
11823 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11824
11825 From wiz at danbala:
11826 * config/sparc/tm-sp64.h: Fix grammar and typos.
11827 Fix PR gdb/287.
11828
11829 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11830
11831 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11832 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11833 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11834 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11835 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11836 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11837 * s390-tdep.c: Ditto.
11838 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11839 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11840 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11841 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11842 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11843 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11844 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11845 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11846 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11847 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11848 Fix PR gdb/378.
11849
11850 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11851
11852 * lin-thread.c: Delete file.
11853 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11854 to gdb_proc_service.h.
11855 * configure: Re-generate.
11856
11857 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11858 * serial.c (serial_open): Delete check for "ocd".
11859 Fix PR gdb/349.
11860
11861 * Makefile.in (linux-thread.o): Delete target.
11862 * linux-thread.c: Delete file.
11863
11864 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11865 renamed SH files to be consistent.
11866
11867 * symtab.c (sort_search_symbols): Use xfree.
11868
11869 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11870
11871 * arm-linux-tdep.c (arm_linux_init_abi): Register
11872 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11873 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11874 definition with undef, since we don't want the sysvr4 definition.
11875 (SKIP_TRAMPOLINE_CODE): Likewise.
11876
11877 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11878
11879 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11880
11881 * configure.in: (AC_CHECK_FUNCS) Added test for
11882 canonicalize_file_name Regenerated.
11883 * config.in, configure: Regenerated.
11884 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11885 defined use canonicalize_file_name.
11886
11887 2002-02-23 Michael Chastain <mec@shout.net>
11888
11889 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11890
11891 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11892
11893 * README: Remove references to cygnus.com.
11894 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11895 dot com'' form. Remove references to cygnus.com and sourceware.
11896
11897 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11898
11899 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11900 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11901 1003.1-2001 no longer allows "head -1".
11902 * gdb/Makefile.in (version.c): Likewise.
11903 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11904 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11905 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11906
11907 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11908
11909 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11910 * command.h (cmd_cfunc_eq): Declare.
11911 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11912
11913 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11914 ``struct cmd_list_element *''.
11915 * cli/cli-cmds.c (is_complete_command): Update. Use
11916 cmd_cfunc_eq.
11917 * top.c (execute_command): Pass the command to
11918 is_complete_command.
11919 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11920
11921 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11922
11923 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11924 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11925 architecture defines.
11926 * s390-tdep.c (s390_gdbarch_init): Likewise.
11927
11928 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11929
11930 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11931 (arm_linux_push_arguments): Likewise.
11932 (arm_linux_init_abi): Register them. Also register linux-specific
11933 call_dummy_words.
11934 (find_minsym_and_objfile): Use strcmp, not STREQ.
11935 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11936 (arm_linux_call_dummy_words): Delete declaration.
11937 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11938 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11939 declarations.
11940 (LOWEST_PC): Delete.
11941
11942 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11943
11944 * maint.c (print_section_info): Do not prepend `0x' to filepos
11945 output, it will be handled by local_hex_string_custom.
11946
11947 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11948
11949 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11950 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11951 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11952
11953 2002-02-22 Jim Blandy <jimb@redhat.com>
11954
11955 Indicate that the bcache functions don't change the strings
11956 they're passed.
11957 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11958 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11959
11960 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11961
11962 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11963
11964 2002-02-21 Christopher Faylor <cgf@redhat.com>
11965
11966 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11967 find the complete path to a loaded DLL.
11968
11969 2002-02-21 Fred Fish <fnf@redhat.com>
11970
11971 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11972 that marks the end of the range of a function, enter a line number
11973 entry that has a line number of zero and a PC offset that matches
11974 the end of the function. This starts a range of PC's for which no
11975 line number information is known.
11976 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11977 PC's for which no line number info is found (line number is zero)
11978 then we didn't find any valid line information.
11979 * symtab.h: Document use of zero line number entry.
11980
11981 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11982
11983 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11984 (have_ptrace_getvrregs): Define for run time checks.
11985 (gdb_vrregset_t): New type for Altivec register handling.
11986 (fetch_register, store_register): Fetch/store altivec register
11987 when needed.
11988 (fetch_altivec_register, store_altivec_register): New functions.
11989 (supply_vrregset, fill_vrregset): New functions.
11990 (fetch_altivec_registers, store_altivec_registers): New functions.
11991 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11992 registers as well.
11993
11994 2002-02-21 Jiri Smid <smid@suse.cz>
11995
11996 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11997
11998 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11999
12000 * Makefile.in (armnbsd-nat.o): Update dependencies.
12001 * armnbsd-nat.c (supply_gregset): New function. Common code to
12002 supply the integer register set.
12003 (supply_fparegset): New function. Similar for FPA registers.
12004 (fetch_regs, fetch_fp_regs): Use them.
12005 (fetch_core_registers): Likewise.
12006 (fetch_elfcore_registers): New function.
12007 (arm_netbsd_elfcore_fns): New core-file type specification.
12008 (_initialize_arm_netbsd_nat): Register it.
12009
12010 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12011
12012 * armnbsd-nat.c: Include gdbcore.h.
12013 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12014 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12015 'void' to declaration, to shut up ARI.
12016 (fetch_core_registers): Make static. Rewrite using supply_register.
12017 (arm_netbsd_core_fns): New core-file type specification.
12018 (_initialize_arm_netbsd_nat): New function.
12019
12020 2002-02-21 Christopher Faylor <cgf@redhat.com>
12021
12022 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12023 value.
12024
12025 2002-02-20 Christopher Faylor <cgf@redhat.com>
12026
12027 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12028 fails.
12029
12030 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12031
12032 * jv-exp.y (parse_number): Change type of implicit longs
12033 to builtin_type_uint64.
12034
12035 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12036
12037 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12038 to be an integer instead of a `union wait'.
12039
12040 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12041
12042 * mips-linux-nat.c: Call the operating system GNU/Linux.
12043 * mips-linux-tdep.c: Likewise.
12044 * mips-tdep.c: Likewise.
12045
12046 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12047
12048 Fix PR gdb/265.
12049 * jv-exp.y (parse_number): Handle 64-bit integers.
12050
12051 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12052
12053 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12054 AC_STDC_HEADERS to AC_HEADER_STDC.
12055 * gdbserver/configure: Regenerated.
12056
12057 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12058
12059 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12060 is defined.
12061 * sparc-tdep.c (get_longjmp_target): Likewise.
12062
12063 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12064
12065 * News: Add news about ARM and Multi-arch. Mention the new target
12066 arm*-*-netbsd*.
12067
12068 2002-02-19 Jim Blandy <jimb@redhat.com>
12069
12070 * stabsread.c (error_type_complaint): Improve error message.
12071
12072 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12073
12074 * gdbserver/README: Update documentation.
12075 * gdbserver/configure.in: Update configury to match documentation.
12076 * gdbserver/Makefile.in: Likewise.
12077 * gdbserver/configure: Regenerated.
12078 * gdbserver/aclocal.m4: New file, generated by aclocal.
12079 * gdbserver/config.in: New file, generated by autoheader.
12080
12081 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12082
12083 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12084 armnbsd-nat.c.
12085
12086 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12087
12088 * arm-tdep.h (enum arm_float_model): New enum.
12089 (struct gdbarch_tdep): Add fp_model.
12090 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12091 up floating-point conversions until we know the floating-point model
12092 in use by the inferior. Don't complain about being unable to
12093 determine the ABI of the inferior when we don't have one.
12094 (arm_extract_return_value): Support different floating-point models.
12095 (arm_store_return_value): Likewise.
12096 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12097 ARM_FLOAT_SOFT.
12098 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12099
12100 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12101
12102 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12103 of ``current_gdbarch''.
12104
12105 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12106
12107 * armnbsd-nat.c : ANSIfy all function declarations.
12108 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12109 (fetch_inferior_registers): Re-implement in terms of above.
12110 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12111 (store_inferior_registers): Re-implement in terms of above.
12112
12113 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12114
12115 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12116 kernel.
12117 * arm-linux-tdep.c: Likewise.
12118 * config/arm/tm-linux.h: Likewise.
12119
12120 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12121
12122 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12123 * config/arm/nbsd.mt (TM_FILE): Delete.
12124 * config/arm/tm-nbsd.h: Delete.
12125
12126 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12127
12128 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12129 Initialize CALL_DUMMY_LENGTH.
12130
12131 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12132
12133 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12134 function.
12135 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12136 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12137 defines one thing and that is incorrect for this port.
12138 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12139
12140 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12141
12142 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12143
12144 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12145
12146 * win32-nat.c (display_selector): New function. Displays information
12147 about the information returned by GetThreadSelectorEntry API function.
12148 (display_selectors): New function. Displays the infomation of
12149 the selector given as argument, or of CS, DS ans FS selectors
12150 if no argument is given.
12151 ( _initialize_inftarg): Add "w32" as info prefix command.
12152 Add "info w32 selector" as command calling display_selectors.
12153
12154 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12155
12156 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12157 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12158 if not defined.
12159
12160 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12161
12162 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12163
12164 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12165
12166 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12167 (arm_fix_call_dummy): Call it.
12168 (arm_call_dummy_breakpoint_offset): Delete.
12169 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12170 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12171
12172 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12173
12174 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12175 Default to func_frame_chain_valid.
12176 * gdbarch.h, gdbarch.c: Re-generate.
12177 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12178
12179 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12180
12181 * ppc-linux-nat.c: Update copyright.
12182 (fetch_register, store_register): Add tid parameter, don't compute
12183 tid here.
12184 (fetch_ppc_registers, store_ppc_registers): Add tid
12185 parameter. Pass it along to callees.
12186 (fetch_inferior_registers, store_inferior_registers): Compute tid
12187 here, and pass it to calleed functions.
12188 (fill_gregset, supply_fpregset): Clean up formatting.
12189
12190 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12191
12192 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12193 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12194
12195 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12196
12197 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12198 * gdbarch.c gdbarch.h: Regenerate.
12199 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12200 function.
12201 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12202 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12203 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12204
12205 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12206 * arm-tdep.c (arm_get_longjmp_target): New function.
12207 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12208 this to a positive value register arm_get_longjmp_target as the
12209 longjmp handler.
12210 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12211 (arm_linux_init_abi): Set up longjmp description in tdep.
12212 * armnbsd-nat.c (get_longjmp_target): Delete.
12213 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12214 description in tdep.
12215 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12216 (get_longjmp_target): Delete declaration.
12217 (GET_LONGJMP_TARGET): Delete.
12218 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12219 (GET_LONGJMP_TARGET): Delete.
12220
12221 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12222
12223 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12224 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12225 of ``current_gdbarch''.
12226
12227 2002-02-17 Tom Tromey <tromey@redhat.com>
12228
12229 * cli/cli-cmds.c (compare_strings): New function.
12230 (complete_command): Only print each unique item once.
12231 * completer.h (complete_line): Declare.
12232 * completer.c (complete_line): New function.
12233 (line_completion_function): Use it.
12234
12235 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12236
12237 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12238 * gdbarch.h, gdbarch.c: Re-generate.
12239
12240 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12241
12242 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12243
12244 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12245
12246 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12247 * valops.c (value_arg_coerce): Don't take the address of a reference
12248 to convert an argument to a reference.
12249
12250 2002-02-15 Christopher Faylor <cgf@redhat.com>
12251
12252 * win32-nat.c (get_image_name): New function.
12253 (handle_load_dll): Use get_image_name function.
12254 (get_child_debug_event): Avoid registering debug events until possibly
12255 execed process is started.
12256 (child_create_inferior): Allow invocation via shell so that command
12257 line redirection, etc. works ok.
12258 (_initialize_inftarg): Add new command: "set shell" to control whether
12259 a shell is used to start a process.
12260
12261 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12262
12263 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12264 instead of find_register_by_number.
12265 (cannot_store_register): Likewise.
12266
12267 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12268
12269 * dwarf2read.c: Replace fprintf (stderr, ...) by
12270 fprintf_unfiltered (gdb_stderr, ...).
12271
12272 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12273
12274 * gdbserver/gdbserver.1: Document --attach.
12275
12276 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12277
12278 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12279 descriptions.
12280 * arm-tdep.c (arm_default_arm_le_breakpoint)
12281 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12282 (arm_default_thumb_be_breakpoint): New. Initialize them from
12283 traditional breakpoint defines.
12284 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12285 (arm_gdbarch_init): Initialize new breakpoint variables.
12286 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12287 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12288 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12289 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12290 code out to ...
12291 (arm_netbsd_init_abi_common): ... here; new function.
12292 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12293 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12294 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12295 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12296
12297 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12298
12299 * arm-tdep.h (enum arm_abi): New enum.
12300 (struct gdbarch_tdep): New structure.
12301 (LOWEST_PC): Provide a default.
12302 (arm_gdbarch_register_os_abi): Declare new function.
12303 * arm-tdep.c (arm_abi_names): New array.
12304 (process_note_abi_tag_sections): New function.
12305 (get_elfosabi): New function.
12306 (arm_gdbarch_register_os_abi): New function.
12307 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12308 support for that ABI has been built in, then call the appropriate
12309 configuration routine. Use gdbarch_num_regs() to get the number
12310 of registers.
12311 (arm_dump_tdep): New function.
12312 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12313 place-holder functions.
12314 (_initialize_arm_tdep): Register them.
12315 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12316
12317 * armnbsd-tdep.c: New file.
12318 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12319 * config/arm/nbsd.mt (TDEPFILES): Add it.
12320 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12321
12322 * armnbsd-nat.c: Include regcache.h.
12323 * Makefile.in (armnbsd-nat.o): Update dependency list.
12324
12325 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12326
12327 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12328
12329 * gdbserver/Makefile.in: Fix typos in target rules.
12330
12331 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12332
12333 Fix part of PR gdb/267.
12334 * linespec.c (find_methods): Handle constructors specially for now.
12335
12336 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12337
12338 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12339 handling.
12340 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12341 standard_coerce_float_to_double().
12342
12343 2002-02-14 Christopher Faylor <cgf@redhat.com>
12344
12345 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12346 GDBINIT_FILENAME.
12347
12348 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12349
12350 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12351 find_variant_by_name, because it confuses the multiarch
12352 framework. Return NULL if there isn't an architecture with the
12353 user supplied name, instead of forcing a different one without
12354 recording the change with the multiarch machinery.
12355 (find_variant_by_name): Delete.
12356
12357 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12358
12359 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12360 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12361
12362 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12363
12364 * stack.c (print_frame_info_base): When calling
12365 print_frame_info_listing_hook, set current_source_symtab.
12366
12367 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12368
12369 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12370 and remove unused $(INCLUDE_DIR).
12371 Add regcache.c to OBS.
12372 Add generated register protocol files to clean target.
12373 Update dependencies for new objects, obsolete old target code.
12374
12375 * gdbserver/linux-low.c: Remove all platform-specific code to
12376 new files. Remove various dead code. Update to use regcache
12377 functionality.
12378 * gdbserver/remote-utils.c (fromhex): Add return statement
12379 to quiet warning.
12380 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12381 constant.
12382 (input_interrupt): Add integer parameter to match prototype
12383 of a signal handler.
12384 (outreg): Use register_data ().
12385 (prepare_resume_reply): Use gdbserver_expedite_regs.
12386 * gdbserver/server.c (main): Dynamically allocate own_buf because
12387 PBUFSIZ is no longer constant. Use registers_to_string () and
12388 registers_from_string ().
12389 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12390 for error (), fatal (), and warning (). Update definition of
12391 PBUFSIZ to use regcache functionality. Add include guard.
12392 * gdbserver/utils.c (fatal): Add missing ``const''.
12393 (warning): New function.
12394
12395 * regformats/regdat.sh: Include "regcache.h" in generated files.
12396 Provide init_registers () function.
12397 * regformats/regdef.h: Add prototype for set_register_cache ().
12398 Add include guard.
12399
12400 * gdbserver/linux-arm-low.c: New file.
12401 * gdbserver/linux-i386-low.c: New file.
12402 * gdbserver/linux-ia64-low.c: New file.
12403 * gdbserver/linux-m68k-low.c: New file.
12404 * gdbserver/linux-mips-low.c: New file.
12405 * gdbserver/linux-ppc-low.c: New file.
12406 * gdbserver/linux-sh-low.c: New file.
12407
12408 * gdbserver/regcache.c: New file.
12409 * gdbserver/regcache.h: New file.
12410
12411 * gdbserver/low-linux.c: Removed obsolete file.
12412
12413 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12414
12415 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12416 * config/i386/linux.mt: Likewise.
12417 * config/ia64/linux.mt: Likewise.
12418 * config/m68k/linux.mh: Likewise.
12419 * config/powerpc/linux.mh: Likewise.
12420 * config/mips/linux.mt: Likewise.
12421
12422 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12423
12424 * config/i386/i386lynx.mh: Mark gdbserver variables
12425 as (currently) obsolete for this target.
12426 * config/i386/nbsd.mt: Likewise.
12427 * config/i386/nbsdelf.mt: Likewise.
12428 * config/m32r/m32r.mt: Likewise.
12429 * config/m68k/m68klynx.mh: Likewise.
12430 * config/m68k/nbsd.mt: Likewise.
12431 * config/m68k/sun3os4.mh: Likewise.
12432 * config/mips/vr5000.mt: Likewise.
12433 * config/ns32k/nbsd.mt: Likewise.
12434 * config/pa/hppabsd.mh: Likewise.
12435 * config/pa/hppaosf.mh: Likewise.
12436 * config/powerpc/nbsd.mt: Likewise.
12437 * config/rs6000/rs6000lynx.mh: Likewise.
12438 * config/s390/s390.mt: Likewise.
12439 * config/s390/s390x.mt: Likewise.
12440 * config/sparc/sparclynx.mh: Likewise.
12441 * config/sparc/sun4os4.mh: Likewise.
12442 * config/i386/x86-64linux.mt: Likewise.
12443 * config/sparc/linux.mh: Likewise.
12444
12445 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12446
12447 * configure.tgt: Configure gdbserver only for known working
12448 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12449 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12450 SUBDIRS if it is configured. Update comment for ${nativefile}.
12451 * configure: Regenerated.
12452
12453 2002-02-13 Michael Snyder <msnyder@redhat.com>
12454
12455 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12456
12457 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12458 (default_gcore_mach): Just return 0, work around a problem in bfd.
12459 (default_gcore_target): OK to return NULL if exec_bfd is null.
12460 (make_mem_sec): Use a cast, avoid a warning.
12461
12462 * procfs.c (find_memory_regions_callback): Use a cast instead of
12463 calling host_pointer_to_address (which complains if
12464 sizeof (host pointer) != sizeof (target pointer)).
12465 (procfs_make_note_section): Avoid overflow in psargs string.
12466
12467 * procfs.c (procfs_make_note_section): Make the default
12468 implementation return an error.
12469
12470 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12471
12472 * procfs.c (procfs_make_note_section): Provide a default definition
12473 (for alpha-dec-osf4.0f). Fix typos.
12474
12475 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12476
12477 * linux-proc.c: Add include of regcache.h.
12478 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12479
12480 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12481
12482 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12483 * memattr.c (create_mem_region): Disallow useless empty region.
12484 Regions are half-open intervals, so allow [A..B) [B..C) as
12485 non-overlapping.
12486
12487 2002-02-13 Michael Chastain <mec@shout.net>
12488
12489 * defs.h: Kill CONST_PTR.
12490 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12491 * c-lang.c (c_builtin_types): Likewise.
12492 * ch-lang.c (ch_builtin_types): Likewise.
12493 * f-lang.c (f_builtin_types): Likewise.
12494 * language.c (unknown_builtin_types): Likewise.
12495 * m2-lang.c (m2_builtin_types): Likewise.
12496 * p-lang.c (pascal_builtin_types): Likewise.
12497 * scm-lang.c (c_builtin_types): Likewise.
12498
12499 2002-02-13 Keith Seitz <keiths@redhat.com>
12500
12501 * arm-tdep.h (arm_get_next_pc): Add declaration.
12502
12503 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12504
12505 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12506 with other related struct-returning functions.
12507 (arm_extract_struct_value_address): New function.
12508 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12509 initialize float_format, double_format and long_double_format as
12510 appropriate to the endianness of the target.
12511 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12512 (arm_use_struct_convention): Delete declaration.
12513 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12514
12515 2002-02-13 Keith Seitz <keiths@redhat.com>
12516
12517 * defs.h (core_addr_to_string_nz): New function.
12518
12519 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12520
12521 Apply missing bits of 2002-01-15 patch.
12522 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12523 (fill_fpregset): Use i387_fill_fsave.
12524
12525 2002-02-12 Keith Seitz <keiths@redhat.com>
12526
12527 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12528 (core_addr_to_string_nz): New function.
12529
12530 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12531
12532 * arm-linux-nat.c: Really include arm-tdep.h.
12533 * config/arm/tm-linux.h (struct type, struct value): Declare.
12534
12535 2002-02-11 Michael Snyder <msnyder@redhat.com>
12536
12537 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12538 (gcore section): Ifdef for Solaris and Unixware only.
12539 (procfs_do_thread_registers): Unixware needs one lwpstatus
12540 per thread (not one prstatus or pstatus).
12541 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12542 not over all gdb threads. For unixware, call elfcore_write_pstatus
12543 once before iterating over threads.
12544
12545 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12546
12547 * arm-tdep.h: New file.
12548 * arm-tdep.c: Include arm-tdep.h.
12549 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12550 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12551 (arm_print_float_info, arm_register_type, convert_to_extended)
12552 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12553 (arm_extract_return_value, arm_register_name): Make static.
12554 (arm_software_single_step): Similarly. Fix types in declaration.
12555 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12556 (arm_store_return_value, arm_store_struct_return): New functions.
12557 (arm_gdbarch_init): Register the above functions. Also register
12558 call_dummy_start_offset, sizeof_call_dummy_words,
12559 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12560 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12561 max_register_virtual_size, register_size. Set up
12562 prologue_cache.saved_regs here, rather than ...
12563 (_initialize_arm_tdep): ... here.
12564 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12565 declarations.
12566 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12567 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12568 (arm_print_float_info, arm_register_type, convert_to_extended)
12569 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12570 (arm_extract_return_value, arm_register_name): Delete declarations.
12571 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12572 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12573 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12574 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12575 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12576 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12577 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12578 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12579 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12580 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12581 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12582 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12583 interface.
12584 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12585 * remote-rdi.c remote-rdp.c: Likewise.
12586 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12587 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12588 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12589 definition.
12590
12591 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12592 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12593 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12594 from non-ARM_ prefixed definitions.
12595 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12596 all uses of above.
12597 * remote-rdi.c remote-rdp.c: Likewise.
12598 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12599
12600 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12601
12602 * arm-tdep.c (arm_frameless_function_invocation)
12603 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12604 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12605 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12606 (arm_pop_frame, arm_get_next_pc): Make static.
12607 (arm_gdbarch_init): Register above in gdbarch structure.
12608 (arm_read_fp): Renamed from arm_target_read_fp.
12609 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12610 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12611 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12612 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12613 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12614 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12615 (arm_pc_is_thumb_dummy): Delete declarations.
12616 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12617 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12618 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12619 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12620
12621 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12622
12623 * symtab.c (compare_search_syms): New function.
12624 (sort_search_symbols): New function.
12625 (search_symbols): Sort symbols after searching rather than
12626 before.
12627
12628 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12629
12630 * NEWS: Linux -> GNU/Linux.
12631
12632 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12633
12634 * gdbarch.sh: For for level one methods, disallow a definition
12635 when partially multi-arched. Add comments explaining rationale.
12636 * gdbarch.h: Re-generate.
12637
12638 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12639
12640 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12641 multi-arch partial.
12642
12643 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12644
12645 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12646 field. Use diff -u.
12647 * gdbarch.c: Re-generate.
12648
12649 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12650
12651 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12652 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12653 partial.
12654
12655 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12656
12657 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12658 multi-arch partial.
12659 (PUSH_ARGUMENTS): Switch to using predefault.
12660 * gdbarch.c: Regenerate.
12661
12662 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12663
12664 * valops.c (PUSH_ARGUMENTS): Delete definition.
12665 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12666 partial. Default to default_push_arguments.
12667 * gdbarch.h, gdbarch.c: Regenerate.
12668
12669 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12670
12671 * defs.h (throw_exception): Rename return_to_top_level. Update
12672 comments.
12673 * utils.c (error_stream, internal_verror, quit): Ditto.
12674 * top.c (throw_exception, catcher): Ditto.
12675 * sparclet-rom.c (sparclet_load): Ditto.
12676 * remote.c (interrupt_query, minitelnet): Ditto.
12677 * remote-sds.c (interrupt_query): Ditto.
12678 * remote-mips.c (mips_error, mips_kill): Ditto.
12679 * ocd.c (interrupt_query): Ditto.
12680 * monitor.c (monitor_interrupt_query): Ditto.
12681 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12682 * target.h: Update comment.
12683
12684 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12685
12686 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12687
12688 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12689 default_double_format.
12690 * gdbarch.h, gdbarch.c: Re-generate.
12691 * findvar.c (floatformat_unknown): Delete variable definition.
12692 * doublest.h (floatformat_unknown): Delete variable declaration.
12693
12694 2002-02-09 Jim Blandy <jimb@redhat.com>
12695
12696 * stabsread.c (read_type): Add code to parse Sun's syntax for
12697 prototyped function types.
12698
12699 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12700
12701 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12702 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12703
12704 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12705
12706 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12707 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12708 now _initialize_xcoffsolib gets called again and overrides the
12709 commands from solib.c in a native configuration.
12710
12711 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12712
12713 * doublest.c (store_typed_floating): Don't try to return a value.
12714 Fixes PR gdb/290.
12715
12716 2002-02-08 Jim Blandy <jimb@redhat.com>
12717
12718 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12719 is prototyped and has no arguments, print its argument list as
12720 `(void)'.
12721
12722 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12723
12724 * MAINTAINERS (write-after-approval): Add myself.
12725 (paper-trail): I've escaped!
12726
12727 2002-02-08 Christopher Faylor <cgf@redhat.com>
12728
12729 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12730 changes.
12731 (_initialize_check_for_gdb_ini): Ditto.
12732
12733 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12734
12735 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12736 xaprintf -> xasprintf.
12737
12738 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12739
12740 * win32-nat.c: Remove use of printf and sprintf functions.
12741
12742 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12743
12744 * arm-tdep.c (arm_frame_chain_valid): Make static.
12745 (arm_push_arguments): Likewise.
12746 (arm_gdbarch_init): New function.
12747 (_initialize_arm_tdep): Call it.
12748 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12749 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12750 (FRAME_CHAIN_VALID): Delete.
12751 (arm_frame_chain_valid): Delete declaration.
12752 (PUSH_ARGUMENTS): Delete.
12753 (arm_push_arguments): Delete declaration.
12754 (CALL_DUMMY_P): Delete.
12755
12756 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12757 Corinna Vinschen <vinschen@redhat.com>
12758
12759 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12760 on builtin float types.
12761
12762 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12763
12764 * utils.c: Include <curses.h> before "bfd.h".
12765 * tui/tui-hooks.c: Likewise.
12766 * tui/tui.c: Likewise.
12767 * tui/tuiCommand.c: Likewise.
12768 * tui/tuiData.c: Likewise.
12769 * tui/tuiDataWin.c: Likewise.
12770 * tui/tuiDisassem.c: Likewise.
12771 * tui/tuiGeneralWin.c: Likewise.
12772 * tui/tuiIO.c: Likewise.
12773 * tui/tuiLayout.c: Likewise.
12774 * tui/tuiRegs.c: Likewise.
12775 * tui/tuiSource.c: Likewise.
12776 * tui/tuiSourceWin.c: Likewise.
12777 * tui/tuiStack.c: Likewise.
12778 * tui/tuiWin.c: Likewise.
12779
12780 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12781
12782 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12783 to include space for pseudoregs as well. Update loops accordingly.
12784 (sh_fp_frame_init_saved_regs): Ditto.
12785 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12786
12787 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12788
12789 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12790 Add Richard Earnshaw to Arm maintainers.
12791
12792 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12793
12794 * defs.h (warning_begin): Delete declaration.
12795
12796 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12797 Delete macro.
12798
12799 2002-02-07 Michael Snyder <msnyder@redhat.com>
12800
12801 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12802 Logic bug, remove misplaced else.
12803
12804 2002-02-07 Klee Dienes <klee@apple.com>
12805
12806 * fork-inferior.c (fork_inferior): Add '!' to the list of
12807 characters that need to be quoted when building a string for the
12808 shell. Quote '!' specifically with a backslash, since CSH chokes
12809 when trying to evaluate "str!str".
12810
12811 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12812
12813 * rdi-share/host.h: Only provide a typedef for bool if it is not
12814 defined.
12815
12816 2002-02-04 Michael Snyder <msnyder@redhat.com>
12817
12818 * breakpoint.h (enum bptype): Add new overlay event bp type.
12819 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12820
12821 * breakpoint.c (create_internal_breakpoint): New function.
12822 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12823 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12824 (create_thread_event_breakpoint): Ditto.
12825 (create_solib_event_breakpoint): Ditto.
12826 (create_overlay_event_breakpoint): New function.
12827 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12828 (update_breakpoints_after_exec): Delete and re-initialize
12829 overlay event breakpoints after an exec. Add FIXME comment
12830 about longjmp breakpoint.
12831 (print_it_typical): Ignore overlay event breakpoints.
12832 (print_one_breakpoint): Ditto.
12833 (mention): Ditto.
12834 (bpstat_what): Do not stop for overlay event breakpoints.
12835 (delete_breakpoint): Don't delete overlay event breakpoints.
12836 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12837 (breakpoint_re_set): Re-create overlay event breakpoint.
12838
12839 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12840 (overlay_manual_command): Disable overlay breakpoints.
12841 (overlay_off_command): Disable overlay breakpoints.
12842
12843 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12844
12845 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12846 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12847 to here from config/tm-arm.h.
12848 (coff_sym_is_thumb): Make static.
12849 (arm_elf_make_msymbol_special): New function.
12850 (arm_coff_make_msymbol_special): New function.
12851 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12852 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12853 (coff_sym_is_thumb): Delete declaration.
12854 (arm_elf_make_msymbol_special): Declare.
12855 (arm_coff_make_msymbol_special): Declare.
12856 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12857 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12858
12859 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12860
12861 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12862
12863 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12864
12865 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12866 * gdbarch.c gdbarch.h: Regenerate.
12867 * arch-utils.c (default_print_float_info): New function.
12868 * arch-utils.h (default_print_float_info): Prototype it.
12869 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12870 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12871 (PRINT_FLOAT_INFO): Document it.
12872
12873 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12874 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12875 (PRINT_FLOAT_INFO): Define.
12876
12877 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12878
12879 * win32-nat.c (_initialize_check_for_gdb_ini):
12880 Add typecast to sprintf argument to suppress a warning.
12881
12882 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12883
12884 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12885 to allow easier handling of pass state.
12886 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12887 that gives exception name and address.
12888 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12889 and set last_sig value to ourstatus->value.sig. Some missing
12890 exceptions added.
12891 (child_continue): Correctly report continue_status.
12892 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12893 TARGET_SIGNAL_0 (new default value).
12894 (child_resume): consider sig argument passed to decide if
12895 the exception should be passed to debuggee or not.
12896
12897 2002-02-05 Michael Snyder <msnyder@redhat.com>
12898
12899 * regcache.c (fetch_register): Call target_fetch_register
12900 only if we don't call FETCH_PSEUDO_REGISTER.
12901 (store_register): Call target_store_register only if we
12902 don't call STORE_PSEUDO_REGISTER.
12903
12904 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12905
12906 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12907 ELF_MAKE_MSYMBOL_SPECIAL.
12908 * gdbarch.c, gdbarch.h: Regenerate.
12909 * arch-utils.c (default_make_msymbol_special): New function.
12910 * arch-utils.h (default_make_msymbol_special): Export.
12911 * elfread.c (elf_symtab_read): Compile use of
12912 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12913 multiarched.
12914 * coffread.c (coff_symtab_read): Ditto, for
12915 COFF_MAKE_MSYMBOL_SPECIAL.
12916
12917 2002-02-05 Jim Blandy <jimb@redhat.com>
12918
12919 * solib-svr4.c (svr4_truncate_ptr): New function.
12920 (svr4_relocate_section_addresses): Do the address arithmetic with
12921 the appropriate truncation for target addresses, even when
12922 CORE_ADDR is larger than a target address.
12923
12924 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12925
12926 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12927 to (int *).
12928
12929 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12930
12931 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12932 code.
12933
12934 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12935
12936 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12937
12938 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12939
12940 * gdbserver/linux-low.c: Remove unused include files.
12941
12942 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12943
12944 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12945 (read_inferior_memory): Use it.
12946 (write_inferior_memory): Likewise.
12947
12948 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12949
12950 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12951 grubbing through sys_errlist.
12952
12953 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12954
12955 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12956
12957 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12958 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12959
12960 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12961
12962 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12963 (do_sfunc, set_cmd_sfunc): New functions.
12964
12965 * command.h (struct cmd_list_element): Add field func.
12966 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12967 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12968 * cli/cli-decode.h: Ditto.
12969
12970 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12971 (help_all, help_cmd_list): Ditto.
12972 (find_cmd, complete_on_cmdlist): Ditto.
12973 * top.c (execute_command): Ditto.
12974
12975 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12976 function.sfunc.
12977
12978 * infcmd.c (notice_args_read): Fix function signature.
12979
12980 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12981 * cli/cli-decode.c (add_set_cmd): Ditto.
12982 * utils.c (initialize_utils): Ditto.
12983 * maint.c (_initialize_maint_cmds): Ditto.
12984 * infrun.c (_initialize_infrun): Ditto.
12985 * demangle.c (_initialize_demangler): Ditto.
12986 * remote.c (add_packet_config_cmd): Ditto.
12987 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12988 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12989 * proc-api.c (_initialize_proc_api): Ditto.
12990 * kod.c (_initialize_kod): Ditto.
12991 * valprint.c (_initialize_valprint): Ditto.
12992 * top.c (init_main): Ditto.
12993 * infcmd.c (_initialize_infcmd): Ditto.
12994 * corefile.c (_initialize_core): Ditto.
12995 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12996 * arch-utils.c (initialize_current_architecture): Ditto.
12997 (_initialize_gdbarch_utils): Ditto.
12998 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12999
13000 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13001 * wince.c (_initialize_inftarg): Ditto.
13002 * symfile.c (_initialize_symfile): Ditto.
13003 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13004 * language.c (_initialize_language): Ditto.
13005 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13006
13007 2002-02-04 Michael Snyder <msnyder@redhat.com>
13008
13009 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13010
13011 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13012
13013 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13014 Add rules for building the register data files.
13015
13016 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13017
13018 * regformats/regdat.sh: Add braces to the definition of
13019 expedite_regs_${arch}.
13020
13021 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13022
13023 * regformats/regdef.h (struct reg): Add comment describing the
13024 requirements for offset and size fields.
13025
13026 2002-02-04 Andreas Schwab <schwab@suse.de>
13027
13028 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13029 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13030
13031 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13032
13033 * gdbarch.sh (copyright): Update years in generated header.
13034 (SMASH_TEXT_ADDRESS): Add rule.
13035 * gdbarch.h, gdbarch.c: Re-generate.
13036 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13037 * dbxread.c: Likewise.
13038 * dwarfread.c: Likewise.
13039 * elfread.c: Likewise.
13040 * somread.c: Likewise.
13041
13042 * arm-tdep.c (arm_smash_text_address): New function.
13043 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13044
13045 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13046
13047 Add support for hardware watchpoints on win32 native.
13048 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13049 CONTEXT_DEBUG_REGISTERS.
13050 (dr variable): New variable. Static array containing a local copy
13051 of debug registers.
13052 (debug_registers_changed): New variable. Reflects when debug registers
13053 are changed and need to be written to inferior.
13054 (debug_registers_used): New variable. Reflects when any debug register
13055 was set, used when new threads are created.
13056 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13057 i386-nat code.
13058 (thread_rec): Set dr array if id is the thread of current_event .
13059 (child_continue, child_resume): Change the debug registers for all
13060 threads if debug_registers_changed.
13061 (child_add_thread): Change the debug registers if debug_registers_used.
13062 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13063 Link nm.h to new nm-cygwin.h file.
13064 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13065 of hardware registers.
13066
13067 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13068
13069 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13070 Restore behavour broken by 2002-01-20 Andrew Cagney
13071 <ac131313@redhat.com> IEEE_FLOAT removal.
13072
13073 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13074
13075 * c-valprint.c (c_val_print): Pass a proper valaddr to
13076 cp_print_class_method.
13077 * valops.c (search_struct_method): If there is only one method
13078 and args is NULL, return that method.
13079
13080 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13081
13082 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13083 accessing tag_name directly.
13084
13085 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13086
13087 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13088 of accessing tag_name directly.
13089
13090 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13091
13092 PR gdb/280
13093 * gdbtypes.c (replace_type): New function.
13094 * gdbtypes.h (replace_type): Add prototype.
13095 * stabsread.c (read_type): Use replace_type.
13096
13097 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13098
13099 * Makefile.in (memattr.o): Add missing dependencies rule.
13100
13101 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13102
13103 * breakpoint.c (break_at_finish_command): Really export.
13104 (break_at_finish_at_depth_command): Ditto.
13105 (tbreak_at_finish_command): Ditto.
13106 * hppa-tdep.c: Include completer.h.
13107 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13108 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13109
13110 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13111
13112 * utils.c (do_write): New function.
13113 (error_stream): Rewrite combining the code from error_begin and
13114 verror.
13115 (verror): Rewrite using error_stream.
13116 (error_begin): Delete function.
13117
13118 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13119
13120 * utils.c (error_begin): Make static.
13121 * defs.h (error_begin): Delete declaration.
13122
13123 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13124 (decode_line_1): Use cplusplus_error instead of error_begin,
13125 cplusplus_hint and return_to_top_level.
13126 * coffread.c (coff_symfile_read): Use error instead of error_begin
13127 and return_to_top_level.
13128 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13129
13130 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13131
13132 * language.h (type_error, range_error): Make string parameter
13133 constant.
13134 * language.c (warning_pre_print): Delete extern declaration.
13135 * dwarfread.c (warning_pre_print): Ditto.
13136 * language.c (type_error, range_error): Rewrite to use verror and
13137 vwarning instead of warning_begin.
13138
13139 2002-02-01 Michael Snyder <msnyder@redhat.com>
13140
13141 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13142 (set_ignore_count): Move misplaced comment back where it belongs.
13143
13144 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13145
13146 * command.h (NO_FUNCTION): Delete macro.
13147 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13148 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13149 * tracepoint.c (_initialize_tracepoint): Ditto.
13150 * cli/cli-decode.c (add_set_cmd): Ditto.
13151 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13152
13153 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13154
13155 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13156 Update ``this'' pointer when calling virtual functions.
13157
13158 2002-02-01 Michael Snyder <msnyder@redhat.com>
13159
13160 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13161 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13162
13163 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13164
13165 * regformats/reg-arm.dat: New file.
13166 * regformats/reg-i386.dat: New file.
13167 * regformats/reg-ia64.dat: New file.
13168 * regformats/reg-m68k.dat: New file.
13169 * regformats/reg-mips.dat: New file.
13170 * regformats/reg-ppc.dat: New file.
13171 * regformats/reg-sh.dat: New file.
13172 * regformats/regdef.h: New file.
13173 * regformats/regdat.sh: New file.
13174
13175 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13176
13177 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13178 (arm_frame_args_address, arm_frame_locals_address): New functions.
13179 (arm_frame_num_args): New function.
13180 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13181 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13182 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13183
13184 2002-01-31 Michael Snyder <msnyder@redhat.com>
13185
13186 * breakpoint.c (break_at_finish_command): Export.
13187 (break_at_finish_at_depth_command): Export.
13188 (tbreak_at_finish_command): Export.
13189 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13190 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13191 "txbreak" commands, which are HPPA specific.
13192
13193 * printcmd.c (disassemble_command): Remove an ancient
13194 artifact of an old merge.
13195
13196 * symfile.h (enum overlay_debugging_state):
13197 Define enum constant values for overlay mode.
13198 * symfile.c (overlay_debugging): Use enums instead of literals.
13199 (overlay_is_mapped, overlay_auto_command,
13200 overlay_manual_command): Ditto.
13201
13202 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13203 breakpoint_here_p, breakpoint_inserted_here_p,
13204 breakpoint_thread_match, bpstat_stop_status,
13205 describe_other_breakpoints, check_duplicates, clear_command):
13206 Coding standard fixes.
13207
13208 * target.c (target_xfer_memory): Add spaces, coding standard.
13209 (do_xfer_memory): Add missing line to trust-readonly
13210 code: check bfd SEC_READONLY flag for section.
13211
13212 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13213
13214 * PROBLEMS: Fix typo, 5.1->5.1.1.
13215
13216 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13217
13218 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13219 data symbols, since we search based on textlow and texthigh.
13220 (find_pc_sect_symtab): Likewise.
13221
13222 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13223
13224 * defs.h (vwarning): Declare.
13225 * utils.c (vwarning): New function.
13226 (warning): Call vwarning.
13227 (warning_begin): Delete function.
13228
13229 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13230 the warning message.
13231 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13232 warning_begin.
13233
13234 2002-01-30 Michael Snyder <msnyder@redhat.com>
13235
13236 * NEWS: Mention "set trust-readonly-sections" command.
13237 Mention generate-core-file command.
13238
13239 2002-01-15 Michael Snyder <msnyder@redhat.com>
13240
13241 * target.c: New command, "set trust-readonly-sections on".
13242 (do_xfer_memory): Honor the suggestion to trust readonly sections
13243 by reading them from the object file instead of from the target.
13244 (initialize_targets): Register command "set trust-readonly-sections".
13245
13246 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13247
13248 * parse.c (target_map_name_to_register): Simplify, search regs and
13249 pseudo-regs using a single loop.
13250
13251 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13252
13253 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13254
13255 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13256
13257 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13258 * config/i386/i386v42mp.mh: Add i387-nat.o .
13259 * i386v4-nat.c: Include i387-nat.h.
13260 (supply_fpregset): Use i387_supply_fsave.
13261 (fill_fpregset): Use i387_fill_fsave.
13262
13263 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13264
13265 * arm-tdep.c (arm_call_dummy_words): Define.
13266 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13267 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13268 (CALL_DUMMY_WORDS): Define.
13269 (arm_call_dummy_words): Declare.
13270 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13271 (arm_linux_call_dummy_words): Declare.
13272
13273 2002-01-30 Andreas Schwab <schwab@suse.de>
13274
13275 * m68klinux-nat.c: Fix last change to use regcache_collect
13276 instead of referencing registers[] directly.
13277
13278 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13279
13280 * parse.c (target_map_name_to_register): Delete code wrapped in
13281 #ifdef REGISTER_NAME_ALIAS_HOOK.
13282
13283 2002-01-28 Michael Snyder <msnyder@redhat.com>
13284
13285 * regcache.c (legacy_read_register_gen): Need to be able to
13286 read pseudo-register as well as real register.
13287 (legacy_write_register_gen): Ditto.
13288
13289 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13290
13291 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13292 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13293 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13294 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13295 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13296 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13297 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13298 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13299 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13300 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13301 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13302 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13303 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13304 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13305 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13306 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13307 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13308 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13309 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13310 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13311
13312 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13313
13314 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13315 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13316 (initialize_current_architecture): Update target_byte_order using
13317 information from BFD.
13318 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13319 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13320
13321 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13322
13323 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13324 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13325
13326 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13327 #ifdef INVALID_FLOAT.
13328 * infcmd.c (do_registers_info): Ditto.
13329 * values.c (unpack_double): Ditto. Add comment.
13330
13331 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13332 already commented out.
13333
13334 2002-01-26 Andreas Schwab <schwab@suse.de>
13335
13336 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13337 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13338 registers and add support for PTRACE_GETREGS.
13339
13340 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13341
13342 GDB 5.1.1 released from 5.1 branch.
13343 * NEWS: Add 5.1.1 news.
13344 * README: Sync with 5.1 branch.
13345
13346 2002-01-23 Fred Fish <fnf@redhat.com>
13347
13348 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13349 stabstring on initial malloc. Reallocing will copy it for us,
13350 if necessary.
13351
13352 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13353
13354 * Makefile.in (hpread_h): Delete.
13355 (HFILES_NO_SRCDIR): Remove hpread.h.
13356 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13357 (hpread.o): Update dependencies.
13358 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13359
13360 * hp-psymtab-read.c: Remove file.
13361 * hp-symtab-read.c: Remove file.
13362 * hpread.h: Remove file.
13363
13364 * hpread.c: Merge all contents of hp-psymtab-read.c,
13365 hp-symtab-read.c and hpread.h into this file, as it was prior to
13366 January 1999.
13367
13368 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13369 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13370 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13371 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13372
13373 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13374
13375 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13376 fill_gregset): Call gdbarch_tdep() just once, assign result to
13377 variable and use that, instead of calling the function several
13378 times.
13379
13380 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13381
13382 * configure.host: Accept sparcv9 as alias for sparc64.
13383 * configure.tgt: Likewise.
13384
13385 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13386
13387 * solib-aix5.c (build_so_list_from_mapfile)
13388 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13389 arguments is not reversed.
13390 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13391 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13392
13393 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13394
13395 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13396 modified version of obsolete sh_fetch_pseudo_register.
13397 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13398 (sh4_register_read): New function.
13399 (sh_pseudo_register_write): New function. Renamed and modified
13400 version of obsolete sh_store_pseudo_register.
13401 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13402 (sh4_register_write): New function.
13403 (sh_gdbarch_init): Remove setting of gdbarch function
13404 fetch_pseudo_register and store_pseudo_register. Remove setting of
13405 register_convert_to_raw, register_convert_to_virtual,
13406 register_convertible.
13407 (sh_sh4_register_convertible): Delete. No longer needed. All is
13408 taken care by architecture specific functions
13409 register_read/register_write.
13410 (sh_sh4_register_convert_to_virtual): Make static.
13411 (sh_sh4_register_convert_to_raw): Ditto.
13412
13413 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13414
13415 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13416 (floatformat_is_nan, floatformat_mantissa): Ditto.
13417
13418 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13419 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13420 builtin_type_ieee_double_little,
13421 builtin_type_ieee_double_littlebyte_bigword,
13422 builtin_type_m68881_ext, builtin_type_i960_ext,
13423 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13424 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13425 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13426 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13427
13428 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13429
13430 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13431 parameter. Set frameless flag if it exists and depended of
13432 whether the scanned function is frameless or not.
13433 (xstormy16_skip_prologue): If function is frameless, return
13434 result of xstormy16_scan_prologue().
13435 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13436 call.
13437
13438 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13439
13440 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13441 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13442 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13443 sh_sh4_register_byte, sh_sh4_register_raw_size,
13444 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13445 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13446 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13447 sh_store_pseudo_register, sh_do_pseudo_register): Call
13448 gdbarch_tdep() just once, assign result to variable and use that,
13449 instead of calling the function several times.
13450
13451 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13452
13453 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13454 macros instead of LAST_FPU_CTRL_REGNUM.
13455 (store_register): Likewise.
13456
13457 2002-01-21 Jim Blandy <jimb@redhat.com>
13458
13459 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13460 is up-to-date before running the program, not just when a program
13461 exits.
13462
13463 2002-01-21 Fred Fish <fnf@redhat.com>
13464
13465 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13466 when we have found all instructions we are looking for.
13467
13468 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13469
13470 * arm-tdep.c (arm_register_name): New function.
13471 (arm_registers_names): Make static.
13472 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13473 (arm_register_name): Declare.
13474 (REGISTER_NAME): Use it.
13475
13476 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13477 Kevin Buettner <kevinb@redhat.com>
13478
13479 Convert arm targets to new FRAME interface.
13480 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13481 (arm_frame_find_save_regs): Delete.
13482 (arm_frame_init_saved_regs): New.
13483 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13484 Allocate extra_info as required. Convert all uses of fsr.regs
13485 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13486 to use extra_info.
13487 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13488 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13489 (check_prologue_cache, save_prologue_cache): Likewise.
13490 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13491 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13492 (FRAME_FIND_SAVED_REGS): Delete.
13493 (arm_frame_find_saved_regs): Delete prototype.
13494 (arm_frame_init_saved_regs): New prototype.
13495 (FRAME_INIT_SAVED_REGS): Define.
13496
13497 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13498
13499 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13500
13501 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13502
13503 From Jeff Law <law@redhat.com>:
13504 * infttrace.c: Include <sys/pstat.h>.
13505 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13506 exec file if the ttrace equivalent fails.
13507
13508 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13509
13510 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13511 (closeLogFile): Ditto.
13512
13513 2002-01-20 Michael Chastain <mec@shout.net>
13514
13515 * top.c (print_gdb_version): Bump copyright year to 2002.
13516
13517 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13518
13519 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13520 Zannoni and Eli Zaretskii.
13521
13522 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13523
13524 * buildsym.c: Update copyright years.
13525 * c-typeprint.c: Likewise.
13526 * dwarf2read.c: Likewise.
13527 * f-typeprint.c: Likewise.
13528 * gdbtypes.c: Likewise.
13529 * gdbtypes.h: Likewise.
13530 * hp-symtab-read.c: Likewise.
13531 * hpread.c: Likewise.
13532 * mdebugread.c: Likewise.
13533 * p-typeprint.c: Likewise.
13534
13535 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13536
13537 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13538 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13539 byte-order selectable.
13540 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13541 * arch-utils.c: Ditto.
13542 (set_endian): Ditto.
13543 (set_endian_from_file): Ditto.
13544 * gdbserver/low-sim.c (create_inferior): Ditto.
13545 * gdbarch.sh: Ditto.
13546 * gdbarch.h: Re-generate.
13547 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13548 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13549 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13550 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13551 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13552 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13553 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13554 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13555 macro definition.
13556 * config/mips/tm-wince.h: Remove #undef of macro
13557 TARGET_BYTE_ORDER_SELECTABLE.
13558 * config/sh/tm-wince.h: Ditto.
13559
13560 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13561
13562 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13563 member function fields. Add accessor macro
13564 TYPE_FN_FIELD_ARTIFICIAL.
13565 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13566 * c-typeprint.c (c_type_print_base): Skip artificial member
13567 functions.
13568
13569 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13570
13571 * f-typeprint.c: Delete unused function f_type_print_args.
13572 * p-typeprint.c: Delete unused function pascal_type_print_args.
13573
13574 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13575
13576 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13577 comment. Add ``artificial'' to ``union field_location''.
13578
13579 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13580
13581 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13582 * mdebugread.c (parse_symbol): Likewise.
13583 * stabsread.c (define_symbol): Likewise.
13584 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13585 initializing TYPE_FIELD_BITPOS to n (obsolete).
13586 (hpread_doc_function_type): Likewise.
13587 * hpread.c (hpread_function_type): Likewise.
13588
13589 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13590
13591 * configure.in (host_makefile_frag): Only require a host makefile
13592 fragment when a native build.
13593 * configure: Re-generate.
13594
13595 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13596
13597 * doublest.h (floatformat_from_type): Declare.
13598 * doublest.c (floatformat_from_type): New function.
13599 (convert_typed_floating): Use.
13600
13601 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13602 call to function floatformat_from_type.
13603
13604 * gdbarch.sh (IEEE_FLOAT): Delete.
13605 * gdbarch.h, gdbarch.c: Re-generate.
13606 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13607 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13608 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13609 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13610 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13611 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13612 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13613 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13614 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13615 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13616 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13617 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13618
13619 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13620 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13621 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13622 * sh-tdep.c (sh_gdbarch_init): Ditto.
13623 * mips-tdep.c (mips_gdbarch_init): Ditto.
13624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13625 * cris-tdep.c (cris_gdbarch_init): Ditto.
13626
13627 2002-01-20 Jiri Smid <smid@suse.cz>
13628
13629 * configure.host, configure.tgt: Support x86-64.
13630 * NEWS: Note new target x86-64.
13631
13632 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13633 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13634 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13635 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13636 x86-64-linux-nat.o): Fix dependencies.
13637
13638 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13639
13640 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13641 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13642 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13643 * config/sparc/xm-sun4os4.h: Delete file.
13644 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13645
13646 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13647
13648 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13649 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13650 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13651 * config/i386/i386lynx.mh (XM_FILE): Delete.
13652 * config/rs6000/xm-rs6000ly.h: Delete file.
13653 * config/sparc/xm-sparclynx.h: Delete file.
13654 * config/m68k/xm-m68klynx.h: Delete file.
13655 * config/i386/xm-i386lynx.h: Delete file.
13656 * config/xm-lynx.h: Delete file.
13657 * config/djgpp/fnchange.lst: Update.
13658
13659 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13660
13661 * alpha-tdep.c (alpha_register_byte): New function.
13662 (alpha_register_raw_size): Ditto.
13663 (alpha_register_virtual_size): Ditto.
13664 (alpha_skip_prologue_internal): Renamed from
13665 alpha_skip_prologue.
13666 (alpha_skip_prologue): New version that calls
13667 alpha_skip_prologue_internal.
13668 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13669 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13670 second argument from alpha_skip_prologue.
13671 (REGISTER_BYTE): Use alpha_register_byte.
13672 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13673 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13674 (FRAMELESS_FUNCTION_INVOCATION): Use
13675 generic_frameless_function_invocation_not.
13676 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13677 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13678
13679 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13680
13681 * config/mips/xm-news-mips.h: Delete file.
13682 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13683
13684 * config/m88k/xm-m88k.h: Delete file.
13685 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13686 * config/m88k/xm-delta88v4.h: Ditto.
13687 * config/m88k/xm-delta88.h: Ditto.
13688
13689 * config/alpha/xm-fbsd.h: Delete file.
13690 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13691
13692 * config/sparc/xm-sparc.h: Delete file.
13693 * Makefile.in (xm-sun4os4.h): Delete dependency.
13694 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13695 * config/sparc/xm-sun4os4.h: Ditto.
13696 * config/sparc/xm-linux.h: Ditto.
13697
13698 * config/i386/xm-windows.h: Delete file.
13699
13700 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13701
13702 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13703 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13704
13705 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13706
13707 * alpha-tdep.c (alpha_call_dummy_words): New.
13708 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13709 (CALL_DUMMY_P): Define.
13710 (CALL_DUMMY_WORDS): Define.
13711 (SIZEOF_CALL_DUMMY_WORDS): Define.
13712
13713 2002-01-19 Per Bothner <per@bothner.com>
13714
13715 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13716 isn't NULL, which can happen with some gcj-3.x-produced code.
13717
13718 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13719
13720 * alpha-tdep.c (alpha_register_virtual_type): New function.
13721 (alpha_init_frame_pc_first): Ditto.
13722 (alpha_fix_call_dummy): Ditto.
13723 (alpha_store_struct_return): Ditto.
13724 (alpha_extract_struct_value_address): Ditto.
13725 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13726 alpha_register_virtual_type.
13727 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13728 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13729 alpha_extract_struct_value_address.
13730 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13731 (INIT_FRAME_PC): Use init_frame_pc_noop.
13732 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13733
13734 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13735
13736 * i386gnu-nat.c: Include "i386-tdep.h".
13737 (fetch_fpregs): Simplify code dealing with uninitialized floating
13738 point states such that it doesn't require FP7_REGNUM.
13739
13740 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13741
13742 * alpha-tdep.c (frame_extra_info): New.
13743 (alpha_find_saved_regs): Make static. Use
13744 frame->extra_info.
13745 (alpha_frame_init_saved_regs): New function.
13746 (alpha_frame_saved_pc): Use frame->extra_info.
13747 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13748 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13749 (init_extra_frame_info): Rename to...
13750 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13751 (alpha_print_extra_frame_info): New function.
13752 (alpha_frame_locals_address): Ditto.
13753 (alpha_frame_args_address): Ditto.
13754 (alpha_pop_frame): Use frame->extra_info.
13755 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13756 alpha_frame_args_address.
13757 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13758 (alpha_find_saved_regs): Remove prototype.
13759 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13760 (EXTRA_FRAME_INFO): Remove.
13761 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13762 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13763
13764 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13765
13766 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13767 (alpha_cannot_fetch_register): Ditto.
13768 (alpha_cannot_store_register): Ditto.
13769 (alpha_register_convertible): Ditto.
13770 (alpha_use_struct_convention): Ditto.
13771 * config/alpha/tm-alpha.h: Update copyright years.
13772 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13773 (INNER_THAN): Use core_addr_lessthan.
13774 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13775 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13776 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13777 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13778 (FRAME_CHAIN): Remove unnecessary cast.
13779
13780 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13781
13782 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13783 obsolete.
13784
13785 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13786
13787 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13788 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13789 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13790 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13791 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13792 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13793 * x86-64-linux-nat.c: Ditto.
13794
13795 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13796
13797 * alpha-tdep.c (alpha_register_name): New function.
13798 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13799 (REGISTER_NAME): Define.
13800
13801 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13802
13803 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13804
13805 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13806
13807 * alpha-tdep.c: Update copyright years.
13808 (alpha_next_pc): New function.
13809 (alpha_software_single_step): Ditto.
13810 * config/alpha/tm-alpha.h: Add prototype for
13811 alpha_software_single_step.
13812
13813 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13814
13815 * alphabsd-nat.c: Update copyright years.
13816 (fill_gregset): Use regcache_collect.
13817 (fill_fpregset): Likewise.
13818 (fetch_inferior_registers): Only fetch integer registers
13819 if requested to do so.
13820 (store_inferior_registers): Only store integer registers
13821 if requested to do so.
13822
13823 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13824
13825 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13826 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13827 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13828 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13829 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13830 * config/arm/linux.mh (XDEPFILES): Delete.
13831 * config/arm/nbsd.mh (XDEPFILES): Delete.
13832 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13833 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13834 * config/i386/i386m3.mh (XDEPFILES): Delete.
13835 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13836 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13837 * config/i386/fbsd.mh (XDEPFILES): Delete.
13838 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13839 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13840 * config/i386/i386v4.mh (XDEPFILES): Delete.
13841 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13842 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13843 * config/i386/i386aix.mh (XDEPFILES): Delete.
13844 * config/i386/go32.mh (XDEPFILES): Delete.
13845 * config/i386/cygwin.mh (XDEPFILES): Delete.
13846 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13847 * config/i386/i386mach.mh (XDEPFILES): Delete.
13848 * config/i386/i386v32.mh (XDEPFILES): Delete.
13849 * config/i386/linux.mh (XDEPFILES): Delete.
13850 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13851 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13852 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13853 * config/i386/i386sco.mh (XDEPFILES): Delete.
13854 * config/i386/i386v.mh (XDEPFILES): Delete.
13855 * config/i386/nbsd.mh (XDEPFILES): Delete.
13856 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13857 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13858 * config/i386/symmetry.mh (XDEPFILES): Delete.
13859 * config/i386/obsd.mh (XDEPFILES): Delete.
13860 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13861 * config/ia64/linux.mh (XDEPFILES): Delete.
13862 * config/ia64/aix.mh (XDEPFILES): Delete.
13863 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13864 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13865 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13866 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13867 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13868 * config/m68k/linux.mh (XDEPFILES): Delete.
13869 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13870 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13871 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13872 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13873 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13874 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13875 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13876 * config/m88k/delta88.mh (XDEPFILES): Delete.
13877 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13878 * config/m88k/m88k.mh (XDEPFILES): Delete.
13879 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13880 * config/mips/linux.mh (XDEPFILES): Delete.
13881 * config/mips/irix6.mh (XDEPFILES): Delete.
13882 * config/mips/irix5.mh (XDEPFILES): Delete.
13883 * config/mips/irix4.mh (XDEPFILES): Delete.
13884 * config/mips/irix3.mh (XDEPFILES): Delete.
13885 * config/mips/decstation.mh (XDEPFILES): Delete.
13886 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13887 (NATDEPFILES): Move core-aout.o to here.
13888 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13889 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13890 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13891 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13892 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13893 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13894 * config/pa/hpux11.mh (XDEPFILES): Delete.
13895 * config/powerpc/aix.mh (XDEPFILES): Delete.
13896 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13897 * config/powerpc/linux.mh (XDEPFILES): Delete.
13898 * config/romp/rtbsd.mh: Rename XDEPFILES.
13899 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13900 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13901 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13902 * config/s390/s390.mh (XDEPFILES): Delete.
13903 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13904 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13905 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13906 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13907 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13908 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13909 * config/sparc/linux.mh (XDEPFILES): Delete.
13910 * config/vax/vaxult.mh (XDEPFILES): Delete.
13911 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13912 * Makefile.in (DEPFILES): Remove XDEPFILES.
13913
13914 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13915
13916 * utils.c (internal_verror): Fix comments, default is yes not no.
13917 Update queries to match. Default to quit and dump core.
13918
13919 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13920
13921 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13922 copyright.
13923 * defs.h, event-top.c, gdbcmd.h: Ditto.
13924 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13925 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13926 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13927 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13928 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13929 * mi/mi-main.c:Ditto.
13930
13931 * stack.c, symfile.c: Update copyright.
13932
13933 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13934
13935 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13936 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13937 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13938 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13939
13940 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13941
13942 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13943 * gdbserver/low-lynx.c (myattach): Likewise.
13944 * gdbserver/low-nbsd.c (myattach): Likewise.
13945 * gdbserver/low-sim.c (myattach): Likewise.
13946 * gdbserver/low-sparc.c (myattach): Likewise.
13947 * gdbserver/low-sun3.c (myattach): Likewise.
13948
13949 * gdbserver/low-linux.c (myattach): New function.
13950
13951 * gdbserver/server.c (attach_inferior): New function.
13952 (main): Handle "--attach".
13953
13954 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13955
13956 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13957 maintainer.
13958
13959 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13960
13961 * c-typeprint.c (is_type_conversion_operator): Add additional
13962 check for non-conversion operators.
13963
13964 2002-01-15 Michael Snyder <msnyder@redhat.com>
13965
13966 * linux-proc.c: Add "info proc" command, a la procfs.c.
13967 (read_mapping): New function, abstract and re-use code.
13968 (linux_find_memory_regions): Use new func read_mapping.
13969 (linux_info_proc_cmd): New function, implement "info proc".
13970 (_initialize_linux_proc): Add new command "info proc".
13971
13972 2002-01-15 Michael Snyder <msnyder@redhat.com>
13973
13974 * symfile.c (generic_load): Use bfd_map_over_sections method
13975 instead of manipulating bfd structure members directly.
13976 (add_section_size_callback): New function, bfd sections callback
13977 used by generic_load.
13978 (load_sections_callback): New function, bfd sections callback
13979 used by generic_load.
13980
13981 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13982
13983 [Based on work by Jim Blandy]
13984 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13985 (builtin_type_vec128): Export.
13986 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13987 types.
13988 (builtin_type_vec128): New builtin type for 128 bit vector
13989 registers.
13990 (build_gdbtypes): Initialize builtin_type_v16qi and
13991 builtin_type_v8hi. Create the vec128 register builtin type
13992 structure.
13993 (build_builtin_type_vec128): New function.
13994 (_initialize_gdbtypes): Register builtin_type_v16qi and
13995 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13996 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13997 AltiVec register to new builtin type.
13998
13999 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14000
14001 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14002 to make_cv_type.
14003
14004 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14005
14006 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14007 CLEAN_UP_REGISTER_VALUE.
14008 * regcache.c (supply_register): Update only call.
14009
14010 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14011
14012 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14013 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14014 a29k-*-vxworks* targets as obsolete.
14015
14016 2002-01-14 Michael Snyder <msnyder@redhat.com>
14017
14018 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14019 until we can resolve portability issues.
14020 * gregset.h: Remove references to fpxregs.
14021 * gcore.c (gcore_command): Initialize note_sec to NULL.
14022
14023 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14024
14025 * signals.c (target_signal_to_name): Rewrite. Only use
14026 signals[].name when in bounds and non-NULL.
14027
14028 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14029
14030 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14031 * signals.c (target_signal_to_name): Verify that SIG is within the
14032 bounds of the signals array.
14033
14034 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14035
14036 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14037
14038 2002-01-13 Keith Seitz <keiths@redhat.com>
14039
14040 * stack.c (print_frame_info_base): Print the frame's pc
14041 only if when print_frame_info_listing_hook is not defined.
14042
14043 2002-01-13 Keith Seitz <keiths@redhat.com>
14044
14045 * varobj.c (varobj_set_value): Make sure that there were no
14046 errors evaluating the object before attempting to set its
14047 value.
14048 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14049 so this offset adjustment is no longer necessary.
14050 (create_child): Don't set the error flag if the child is
14051 a CPLUS_FAKE_CHILD.
14052 (value_of_child): If value_fetch_lazy fails, return NULL
14053 so that callers will be notified that an error occurred.
14054 (c_value_of_variable): Delay check of variable's validity
14055 until later. We actually want all structs and unions to have
14056 the value "{...}".
14057 Do not return "???" for variables which could not be evaluated.
14058 This error condition must be returned to the caller so that it
14059 can get the error condition from gdb.
14060 (cplus_name_of_child): Adjust index for vptr before figuring
14061 out the name of the child.
14062 (cplus_value_of_child): If a child's (real) parent is not valid,
14063 don't even bother trying to give a value for it. Just return
14064 an error. Change all instances in this function.
14065 (cplus_type_of_child): If our parent is one of the "fake"
14066 parents, we need to get at the type of the real parent, and
14067 derive the child's true type using this information.
14068
14069 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14070
14071 From 2002-01-09 John Marshall <johnm@falch.net>:
14072 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14073 sources.redhat.com, and tweak some related URLs which had
14074 suffered from linkrot.
14075
14076 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14077
14078 From Jeff law:
14079 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14080 structures passed in registers.
14081
14082 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14083
14084 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14085 white space which prevented compilation. Reported by DSK
14086 <dsk@student.unsw.edu.au>.
14087
14088 2002-01-11 Michael Snyder <msnyder@redhat.com>
14089
14090 * symfile.c (build_section_addr_info_from_section_tab):
14091 Use bfd access method instead of manipulating bfd directly.
14092 (syms_from_objfile): Ditto.
14093 (simple_overlay_update_1): Ditto.
14094 (simple_overlay_update): Ditto.
14095 (generic_load): Ditto.
14096 (overlay_unmapped_address): FIXME comment, bfd access methods.
14097 (sections_overlap): FIXME comment, bfd access methods.
14098 (pc_in_mapped_range): FIXME comment, bfd access methods.
14099 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14100 (section_is_mapped): FIXME comment, bfd access methods.
14101 (section_is_overlay): FIXME comment, bfd access methods.
14102
14103 * symfile.c (generic_load): Whitespace and long line cleanups.
14104 Remove duplicate variable, change several local variables to
14105 more appropriate data types.
14106 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14107
14108 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14109
14110 From Peter Schauer:
14111 * language.c (longest_local_hex_string_custom): Use phex_nz to
14112 convert NUM to a hex string.
14113
14114 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14115
14116 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14117 the function.
14118 Update Copyright year.
14119
14120 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14121
14122 * language.c (longest_raw_hex_string): Delete unused function.
14123
14124 2002-01-11 Petr Sorfa <petrs@caldera.com>
14125
14126 * MAINTAINERS (write-after-approval): Add myself.
14127 * dwarf2read.c (read_tag_string_type): Handling of
14128 DW_AT_byte_size.
14129 (read_tag_string_type): FORTRAN fix to prevent propagation of
14130 first string size.
14131 (set_cu_language): Handling of DW_LANG_Fortran95
14132
14133 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14134
14135 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14136 GETPID(inferior_ptid).
14137 (store_inferior_registers): Likewise.
14138
14139 2002-01-10 Jason Merrill <jason@redhat.com>
14140
14141 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14142 Fix DW_OP_minus.
14143
14144 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14145
14146 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14147 and bfd/elf32-sh-nbsd.c.
14148
14149 2002-01-10 Michael Snyder <msnyder@redhat.com>
14150
14151 * NEWS: Mention --pid and corefile/proc-id behavior change.
14152
14153 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14154 * gcore.c: Include cli/cli-decode.h instead of command.h.
14155
14156 * main.c (captured_main): Add new command line option "--pid".
14157 If the second command line argument (following the symbol-file)
14158 begins with a digit, try to attach to it before trying to open
14159 it as a corefile.
14160 (print_gdb_help): Document the "--pid" argument.
14161
14162 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14163
14164 * completer.c (command_completer): New function.
14165
14166 * completer.h <command_completer>: Add prototype.
14167
14168 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14169 completer for the "help" command.
14170
14171 2002-01-09 Jason Merrill <jason@redhat.com>
14172
14173 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14174
14175 2002-01-09 Michael Snyder <msnyder@redhat.com>
14176
14177 * i386-linux-nat.c (fill_fpxregset): Make global.
14178 (store_fpxregset): Ditto.
14179
14180 * gregset.h (gdb_fpxregset_t): Define.
14181 (supply_fpxregset): Prototype.
14182 (fill_fpxregset): Prototype.
14183
14184 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14185
14186 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14187
14188 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14189 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14190 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14191
14192 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14193
14194 * MAINTAINERS: Update target maintainer rules so that any
14195 Maintainer can approve a tested patch for a maintenance-only
14196 target.
14197
14198 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14199
14200 * MAINTAINERS (write-after-approval): Add myself.
14201
14202 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14203 IN_SIGTRAMP.
14204
14205 2002-01-08 Michael Snyder <msnyder@redhat.com>
14206
14207 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14208 real name of the executable, rather than the /proc name.
14209
14210 2002-01-03 Michael Snyder <msnyder@redhat.com>
14211
14212 Implement a "generate-core-file" command in gdb, save target state.
14213 * gcore.c: New file. Implement new command 'generate-core-file'.
14214 Save a corefile image of the current state of the inferior.
14215 * linux-proc.c: Add linux-specific code for saving corefiles.
14216 * target.h (struct target_ops): Add new target vectors for saving
14217 corefiles; to_find_memory_regions and to_make_corefile_notes.
14218 (target_find_memory_regions): New macro.
14219 (target_make_corefile_notes): New macro.
14220 * target.c (update_current_target): Inherit new target methods.
14221 (dummy_find_memory_regions): New place-holder method.
14222 (dummy_make_corefile_notes): New place-holder method.
14223 (init_dummy_target): Initialize new dummy target vectors.
14224 * exec.c (exec_set_find_memory_regions): New function.
14225 Allow the exec_ops vector for memory regions to be taken over.
14226 (exec_make_note_section): New function, target vector method.
14227 * defs.h (exec_set_find_memory_regions): Export prototype.
14228 * procfs.c (proc_find_memory_regions): New function, corefile method.
14229 (procfs_make_note_section): New function, corefile method.
14230 (init_procfs_ops): Set new target vector pointers.
14231 (find_memory_regions_callback): New function.
14232 (procfs_do_thread_registers): New function.
14233 (procfs_corefile_thread_callback): New function.
14234 * sol-thread.c (sol_find_memory_regions): New function.
14235 (sol_make_note_section): New function.
14236 (init_sol_thread_ops): Initialize new target vectors.
14237 * inftarg.c (inftarg_set_find_memory_regions): New function.
14238 Allow to_find_memory_regions vector to be taken over.
14239 (inftarg_set_make_corefile_notes): New function.
14240 Allow to_make_corefile_notes vector to be taken over.
14241 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14242 interface layer if not target_has_execution (may be a corefile).
14243 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14244 * config/sparc/sun4sol2.mh: Ditto.
14245 * config/alpha/alpha-linux.mh: Ditto.
14246 * config/arm/linux.mh: Ditto.
14247 * config/i386/x86-64linux.mh: Ditto.
14248 * config/ia64/linux.mh: Ditto.
14249 * config/m68k/linux.mh: Ditto.
14250 * config/mips/linux.mh: Ditto.
14251 * config/powerpc/linux.mh: Ditto.
14252 * config/sparc/linux.mh: Ditto.
14253
14254 2002-01-07 Michael Snyder <msnyder@redhat.com>
14255
14256 * arm-linux-nat.c: Remove references to regcache.c internal data
14257 (registers[] and register_valid[]).
14258
14259 2002-01-07 Michael Snyder <msnyder@redhat.com>
14260
14261 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14262 so that attaching to a pid will automatically read the process's
14263 symbol file and shlibs.
14264 * Makefile.in: Add rule for linux-proc.o.
14265 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14266 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14267 * config/arm/linux.mh: Ditto.
14268 * config/i386/linux.mh: Ditto.
14269 * config/i386/x86-64linux.mh: Ditto.
14270 * config/ia64/linux.mh: Ditto.
14271 * config/m68k/linux.mh: Ditto.
14272 * config/mips/linux.mh: Ditto.
14273 * config/powerpc/linux.mh: Ditto.
14274 * config/sparc/linux.mh: Ditto.
14275
14276 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14277
14278 * win32-nat.c: Add i386-tdep.h dependency.
14279
14280 2002-01-07 Michael Snyder <msnyder@redhat.com>
14281
14282 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14283 instead of bfd_get_arch_size. Don't bail out just because
14284 there's no exec_bfd.
14285
14286 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14287 * p-valprint.c (pascal_object_print_value): Ditto.
14288 * somread.c (som_symtab_read): Ditto.
14289 * symfile.c (simple_free_overlay_region_table): Ditto.
14290 * valops.c (value_assign): Ditto.
14291
14292 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14293 use tilde_expand and strerror for opening save-tracepoints file.
14294
14295 * thread-db.c (thread_db_new_objfile): Indendation fix.
14296
14297 * infptrace.c (GDB_MAX_ALLOCA): New define.
14298 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14299 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14300 can be overridden with whatever value is appropriate to the host).
14301 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14302 alloca to allocate potentially large buffer.
14303 * rs6000-nat.c (child_xfer_memory): Ditto.
14304 * symm-nat.c (child_xfer_memory): Ditto.
14305 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14306
14307 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14308
14309 From Nick Clifton <nickc@redhat.com>
14310 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14311
14312 2002-01-07 Michael Snyder <msnyder@redhat.com>
14313
14314 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14315 Don't use exec_bfd if it's NULL.
14316
14317 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14318
14319 * valops.c (value_arg_coerce): Fix formatting.
14320
14321 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14322
14323 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14324 * gnu-nat.c: Ditto.
14325
14326 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14327
14328 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14329 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14330 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14331 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14332 z8k-coff have not been multi-arched. Update z8k-coff build
14333 status.
14334
14335 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14336
14337 * MAINTAINERS: Mark a29k target as obsolete.
14338 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14339 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14340 comments.
14341 * NEWS: Note that a29k targets are obsolete.
14342 * a29k-tdep.c: Mark as obsolete.
14343 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14344 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14345 a29k-*-vxworks* targets as obsolete.
14346 * remote-adapt.c: Obsolete.
14347 * remote-eb.c: Obsolete.
14348 * remote-mm.c: Obsolete.
14349 * remote-udi.c: Obsolete.
14350 * config/a29k/a29k-udi.mt: Obsolete.
14351 * config/a29k/a29k.mt: Obsolete.
14352 * config/a29k/tm-a29k.h: Obsolete.
14353 * config/a29k/tm-vx29k.h: Obsolete.
14354 * config/a29k/vx29k.mt: Obsolete.
14355
14356 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14357
14358 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14359 with BFD_ENDIAN_BIG.
14360
14361 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14362
14363 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14364 * configure, config.in: Re-generate.
14365 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14366 * defs.h: Do not include <endian.h>.
14367
14368 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14369
14370 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14371 * config.in: Regenerate.
14372 * configure.in: Update copyright years.
14373 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14374 * configure: Regenerate.
14375 * i386bsd-nat.c: Update copyright years.
14376 (fill_gregset): Use regcache_collect.
14377 (fetch_inferior_registers): Only fetch integer registers
14378 if requested to do so. Add support for XMM registers
14379 using PT_GETXMMREGS.
14380 (store_inferior_registers): Only store integer registers
14381 if requested to do so. Add support for XMM registers
14382 using PT_SETXMMREGS.
14383 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14384 (store_inferior_registers): Remove.
14385 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14386 (fetch_elfcore_registers): New function.
14387 (i386nbsd_elfcore_fns): New.
14388 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14389 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14390 i386bsd-nat.o.
14391 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14392 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14393 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14394 * config/i386/tm-nbsd.h: Update copyright years.
14395 (HAVE_SSE_REGS): Define.
14396 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14397 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14398 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14399 (SIGCONTEXT_PC_OFFSET): Remove.
14400 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14401
14402 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14403
14404 * configure.tgt: Remove powerpc-*-macos* target.
14405 * config/m68k/xm-mpw.h: Delete file.
14406 * config/xm-mpw.h: Delete file.
14407 * ser-mac.c: Delete file.
14408 * mpw-make.sed: Delete file.
14409 * mpw-config.in: Delete file.
14410 * mac-xdep.c: Delete file.
14411 * mac-gdb.r: Delete file.
14412 * mac-defs.h: Delete file.
14413 * mac-nat.c: Delete file.
14414 * config/powerpc/macos.mh: Delete file.
14415 * config/powerpc/macos.mt: Delete file.
14416 * config/powerpc/nm-macos.h: Delete file.
14417 * config/powerpc/tm-macos.h: Delete file.
14418 * source.c (openp, open_source_file): Remove obsolete code.
14419 * top.c (gdb_readline): Ditto.
14420 * utils.c (query): Ditto.
14421 * event-top.c (display_gdb_prompt): Ditto.
14422 * Makefile.in (ser-mac.o): Delete obsolete target.
14423 * NEWS: Update.
14424
14425 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14426
14427 * defs.h (BIG_ENDIAN): Delete macro definition.
14428 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14429 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14430 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14431 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14432 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14433 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14434 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14435 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14436 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14437 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14438 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14439 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14440 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14441 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14442 * gdbarch.c: Re-generate.
14443
14444 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14445
14446 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14447 for core files.
14448
14449 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14450
14451 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14452
14453 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14454
14455 * value.h (value_ptr): Delete typedef.
14456
14457 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14458
14459 * i386nbsd-nat.c: Update copyright years.
14460 Include i386-tdep.h.
14461
14462 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14463
14464 * stabsread.c: Update copyright years.
14465
14466 From Debashis Mahata <debashis.mahata@wipro.com>:
14467 (read_struct_fields): Deal with Sun C compiler erroneous stab
14468 output for structs and unions.
14469 Fix PR gdb/269.
14470
14471 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14472
14473 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14474 prototype.
14475
14476 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14477
14478 * cp-abi.c: Fix whitespace.
14479 (baseclass_offset): New wrapper function.
14480 * cp-abi.h (baseclass_offset): Add prototype.
14481 (struct cp_abi_ops): Add baseclass_offset pointer.
14482
14483 * valops.c (vb_match): Move to...
14484 * gnu-v2-abi.c (vb_match): here.
14485 * valops.c (baseclass_offset): Move to...
14486 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14487
14488 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14489
14490 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14491 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14492 * hpacc-abi.c (init_hpacc_ops): Likewise.
14493
14494 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14495
14496 * valops.c (find_overload_match): Accept obj as a
14497 reference parameter. Update it before returning.
14498 * value.h (find_overload_match): Update prototype.
14499 * eval.c (evaluate_subexp_standard): Pass object to
14500 find_overload_match by reference.
14501
14502 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14503
14504 * valarith.c: Replace value_ptr with struct value pointer. Remove
14505 register attribute from value declarations.
14506 * valops.c: Ditto.
14507 * value.h: Ditto.
14508 * scm-lang.c (scm_lookup_name): Ditto.
14509
14510 2002-01-03 Michael Snyder <msnyder@redhat.com>
14511
14512 Abstract the functionality of iterating over mapped memory
14513 regions into a general purpose iterator function.
14514 * procfs.c (iterate_over_mappings): New function, general purpose
14515 iterator for memory sections.
14516 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14517 (solib_mappings_callback): New function, callback for above.
14518 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14519 (info_mappings_callback): New function, callback for above.
14520
14521 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14522
14523 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14524
14525 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14526 * i386-tdep.c: Include "elf-bfd.h".
14527 (process_note_abi_tag_sections): New function.
14528 (i386_gdbarch_init): Add code to recognize various OS/ABI
14529 combinations.
14530
14531 * maint.c (_initialize_maint_cmds): Add missing \ in
14532 string-literal.
14533
14534 For older changes see ChangeLog-2001
14535 \f
14536 Local Variables:
14537 mode: change-log
14538 left-margin: 8
14539 fill-column: 74
14540 version-control: never
14541 End:
This page took 0.497347 seconds and 4 git commands to generate.