2002-12-13 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-12-13 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.c (frame_extra_info_zalloc): New function.
4 * frame.h (frame_extra_info_zalloc): Declare.
5
6 2002-12-13 Joel Brobecker <brobecker@gnat.com>
7
8 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
9 in the previous prototype change to set_momentary_breakpoint.
10
11 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
12
13 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
14 and saw_child_exec.
15 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
16 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
17 (stop_stepping): Remove outdated check for child vfork events.
18
19 2002-12-12 Andrew Cagney <ac131313@redhat.com>
20
21 * GDB 5.3 released from gdb_5_3-branch.
22
23 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
24
25 * corelow.c (init_core_ops): Delete references to to_require_attach
26 and to_require_detach.
27 * exec.c (init_exec_ops): Likewise.
28 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
29 hppa_require_detach directly.
30 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
31 * inftarg.c (child_detach): Remove.
32 (child_detach_from_process): Rename to child_detach, remove
33 after_fork argument.
34 (child_attach): Remove.
35 (child_attach_to_process): Rename to child_attach, remove after_fork
36 argument.
37 (init_child_ops): Delete references to to_require_attach
38 and to_require_detach.
39 * infttrace.c (hppa_require_attach): Update comment.
40 * target.c (cleanup_target, update_current_target)
41 (init_dummy_target, setup_target_debug): Delete references to
42 to_require_attach and to_require_detach.
43 (find_default_require_detach, find_default_require_attach)
44 (debug_to_require_attach, debug_to_require_detach): Remove
45 functions.
46 * target.h (struct target_ops): Remove to_require_attach
47 and to_require_detach.
48 (target_require_attach, target_require_detach): Delete macros.
49 (find_default_require_detach, find_default_require_attach): Delete
50 prototypes.
51 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
52
53 2002-12-11 Andrew Cagney <ac131313@redhat.com>
54
55 * frame.c (get_frame_extra_info): New function.
56 * frame.h (get_frame_extra_info): Declare.
57
58 2002-12-11 Andrew Cagney <ac131313@redhat.com>
59
60 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
61 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
62 with `struct frame_id'.
63 (set_longjmp_resume_breakpoint): Ditto.
64 * infrun.c (handle_inferior_event): Update.
65 * breakpoint.c (watch_command_1, until_break_command): Update.
66 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
67 (handle_inferior_event, step_over_function): Update.
68 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
69 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
70 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
71 * infcmd.c (finish_command, run_stack_dummy): Update.
72
73 2002-12-11 Kevin Buettner <kevinb@redhat.com>
74
75 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
76 (dwarf2_non_const_array_bound_ignored)
77 (dwarf2_missing_line_number_section)
78 (dwarf2_statement_list_fits_in_line_number_section)
79 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
80 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
81 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
82 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
83 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
84 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
85 (dwarf2_missing_member_fn_type_complaint)
86 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
87 (dwarf2_const_value_length_mismatch)
88 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
89 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
90 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
91 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
92 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
93 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
94 complaints using deprecated struct..
95 (dwarf2_non_const_array_bound_ignored_complaint)
96 (dwarf2_complex_location_expr_complaint)
97 (dwarf2_unsupported_at_frame_base_complaint)
98 (dwarf2_const_value_length_mismatch_complaint)
99 (dwarf2_macros_too_long_complaint)
100 (dwarf2_macro_malformed_definition_complaint)
101 (dwarf2_invalid_attrib_class_complaint): New functions.
102 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
103 (read_structure_scope, read_array_type, read_common_block)
104 (read_tag_pointer_type, read_base_type, read_partial_die)
105 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
106 (new_symbol, dwarf2_const_value, read_type_die)
107 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
108 (parse_macro_definition, dwarf_decode_macros): Replace calls to
109 complain() with, possibly indirect, calls to complaint().
110
111 2002-12-11 Andrew Cagney <cagney@redhat.com>
112
113 * frame.c (deprecated_get_frame_saved_regs): Rename
114 get_frame_saved_regs.
115 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
116 * sparc-tdep.c: Update.
117 * hppa-tdep.c: Update.
118 * h8500-tdep.c: Update.
119
120 2002-12-11 Kevin Buettner <kevinb@redhat.com>
121
122 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
123 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
124 ``char *'' for return and parameter types.
125 * gdbarch.h, gdbarch.c: Regenerate.
126 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
127 return type from ``char *'' to ``const char *''.
128 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
129 const.
130
131 2002-12-11 Mark Kettenis <kettenis@gnu.org>
132
133 * i386-tdep.c: Include "dummy-frame.h".
134 (i386_frame_chain, i386_frame_saved_pc): Replace
135 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
136 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
137
138 2002-12-10 Andrew Cagney <cagney@redhat.com>
139
140 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
141 Change to a function with predicate.
142 * gdbarch.h, gdbarch.c: Re-generate.
143 * frame.c (get_prev_frame): Update. Test
144 DEPRECATED_INIT_FRAME_PC_P.
145 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
146 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
147 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
148 * alpha-tdep.c (alpha_gdbarch_init): Update.
149 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
150 * mips-tdep.c (mips_gdbarch_init): Update.
151 * i386-interix-tdep.c (i386_interix_init_abi): Update.
152 * arm-tdep.c: Update comments.
153 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
154 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
155 * frv-tdep.c (frv_gdbarch_init): Ditto.
156 * x86-64-tdep.c (x86_64_init_abi): Ditto.
157 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
158 * s390-tdep.c (s390_gdbarch_init): Ditto.
159 * v850-tdep.c (v850_gdbarch_init): Ditto.
160 * vax-tdep.c (vax_gdbarch_init): Ditto.
161 * sh-tdep.c (sh_gdbarch_init): Ditto.
162 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
164 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
165 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
166 * i386-tdep.c (i386_gdbarch_init): Ditto.
167 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
168 * cris-tdep.c (cris_gdbarch_init): Ditto.
169 * avr-tdep.c (avr_gdbarch_init): Ditto.
170 * arm-tdep.c (arm_gdbarch_init): Ditto.
171 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
172 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
173
174 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
175
176 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
177 CHILD_FOLLOW_FORK.
178 * hppah-nat.c (saved_vfork_pid): Add.
179 (child_post_follow_vfork): Remove.
180 (child_follow_fork): New function.
181 (child_wait): Call detach_breakpoints after receiving the child vfork.
182 Call child_resume directly instead of going through resume ().
183 Make sure we have the exec before reporting the vfork.
184 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
185 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
186 (follow_fork): New function. Call target_follow_fork.
187 (follow_inferior_reset_breakpoints): New function broken out from
188 old follow_inferior_fork.
189 (resume): Remove hack to follow exec after vfork.
190 * inftarg.c (child_post_follow_vfork): Remove.
191 (child_follow_fork): New function.
192 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
193 * target.c (cleanup_target): Replace to_post_follow_vfork with
194 to_follow_fork.
195 (update_current_target): Likewise.
196 (setup_target_debug): Likewise.
197 (debug_to_post_follow_vfork): Remove.
198 (debug_to_follow_fork): New function.
199 * target.h (struct target_ops): Replace to_post_folow_vfork with
200 to_follow_fork.
201 (child_post_follow_vfork): Remove prototype.
202 (child_follow_fork): Add prototype.
203 (target_post_follow_vfork): Remove macro.
204 (target_follow_fork): Add macro.
205
206 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
207
208 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
209 (child_post_follow_vfork): Cancel pending exec event if we follow
210 the parent.
211 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
212 events have been processed. Return a fake TARGET_WAITKIND_EXECD
213 event at the following wait call if necessary.
214 * infrun.c (follow_vfork): Don't follow_exec here.
215 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
216 case about HP/UX 10.20. Remove code pushed down to
217 hppah-nat.c:child_wait.
218 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
219 vfork_in_flight is set.
220
221 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
222
223 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
224 for the parent's fork event.
225 * infrun.c (handle_inferior_event): Only expect one fork event.
226 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
227 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
228
229 2002-12-10 Andrew Cagney <ac131313@redhat.com>
230
231 * PROBLEMS: Delete reference to PR gdb/725.
232
233 * MAINTAINERS (gdb.c++): Add David Carlton.
234
235 2002-12-09 David Carlton <carlton@math.stanford.edu>
236
237 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
238 * cli/cli-cmds.c: Ditto.
239
240 2002-12-09 Andrew Cagney <cagney@redhat.com>
241
242 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
243 function address in <>.
244 * gdbarch.c: Re-generate.
245
246 2002-12-09 David Carlton <carlton@math.stanford.edu>
247
248 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
249
250 2002-12-09 David Carlton <carlton@math.stanford.edu>
251
252 * linespec.c (symtab_from_filename): New function.
253 (decode_line_1): Move code into symtab_from_filename.
254
255 2002-12-09 Kevin Buettner <kevinb@redhat.com>
256
257 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
258
259 2002-12-07 Andrew Cagney <ac131313@redhat.com>
260
261 * f-valprint.c (info_common_command): Use get_frame_pc.
262 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
263 * ax-gdb.c (agent_command): Ditto.
264 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
265 (rs6000_pop_frame): Ditto.
266 (rs6000_frameless_function_invocation): Ditto.
267 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
268 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
269 * macroscope.c (default_macro_scope): Ditto.
270 * stack.c (print_frame_info_base): Ditto.
271 (print_frame, frame_info, print_frame_label_vars): Ditto.
272 (return_command, func_command, get_frame_language): Ditto.
273 * infcmd.c (finish_command): Ditto.
274 * dummy-frame.c (cached_find_dummy_frame): Ditto.
275 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
276 (break_at_finish_at_depth_command_1): Ditto.
277 (break_at_finish_command_1): Ditto.
278 (until_break_command, get_catch_sals): Ditto.
279 * blockframe.c (func_frame_chain_valid): Ditto.
280 (frameless_look_for_prologue): Ditto.
281 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
282
283 2002-12-08 Andrew Cagney <ac131313@redhat.com>
284
285 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
286 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
287
288 2002-12-08 Andrew Cagney <ac131313@redhat.com>
289
290 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
291 to pure functions.
292 * gdbarch.h, gdbarch.c: Re-generate.
293 * frame.c (get_prev_frame): Explictly assign prev's pc with value
294 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
295
296 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
297 declaration to a function returning a CORE_ADDR.
298 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
299 * arch-utils.c (init_frame_pc_noop): Return the PC value.
300 (init_frame_pc_default): Ditto.
301 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
302 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
303 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
304 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
305 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
306 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
307
308 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
309 to init_frame_pc_noop.
310 (i386_interix_init_frame_pc): Delete function.
311 * z8k-tdep.c (init_frame_pc): Delete function.
312 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
313 (INIT_FRAME_PC_FIRST): Ditto.
314 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
315 (INIT_FRAME_PC_FIRST): Ditto.
316 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
317 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
318 init_frame_pc_noop.
319 (INIT_FRAME_PC_FIRST): Convert to an expression.
320 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
321
322 2002-12-08 Andrew Cagney <ac131313@redhat.com>
323
324 * blockframe.c: Use get_frame_base instead of directly accessing
325 the `struct frame_info' member frame.
326 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
327 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
328
329 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
330
331 * Makefile.in (readline_h): Define.
332 (completer.o): Depend on readline_h.
333 (corelow.o): Ditto.
334 (event-top.o): Ditto.
335 (exec.o): Ditto.
336 (solib.o): Ditto.
337 (source.o): Ditto.
338 (symfile.o): Ditto.
339 (symmisc.o): Ditto.
340 (top.o): Ditto.
341 (tracepoint.o): Ditto.
342 (utils.o): Ditto.
343 (cli-dump.o): Ditto.
344 (tui-hooks.o): Ditto.
345 (tuiWin.o): Ditto.
346
347 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
348
349 More cleanup from import of readline 4.3.
350 * completer.h (complete_line, readline_line_completion_function):
351 Update prototypes.
352 (line_completion_function): Removed, not used outside of completer.c.
353 * completer.c (readline_line_completion_function,
354 complete_function, line_completion_function): Use const for first
355 parameter.
356 (line_completion_function): Make static.
357 (filename_completer): filename_completion_function is now called
358 rl_filename_completion_function
359 * corelow.c: Include <readline/readline.h>.
360 * exec.c: Ditto.
361 * solib.c: Ditto.
362 * source.c: Ditto.
363 * symfile.c: Ditto.
364 * symmisc.c: Ditto.
365 * top.c (init_main): No need to coerce
366 readline_line_completion_function anymore.
367 * cli/cli-dump.c: Include <readline/readline.h>.
368
369 2002-12-08 Andrew Cagney <ac131313@redhat.com>
370
371 * stack.c (frame_info): Use get_prev_frame.
372 * blockframe.c (frame_address_in_block): Ditto.
373 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
374 (rs6000_frameless_function_invocation): Ditto.
375 (rs6000_frame_saved_pc): Ditto.
376 (rs6000_frame_chain): Ditto.
377 * arch-utils.c (init_frame_pc_default): Ditto.
378
379 2002-12-08 Andrew Cagney <ac131313@redhat.com>
380
381 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
382 Delete redundant definition.
383
384 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
385
386 Import of readline 4.3:
387 * cli/cli-cmds.c: Include readline/tilde.h.
388 * cli/cli-setshow.c: Ditto.
389 * defs.h: Don't declare tilde_expand anymore, since readline
390 exports it.
391
392 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
393
394 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
395 -Werror on this file.
396
397 2002-12-07 Andrew Cagney <ac131313@redhat.com>
398
399 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
400 the format name.
401 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
402 * gdbarch.c: Regenerate.
403
404 2002-12-06 Andrew Cagney <ac131313@redhat.com>
405
406 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
407 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
408 provide a default value.
409 * gdbarch.h, gdbarch.c: Regenerate.
410 * frame.c (get_prev_frame): Update. Check
411 DEPRECATED_INIT_FRAME_PC_FIRST_P.
412 * s390-tdep.c (s390_gdbarch_init): Update.
413 * mips-tdep.c (mips_gdbarch_init): Update.
414 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
415 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
416 * alpha-tdep.c (alpha_gdbarch_init): Update.
417
418 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
419
420 * ia64-linux-nat.c: Include gdb_string.h.
421 * alpha-nat.c: Ditto.
422 * ppc-linux-nat.c: Ditto.
423 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
424 Update dependencies.
425
426 2002-12-05 Andrew Cagney <ac131313@redhat.com>
427
428 * gdbthread.h: Include "frame.h".
429 (struct thread_info): Replace step_frame_address with
430 step_frame_id.
431 * inferior.h: Include "frame.h".
432 (step_frame_id): Replace external variable step_frame_address.
433 * gdbthread.h (save_infrun_state): Replace step_frame_address
434 parameter with step_frame_id parameter.
435 (load_infrun_state): Ditto.
436 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
437 * infcmd.c (step_frame_id, step_1, step_once): Update.
438 * thread.c (load_infrun_state, save_infrun_state): Update.
439 * infrun.c (clear_proceed_status, save_inferior_status): Update.
440 (handle_inferior_event, step_over_function): Update.
441 (normal_stop, context_switch, restore_inferior_status): Update.
442 (struct inferior_status): Replace step_frame_address with
443 step_frame_id.
444
445 2002-12-05 David Carlton <carlton@math.stanford.edu>
446
447 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
448 DW_TAG_member as well as a declaration as being a C++ static data
449 member.
450 (read_structure_scope): Combine tests for DW_TAG_member and
451 DW_TAG_variable.
452
453 2002-12-05 David Carlton <carlton@math.stanford.edu>
454
455 * linespec.c (decode_compound): New function.
456 (decode_line_1): Move code into decode_compound.
457
458 2002-12-05 David Carlton <carlton@math.stanford.edu>
459
460 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
461 argument.
462 (lookup_symbol_aux): Do the 'field_of_this' check before checking
463 the static block. See PR gdb/804.
464
465 2002-12-05 David Carlton <carlton@math.stanford.edu>
466
467 * symtab.c (lookup_symbol_aux_block): New function.
468 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
469
470 2002-12-05 Andrew Cagney <ac131313@redhat.com>
471
472 * gdbarch.sh: Dump the predicate function and macro values.
473 (read): Print error on standard error.
474 * gdbarch.c: Regenerate.
475
476 2002-12-04 Kevin Buettner <kevinb@redhat.com>
477
478 * Makefile.in (mips_tdep_h): Define.
479 (mips-tdep.o): Add mips_tdep_h to dependency list.
480 * mips-tdep.h: New file.
481 * mips-tdep.c (mips-tdep.h): Include.
482 (enum mips_abi): Move to mips-tdep.h.
483 (mips_abi): New function.
484
485 2002-12-04 David Carlton <carlton@math.stanford.edu>
486
487 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
488
489 2002-12-04 David Carlton <carlton@math.stanford.edu>
490
491 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
492 function.
493 (lookup_symbol_aux_minsyms): New function.
494
495 2002-12-04 J. Brobecker <brobecker@gnat.com>
496
497 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
498
499 2002-12-04 J. Brobecker <brobecker@gnat.com>
500
501 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
502 which is an obsolete macro name.
503
504 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
505
506 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
507 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
508
509 2002-12-03 H.J. Lu (hjl@gnu.org)
510
511 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
512 (create_breakpoints): Make sure the addr_string field is not
513 NULL.
514
515 2002-12-03 Andrew Cagney <ac131313@redhat.com>
516
517 * sparc-nat.c (fetch_inferior_registers)
518 (store_inferior_registers): Add comment on problem of LWP vs
519 threads.
520
521 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
522 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
523 (lin_lwp_store_registers): Remove.
524 (init_lin_lwp_ops): Use fetch_inferior_registers
525 and store_inferior_registers directly.
526 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
527 (store_inferior_registers): Likewise.
528 Fix PR gdb/725.
529
530 2002-12-03 Andrew Cagney <ac131313@redhat.com>
531
532 * frame.h (get_frame_id): Convert to a function.
533 (null_frame_id, frame_id_p): Declare.
534 (frame_id_eq, frame_id_inner): Declare.
535 (frame_id_build): New function.
536 * frame.c (get_frame_id): Update. Use null_frame_id.
537 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
538 frame_id_inner.
539 (null_frame_id, frame_id_p): Define.
540 (frame_id_eq, frame_id_inner): Define.
541 (frame_id_build): New function.
542 * varobj.c (varobj_create): Update.
543 (varobj_update): Update.
544 * valops.c (value_assign): Update.
545 (new_root_variable): Update.
546 * infrun.c (save_inferior_status): Update.
547 * breakpoint.c (watch_command_1): Update.
548
549 2002-12-03 J. Brobecker <brobecker@gnat.com>
550
551 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
552 (SNAP2): Likewise.
553
554 2002-12-03 Andrew Cagney <cagney@redhat.com>
555
556 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
557 patch.
558
559 * PROBLEMS: Mention PR gdb/725.
560
561 2002-12-03 Andreas Schwab <schwab@suse.de>
562
563 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
564
565 2002-12-02 Adam Fedor <fedor@gnu.org>
566 Klee Dienes <kdienes@apple.com>
567
568 * objc-lang.c (objc_printstr): Add width arg to match
569 printstr prototype.
570 (compare_selectors): Add 'const' to arg types.
571 (compare_classes): Likewise.
572 (find_imps): Cast msym pointer to avoid compiler warning.
573 (print_object_command): Validate the address before
574 passing it to the print routine.
575 (find_objc_msgcall_submethod): Change function argument to
576 return an int.
577 * objc-lang.h: Add 'extern' to all function declarations.
578 (value_nsstring): Add declaration.
579
580 2002-12-02 J. Brobecker <brobecker@gnat.com>
581
582 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
583 Fixes a build failure on HP/UX.
584
585 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
586 failure on HP/UX.
587 (hpread_has_name): Advance declaration to avoid a compilation warning.
588 (pst_syms_count): Add missing variable type. By change, the compiler
589 was defaulting to int, which seems a good choice. Fixes a compilation
590 warning.
591 (pst_syms_size): Likewise.
592
593 2002-12-02 J. Brobecker <brobecker@gnat.com>
594
595 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
596 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
597 later to set the proper gdbarch methods depending on the osabi.
598 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
599
600 2002-12-02 J. Brobecker <brobecker@gnat.com>
601
602 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
603 * osabi.c (gdb_osabi_name): Add strings images for the two new
604 enum values.
605 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
606
607 2002-12-02 Andrew Cagney <ac131313@redhat.com>
608
609 * MAINTAINERS (Java): Global maintainers are responible for Java.
610 (Past Maintainers): Mention both Anthony Green and Per Bothner as
611 part Java maintainers.
612
613 2002-12-02 J. Brobecker <brobecker@gnat.com>
614
615 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
616 Fixes a compilation failure on AiX.
617
618 2002-12-02 J. Brobecker <brobecker@gnat.com>
619
620 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
621 why aix-thread.o is not listed.
622
623 2002-12-01 Andrew Cagney <ac131313@redhat.com>
624
625 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
626 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
627 * gdbarch.h, gdbarch.c: Re-generate.
628 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
629 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
630 * config/pa/tm-hppa.h, frame.h: Update.
631 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
632 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
633 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
634 * cris-tdep.c, alpha-tdep.c: Update.
635 * frame.c (set_unwind_by_pc, create_new_frame): Use either
636 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
637 (get_prev_frame): Ditto.
638
639 2002-11-30 Andrew Cagney <cagney@redhat.com>
640
641 * exec.c (xfer_memory): Replace boolean with int.
642 * p-exp.y: Use 0 instead of false.
643 * corelow.c (gdb_check_format): Change return type to int from
644 boolean.
645 * utils.c: Don't include <curses.h> or <term.h> first.
646
647 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
648
649 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
650 (m68hc11_register_byte): Remove.
651 (m68hc11_gdbarch_init): Don't set the above.
652
653 2002-11-29 Andrew Cagney <cagney@redhat.com>
654
655 * remote-mips.c (mips_initialize): Force a selected frame rebuild
656 by calling get_selected_frame.
657 * ocd.c (ocd_start_remote): Use get_selected frame instead of
658 set_current_frame, create_new_frame, select_frame and
659 get_current_frame.
660 * remote-e7000.c (e7000_start_remote): Ditto.
661 * remote-mips.c (common_open): Ditto
662 * remote-rdp.c (remote_rdp_open): Ditto.
663
664 2002-11-29 Andreas Schwab <schwab@suse.de>
665
666 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
667 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
668 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
669 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
670 read_memory_unsigned_integer instead of read_memory_integer when
671 dealing with addresses and instruction opcodes.
672 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
673 (m68k_linux_frame_saved_pc): Likewise.
674
675 2002-11-29 Andrew Cagney <ac131313@redhat.com>
676
677 * stack.c (selected_frame, select_frame): Move from here ...
678 * frame.c (selected_frame, select_frame): ... to here. Include
679 "language.h".
680 * Makefile.in (frame.o): Update dependencies.
681 * frame.c (get_selected_frame): New function.
682 * frame.h (get_selected_frame): Declare.
683 (deprecated_selected_frame): Rename selected_frame.
684 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
685 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
686 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
687 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
688 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
689 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
690 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
691 * z8k-tdep.c, cli/cli-cmds.c: Update.
692
693 2002-11-29 Andrew Cagney <ac131313@redhat.com>
694
695 * frame.h (get_selected_block): Add comments.
696
697 2002-11-28 Andrew Cagney <ac131313@redhat.com>
698
699 * frame.c (pc_notcurrent): New function.
700 (find_frame_sal): New function.
701 * frame.h (find_frame_sal): Declare.
702 (struct symtab_and_line): Add opaque declaration.
703 * stack.c (print_frame_info_base): Use find_frame_sal instead of
704 find_pc_line.
705 (frame_info): Ditto.
706 * ada-lang.c (find_printable_frame): Ditto.
707
708 2002-11-28 J. Brobecker <brobecker@gnat.com>
709
710 * configure.in: Check that the pthdebug library is recent enough
711 before enabling thread support on native AiX.
712 * configure: Regenerate.
713
714 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
715 from the list of object files as it is now appended by configure
716 if thread support is enabled.
717 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
718 if thread support is enabled.
719
720 2002-11-28 Andrew Cagney <cagney@redhat.com>
721
722 * stack.c (get_selected_block): In-line get_current_block.
723 * frame.h (get_current_block): Delete declaration.
724 * blockframe.c (get_current_block): Delete function.
725
726 2002-11-28 Andrew Cagney <ac131313@redhat.com>
727
728 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
729 USE_GENERIC_DUMMY_FRAMES.
730 * gdbarch.h, gdbarch.c: Regenerate.
731 * valops.c, frame.c: Update.
732 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
733 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
734 * config/pa/tm-hppa.h, blockframe.c: Update.
735 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
736 * m68k-tdep.c, alpha-tdep.c: Ditto.
737
738 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
739 * mips-tdep.c: Ditto.
740
741 2002-11-27 Andrew Cagney <ac131313@redhat.com>
742
743 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
744 (USE_GENERIC_DUMMY_FRAMES): Default to true.
745 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
746 * gdbarch.c, gdbarch.h: Re-generate.
747 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
748 (CALL_DUMMY_LOCATION): Delete macro definition.
749 (PC_IN_CALL_DUMMY): Delete macro definitions.
750
751 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
752 default is already generic_pc_in_call_dummy.
753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
754 * v850-tdep.c (v850_gdbarch_init): Ditto.
755 * sh-tdep.c (sh_gdbarch_init): Ditto.
756 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
757 * mips-tdep.c (mips_gdbarch_init): Ditto.
758 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
760 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
761 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
762 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
763 * avr-tdep.c (avr_gdbarch_init): Ditto.
764
765 * arm-tdep.c (arm_gdbarch_init): Do not set
766 use_generic_dummy_frames, default is already 1.
767 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
768 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
769 * v850-tdep.c (v850_gdbarch_init): Ditto.
770 * sh-tdep.c (sh_gdbarch_init): Ditto.
771 * s390-tdep.c (s390_gdbarch_init): Ditto.
772 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
774 * mips-tdep.c (mips_gdbarch_init): Ditto.
775 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
777 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
778 * i386-tdep.c (i386_gdbarch_init): Ditto.
779 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
780 * frv-tdep.c (frv_gdbarch_init): Ditto.
781 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
782 * cris-tdep.c (cris_gdbarch_init): Ditto.
783 * avr-tdep.c (avr_gdbarch_init): Ditto.
784
785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
786 call_dummy_location, default is already AT_ENTRY_POINT.
787 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
788 * v850-tdep.c (v850_gdbarch_init): Ditto.
789 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
790 * sh-tdep.c (sh_gdbarch_init): Ditto.
791 * s390-tdep.c (s390_gdbarch_init): Ditto.
792 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
793 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
794 * mips-tdep.c (mips_gdbarch_init): Ditto.
795 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
797 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
798 * i386-tdep.c (i386_gdbarch_init): Ditto.
799 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
800 * frv-tdep.c (frv_gdbarch_init): Ditto.
801 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
802 * cris-tdep.c (cris_gdbarch_init): Ditto.
803 * avr-tdep.c (avr_gdbarch_init): Ditto.
804 * arm-tdep.c (arm_gdbarch_init): Ditto.
805 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
806
807 2002-11-28 Andrew Cagney <cagney@redhat.com>
808
809 * frame.h: Update comments on set_current_frame, create_new_frame,
810 flush_cached_frames, reinit_frame_cache, select_frame and
811 selected_frame.
812
813 2002-11-27 Andrew Cagney <cagney@redhat.com>
814
815 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
816 deprecated pc_in_call_dummy function.
817 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
818 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
819 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
820 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
821 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
822
823 2002-11-26 Martin M. Hunt <hunt@redhat.com>
824
825 * Makefile.in: Remove Tix dependencies.
826 * acinclude.m4: Ditto.
827 * aclocal.m4: Ditto.
828 * configure.in: Ditto.
829 * configure: Regenerated.
830
831 2002-11-26 Andrew Cagney <ac131313@redhat.com>
832
833 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
834 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
835 * gdbarch.c: Re-generate.
836
837 2002-11-26 Andrew Cagney <ac131313@redhat.com>
838
839 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
840 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
841 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
842 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
843 pc_in_call_dummy_at_entry_point.
844 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
845 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
846 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
847 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
848 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
849 pc_in_call_dummy_on_stack.
850 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
851 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
852 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
853 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
854 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
855
856 2002-11-26 Andrew Cagney <ac131313@redhat.com>
857
858 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
859 pc_in_call_dummy_before_text_end
860 (deprecated_pc_in_call_dummy_after_text_end): Rename
861 pc_in_call_dummy_after_text_end.
862 (deprecated_pc_in_call_dummy_on_stack): Rename
863 pc_in_call_dummy_on_stack.
864 (deprecated_pc_in_call_dummy_at_entry_point): Rename
865 pc_in_call_dummy_at_entry_point.
866 * m68k-tdep.c (m68k_gdbarch_init): Update.
867 * s390-tdep.c (s390_gdbarch_init): Update.
868 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
869 * vax-tdep.c (vax_gdbarch_init): Update.
870 * sparc-tdep.c (sparc_gdbarch_init): Update.
871 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
872 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
873 * i386-tdep.c (i386_gdbarch_init): Update.
874 * frv-tdep.c (frv_gdbarch_init): Update.
875 * cris-tdep.c (cris_gdbarch_init): Update.
876 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
877 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
878 (deprecated_pc_in_call_dummy_after_text_end)
879 (deprecated_pc_in_call_dummy_on_stack)
880 (deprecated_pc_in_call_dummy_at_entry_point): Update.
881 * alpha-tdep.c (alpha_gdbarch_init): Update.
882
883 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
884
885 * acconfig.h (HAVE_PREAD64): Add.
886 * configure.in: Check for pread64.
887 * config.in: Regenerated.
888 * configure: Regenerated.
889 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
890 * linux-proc.c (linux_proc_xfer_memory): New function.
891 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
892
893 2002-11-25 David Carlton <carlton@math.stanford.edu>
894
895 * dwarf2read.c (scan_partial_symbols): Descend into namespace
896 pdi's with no name.
897
898 2002-11-25 Andrew Cagney <ac131313@redhat.com>
899
900 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
901 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
902
903 2002-11-25 Jim Blandy <jimb@redhat.com>
904
905 * symfile.c (init_objfile_sect_indices): New function.
906 (default_symfile_offsets): Move the section-index-initializing
907 stuff into init_objfile_sect_indices, and call that.
908
909 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
910 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
911
912 * symfile.c (syms_from_objfile): Adjust indentation.
913
914 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
915 || info_verbose isn't true.
916
917 2002-11-24 Andrew Cagney <ac131313@redhat.com>
918
919 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
920 default to get_frame_base.
921 * gdbarch.h, gdbarch.c: Regenerate.
922 * arch-utils.c (default_frame_address): Delete function.
923 * arch-utils.h (default_frame_address): Delete declaration
924
925 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
926
927 * varobj.c (find_frame_addr_in_frame_chain):
928 Use get_frame_base instead of FRAME_FP,
929 obvious fix.
930
931 2002-11-19 Andrew Cagney <ac131313@redhat.com>
932
933 * frame.h (FRAME_FP): Delete macro.
934 (get_frame_base): New function declaration.
935 * frame.c (get_frame_base): New function.
936 (get_frame_id): Use ->frame.
937 (frame_find_by_id): Rewrite to use get_frame_id.
938 * blockframe.c: Use get_frame_base instead of FRAME_FP.
939 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
940 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
941 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
942 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
943 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
944 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
945
946 2002-11-24 Andrew Cagney <ac131313@redhat.com>
947
948 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
949
950 2002-11-24 Andrew Cagney <ac131313@redhat.com>
951
952 * frame.c (set_unwind_by_pc): Revert change below, use
953 PC_IN_CALL_DUMMY.
954 (get_prev_frame): Ditto.
955
956 2002-11-24 Andrew Cagney <ac131313@redhat.com>
957
958 * dummy-frame.c (pc_in_dummy_frame): New function.
959 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
960 (find_dummy_frame): Update comment.
961 (generic_pop_current_frame): Use get_frame_type.
962 * dummy-frame.h (pc_in_dummy_frame): Declare.
963 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
964 (create_new_frame): Use pc_in_dummy_frame.
965 (get_prev_frame): Use pc_in_dummy_frame.
966 (frame_saved_regs_register_unwind): Use get_prev_frame.
967 (deprecated_generic_get_saved_register): Use get_prev_frame.
968
969 2002-11-23 Andrew Cagney <ac131313@redhat.com>
970
971 * blockframe.c (find_frame_addr_in_frame_chain): Move function
972 from here ...
973 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
974 (varobj_create): Note that frame ID should be used.
975 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
976
977 2002-11-23 Andrew Cagney <ac131313@redhat.com>
978
979 * breakpoint.c: Include "gdb_assert.h".
980 (deprecated_frame_in_dummy): Assert that generic dummy frames are
981 not being used.
982 * Makefile.in (breakpoint.o): Update dependencies.
983 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
984 deprecated_frame_in_dummy.
985 * stack.c (print_frame_info_base): Ditto.
986 (frame_info): Ditto.
987 (print_frame_info_base): Ditto. Delete dead code.
988
989 2002-11-23 Andreas Schwab <schwab@suse.de>
990
991 * Makefile.in (m68k_tdep_h): Define.
992 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
993 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
994 * m68k-tdep.c: Move register number enum ...
995 * m68k-tdep.h: ... to this new file and rename the constants from
996 E_* to M68K_*. All uses changed.
997 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
998 * abug-rom.c: Include "m68k-tdep.h". Use
999 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1000 * cpu32bug-rom.c: Likewise.
1001 * dbug-rom.c: Likewise.
1002 * m68k-tdep.c: Likewise.
1003 * m68klinux-nat.c: Likewise.
1004 * remote-est.c: Likewise.
1005 * rom68k-rom.c: Likewise.
1006 * config/m68k/tm-linux.h: Likewise.
1007
1008 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1009
1010 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1011 dummy frame initialization code.
1012 * mips-tdep.c (mips_gdbarch_init): Ditto.
1013
1014 2002-11-22 Christopher Faylor <cgf@redhat.com>
1015
1016 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1017 attach will hang.
1018
1019 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1020
1021 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1022 to default_frame_address.
1023 * gdbarch.h, gdbarch.c: Re-generate.
1024
1025 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1026 or frame_locals_address to default_frame_address.
1027 * m68k-tdep.c (m68k_gdbarch_init): Update.
1028 * i386-tdep.c (i386_gdbarch_init): Update.
1029 * frv-tdep.c (frv_gdbarch_init): Update.
1030 * sh-tdep.c (sh_gdbarch_init): Update.
1031 * v850-tdep.c (v850_gdbarch_init): Update.
1032 * sparc-tdep.c (sparc_gdbarch_init): Update.
1033 * mips-tdep.c (mips_gdbarch_init): Update.
1034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1035 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1037
1038 * cris-tdep.c (cris_frame_args_address): Delete function.
1039 (cris_frame_locals_address): Delete function.
1040 (cris_gdbarch_init): Do not set frame_args_address or
1041 frame_locals_address.
1042
1043 2002-11-22 Michael Snyder <msnyder@redhat.com>
1044
1045 * thread-db.c (thread_db_load): Tell the user what's going on
1046 if dlopen fails on libthread_db.
1047
1048 2002-11-23 Andreas Schwab <schwab@suse.de>
1049
1050 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1051 invariant return values.
1052
1053 2002-11-22 Andreas Schwab <schwab@suse.de>
1054
1055 * valops.c (value_slice): Move declaration of `offset' to avoid
1056 warning.
1057
1058 2002-11-22 Christopher Faylor <cgf@redhat.com>
1059
1060 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1061 (struct so_stuff): Add end_addr field.
1062 (register_loaded_dll): Calculate and store end address of loaded dll.
1063 (solib_address): New function.
1064 (child_solib_loaded_library_pathname): Pass carefully constructed
1065 section info to safe_symbol_file_add rather than ignoring it.
1066 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1067 DLL is loaded.
1068 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1069 (child_create_inferior): Fix a compiler warning.
1070 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1071 (solib_address): Declare new function.
1072
1073 2002-11-22 Andreas Schwab <schwab@suse.de>
1074
1075 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1076 and FPS registers.
1077
1078 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1079
1080 * maint.c (_initialize_maint_cmds): Fix typo. From
1081 Francesco Potorti` <pot@gnu.org>.
1082
1083 2002-11-21 Andrew Cagney <cagney@redhat.com>
1084
1085 * mips-tdep.c (mips_dump_tdep): Delete references to
1086 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1087 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1088 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1089 * printcmd.c (build_address_symbolic): Delete calls to
1090 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1091 (address_info): Ditto.
1092 Fix PR gdb/773.
1093
1094 2002-11-19 Klee Dienes <kdienes@apple.com>
1095 Adam Fedor <fedor@gnu.org>
1096
1097 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1098 the ability to explicitly specify the quote characters and word
1099 break characters; if NULL is specified for either, use the old
1100 behavior of using the characters used by the completer.
1101 (skip_chars): New function. Convenience wrapper around
1102 skip_quoted_chars to provide the original skip_chars behavior.
1103 * completer.h (skip_quoted_chars): Add prototype.
1104
1105 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1106
1107 Problems reported by Paul Eggert.
1108 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1109
1110 2002-11-19 Andreas Schwab <schwab@suse.de>
1111
1112 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1113 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1114 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1115 (m68k_linux_frame_saved_pc): Move to ...
1116 * m68klinux-tdep.c: ... here. New file.
1117 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1118 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1119
1120 2002-11-19 Adam Fedor <fedor@gnu.org>
1121
1122 * objc-exp.y: Revert to old skip_quoted usage.
1123
1124 2002-11-19 Adam Fedor <fedor@gnu.org>
1125
1126 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1127 (objc_lang_h): Define.
1128 (YYFILES): Add objc-exp.tab.c.
1129 (local-maintainer-clean): Remove objc-exp.tab.c.
1130 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1131
1132 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1133
1134 * p-exp.y (typecast rule): Add automatic dereference of
1135 pascal classes if needed.
1136 (THIS): Set current_type.
1137 Automatically dereference pascal classes.
1138 (typebase rule): Add ^typebase recognition.
1139
1140 2002-11-18 Adam Fedor <fedor@gnu.org>
1141
1142 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1143 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1144 (op_name): Handle OP_OBJC_SELF.
1145 * Makefile.in (expprint.o): Add additional depends.
1146
1147 2002-11-18 Adam Fedor <fedor@gnu.org>
1148
1149 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1150 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1151 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1152 * objc-exp.y: Likewise.
1153
1154 2002-11-18 Adam Fedor <fedor@gnu.org>
1155
1156 * gdb/parser-defs.h: (struct objc_class_str): New structure
1157 for parsing ObjC classes.
1158
1159 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1160
1161 * stack.c (frame_relative_level): Copy function from here ...
1162 * frame.c (frame_relative_level): ...to here.
1163
1164 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1165
1166 * frame.h (enum frame_type): Define.
1167 (get_frame_type): Declare.
1168 (struct frame_info): Add field `type'. Delete field
1169 signal_handler_caller.
1170 (deprecated_set_frame_signal_handler_caller): Declare.
1171 * frame.c (get_frame_type): New function.
1172 (deprecated_set_frame_type): New function.
1173 (create_new_frame): Set the frame's type.
1174 (get_prev_frame): Similar.
1175 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1176 * s390-tdep.c: Ditto.
1177 * m68klinux-nat.c: Ditto.
1178 * ns32k-tdep.c: Ditto.
1179 * x86-64-linux-tdep.c: Ditto.
1180 * vax-tdep.c: Ditto.
1181 * rs6000-tdep.c: Ditto.
1182 * ppc-linux-tdep.c: Ditto.
1183 * i386-interix-tdep.c: Ditto.
1184 * mips-tdep.c: Ditto.
1185 * m68k-tdep.c: Ditto.
1186 * hppa-tdep.c: Ditto.
1187 * ia64-tdep.c: Ditto.
1188 * cris-tdep.c: Ditto.
1189 * arm-tdep.c: Ditto.
1190 * alpha-tdep.c: Ditto.
1191 * i386-tdep.c: Ditto.
1192 * stack.c: Ditto.
1193 * ada-lang.c: Ditto.
1194 * blockframe.c: Update.
1195 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1196 deprecated_set_frame_type instead of signal_handler_caller.
1197 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1198 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1199 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1200
1201 2002-11-18 Klee Dienes <kdienes@apple.com>
1202
1203 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1204
1205 2002-11-18 Klee Dienes <kdienes@apple.com>
1206
1207 * buildsym.c (pop_context): Add comment.
1208
1209 2002-11-18 Klee Dienes <kdienes@apple.com>
1210
1211 * buildsym.h (pop_context): Convert to function, defined in
1212 buildsym.c.
1213 * buildsym.c: Include gdb_assert.h.
1214 (pop_context): Implement as C function. Add check for stack
1215 underflow.
1216 * dbxread.c (process_one_symbol): Complain and stop processing
1217 that symbol if we are already at the top of the context stack for
1218 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1219 when processing N_RBRAC.
1220
1221 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1222
1223 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1224 define.
1225 (struct target_waitstatus): Add opaque definition.
1226 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1227 * exec.c (init_exec_ops): Likewise.
1228 * fork-child.c (clone_and_follow_inferior): Remove.
1229 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1230 * inferior.h (clone_and_follow_inferior): Remove prototype.
1231 * infrun.c (follow_fork_mode_both): Remove.
1232 (follow_fork_mode_kind_names): Remove commented out "both".
1233 (follow_inferior_fork): Remove follow_fork_mode_both support.
1234 * inftarg.c (child_clone_and_follow_inferior): Remove.
1235 (child_post_follow_inferior_by_clone): Remove.
1236 (init_child_ops): Don't set to_clone_and_follow_inferior
1237 or to_post_follow_inferior_by_clone.
1238 * target.c (default_clone_and_follow_inferior): Remove.
1239 (cleanup_target): Don't set to_clone_and_follow_inferior
1240 or to_post_follow_inferior_by_clone.
1241 (find_default_clone_and_follow_inferior): Remove.
1242 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1243 (debug_to_clone_and_follow_inferior): Remove.
1244 (debug_to_post_follow_inferior_by_clone): Remove.
1245 (setup_target_debug): Don't set to_clone_and_follow_inferior
1246 or to_post_follow_inferior_by_clone.
1247 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1248 and to_post_follow_inferior_by_clone.
1249 (child_clone_and_follow_inferior): Remove prototype.
1250 (child_post_follow_inferior_by_clone): Remove prototype.
1251 (target_clone_and_follow_inferior): Remove macro.
1252 (target_post_follow_inferior_by_clone): Remove macro.
1253 (find_default_clone_and_follow_inferior): Remove prototype.
1254
1255 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1256
1257 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1258 inferior_has_vforked, and inferior_has_execd instead of
1259 target_has_forked, target_has_vforked, and target_has_execd.
1260 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1261 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1262 (CHILD_WAIT): Define.
1263 (child_wait): Add prototype.
1264 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1265 Add prototype.
1266 (hpux_has_vforked): Likewise, from child_has_vforked.
1267 (hpux_has_execd): Likewise, from child_has_execd.
1268 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1269 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1270 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1271 and hpux_has_syscall_event instead of the target hooks.
1272 * infrun.c (inferior_has_forked, inferior_has_vforked)
1273 (inferior_has_execd): New functions.
1274 * inftarg.c (not_same_real_pid): Remove.
1275 (child_wait): Remove references to not_same_real_pid,
1276 target_has_forked, target_has_vforked, target_has_execd,
1277 and target_has_syscall_event.
1278 (child_has_forked, child_has_vforked, child_has_execd)
1279 (child_has_syscall_event): Remove.
1280 (init_child_ops): Remove references to child_has_forked,
1281 child_has_vforked, child_has_execd, and child_has_syscall_event.
1282 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1283 (hpux_has_vforked): Likewise, from child_has_vforked.
1284 (hpux_has_execd): Likewise, from child_has_execd.
1285 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1286 * target.c (cleanup_target): Remove references to
1287 to_has_forked, to_has_vforked, to_has_execd, and
1288 to_has_syscall_event.
1289 (update_current_target): Likewise.
1290 (setup_target_debug): Likewise.
1291 (debug_to_has_forked): Remove.
1292 (debug_to_has_vforked): Remove.
1293 (debug_to_has_execd): Remove.
1294 (debug_to_has_syscall_event): Remove.
1295 * target.h (struct target_ops): Remove to_has_forked.
1296 to_has_vforked, to_has_execd, and to_has_syscall_event.
1297 (child_has_forked, child_has_vforked, child_has_execd)
1298 (child_has_syscall_event): Remove prototypes.
1299 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1300 prototypes.
1301 (target_has_forked, target_has_vforked, target_has_execd)
1302 (target_has_syscall_event): Remove macros.
1303
1304 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1305
1306 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1307 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1308 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1309 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1310 * target.c (cleanup_target): Remove reference to
1311 to_can_follow_vfork_prior_to_exec.
1312 (update_current_target): Likewise.
1313 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1314 (setup_target_debug): Remove reference to
1315 to_can_follow_vfork_prior_to_exec.
1316 * target.h (struct target_ops): Remove
1317 to_can_follow_vfork_prior_to_exec.
1318 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1319 (target_can_follow_vfork_prior_to_exec): Remove definition.
1320 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1321 define.
1322 * infrun.c (follow_vfork_when_exec): Remove.
1323 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1324 (follow_exec): Likewise.
1325 (handle_inferior_event): Likewise.
1326 (keep_going): Likewise.
1327
1328 2002-11-15 Andrew Cagney <cagney@redhat.com>
1329
1330 * frame.c (generic_unwind_get_saved_register): Make static.
1331 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1332 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1333 defaults to generic_unwind_get_saved_register.
1334 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1336 * frv-tdep.c (frv_gdbarch_init): Ditto.
1337 * i386-tdep.c (i386_gdbarch_init): Ditto.
1338 * s390-tdep.c (s390_gdbarch_init): Ditto.
1339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1340 * v850-tdep.c (v850_gdbarch_init): Ditto.
1341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1342 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1343 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1344
1345 2002-11-15 Andrew Cagney <cagney@redhat.com>
1346
1347 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1348 i386-tdep.c.
1349
1350 2002-11-15 Andrew Cagney <cagney@redhat.com>
1351
1352 * frame.h (sigtramp_saved_pc): Delete declaration.
1353 * blockframe.c (sigtramp_saved_pc): Delete function.
1354 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1355 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1356 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1357 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1358
1359 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1360
1361 * frame.c (frame_pc_unwind): New function.
1362 (frame_saved_regs_pc_unwind): New function.
1363 (frame_register_unwind): Pass unwind_cache instead of
1364 register_unwind_cache.
1365 (set_unwind_by_pc): Add unwind_pc parameter, set.
1366 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1367 (get_prev_frame): Ditto.
1368 * frame.h (frame_pc_unwind_ftype): Declare.
1369 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1370 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1371 (frame_pc_unwind): Declare.
1372 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1373 (struct dummy_frame): Add comment mentioning that values are for
1374 previous frame.
1375 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1376 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1377 (generic_file_frame_chain_valid): Ditto.
1378 * stack.c (frame_info): Ditto.
1379
1380 2002-11-15 David Carlton <carlton@math.stanford.edu>
1381
1382 * linespec.c (locate_first_half): New function.
1383 (decode_line_1): Move code into locate_first_half.
1384
1385 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1386
1387 * complaints.h: Add comment explaining how to eliminate a
1388 deprecated_complain call.
1389 * complaints.h: Fix spelling errors.
1390
1391 2002-11-15 David Carlton <carlton@math.stanford.edu>
1392
1393 * printcmd.c: Remove #include "disasm.h".
1394
1395 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1396
1397 * frame.h: Move the most relevant interface functions to the start
1398 of the file.
1399
1400 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1401
1402 * regcache.h (deprecated_registers): Rename registers.
1403 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1404 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1405 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1406 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1407 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1408 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1409 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1410 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1411 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1412 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1413 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1414 * v850ice.c: Update.
1415
1416 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1417
1418 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1419 NULL buffer.
1420
1421 2002-11-13 Andrew Cagney <cagney@redhat.com>
1422
1423 * regcache.h (deprecated_read_register_bytes): Rename
1424 read_register_bytes.
1425 (deprecated_write_register_bytes): Rename write_register_bytes.
1426 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1427 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1428 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1429 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1430 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1431 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1432 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1433 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1434 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1435 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1436 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1437 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1438 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1439 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1440
1441 2002-11-13 Jim Blandy <jimb@redhat.com>
1442
1443 * findvar.c (read_var_value): Doc fix.
1444
1445 2002-11-13 Andrew Cagney <cagney@redhat.com>
1446
1447 * regcache.c (struct regcache): Replace passthough_p with
1448 readonly_p.
1449 (regcache_xmalloc): Initialize readonly_p.
1450 (build_regcache): Initialize readonly_p.
1451 (regcache_save): New function.
1452 (regcache_restore): New function.
1453 (regcache_cpy): Re-implement using regcache_save and
1454 regcache_restore.
1455 (regcache_raw_read): Update.
1456 (regcache_cooked_read): When a read-only cache, checked for cached
1457 pseudo register values.
1458 (regcache_raw_write): Assert that the cache is not read-only.
1459 Remove code handling a non-passthrough cache.
1460 * regcache.h (regcache_save): Declare.
1461 (regcache_restore): Declare.
1462
1463 2002-11-13 Andrew Cagney <cagney@redhat.com>
1464
1465 * regcache.c (struct regcache_descr): Add fields
1466 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1467 (init_legacy_regcache_descr): Compute the size of a cooked
1468 register cache and then assign that to sizeof_raw_registers. Set
1469 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1470 (init_legacy_regcache_descr): Ditto.
1471
1472 2002-11-13 Andrew Cagney <cagney@redhat.com>
1473
1474 * regcache.c (register_buffer): Move to near start of file, update
1475 description.
1476 (regcache_raw_read): Use.
1477 (regcache_raw_write): Use.
1478 (struct regcache): Rename raw_registers to registers and
1479 raw_register_valid_p to register_valid_p.
1480 (regcache_xmalloc): Update.
1481 (regcache_xfree): Update.
1482 (register_buffer): Update.
1483 (regcache_cpy): Update.
1484 (regcache_cpy_no_passthrough): Update.
1485 (regcache_valid_p): Update.
1486 (deprecated_grub_regcache_for_registers): Update.
1487 (deprecated_grub_regcache_for_register_valid): Update.
1488 (set_register_cached): Update.
1489 (regcache_raw_write): Update.
1490
1491 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1492
1493 * p-exp.y (name_not_typename): Use copy_name to
1494 set current_type variable for fields of THIS.
1495
1496 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1497
1498 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1499 * monitor.c (init_base_monitor_ops): Likewise.
1500 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1501 * remote-array.c (init_array_ops): Likewise.
1502 * remote-e7000.c (init_e7000_ops): Likewise.
1503 * remote-es.c (init_es1800_ops): Likewise.
1504 (init_es1800_child_ops): Likewise.
1505 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1506 * remote-sim.c (init_gdbsim_ops): Likewise.
1507 * remote-st.c (init_st2000_ops): Likewise.
1508 * sol-thread.c (init_sol_core_ops): Likewise.
1509 (init_sol_thread_ops): Likewise.
1510 * v850ice.c (init_850ice_ops): Likewise.
1511 * win32-nat.c (init_child_ops): Likewise.
1512 * wince.c (init_child_ops): Likewise.
1513
1514 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1515
1516 * utils.c (gdb_realpath): Make rp a constant pointer.
1517
1518 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1519
1520 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1521 a constant buffer; cannonicalize_file_name(); realpath() with a
1522 pathconf() defined buffer, xstrdup().
1523
1524 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1525
1526 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1527 to hang2.C; hang3.c to hang3.C.
1528
1529 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1530
1531 * findvar.c (read_var_value): Reenable TLS code.
1532
1533 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1534 Jim Blandy <jimb@redhat.com>
1535
1536 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1537 * target.c (update_current_target): Add
1538 to_get_thread_local_address.
1539 * target.h (to_get_thread_local_address): Export.
1540 (target_get_thread_local_address): Define.
1541 (target_get_thread_local_address_p): Define.
1542 * thread-db.c: Include solib-svr4.h.
1543 (td_thr_tls_get_addr_p): Define.
1544 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1545 (thread_db_get_thread_local_address): New function.
1546 (init_thread_db_ops): Initialize to_get_thread_local_address.
1547 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1548 * configure: Regenerate.
1549 * config.in: Regenerate.
1550
1551 2002-11-11 David Carlton <carlton@math.stanford.edu>
1552
1553 * linespec.c (set_flags): New function.
1554 (decode_line_1): Move code into set_flags.
1555
1556 2002-11-11 David Carlton <carlton@math.stanford.edu>
1557
1558 * linespec.c (decode_line_1): Move chunks of code to separate
1559 functions.
1560 (initialize_defaults): New function.
1561 (decode_indirect): New function.
1562
1563 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1564
1565 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1566 instead of void_code_ptr.
1567 (sigtramp_saved_pc): Ditto.
1568
1569 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1570 i386_fp_regnum_p.
1571
1572 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1573
1574 * gdbtypes.h (struct main_type): Move artificial flag out of
1575 loc. New member of ``struct field'' named static_kind. Reduce
1576 overloaded meaning of bitsize.
1577 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1578 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1579 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1580
1581 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1582 new fields.
1583 (template_to_fixed_record_type, template_to_static_fixed_type)
1584 (to_record_with_fixed_variant_part): Likewise.
1585 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1586 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1587 * dwarfread.c (struct_type, enum_type): Likewise.
1588 * hpread.c (hpread_read_enum_type)
1589 (hpread_read_function_type, hpread_read_doc_function_type)
1590 (hpread_read_struct_type): Likewise.
1591 * mdebugread.c (parse_symbol): Likewise.
1592
1593 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1594
1595 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1596 * stack.c (print_frame_info_base): Update.
1597 (print_frame_info_base, frame_info): Update.
1598 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1599 (sparc_frame_saved_pc): Update.
1600 * ada-lang.c (find_printable_frame): Update.
1601 * breakpoint.c (deprecated_frame_in_dummy): Update.
1602
1603 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1604
1605 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1606 defined.
1607 (regmap): Extend to cover all registers.
1608 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1609 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1610 definitions.
1611 (fetch_register, sore_register): Simplify.
1612 (old_fetch_inferior_registers, old_store_inferior_registers):
1613 Remove functions.
1614 (cannot_fetch_register, cannot_store_register): Change
1615 implementation to use regmap array to decide which registers
1616 cannot be fetched/stored. This removes $orig_eax from the
1617 registers that cannot be fetched/stored.
1618 (fetch_inferior_registers): Call fetch_register directly instead
1619 of calling old_fetch_inferior_registers.
1620 (store_inferior_registers): Call store_register directly instead
1621 of calling old_store_inferior_registers.
1622 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1623 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1624 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1625
1626 2002-11-09 Klee Dienes <kdienes@apple.com>
1627
1628 * i387-tdep.c (i387_supply_register): When called with NULL as a
1629 buffer, mark the register as not provided (to mirror the behavior
1630 of supply_register).
1631 (i387_supply_fxsave): Ditto.
1632 (i387_supply_fsave): Ditto (inherits the behavior from
1633 i387_supply_register).
1634
1635 2002-11-09 Klee Dienes <kdienes@apple.com>
1636
1637 * blockframe.c (sigtramp_saved_pc): Use
1638 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1639 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1640 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1641
1642 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1643
1644 * frame.c (get_prev_frame): Test prev_p to identify a previously
1645 unwound frame. Initialize prev_p.
1646 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1647 comment.
1648
1649 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1650
1651 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1652 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1653 more comments. Zap dead code.
1654
1655 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1656
1657 * infcmd.c (print_vector_info, print_float_info): Move code that
1658 checks whether the target has any registers and whether there is a
1659 selected frame up, such that it is also used if a target provides
1660 multi-arch definitions of these functions.
1661
1662 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1663
1664 * Makefile.in (DESTDIR): Define.
1665 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1666 prefix.
1667
1668 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1669 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1670
1671 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1672
1673 * i386-linux-tdep.c: Include "reggroups.h".
1674 (i386_linux_register_reggroup_p): New function.
1675 (i386_linux_init_abi): Set register_reggroup_p to
1676 i386_linux_register_reggroup_p.
1677 * i386-tdep.h (i386_register_reggroup_p): Declare.
1678 * i386-tdep.c: Include "reggroups.h".
1679 (i386_init_reggroups): New function.
1680 (i386_add_reggroups): New function.
1681 (i386_register_reggroup_p): New function.
1682 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1683 (_initialize_i386_tdep): Call i386_init_reggroups.
1684 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1685 specific reggroups.
1686
1687 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1688
1689 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1690 request that's available in *BSD.
1691
1692 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1693
1694 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1695 FDOFF_REGNUM.
1696
1697 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1698
1699 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1700 * dummy-frame.c (find_dummy_frame): Rename
1701 generic_find_dummy_frame, make static. Return the dummy frame
1702 instead of the regcache.
1703 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1704 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1705 (dummy_frame_register_unwind): Rename
1706 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1707 * dummy-frame.h (dummy_frame_register_unwind): Rename
1708 generic_call_dummy_register_unwind.
1709
1710 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1711
1712 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1713 except the inclusion of "i386/tm-i386.h", to...
1714 * config/i386/nm-i386v42mp.h: ...here.
1715 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1716
1717 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1718
1719 * Makefile.in (frame.o): Update dependencies.
1720 * blockframe.c (current_frame, frame_obstack_alloc)
1721 (frame_saved_regs_zalloc, get_current_frame)
1722 (set_current_frame, create_new_frame)
1723 (set_unwind_by_pc, get_next_frame)
1724 (flush_cached_frames, reinit_frame_cache)
1725 (frame_saved_regs_register_unwind)
1726 (deprecated_generic_get_saved_register)
1727 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1728 (_initialize_blockframe): Move frame code from here...
1729 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1730 "annotate.h" and "dummy-frame.h".
1731 (_initialize_frame): New function.
1732
1733 2002-11-08 Jim Blandy <jimb@redhat.com>
1734
1735 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1736 when we finish a function a context.
1737 * buildsym.h (outermost_context_p): New macro.
1738 (Bug analyzed by David Edelsohn.)
1739
1740 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1741
1742 * blockframe.c: Include "dummy-frame.h".
1743 (struct dummy_frame, dummy_frame_stack)
1744 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1745 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1746 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1747 (generic_save_call_dummy_addr, generic_pop_current_frame)
1748 (generic_pop_dummy_frame, generic_fix_call_dummy)
1749 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1750 dummy frame code from here...
1751 * dummy-frame.c: ...to here. New file.
1752 * dummy-frame.h: New file.
1753 (generic_call_dummy_register_unwind): Declare.
1754 (generic_find_dummy_frame): Declare.
1755 * Makefile.in (SFILES): Add dummy-frame.c.
1756 (dummy-frame.o): Specify dependencies.
1757 (dummy_frame_h): Define.
1758 (COMMON_OBS): Add dummy-frame.o.
1759 (blockframe.o): Update dependencies.
1760
1761 2002-11-08 Jim Blandy <jimb@redhat.com>
1762
1763 * dwarf2read.c (read_func_scope): Restore local_symbols and
1764 param_symbols after we finish the function context. (Based on a
1765 patch from David Edelsohn.)
1766
1767 2002-11-08 David Carlton <carlton@math.stanford.edu>
1768
1769 * linespec.c (symbol_found): New function.
1770 (minsym_found): New function.
1771 (decode_line_1): Separate out some code into separate functions.
1772
1773 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1774
1775 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1776 the benefit of the interix target.
1777 * i386-tdep.h (i386_frameless_signal_p): Declare.
1778
1779 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1780
1781 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1782 declaration that snuck in from change below.
1783
1784 2002-11-06 Andrew Cagney <cagney@redhat.com>
1785
1786 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1787 all callers.
1788 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1789 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1790 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1791 (i386_mxcsr_regnum_p): new function. Use instead of
1792 MXCSR_REGNUM_P.
1793 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1794 (i386_sse_regnum_p): Declare.
1795 (i386_mxcsr_regnum_p): Declare.
1796 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1797 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1798 (IS_FP_REGNUM): Update definition.
1799 (IS_FPU_CTRL_REGNUM): Update definition..
1800 (IS_SSE_REGNUM): Update definition..
1801 * i386v-nat.c (register_u_addr): Update.
1802 * go32-nat.c (fetch_register): Update.
1803 (store_register): Update.
1804
1805 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1806
1807 Preparation work to convert the hppa targets to multiarch partial.
1808
1809 * hppa-tdep.c: Add new functions replacing macro bodies from
1810 config/pa/tm-hppa.h. These function will be used to initialize
1811 the gdbarch structure. Import some comments from tm-hppa.h,
1812 and place them where appropriate, to avoid loosing them when
1813 we cleanup this file.
1814 (hppa_reg_struct_has_addr): New function.
1815 (hppa_inner_than): New function.
1816 (hppa_stack_align): New function.
1817 (hppa_pc_requires_run_before_use): New function.
1818 (hppa_instruction_nullified): New function.
1819 (hppa_register_byte): New function.
1820 (hppa_register_virtual_type): New function.
1821 (hppa_store_struct_return): New function.
1822 (hppa_cannot_store_register): New function.
1823 (hppa_frame_args_address): New function.
1824 (hppa_frame_locals_address): New function.
1825 (hppa_smash_text_address): New function.
1826 (hppa_coerce_float_to_double): New function. Requires the inclusion
1827 of "language.h".
1828
1829 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1830
1831 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1832 gdbarch-eligible macro to a call to the new associated function
1833 created in hppa-tdep.c.
1834 (INNER_THAN): Likewise.
1835 (STACK_ALIGN): Likewise.
1836 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1837 (INSTRUCTION_NULLIFIED): Likewise.
1838 (REGISTER_BYTE): Likewise.
1839 (REGISTER_VIRTUAL_TYPE): Likewise.
1840 (STORE_STRUCT_RETURN): Likewise.
1841 (CANNOT_STORE_REGISTER): Likewise.
1842 (FRAME_ARGS_ADDRESS): Likewise.
1843 (FRAME_LOCALS_ADDRESS): Likewise.
1844 (SMASH_TEXT_ADDRESS): Likewise.
1845 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1846 (ABOUT_TO_RETURN): Delete, as no longer used.
1847
1848 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1849
1850 * printcmd.c (disassemble_command): Remove obsolete function.
1851 (_initialize_printcmd): Do not create disassemble command here.
1852 * cli/cli-cmds.c (disassemble_command): New function. Implements
1853 disassemble command.
1854 (init_cli_cmds): Create disassemble command here instead.
1855
1856 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1857
1858 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1859
1860 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1861
1862 * regcache.h (regcache_cooked_read_using_offset_hack)
1863 (regcache_cooked_write_using_offset_hack): Delete declarations.
1864 (register_changed): Delete declaration.
1865 * regcache.c (regcache_cooked_read_using_offset_hack)
1866 (regcache_cooked_write_using_offset_hack): Delete functions.
1867 (cooked_xfer_using_offset_hack): Delete function.
1868 (register_changed): Delete function.
1869
1870 2002-11-07 Jim Blandy <jimb@redhat.com>
1871
1872 * macroscope.c: #include "complaints.h".
1873 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1874 but not in the macro table.
1875 * Makefile.in (macroscope.o): Record dependency.
1876
1877 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1878
1879 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1880
1881 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1882
1883 * regcache.c (deprecated_registers_fetched): Update.
1884 * regcache.h (deprecated_registers_fetched): Rename
1885 registers_fetched.
1886 * remote-vxsparc.c (vx_read_register): Update.
1887 * remote-vxmips.c (vx_read_register): Update.
1888 * remote-vx68.c (vx_read_register): Update.
1889 * irix5-nat.c (fetch_core_registers): Update.
1890 * mipsm3-nat.c (fetch_inferior_registers): Update.
1891 * sun3-nat.c (fetch_inferior_registers): Update.
1892 * symm-nat.c (fetch_inferior_registers): Update.
1893 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1894 (fetch_core_registers): Update.
1895 (fetch_kcore_registers): Update.
1896 * mips-nat.c (fetch_inferior_registers): Update.
1897 * corelow.c (get_core_registers): Update.
1898 * a68v-nat.c (fetch_inferior_registers): Update.
1899
1900 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1901
1902 Put in place the framework necessary for multiarching the hppa targets.
1903 * hppa-tdep.c (hppa_gdbarch_init): New function.
1904 (hppa_dump_tdep): New function.
1905 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1906 tdep structure dumper.
1907 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1908 until the multi-arching conversion has partially been completed.
1909
1910 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1911
1912 * valops.c (value_assign): Merge lval_register case into
1913 lval_reg_frame_relative. Use frame_register and
1914 regcache_cooked_write instead of get_saved_register and
1915 write_register_bytes. After flushing the register cache, try to
1916 re-select the selected frame.
1917
1918 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1919
1920 * regcache.h (deprecated_register_valid): Rename register_valid.
1921 * regcache.c: Update.
1922 * ia64-aix-nat.c: Update.
1923 * i386gnu-nat.c: Update.
1924 * alpha-nat.c: Update.
1925 * sparc-nat.c: Update.
1926 * lynx-nat.c: Update.
1927 * remote-mips.c: Update.
1928
1929 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1930
1931 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1932 to end of file, to be more consistent with the pratice followed
1933 by other targets.
1934
1935 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1936
1937 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1938 (print_float_info): Print registers in float_reggroup.
1939 (print_vector_info): Print registers in vector_reggroup.
1940 (default_print_registers_info): When all, print registers in
1941 all_reggroup. Otherwize, print registers in general_reggroup.
1942 (registers_info): Rewrite. Add support for register groups.
1943 Eliminate a goto.
1944
1945 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1946
1947 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1948 ages.
1949 (symtab_symbol_info): Remove eons old ifdeffed out code.
1950 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1951 command.
1952
1953 2002-11-06 Theodore A. Roth <troth@openavr.org>
1954
1955 * c-exp.y: Add missing semi-colons.
1956 * f-exp.y: Add missing semi-colons.
1957 * m2-exp.y: Add missing semi-colons.
1958 * p-exp.y: Add missing semi-colons.
1959 Add empty action to start rule to avoid a type clash error when
1960 building with bison >= 1.50.
1961
1962 2002-11-06 Jim Blandy <jimb@redhat.com>
1963
1964 * macrotab.h (struct macro_source_file): Doc fix.
1965
1966 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1967
1968 * varobj.c (child_exists, cplus_number_of_children): Change
1969 STREQ macro references to strcmp.
1970 (cplus_name_of_child): Change code to handle the fact that
1971 fields are not necessarily contiguous with regards to their
1972 access control. This is a fix for PR gdb/792.
1973
1974 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1975
1976 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1977 * gdbarch.h, gdbarch.c: Regnerate.
1978 * frame.h (frame_register): Declare.
1979 * frame.c (frame_register): New function.
1980 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1981 GET_SAVED_REGISTER, otherwize call
1982 generic_unwind_get_saved_register.
1983 (frame_register_read): Use frame_register instead of
1984 get_saved_register.
1985
1986 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1987
1988 From Jim Ingham <jingham@apple.com>:
1989 * event-top.c (gdb_disable_readline): New function.
1990 (_initialize_event_loop): Move comment.
1991
1992 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1993
1994 * event-loop.c (start_event_loop): Add comment.
1995 Update copyright.
1996
1997 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1998
1999 * infcmd.c (default_print_registers_info): Do not call
2000 PRINT_REGISTER_HOOK.
2001
2002 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2003
2004 * sparc-tdep.c (sparc_print_register_hook): Make static.
2005 (sparc_print_registers_info): New function.
2006 (sparc_do_registers_info): New function.
2007 (sparclet_print_registers_info): New function.
2008 (sparclet_do_registers_info): New function.
2009 (do_sparc_print_registers_info): New function.
2010 (sparc_print_registers): New static function, clone of infcmd.c's
2011 default_print_registers_info.
2012 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2013 (sparclet_do_registers_info): Declare.
2014 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2015 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2016 Re-define.
2017 (sparc_do_registers_info): Declare.
2018 (PRINT_REGISTER_HOOK): Delete macro.
2019 (sparc_print_register_hook): Delete declaration.
2020
2021 2002-11-05 David Carlton <carlton@math.stanford.edu>
2022
2023 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2024 functions.
2025 (lookup_symbol_aux_local): New function.
2026 (lookup_symbol_aux_symtabs): New function.
2027 (lookup_symbol_aux_psymtabs): New function.
2028
2029 2002-11-05 David Carlton <carlton@math.stanford.edu>
2030
2031 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2032 previous values of 'objfile' and 'block'.
2033
2034 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2035
2036 * values.c (value_change_enclosing_type): Set
2037 enclosing_type field correctly also for the case where
2038 more memory needs to be allocated.
2039
2040 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2041
2042 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2043 of puts_filtered.
2044
2045 * i387-tdep.c (i387_print_float_info): Replace calls to
2046 register_read and deprecated_read_register_gen with calls to
2047 frame_register_read, and make the necessary adjustments to the
2048 surrounding code.
2049
2050 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2051
2052 * gdbarch.sh (register_reggroup_p): Allow default value.
2053 * gdbarch.h, gdbarch.c: Regenerate.
2054
2055 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2056
2057 * regcache.h: Add coment indicating replacements for deprecated
2058 functions.
2059
2060 2002-11-02 Andrew Cagney <cagney@redhat.com>
2061
2062 * reggroups.h, reggroups.c: New files.
2063 * regcache.c: Include "reggroups.h".
2064 (enum regcache_dump_what): Add `regcache_dump_groups'.
2065 (regcache_dump): Contract size of the "Type" column. When
2066 specified, dump the register's groups.
2067 (maintenance_print_register_groups): New function.
2068 (_initialize_regcache): Add command `maint print register-groups'.
2069 * Makefile.in (COMMON_OBS): Add reggroups.o
2070 (SFILES): Add reggroups.c.
2071 (reggroups_h): Define.
2072 (regcache.o, gdbarch.o): Update dependencies.
2073 (reggroups.o): Specify dependencies.
2074 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2075 Add opaque declaration for `struct reggroup' in generated .h file.
2076 Include "reggroups.h" in generated .c file.
2077 gdbarch.h, gdbarch.c: Re-generate.
2078
2079 2002-11-02 Andrew Cagney <cagney@redhat.com>
2080
2081 * regcache.h (deprecated_read_register_gen): Rename
2082 read_register_gen.
2083 (deprecated_write_register_gen): Rename write_register_gen.
2084 * i387-tdep.c: Update.
2085 * x86-64-linux-nat.c: Update
2086 * wince.c: Update.
2087 * thread-db.c: Update.
2088 * win32-nat.c: Update.
2089 * mips-tdep.c: Update.
2090 * d10v-tdep.c: Update.
2091 * cris-tdep.c: Update.
2092 * remote-sim.c: Update.
2093 * remote-rdi.c: Update.
2094 * remote-rdp.c: Update.
2095 * frame.c: Update.
2096 * target.c: Update.
2097 * blockframe.c: Update.
2098 * x86-64-tdep.c: Update.
2099 * xstormy16-tdep.c: Update.
2100 * sh-tdep.c: Update.
2101 * s390-tdep.c: Update.
2102 * rs6000-tdep.c: Update.
2103 * sparc-tdep.c: Update.
2104 * i386-tdep.c: Update.
2105 * dwarf2cfi.c: Update.
2106 * regcache.c: Update.
2107
2108 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2109
2110 New interix-specific files:
2111 * config/i386/nm-interix.h: New file.
2112 * config/i386/interix.mh: New file.
2113 * config/i386/interix.mt: New file.
2114 * i386-interix-nat.c: New file.
2115 * i386-interix-tdep.c: New file.
2116
2117 2002-11-01 Andrew Cagney <cagney@redhat.com>
2118
2119 * frame.h (deprecated_generic_get_saved_register): Rename
2120 generic_get_saved_register.
2121 * blockframe.c (deprecated_generic_get_saved_register): Update.
2122 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2123 (xstormy16_frame_saved_register): Update.
2124 * sh-tdep.c (sh_gdbarch_init): Update.
2125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2126 * ia64-tdep.c (ia64_get_saved_register): Update.
2127 * cris-tdep.c (cris_gdbarch_init): Update.
2128 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2129 * arm-tdep.c (arm_gdbarch_init): Update.
2130
2131 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2132
2133 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2134
2135 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2136
2137 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2138 trampolines in sigaction.
2139
2140 2002-10-31 Andrew Cagney <cagney@redhat.com>
2141
2142 * h8300-tdep.c: Include "gdb_assert.h".
2143 (h8300_print_register): Add gdbarch, file and frame parameters.
2144 Use frame_read_unsigned_register to read the register's value.
2145 Use fprintf_filtered to display output.
2146 (h8300_print_registers_info): Replace h8300_do_registers_info.
2147 (h8300_gdbarch_init): Set print_registers_info.
2148
2149 2002-10-31 Andrew Cagney <cagney@redhat.com>
2150
2151 * frame.c (frame_read_unsigned_register): New function.
2152 (frame_read_signed_register): New function.
2153 * frame.h (frame_read_unsigned_register): Declare.
2154 (frame_read_signed_register): Declare.
2155
2156 2002-10-31 Andrew Cagney <cagney@redhat.com>
2157
2158 * h8500-tdep.c (h8500_print_registers_info): New static function,
2159 clone of infcmd.c's default_print_registers_info.
2160 (h8500_do_registers_info): New funtion.
2161 (h8500_print_register_hook): Rename print_register_hook, make
2162 static.
2163
2164 * config/h8500/tm-h8500.h: Update copyright.
2165 (DEPRECATED_DO_REGISTERS_INFO): Define.
2166 (h8500_do_registers_info: Declare.
2167 (PRINT_REGISTER_HOOK): Delete macro.
2168 (print_register_hook): Delete function.
2169
2170 2002-10-31 Andrew Cagney <cagney@redhat.com>
2171
2172 * z8k-tdep.c (z8k_print_register_hook): Make static.
2173 (z8k_print_registers_info): New static function, clone of
2174 infcmd.c's default_print_registers_info.
2175 (z8k_do_registers_info): New function. Wrap
2176 z8k_print_registers_info.
2177 * config/z8k/tm-z8k.h: Update copyright.
2178 (PRINT_REGISTER_HOOK): Delete macro.
2179 (z8k_print_register_hook): Delete declaration.
2180 (DEPRECATED_DO_REGISTERS_INFO): Define.
2181 (z8k_do_registers_info): Declare.
2182
2183 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2184
2185 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2186 as this is already provided by value.h, and was actually causing
2187 a compilation error because of a conflict in parameter type
2188 declaration due to a missing const keyword.
2189 (low_text_segment_addres): Fix a compilation warning.
2190
2191 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2192
2193 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2194 registers without a name.
2195 (mips_linux_cannot_store_register): Don't store registers without
2196 a name.
2197
2198 2002-10-28 David Carlton <carlton@math.stanford.edu>
2199
2200 * symtab.c (find_addr_symbol): Delete. (It was already commented
2201 out.)
2202 * symtab.h: Delete prototype for find_addr_symbol.
2203
2204 2002-10-26 Andrew Cagney <cagney@redhat.com>
2205
2206 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2207 DO_REGISTERS_INFO.
2208 gdbarch.h, gdbarch.c: Re-generate.
2209 * infcmd.c (default_print_registers_info): Update reference.
2210 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2211 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2212 * sh-tdep.c (sh_gdbarch_init): Ditto.
2213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2214 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2215
2216 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2217
2218 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2219 cfi_init_extra_frame_info.
2220 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2221 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2222
2223 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2224 target where necessary. Add more comments and remove the ones
2225 that don't provide any useful information.
2226
2227 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2228 deprecated_read_register_dummy with
2229 frame_unwind_unsigned_register.
2230
2231 * i386-tdep.c (i386_extract_struct_value_address): Use
2232 regcache_raw_read_unsigned instead of
2233 regcache_cooked_read_unsigned since we know that the register
2234 we're reading isn't a pseudo register. Rename variable 'val' into
2235 the more descriptive 'addr'.
2236
2237 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2238 (x86_64_push_return_address): Add comment.
2239 (x86_64_pop_frame): Make static.
2240 (examine_argument): Clarify comment.
2241 (x86_64_skip_prologue): Make prolog_expact variable static.
2242
2243 * dwarf2cfi.c: Fix some formatting problems.
2244 (context_cpy, read_encoded_pointer): Clarify comments.
2245
2246 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2247 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2248 i386 target back into x86_64_gdbarch_init. Add some comments and
2249 remove meaningless ones.
2250
2251 2002-10-25 Andrew Cagney <cagney@redhat.com>
2252
2253 * complaints.h (struct deprecated_complaint): Rename `struct
2254 complaint'.
2255 * complaints.c (complain): Update.
2256 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2257 incorrect comment indicating that "symfile.h" was being included
2258 for the `struct complaint' definition.
2259 * remote-vx.c: Update.
2260 * objc-lang.c: Update.
2261 * xcoffread.c: Update.
2262 * hpread.c: Update.
2263 * mdebugread.c: Update.
2264 * stabsread.c: Update.
2265 * dwarf2read.c: Update.
2266 * dwarfread.c: Update.
2267 * elfread.c: Update.
2268 * coffread.c: Update.
2269 * stabsread.h: Update.
2270 * dbxread.c: Update.
2271 * buildsym.c: Update.
2272 * gdbtypes.c: Update.
2273 * macrotab.c: Update.
2274
2275 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2276
2277 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2278 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2279 (x86_64_init_abi): ...new function.
2280
2281 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2282 * i386v-nat.c: Include "i386-tdep.h".
2283
2284 2002-10-25 Andrew Cagney <cagney@redhat.com>
2285
2286 * gdbtypes.c (address_space_name_to_int): Update.
2287 (address_space_int_to_name): Update.
2288 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2289 multi-arch predicate.
2290 (address_class_name_to_type_flags): Ditto.
2291 * gdbarch.h, gdbarch.c: Re-generate.
2292
2293 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2294
2295 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2296
2297 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2298
2299 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2300
2301 * symtab.h (INIT_SAL): Delete macro.
2302 (init_sal): Export.
2303 * symtab.c (init_sal): New function.
2304
2305 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2306 to init_sal function call.
2307 (find_sal_from_funcs_and_line): Ditto.
2308 (all_sals_for_line): Ditto.
2309 * breakpoint.c (create_internal_breakpoint): Ditto.
2310 (create_fork_vfork_event_catchpoint): Ditto.
2311 (create_exec_event_catchpoint): Ditto.
2312 (parse_breakpoint_sals): Ditto.
2313 (watch_command_1): Ditto.
2314 (handle_gnu_4_16_catch_command): Ditto.
2315 (clear_command): Ditto.
2316 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2317 * infcmd.c (run_stack_dummy): Ditto.
2318 * infrun.c (process_event_stop_test): Ditto.
2319 (check_sigtramp2): Ditto.
2320 (step_over_function): Ditto.
2321 * linespec.c (decode_line_2): Ditto.
2322 (decode_line_1): Ditto.
2323 * source.c (line_info): Ditto.
2324 * symtab.c (find_pc_sect_line): Ditto.
2325
2326 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2327
2328 * dwarf2cfi.c (struct context)
2329 (struct context_reg): Moved to dwarf2cfi.h
2330 (context_alloc, frame_state_alloc, context_cpy):
2331 Made extern instead of static, removed prototypes.
2332 * dwarf2cfi.h (struct context)
2333 (struct context_reg): New, moved from dwarf2cfi.c
2334 (context_alloc, frame_state_alloc, context_cpy):
2335 New prototypes.
2336 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2337 Changed from static to extern.
2338 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2339 (LINUX_SIGCONTEXT_FP_OFFSET)
2340 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2341 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2342 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2343 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2344 set_gdbarch_*() calls now use x86-64 specific functions
2345 instead of DWARF2 CFI ones.
2346 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2347 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2348 (x86_64_init_extra_frame_info): New prototypes.
2349
2350 2002-10-23 David Carlton <carlton@math.stanford.edu>
2351
2352 * linespec.c: #include "parser-defs.h".
2353 Delete prototype for find_template_name_end.
2354 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2355
2356 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2357
2358 * NEWS: add recent mi fixes.
2359 * varobj.c (struct varobj): Add new "updated" flag.
2360 (new_variable): Default "updated" flag to 0.
2361 (varobj_set_value): Set "updated" flag to 1 if value
2362 changes.
2363 (varobj_update): Check varobj "updated" flag before
2364 comparing old and refreshed values. Fix for
2365 PR gdb/702.
2366
2367 2002-10-23 David Carlton <carlton@math.stanford.edu>
2368
2369 * parse.c (parse_exp_1): Use BLOCK_START.
2370 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2371 SYMBOL_BLOCK_VALUE.
2372 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2373
2374 2002-10-23 David Carlton <carlton@math.stanford.edu>
2375
2376 * symtab.c: Delete cplusplus_hint.
2377 Delete prototype for find_template_name_end.
2378
2379 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2380
2381 * symtab.h: Update comment.
2382
2383 2002-10-23 Michael Snyder <msnyder@redhat.com>
2384
2385 * printcmd.c (address_info): Restore quotes in output.
2386 * valops.c (value_of_local): Restore quotes in error message.
2387
2388 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2389
2390 * symtab.c (symbol_demangled_name): New function.
2391 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2392 turning most of it into a function.
2393 (symbol_demangled_name): Export.
2394
2395 2002-10-23 Michael Snyder <msnyder@redhat.com>
2396
2397 * valops.c (value_of_local): Restore quotes in error message.
2398
2399 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2400
2401 * symtab.c (symbol_init_language_specific): New function.
2402 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2403 turning most of it into a function.
2404 (symbol_init_language_specific): Export.
2405
2406 2002-10-23 David Carlton <carlton@math.stanford.edu>
2407
2408 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2409 (dwarf_attr_name): Ditto.
2410 (dwarf_type_encoding_name): Ditto.
2411 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2412 (process_die): Handle DW_TAG_namespace,
2413 DW_TAG_imported_declaration, DW_TAG_imported_module.
2414 (read_namespace): New function.
2415
2416 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2417
2418 * configure.in: Define NEW_PROC_API on Interix too.
2419 * configure: Regenerate.
2420
2421 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2422
2423 * configure: Regenerate using the proper version of autoconf.
2424
2425 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2426
2427 * findvar.c (read_var_value): Temporarily disable TLS code, until
2428 complete TLS support is added.
2429
2430 2002-10-21 Jim Blandy <jimb@redhat.com>
2431 Elena Zannoni <ezannoni@redhat.com>
2432
2433 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2434 for thread local storage locations.
2435 (struct symbol): Add objfile field.
2436 (SYMBOL_OBJFILE): Define.
2437 * dwarf2read.c (is_thread_local): New static variable.
2438 (new_symbol): If variable is in thread local fill in address class
2439 and objfile appropriately.
2440 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2441 stack operation.
2442 * printcmd.c (address_info): Print the information for thread
2443 local storage variable.
2444 * findvar.c (read_var_value): In case of thread local variable,
2445 defer to the target vector code to compute address.
2446
2447 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2448
2449 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2450 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2451
2452 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2453
2454 * symtab.h (address_class): Rename
2455 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2456 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2457 * printcmd.c (address_info): Ditto.
2458 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2459
2460 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2461
2462 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2463 DBREG_DRX macro to acces debug registers.
2464
2465 * Makefile.in (i386obsd-tdep.o): New target.
2466
2467 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2468 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2469
2470 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2471 * config/i386/obsd.mt: New file.
2472 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2473 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2474 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2475 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2476 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2477 * i386obsd-tdep.c: New file.
2478
2479 2002-10-19 Adam Fedor <fedor@gnu.org>
2480
2481 * objc-exp.y (name_not_typename): Fix invalid comment.
2482
2483 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2484
2485 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2486 to allocate partial syms and macro byte caches.
2487
2488 2002-10-18 David Carlton <carlton@math.stanford.edu>
2489
2490 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2491
2492 2002-10-18 Adam Fedor <fedor@gnu.org>
2493
2494 * stabsread.c (find_name_end): New function.
2495 (define_symbol): Use it.
2496
2497 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2498
2499 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2500 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2501 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2502 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2503
2504 2002-10-17 David Carlton <carlton@math.stanford.edu>
2505
2506 * symfile.h: Add opaque declaration for struct obstack.
2507 Declare obsavestring to take a const char *.
2508 * symfile.c (obsavestring): Make first argument a const char *.
2509
2510 2002-10-16 Adam Fedor <fedor@gnu.org>
2511
2512 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2513 names when matching breakpoints in current file.
2514
2515 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2516
2517 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2518 (read_tag_pointer_type): Add address class support.
2519 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2520 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2521 New methods.
2522 * gdbarch.h, gdbarch.c: Regenerate.
2523 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2524 (make_type_with_address_space, recursive_type_dump): Add address
2525 class support.
2526 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2527 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2528 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2529
2530 2002-10-16 Klee Dienes <kdienes@apple.com>
2531
2532 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2533 to get the last character of a char[] buffer, not
2534 name[sizeof(vptr_name)-1].
2535
2536 2002-10-14 Adam Fedor <fedor@gnu.org>
2537
2538 * symtab.h: New objc_specific struct.
2539 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2540 (SYMBOL_DEMANGLED_NAME): Likewise.
2541
2542 2002-10-14 Adam Fedor <fedor@gnu.org>
2543
2544 * symfile.c (init_filename_language_table): Add ObjC file extension.
2545
2546 2002-10-14 Adam Fedor <fedor@gnu.org>
2547
2548 * utils.c (puts_filtered_tabular): New function.
2549 (fprintf_symbol_filtered): Get ObjC demangled name.
2550 * defs.h (puts_filtered_tabular): Declared.
2551
2552 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2553
2554 * c-lang.h (c_type_print_varspec_prefix): Delete.
2555 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2556 ``need_post_space'' parameter. Adjust all callers.
2557
2558 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2559
2560 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2561 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2562 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2563 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2564
2565 2002-10-13 Adam Fedor <fedor@gnu.org>
2566
2567 * source.c (print_source_lines): Update comments.
2568
2569 2002-10-13 Adam Fedor <fedor@gnu.org>
2570
2571 * valops.c (value_of_local): New function.
2572 (value_of_this): Use it.
2573 * value.h (value_of_local): Declared.
2574
2575 2002-10-13 Adam Fedor <fedor@gnu.org>
2576
2577 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2578 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2579
2580 2002-10-12 Adam Fedor <fedor@gnu.org>
2581
2582 * language.c (binop_result_type): Add language_objc to case.
2583 (integral_type): Likewise.
2584 (character_type): Likewise.
2585 (string_type): Likewise.
2586 (boolean_type): Likewise.
2587 (structured_type): Likewise.
2588 (binop_type_check): Likewise.
2589
2590 2002-10-11 Adam Fedor <fedor@gnu.org>
2591
2592 * printcmd.c (address_info): Print 'self' for ObjC.
2593
2594 2002-10-11 Adam Fedor <fedor@gnu.org>
2595
2596 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2597 OP_SELF.
2598
2599 2002-10-11 Adam Fedor <fedor@gnu.org>
2600
2601 * language.h (CAST_IS_CONVERSION): Add language_objc.
2602
2603 2002-10-11 Adam Fedor <fedor@gnu.org>
2604
2605 * defs.h (enum language): Add language_objc.
2606
2607 2002-10-11 Klee Dienes <kdienes@apple.com>
2608
2609 * corefile.c (read_memory_typed_address): New function.
2610 * gdbcore.h (read_memory_typed_address): Add prototype.
2611 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2612 to read a value destined for a CORE_ADDR, not read_memory_integer.
2613 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2614 (f77_get_dynamic_lowerbound): Ditto.
2615
2616 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2617
2618 * utils.c (string_to_core_addr): After turning string into
2619 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2620 which will do necessary sign-extension, etc.
2621
2622 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2623
2624 * c-exp.y (THIS): Delete token and grammar rule.
2625 (yylex): Don't return THIS.
2626 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2627 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2628 * demangle.c (cplus_markers): Update comment. Put '$'
2629 first. Remove CPLUS_MARKER.
2630 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2631 * jv-exp.y (THIS): Delete token and grammar rule.
2632 (yylex): Don't return THIS.
2633 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2634 * objc-exp.y (THIS): Delete token and grammar rule.
2635 (yylex): Don't return THIS.
2636 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2637 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2638 (read_member_functions): Likewise for opname.
2639 (read_tilde_fields): Use is_cplus_marker.
2640
2641 * defs.h (CPLUS_MARKER): Don't define.
2642 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2643 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2644 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2645 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2646 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2647
2648 * config/i386/tm-i386v4.h: Delete file.
2649 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2650 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2651 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2652 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2653 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2654 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2655 * config/i386/i386v4.mt (TM_FILE): Likewise.
2656 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2657
2658 2002-10-10 Marko Mlinar <markom@opencores.org>
2659
2660 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2661 accidentially not commited 2002-10-09
2662 * gdbarch.h, gdbarch.c: Re-generate.
2663
2664 2002-10-09 Marko Mlinar <markom@opencores.org>
2665
2666 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2667 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2668 * gdbarch.h, gdbarch.c: Re-generate.
2669
2670 2002-10-08 Petr Sorfa <petrs@caldera.com>
2671
2672 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2673
2674 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2675 so we can work on more than one compilation unit at a time. This
2676 helps prepare GDB to handle inter-CU die references.
2677 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2678 the code to be defined before struct comp_unit_head.
2679 (comp_unit_head): Added new members - offset, cu_head,
2680 begin_die, next and dwarf2_abbrevs.
2681 (dwarf2_abbrevs): Removed single static var; now member of
2682 struct comp_unit_head.
2683 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2684 members.
2685 (psymtab_to_symtab_1): Changed to work with the new
2686 struct comp_unit_head.
2687 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2688 constructs the dwarf2_abbrevs[] inside the cu_header.
2689 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2690 dwarf2_abbrev table to clean up.
2691 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2692 handling of dwarf2_abbrevs inside the cu_header.
2693 (read_partial_die): Now supports the call to the new
2694 dwarf2_lookup_abbrev.
2695 (read_full_die): Now supports the call to the new
2696 dwarf2_lookup_abbrev.
2697
2698 2002-10-06 Christopher Faylor <cgf@redhat.com>
2699
2700 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2701 insure that shell variables, such as "transformed_name" are propagated
2702 to later shell statements in rule.
2703
2704 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2705
2706 * config/i386/nm-i386sco.h: Add protection against
2707 multiple-inclusion. Include "i386/nm-i386v.h".
2708 (REGISTER_U_ADDR): Remove define.
2709 (i386_register_u_addr): Remove prototype.
2710
2711 2002-10-04 Michael Snyder <msnyder@redhat.com>
2712
2713 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2714 before treating it as a single-step event.
2715
2716 2002-10-03 Adam Fedor <fedor@gnu.org>
2717
2718 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2719 (objc_demangle): Remove assignment in if statements, Replace
2720 free with xfree.
2721 (add_msglist): Likewise.
2722 (end_msglist): Likewise.
2723 (complare_selectors): Likewise.
2724 (selectors_info): Likewise.
2725 (compare_classes): Likewise.
2726 (classes_info): Likewise.
2727 (print_object_command): Likewise.
2728 (find_objc_msgcall_submethod): Replace PTR with void *.
2729 * objc-lang.h: Remove check for __STDC__.
2730
2731 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2732
2733 * ui-out.h (ui_out_field_fmt_int): New prototype.
2734 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2735 of field width and alignment.
2736 * stack.c (print_frame_info_base): When printing frame level, use
2737 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2738 PR gdb/192
2739
2740 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2741
2742 * MAINTAINERS: Add self to Write After Approval list.
2743
2744 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2745
2746 * infcmd.c (interrupt_target_command_wrapper): Delete.
2747 (interrupt_target_command): Make non static.
2748 (nofp_registers_info): Make static.
2749 * stack.c (return_command_wrapper): Delete.
2750 (return_command): Make non static.
2751
2752 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2753
2754 * event-top.c (gdb_setup_readline): New function. Code moved from
2755 _initialize_event_loop().
2756 (_initialize_event_loop): Call gdb_setup_readline().
2757
2758 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2759
2760 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2761 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2762 * gdbarch.h, gdbarch.c: Re-generate.
2763
2764 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2765
2766 Fix PR gdb/778
2767 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2768 before recursing.
2769 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2770 of fill_in_vptr_fieldno.
2771
2772 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2773
2774 * inferior.h (registers_info, stepi_command, nexti_command,
2775 continue_command, interrupt_target_command): Export from infcmd.c.
2776 * frame.h (args_info, selected_frame_level_changed_hook,
2777 return_command): Export from stack.c.
2778 * v850ice.c (stepi_command, nexti_command, continue_command): use
2779 prototypes from inferior.h.
2780 * tracepoint.c (registers_info, args_info, locals_info): Use
2781 prototypes from frame.h and inferior.h.
2782 * Makefile.in (mi-main.o): Add dependency on frame.h.
2783
2784 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2785
2786 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2787 value in register 3 adjusted by ppc_gp0_regnum.
2788
2789 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2790
2791 2002-10-02 Marko Mlinar <markom@opencores.org>
2792
2793 * MAINTAINERS: Add myself to the Write After Approval list.
2794
2795 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2796
2797 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2798 of the section for the N64 ABI, fixed.
2799
2800 * config/mips/tm-irix6.h: Include solib.h.
2801
2802 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2803
2804 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2805 GNU operators.
2806
2807 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2808
2809 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2810 and that "mi0" syntax has been removed.
2811
2812 2002-09-30 David Carlton <carlton@math.stanford.edu>
2813
2814 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2815 * ppc-sysv-tdep.c: #include "gdb_string.h".
2816 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2817 pacify GCC.
2818
2819 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2820
2821 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2822 "vrsave"'s register number.
2823
2824 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2825
2826 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2827 use frame_unwind_signed_register to obtain the PC.
2828 (mips_frame_chain): Handle a generic dummy frame.
2829 (mips_init_extra_frame_info): When a generic dummy frame, don't
2830 re-compute the frame base.
2831 (mips_pop_frame): Handle generic dummy frames.
2832 (mips_gdbarch_init): When generic dummy frames, set
2833 use_generic_dummy_frames, push_dummy_frame to
2834 generic_push_dummy_frame, pc_in_call_dummy to
2835 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2836 generic_save_dummy_frame_tos.
2837
2838 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2839
2840 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2841 against TOP when TOP was explictly set.
2842 (generic_push_dummy_frame): Set TOP to zero.
2843
2844 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2845
2846 * event-loop.c (start_event_loop): Rename variable 'result' to
2847 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2848
2849 2002-09-30 Keith Seitz <keiths@redhat.com>
2850
2851 * gdb-events.sh (selected_thread_changed): New event.
2852 * gdb-events.c: Regenerated.
2853 * gdb-events.h: Regenerated.
2854
2855 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2856
2857 * MAINTAINERS: Add self to Write After Approval list.
2858
2859 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2860
2861 * disasm.c: New file.
2862 * disasm.h: New file.
2863 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2864 (compare_lines): Ditto.
2865 (dump_insns): Ditto.
2866 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2867 argument.
2868 (do_assembly_only): Ditto.
2869 (do_disassembly): Renamed to gdb_disassembly and moved to
2870 disasm.c. Sdded uiout argument.
2871 * Makefile.in: Add new files. Reorder SFILES list. Update
2872 dependencies. Include libgdb.a later in the insight executable.
2873
2874 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2875
2876 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2877 bfd/elf64-alpha-fbsd.c.
2878
2879 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2880
2881 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2882 i386gnu-tdep.c.
2883
2884 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2885
2886 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2887 __FUNCTION__.
2888 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2889 function name.
2890 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2891 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2892 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2893 (S_msg_sig_post_reply): Ditto.
2894
2895 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2896
2897 * sh-tdep.c (sh_use_struct_convention): Use definition according
2898 to ABI.
2899 (sh_push_arguments): Store in register with correct endianess.
2900 (sh_default_store_return_value): Ditto.
2901 (sh_gdbarch_init): Set sizeof long double to 8.
2902
2903 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2904
2905 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2906 Fix some whitespace problems.
2907
2908 2002-09-27 David Carlton <carlton@math.stanford.edu>
2909
2910 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2911 (mcore-tdep.o): Ditto.
2912 (ns32k-tdep.o): Ditto.
2913 (ns32knbsd-tdep.o): Ditto.
2914 (sh3-rom.o): Ditto.
2915 (vax-tdep.o): Ditto.
2916 * cris-tdep.c: #include "gdb_string.h"
2917 * mcore-tdep.c: Ditto.
2918 * ns32k-tdep.c: Ditto.
2919 * ns32knbsd-tdep.c: Ditto.
2920 * sh3-rom.c: Ditto.
2921 * vax-tdep.c: Ditto.
2922
2923 2002-09-27 David Carlton <carlton@math.stanford.edu>
2924
2925 * config/djgpp/fnchange.lst: Add entries for
2926 gdb/testsuite/gdb.c++/m-static files.
2927
2928 2002-09-27 Jim Wilson <wilson@redhat.com>
2929
2930 * MAINTAINERS: Add myself to the Write After Approval list.
2931
2932 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2933
2934 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2935
2936
2937 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2938
2939 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2940 frame.
2941
2942 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2943
2944 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2945 (rs6000_struct_return_address): Delete variable.
2946 (rs6000_store_struct_return): Update.
2947 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2948 deprecated_extract_struct_value_address.
2949 (rs6000_frame_align): New function.
2950 (rs6000_gdbarch_init): Set frame_align.
2951
2952 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2953
2954 From Grace Sainsbury <graces@redhat.com>:
2955 * Makefile.in (gdbtk-main.o): New target.
2956 (gdb.o): New target.
2957 (main_h): Define.
2958 (main.o): Update dependencies.
2959 (gdb$(EXEEXT)): Add gdb.o.
2960 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2961 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2962 (SUBDIR_GDBTK_CLEAN): Set.
2963 (install-gdbtk): Install the insight binary.
2964 (uninstall-gdbtk): New target.
2965 (all-gdbtk, clean-gdbtk): New rule.
2966 * top.c (use_windows): Default to zero.
2967 * main.c: Include "main.h".
2968 (main): Delete.
2969 (struct captured_main_args): Delete.
2970 (gdb_main): New function.
2971 * main.h: New file.
2972 * gdb.c: New File.
2973
2974 2002-09-25 Andrew Cagney <cagney@redhat.com>
2975
2976 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2977 (frame_map_regnum_to_name): New function.
2978 (frame_map_name_to_regnum): New function.
2979 * frame.h (frame_map_name_to_regnum): Declare.
2980 (frame_map_regnum_to_name): Declare.
2981 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2982 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2983 * parse.c: Do not include "builtin-regs.h".
2984 (target_map_name_to_register): Delete function.
2985 (write_dollar_variable): Use frame_map_name_to_regnum.
2986 * parser-defs.h (target_map_name_to_register): Delete declaration.
2987 * expprint.c: Include "frame.h".
2988 (print_subexp): Use frame_map_regnum_to_name.
2989 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2990 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2991
2992 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2993
2994 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2995 wasn't saved, and the next innermost frame is a dummy, return the
2996 dummy frame's link register.
2997
2998 2002-09-24 Jim Blandy <jimb@redhat.com>
2999
3000 Fix from Paul Breed:
3001 * main.c (captured_main): Add a `break' after the case for 'b'.
3002
3003 2002-09-24 Keith Seitz <keiths@redhat.com>
3004
3005 * varobj.c (c_type_of_child): Use get_target_type instead
3006 of TYPE_TARGET_TYPE.
3007
3008 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3009
3010 * source.c (get_current_or_default_source_symtab_and_line): Remove
3011 function.
3012 (set_default_source_symtab_and_line): New function. Attempts to
3013 determine a source file to list lines from if one is not currently
3014 defined.
3015 (get_current_source_symtab_and_line): Initialize sal.pc and
3016 sal.end fields.
3017 (set_current_source_symtab_and_line): Mark argument as const.
3018 * source.h: Update declarations and comments.
3019 * linespec.c (decode_line_1): Replace call to removed routine above.
3020 * stack.c (print_frame_info_base): Ditto.
3021 * cli/cli-cmds.c (edit_command): Ditto.
3022 (list_command): Ditto.
3023
3024 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3025
3026 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3027 sal.pc and sal.end fields.
3028 (get_current_or_default_source_symtab_and_line): Ditto.
3029 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3030 so we do not cause a new source symtab to be searched for (reverting an
3031 unintentional change from the 2002-09-20 patch).
3032 * scm-lang.c (scm_unpac): Ditto.
3033
3034 2002-09-21 Andrew Cagney <cagney@redhat.com>
3035
3036 * complaints.c (symfile_explanations): Remove new-line from
3037 ``isolated_message''.
3038 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3039 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3040
3041 2002-09-20 Nick Clifton <nickc@redhat.com>
3042
3043 * NEWS: Announce that V850EA ISA is no longer supported.
3044 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3045
3046 2002-09-20 David Carlton <carlton@math.stanford.edu>
3047
3048 * Makefile.in (c-lang.o): Correct dependencies.
3049 (utils.o): Gather dependencies.
3050 (charset.o): Move.
3051 * c-lang.c: #include "gdb_string.h"
3052
3053 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3054
3055 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3056 * cli/cli-cmds.c (list_command): New function. Implements the new
3057 cli edit command.
3058 (_init_cli_cmds): Add new command definition.
3059 * gdb.1: Document edit command.
3060 * doc/gdb.texinfo: Document edit command.
3061
3062 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3063
3064 * source.c: Make global variables current_source_symtab and
3065 current_source_line static.
3066 (list_command): Moved to cli/cli-cmds.c.
3067 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3068 (get_first_line_listed): New accessor function.
3069 (get_lines_to_list): New accessor function.
3070 (get_current_source_symtab_and_line): New function. Retrieves the
3071 position in the source code that we consider current.
3072 (get_current_or_default_source_symtab_and_line): New function.
3073 Like the above but attempts to determine a default position if one
3074 is not currently defined.
3075 (set_current_source_symtab_and_line): New function. Sets the source
3076 code position considered current and returns the previously set one.
3077 (clear_current_source_symtab_and_line): Reset stored information about
3078 a current source line.
3079 (_initialize_source): Remove registration for the "list" command and
3080 its alias.
3081 * source.h: Add declarations for the new functions above.
3082 * symtab.h: Remove declarations for the global variables mentioned
3083 above.
3084 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3085 obtain current source line.
3086 * linespec.c (decode_line_1): Ditto.
3087 * macroscope.c (default_macro_scope): Ditto.
3088 * scm-lang.c (scm_unpac): Ditto.
3089 * stack.c (print_frame_info_base): Ditto.
3090 * symfile.c (clear_symtab_users): Ditto.
3091 * symtab.c (decode_line_spec): Ditto.
3092 * cli/cli-cmds.c (list_command): Moved here from source.c.
3093 (ambiguous_line_spec): Moved here from source.c.
3094 (_init_cli_cmds): Add definition for "list" and its alias.
3095 * Makefile.in: Update dependencies.
3096
3097 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3098
3099 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3100 with what gcc thinks is correct.
3101
3102 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3103
3104 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3105 multiple register push instruction.
3106
3107 2002-09-19 Jim Blandy <jimb@redhat.com>
3108
3109 Add support for distinct host and target character sets.
3110 * charset.c, charset.h: New files.
3111 * c-exp.y: #include "charset.h".
3112 (yylex): Convert character and string literals to the target
3113 character set, before returning them as the semantic value of the
3114 token.
3115 * c-lang.c: #include "charset.h".
3116 (c_emit_char): Use charset-specific methods to recognize
3117 characters with backslash escape forms, to decide which characters
3118 to print literally and which to print using numeric escape
3119 sequences, and to convert target characters to host characters
3120 before printing.
3121 * utils.c: #include "charset.h".
3122 (no_control_char_error): New function.
3123 (parse_escape): Use charset-specific methods to recognize
3124 backslash escapes, parse `control character' notation, and convert
3125 characters from the host character set to the target character set.
3126 * configure.in: Set the default host character set.
3127 Check where to find iconv, and what its argument types might be.
3128 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3129 * Makefile.in (SFILES): List charset.c.
3130 (COMMON_OBS): List charset.o.
3131 (charset.o): New rule.
3132 (charset_h): New header dependency variable.
3133 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3134 (LIBICONV): New variable, set by configure.
3135 (CLIBS): Include $(LIBICONV) here.
3136 * aclocal.m4, config.in, configure: Regenerated.
3137
3138 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3139
3140 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3141 bison 1.35 warning.
3142
3143 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3144
3145 * gdb_mbuild.sh: New file.
3146
3147 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3148
3149 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3150
3151 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3152
3153 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3154 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3155 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3156 valops.c, value.h: Revert previous change.
3157
3158 2002-09-18 Michael Snyder <msnyder@redhat.com>
3159
3160 Preliminary support for Objective-C:
3161 * defs.h (language_objc): New enum value.
3162 (puts_filtered_tabular): Declaration only, exported from utils.c.
3163 (skip_quoted): Delete, declared in completer.h.
3164 * c-exp.y: Include completer.h.
3165 * p-exp.y: Ditto.
3166 * jv-exp.y: Ditto.
3167 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3168 New operator enum values.
3169 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3170 * language.c (binop_result_type): Handle language_objc case.
3171 (integral_type, character_type, string_type, boolean_type,
3172 structured_type, binop_type_check): Ditto.
3173 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3174 (struct objc_specific): Add to general_symbol_info.
3175 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3176 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3177 * parser-defs.h (struct objc_class_str): New struct type.
3178 (start_msglist, end_msglist, add_msglist): Declaration only,
3179 exported from objc-lang.c.
3180 * value.h (value_of_local, value_nsstring,
3181 call_function_by_hand_expecting_type): Exported from valops.c.
3182 * valops.c (find_function_addr): Export.
3183 (call_function_by_hand_expecting_type): New function.
3184 (value_of_local): New function.
3185 * symfile.c (init_filename_language_table): Add ".m" extension
3186 for Objective-C.
3187 * utils.c (puts_filtered_tabular): New function.
3188 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3189 (set/show demangle): Extend help-string to refer to ObjC.
3190 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3191 * stabsread.c (symbol_reference_defined): Objective-C symbols
3192 may contain colons: make allowances when scanning stabs strings
3193 for colons.
3194 (objc_find_colon): New function.
3195 * printcmd.c (address_info): If language == objc then print
3196 "self" instead of "this".
3197 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3198 OP_NSSTRING, and OP_SELF.
3199 (prefixify_subexp): Ditto.
3200 * source.c (print_source_lines): Mention objc in comment.
3201 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3202 method names.
3203
3204 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3205
3206 * complaints.h: Update copyright.
3207 (struct complaints): Declare.
3208 (struct complaint): Make `message' constant.
3209 (internal_complaint): Declare.
3210 (complaint): Declare.
3211 (complaint_root): Delete declaration.
3212 (symfile_complaints): Delete declaration.
3213 (struct complaints): Add opaque declaration.
3214 (clear_complaints): Add a complaints parameter.
3215 * complaints.c: Update copyright.
3216 (enum complaint_series): Define.
3217 (complaint_root): Delete.
3218 (struct complaints): Define.
3219 (complaint_sentinel, symfile_complaint_book): New variables.
3220 (symfile_explanations, symfile_complaints): New variables.
3221 New variables.
3222 (get_complaints): New function.
3223 (vcomplaint): New function.
3224 (complaint): New function.
3225 (internal_complaint): New function.
3226 (complain): Call vcomplain with symfile_complaint.
3227 (clear_complaints): Rewrite.
3228 (_initialize_complaints): Use add_setshow_command.
3229 * Makefile.in (complaints.o): Update dependencies.
3230 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3231 to call to clear_complaints.
3232 (new_symfile_objfile, reread_symbols): Ditto.
3233 (oldsyms_complaint): Delete.
3234 (empty_symtab_complaint, unknown_option_complaint): Delete.
3235 (free_named_symtabs): Use complaint instead of complain.
3236
3237 2002-09-18 Michael Snyder <msnyder@redhat.com>
3238
3239 Contributed by Apple Computer, Inc. Merged with current sources
3240 by Adam Fedor <fedor@doc.com> [cagney].
3241
3242 * objc-lang.c: First clean-up round: comments, indentation.
3243 * objc-lang.h: Ditto.
3244 * objc-lang.y: Ditto.
3245
3246 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3247
3248 * maint.c (maintenance_internal_error): Print the parameter as the
3249 error message.
3250 (maintenance_internal_warning): New function.
3251 (_initialize_maint_cmds): Add command `maint internal-warning'.
3252
3253 * defs.h (internal_warning, internal_vwarning): Declare.
3254 * utils.c (struct internal_problem): Define.
3255 (internal_vproblem): New function.
3256 (internal_warning): New function.
3257 (internal_vwarning): New function.
3258 (internal_warning_problem, internal_error_problem): New variables.
3259 (internal_verror): Just call internal_vproblem.
3260
3261 2002-09-18 Michael Snyder <msnyder@redhat.com>
3262
3263 * objc-lang.c: New file, support for Objective-C.
3264 Preliminary check-in, not yet integrated into gdb.
3265 * objc-lang.h: New file.
3266 * objc-exp.y: New file.
3267
3268 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3269
3270 * infrun.c (signal_stop_update): Convert definition to ISO C.
3271 (signal_print_update): Ditto.
3272 (signal_pass_update): Ditto.
3273 * inflow.c (terminal_save_ours): Ditto.
3274
3275 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3276 comments.
3277
3278 * config/djgpp/fnchange.lst: Handle name clashes between
3279 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3280 bfd/coff-tic80.c.
3281
3282 * i386-linux-tdep.h: Fix tipo.
3283
3284 2002-09-18 Adam Fedor <fedor@gnu.org>
3285
3286 * MAINTAINERS: Add myself to the Write After Approval list.
3287
3288 2002-09-18 Jim Blandy <jimb@redhat.com>
3289
3290 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3291 texthigh and textlow to reader-specific structs caused
3292 objfile_relocate to miss them. This is fixable, but the work that
3293 the change was supposed to prepare GDB for never got done anyway.
3294
3295 2002-09-18 David Carlton <carlton@math.stanford.edu>
3296
3297 * MAINTAINERS: Alphabetize Write After Approval list.
3298
3299 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3300
3301 Fix PR gdb/709
3302 * values.c (value_static_field): Call read_var_value.
3303
3304 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3305
3306 * valops.c (hand_function_call): Align the initial stack pointer
3307 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3308 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3309 return value.
3310 * mips-tdep.c (mips_frame_align): New function.
3311 (mips_gdbarch_init): Set frame_align.
3312 * gdbarch.sh (FRAME_ALIGN): New method.
3313 * gdbarch.h, gdbarch.c: Re-generate.
3314
3315 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3316
3317 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3318 registers.
3319
3320 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3321
3322 * NEWS: Mention that MIPS $fp behavior changed.
3323 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3324 reference to FP_REGNUM.
3325 (mipsnbsd_cannot_store_register): Ditto.
3326 * mips-linux-nat.c: Update copyright.
3327 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3328 (mips_linux_cannot_store_register): Ditto.
3329 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3330 * config/mips/tm-mips.h: Update copyright.
3331 (FP_REGNUM): Delete macro.
3332 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3333 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3334 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3335 (mips_r3041_reg_names, mips_r3051_reg_names)
3336 (mips_r3081_reg_names): Replace "fp" with "".
3337 Fix PR gdb/480.
3338
3339 2002-09-17 Theodore A. Roth <troth@verinet.com>
3340
3341 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3342 generic_read_register_dummy() (PR gdb/703).
3343 (avr_push_return_address): #if 0 out unused vars.
3344 (avr_gdbarch_init): Enable use of avr_push_return_address().
3345
3346 2002-09-17 Michael Snyder <msnyder@redhat.com>
3347
3348 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3349 RTE will take care of it.
3350
3351 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3352
3353 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3354 invalid, return SP_REGNUM.
3355
3356 2002-09-17 Michael Snyder <msnyder@redhat.com>
3357
3358 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3359 point registers without sign extension.
3360
3361 2002-09-17 Andrew Cagney <cagney@redhat.com>
3362
3363 * blockframe.c (deprecated_read_register_dummy): Rename
3364 generic_read_register_dummy.
3365 * frame.c (frame_unwind_signed_register): New function.
3366 (frame_unwind_unsigned_register): New function.
3367 * frame.h (frame_unwind_signed_register): Declare.
3368 (frame_unwind_unsigned_register): Declare.
3369 (deprecated_read_register_dummy): Rename
3370 generic_read_register_dummy.
3371
3372 * h8300-tdep.c (h8300_frame_chain): Update.
3373 (h8300_frame_saved_pc): Update.
3374 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3375 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3376 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3377 (s390_frame_chain): Update.
3378 * v850-tdep.c (v850_find_callers_reg): Update.
3379 (v850_frame_saved_pc): Update.
3380 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3381 (m32r_find_callers_reg): Update.
3382 (m32r_frame_saved_pc): Update.
3383 * sh-tdep.c (sh_find_callers_reg): Update.
3384 (sh64_get_saved_pr): Update.
3385 (sh_init_extra_frame_info): Update.
3386 (sh_init_extra_frame_info): Update.
3387 (sh64_init_extra_frame_info): Update.
3388 (sh64_init_extra_frame_info): Update.
3389 * mcore-tdep.c (mcore_find_callers_reg): Update.
3390 (mcore_frame_saved_pc): Update.
3391 (mcore_init_extra_frame_info): Update.
3392 * i386-tdep.c (i386_frame_saved_pc): Update.
3393 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3394 (ia64_init_extra_frame_info): Update.
3395 (ia64_init_extra_frame_info): Update.
3396 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3397 * cris-tdep.c (cris_init_extra_frame_info): Update.
3398 * avr-tdep.c (avr_frame_chain): Update.
3399 (avr_init_extra_frame_info): Update.
3400 (avr_frame_saved_pc): Update.
3401 * arm-tdep.c (arm_find_callers_reg): Update.
3402 (arm_init_extra_frame_info): Update.
3403 (arm_frame_saved_pc): Update.
3404
3405 2002-09-17 Tom Tromey <tromey@redhat.com>
3406
3407 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3408 is "'".
3409
3410 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3411
3412 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3413 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3414 NEXT_PROLOGUE_INSN.
3415 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3416 NEXT_PROLOGUE_INSN.
3417
3418 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3419
3420 * osfsolib.c: Remove file, replaced by solib-osf.c.
3421 * Makefile.in: Remove compilation rules for osfsolib.c.
3422
3423 2002-09-16 David Carlton <carlton@math.stanford.edu>
3424
3425 * cp-valprint.c (cp_print_class_method): Correct args to
3426 check_stub_method_group.
3427
3428 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3429
3430 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3431 `set architecture'. Unify naming convention of functions.
3432 (h8300_skip_prologue): Improve prologue analysis.
3433 (h8300_push_arguments): Rewritten to more closely match GCC's
3434 bizarre argument-passing behavior, along with the comment describing
3435 said behavior.
3436 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3437 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3438 sim, remote-e7000.c, remote-hms.c and remote.c
3439
3440 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3441
3442 * i386-tdep.c (gdb_print_insn_i386): Removed.
3443 (i386_print_insn): New function.
3444 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3445 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3446 tm_print_insn_info.
3447
3448 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3449
3450 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3451 zero.
3452
3453 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3454
3455 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3456 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3457 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3458
3459 2002-09-13 Christopher Faylor <cgf@redhat.com>
3460
3461 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3462
3463 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3464
3465 * gdbtypes.c (check_stub_method): Make static.
3466 (check_stub_method_group): New function.
3467 * gdbtypes.h: Update prototypes.
3468 * cp-support.c: New file.
3469 * cp-support.h: New file.
3470
3471 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3472 (update_method_name_from_physname): New function.
3473 (read_member_functions): Correct method names for operators
3474 and v3 constructors/destructors. Separate v2 constructors and
3475 destructors.
3476 * Makefile.in (stabsread.o): Update dependencies.
3477 (SFILES): Add cp-support.c.
3478 (COMMON_OBS): Add cp-support.o.
3479 (cp_support_h, cp-support.o): Add.
3480
3481 * cp-valprint.c (cp_print_class_method): Call
3482 check_stub_method_group instead of check_stub_method. Remove
3483 extraneous QUITs.
3484 * p-valprint.c (pascal_object_print_class_method): Likewise.
3485 * valops.c (search_struct_method): Likewise.
3486 (find_method_list, value_struct_elt_for_reference): Likewise.
3487
3488 2002-09-13 Andrew Cagney <cagney@redhat.com>
3489
3490 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3491 * gdbarch.h, gdbarch.c: Regenerate.
3492
3493 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3494
3495 * frame.c (find_saved_register): Delete function.
3496 * frame.h (find_saved_register): Delete declaration.
3497 Fix PR gdb/631.
3498
3499 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3500
3501 * mips-tdep.c (read_next_frame_reg): Re-hack using
3502 frame_register_unwind.
3503
3504 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3505
3506 * mips-tdep.c (mips_get_saved_register): Re-hack using
3507 frame_register_unwind.
3508
3509 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3510
3511 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3512 vector. Will be useful for Interix.
3513 * gdbarch.h, gdbarch.c: Regenerate.
3514
3515 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3516 name of the malloc function by NAME_OF_MALLOC.
3517
3518 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3519
3520 * value.h (find_function_in_inferior): Add const keyword to
3521 one of the parameters. Allows us to invoke this function with
3522 a const char *.
3523 * valops.c (find_function_in_inferior): Likewise.
3524
3525 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3526
3527 * exec.c (xfer_memory): Fix compilation warning with old versions
3528 of GCC.
3529 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3530
3531 2002-09-12 David Carlton <carlton@math.stanford.edu>
3532
3533 * symtab.h: Run through gdb_indent.h.
3534 Add 2002 to Copyright year list.
3535
3536 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3537
3538 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3539 mach constants.
3540 * MAINTAINERS: Add myself to write after approval list.
3541
3542 2002-09-11 J. Brobecker <brobecker@gnat.com>
3543
3544 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3545
3546 2002-09-11 J. Brobecker <brobecker@gnat.com>
3547
3548 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3549 Interix.
3550
3551 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3552
3553 * procfs.c (do_detach): Clear current signal, not just fault.
3554 Corrects problem with breakpoint trap signal leaking to detached
3555 process on Tru64.
3556
3557 2002-09-10 Michael Snyder <msnyder@redhat.com>
3558
3559 * buildsym.c (finish_block): Protect against null pointer.
3560
3561 2002-09-10 Andrew Cagney <cagney@redhat.com>
3562
3563 * infcmd.c (default_print_registers_info): Send all output to
3564 ``file'' instead of ``gdb_stdout''.
3565
3566 2002-09-10 Michael Snyder <msnyder@redhat.com>
3567
3568 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3569 LONGEST, and use signed register read (addresses are sign-
3570 extended for mips).
3571
3572 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3573
3574 * event-loop.c (gdb_do_one_event): Make public.
3575 * event-loop.h (gdb_do_one_event): Declare.
3576
3577 2002-09-10 Jeff Law <law@redhat.com>
3578
3579 * infttrace.c (child_resume): Simplify and rework to avoid
3580 TT_PROC_CONTINUE.
3581
3582 2002-09-09 Fred Fish <fnf@intrinsity.com>
3583
3584 * printcmd.c (print_scalar_formatted): "len" is the number of
3585 target bytes, NOT the number of target bits.
3586
3587 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3588
3589 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3590 * top.c (init_main): Set rl_terminal_name.
3591
3592 2002-09-08 Aidan Skinner <aidan@velvet.net>
3593
3594 * ada-lang.c (ada_array_bound, ada_type_match,
3595 _initialize_ada_language): Fix K&R definitions.
3596 * ada-tasks.c (get_current_task): Fix K&R definitions.
3597 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3598
3599 2002-09-07 Christopher Faylor <cgf@redhat.com>
3600
3601 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3602 Add XP.
3603
3604 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3605
3606 * i386-tdep.c (i386_register_virtual_type,
3607 i386_register_convertible, i386_register_convert_to_virtual,
3608 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3609 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3610 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3611 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3612 Don't set push_arguments twice.
3613
3614 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3615 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3616 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3617 sigtramp_end to NULL.
3618 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3619 defines.
3620 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3621
3622 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3623 whitespace.
3624
3625 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3626 * gdbarch.h, gdbarch.c: Re-generate.
3627 * blockframe.c (find_pc_sect_partial_function): Convert to use
3628 SIGTRAMP_START_P predicate.
3629
3630 2002-09-05 Michael Snyder <msnyder@redhat.com>
3631
3632 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3633 generic_dummy_frame method and old method. Also distinguish
3634 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3635 (arm_extract_return_value): Use new regcache method.
3636
3637 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3638 adjustment that doesn't conform to the ABI.
3639 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3640 saved regcache, not from current regcache.
3641
3642 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3643
3644 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3645 * README: Update.
3646
3647 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3648
3649 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3650 if arm_apcs_32 is false.
3651
3652 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3653
3654 GDB 5.3 branch created.
3655
3656 2002-09-03 Theodore A. Roth <troth@verinet.com>
3657
3658 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3659 generic_unwind_get_saved_register.
3660
3661 2002-09-03 David Carlton <carlton@math.stanford.edu>
3662
3663 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3664 argument (PR gdb/653). Update call to smash_to_method_type.
3665 (read_structure_scope): Update call to dwarf2_add_member_fn.
3666
3667 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3668
3669 * x86-64-linux-tdep.c: Include gdb_string.h
3670 * x86-64-linux-nat.c: Ditto.
3671
3672 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3673
3674 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3675 when YYDEBUG is set to 1.
3676 * c-exp.y: Likewise.
3677 * f-exp.y: Likewise.
3678 * jv-exp.y: Likewise.
3679 * m2-exp.y: Likewise.
3680 * p-exp.y: Likewise.
3681
3682 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3683
3684 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3685 dependency list.
3686 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3687 solib_svr4_fetch_link_map_offsets to
3688 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3689 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3690 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3691 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3692 solib-svr4.o, and solib-legacy.o.
3693 * config/i386/tm-nbsd.h: Include solib.h.
3694
3695 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3696
3697 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3698 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3699 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3700 comment noting that this needs its own target configuration.
3701 * config/i386/nbsd.mt: New file.
3702 * config/i386/nbsdaout.mt: Remove.
3703 * config/i386/nbsdelf.mt: Ditto.
3704 * config/i386/tm-nbsdaout.h: Ditto.
3705
3706 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3707
3708 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3709 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3710 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3711 tdep->sigtramp_end.
3712 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3713 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3714 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3715
3716 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3717
3718 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3719 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3720 * i386-tdep.h (i386bsd_init_abi): New prototype.
3721 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3722 function declaration.
3723 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3724 for NetBSD-a.out or NetBSD-ELF.
3725 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3726 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3727 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3728 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3729 and nbsd-tdep.h.
3730 (i386nbsd_pc_in_sigtramp): New function.
3731 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3732 i386nbsd_pc_in_sigtramp.
3733 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3734 and i386nbsdelf_init_abi OS ABI handlers.
3735 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3736 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3737
3738 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3739
3740 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3741 registers if the target really has them.
3742
3743 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3744
3745 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3746 than nbsd-tdep.h.
3747
3748 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3749
3750 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3751 list.
3752 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3753 (alphanbsd_skip_sigtramp_frame): New functions.
3754 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3755 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3756 to alphanbsd_sigcontext_addr.
3757
3758 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3759
3760 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3761 list.
3762 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3763 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3764 nbsd_pc_in_sigtramp.
3765 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3766 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3767 * nbsd-tdep.c: Include gdb_string.h.
3768 (nbsd_pc_in_sigtramp): New function.
3769 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3770 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3771 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3772 ppcnbsd_pc_in_sigtramp.
3773 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3774 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3775 shnbsd_pc_in_sigtramp.
3776 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3777 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3778 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3779
3780 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3781
3782 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3783 watchpoints to NULL.
3784 (insert_breakpoints): set val field of watchpoints if NULL.
3785
3786
3787 2002-08-29 Jim Blandy <jimb@redhat.com>
3788
3789 * symtab.c (lookup_symbol_aux): In the cases where we find a
3790 minimal symbol of an appropriate name and use its address to
3791 select a symtab to read and search, use `name' (as passed to us)
3792 as the demangled name when searching the symtab's global and
3793 static blocks, not the minsym's name.
3794
3795 2002-08-29 Keith Seitz <keiths@redhat.com>
3796
3797 * stack.c (print_frame_info_base): Always set current_source_symtab
3798 and current_source_line.
3799
3800 2002-08-29 Donn Terry <donnte@microsoft.com>
3801
3802 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3803
3804 2002-08-28 Keith Seitz <keiths@redhat.com>
3805
3806 * stack.c (select_frame): Add FIXME concerning selected-frame
3807 events.
3808 (select_frame_command): Send selected-frame-level-changed
3809 event notification, but only if the level actually changed.
3810 (up_silently_base): Add selected-frame-level-changed event
3811 notification.
3812 (down_silently_base): Likewise.
3813
3814 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3815
3816 * Makefile.in: Update dependencies for all gdb/*.c files.
3817
3818 2002-08-27 Tom Tromey <tromey@redhat.com>
3819
3820 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3821 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3822 Update dependencies.
3823 * i387-tdep.c: Include gdb_string.h.
3824 * osabi.c: Likewise.
3825 * i386-linux-nat.c: Likewise.
3826 * lin-lwp.c: Likewise.
3827 * ax-gdb.c: Likewise.
3828 * signals/signals.c: Likewise.
3829 * jv-valprint.c: Likewise.
3830 * p-lang.c: Likewise.
3831 * c-valprint.c: Likewise.
3832 * cp-abi.c: Likewise.
3833
3834 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3835
3836 * cli/cli-script.h (copy_command_lines): Export.
3837 * breakpoint.c: Include cli/cli-script.h.
3838 * Makefile.in (breakpoint.o): Update dependencies.
3839
3840 2002-08-26 Michael Snyder <msnyder@redhat.com>
3841
3842 * breakpoint.c (insert_breakpoints): Protect all references
3843 to 'process_warning'. Shorten long lines.
3844
3845 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3846
3847 * cli/cli-script.c (copy_command_lines): New function.
3848 * defs.h (copy_command_lines): Export.
3849 * testsuite/gdb.base/commands.exp: New tests for commands
3850 attached to a temporary breakpoint, and for commands that
3851 delete the breakpoint they are attached to.
3852
3853 2002-08-26 Michael Snyder <msnyder@redhat.com>
3854
3855 * breakpoint.c (bpstat_stop_status): Instead of copying the
3856 pointer to the breakpoint commands struct, make a new copy
3857 of the struct and point to that.
3858 (bpstat_clear): Free the commands struct.
3859 (bpstat_clear_actions): Free the commands struct.
3860 (bpstat_do_actions): Free the command actions. Also execute
3861 the local cleanups, instead of deleting them.
3862 (delete_breakpoint): Leave the commands field of the bpstat
3863 chain alone -- it will be freed later.
3864
3865 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3866
3867 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3868 deleted in 2002-08-20 commit. This function is still used by
3869 ppc-linux-nat.c.
3870
3871 2002-08-26 Keith Seitz <keiths@redhat.com>
3872
3873 * gdb-events.sh: Add selected-frame-level-changed event.
3874 * gdb-events.c: Regenerated.
3875 * gdb-events.h: Regenerated.
3876
3877 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3878
3879 Fix PR gdb/393:
3880 * inflow.c (terminal_save_ours): New function to save terminal
3881 settings.
3882 * inferior.h (terminal_save_ours): Declare.
3883 * target.c (debug_to_terminal_save_ours): New function.
3884 (cleanup_target): Defaults to_terminal_save_ours.
3885 (update_current_target): Inherit to_terminal_save_ours.
3886 (setup_target_debug): Set to_terminal_save_ours.
3887 * target.h (target_terminal_save_ours): New to save terminal settings.
3888 (target_ops): New member to_terminal_save_ours.
3889 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3890 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3891 * inftarg.c (init_child_ops): Likewise.
3892 * m3-nat.c (init_m3_ops): Likewise.
3893 * procfs.c (init_procfs_ops): Likewise.
3894 * wince.c (init_child_ops): Likewise.
3895 * win32-nat.c (init_child_ops): Likewise.
3896 * sol-thread.c (init_sol_thread_ops): Likewise.
3897
3898 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3899
3900 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3901 use regcache_* functions.
3902 (i386_gdbarch_init): Set store_return_value instead of
3903 deprecated_store_return_value.
3904
3905 * regcache.c (regcache_raw_write_signed,
3906 regcache_raw_write_unsigned): New functions.
3907 * regcache.h (regcache_raw_write_signed,
3908 regcache_raw_write_unsigned): New prototypes.
3909
3910 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3911
3912 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3913 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3914 source file dependencies. Cleanup corresponding generator rules.
3915
3916 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3917
3918 * regcache.h (register_offset_hack): Declare.
3919 (regcache_cooked_read_using_offset_hack): Declare.
3920 (regcache_cooked_write_using_offset_hack): Declare.
3921
3922 * regcache.c (register_offset_hack): New function.
3923 (regcache_cooked_read_using_offset_hack): New function.
3924 (regcache_cooked_write_using_offset_hack): New function.
3925 (regcache_dump): Check that the registers, according to their
3926 offset, are packed hard against each other.
3927 (cooked_xfer_using_offset_hack): New function.
3928
3929 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3930
3931 * regcache.c (struct regcache_descr): Add field register_type.
3932 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3933 in as a parameter
3934 (init_regcache_descr): Initialize register_type. Pass the descr
3935 to init_legacy_regcache_descr. Use register_type instead of
3936 REGISTER_VIRTUAL_TYPE.
3937 (register_type): New function.
3938 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3939 * regcache.h (register_type): Declare.
3940
3941 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3942
3943 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3944 instead of deprecated_store_return_value. Fix fallout from
3945 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3946
3947 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3948
3949 * regcache.c (max_register_size): New function.
3950 (init_legacy_regcache_descr): Ensure that max_register_size is
3951 large enough for REGISTER_VIRTUAL_SIZE.
3952 * regcache.h (max_register_size): Declare.
3953
3954 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3955
3956 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3957 store_return_value.
3958 (e500_extract_return_value): Change type of valbuf pointer to
3959 void.
3960
3961 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3962
3963 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3964 workaround.
3965
3966 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3967 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3968 long long) to prevent compiler warning on 64-bit systems.
3969
3970 2002-08-23 Andrew Cagney <cagney@redhat.com>
3971
3972 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3973 (DEPRECATED_STORE_RETURN_VALUE): New method.
3974 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3975 * gdbarch.h, gdbarch.c: Re-generate.
3976
3977 * values.c (set_return_value): Pass current_regcache to
3978 STORE_RETURN_VALUE.
3979 * arch-utils.h (legacy_store_return_value): Declare.
3980 * arch-utils.c (legacy_store_return_value): New function.
3981 (legacy_extract_return_value): Update parameters.
3982
3983 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3984 STORE_RETURN_VALUE.
3985 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3986 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3987 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3988 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3989 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3990 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3991 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3992 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3993 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3994 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3995
3996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3997 * i386-tdep.c (i386_extract_return_value): Update.
3998 * arch-utils.c (legacy_extract_return_value): Update.
3999 * frv-tdep.c (frv_gdbarch_init): Update.
4000 * cris-tdep.c (cris_gdbarch_init): Update.
4001 * d10v-tdep.c (d10v_gdbarch_init): Update.
4002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4003 * m68k-tdep.c (m68k_gdbarch_init): Update.
4004 * mcore-tdep.c (mcore_gdbarch_init): Update.
4005 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4006 * s390-tdep.c (s390_gdbarch_init): Update.
4007 * sparc-tdep.c (sparc_gdbarch_init): Update.
4008 * sh-tdep.c (sh_gdbarch_init): Update.
4009 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4010 * v850-tdep.c (v850_gdbarch_init): Update.
4011 * avr-tdep.c (avr_gdbarch_init): Update.
4012 * ia64-tdep.c (ia64_gdbarch_init): Update.
4013 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4014 * vax-tdep.c (vax_gdbarch_init): Update.
4015 * alpha-tdep.c (alpha_gdbarch_init): Update.
4016 * arm-tdep.c (arm_gdbarch_init): Update.
4017 * mips-tdep.c (mips_gdbarch_init): Update.
4018 * i386-tdep.c (i386_gdbarch_init): Update.
4019
4020 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4021
4022 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4023 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4024
4025 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4026
4027 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4028 problems.
4029
4030 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4031
4032 * infrun.c (handle_inferior_event): Move a comment outside of a
4033 function call, in order to avoid indent reformatting this part
4034 of the code in an unreadable way.
4035
4036 2002-08-23 Grace Sainsbury <graces@redhat.com>
4037
4038 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4039 when breakpoints fail. Move general breakpoint error messages to
4040 insert_breakpoints.
4041 * breakpoint.c (insert_breakpoints): Change warnings when
4042 breakpoints are nto inserted to specify the type. Remove call to
4043 memory_error when hardware breakpoints can't be inserted. Remove
4044 multiple calls to warning so all messages are sent to the user at
4045 once.
4046 (delete_breakpoints): Make insert error messsages more explicit.
4047
4048 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4049
4050 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4051 gdbserver/ChangeLog.
4052
4053 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4054
4055 * i386-tdep.c: Include "objfiles.h".
4056 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4057 skip_trampoline_code.
4058 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4059 (CPLUS_MARKER): Define to '.'.
4060
4061 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4062 member.
4063 (linux_corefile_thread_callback): Increase args->num_notes.
4064 (linux_make_note_section): Initialize thread_args.num_notes, and
4065 use it to determine whether notes for any threads were created.
4066
4067 2002-08-23 Donn Terry <donnte@microsoft.com>
4068
4069 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4070 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4071 and PCUNKILL.
4072 (write_with_trace): Conditionalize out the switch branch handling
4073 PCSHOLD if the corresponding macro is not defined. Likewise for
4074 PRSABORT and PRSTOP.
4075 This change will be needed by the Interix port.
4076
4077 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4078
4079 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4080 write_register wherever possible instead of manipulating the
4081 register bytes directly.
4082 Assign VALUE_CONTENTS to a variable and use that.
4083 The GPR numbers are now dependent on the architecture.
4084
4085 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4086
4087 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4088 ev_offset fields.
4089 (skip_prologue): Add support for BookE/e500 instructions.
4090 (e500_extract_return_value): New function.
4091 (frame_get_saved_regs): Add support for saving ev registers and
4092 pseudo gpr's.
4093 (e500_store_return_value): New function.
4094 (rs6000_gdbarch_init): Move up default intializations of
4095 deprecated_extract_return_value and store_return_value. Overwrite
4096 init of store_return_value with e500 specific version.
4097 Set extract_return_value for e500.
4098
4099 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4100
4101 * blockframe.c (generic_call_dummy_register_unwind): Use
4102 regcache_cooked_read to catch cases in which the variable is
4103 stored in a pseudo register.
4104
4105 2002-08-22 Andrew Cagney <cagney@redhat.com>
4106
4107 * NEWS: Mention that the i960 has been made obsolete.
4108 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4109 i960-tdep.c
4110 (remote-nrom.o): Obsolete target.
4111 (remote-nindy.o, i960-tdep.o): Ditto.
4112 * remote-nrom.c: Make file obsolete.
4113 * remote-nindy.c, remote-vx960.c: Ditto.
4114 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4115 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4116 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4117 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4118 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4119 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4120 i960-*-vxworks* obsolete.
4121 * MAINTAINERS: Note that the i960 is obsolete.
4122
4123 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4124
4125 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4126 detach to allow reinitialization.
4127
4128 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4129
4130 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4131 attempt).
4132
4133 2002-08-22 Jim Blandy <jimb@redhat.com>
4134
4135 * coffread.c (coff_symfile_read): Don't try to read the line
4136 number table from disk if the image file doesn't have a symbol
4137 table; we'll never actually look at the info anyway, and Windows
4138 ships DLL's with bogus file offsets for the line number data.
4139
4140 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4141
4142 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4143 an e500 executable.
4144
4145 2002-08-21 Michael Snyder <msnyder@redhat.com>
4146
4147 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4148 (MSYMBOL_SIZE): Replace macro with function.
4149 (DEFAULT_MIPS_TYPE): Delete unused macro.
4150 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4151 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4152
4153 2002-08-21 Jim Blandy <jimb@redhat.com>
4154
4155 * valops.c (value_cast): Simplify and correct logic for doing a
4156 static cast from a pointer to a base class to a pointer to a
4157 derived class.
4158
4159 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4160
4161 * infcmd.c (default_print_registers_info): Replace
4162 do_registers_info.
4163 (registers_info): Use gdbarch_print_registers_info instead of
4164 DO_REGISTERS_INFO.
4165 * inferior.h (default_print_registers_info): Replace
4166 do_registers_info.
4167 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4168 (DO_REGISTERS_INFO): Change to a predicate function.
4169 * gdbarch.h, gdbarch.c: Regenerate.
4170
4171 2002-08-21 Keith Seitz <keiths@redhat.com>
4172
4173 * gdb-events.sh: Add target-changed event.
4174 * gdb-events.c: Regenerated.
4175 * gdb-events.c: Regenerated.
4176 * valops.c (value_assign): Add target-changed event notification
4177 to inlval_register, lval_memory, and lval_reg_frame_relative.
4178
4179 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4180
4181 * NEWS: Add an entry regarding the improvement of the next/step
4182 operation on Alpha Tru64 multi-processor machines.
4183
4184 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4185
4186 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4187 directores.
4188 * Makefile.in: Update all _h macro definitions.
4189 * Makefile.in (install-gdbtk): Move to install section.
4190 (rdi-share/libangsd.a): Move to end of file.
4191
4192 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4193
4194 * frame.c (frame_register_unwind): When a register, set addrp to
4195 the register's byte.
4196
4197 2002-08-20 Michael Snyder <msnyder@redhat.com>
4198
4199 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4200 used locally, so move them from the target machine header to here.
4201 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4202 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4203 Make static.
4204 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4205
4206 2002-08-20 Andrew Cagney <cagney@redhat.com>
4207
4208 * NEWS: Mention that the Apollo line was made obsolete.
4209 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4210 m68*-hp-hpux* obsolete.
4211 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4212 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4213 * buildsym.c (make_blockvector): Make static.
4214 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4215 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4216 (ALLDEPFILES): Remove dstread.c.
4217 (dstread.o): Obsolete make rule.
4218 * dstread.c: Makefile obsolete.
4219 * dst.h: Ditto.
4220 * config/m68k/hp300hpux.mt: Ditto.
4221 * config/m68k/hp300hpux.mh: Ditto.
4222 * config/m68k/hp300bsd.mt: Ditto.
4223 * config/m68k/hp300bsd.mh: Ditto.
4224 * config/m68k/apollo68b.mt: Ditto.
4225 * config/m68k/apollo68v.mh: Ditto.
4226 * config/m68k/apollo68b.mh: Ditto.
4227
4228 2002-08-20 Michael Snyder <msnyder@redhat.com>
4229
4230 * mips-tdep.c (mips_in_return_stub): Make static.
4231 (mips_gdbarch_init): Set in_solib_return_trampoline.
4232 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4233
4234 2002-08-20 Michael Snyder <msnyder@redhat.com>
4235
4236 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4237 * gdbarch.c, gdbarch.h: Regenerate.
4238 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4239 Add.
4240 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4241
4242 2002-08-20 Michael Snyder <msnyder@redhat.com>
4243
4244 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4245 (mips_gdbarch_init): Set skip_trampoline_code,
4246 in_solib_call_trampoline.
4247 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4248 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4249
4250 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4251
4252 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4253
4254 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4255 vector type for ev registers.
4256 (e500_pseudo_register_read): New function.
4257 (e500_pseudo_register_write): New function.
4258 (e500_dwarf2_reg_to_regnum): New function.
4259 (PPC_UISA_NOFP_SPRS): New macro.
4260 (PPC_EV_REGS): New macro.
4261 (PPC_GPRS_PSEUDO_REGS): New macro.
4262 (registers_e500): New register set for e500.
4263 (variants): Add e500 variant.
4264 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4265 before setting architectural dependent variations. Initialize ev
4266 registers numbers. Add case for e500 architecture. Set the
4267 number of pseudo registers.
4268
4269 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4270
4271 * rs6000-tdep.c: Clean up comments.
4272
4273 2002-08-20 Andrew Cagney <cagney@redhat.com>
4274
4275 * h8300-tdep.c: Re-indent file.
4276
4277 2002-08-20 Jim Blandy <jimb@redhat.com>
4278
4279 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4280 default for this.
4281
4282 2002-08-20 Keith Seitz <keiths@redhat.com>
4283
4284 * breakpoints.c (watch_command_1): Use internal breakpoint
4285 when setting a watchpoint_scope breakpoint.
4286
4287 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4288
4289 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4290 (build_builtin_type_vec64i): Ditto.
4291 (build_builtin_type_vec128): Ditto.
4292 (build_builtin_type_vec128i): Ditto.
4293
4294 2002-08-19 Michael Snyder <msnyder@redhat.com>
4295
4296 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4297 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4298 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4299 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4300 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4301 CALL_DUMMY_ADDRESS): Delete.
4302 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4303 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4304 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4305 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4306 push_return_address.
4307 (mips_register_raw_size, mips_eabi_use_struct_convention,
4308 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4309 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4310 mips_init_extra_frame_info, mips_eabi_push_arguments,
4311 mips_n32n64_push_arguments, mips_push_return_address,
4312 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4313 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4314
4315 2002-08-19 Michael Snyder <msnyder@redhat.com>
4316
4317 * mips-tdep.c (mips_frame_num_args): New function.
4318 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4319 frame_saved_pc, frame_args_address, frame_locals_address,
4320 frame_num_args, and frame_args_skip.
4321 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4322 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4323 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4324 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4325
4326 2002-08-20 Michael Snyder <msnyder@redhat.com>
4327
4328 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4329 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4330 * mips-tdep.c (mips_store_struct_return): New function.
4331 (mips_extract_struct_value_address): New function.
4332 (mips_gdbarch_init): Set store_struct_return and
4333 extract_struct_value_address.
4334
4335 2002-08-20 David Carlton <carlton@math.stanford.edu>
4336
4337 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4338 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4339 (read_file_scope): Check that line_header is nonzero before
4340 decoding macro information.
4341
4342 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4343
4344 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4345 flag the general-purpose registers as floating-point on targets
4346 that don't support the floating-point registers.
4347
4348 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4349
4350 * rs6000-tdep.c (altivec_register_p): Delete.
4351 (rs6000_do_altivec_registers): Delete.
4352 (rs6000_altivec_registers_info): Delete.
4353 (rs6000_do_registers_info): Delete.
4354 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4355 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4356
4357 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4358
4359 * infcmd.c (do_registers_info): Print vector registers in hex
4360 format only.
4361 (print_vector_info): Check that printing registers
4362 makes sense.
4363 (print_float_info): Ditto.
4364
4365 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4366
4367 * mips-tdep.c (mips_gdbarch_init): Update.
4368 (mips_o32_extract_return_value): Rewrite.
4369 (mips_o32_store_return_value): Rewrite.
4370 (mips_o32_xfer_return_value): New function.
4371 (mips_xfer_register): Tweak debug print message. Allow for
4372 buf_offset when dumping the value transfered.
4373
4374 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4375
4376 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4377 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4378 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4379 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4380 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4381
4382 2002-08-14 Michael Snyder <msnyder@redhat.com>
4383
4384 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4385
4386 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4387
4388 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4389 register.
4390 (P): New macro to define a register as a pseudo register.
4391 (R, R4, R8, R16, FR32, R64, R0): Updated.
4392 (struct variant): Add new fields for number of pseudo registers
4393 and number of total registers.
4394 (tot_num_registers): New macro replacing....
4395 (num_registers): ...deleted macro.
4396 (num_registers): New function.
4397 (num_pseudo_registers): New function.
4398 (variants): Update all variants to intialize new fields correctly.
4399 Postpone initialization of number of pseudo regs and real regs.
4400 (init_variants): New function.
4401 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4402 registers offsets.
4403
4404 2002-08-19 David Carlton <carlton@math.stanford.edu>
4405
4406 * valops.c (search_struct_field): Change error message to treat
4407 return value of 0 from value_static_field as meaning that field is
4408 optimized out.
4409 (value_struct_elt_for_reference): Ditto.
4410 * values.c (value_static_field): Treat an unresolved location the
4411 same as a nonexistent symbol. Fix PR gdb/635.
4412 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4413 enclosed. Fix PR gdb/574.
4414 * MAINTAINERS: Add self to Write After Approval list.
4415
4416 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4417
4418 * mips-tdep.c (mips_xfer_register): New function.
4419 (mips_n32n64_extract_return_value): Rewrite.
4420 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4421 instead of deprecated_extract_return_value.
4422
4423 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4424
4425 * rs6000-tdep.c (TDEP): Delete macro.
4426 (branch_dest): Replace use of TDEP macro with its body.
4427 (rs6000_pop_frame): Ditto.
4428 (rs6000_push_arguments): Ditto.
4429 (rs6000_skip_trampoline_code): Ditto.
4430 (rs6000_frame_saved_pc): Ditto.
4431 (rs6000_frame_chain): Ditto.
4432 (rs6000_register_name): Ditto.
4433 (rs6000_register_byte): Ditto.
4434 (rs6000_register_raw_size): Ditto.
4435 (rs6000_register_virtual_type): Ditto.
4436 (rs6000_register_convertible): Ditto.
4437 (rs6000_convert_from_func_ptr_addr): Ditto.
4438
4439 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4440
4441 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4442 conditionally.
4443 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4444 MIPS_LINUX_JB_ELEMENT_SIZE.
4445 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4446 for MAX_REGISTER_RAW_SIZE arrays.
4447 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4448 MIPS_LINUX_JB_ELEMENT_SIZE.
4449
4450 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4451
4452 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4453
4454 2002-08-19 Aidan Skinner <aidan@velvet.net>
4455
4456 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4457 ada-valprint.c ada-tasks.c.
4458 (YYFILES): Add ada-exp.y.
4459 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4460 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4461 (ada-exp.tab.o): New target.
4462
4463 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4464
4465 * regcache.c (regcache_xfer_part): New function.
4466 (regcache_raw_read_part): New function.
4467 (regcache_raw_write_part): New function.
4468 (regcache_cooked_read_part): New function.
4469 (regcache_cooked_write_part): New function.
4470 * regcache.h (regcache_raw_read_part): Declare.
4471 (regcache_raw_write_part): Declare.
4472 (regcache_cooked_read_part): Declare.
4473 (regcache_cooked_write_part): Declare.
4474
4475 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4476
4477 * remote.c (remote_open_1): Add async_p.
4478 (remote_async_open_1): Delete.
4479 (open_remote_target): Delete.
4480 (remote_open, extended_remote_open): Update calls to remote_open_1.
4481 (remote_async_open, extended_remote_async_open): Call
4482 remote_open_1 instead of remote_async_open_1.
4483
4484 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4485
4486 * blockframe.c: Fix a few coding standard violations.
4487
4488 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4489
4490 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4491 here from ...
4492 * config/i386/tm-i386sco5.h: ... here. File removed.
4493 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4494
4495 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4496 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4497 (TM_FILE): Set to tm-i386.h.
4498 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4499 * config/i386/tm-i386v.h: Remove file.
4500 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4501 instead of "i386/tm-i386v.h".
4502 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4503 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4504 "i386/tm-i386v.h".
4505 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4506 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4507 "i386/tm-i386.h".
4508
4509 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4510
4511 * config/i386/nm-i386v.h: Add protection against
4512 multiple-inclusion.
4513 (i386_register_u_addr): Remove prototype.
4514 (register_u_addr): New prototype.
4515 (REGISTER_U_ADDR): Redefine accordingly.
4516 * i386v-nat.c: Improve several comments.
4517 (i386_register_u_addr): Change signature and rename to
4518 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4519 ubase variable.
4520
4521 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4522
4523 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4524 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4525 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4526 deprecated_extract_return_value.
4527 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4528 rename mips_o32o64_push_arguments.
4529 (mips_gdbarch_init): Update.
4530 (mips_extract_return_value): Delete.
4531 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4532 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4533 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4534 (mips_n32n64_extract_return_value): Clone
4535 mips_extract_return_value.
4536 (mips_store_return_value): Delete.
4537 (mips_o32_store_return_value): Clone mips_store_return_value.
4538 (mips_o64_store_return_value): Clone mips_store_return_value.
4539 (mips_eabi_store_return_value): Clone mips_store_return_value.
4540 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4541
4542 2002-08-18 Aidan Skinner <aidan@velvet.net>
4543
4544 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4545 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4546
4547 2002-08-18 Aidan Skinner <aidan@velvet.net>
4548
4549 * ada-lang.c: Run through gdb_indent.sh.
4550 * ada-lang.h: Run through gdb_indent.sh.
4551 * ada-tasks.c: Run through gdb_indent.sh.
4552 * ada-typeprint.c: Run through gdb_indent.sh.
4553 * ada-valprint.c: Run through gdb_indent.sh.
4554
4555 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4556
4557 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4558 ABI.
4559
4560 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4561
4562 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4563
4564 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4565 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4566
4567 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4568 write_register_gen instead of write_register_bytes.
4569
4570 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4571 i[3456]-*-osf1mk* configurations have been made obsolete.
4572 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4573 i[3456]86-*-osf1mk* hosts obsolete.
4574 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4575 targets obsolete.
4576 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4577 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4578 config/i386/i386m3.mt, config/i386/nm-m3.h,
4579 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4580 config/i386/i386mk.mh, config/i386/i386mk.mt,
4581 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4582 obsolete.
4583 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4584 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4585 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4586
4587 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4588
4589 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4590 (hppa_value_returned_from_stack): Declare.
4591 (hppa_extract_return_value): Declare.
4592 * config/pa/hppa.mt: New file.
4593 * configure.tgt: Recognize hppa*-*-*.
4594 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4595
4596 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4597
4598 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4599 comment.
4600
4601 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4602
4603 * top.c (gdb_rl_operate_and_get_next): Make sure
4604 operate-and-get-next functions correctly even when the history
4605 list is completely filled.
4606
4607 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4608
4609 * MAINTAINERS (Target Instruction Set Architectures): Rename
4610 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4611 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4612 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4613 already listed under Host/Native.
4614
4615 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4616 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4617 mips*-*-*.
4618
4619 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4620
4621 * config/ia64/ia64.mt: New file.
4622 * config/alpha/alpha.mt: New file.
4623 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4624 ia64-linux-gnu. Mention that ia64-elf is broken.
4625 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4626
4627 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4628
4629 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4630 generic_func_frame_valid instead of func_frame_valid.
4631
4632 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4633
4634 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4635 procfs appears to be broken when debugging on multi-processor
4636 machines. So enable software single stepping in order to avoid
4637 using the procfs interface to do next/step operations, using
4638 internal breakpoints instead.
4639
4640 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4641 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4642 make this pc address equal to the value it would have if the
4643 system stepping capability was used. Also set a new flag used
4644 to ensure that we don't readjust the PC one more time later.
4645
4646 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4647 address by DECR_PC_AFTER_BREAK when software single step is
4648 in use for this architecture, as this has already been taken
4649 care of in handle_inferior_event().
4650
4651 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4652
4653 * infrun.c (handle_inferior_event): Minor reformatting, to make
4654 a rather long condition expression easier to read.
4655
4656 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4657
4658 * Makefile.in (gdbtk.o): Move to end of file.
4659 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4660 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4661 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4662 (gdbtk-wrapper.o, gdbres.o): Ditto.
4663
4664 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4665
4666 * Makefile.in (copying.o): Separate out compile rule.
4667 (hpux-thread.o, procfs.o, signals.o): Ditto.
4668 (v850ice.o, z8k-tdep.o): Ditto.
4669 (tui-file.o): Move to TUI section.
4670 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4671 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4672
4673 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4674
4675 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4676 skip_trampoline_code, for better namespace-proofing.
4677
4678 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4679
4680 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4681
4682 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4683
4684 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4685
4686 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4687 signal, check whether we hit a breakpoint before checking for a
4688 single step breakpoint. Otherwise, GDB fails to notice that a
4689 breakpoint has been hit when stepping onto a breakpoint.
4690
4691 2002-08-16 Keith Seitz <keiths@redhat.com>
4692
4693 * gdb-events.sh (clear_gdb_event_hooks): New function.
4694 * gdb-events.c: Regenerate.
4695 * gdb-events.h: Regenerate.
4696
4697 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4698
4699 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4700 not_a_sw_breakpoint.
4701 * breakpoint.h (bpstat_stop_status): Add parameter names.
4702
4703 2002-08-16 Grace Sainsbury <graces@redhat.com>
4704
4705 * remote.c (remote_insert_hw_breakpoint)
4706 (remote_remove_hw_breakpoint): Fix calculation of length field
4707 for Z-packet.
4708
4709 2002-08-15 Michael Snyder <msnyder@redhat.com>
4710
4711 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4712 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4713 (supply_fpregset): Ditto.
4714
4715 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4716 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4717 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4718 (TARGET_READ_SP): Delete.
4719 (DO_REGISTERS_INFO): Delete.
4720 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4721 Delete.
4722 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4723 from macros to functions.
4724
4725 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4726 (mips_register_convertible, mips_register_convert_to_virtual,
4727 mips_register_convert_to_raw): Make static.
4728 (mips_read_sp): New function.
4729 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4730 (mips_do_registers_info): Make static.
4731 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4732 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4733 (mips_register_convert_from_type, mips_register_convert_to_type):
4734 New functions.
4735 (mips_gdbarch_init): Set up function_start_offset,
4736 register_virtual_size, pc_in_sigtramp.
4737
4738 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4739
4740 * infcmd.c (vector_info): New function.
4741 (_initialize_infcmd): Add command "info vector".
4742 (print_vector_info): New function.
4743
4744 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4745 * gdbarch.h, gdbarch.c: Regenerate.
4746
4747 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4748
4749 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4750 ``print_all''. Only print vector registers when ``print_all''.
4751
4752 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4753
4754 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4755 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4756
4757 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4758 Add `args' parameter.
4759 * gdbarch.h, gdbarch.c: Regenerate.
4760
4761 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4762
4763 * infcmd.c (float_info): Call print_float_info.
4764 (print_float_info): New function. By default, print the
4765 floating-point registers.
4766
4767 * arch-utils.h (default_print_float_info): Delete declaration.
4768 * arch-utils.c (default_print_float_info): Delete function.
4769
4770 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4771
4772 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4773 out define.
4774
4775 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4776 FRAME.
4777
4778 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4779 * configure.host: Make i[3456]86-*-aix host obsolete.
4780 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4781 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4782 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4783 config/i386/xm-i386aix.h: Make files obsolete.
4784 * i386aix-nat.c: Make file obsolete.
4785 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4786 (i386aix-nat.o): Make target obsolete.
4787
4788 * config/i386/nm-gnu.h: Removed.
4789 * config/i386/nm-i386gnu.h: New file.
4790 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4791 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4792 Moved here from ...
4793 * config/i386/tm-i386gnu.h: ... here. Removed.
4794 * config/i386/xm-i386gnu.h: Removed.
4795 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4796 (NAT_FILE): Set to nm-i386gnu.h.
4797 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4798 * i386-tdep.c: New file.
4799 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4800 (i386gnu-tdep.o): Specify dependencies.
4801
4802 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4803
4804 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4805 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4806 Adjust a few comments to reflect reality a bit closer.
4807 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4808 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4809 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4810 target_insert_watchpoint, target_remove_watchpoint):
4811 Move defines to ...
4812 * config/i386/nm-i386sco5.h: ... here.
4813 (kernel_u_size): Add prototype. Improve a few comments and add
4814 protection against multiple inclusion.
4815
4816 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4817 out define.
4818
4819 * uw-thread.c (SP_ARG0): Define if not already defined.
4820 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4821
4822 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4823
4824 * config/i386/tm-i386.h: Don't include "regcache.h".
4825
4826 * i387-tdep.h (i387_print_float_info): New prototype.
4827 * i387-tdep.c (print_i387_value, print_i387_ext,
4828 print_i387_status_word, print_i387_control_word): Add `struct
4829 ui_file *' argument and use it for output.
4830 (i387_print_float_info): Renamed from i387_float_info. Add
4831 `struct gdbarch *' and `struct ui_file *' arguments and use the
4832 latter for output.
4833 * i386-tdep.c: Include "i387-tdep.h".
4834 (i386_gdbarch_init): Set print_float_info.
4835 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4836 (FLOAT_INFO): Remove define.
4837
4838 2002-08-13 Michael Snyder <msnyder@redhat.com>
4839
4840 * mips-tdep.c (mips_push_arguments): Rename to
4841 mips_eabi_push_arguments, and tune for EABI.
4842 (MIPS_REGS_HAVE_HOME_P): Delete.
4843 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4844 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4845 Delete references to mips_regs_have_home_p.
4846
4847 2002-08-14 Keith Seitz <keiths@redhat.com>
4848
4849 * Makefile.in (install-gdbtk): Create insight plugin directory.
4850 Install plugins.tcl file.
4851
4852 2002-08-14 Keith Seitz <keiths@redhat.com>
4853
4854 * configure.in: Move SUBDIRS to near top of the file so that
4855 --enable options may add things to it.
4856 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4857 * configure: Regenerate.
4858
4859 2002-08-13 Michael Snyder <msnyder@redhat.com>
4860
4861 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4862 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4863 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4864
4865 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4866
4867 * vax-tdep.c (vax_get_saved_register): Delete function.
4868 (vax_gdbarch_init): Update.
4869 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4870 (ns32k_gdbarch_init): Update.
4871 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4872 (alpha_gdbarch_init): Update.
4873
4874 2002-08-13 Andrew Cagney <cagney@redhat.com>
4875
4876 * regcache.c (init_regcache_descr): Overallocate the
4877 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4878 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4879 nr_raw_registers.
4880 (set_register_cached): Add range checking assertions. Use
4881 current_regcache.
4882
4883 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4884
4885 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4886 numbers for MMX registers.
4887
4888 2002-08-13 Andrew Cagney <cagney@redhat.com>
4889
4890 * i386-tdep.c (i386_gdbarch_init): Use
4891 generic_unwind_get_saved_register.
4892
4893 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4894
4895 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4896 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4897 target vector.
4898 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4899 Delete. Add comment regarding this now-deleted target method.
4900
4901 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4902
4903 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4904 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4905 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4906 real PC and the page number (if it's within the memory bank window).
4907 (m68hc11_pseudo_register_write): Likewise when saving.
4908 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4909 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4910 (m68hc11_register_raw_size): And use 32-bit for it.
4911 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4912 16K memory bank is used by the prog; also use the virtual pc.
4913
4914 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4915
4916 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4917 (m68hc11_gdbarch_init): Install it in gdbarch.
4918 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4919 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4920 (MSYMBOL_SIZE): New for documentation.
4921 (insn_return_kind): Enum to specify how a function returns.
4922 (frame_extra_info): Cleanup and record the return mode.
4923 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4924 register in address computation.
4925 (m68hc11_get_return_insn): New to obtain the return instruction used
4926 by the function.
4927 (m68hc11_frame_init_saved_regs): Take into account the return
4928 instruction used by the function for far and interrupt functions.
4929 (m68hc11_init_extra_frame_info): Take into account page register.
4930 (m68hc11_frame_args_address): Adjust according to the return mode.
4931 (show_regs): Print page register only when it's used.
4932
4933 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4934
4935 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4936 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4937 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4938 registers.
4939 (m68hc11_register_raw_size): Likewise.
4940
4941 2002-08-13 Andrew Cagney <cagney@redhat.com>
4942
4943 * i386-tdep.c (i386_register_name): Handle mmx registers.
4944 (mmx_regnum_p): New function.
4945 (i386_mmx_names): New array.
4946 (mmx_num_regs): New variable.
4947 (i386_pseudo_register_read): New function.
4948 (i386_pseudo_register_write): New function.
4949 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4950
4951 * regcache.c (regcache_raw_read_unsigned): New function.
4952 (regcache_raw_read_signed): New function.
4953 * regcache.h (regcache_raw_read_unsigned): Declare.
4954 (regcache_raw_read_signed): Declare.
4955
4956 2002-08-13 Andrew Cagney <cagney@redhat.com>
4957
4958 * regcache.c (regcache_raw_read_as_address): Delete function.
4959 (regcache_cooked_read_signed): New function.
4960 (regcache_cooked_read_unsigned): New function.
4961 * regcache.h (regcache_cooked_read_signed): Declare.
4962 (regcache_cooked_read_unsigned): Declare.
4963 (regcache_raw_read_as_address): Delete declaration.
4964
4965 * blockframe.c (generic_read_register_dummy): Use
4966 regcache_cooked_read_unsigned.
4967 * i386-tdep.c (i386_extract_struct_value_address): Use
4968 regcache_cooked_read_unsigned.
4969
4970 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4971
4972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4973 double sizes according to ELF ABI flags.
4974 (gdbarch_tdep): Record elf_flags.
4975
4976 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4977
4978 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4979 (m6812_prolog): They can appear in 68HC12 function prologue.
4980 (m68hc11_frame_chain): Cleanup.
4981
4982 2002-08-12 Andrew Cagney <cagney@redhat.com>
4983
4984 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4985 declarations.
4986 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4987 (i386_linux_register_raw_size): Delete function.
4988 (i386_linux_init_abi): Update.
4989 * i386-tdep.c (i386_register_raw_size): Delete function.
4990 (i386_register_byte): Delete function.
4991 (i386_gdbarch_init): Update.
4992 (i386_register_size): Delete array.
4993 (i386_register_offset): Delete array.
4994
4995 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4996 (REGISTER_RAW_SIZE): Delete macro.
4997 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4998 (REGISTER_BYTE): Delete macro.
4999
5000 2002-08-11 Aidan Skinner <aidan@velvet.net>
5001
5002 * ada-lang.c (ada_lookup_partial_symbol)
5003 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5004 prototype names so that grep ^func works properly.
5005
5006 * ada-lang.c (ada_array_element_type)
5007 (ada_lookup_partial_symbol): Fix typos in parameter list.
5008
5009 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5010 Fix prototype names so that grep ^func works properly.
5011
5012 2002-08-10 Andrew Cagney <cagney@redhat.com>
5013 Elena Zannoni <ezannoni@redhat.com>
5014 Martin M. Hunt <hunt@redhat.com>
5015
5016 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5017 (build_builtin_type_vec128i): Set the vector bit.
5018 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5019 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5020 (build_builtin_type_vec64): New function.
5021 (build_builtin_type_vec64i): New function.
5022 (build_gdbtypes): Initialize builtin_type_vec64 and
5023 builtin_type_vec64i.
5024
5025 2002-08-09 Andrew Cagney <cagney@redhat.com>
5026
5027 * regcache.c (regcache_dump): Compare the register offset
5028 with REGISTER_BYTE.
5029 * arch-utils.c (generic_register_byte): New function.
5030 * arch-utils.h (generic_register_byte): Declare.
5031 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5032 * gdbarch.h, gdbarch.c: Regenerate.
5033
5034 2002-08-09 Andrew Cagney <cagney@redhat.com>
5035
5036 * regcache.c: Include "gdbcmd.h"
5037 (_initialize_regcache): Add commands "maintenance print
5038 registers", "maintenance print raw-registers" and "maintenance
5039 print cooked-registers".
5040 (enum regcache_dump_what): Define.
5041 (dump_endian_bytes): New function.
5042 (regcache_dump): New function.
5043 (regcache_print): New function.
5044 (maintenance_print_registers): New function.
5045 (maintenance_print_raw_registers): New function.
5046 (maintenance_print_cooked_registers): New function.
5047 * Makefile.in (regcache.o): Update dependencies.
5048
5049 2002-08-09 Michael Snyder <msnyder@redhat.com>
5050
5051 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5052 (mips_push_arguments): Correct some comments. Use paddr_nz
5053 for printing addresses in debug output. Replace static
5054 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5055 (mips_n32n64_push_arguments): New function, cloned from
5056 mips_push_arguments and tuned for the n32/n64 ABI.
5057 (mips_push_register): Buffer needs dynamic allocation.
5058 (mips_print_register): Ditto.
5059 (do_gp_register_row): Ditto.
5060 (mips_store_return_value): Ditto.
5061 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5062
5063 2002-08-09 Don Howard <dhoward@redhat.com>
5064
5065 * memattr.c (mem_info_command): Print special case of upper bound
5066 as max CORE_ADDR + 1.
5067
5068 2002-08-08 Michael Snyder <msnyder@redhat.com>
5069
5070 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5071 returns structs by ref if they're too big to fit in two registers.
5072
5073 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5074
5075 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5076 saved regs value.
5077 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5078 mips_find_saved_regs().
5079 (mips_pop_frame): Likewise.
5080
5081 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5082
5083 * blockframe.c (frame_saved_regs_register_unwind): Revise
5084 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5085 frames are in use.
5086
5087 2002-08-09 Grace Sainsbury <graces@redhat.com>
5088
5089 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5090 T-packets; the 'a' is not taken as a register number.
5091 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5092 (remote_stopped_data_address): New functions; add to target
5093 vector.
5094 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5095 prototypes to match other implementations of this
5096 function. replace integer argument with pointer -- the length
5097 field in the Z-packet is the length of what is pointed to or 1 if
5098 pointer is null. Add to target vector.
5099 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5100 target vector.
5101
5102 From Mark Salter:
5103 * remote.c (remote_wait): Add support to extract optional
5104 watchpoint information from T-packet. Ignore unrecognized
5105 optional info in T-packet.
5106 (remote_async_wait): Ditto.
5107
5108 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5109
5110 * cli/cli-dump.c: Change fopen modes to use binary open modes
5111 as defined in include/fopen-bin.h throughout.
5112
5113 2002-08-08 Michael Snyder <msnyder@redhat.com>
5114
5115 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5116
5117 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5118
5119 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5120 assertion failure by returning early after a warning.
5121
5122 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5123
5124 * mips-tdep.c (mips_find_saved_regs): Make static.
5125 (mips_frame_init_saved_regs): New function.
5126 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5127 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5128 (mips_find_saved_regs): Delete declaration.
5129
5130 2002-08-08 Grace Sainsbury <graces@redhat.com>
5131
5132 * remote.c (remote_wait, remote_async_wait): Change
5133 thread_num from int to ULONGEST.
5134 (unpack_varlen_hex): Change result parameter from
5135 int * to ULONGEST *.
5136
5137 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5138
5139 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5140 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5141 powerpc*-*-*.
5142 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5143
5144 2002-08-08 Andrew Cagney <cagney@redhat.com>
5145
5146 * gcore.c (override_derive_stack_segment): Delete variable.
5147 (preempt_derive_stack_segment): Delete function.
5148 (derive_stack_segment): Delete function.
5149 (default_derive_stack_segment): Renamed to derive_stack_segment.
5150 (override_derive_heap_segment): Delete variable.
5151 (preempt_derive_heap_segment): Delete function.
5152 (derive_heap_segment): Delete function.
5153 (default_derive_heap_segment): Rename to derive_heap_segment.
5154
5155 2002-08-06 Michael Snyder <msnyder@redhat.com>
5156
5157 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5158 * mips-tdep.c (mips_EABI_use_struct_convention,
5159 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5160 New functions. (mips_use_struct_convention): Delete.
5161 (mips_gdbarch_init): set use_gdbarch_convention.
5162
5163 2002-08-06 Michael Snyder <msnyder@redhat.com>
5164
5165 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5166 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5167 mips_o32_reg_struct_has_addr): New functions.
5168 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5169
5170 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5171
5172 * regcache.c (pseudo_register): Delete function.
5173 (fetch_register): Delete function.
5174 (store_register): Delete function.
5175 (regcache_raw_read, legacy_read_register_gen): Use
5176 target_fetch_registers instead of fetch_register.
5177 (legacy_write_register_gen, regcache_raw_write): Use
5178 target_store_register instead of store_register.
5179 (write_register_bytes): Ditto.
5180
5181 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5182 (STORE_PSEUDO_REGISTER): Delete.
5183 * gdbarch.h, gdbarch.c: Regenerate.
5184
5185 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5186
5187 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5188 write dump file binary.
5189
5190 2002-08-05 Michael Snyder <msnyder@redhat.com>
5191
5192 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5193 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5194 (mips_gdbarch_init): Set N32 target to be mips64.
5195
5196 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5197
5198 * frame.c (find_saved_register): Break out of loop once saved
5199 register address is found. Don't mention sparc in loop comment
5200 anymore.
5201
5202 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5203
5204 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5205 mips_default_saved_regsize to 8.
5206
5207 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5208
5209 * gcore.c: Do not include <sys/procfs.h>.
5210 * Makefile.in (gcore.o): Update dependencies.
5211
5212 2002-08-06 Andrew Cagney <cagney@redhat.com>
5213
5214 * configure.tgt: Make arc-*-* obsolete.
5215 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5216 * MAINTAINERS: Make arc-elf obsolete.
5217 * arc-tdep.c: Make file obsolete.
5218 * config/arc/arc.mt: Ditto.
5219 * config/arc/tm-arc.h: Ditto.
5220
5221 2002-08-05 Theodore A. Roth <troth@verinet.com>
5222
5223 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5224
5225 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5226
5227 * mcore-tdep.c (mcore_gdbarch_init): Use
5228 generic_unwind_get_saved_register instead of
5229 generic_get_saved_register.
5230 * v850-tdep.c (v850_gdbarch_init): Ditto.
5231 * frv-tdep.c (frv_gdbarch_init): Ditto.
5232 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5233 * s390-tdep.c (s390_gdbarch_init): Ditto.
5234 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5235 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5236 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5237
5238 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5239
5240 * objfiles.h: Add missing #include "symfile.h"
5241
5242 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5243
5244 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5245
5246 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5247 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5248 of FIELD_BITSIZE.
5249
5250 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5251
5252 * NEWS: Cleanup and nitpick.
5253
5254 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5255
5256 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5257
5258 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5259
5260 * Makefile.in (gdbtk-bp.o): Update dependencies.
5261 (gdbtk-register.o): Ditto.
5262 (gdbtk-varobj.o): Ditto.
5263
5264 2002-08-03 Andrew Cagney <cagney@redhat.com>
5265
5266 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5267 m68hc11_fetch_pseudo_register.
5268 (m68hc11_pseudo_register_write): Replace
5269 m68hc11_store_pseudo_register.
5270 (m68hc11_gdbarch_init): Update.
5271
5272 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5273
5274 * gdbarch.sh: Include "gdb_string.h".
5275 * gdbarch.c: Regenerate.
5276
5277 * regcache.c: Include "gdb_string.h".
5278 * ax-general.c: Ditto.
5279 * varobj.c: Ditto.
5280 * std-regs.c: Ditto.
5281 * fbsd-proc.c: Ditto.
5282 * thread.c: Ditto.
5283
5284 * Makefile.in (regcache.o): Update dependencies.
5285 (thread.o, gdbarch.o): Ditto.
5286 (ax-general.o, gdbarch.o): Ditto.
5287 (varobj.o, std-regs.o): Ditto.
5288 (fbsd-proc.o): Specify dependencies.
5289
5290 2002-08-02 Andrew Cagney <cagney@redhat.com>
5291
5292 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5293 regnum.
5294 (regcache_cooked_write): Ditto.
5295
5296 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5297
5298 * regcache.c (regcache_cooked_read): New function.
5299 (regcache_cooked_write): New function.
5300 (read_register_gen): Rewrite using regcache_cooked_read.
5301 (write_register_gen): Rewrite using regcache_cooked_write.
5302
5303 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5304 Declare.
5305
5306 2002-08-02 Andrew Cagney <cagney@redhat.com>
5307
5308 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5309 Replace the architecture methods register_read and register_write.
5310 * gdbarch.h, gdbarch.c: Regenerate.
5311 * regcache.c (init_regcache_descr): Update.
5312 (read_register_gen): Update.
5313 (write_register_gen): Update.
5314 (supply_register): Update comment.
5315
5316 * sh-tdep.c (sh_gdbarch_init): Update.
5317 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5318 `regcache' and `gdbarch' parameters. Make `buffer' a void
5319 pointer. Update code.
5320 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5321 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5322 void pointer. Update code.
5323 (sh64_register_write): Delete.
5324 (sh4_register_read): Delete.
5325 (sh64_register_read): Delete.
5326 (sh4_register_write): Delete.
5327 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5328 void pointer, `to' parameter a void pointer.
5329 (sh_sh64_register_convert_to_raw): Ditto.
5330
5331 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5332
5333 * mips-tdep.c (mips_register_virtual_type): Use architecture
5334 invariant return values.
5335
5336 2002-08-01 Andrew Cagney <cagney@redhat.com>
5337
5338 * linux-proc.c: Include "gdb_string.h".
5339 * Makefile.in (linux-proc.o): Update dependency list.
5340
5341 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5342
5343 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5344 comment.
5345
5346 2002-08-01 Grace Sainsbury <graces@redhat.com>
5347
5348 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5349 to_insert_watchpoint, to_remove_watchpoint,
5350 to_stopped_by_watchpoint, to_stopped_data_address,
5351 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5352 target vecctor. Define their corresponding macros so they call
5353 them.
5354
5355 * target.c: Add default and debug versions of for
5356 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5357 to_insert_watchpoint, to_remove_watchpoint,
5358 to_stopped_by_watchpoint, to_stopped_data_address,
5359 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5360
5361 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5362
5363 * mips-tdep.c (mips_register_virtual_type): New function.
5364 (mips_gdbarch_init): Register mips_register_virtual_type()
5365 with gdbarch machinery.
5366 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5367 this file instead of tm-bigmips.h.
5368 (MIPS_REGSIZE): Delete this macro.
5369 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5370 multiarch version in mips-tdep.c will be found.
5371
5372 2002-08-01 Andrew Cagney <cagney@redhat.com>
5373
5374 * NEWS: Menion that CHILL has been made obsolete.
5375
5376 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5377 * stabsread.c (read_range_type): Ditto.
5378 * gdbtypes.h: Ditto.
5379 * language.c (binop_type_check): Ditto.
5380 (binop_result_type): Ditto.
5381 (integral_type): Ditto.
5382 (character_type): Ditto.
5383 (string_type): Ditto.
5384 (boolean_type): Ditto.
5385 (structured_type): Ditto.
5386 (lang_bool_type): Ditto.
5387 (binop_type_check): Ditto.
5388 * language.h (_LANG_chill): Ditto.
5389 * dwarfread.c (set_cu_language): Ditto.
5390 * dwarfread.c (CHILL_PRODUCER): Ditto.
5391 * dwarfread.c (handle_producer): Ditto.
5392 * expression.h (enum exp_opcode): Ditto.
5393 * eval.c: Ditto for comments.
5394 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5395 * expprint.c (print_subexp): Ditto.
5396 (print_subexp): Ditto.
5397 * valops.c (value_cast): Ditto.
5398 (search_struct_field): Ditto.
5399 * value.h (COERCE_VARYING_ARRAY): Ditto.
5400 * symfile.c (init_filename_language_table): Ditto.
5401 (add_psymbol_with_dem_name_to_list): Ditto.
5402 * valarith.c (value_binop): Ditto.
5403 (value_neg): Ditto.
5404 * valops.c (value_slice): Ditto.
5405 * symtab.h (union language_specific): Ditto.
5406 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5407 (SYMBOL_DEMANGLED_NAME): Ditto.
5408 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5409 * defs.h (enum language): Ditto.
5410 * symtab.c (got_symtab): Ditto.
5411 * utils.c (fprintf_symbol_filtered): Ditto.
5412
5413 * ch-typeprint.c: Make file obsolete.
5414 * ch-valprint.c: Make file obsolete.
5415 * ch-lang.h: Make file obsolete.
5416 * ch-exp.c: Make file obsolete.
5417 * ch-lang.c: Make file obsolete.
5418
5419 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5420 CHILL_LIB.
5421 (TARGET_FLAGS_TO_PASS): Ditto.
5422 (CHILLFLAGS): Obsolete.
5423 (CHILL): Obsolete.
5424 (CHILL_FOR_TARGET): Obsolete.
5425 (CHILL_LIB): Obsolete.
5426 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5427 ch-valprint.c.
5428 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5429 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5430 ch-lang.o.
5431 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5432 targets.
5433
5434 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5435
5436 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5437 This does not change anything at the moment, but will be helpful
5438 later when full Ada support is integrated.
5439
5440 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5441
5442 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5443 help message.
5444
5445 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5446
5447 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5448 and save it in a local variable. Use variable in later test.
5449
5450 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5451
5452 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5453 test. (Thanks to Daniel Jacobowitz.)
5454
5455 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5456
5457 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5458 (mips_abi_strings): Add "n64".
5459 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5460
5461 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5462
5463 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5464 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5465
5466 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5467
5468 * utils.c (host_pointer_to_address, address_to_host_pointer):
5469 Use gdb_assert() instead of explicit call to internal_error().
5470
5471 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5472
5473 * Makefile.in (rs6000-nat.o): Update dependencies.
5474
5475 From Nicholas Duffek:
5476 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5477 (aix-thread.o): New rule.
5478 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5479 * config/powerpc/aix432.mh: New file.
5480
5481 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5482
5483 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5484 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5485 (fetch_core_registers, ppc_linux_supply_gregset)
5486 (ppc_linux_supply_fpregset): New functions.
5487 (ppc_linux_regset_core_fns): New.
5488 (_initialize_ppc_linux_tdep): Call add_core_fns.
5489 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5490 and ppc_linux_supply_gregset.
5491 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5492 (supply_fpregset): Call ppc_linux_supply_fpregset.
5493 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5494 corelow.o.
5495 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5496
5497 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5498
5499 * symtab.c (lookup_symbol): Demangle before lowercasing.
5500
5501 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5502
5503 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5504 declaration.
5505 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5506 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5507 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5508 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5509 "gdb_string.h".
5510 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5511 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5512 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5513 (avr-tdep.o, mon960-rom.o): Ditto.
5514 (aout_stabs_gnu_h): Define.
5515 (symtab_h): Remove $(gdb_obstack_h).
5516
5517 2002-07-30 Jim Blandy <jimb@redhat.com>
5518
5519 Patch from David Carlton <carlton@math.stanford.edu>:
5520 * gdbinit.in: Move the `dir' commands that add GDB's own source
5521 directory to the search path to the end, so that the `gdb' source
5522 directory will be searched first.
5523
5524 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5525
5526 * gdb_obstack.h: New file.
5527 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5528 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5529 * objfiles.h: Include "gdb_obstack.h".
5530 * Makefile.in (gdb_obstack_h): Define.
5531 (symtab_h): Add $(gdb_obstack_h).
5532 (objfiles_h): Add $(gdb_obstack_h).
5533
5534 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5535 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5536 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5537 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5538 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5539 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5540 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5541 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5542
5543 * Makefile.in (bcache.o): Update dependencies.
5544 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5545 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5546 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5547 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5548 (stabsread.o, symfile.o, symmisc.o): Ditto.
5549 (symtab.o, typeprint.o, macroexp.o): Ditto.
5550 (macrotab.o, mdebugread.o): Ditto.
5551 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5552 (coff_ecoff_h, aout_aout64_h): Define.
5553 (aout_stabs_gnu_h, libaout_h): Define.
5554
5555 2002-07-29 Andrew Cagney <cagney@redhat.com>
5556
5557 * regcache.c (struct regcache_descr): Rename nr_registers to
5558 nr_cooked_registers. Revise comments describing the structure
5559 member fields.
5560 (init_regcache_descr): Update.
5561 (init_legacy_regcache_descr): Update.
5562 (read_register_gen, write_register_gen): When a cooked register in
5563 the raw register range, directly access the value from the raw
5564 register cache.
5565
5566 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5567
5568 * z8k-tdep.c: Do not include "obstack.h".
5569 * h8300-tdep.c, h8500-tdep.c: Ditto.
5570 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5571 * valprint.c, v850-tdep.c: Ditto.
5572 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5573 * mn10200-tdep.c: Ditto.
5574
5575 * Makefile.in (z8k-tdep.o): Update dependencies.
5576 (m68hc11-tdep.o, valprint.o): Ditto.
5577 (v850-tdep.o, d10v-tdep.o): Ditto.
5578 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5579 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5580 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5581 (sh_opc_h, gdb_sim_sh_h): Define.
5582 (elf_sh_h, elf_bfd_h): Define.
5583 (opcode_m68hc11_h): Define.
5584 (OPCODES_SRC, OPCODES_DIR): define.
5585 (OPCODES): Use $(OPCODES_DIR).
5586 (gdb_sim_d10v_h): Rename sim_d10v_h.
5587 (gdb_sim_arm_h): Rename sim_arm_h.
5588
5589 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5590
5591 * utils.c (host_pointer_to_address, address_to_host_pointer):
5592 Change internal_error() message to indicate function responsible
5593 for the error.
5594
5595 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5596
5597 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5598 calls to local_hex_string_custom().
5599
5600 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5601
5602 * irix5-nat.c: Move IRIX shared library support from here...
5603 * solib-irix.c: ...to here. Revised substantially to work with
5604 generic solib framework.
5605
5606 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5607 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5608 * mips-irix-tdep.c: New file.
5609
5610 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5611 (mips-irix-tdep.o, solib-irix.o): New rules.
5612 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5613 solib-irix.o.
5614 * config/mips/irix6.mt (TDEPFILES): Likewise.
5615 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5616
5617 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5618
5619 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5620 disabled (via ``#if 0'') includes.
5621
5622 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5623
5624 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5625 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5626 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5627 Add support for the fpscr register.
5628 * rs6000-nat.c (regmap, fetch_inferior_registers)
5629 (store_inferior_registers, fetch_core_registers): Likewise.
5630
5631 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5632
5633 * rs6000-nat.c (language.h): Include.
5634 (special_regs): Delete this array.
5635 (regmap): New function.
5636 (fetch_register, store_register): Use regmap() to map gdb
5637 register numbers to ptrace register numbers. Also, use
5638 outputs from regmap() to make decisions regarding type of
5639 ptrace() call to make. In particular, don't compare against
5640 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5641 (fetch_inferior_registers, store_inferior_registers): Where
5642 possible, obtain register numbers from tdep struct. Don't
5643 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5644 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5645 (LAST_UISA_SP_REGNUM): Delete.
5646
5647 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5648
5649 * rs6000-nat.c (ppc-tdep.h): Include.
5650 (fetch_registers, store_register, fetch_core_registers): Don't
5651 access registers[] directly. Instead, use supply_register() or
5652 regcache_collect() as appropriate.
5653 (find_toc_address): Format hex address with local_hex_string().
5654
5655 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5656
5657 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5658 bfd/elf32-frv.c.
5659
5660 2002-07-24 Tom Tromey <tromey@redhat.com>
5661
5662 * jv-exp.y: Marked all strings with _().
5663 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5664 internal_error.
5665 (MethodInvocation, CastExpression, parse_number, yyerror,
5666 java_type_from_name, push_expression_name, yylex): Typo fixes.
5667
5668 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5669
5670 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5671 (tee_file_flush, tee_file_write, tee_file_fputs)
5672 (tee_file_isatty): New.
5673 * ui-file.h (tee_file_new): Add prototype.
5674
5675 2002-07-24 Aidan Skinner <aidan@velvet.net>
5676
5677 * ada-lang.c: Change k&r style function definitions to prototyped
5678 form.
5679 * ada-typeprint.c: Change k&r style function definitions to prototyped
5680 form.
5681 * ada-valprint.c: Change k&r style function definitions to prototyped
5682 form.
5683
5684 2002-07-24 Andrew Cagney <cagney@redhat.com>
5685
5686 * README: Remove reference to remote-bug.
5687 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5688 remote-bug.c.
5689 (m88k-nat.o): Delete rule.
5690 (m88k-tdep.o): Delete rule.
5691 (remote-bug.o): Delete rule.
5692 * MAINTAINERS: Mark as obsolete.
5693 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5694 * m88k-tdep.c: Make file obsolete.
5695 * config/m88k/m88k.mh: Ditto.
5696 * config/m88k/delta88v4.mh: Ditto.
5697 * config/m88k/delta88v4.mt: Ditto.
5698 * config/m88k/delta88.mt: Ditto.
5699 * config/m88k/delta88.mh: Ditto.
5700 * remote-bug.c: Ditto.
5701 * config/m88k/tm-delta88.h: Ditto.
5702 * config/m88k/nm-delta88v4.h: Ditto.
5703 * config/m88k/xm-delta88.h: Ditto.
5704 * config/m88k/xm-dgux.h: Ditto.
5705 * config/m88k/tm-m88k.h: Ditto.
5706 * config/m88k/nm-m88k.h: Ditto.
5707 * config/m88k/tm-delta88v4.h: Ditto.
5708 * m88k-nat.c: Ditto.
5709 * cxux-nat.c: Ditto.
5710 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5711 and m88*-*-* obsolete.
5712 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5713 m88*-*-* obsolete.
5714
5715 2002-07-24 Andrew Cagney <cagney@redhat.com>
5716
5717 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5718 constant. Same for local pointer variables.
5719 (extract_signed_integer): Ditto.
5720 * defs.h (extract_unsigned_integer): Update.
5721 (extract_signed_integer): Update.
5722
5723 2002-07-24 Andrew Cagney <cagney@redhat.com>
5724
5725 * regcache.c (regcache_raw_write): Change buf parameter to a
5726 constant void pointer.
5727 (regcache_raw_read): Change buf parameter to a void pointer.
5728 (legacy_write_register_gen): Change myaddr parameter a constant
5729 void pointer.
5730 (supply_register): Change val parameter to a const void pointer.
5731 * regcache.h (regcache_raw_write): Update declaration.
5732 (regcache_raw_read): Update declaration.
5733 (supply_register): Update declaration.
5734
5735 2002-07-24 Tom Tromey <tromey@redhat.com>
5736
5737 * defs.h (gdb_readline_wrapper): Declare.
5738 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5739 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5740 * top.c (gdb_readline_wrapper): New function.
5741 (command_line_input): Use it.
5742
5743 2002-07-24 Andrew Cagney <cagney@redhat.com>
5744
5745 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5746 regcache_read and regcache_write.
5747 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5748 * regcache.c: Update.
5749 * sh-tdep.c (sh64_push_arguments): Update comment.
5750 (sh_pseudo_register_read): Update.
5751 (sh_pseudo_register_write): Update.
5752 (sh4_register_read): Update.
5753 (sh4_register_write): Update.
5754 (sh64_pseudo_register_read): Update.
5755 (sh64_pseudo_register_write): Update.
5756 (sh64_register_read): Update.
5757 (sh64_register_write): Update.
5758 * i386-tdep.c (i386_extract_return_value): Update.
5759 (i386_extract_struct_value_address): Update.
5760 (i386_extract_return_value): Update.
5761 * blockframe.c (generic_read_register_dummy): Update.
5762 (generic_call_dummy_register_unwind): Update
5763 * infrun.c (write_inferior_status_register): Update.
5764
5765 2002-07-23 Jim Blandy <jimb@redhat.com>
5766
5767 * parser-defs.h (expression_context_pc): Make this extern.
5768 (Thanks to Michael Snyder.)
5769
5770 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5771
5772 GDB 5.2.1 released from 5.2 branch.
5773 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5774 * README: Update to mention 5.2.1.
5775
5776 2002-07-23 Mark Salter <msalter@redhat.com>
5777
5778 * remote.c (remote_read_bytes): Fix check for error.
5779
5780 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5781
5782 * aix-thread.c (language.h): Include.
5783 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5784 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5785 Print newlines at end of debug messages.
5786 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5787 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5788
5789 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5790
5791 * aix-thread.c (ppc-tdep.h): Include.
5792 (special_register_p): New function.
5793 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5794 (store_regs_user_thread): Use register number information from
5795 gdbarch_tdep struct instead of hardcoded offsets relative to
5796 FIRST_UISA_SP_REGNUM.
5797 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5798 special_register_p() instead of using FPLAST_REGNUM and
5799 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5800 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5801 will be MQ's register number.
5802
5803 2002-07-22 Michael Snyder <msnyder@redhat.com>
5804
5805 * aix-thread.c (ops): Rename to aix_thread_ops.
5806 (base_ops): Rename to base_target.
5807 (ops_attach): Rename to aix_thread_attach.
5808 (ops_detach): Rename to aix_thread_detach.
5809 (ops_resume): Rename to aix_thread_detach.
5810 (ops_wait): Rename to aix_thread_wait.
5811 (ops_kill): Rename to aix_thread_kill.
5812 (init_ops): Rename to init_aix_thread_ops.
5813 (ops_fetch_register): Rename to aix_thread_fetch_register.
5814 (ops_store_register): Rename to aix_thread_store_register.
5815 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5816 (ops_thread_alive): Rename to aix_thread_thread_alive.
5817 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5818 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5819 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5820 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5821 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5822 (store_regs_lib): Rename to store_regs_user_thread.
5823 (store_regs_kern): Rename to store_regs_kernel_thread.
5824
5825 2002-07-22 Michael Snyder <msnyder@redhat.com>
5826
5827 * aix-thread.c (ops_prepare_to_store): Eliminate.
5828 (init_ops): Don't initialize ops.prepare_to_store.
5829 (store_regs_kern): Pre-fetch register buffers from child,
5830 because some registers may not be in the cache. Copy
5831 regs from register cache only if they are cached.
5832 (store_regs_lib): Copy regs from register cache only
5833 if they are cached.
5834 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5835 fill_gprs64): Ditto.
5836
5837 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5838
5839 * aix-thread.c (gdb_assert.h): Include.
5840 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5841 register sizes (from register cache) match size of buffer holding
5842 register data.
5843 (fill_sprs32): Change parameter types to match those in the ptrace()
5844 buffer.
5845 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5846 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5847
5848 2002-07-22 Michael Snyder <msnyder@redhat.com>
5849
5850 * aix-thread.c (supply_sprs64): Cosmetic change.
5851 (supply_sprs32): Cosmetic change.
5852 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5853 (fill_sprs64): Use regcache_collect instead of read_register.
5854 (store_regs_lib): Use regcache_collect instead of
5855 read_register. Use fill_sprs32 instead of fill_sprs64,
5856 if debugging a 32-bit architecture.
5857 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5858 out of the register cache, instead of passing a pointer into
5859 the register cache directly to ptrace. Use regcache_collect
5860 insteaad of read_register.
5861 (ops_prepare_to_store): Use target_read_registers instead
5862 of read_register_bytes.
5863
5864 2002-07-20 Aidan Skinner <aidan@velvet.net>
5865
5866 * MAINTAINERS: Add self under write after approval.
5867
5868 2002-07-20 Aidan Skinner <aidan@velvet.net>
5869
5870 * ada-tasks.c: Change k&r style function definitions to prototyped
5871 form.
5872
5873 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5874
5875 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5876 * x86-64-tdep.c: Include "objfiles.h".
5877 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5878 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5879
5880 2002-07-17 Michal Ludvig <michal@suse.cz>
5881
5882 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5883 (update_context): Initialise cfa variable.
5884
5885 2002-07-17 Michael Snyder <msnyder@redhat.com>
5886
5887 * aix-thread.c: Shorten some long lines.
5888 Bring comments into line with code spec.
5889
5890 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5891
5892 * infrun.c: Re-indent using gdb_indent.sh.
5893
5894 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5895
5896 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5897 Leave the indentation temporarily untouched, to minimize the diffs.
5898
5899 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5900
5901 * stabsread.c: Make os9k sections of the code obsolete,
5902 for real this time.
5903 * stabsread.h: Make os9k sections of the code obsolete.
5904
5905 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5906
5907 * linux-low.c (regsets_store_inferior_registers): Add free()
5908 at the end of a loop to prevent memory leak.
5909 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5910 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5911 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5912 line a comment.
5913 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5914
5915 2002-07-17 Jim Blandy <jimb@redhat.com>
5916
5917 * macrocmd.c (info_macro_command): Remove newline from error
5918 message.
5919
5920 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5921
5922 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5923 (sh_gdbarch_init): Use it for sh-dsp.
5924
5925 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5926
5927 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5928 64-bit DWARF2 format.
5929
5930 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5931
5932 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5933 <sys/proc.h> when not available.
5934
5935 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5936
5937 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5938 * stabsread.c: Make os9k sections of the code obsolete.
5939 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5940 * config/i386/i386os9k.mt: Make file obsolete.
5941 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5942 (COMMON_OBS): Remove os9kread.o
5943 (SFILES): Remove os9kread.c.
5944 (os9kread.o, remote-os9k.o): Make target obsolete.
5945 * remote-os9k.c: Make file obsolete.
5946 * os9kread.c: Make file obsolete.
5947 * Makefile.in
5948
5949 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5950
5951 * NEWS: Mention that the FR30 has been made obsolete.
5952 * fr30-tdep.c: Make file obsolete.
5953 * config/fr30/tm-fr30.h: Ditto.
5954 * config/fr30/fr30.mt: Ditto.
5955 * configure.tgt: Make fr30-*-elf obsolete.
5956 * MAINTAINERS: Make fr30-elf obsolete.
5957
5958 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5959
5960 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5961 found is not inside a section.
5962
5963 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5964
5965 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5966 strerror().
5967 (pdc_realloc): Use xrealloc() instead of realloc().
5968
5969 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5970
5971 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5972 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5973 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5974 macros.
5975
5976 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5977
5978 * aix-thread.c (ptrace_check): Eliminate goto.
5979 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5980 problem.
5981
5982 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5983
5984 * aix-thread.c (gdbcmd.h): Include.
5985 (DEBUG, DBG, DBG2, dbg): Eliminate.
5986 (debug_aix_thread): New static global.
5987 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5988 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5989 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5990 invocations to DBG and DBG2 macros to test against
5991 ``debug_aix_thread'' and call fprintf_unfiltered().
5992 (_initialize_aix_thread): Add new command "set debug aix-thread".
5993
5994 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5995
5996 From Gerhard Tonn <TON@de.ibm.com>:
5997 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5998 instead of supply_register.
5999
6000 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6001
6002 * dwarf2cfi.c: Include "gdb_assert.h".
6003 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6004 non-NULL.
6005 (update_context): Do not use __func__. Add missing ``break''.
6006 (update_context): Do not use __func__.
6007
6008 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6009
6010 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6011 and its setting. Set gdbarch instruction printing functions
6012 directly. For non-rs6000 case use new function
6013 gdb_print_insn_powerpc.
6014 (gdb_print_insn_powerpc): New function.
6015
6016 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6017
6018 * NEWS: Mention that the d30v has been marked obsolete.
6019 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6020 * configure.tgt: Mark d30v-*-* as obsolete.
6021 * d30v-tdep.c: Mark file as obsolete.
6022 * config/d30v/d30v.mt: Ditto.
6023 * config/d30v/tm-d30v.h: Ditto.
6024
6025 2002-07-13 Aidan Skinner <aidan@velvet.net>
6026
6027 * ada-tasks.c (add_task_entry): replace calls to
6028 malloc() with xmalloc
6029 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6030
6031 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6032 ada_finish_decode_line_1, all_sals_for_line
6033 ada_breakpoint_rewrite): replace calls to free() with xfree()
6034
6035 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6036
6037 From Nicholas Duffek (with minor changes by Martin Hunt,
6038 Louis Hamilton, and Kevin Buettner):
6039 * aix-thread.c: New file.
6040
6041 2002-07-12 Petr Sorfa <petrs@caldera.com>
6042
6043 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6044 complaint for invalid attribute class or form.
6045 (read_func_scope): DW_AT_frame_base
6046 better handling of DW_AT_block*.
6047 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6048 better handling of DW_AT_block*.
6049 (read_common_block): DW_AT_location
6050 better handling of DW_AT_block*.
6051 (read_partial_die): DW_AT_location better handling
6052 of DW_AT_block*.
6053 (new_symbol): DW_AT_external better handling of
6054 DW_AT_block*. Proper initialization of variable
6055 "addr".
6056 (attr_form_is_block): New function that returns true
6057 if the attribute's form is of DW_FORM_block*.
6058
6059 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6060
6061 * valops.c (find_method_list): Remove comment about
6062 removed STATIC_MEMFUNCP argument.
6063 (value_find_oload_method_list): Likewise.
6064
6065 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6066
6067 From Nicholas Duffek:
6068 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6069 target_new_objfile_hook.
6070
6071 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6072
6073 From Nicholas Duffek:
6074 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6075 csect.
6076
6077 2002-07-12 Andrew Cagney <cagney@redhat.com>
6078
6079 * MAINTAINERS: Mention --enable-sim-build-warnings.
6080 (m68hc11-elf): Disable sim build warnings.
6081 (m32r-elf): Mark as broken obsolete candidate.
6082 (x86_64-linux-gnu): Mark as buildable with -Werror.
6083 (arm-elf): Change -w to ``,'' which enables warnings but not
6084 -Werror.
6085
6086 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6087
6088 * bcache.h: Update copyright.
6089 (struct bstring, struct bcache): Move definition to "bcache.c".
6090 Replaced by opaque declaration.
6091 (bcache_xfree): Replace free_bcache.
6092 (bcache_xmalloc, bcache_memory_used): Declare.
6093
6094 * bcache.c: Update copyright.
6095 (struct bstring, struct bcache): Moved to here from "bcache.h".
6096 Update comments.
6097 (bcache_xmalloc, bcache_memory_used): New functions.
6098 (bcache_xfree): Replace function free_bcache.
6099
6100 * Makefile.in (objfiles.o): Add $(bcache_h).
6101 (objfiles_h): Remove $(bcache_h).
6102 (symfile.o): Add $(bcache_h).
6103
6104 * symmisc.c: Update copyright.
6105 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6106 (print_objfile_statistics): Use bcache_memory_used.
6107
6108 * symfile.c: Include "bcache.h".
6109 (reread_symbols): Use bcache_xfree.
6110 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6111 (add_psymbol_to_list): Pass psymbol_cache by value.
6112 (add_psymbol_with_dem_name_to_list): Ditto.
6113
6114 * objfiles.h: Update copyright.
6115 (struct bcache): Declare opaque. Do not include "bcache.h".
6116 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6117 bcache'' pointers.
6118 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6119
6120 * objfiles.c: Include "bcache.h". Update copyright.
6121 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6122 macro_cache.
6123 (free_objfile): Use bcache_xfree.
6124
6125 2002-07-11 Grace Sainsbury <graces@redhat.com>
6126
6127 * monitor.c (monitor_fetch_register): Make name a constant.
6128 (monitor_store_register): Same.
6129
6130 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6131
6132 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6133 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6134 (finish_block) For non-function blocks, hash the symbol table. For
6135 function blocks, mark the symbol table as unhashed.
6136 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6137 (msymbol_hash_iw): Likewise.
6138 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6139 value.
6140 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6141 (lookup_minimal_symbol): Likewise for both.
6142 * symtab.h (struct block): Add `hashtable' flag. Comment the
6143 hashtable.
6144 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6145 (ALL_BLOCK_SYMBOLS): Update.
6146 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6147 (struct symbol): Add `hash_next' pointer.
6148 * symtab.c (lookup_block_symbol): Search using the hash table when
6149 possible.
6150 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6151 (search_symbols, find_addr_symbol): Likewise.
6152
6153 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6154 (read_dst_symtab): Likewise.
6155 * jv-lang.c (get_java_class_symtab): Likewise.
6156 * mdebugread.c: Include "gdb_assert.h".
6157 (shrink_block): Assert that the block being modified is not hashed.
6158 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6159 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6160 symbols.
6161 (dump_symtab): Recognize hashed blocks.
6162 * printcmd.c (print_frame_args): Assert that function blocks do not
6163 have hashed symbol tables.
6164 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6165 (fill_in_ada_prototype, debug_print_block): Likewise.
6166 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6167
6168 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6169
6170 * stack.c (print_frame): Use result of frame_address_in_block()
6171 instead of fi->pc when evaluating symbols.
6172 (backtrace_command_1): Ditto.
6173
6174 2002-07-11 Andrew Cagney <cagney@redhat.com>
6175
6176 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6177 Make static.
6178
6179 * arm-tdep.c (arm_register_name): Make return type constant.
6180
6181 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6182
6183 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6184 prototype.
6185 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6186 * s390-tdep.c (s390_fp_regnum): Ditto.
6187 (s390_read_fp): Ditto.
6188 (s390_pop_frame): Ditto.
6189 (_initialize_s390_tdep): Ditto.
6190 * remote.c (get_remote_state): Ditto.
6191 * procfs.c (mappingflags): Ditto.
6192 * memattr.c (_initialize_mem): Ditto.
6193 * mcore-tdep.c (mcore_pop_frame): Ditto.
6194 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6195 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6196 * language.c (set_case_str): Ditto.
6197 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6198 * frv-tdep.c (new_variant): Ditto.
6199 (frv_stopped_data_address): Ditto.
6200 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6201 (context_alloc): Ditto.
6202 (frame_state_alloc): Ditto.
6203 (unwind_tmp_obstack_init): Ditto.
6204 (unwind_tmp_obstack_free): Ditto.
6205 (cfi_read_fp): Ditto.
6206 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6207 (cris_pop_frame): Ditto.
6208 * c-lang.c (scanning_macro_expansion): Ditto.
6209 (finished_macro_expansion): Ditto.
6210 (c_preprocess_and_parse): Ditto.
6211 * gdbarch.sh: Ditto.
6212 * gdbarch.h, gdbarch.c: Regenerate.
6213 * config/mn10200/tm-mn10200.h: Adjust indentation.
6214 * target.c: Adjust indentation.
6215 * symtab.h: Adjust indentation.
6216 * stabsread.h: Adjust indentation.
6217 * remote-es.c: Adjust indentation.
6218 * os9kread.c: Adjust indentation.
6219
6220 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6221
6222 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6223 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6224
6225 2002-07-10 Grace Sainsbury <graces@redhat.com>
6226
6227 * NEWS: Mention m68k, mcore multi-arching.
6228 * MAINTAINERS: Change status of m68k, mcore to reflect
6229 multi-arching.
6230
6231 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6232
6233 * valops.c (find_overload_match): Free oload_syms.
6234
6235 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6236
6237 Define HAVE_SYS_PROC_H if sys/proc.h exists
6238 * configure.in: Add check for sys/proc.h
6239 * config.in: Regenerate.
6240 * configure: Regenerate.
6241
6242 2002-07-09 Grace Sainsbury <graces@redhat.com>
6243
6244 * config/m68k/tm-m68k.h: Remove macros wrapped in
6245 #if !GDB_MULTI_ARCH.
6246
6247 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6248
6249 * config.in, configure: Regenerate.
6250
6251 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6252
6253 * dwarf2cfi.c: Include "gcore.h".
6254 (execute_stack_op): Fix implementation of the
6255 DW_OP_deref and DW_OP_deref_size operators by letting do their
6256 lookup in the target.
6257
6258 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6259
6260 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6261 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6262 tdep->sc_sp_offset.
6263
6264 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6265
6266 Fix PR gdb/595, gdb/602
6267 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6268 Don't call value_cast, just read the vtable pointer; update comments
6269 to match.
6270
6271 2002-07-05 Grace Sainsbury <graces@redhat.com>
6272
6273 * config/mcore/tm-mcore.h: Remove file.
6274 * config/mcore/mcore.mt: Remove definition of TM_FILE
6275 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6276
6277 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6278
6279 * i386bsd-tdep.c: Include "gdb_string.h".
6280
6281 2002-07-04 Grace Sainsbury <graces@redhat.com>
6282
6283 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6284 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6285 mcore-tdep.
6286 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6287 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6288 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6289 (RETVAL_REGNUM): Move macros from tm-mcore.h
6290 (mcore_reg_struct_has_addr): New function.
6291 (mcore_gdbarch_init): Added initializations for the macros removed
6292 from tm-mcore.h.
6293
6294 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6295
6296 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6297 traditonal string branding within the ELF header.
6298
6299 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6300
6301 * symtab.c (remove_params): New function.
6302 (make_symbol_overload_list): Use it instead of cplus_demangle.
6303 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6304
6305 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6306
6307 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6308
6309 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6310 New variables.
6311 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6312 and tdep->sigtramp_end.
6313 * i386obsd-nat.c: New file.
6314 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6315
6316 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6317 Don't call get_current_frame().
6318
6319 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6320
6321 * i386-nat.c (child_post_startup_inferior): New function
6322 calling i386_cleanup_dregs if
6323 I386_USE_GENERIC_WATCHPOINTS is defined.
6324 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6325 conditional to acknowledge that i386-nat.c has its
6326 own child_post_startup_inferior function.
6327
6328 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6329
6330 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6331 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6332 instead of MAX_REGISTER_RAW_SIZE.
6333 (i386_extract_return_value, i386_extract_struct_value_address):
6334 Convert to use regcache.
6335 (i386_gdbarch_init): Set max_register_raw_size and
6336 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6337 Set extract_return_value and extract_struct_value_address instead
6338 of their deprecated variants.
6339
6340 Convert i386 target to generic dummy frames.
6341 * i386-tdep.c: Include "symfile.h".
6342 (i386_frameless_signal_p): Consider a function to be frameless if
6343 the pc points at the first instruction of the function.
6344 (i386_frame_chain): Handle (generic) call dummies.
6345 (i386_frame_saved_pc): Likewise.
6346 (i386_frame_init_saved_regs): Remove code dealing with call
6347 dummies on the stack.
6348 (i386_push_dummy_frame): Removed.
6349 (i386_call_dummy_words): Removed.
6350 (i386_fix_call_dummy): Removed.
6351 (i386_push_return_address): New function.
6352 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6353 parameter, and don't call get_current_frame.
6354 (i386_pop_frame): New function.
6355 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6356 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6357 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6358 call_dummy_length to 0, set call_dummy_words to NULL, set
6359 sizeof_call_dummy_words to 0, set fix_call_dummy to
6360 generic_fix_call_dummy, set pc_in_call_dummy to
6361 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6362 generic_push_dummy_frame, set push_return_address to
6363 i386_push_return_address and set frame_chain_valid to
6364 generic_file_frame_chain_valid.
6365
6366 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6367
6368 * gdbarch.sh (struct regcache): Add opaque declaration.
6369 (EXTRACT_RETURN_VALUE): New architecture method.
6370 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6371 * gdbarch.h, gdbarch.c: Regenerate.
6372 * arch-utils.c (legacy_extract_return_value): New function.
6373 * arch-utils.h (legacy_extract_return_value): Declare.
6374 * values.c (value_being_returned): Re-enable code handling
6375 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6376 deprecated_grub_regcache_for_registers call to block handling
6377 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6378 (EXTRACT_RETURN_VALUE): Do not define.
6379
6380 2002-07-03 Grace Sainsbury <graces@redhat.com>
6381
6382 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6383 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6384 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6385 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6386 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6387 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6388 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6389 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6390 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6391 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6392 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6393 argument so the function fits the prototype in the architecture
6394 vector.
6395 (mcore_pop_frame): Remove argument so the function fits the
6396 prototype. Use get_current_frame instead of the argument.
6397 (mcore_push_arguments): Change type of struct_return so the
6398 function can be used in the architecture vector.
6399 (mcore_store_struct_return): Add.
6400 (mcore_frame_init_saved_regs): Add.
6401 (mcore_gdbarch_init): Add function calls to replace the macros
6402 removed from tm-mcore.h
6403
6404 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6405
6406 * infcmd.c (print_return_value): Remove compatibility code calling
6407 deprecated_grub_regcache_for_registers.
6408
6409 * values.c: Include "regcache.h".
6410 (value_being_returned): Update. Use
6411 deprecated_grub_regcache_for_registers to extract the register
6412 buffer address.
6413 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6414 ``struct regcache''.
6415 * Makefile.in (values.o): Add dependency on $(regcache_h).
6416
6417 * inferior.h (run_stack_dummy): Change type of second parameter to
6418 a ``struct regcache''.
6419 * valops.c (hand_function_call): Change type of retbuf to ``struct
6420 regcache''. Allocate using regcache_xmalloc, clean using
6421 make_cleanup_regcache_xfree.
6422 * infcmd.c (run_stack_dummy): Update. Use
6423 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6424
6425 * regcache.c (do_regcache_xfree): New function.
6426 (make_cleanup_regcache_xfree): New function.
6427 * regcache.h (make_cleanup_regcache_xfree): Declare.
6428
6429 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6430
6431 * event-top.c (command_line_handler): Don't read past
6432 beginning of buffer.
6433
6434 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6435
6436 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6437 struct frame_id.
6438 (varobj_create): Store frame_id for root.
6439 (varobj_gen_name): Use xasprintf.
6440 (varobj_update): Save and restore frame using get_frame_id() and
6441 frame_find_by_id().
6442 (create_child): Use xasprintf.
6443 (new_root_variable): Initialize frame_id.
6444 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6445 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6446 to prevent memory leak.
6447
6448 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6449
6450 * valops.c (hand_function_call): Move declaration of retbuf to
6451 start of function, allocate using malloc, add a cleanup but before
6452 the inf_status cleanup, cleanup the buffer. Rename local variable
6453 old_chain to inf_status_cleanup.
6454
6455 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6456
6457 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6458
6459 * cli/cli-decode.c (cmd_func_p): New function.
6460 (cmd_func): New function.
6461
6462 * command.h: Add cmd_func() and cmd_func_p().
6463
6464 2002-07-03 Grace Sainsbury <graces@redhat.com>
6465
6466 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6467 (REGISTER_SIZE): Remove.
6468 (MAX_REGISTER_RAW_SIZE): Remove.
6469 (REGISTER_VIRTUAL_TYPE): Remove.
6470 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6471 (REGISTER_NAME): Remove.
6472 (USE_GENERIC_DUMMY_FRAMES): Remove.
6473 (CALL_DUMMY): Remove.
6474 (CALL_DUMMY_START_OFFSET): Remove.
6475 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6476 (CALL_DUMMY_LOCATION): Remove.
6477 (FIX_CALL_DUMMY): Remove.
6478 (CALL_DUMMY_ADDRESS): Remove.
6479 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6480 (SAVE_DUMMY_FRAME_TOS): Remove.
6481 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6482 (mcore_register_virtual_type): New function.
6483 (mcore_register_byte): New function.
6484 (mcore_register_size): New function.
6485 (mcore_register_name): New function.
6486 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6487 macros removed from tm-mcore.h.
6488 (mcore_dump_tdep): Add.
6489 (_initialize_mcore_tdep): Add gdbarch_register call.
6490
6491 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6492
6493 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6494 frameless_look_for_prologue, such that we actually call this
6495 function.
6496
6497 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6498
6499 * frame.h (frame_address_in_block): New function.
6500
6501 * blockframe.c (frame_address_in_block): New function extracted
6502 from get_frame_block().
6503 (get_frame_block): Use frame_address_in_block().
6504 (block_innermost_frame): Use frame_address_in_block() to match
6505 the frame pc address against the block boundaries rather than
6506 the frame pc directly. This prevents a failure when a frame pc
6507 is actually a return-address pointing immediately after the end
6508 of the given block.
6509
6510 2002-07-02 Grace Sainsbury <graces@redhat.com>
6511
6512 * MAINTAINERS: Add self under write after approval.
6513
6514 2002-07-02 Grace Sainsbury <graces@redhat.com>
6515
6516 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6517 used in architecture vector. The default is
6518 m68k_local_breakpoint_from_pc.
6519 (m68k_local_breakpoint_from_pc): Add.
6520 (enum): Add register numbers from tm-m68k.h.
6521 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6522 vector.
6523 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6524 GDB_MULTI_ARCH_PARTIAL.
6525 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6526 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6527 m68k-tdep.c.
6528 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6529 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6530 to enum in m68k-tdep.c
6531
6532 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6533
6534 * solib-osf.c (open_map): Compute the list of shared libraries
6535 loaded by the inferior, rather than the list of libraries loaded
6536 by GDB itself. Otherwise, GDB ends up reading the symbols from
6537 the wrong shared libraries...
6538
6539 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6540
6541 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6542 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6543 macros.
6544 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6545 Remove functions.
6546 (FRAMELESS_SIGNAL): Remove function.
6547 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6548 i386_linux_saved_pc_after_call): Removed.
6549 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6550 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6551 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6552
6553 * i386-tdep.c (i386_frameless_signal_p): New function.
6554 (i386_frame_chain): Deal with frameless signals.
6555 (i386_sigtramp_saved_sp): New function.
6556 (i386_frame_saved_pc): Deal with frameless signals.
6557 (i386_saved_pc_after_call): Make sure the correct value is
6558 returned just after entry into a sigtramp.
6559 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6560 i386fbsd4_sc_sp_offset): New variables.
6561 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6562 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6563 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6564 similiar to what we already did for sc_pc_offset.
6565 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6566 tdep->sc_sp_offset.
6567
6568 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6569
6570 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6571
6572 * config/i386/tm-x86-64linux.h: New.
6573 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6574 definitions.
6575 * config/i386/nm-x86-64.h: Rename to ...
6576 * config/i386/nm-x86-64linux.h: ... this one.
6577 * config/i386/x86-64linux.mh: Reflect the above change.
6578
6579 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6580
6581 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6582 with sigcontext_addr. Add sc_sp_offset.
6583 (i386bsd_sigtramp_saved_pc): Remove prototype.
6584 (i386bsd_sicontext_addr): Add prototype.
6585 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6586 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6587 (i386_svr4_sigtramp_saved_pc): Removed.
6588 (i386_svr4_sigcontext_addr): New function.
6589 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6590 Initialize tdep->sigcontext_addr instead. Initialize
6591 tdep->sc_pc_offset and tdep->sc_sp_offset.
6592 (i386_gdbarch_init): Likewise.
6593 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6594 any more.
6595 (i386bsd_sigtramp_saved_pc): Remove function.
6596 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6597 Initialize tdep->sigcontext_addr instead. Initialize
6598 tdep->sc_pc_offset.
6599 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6600 of tdep->sigtramp_saved_pc.
6601 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6602 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6603 instead.
6604
6605 * i386-tdep.c (i386_frameless_function_invocation,
6606 i386_frame_num_args, i386_frame_init_saved_regs,
6607 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6608 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6609 i386_extract_return_value, i386_store_return_value,
6610 i386_extract_struct_value_address, i386_register_virtual_type,
6611 i386_register_convertible, i386_register_convert_to_virtual,
6612 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6613 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6614 static.
6615
6616 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6617
6618 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6619
6620 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6621 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6622 this macro. Include "value.h".
6623
6624 2002-06-30 Aidan Skinner <aidan@velvet.net>
6625
6626 * ada-exp.tab.c: remove as it's a generated file
6627 * ada-lex.c: remove as it's a generated file
6628
6629 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6630
6631 * config/i386/tm-i386.h (struct frame_info, struct
6632 frame_saved_regs, struct value, struct type): Remove forward
6633 declarations.
6634
6635 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6636 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6637 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6638 (FILL_FPXREGSET): Define.
6639
6640 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6641
6642 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6643 i[3456]86-*-netbsd* case.
6644 * config/i386/tm-obsd.h: Removed.
6645 * config/i386/obsd.mt: Removed.
6646 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6647 core-aout.o.
6648 (MH_CFLAGS): Add -DYYDEBUG=0.
6649
6650 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6651 i386nbsd_sc_pc_offset on OpenBSD too.
6652
6653 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6654 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6655 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6656 define.
6657 * i386bsd-tdep.c: Include "arch-utils.h".
6658 (i386bsd_aout_in_solib_call_trampoline): New function.
6659 (i386bsd_init_abi): Set in_solib_call_trampoline to
6660 i386bsd_aout_in_solib_call_trampoline.
6661 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6662 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6663
6664 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6665
6666 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6667 (struct obstack, struct bcache): Add opaque declarations.
6668 * Makefile.in (macrotab_h): Update
6669
6670 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6671
6672 * blockframe.c (generic_find_dummy_frame): Change return type to
6673 ``struct regcache''.
6674 (struct dummy_frame): Replace field ``registers'' with regcache, a
6675 struct regcache object.
6676 (generic_find_dummy_frame): Update.
6677 (generic_push_dummy_frame): Update. Use regcache_xfree,
6678 regcache_xmalloc and regcache_cpy.
6679 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6680 regcache_xfree.
6681 (deprecated_generic_find_dummy_frame): Update.
6682 (generic_read_register_dummy): Update. Use
6683 regcache_read_as_address.
6684 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6685 (generic_get_saved_register): Update. Use regcache_read.
6686
6687 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6688
6689 * Makefile.in (objfiles_h): Add $(bcache_h).
6690 * objfiles.h: Include "bcache.h".
6691
6692 * Makefile.in (symtab_h): Remove $(bcache_h).
6693 * symtab.h: Do not include "bcache.h".
6694
6695 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6696
6697 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6698 generic_func_frame_chain_valid.
6699
6700 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6701
6702 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6703 * config/i386/tm-fbsd.h: Likewise.
6704
6705 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6706
6707 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6708 generic_unwind_get_saved_register.
6709
6710 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6711
6712 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6713 * regcache.c (supply_register): Add missing argument to
6714 register_buffer call.
6715
6716 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6717
6718 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6719 Solaris /bin/grep does not not like it. From Peter Schauer.
6720
6721 2002-06-26 Tom Tromey <tromey@redhat.com>
6722
6723 * command.h (add_setshow_cmd): Declare.
6724 (add_setshow_cmd_full): Declare.
6725 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6726 returns void. Use add_setshow_cmd_full.
6727 (add_setshow_cmd_full): New function.
6728 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6729 (add_setshow_boolean_cmd): Likewise.
6730
6731 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6732
6733 * config/vax/tm-vax.h: Protect from multiple inclusion.
6734 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6735 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6736 * config/vax/tm-vaxbsd.h: ...here. New file.
6737 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6738
6739 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6740
6741 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6742 (BELIEVE_PCC_PROMOTION): Remove.
6743 (AP_REGNUM): Move to...
6744 * config/vax/nm-vax.h: ...here.
6745 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6746 (vax_breakpoint_from_pc): New function.
6747 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6748 and gdbarch_believe_pcc_promotion.
6749
6750 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6751
6752 * Makefile.in (vax_tdep_h): Define.
6753 (vax-tdep.o): Use $(vax_tdep_h).
6754 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6755 (vax_dump_tdep): New function.
6756 (_initialize_vax_tdep): Register vax_dump_tdep.
6757 * vax-tdep.h: Include osabi.h.
6758 (struct gdbarch_tdep): New.
6759
6760 2002-06-26 Andrew Cagney <cagney@redhat.com>
6761
6762 * frame.h (deprecated_generic_find_dummy_frame): Rename
6763 generic_find_dummy_frame.
6764 * blockframe.c (generic_find_dummy_frame): Make static.
6765 (deprecated_generic_find_dummy_frame): New function.
6766 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6767 generic_find_dummy_frame with deprecated_find_dummy_frame.
6768 (sh64_nofp_frame_init_saved_regs): Ditto.
6769 (sh_fp_frame_init_saved_regs): Ditto.
6770 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6771 (s390_frame_chain): Ditto.
6772 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6773
6774 2002-06-26 Grace Sainsbury <graces@redhat.com>
6775
6776 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6777 gdbarch vector are at the top.
6778 (NUM_REGS): Remove.
6779 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6780 (FRAME_ARGS_ADDRESS): Remove.
6781 (FRAME_LOCALS_ADDRESS): Remove.
6782 (FRAME_NUM_ARGS): Remove.
6783 (FRAME_ARGS_SKIP): Remove.
6784 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6785 (m68k_gdbarch_init): Add gdbarch initializations for macros
6786 undefined in tm-m68k.h
6787
6788 2002-06-26 Grace Sainsbury <graces@redhat.com>
6789
6790 * monitor.h: Add the function regname to monitor_ops
6791 structure. This way NUM_REGS does not have to be a constant.
6792 * monitor.c (monitor_fetch_register): Added support for regname
6793 function. The function is called if the array regnames is NULL.
6794 (monitor_store_register): Same.
6795 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6796 regnames array.
6797 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6798 cpu32bug_cmds.regname to point to new function.
6799 * abug-rom.c (abug_regname): Same as above.
6800 (init_abug_cmds): Same.
6801 * dbug-rom.c (dbug_regname): Same as above.
6802 (init_dbug_cmds): Same.
6803 * remote-est.c (est_regname): Same.
6804 (init_est_cmds): Same.
6805 * rom68k-rom.c (rom68k_regname): Same.
6806 (init_rom68k_cmds): Same.
6807
6808 2002-06-25 Tom Tromey <tromey@redhat.com>
6809
6810 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6811
6812 2002-06-25 Andrew Cagney <cagney@redhat.com>
6813
6814 * infrun.c (stop_registers): Change variable's type to ``struct
6815 regcache'''.
6816 (xmalloc_inferior_status): Delete function.
6817 (free_inferior_status): Delete function.
6818 (normal_stop): Use regcache_cpy.
6819 (struct inferior_status): Change type of fields ``stop_registers''
6820 and ``registers'' to ``struct regcache''.
6821 (write_inferior_status_register): Use regcache_write.
6822 (save_inferior_status): Instead of calling
6823 xmalloc_inferior_status, allocate the inf_status buffer directly.
6824 Use regcache_dup_no_passthrough and regcache_dup to save the
6825 buffers.
6826 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6827 Replace the stop_registers regcache instead of overriding it. Use
6828 regcache_xfree. Instead of calling free_inferior_status, xfree
6829 the buffer directly.
6830 (discard_inferior_status): Use regcache_xfree. Instead of calling
6831 free_inferior_status, xfree the buffer directly.
6832 (build_infrun): Use regcache_xmalloc.
6833 (_initialize_infrun): Delete redundant call to build_infrun.
6834
6835 * Makefile.in (infcmd.o): Add $(regcache_h).
6836
6837 * infcmd.c: Include "regcache.h".
6838 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6839 obtain the address of `stop_registers' register buffer.
6840 (print_return_value): Ditto.
6841
6842 * inferior.h (struct regcache): Add opaque declaration.
6843 (stop_registers): Change variable's declared type to ``struct
6844 regcache''.
6845
6846 2002-06-24 Tom Tromey <tromey@redhat.com>
6847
6848 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6849 * target.c (initialize_targets): Fixed typo in
6850 trust-readonly-sections `show' documentation.
6851
6852 * main.c: Marked all strings with _().
6853
6854 2002-06-24 Don Howard <dhoward@redhat.com>
6855
6856 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6857 that means max CORE_ADDR+1.
6858 (lookup_mem_region): Ditto.
6859 (mem_info_command): Ditto.
6860
6861 2002-06-24 Grace Sainsbury <graces@redhat.com>
6862
6863 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6864 (REGISTER_BYTES_OK): Remove.
6865 (REGISTER_BYTES): Remove.
6866 (STORE_STRUCT_RETURN): Remove.
6867 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6868 (STORE_RETURN_VALUE): Remove.
6869 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6870 (FRAME_CHAIN): Remove.
6871 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6872 (FRAME_SAVED_PC): Remove.
6873 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6874 (m68k_store_struct_return): Add.
6875 (m68k_deprecated_extract_return_value): Add.
6876 (m68k_deprecated_extract_struct_value_address): Add.
6877 (m68k_store_return_value): Add.
6878 (m68k_frame_chain): Add.
6879 (m68k_frameless_function_invocation): Add.
6880 (m68k_frame_saved_pc): Add.
6881 (m68k_gdbarch_init): added set_gdbarch calls for new
6882 functions and deleted macros.
6883
6884 2002-06-23 Tom Tromey <tromey@redhat.com>
6885
6886 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6887 (ALLDEPFILES): Likewise.
6888 (udiheaders): Removed.
6889 (udip2soc.o): Likewise.
6890 (udi2go32.o): Likewise.
6891 (udr.o): Likewise.
6892 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6893
6894 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6895
6896 * infrun.c (_initialize_infrun): Delete unnecessary call to
6897 build_infrun.
6898
6899 * regcache.h: Update comments describing the regcache_cpy family
6900 of functions.
6901 (regcache_save, regcache_restore): Delete declaration.
6902 (regcache_save_no_passthrough): Delete declaration.
6903 (regcache_restore_no_passthrough): Delete declaration.
6904 * regcache.c (regcache_save): Delete function.
6905 (regcache_save_no_passthrough): Delete function.
6906 (regcache_restore): Delete function.
6907 (regcache_restore_no_passthrough): Delete function.
6908
6909 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6910
6911 * config/m68k/tm-m68k.h: Fix typo.
6912 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6913 (m68k_frame_init_saved_regs): Declare.
6914
6915 2002-06-21 Jim Blandy <jimb@redhat.com>
6916
6917 Remove some vestiges of Harris 88k support.
6918 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6919 register numbering quirk.
6920 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6921 odd symbols occurring in Harris 88k ELF targets.
6922
6923 2002-06-21 Tom Tromey <tromey@redhat.com>
6924
6925 * gdb_locale.h: New file.
6926 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6927 (defs_h): Added gdb_locale.h.
6928 * configure, config.in: Rebuilt.
6929 * configure.in (PACKAGE): Define.
6930 * defs.h: Include gdb_locale.h.
6931 * main.c (captured_main): Call setlocale, bindtextdomain,
6932 textdomain.
6933
6934 2002-06-21 Dave Brolley <brolley@redhat.com>
6935
6936 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6937 * config/frv/frv.mt: New file.
6938 * config/frv/tm-frv.h: New file.
6939 * configure.tgt: Support frv-*-*.
6940 * Makefile.in (frv-tdep.o): New target.
6941 * frv-tdep.c: New file.
6942 * NEWS: Mention frv.
6943
6944 2002-06-21 Dave Brolley <brolley@redhat.com>
6945
6946 * MAINTAINERS: Add self to "Write After Approval" list.
6947
6948 2002-06-21 Grace Sainsbury <graces@redhat.com>
6949
6950 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6951 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6952 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6953 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6954 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6955
6956 * m68k-tdep.c: Include arch-utils.h
6957 (m68k_register_raw_size): Add.
6958 (m68k_register_virtual_size): Add.
6959 (m68k_register_virtual_type): Add.
6960 (m68k_register_name): Add.
6961 (m68k_stack_align): Add.
6962 (m68k_register_byte): Add.
6963 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6964 tm-m68k.h.
6965
6966 2002-06-21 Grace Sainsbury <graces@redhat.com>
6967
6968 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6969 m68k_find_saved_regs.
6970 (m68k_pop_frame): Removed saved_regs structure, and replaced
6971 references to it with frame->saved_regs.
6972 (m68k_gdbarch_init): Added function calls to initialize the
6973 gdbarch structure.
6974 (m68k_fix_call_dummy): Add.
6975 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6976 (CALL_DUMMY): Remove.
6977 (CALL_DUMMY_LENGTH): Remove.
6978 (CALL_DUMMY_START_OFFSET): Remove.
6979 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6980 (FIX_CALL_DUMMY): Remove.
6981 (PUSH_DUMMY_FRAME): Remove.
6982 (POP_FRAME): Remove.
6983
6984 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6985
6986 * parse.c (parse_fprintf): New function used to avoid calls to
6987 fprintf in bison parser generated debug code.
6988 * parser-defs.h: Declaration of new parse_fprintf function.
6989 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6990 Set YYDEBUG to 1 by default.
6991 Set YYFPRINTF as parse_fprintf.
6992
6993 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6994
6995 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6996 encoding anymore.
6997 (pointer_encoding, enum ptr_encoding): New.
6998 (execute_cfa_program): Take care about pointer encoding.
6999 (dwarf2_build_frame_info): Only call parse_frame_info for
7000 .debug_frame and .eh_frame.
7001 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7002 fixed augmentation handling, added relative addressing,
7003 ignore duplicate FDEs. Added comments.
7004 * dwarf2cfi.c: Reindented.
7005
7006 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7007
7008 * event-top.c (command_handler): Don't use space_at_cmd_start
7009 unless there is sbrk() on the host. Assign time and space data
7010 to union fields of the appropriate length.
7011
7012 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7013
7014 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7015 x86_64_register_name. Return type changed to 'const char *'.
7016 (x86_64_register_name2nr): Rename to x86_64_register_number.
7017 (x86_64_gdbarch_init): Update to reflect the change.
7018 * x86-64-tdep.h: Ditto.
7019 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7020 (supply_fpregset): Ditto.
7021
7022 2002-06-19 Andrew Cagney <cagney@redhat.com>
7023
7024 * regcache.h: Update copyright.
7025 (struct regcache, struct gdbarch): Add opaque declarations.
7026 (current_regcache): Declare global variable.
7027 (regcache_read, regcache_write): Add gdbarch parameter.
7028 (regcache_save, regcache_save_no_passthrough)
7029 (regcache_restore, regcache_restore_no_passthrough)
7030 (regcache_dup, regcache_dup_no_passthrough)
7031 (regcache_cpy, regcache_cpy_no_passthrough)
7032 (deprecated_grub_regcache_for_registers)
7033 (deprecated_grub_regcache_for_register_valid)
7034 (regcache_valid_p): Add function declarations.
7035
7036 * regcache.c: Update copyright.
7037 (regcache_descr_handle): New global variable.
7038 (struct regcache_descr): Define.
7039 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7040 (regcache_descr, xfree_regcache_descr): New functions.
7041 (struct regcache): Define.
7042 (regcache_xmalloc, regcache_xfree): New functions.
7043 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7044 (regcache_dup, regcache_dup_no_passthrough): New functions.
7045 (regcache_valid_p, regcache_read_as_address): New functions.
7046 (deprecated_grub_regcache_for_registers): New function.
7047 (deprecated_grub_regcache_for_register_valid): New function.
7048 (current_regcache): New global variable.
7049 (register_buffer): Add regcache parameter. Update calls.
7050 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7051 (read_register_gen, write_register_gen): Update register_buffer
7052 call. Test for legacy_p instead of gdbarch_register_read_p or
7053 gdbarch_register_write_p.
7054 (regcache_collect): Update register_buffer call.
7055 (build_regcache): Rewrite. Use deprecated grub functions.
7056 (regcache_save, regcache_save_no_passthrough): New functions.
7057 (regcache_restore, regcache_restore_no_passthrough): New
7058 functions.
7059 (_initialize_regcache): Create the regcache_data_handle. Swap
7060 current_regcache global variable.
7061
7062 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7063 parameter to regcache_read and regcache_write calls.
7064 (sh4_register_read): Ditto.
7065 (sh64_pseudo_register_read): Ditto.
7066 (sh64_register_read): Ditto.
7067 (sh_pseudo_register_write): Ditto.
7068 (sh4_register_write): Ditto.
7069 (sh64_pseudo_register_write): Ditto.
7070 (sh64_register_write): Ditto.
7071
7072 * defs.h (XCALLOC): Define.
7073
7074 2002-06-19 Grace Sainsbury <graces@redhat.com>
7075
7076 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7077 * m68k-tdep.c (m68k_gdbarch_init): Added.
7078 (m68k_dump_tdep): Added.
7079
7080 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7081
7082 * ada-lang.c (fill_in_ada_prototype): Update comment.
7083
7084 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7085
7086 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7087 MIPS_ABI_LAST.
7088 (mips_abi_string, mips_abi_strings): New.
7089 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7090 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7091 tdep->mips_abi_string. Honor mips_abi_string. Default to
7092 O32 if no ABI is found.
7093 (mips_dump_tdep): Use mips_abi_strings.
7094 (mips_abi_update): New function.
7095 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7096 ``set mips abi'' and ``show mips abi''. Check the size of
7097 mips_abi_strings.
7098
7099 2002-06-19 Andrew Cagney <cagney@redhat.com>
7100
7101 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7102 constant.
7103
7104 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7105
7106 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7107 current frame using only the first stack size adjustment. All
7108 subsequent size adjustments are not considered to be part of
7109 the "static" part of the current frame.
7110 Compute the address of the saved registers relative to the
7111 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7112 in use in this frame.
7113
7114 2002-06-18 Don Howard <dhoward@redhat.com>
7115
7116 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7117 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7118 suggesting this solution.
7119
7120 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7121
7122 * config/romp/xm-rtbsd.h: Delete file.
7123 * config/romp/rtbsd.mh: Delete file.
7124
7125 2002-06-18 Keith Seitz <keiths@redhat.com>
7126
7127 * breakpoint.c (condition_command): Post breakpoint_modify
7128 when a condition is added to an existing breakpoint.
7129 (commands_command): Likewise for commands.
7130 (set_ignore_count): Likewise for ignore counts.
7131 If no tty, do not simply return, still need to send event
7132 notification.
7133 (ignore_command): Only print a newline if the command came
7134 from a tty.
7135 Don't call breakpoints_changed, since this is now properly
7136 handled by set_ignore_count.
7137
7138 2002-06-18 Andrew Cagney <cagney@redhat.com>
7139
7140 * MAINTAINERS: Note that cris-elf target can be compiled with
7141 -Werror.
7142 * cris-tdep.c (cris_register_name): Make return type constant.
7143 (cris_breakpoint_from_pc): Ditto.
7144
7145 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7146
7147 * frame.h (struct frame_info): Change type of context to
7148 'struct context'.
7149
7150 2002-06-17 Andrew Cagney <cagney@redhat.com>
7151
7152 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7153 pointer.
7154 * gdbarch.h, gdbarch.c: Regenerate.
7155 * config/mips/tm-mips.h (mips_register_name): Update.
7156 * i386-tdep.h (i386_register_name): Update.
7157 * mips-tdep.c (mips_register_name): Update
7158 * alpha-tdep.c (alpha_register_name): Update.
7159 * arch-utils.c (legacy_register_name): Update.
7160 * arch-utils.h (legacy_register_name): Update.
7161 * avr-tdep.c (avr_register_name): Update.
7162 * ia64-tdep.c (ia64_register_name): Update.
7163 * i386-tdep.c (i386_register_name): Update.
7164 * sparc-tdep.c (sparc32_register_name): Update.
7165 (sparc64_register_name): Update.
7166 (sparclite_register_name): Update.
7167 (sparclet_register_name): Update.
7168 * sh-tdep.c (sh_generic_register_name): Update.
7169 (sh_sh_register_name): Update.
7170 (sh_sh3_register_name): Update.
7171 (sh_sh3e_register_name): Update.
7172 (sh_sh_dsp_register_name): Update.
7173 (sh_sh3_dsp_register_name): Update.
7174 (sh_sh4_register_name): Update.
7175 (sh_sh64_register_name): Update.
7176 * s390-tdep.c (s390_register_name): Update.
7177 * rs6000-tdep.c (rs6000_register_name): Update.
7178 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7179 (ns32k_register_name_32382): Update.
7180 * d10v-tdep.c (d10v_ts2_register_name): Update.
7181 (d10v_ts3_register_name): Update.
7182 * xstormy16-tdep.c (xstormy16_register_name): Update.
7183 * vax-tdep.c (vax_register_name): Update.
7184 * v850-tdep.c (v850_register_name): Update.
7185 * m68hc11-tdep.c (m68hc11_register_name): Update.
7186 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7187 (am33_register_name): Update.
7188
7189 2002-06-17 Grace Sainsbury <graces@redhat.com>
7190
7191 * m68k-tdep.c: Reindented.
7192
7193 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7194
7195 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7196 list of predefined types.
7197
7198 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7199
7200 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7201 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7202 REGISTER_CONVERT_TO_RAW): Remove defines.
7203 (i386_register_virtual_type, i386_register_convertible,
7204 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7205 Remove prototypes.
7206 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7207 macros mentioned above.
7208
7209 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7210 (i386lynx_saved_pc_after_call): Remove prototype.
7211 * i386ly-tdep.c: Include "i386-tdep.h".
7212 (i386lynx_saved_pc_after_call): Make static. Use
7213 read_memory_nobpt instead of read_memory. Use
7214 read_memory_unsigned_integer instead of read_memory_integer.
7215 (i386lynx_init_abi): New function.
7216 (i386lynx_coff_osabi_sniffer): New function.
7217 (_initialize_i386bsd_tdep): New function.
7218
7219 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7220 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7221 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7222 (i386_fix_call_dummy): Remove prototype.
7223 * i386-tdep.c (i386_call_dummy_words): New variable.
7224 (i386_gdbarch_init): Adjust for removal of the
7225 macros mentioned above.
7226
7227 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7228
7229 * command.h (add_setshow_auto_boolean_cmd): Replace
7230 add_set_auto_boolean_cmd.
7231 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7232 add_set_auto_boolean_cmd.
7233 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7234 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7235 mask-address'' command.
7236 (show_mask_address): Add cmd parameter.
7237 * remote.c (add_packet_config_cmd): Update. Change type of
7238 set_func and show_func to cmd_sfunc_ftype.
7239 (_initialize_remote): Update `set remote Z-packet'
7240 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7241 (show_remote_protocol_e_packet_cmd): Ditto.
7242 (show_remote_protocol_E_packet_cmd): Ditto.
7243 (show_remote_protocol_P_packet_cmd): Ditto.
7244 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7245 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7246 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7247 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7248 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7249 (show_remote_protocol_Z_packet_cmd): Ditto.
7250 (show_remote_protocol_binary_download_cmd): Ditto.
7251 (show_remote_cmd): Pass NULL to all of above.
7252
7253 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7254
7255 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7256 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7257 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7258 POP_FRAME): Remove defines.
7259 (i386_push_arguments, i386_store_struct_return,
7260 i386_extract_return_value, i386_store_return_value,
7261 i386_extract_struct_value_address, i386_push_dummy_frame,
7262 i386_pop_frame): Renove prototypes.
7263 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7264 macros mentioned above.
7265
7266 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7267
7268 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7269 add_set_boolean_cmd.
7270 (add_setshow_cmd): New function.
7271 * command.h (add_setshow_boolean_cmd): Replace
7272 add_set_boolean_cmd.
7273 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7274 and ``set rdiromatzero''.
7275 * maint.c (_initialize_maint_cmds): Update commented out code.
7276 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7277 * target.c (initialize_targets): Update `set
7278 trust-readonly-sections'.
7279 * remote.c (_initialize_remote): Update `set remotebreak'.
7280
7281 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7282
7283 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7284 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7285 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7286 fit into multi-arch framework.
7287 (i386_breakpoint_from_pc): New function.
7288 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7289 above.
7290
7291 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7292 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7293 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7294 (i386_frameless_function_invocation, i386_frame_num_args,
7295 i386_frame_init_saved_regs): Remove prototypes.
7296 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7297 macros mentioned above.
7298
7299 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7300
7301 * cli/cli-decode.c (set_cmd_cfunc): Update.
7302 (set_cmd_sfunc): Update.
7303 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7304 (set_cmd_sfunc, set_cmd_cfunc): Update.
7305 * cli/cli-decode.h: Update.
7306
7307 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7308
7309 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7310 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7311
7312 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7313
7314 * defs.h (auto_boolean): Declare enum.
7315 * command.h (cmd_auto_boolean): Delete enum.
7316 * mips-tdep.c (mask_address_var): Update.
7317 (mips_mask_address_p): Update.
7318 (show_mask_address): Update.
7319 * remote.c (struct packet_config): Update.
7320 (update_packet_config): Update.
7321 (show_packet_config_cmd): Update.
7322 (packet_ok): Update.
7323 (add_packet_config_cmd): Update.
7324 (_initialize_remote):
7325 * command.h: Update.
7326 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7327 (do_setshow_command): Update.
7328 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7329 * cli/cli-decode.h: Update.
7330
7331 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7332
7333 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7334 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7335 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7336 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7337 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7338 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7339
7340 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7341 list of DJGPP COFF targets.
7342
7343 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7344 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7345 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7346 (FP0_REGNUM): Remove define.
7347 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7348 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7349 (i386_register_virtual_size): Remove protoype.
7350 * i386-tdep.c (i386_register_virtual_size): Removed.
7351 (i386_extract_return_value, i386_store_return_value): Use
7352 FP0_REGNUM instead of NUM_FREGS to determine whether the
7353 floating-point registers are available.
7354 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7355 Adjust for removal of macros mentioned above.
7356
7357 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7358
7359 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7360 comments.
7361 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7362 Remove prototypes.
7363 (supply_gregset, fill_gregset): Remove use of register keyword and
7364 remove declaration for regmap. Use I386_NUM_GREGS instead of
7365 NUM_REGS and NUM_FREGS.
7366 (FPREGSET_FSAVE_OFFSET): Remove.
7367 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7368 NUM_FREGS to determine whether the floating-point registers are
7369 available.
7370
7371 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7372 gnu_store_registers): Replace usage of NUM_GREGS with
7373 I386_NUM_GREGS.
7374
7375 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7376 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7377 usage of NUM_GREGS with I386_NUM_GREGS.
7378
7379 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7380
7381 * i386bsd-nat.c: Include "i386-tdep.h".
7382 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7383 I386_NUM_GREGS.
7384
7385 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7386 and associated comment. They no longer make any sense, since we
7387 don't use this file anymore on Linux.
7388
7389 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7390 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7391 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7392 elements in these arrays.
7393 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7394 MAX_NUM_REGS.
7395
7396 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7397
7398 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7399 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7400
7401 2002-06-14 Andrew Cagney <cagney@redhat.com>
7402
7403 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7404 EXTRACT_RETURN_VALUE.
7405 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7406 EXTRACT_STRUCT_VALUE_ADDRESS.
7407 * gdbarch.h, gdbarch.c: Regenerate.
7408
7409 * values.c (value_being_returned): Handle
7410 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7411 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7412
7413 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7414 * arm-tdep.c (arm_gdbarch_init): Update.
7415 * avr-tdep.c (avr_gdbarch_init): Update.
7416 * cris-tdep.c (cris_gdbarch_init): Update.
7417 * d10v-tdep.c (d10v_gdbarch_init): Update.
7418 * ia64-tdep.c (ia64_gdbarch_init): Update.
7419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7420 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7421 * s390-tdep.c (s390_gdbarch_init): Update.
7422 * sh-tdep.c (sh_gdbarch_init): Update.
7423 * s390-tdep.c (s390_gdbarch_init): Update.
7424 * sparc-tdep.c (sparc_gdbarch_init): Update.
7425 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7426 * v850-tdep.c (v850_gdbarch_init): Update.
7427 * vax-tdep.c (vax_gdbarch_init): Update.
7428 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7430
7431 * config/arc/tm-arc.h: Update.
7432 * config/d30v/tm-d30v.h: Update.
7433 * config/fr30/tm-fr30.h: Update.
7434 * config/h8300/tm-h8300.h: Update.
7435 * config/h8500/tm-h8500.h: Update.
7436 * config/i386/tm-i386.h: Update.
7437 * config/i386/tm-ptx.h: Update.
7438 * config/i386/tm-symmetry.h: Update.
7439 * config/i960/tm-i960.h: Update.
7440 * config/m32r/tm-m32r.h: Update.
7441 * config/m68k/tm-delta68.h: Update.
7442 * config/m68k/tm-linux.h: Update.
7443 * config/m68k/tm-m68k.h: Update.
7444 * config/m88k/tm-m88k.h: Update.
7445 * config/mcore/tm-mcore.h: Update.
7446 * config/mips/tm-mips.h: Update.
7447 * config/mn10200/tm-mn10200.h: Update.
7448 * config/pa/tm-hppa.h: Update.
7449 * config/pa/tm-hppa64.h: Update.
7450 * config/sparc/tm-sp64.h: Update.
7451 * config/sparc/tm-sparc.h: Update.
7452 * config/sparc/tm-sparclet.h: Update.
7453 * config/z8k/tm-z8k.h: Update.
7454
7455 2002-06-14 Andrew Cagney <cagney@redhat.com>
7456
7457 * Makefile.in (i386_linux_tdep_h): Define.
7458 (i386_tdep_h, i387_tdep_h): Define.
7459 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7460 $(i386_tdep_h) and $(i387_tdep_h).
7461 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7462
7463 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7464
7465 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7466 Already covered by the default.
7467
7468 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7469 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7470 (i386_gdbarch_init): Initialize long_double_format and long_double
7471 bit.
7472
7473 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7474 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7475 Move these to ...
7476 * config/i386/i386sol2.mh: ... here.
7477 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7478 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7479 (SIGCONTEXT_PC_OFFSET): Remove define.
7480 (IN_SIGTRAMP): Remove define.
7481 * i386-sol2-tdep.c: New file.
7482
7483 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7484 * config/i386/tm-i386nw.h: Removed.
7485
7486 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7487 USE_STRUCT_CONVENTION): Remove defines.
7488 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7489 (get_longjmp_target): Remove prototype.
7490 (IN_SIGTRAMP): Remove define.
7491 (i386bsd_in_sigtramp): Remove prototype.
7492 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7493 function. Update comment accordingly
7494 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7495 (FRAME_SAVED_PC): Remove define.
7496 (i386bsd_frame_saved_pc): Remove prototype.
7497 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7498 GET_LONGJMP_TARGET): Remove defines.
7499 (get_longjmp_target): Remove prototype.
7500 (IN_SIGTRAMP): Remove define.
7501 (i386bsd_in_sigtramp): Remove prototype.
7502 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7503 function. Update comment accordingly
7504 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7505 (FRAME_SAVED_PC): Remove define.
7506 (i386bsd_frame_saved_pc): Remove prototype.
7507 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7508 Remove prototype.
7509 (USE_STRUCT_CONVENTION): Remove prototype.
7510 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7511 declaration.
7512 (_initialize_i386bsd_nat): Revise logic to determine some
7513 constants at compile time when compiling a native GDB. Warn if
7514 things don't match up with what we expect.
7515 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7516 Remove variables.
7517 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7518 to use date stored in `struct gdbarch_tdep'.
7519 (i386bsd_sigcontext_offset): Remove varaible.
7520 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7521 stored in `struct gdbarch_tdep'.
7522 (i386bsd_frame_saved_pc): Make static.
7523 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7524 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7525 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7526 i386fbsd4_sc_pc_offset): New variables.
7527 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7528 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7529 functions.
7530 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7531 functions.
7532 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7533 Modify the value of i386fbsd_sigtramp_start and
7534 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7535 i386fbsd_sigtramp_end.
7536 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7537 function.
7538
7539 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7540 define to i386-linux-tdep.h.
7541 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7542 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7543 defines.
7544 (i386_linux_register_name, i386_linux_register_byte,
7545 i386_linux_register_raw_size): Remove prototypes.
7546 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7547 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7548 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7549 TARGET_WRITE_PC): Remove defines.
7550 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7551 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7552 i386_linux_write_pc): Remove prototypes.
7553 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7554 (get_longjmp_target): Remove prototype.
7555 * i386-linux-tdep.h: New file.
7556 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7557 * i386-linux-tdep.c: Include "i386-tdep.h" and
7558 "i386-linux-tdep.h".
7559 (i386_linux_register_name, i386_linux_register_byte,
7560 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7561 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7562 Make static.
7563 (i386_linux_init_abi): New function.
7564 (_initialize_i386_linux_tdep): New function.
7565
7566 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7567 (i386_saved_pc_after_call): Remove prototype.
7568 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7569 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7570 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7571 (i386_register_name, i386_stab_reg_to_regnum,
7572 i386_dwarf_reg_to_regnum): Remove prototypes.
7573 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7574 SIZEOF_SSE_REGS): Remove defines.
7575 (REGISTER_BYTES): Remove define.
7576 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7577 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7578 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7579 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7580 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7581 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7582 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7583 (get_longjmp_target): Remove prototype.
7584 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7585 (sigtramp_saved_pc): Remove define.
7586 (i386v4_sigtramp_saved_pc): Remove prototype.
7587 * config/i386/tm-go32.h (FRAME_CHAIN,
7588 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7589 (i386go32_frame_saved_pc): Remove prototype.
7590 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7591 (get_longjmp_target): Remove prototype.
7592 * i386-tdep.h: Include "osabi.h".
7593 (enum i386_abi): Removed.
7594 (enum struct_return): New enum.
7595 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7596 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7597 sc_pc_offset members.
7598 (i386_gdbarch_register_os_abi): Remove prototype.
7599 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7600 I386_SSE_NUM_REGS): New defines.
7601 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7602 I386_SSE_SIZEOF_REGS): New defines.
7603 (i386_register_name, i386_register_byte, i386_register_raw_size):
7604 New prototypes.
7605 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7606 (i386bsd_sigtramp_saved_pc): New prototype.
7607 * i386-tdep.c: Don't include "elf-bfd.h".
7608 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7609 i386_frame_chain, i386_saved_pc_after_call): Make static.
7610 (i386_frame_saved_pc): Rewrite to call architecture dependent
7611 function to deal with signal handlers. Make static.
7612 (i386go32_frame_saved_pc): Removed.
7613 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7614 Removed.
7615 (i386_get_longjmp_target): New function.
7616 (default_struct_convention, pcc_struct_convention,
7617 reg_struct_convention, valid_conventions, struct_convention): New
7618 variables.
7619 (i386_use_struct_convention): New function.
7620 (i386v4_sigtramp_saved_pc): Renamed to
7621 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7622 (i386_pc_in_sigtramp): New function.
7623 (i386_abi_names): Removed.
7624 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7625 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7626 Removed.
7627 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7628 i386_gdbarch_register_os_abi): Removed.
7629 (struct i386_abi_handler): Removed.
7630 (i386_abi_handler_list): Removed.
7631 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7632 functions.
7633 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7634 i386_nw_init_abi): New functions.
7635 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7636 Use set_gdbarch_xxx() calls instead of relying on macros for a
7637 number of calls.
7638 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7639 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7640 Register the various architecture variants defined in this file.
7641
7642 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7643
7644 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7645 (struct main_type): Remove arg_types member. Update comments for
7646 struct field.
7647 (TYPE_ARG_TYPES): Remove.
7648 (TYPE_FN_FIELD_ARGS): Update.
7649 (smash_to_method_type): Update prototype.
7650
7651 * c-typeprint.c (cp_type_print_method_args): Take method type
7652 instead of argument list. Use new argument layout. Simplify.
7653 (c_type_print_args): Use new argument layout. Simplify.
7654 (c_type_print_base): Update call to cp_type_print_method_args.
7655 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7656 argument; use die->type instead. Update call to
7657 smash_to_method_type.
7658 (read_structure_scope): Update call to dwarf2_add_member_fn.
7659 * gdbtypes.c (allocate_stub_method): Update comment.
7660 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7661 Use new argument layout.
7662 (check_stub_method): Use new argument layout. Don't count
7663 void as an argument.
7664 (print_arg_types): Update comments. Use new argument layout.
7665 (recursive_dump_type): Don't print arg_types member.
7666 * hpread.c (hpread_read_struct_type): Use new argument layout.
7667 (fixup_class_method_type): Likewise.
7668 (hpread_type_lookup): Likewise.
7669 * stabsread.c (read_type): Update calls to read_args and
7670 smash_to_method_type.
7671 (read_args): Use new argument layout. Simplify.
7672 * valops.c (typecmp): Use new argument layout. Update parameters
7673 and comments. Simplify.
7674 (hand_function_call): Use new argument layout.
7675 (search_struct_method): Update call to typecmp.
7676 (find_overload_match): Use new argument layout.
7677
7678 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7679
7680 * NEWS: Mention multithreaded debug support for gdbserver.
7681
7682 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7683
7684 * MAINTAINERS: Mention NEWS.
7685
7686 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7687
7688 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7689 (struct mips_objfile_private, compare_pdr_entries): New.
7690 (non_heuristic_proc_desc): Read the ".pdr" section if it
7691 is present.
7692
7693 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7694
7695 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7696 (arm_debug): New static variable.
7697 (_initialize_arm_tdep): Add ``set debug arm'' command.
7698
7699 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7700
7701 * Makefile.in (sim_arm_h): Define.
7702 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7703 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7704 (arm_register_sim_regno): New function, map an internal REGNUM
7705 onto a simulator register number.
7706 (arm_gdbarch_init): Set register_sim_regno.
7707
7708 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7709
7710 * MAINTAINERS: Add self.
7711
7712 2002-06-11 Jim Blandy <jimb@redhat.com>
7713
7714 * source.c (source_info): Mention whether the symtab has
7715 information about preprocessor macros.
7716
7717 Call the command `info macro', not `show macro'.
7718 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7719 Fix error message.
7720 (_initialize_macrocmd): Register `info_macro_command' in
7721 `infolist', not `showlist'.
7722
7723 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7724
7725 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7726 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7727 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7728 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7729 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7730 unconditionally.
7731 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7732 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7733 (_initialize_mips_tdep): Remove dead code.
7734 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7735 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7736 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7737 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7738 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7739 MIPS_LAST_FP_ARG_REGNUM): Remove.
7740
7741 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7742
7743 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7744 (unwind_tmp_obstack_free, parse_frame_info)
7745 (update_context, cfi_read_fp, cfi_write_fp)
7746 (cfi_frame_chain, cfi_init_extra_frame_info)
7747 (cfi_virtual_frame_pointer): Use the above function.
7748 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7749
7750 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7751
7752 * v850-tdep.c (v850_type_is_scalar): New function.
7753 (v850_use_struct_convention): Match current gcc implementation
7754 as close as possible.
7755 (v850_push_arguments): Fix stack_offset handling. Don't write
7756 struct_addr into register. This is done by v850_store_struct_return.
7757 (v850_extract_return_value): Care for structs.
7758 (v850_store_return_value): Ditto.
7759 (v850_store_struct_return): Actually write address.
7760
7761 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7762
7763 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7764 without debug information too.
7765
7766 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7767
7768 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7769 Make multi-arch pure.
7770 * gdbarch.h, gdbarch.c: Re-generate.
7771 * arm-tdep.c (arm_print_float_info): Update.
7772 * arch-utils.h (default_print_float_info): Update.
7773 * arch-utils.c (default_print_float_info): Update.
7774 * infcmd.c (float_info): Update call.
7775
7776 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7777
7778 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7779 the front of the initialize list.
7780
7781 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7782
7783 * infrun.c (struct inferior_status): Replace fields
7784 selected_frame_address and selected_level with field
7785 selected_frame_id.
7786 (save_inferior_status): Update. Use get_frame_id.
7787 (struct restore_selected_frame_args): Delete.
7788 (restore_selected_frame): Update. Use frame_find_by_id.
7789 (restore_inferior_status): Update.
7790
7791 * breakpoint.h (struct breakpoint): Change type of
7792 watchpoint_frame to frame_id.
7793 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7794 call to get_current_frame.
7795 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7796 get_current_frame.
7797 (watchpoint_check): Use frame_find_by_id.
7798
7799 * frame.h (record_selected_frame): Delete declaration.
7800 * stack.c (record_selected_frame): Delete function.
7801
7802 * frame.h (struct frame_id): Define.
7803 (get_frame_id): Declare.
7804 (frame_find_by_id): Declare.
7805 * frame.c (frame_find_by_id): New function.
7806 (get_frame_id): New function.
7807
7808 2002-06-10 Andrey Volkov <avolkov@transas.com>
7809
7810 * ser-e7kpc.c: Fix duplicated define and call of
7811 _initialize_ser_e7000pc
7812
7813 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7814
7815 * signals/signals.c (target_signal_from_host): Fix #ifdef
7816 SIGRTMIN case.
7817 (do_target_signal_to_host): Likewise.
7818
7819 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7820
7821 * mips-tdep.c (mips_find_abi_section): New function.
7822 (mips_gdbarch_init): Call it.
7823
7824 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7825
7826 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7827 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7828 after Andrew's 2002-06-08 gdbarch change.
7829
7830 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7831
7832 * i386-linux-nat.c (suppy_gregset): Don't supply
7833 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7834 register cache.
7835 (fill_gregset): Don't fetch it under the same circumstances.
7836
7837 2002-06-09 Andrew Cagney <cagney@redhat.com>
7838
7839 * Makefile.in (callback_h): Define.
7840 (remote_sim_h): Update path to remote-sim.h.
7841 (remote-rdp.o): Add $(callback_h).
7842 (remote-sim.o): Use $(callback_h).
7843 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7844 * remote-rdp.c: Include "gdb/callback.h".
7845
7846 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7847
7848 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7849 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7850
7851 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7852
7853 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7854 * rdi-share/serpardr.c: Ditto.
7855 * rdi-share/unixcomm.c: Ditto.
7856 * rdi-share/serdrv.c: Ditto.
7857 * rdi-share/hostchan.h: Ditto.
7858 * rdi-share/hostchan.c: Ditto.
7859 * rdi-share/host.h: Ditto.
7860 * rdi-share/devsw.c: Ditto.
7861
7862 * objfiles.h: Change type of obj_private to void pointer.
7863 * pa64solib.c: Update copyright. Don't include "assert.h", use
7864 strcmp instead of STREQ, use LONGEST, do not use PTR
7865 * somsolib.c: Ditto.
7866
7867 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7868 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7869 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7870
7871 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7872
7873 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7874 (default_get_saved_register): Delete function.
7875 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7876 generic_unwind_get_saved_register.
7877 * gdbarch.h, gdbarch.c: Re-generate.
7878
7879 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7880
7881 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7882 generic_func_frame_chain_valid.
7883 * gdbarch.h, gdbarch.c: Re-generate.
7884 * blockframe.c (generic_func_frame_chain_valid): Only check
7885 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7886 passing FP to PC_IN_CALL_DUMMY.
7887 Fix PR gdb/360.
7888
7889 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7890
7891 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7892 (register_gdbarch_data): Initialize init_p.
7893 (gdbarch_data): Initialize data pointer using the init function.
7894 (init_gdbarch_data): Delete function.
7895 (gdbarch_update_p): Update.
7896 (initialize_non_multiarch): Update.
7897 (struct gdbarch): Add field initialized_p.
7898 * gdbarch.h, gdbarch.c: Re-generate.
7899
7900 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7901
7902 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7903 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7904 better do the things actually here.
7905 * x86-64-tdep.c (x86_64_register_name2nr): New.
7906 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7907 (x86_64_gdbarch_init): Respect the above change.
7908 * x86-64-tdep.h (x86_64_register_name2nr)
7909 (x86_64_register_nr2name): Add prototypes.
7910 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7911
7912 2002-06-06 Michael Snyder <msnyder@redhat.com>
7913
7914 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7915 Delete extra braces and re-indent.
7916 (d10v_store_return_value): Char return values
7917 must be shifted over by one byte in R0.
7918 (d10v_extract_return_value): Delete extra braces, re-indent.
7919
7920 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7921
7922 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7923 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7924 (d10v_integer_to_address): Rewrite.
7925 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7926 the d10v specific functions which take care of converting to the
7927 correct space.
7928
7929 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7930
7931 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7932 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7933
7934 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7935
7936 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7937 includes.
7938 * config/tm-linux.h: Ditto.
7939 * config/alpha/tm-alphalinux.h: Ditto.
7940 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7941 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7942 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7943 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7944 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7945 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7946 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7947 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7948 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7949 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7950 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7951 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7952 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7953 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7954 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7955 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7956 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7957 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7958 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7959 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7960 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7961 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7962 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7963 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7964 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7965 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7966 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7967 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7968 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7969 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7970 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7971 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7972 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7973 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7974 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7975 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7976 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7977
7978 2002-05-04 Aidan Skinner <aidan@velvet.net>
7979
7980 * ada-exp.tab.c: New file
7981 * ada-exp.y: New file
7982 * ada-lang.c: New file
7983 * ada-lang.h: New file
7984 * ada-lex.c: New file
7985 * ada-lex.l: New file
7986 * ada-tasks.c: New file
7987 * ada-typeprint.c: New file
7988 * ada-valprint.c: New file
7989
7990 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7991
7992 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7993 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7994
7995 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7996
7997 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7998 insetead of ppc-linux-tdep.o.
7999 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8000 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8001
8002 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8003
8004 2002-05-07 Christian Groessler <chris@groessler.org>
8005 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8006 bit register contents for little endian hosts.
8007
8008 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8009
8010 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8011 any maintainer.
8012
8013 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8014
8015 * gdbarch.h: Regenerate.
8016
8017 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8018
8019 * MAINTAINERS: Add everyone to write-after-approval list.
8020
8021 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8022
8023 * stack.c (frame_info): Use frame_register_unwind instead of
8024 saved_regs. Mention when the SP is on the stack or in a register.
8025
8026 * frame.h (frame_register_unwind_ftype): Define. Document.
8027 (struct frame_info): Add field register_unwind and
8028 register_unwind_cache.
8029 (frame_register_unwind): Declare.
8030 (generic_unwind_get_saved_register): Declare.
8031
8032 * frame.c (frame_register_unwind): New function.
8033 (generic_unwind_get_saved_register): New function.
8034
8035 * blockframe.c (generic_call_dummy_register_unwind): New function.
8036 (frame_saved_regs_register_unwind): New function.
8037 (set_unwind_by_pc): New function.
8038 (create_new_frame): New function.
8039 (get_prev_frame): New function.
8040
8041 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8042
8043 * a29k-share/: Delete directory.
8044 * remote-vx29k.c: Delete file.
8045
8046 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8047
8048 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8049 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8050
8051 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8052
8053 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8054 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8055 (sparc64nbsd-nat.o)
8056 (sparcnbsd-nat.o)
8057 (sparcnbsd-tdep.o): New dependency lists.
8058 * NEWS: Note new UltraSPARC NetBSD native configuration.
8059 * configure.host (sparc64-*-netbsd*): New host.
8060 * configure.tgt (sparc-*-netbsdelf*)
8061 (sparc-*-netbsd*): Set gdb_target to nbsd.
8062 (sparc64-*-netbsd*): New target.
8063 * sparc64nbsd-nat.c: New file.
8064 * sparcnbsd-nat.c: New file.
8065 * sparcnbsd-tdep.c: New file.
8066 * sparcnbsd-tdep.h: New file.
8067 * config/sparc/nbsd.mt: New file.
8068 * config/sparc/nbsd64.mh: New file.
8069 * config/sparc/nbsd64.mt: New file.
8070 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8071 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8072 (HOST_IPC): Remove.
8073 * config/sparc/nbsdaout.mt: Remove.
8074 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8075 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8076 (HOST_IPC): Remove.
8077 * config/sparc/nbsdelf.mt: Remove.
8078 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8079 sparc-nat.c compatiblity defines.
8080 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8081 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8082 * config/sparc/tm-nbsd64.h: New file.
8083 * config/sparc/tm-nbsdaout.h: Remove.
8084 * config/sparc/xm-nbsd.h: Remove.
8085
8086 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8087
8088 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8089 * sparc-tdep.c: Include osabi.h.
8090 (gdbarch_tdep): Add osabi member.
8091 (_initialize_sparc_tdep): Use gdbarch_register.
8092 (sparc_gdbarch_init): Use generic OS ABI framework.
8093 (sparc_dump_tdep): New function.
8094
8095 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8096
8097 * corefile.c (do_captured_read_memory_integer): Return non-zero
8098 result.
8099 (safe_read_memory_integer): Copy result of memory read when
8100 status is non-zero. Also, add comments.
8101
8102 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8103
8104 * Makefile.in (ppc_tdep_h): Define.
8105 (ppc-linux-nat.o)
8106 (ppc-linux-tdep.o)
8107 (rs6000-tdep.o): Use $(ppc_tdep_h).
8108 (ppc-sysv-tdep.o)
8109 (ppcnbsd-nat.o)
8110 (ppcnbsd-tdep.o): New dependency lists.
8111 * ppc-tdep.h: Use generic OS ABI framework.
8112 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8113 (ppc_linux_init_abi): New functions.
8114 (ppc_sysv_abi_broken_use_struct_convention)
8115 (ppc_sysv_abi_use_struct_convention)
8116 (ppc_sysv_abi_push_arguments): Move to...
8117 * ppc-sysv-tdep.c: ...here.
8118 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8119 * rs6000-tdep.c (process_note_abi_tag_sections)
8120 (get_elfosabi): Remove.
8121 (rs6000_gdbarch_init): Use generic OS ABI framework.
8122 (rs6000_dump_tdep): New function.
8123 (_initialize_rs6000_tdep): Use gdbarch_register.
8124 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8125 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8126 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8127 of ppc-linux-tdep.o.
8128 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8129 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8130 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8131 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8132 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8133 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8134
8135 2002-05-29 Jim Blandy <jimb@redhat.com>
8136
8137 * macroscope.c (default_macro_scope): Put `void' in empty argument
8138 list.
8139
8140 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8141
8142 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8143 * arch-utils.c: Include "sim-regno.h".
8144 * gdbarch.sh: Don't include "sim-regno.h".
8145 * gdbarch.h, gdbarch.c: Regenerate.
8146 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8147 here.
8148 * arch-utils.h (legacy_register_sim_regno): To here.
8149 * remote-sim.c (legacy_register_sim_regno): Move function from
8150 here.
8151 * arch-utils.c (legacy_register_sim_regno): To here.
8152
8153 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8154
8155 * sim-regno.h: New file.
8156 * Makefile.in (sim_regno_h): Define.
8157 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8158 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8159 (legacy_register_sim_regno): New function.
8160 (one2one_register_sim_regno): New function.
8161 (gdbsim_fetch_register): Rewrite.
8162 (gdbsim_store_register): Only store a register when
8163 REGISTER_SIM_REGNO is valid.
8164 * d10v-tdep.c: Include "sim-regno.h".
8165 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8166 (d10v_ts3_register_sim_regno): Ditto.
8167 * gdbarch.sh: Include "sim-regno.h".
8168 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8169 * gdbarch.h, gdbarch.c: Regenerate.
8170 * arch-utils.h (default_register_sim_regno): Delete declaration.
8171 * arch-utils.c (default_register_sim_regno): Delete function.
8172
8173 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8174
8175 * ppcnbsd-nat.c: Rewrite.
8176 * ppcnbsd-tdep.c: New file.
8177 * ppcnbsd-tdep.h: New file.
8178 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8179 solib.o, and solib-svr4.o.
8180 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8181 nbsd-tdep.o, and corelow.o.
8182
8183 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8184
8185 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8186 `tr' and `sed'. Mention that `broken' targets are not expected to
8187 build.
8188
8189 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8190
8191 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8192 Let PC point right after the prologue before looking up symbols.
8193
8194 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8195
8196 * i386-tdep.c (i386_register_virtual_type): Return
8197 builtin_type_vec128i for SSE registers.
8198
8199 * gdbtypes.h (builtin_type_vec128i): Declare.
8200
8201 * gdbtypes.c (build_builtin_type_vec128i): New function.
8202 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8203 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8204 (build_gdbtypes): Initialize new builtin vector types.
8205 (_initialize_gdbtypes): Register new vector types with gdbarch.
8206
8207 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8208
8209 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8210 since it has been multi-arch'd.
8211 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8212 Move Alpha and VAX multi-arch news entries to same section
8213 as other multi-arch news.
8214
8215 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8216
8217 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8218 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8219 static. Rename some register numbers to put them in ns32k-tdep
8220 private namespace.
8221 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8222 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8223 functions.
8224 (_initialize_ns32k_tdep): Use gdbarch_register.
8225 * ns32k-tdep.h: New file.
8226 * ns32knbsd-tdep.c: New file.
8227 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8228 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8229 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8230 REGISTER_BYTES, REGISTER_BYTE): Remove.
8231 * config/ns32k/tm-ns32k.h: New file.
8232 * config/ns32k/tm-umax.h: Remove.
8233
8234 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8235
8236 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8237 ns32k_store_struct_return, ns32k_extract_return_value,
8238 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8239 functions.
8240 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8241 ns32k_saved_pc_after_call.
8242 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8243 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8244 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8245 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8246 ns32k_extract_struct_value_address.
8247
8248 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8249
8250 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8251 ns32k_fix_call_dummy): New.
8252 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8253 ns32k_call_dummy_words.
8254 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8255 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8256 CALL_DUMMY_NARGS): Remove.
8257 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8258
8259 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8260
8261 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8262 ns32k_frame_saved_pc, ns32k_frame_args_address,
8263 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8264 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8265 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8266 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8267 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8268 (BREAKPOINT): Remove..
8269 (FRAME_CHAIN): Define as ns32k_frame_chain.
8270 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8271 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8272 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8273 (FRAME_FIND_SAVED_REGS): Remove.
8274 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8275 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8276 (POP_FRAME): Define as ns32k_pop_frame.
8277
8278 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8279
8280 * ns32k-tdep.c (ns32k_register_byte_32082,
8281 ns32k_register_byte_32382, ns32k_register_raw_size,
8282 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8283 functions.
8284 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8285 ns32k_register_byte_32382.
8286 * config/ns32k/tm-umax.h: Update copyright years.
8287 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8288 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8289 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8290 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8291 (ns32k_get_enter_addr): Fix prototype.
8292
8293 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8294
8295 * ns32k-tdep.c: Update copyright years.
8296 (ns32k_register_name_32082): New function.
8297 (ns32k_register_name_32382): Ditto.
8298 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8299 (REGISTER_NAME): Define as ns32k_register_name_32382.
8300 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8301 (REGISTER_NAME): Define as ns32k_register_name_32082.
8302
8303 2002-05-24 Jim Blandy <jimb@redhat.com>
8304
8305 * dwarf2read.c (free_line_header): Use xfree, not free.
8306
8307 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8308
8309 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8310 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8311
8312 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8313
8314 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8315
8316 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8317
8318 From Ross Alexander at NEC Europe:
8319 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8320
8321 2002-05-23 Michael Snyder <msnyder@redhat.com>
8322
8323 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8324 for input, rather than parse_and_eval_address.
8325
8326 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8327
8328 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8329 * Makefile.in (sim_d10v_h): Update definition.
8330
8331 2002-05-24 Andrew Cagney <cagney@redhat.com>
8332
8333 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8334 change `2002-05-22 Michael Snyder' below.
8335 (d10v_push_arguments): Ditto.
8336 (d10v_extract_return_value): Ditto.
8337
8338 2002-05-23 Jim Blandy <jimb@redhat.com>
8339
8340 * macrotab.c (check_for_redefinition): Don't complain if the new
8341 definition is the same as the previous one. Take more arguments
8342 to allow the comparison.
8343 (macro_define_object, macro_define_function): Pass more arguments
8344 to check_for_redefinition.
8345
8346 2002-05-22 Michael Snyder <msnyder@redhat.com>
8347
8348 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8349 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8350 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8351 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8352 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8353 Add a temp variable to save a call (and a memory read).
8354 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8355 if possible (so that PC_IN_CALL_DUMMY will work).
8356
8357 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8358
8359 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8360
8361 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8362
8363 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8364 fde->cie_ptr.
8365 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8366 (dwarf2_build_frame_info): Add offset to fde->initial_location
8367 so that frames of shared libraries are mapped correctly.
8368 (execute_stack_op): Change type of 'result' from ULONGEST to
8369 CORE_ADDR.
8370
8371 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8372
8373 * config/alpha/tm-nbsd.h: Include solib.h.
8374
8375 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8376
8377 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8378 assumptions about the host's byte order.
8379
8380 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8381
8382 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8383 to dependency list.
8384 * alphanbsd-tdep.c: Include solib-svr4.h.
8385 * shnbsd-tdep.c: Ditto.
8386
8387 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8388
8389 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8390 nbsd-tdep.h to dependency list.
8391 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8392 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8393 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8394 nbsdaout.mh and nbsdelf.mh consistently.
8395 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8396 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8397 nbsdaout.mt and nbsdelf.mh consistently.
8398 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8399 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8400 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8401 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8402 a.out shared library stuff from here...
8403 * config/nm-nbsdaout.h: ...to here.
8404 * config/tm-nbsd.h: Remove.
8405 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8406 * config/arm/nbsd.mh: Remove.
8407 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8408 nbsd-tdep.o.
8409 * config/arm/nbsdaout.mh: New file.
8410 * config/arm/nbsdelf.mh: New file.
8411 * config/arm/nm-nbsdaout.h: New file.
8412 * config/i386/nbsd.mh: Remove.
8413 * config/i386/nbsd.mt: Remove.
8414 * config/i386/nbsdaout.mh: New file.
8415 * config/i386/nbsdaout.mt: New file.
8416 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8417 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8418 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8419 i386_register_u_addr): Remove.
8420 * config/i386/nm-nbsdaout.h: New file.
8421 * config/i386/nm-nbsdelf.h: Remove.
8422 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8423 (USE_STRUCT_CONVENTION): Remove.
8424 * config/i386/tm-nbsdaout.h: New file.
8425 * config/i386/tm-nbsdelf.h: Remove.
8426 * config/m68k/nbsd.mh: Remove.
8427 * config/m68k/nbsd.mt: Remove.
8428 * config/m68k/nbsdaout.mh: New file.
8429 * config/m68k/nbsdaout.mt: New file.
8430 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8431 * config/m68k/nm-nbsdaout.h: New file.
8432 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8433 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8434 * config/ns32k/nbsd.mh: Remove.
8435 * config/ns32k/nbsd.mt: Remove.
8436 * config/ns32k/nbsdaout.mh: New file.
8437 * config/ns32k/nbsdaout.mt: New file.
8438 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8439 * config/ns32k/nm-nbsdaout.h: New file.
8440 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8441 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8442 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8443 (SVR4_SHARED_LIBS): Remove.
8444 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8445 * config/sparc/nbsd.mh: Remove.
8446 * config/sparc/nbsd.mt: Remove.
8447 * config/sparc/nbsdaout.mh: New file.
8448 * config/sparc/nbsdaout.mt: New file.
8449 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8450 * config/sparc/nbsdelf.mt: New file.
8451 * config/sparc/nm-nbsdaout.h: New file.
8452 * config/sparc/nm-nbsdelf.h: Remove.
8453 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8454 * config/sparc/tm-nbsdaout.h: New file.
8455
8456 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8457
8458 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8459 mipsnbsd-tdep.c
8460 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8461
8462 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8463
8464 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8465 shnbsd-nat.c.
8466 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8467
8468 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8469
8470 * NEWS: Note new MIPS NetBSD native configuration.
8471 * configure.host (mips*-*-netbsd*): New host.
8472 * configure.tgt (mips*-*-netbsd*): New target.
8473 * mipsnbsd-nat.c: New file.
8474 * mipsnbsd-tdep.c: New file.
8475 * mipsnbsd-tdep.h: New file.
8476 * config/mips/nbsd.mh: New file.
8477 * config/mips/nbsd.mt: New file.
8478 * config/mips/nm-nbsd.h: New file.
8479 * config/mips/tm-nbsd.h: New file.
8480
8481 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8482
8483 * Makefile.in (SFILES): Add osabi.c.
8484 (COMMON_OBS): Add osabi.o.
8485 (osabi.o): New dependency list.
8486 * osabi.c: New file.
8487 * osabi.h: New file.
8488 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8489
8490 * Makefile.in (alpha_tdep_h): Define and use instead of
8491 alpha-tdep.h.
8492 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8493 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8494 Remove.
8495 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8496 * alpha-tdep.h: Include osabi.h.
8497 (alpha_abi): Remove.
8498 (gdbarch_tdep): Use generic OS ABI framework.
8499 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8500 gdbarch_register_osabi.
8501 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8502 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8503 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8504
8505 * Makefile.in (sh_tdep_h): Add osabi.h.
8506 * sh-tdep.h (sh_osabi): Remove.
8507 (gdbarch_tdep): Use generic OS ABI framework.
8508 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8509 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8510 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8511 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8512
8513 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8514 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8515 gdbarch_register_osabi.
8516 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8517 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8518 (get_elfosabi): Rename to...
8519 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8520 ABI framework support routines.
8521 (arm_gdbarch_init): Use generic OS ABI framework.
8522 (arm_dump_tdep): Likewise.
8523 (_initialize_arm_tdep): Likewise.
8524 * arm-tdep.h: Include osabi.h.
8525 (arm_abi): Remove.
8526 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8527 osabi member.
8528 (arm_gdbarch_register_os_abi): Remove prototype.
8529 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8530 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8531
8532 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8533 * mips-tdep.c: Include osabi.h.
8534 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8535 OS ABI framework.
8536
8537 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8538
8539 * h8300-tdep.c: Fix formatting.
8540
8541 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8542
8543 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8544 printing vector registers.
8545
8546 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8547
8548 From Fernando Nasser:
8549 * remote.c (remote_async_open_1): Re-throw the exception when the
8550 connection fails.
8551 (remote_cisco_open): Ditto.
8552 (remote_open_1): Ditto.
8553
8554 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8555
8556 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8557 (remote_start_remote): Add uiout parameter. Pass through to
8558 remote_start_remote_dummy.
8559 (remote_open_1): Use catch_exception instead of catch_errors.
8560 (remote_async_open_1): Ditto.
8561 (remote_cisco_open): Ditto.
8562
8563 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8564
8565 * remote.c (remote_start_remote): Replace PTR with void pointer.
8566 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8567 static.
8568
8569 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8570
8571 * gdb_indent.sh: Allow the script to be run in the sim directory.
8572
8573 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8574
8575 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8576 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8577
8578 * corelow.c (core_open): Only call set_gdbarch_from_file if
8579 exec_bfd is NULL.
8580
8581 2002-05-17 Andrey Volkov <avolkov@transas.com>
8582
8583 * h8300-tdep.c: Add support of EXR register
8584 * config/h8300/tm-h8300.h: Ditto.
8585
8586 2002-05-17 Andrey Volkov <avolkov@transas.com>
8587
8588 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8589
8590 2002-05-17 Andrey Volkov <avolkov@transas.com>
8591
8592 * h8300-tdep.c: Change literal regnums to REGNO.
8593
8594 2002-05-17 Jim Blandy <jimb@redhat.com>
8595
8596 * NEWS: Note addition of macro support.
8597
8598 Expand preprocessor macros in C expressions.
8599 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8600 (scan_macro_expansion, scanning_macro_expansion,
8601 finished_macro_expansion): New function declarations.
8602 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8603 variable declarations.
8604 * parser-defs.h (expression_context_pc): New declaration.
8605 * parse.c (expression_context_pc): New variable.
8606 (parse_exp_1): Set expression_context_pc, as well as
8607 expression_context_block.
8608 * c-exp.y (yylex): If we're not already reading the result of a
8609 macro expansion, try to macro-expand the next token. When we're
8610 done scanning a macro expansion, switch back to the mainline text.
8611 Commas and `if's in a macro's expansion don't terminate the input.
8612 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8613 (macro_original_text, macro_expanded_text,
8614 expression_macro_lookup_func, expression_macro_lookup_baton): New
8615 variables.
8616 (scan_macro_expansion, scanning_macro_expansion,
8617 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8618 c_preprocess_and_parse): New functions.
8619 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8620 c_preprocess_and_parse, instead of c_parse.
8621 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8622 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8623
8624 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8625
8626 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8627 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8628 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8629
8630 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8631
8632 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8633
8634 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8635
8636 * Makefile.in (sh_tdep_h): Define and use.
8637 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8638 register enum): Move to...
8639 * * sh-tdep.h: ...here.
8640 * sh-tdep.c: Include sh-tdep.h.
8641 * sh3-rom.c: Likewise.
8642 * shnbsd-tdep.c: Likewise.
8643
8644 2002-05-16 Michael Snyder <msnyder@redhat.com>
8645
8646 * arm-tdep.c: Spelling fix in comment.
8647
8648 2002-05-16 Jim Blandy <jimb@redhat.com>
8649
8650 Add commands for manually expanding macros and showing their
8651 definitions.
8652 * macrocmd.c, macroscope.c, macroscope.h: New files.
8653 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8654 (macroscope_h): New variable.
8655 (HFILES_NO_SRCDIR): Add macroscope.h.
8656 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8657 (macroscope.o, macrocmd.o): New rules.
8658
8659 Teach the Dwarf 2 reader to read macro information.
8660 * dwarf2read.c: #include "macrotab.h".
8661 (dwarf_macinfo_buffer): New variable.
8662 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8663 dwarf_macinfo_size.
8664 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8665 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8666 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8667 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8668 dwarf2_macro_spaces_in_definition): New complaints.
8669 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8670 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8671 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8672 the partial symbol table.
8673 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8674 from what's recorded in the partial symbol table.
8675 (read_file_scope): If the compilation unit has a
8676 `DW_AT_macro_info' attribute, read its macro information.
8677 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8678
8679 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8680
8681 Fix PR gdb/546
8682 * ser-tcp.c: Don't include <netinet/udp.h>.
8683
8684 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8685
8686 * MAINTAINERS: Update my email address.
8687
8688 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8689
8690 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8691 include file of the same name.
8692
8693 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8694
8695 * configure.tgt: Mark v850 as multi-arched.
8696 * config/v850/tm-v850.h: Remove file.
8697 * config/v850/v850.mt: Eliminate TM_FILE.
8698
8699 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8700
8701 * v850-tdep.c: Full multi-arch.
8702 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8703 Define GDB_MULTI_ARCH to 2.
8704
8705 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8706
8707 * p-exp.y (current_type): New static variable.
8708 Carries the type of the expression at the position that is parsed.
8709 (push_current_type, pop_current_type): Two new functions. Used
8710 to store/restore current_type in expression on specific tokens.
8711 (search_field): New static variable. Set to one after parsing a point
8712 as at that point only a FIELDNAME token should be searched.
8713 (FIELDNAME): New token. After a point only a token belonging to
8714 current_type type definition is allowed.
8715 (all over token rules): reset and change current_type according
8716 to rules.
8717 (exp '[' rule): insert implicit array index field if
8718 exp is a pascal string type.
8719
8720 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8721
8722 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8723 frame info. Use frame_info's saved_regs instead of matching member
8724 in extra_frame_info throughout.
8725 (v850_frame_init_saved_regs): New function.
8726 (v850_init_extra_frame_info): Move most functionality into
8727 v850_frame_init_saved_regs().
8728 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8729 (v850_frame_find_saved_regs): Remove declaration.
8730 (FRAME_FIND_SAVED_REGS): Remove definition.
8731 (v850_frame_init_saved_regs): Add declaration.
8732 (FRAME_INIT_SAVED_REGS): Add definition.
8733
8734 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8735
8736 * v850-tdep.c: Begin multi-arch'ing v850.
8737 (v850_target_architecture_hook): Remove function.
8738 (v850_gdbarch_init): New function. Add code previously in
8739 v850_target_architecture_hook().
8740 (_initialize_v850_tdep): Don't set target_architecture_hook.
8741 Call register_gdbarch_init() instead.
8742
8743 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8744
8745 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8746 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8747 (fixup_class_method_type): Likewise.
8748
8749 2002-05-15 Jim Blandy <jimb@redhat.com>
8750
8751 Add macro structures to GDB's symbol tables. Nobody puts anything
8752 in them yet.
8753 * symtab.h (struct symtab): New member: `macro_table'.
8754 * buildsym.h (pending_macros): New global variable.
8755 * buildsym.c: #include "macrotab.h".
8756 (buildsym_init): Initialize `pending_macros'.
8757 (end_symtab): If we found macro information while reading a CU's
8758 debugging info, do build a symtab structure for it. Make the
8759 symtab point to the macro information, and clear the
8760 `pending_macros' pointer which held it while we were reading the
8761 debug info.
8762 (really_free_pendings): Free any pending macro table.
8763 * objfiles.h (struct objfile): New member: `macro_cache'.
8764 * objfiles.c (allocate_objfile): Set allocate and free functions
8765 for the macro cache's objstack.
8766 (free_objfile): Empty the macro cache's obstack.
8767 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8768 set new allocate and free functions for it.
8769 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8770 free functions for the macro cache's objstack. (Why is this
8771 function building its own objfile?)
8772 * symmisc.c (print_objfile_statistics): Print statistics on the
8773 macro bcache.
8774 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8775
8776 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8777
8778 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8779 (REGISTER_U_ADDR): Delete definition.
8780 (arm_register_u_addr): Delete declaration.
8781
8782 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8783
8784 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8785 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8786
8787 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8788
8789 * regcache.c (register_valid): Revise comments refering to "Not
8790 available" and "unavailable".
8791 * frame.c (frame_register_read): Ditto.
8792 * findvar.c (value_of_register): Ditto.
8793
8794 2002-05-15 Andrew Cagney <cagney@redhat.com>
8795
8796 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8797 (remote-sim.o): Update dependencies.
8798 (d10v-tdep.o): Specify dependencies.
8799 (sim_d10v_h): Define.
8800
8801 2002-05-14 Jim Blandy <jimb@redhat.com>
8802
8803 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8804 * macrotab.c (macro_lookup_inclusion, find_definition,
8805 new_macro_table): Same.
8806
8807 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8808 not `! strcmp ()'. This is a dubious improvement.
8809 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8810
8811 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8812 although it's not necessary, to avoid a warning.
8813
8814 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8815
8816 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8817 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8818 TYPE_INSTANCE_FLAGS.
8819 (struct main_type): New.
8820 (struct type): Move most members to struct main_type. Change
8821 cv_type and as_type to new type_chain member. Add instance_flags.
8822 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8823 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8824 (finish_cv_type): Remove prototype.
8825 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8826 Set TYPE_CHAIN.
8827 (alloc_type_instance): New function.
8828 (smash_type): New function.
8829 (make_pointer_type, make_reference_type, make_function_type)
8830 (smash_to_member_type, smash_to_method_type): Call smash_type.
8831 (make_qualified_type): New function.
8832 (make_type_with_address_space): Call make_qualified_type.
8833 (make_cv_type): Likewise.
8834 (finish_cv_type): Remove unnecessary function.
8835 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8836 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8837 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8838 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8839 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8840 * hpread.c (hpread_read_struct_type): Likewise.
8841 * stabsread.c (read_struct_type): Likewise.
8842
8843 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8844
8845 * configure.tgt: Add a catch all sh* target, for cases like
8846 sh[2,3,4]-elf and sh-hms.
8847
8848 2002-05-14 Keith Seitz <keiths@redhat.com>
8849
8850 * event-loop.c (create_file_handler): Don't do anything but
8851 update data when we are given a fd which we are already
8852 monitoring.
8853
8854 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8855
8856 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8857 (update_context): Use __func__ in warnings.
8858
8859 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8860
8861 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8862 and tcp_close to net_open and net_close.
8863 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8864 using UDP if requested. Don't try to disable Nagle on UDP
8865 sockets.
8866 * remote.c (remote_serial_open): New function. Warn about UDP.
8867 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8868
8869 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8870
8871 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8872
8873 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8874
8875 * configure.tgt: Remove sh-hms target.
8876 * MAINTAINERS: Don't list sh-hms as a separate target.
8877
8878 2002-05-13 Jim Blandy <jimb@redhat.com>
8879
8880 Add first preprocessor macro-expansion files.
8881 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8882 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8883 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8884 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8885 (COMMON_OBS): Add macrotab.o, macroexp.o.
8886 (macroexp.o, macrotab.o): New rules.
8887
8888 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8889
8890 * config/m88k/tm-m88k.h: Update copyright.
8891 (m88k_target_write_pc): Declare
8892 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8893 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8894 (SHIFT_INST_REGS): Update definition.
8895 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8896 using old definition of TARGET_WRITE_PC.
8897 * regcache.c (generic_target_write_pc): Delete code handling
8898 NNPC_REGNUM.
8899 * gdbarch.sh (NNPC_REGNUM): Delete.
8900 * gdbarch.h, gdbarch.c: Regenerate.
8901
8902 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8903
8904 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8905 builtin reg number.
8906
8907 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8910 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8911 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8912 access macros.
8913 * c-typeprint.c (cp_type_print_method_args): Likewise.
8914 (c_type_print_args): Likewise.
8915 * d10v-tdep.c (d10v_push_arguments): Likewise.
8916 (d10v_extract_return_value): Likewise.
8917 * expprint.c (print_subexp): Likewise.
8918 * gdbtypes.c (lookup_primitive_typename): Likewise.
8919 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8920 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8921 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8922 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8923 (TYPE_VECTOR): Likewise.
8924 * hpread.c (hpread_read_struct_type)
8925 (fix_static_member_physnames, fixup_class_method_type)
8926 (hpread_type_lookup): Likewise.
8927 * mdebugread.c (parse_symbol, parse_type): Likewise.
8928 * p-lang.c (is_pascal_string_type): Likewise.
8929 * valops.c (hand_function_call): Likewise.
8930 * x86-64-tdep.c (classify_argument): Likewise.
8931
8932 * hpread.c (hpread_read_function_type)
8933 (hpread_read_doc_function_type): Call replace_type.
8934 * dstread.c (create_new_type): Delete.
8935 (decode_dst_structure, process_dst_function): Call alloc_type.
8936 Use type access macros.
8937
8938 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8939
8940 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8941 the're not supported by the current architecture.
8942 (i387_fill_fxsave): Likewise.
8943
8944 2002-05-12 Fred Fish <fnf@redhat.com>
8945
8946 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8947 sect_index_xxx members to index the first slot in section_offsets
8948 if all of the section_offsets are zero.
8949
8950 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8951
8952 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8953 checked in with last change.
8954
8955 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8956
8957 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8958 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8959 config.sub.
8960
8961 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8962
8963 * Makefile.in: Update dependencies.
8964
8965 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8966
8967 * language.c (local_hex_string_custom): Simplify. Do not depend
8968 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8969
8970 * memattr.c (mem_info_command): Replace calls to
8971 longest_local_hex_string and longest_local_hex_string_custom.
8972 * buildsym.c (make_blockvector): Ditto.
8973 * solib.c (info_sharedlibrary_command): Ditto.
8974 * tracepoint.c (tracepoints_info): Ditto.
8975 * symtab.c (print_msymbol_info): Ditto.
8976
8977 * language.c (local_hex_string): Delete.
8978 (local_hex_string_custom): Delete.
8979 (longest_local_hex_string): Rename to local_hex_string.
8980 (longest_local_hex_string_custom): Rename to
8981 local_hex_string_custom.
8982 * language.h (local_hex_string): Change parameter type to LONGEST.
8983 (local_hex_string_custom): Ditto.
8984 (longest_local_hex_string): Delete declaration.
8985 (longest_local_hex_string_custom): Ditto.
8986
8987 * solib.c: Update copyright.
8988 * memattr.c: Update copyright.
8989
8990 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8991
8992 * arch-utils.h (legacy_register_to_value): Declare.
8993 (legacy_value_to_register): Declare.
8994 (legacy_convert_register_p): Declare.
8995 * arch-utils.c (legacy_register_to_value): New function.
8996 (legacy_value_to_register): New function.
8997 (legacy_convert_register_p): New function.
8998
8999 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9000 (VALUE_TO_REGISTER): Define.
9001 (CONVERT_REGISTER_P): Define.
9002 * gdbarch.h, gdbarch.c: Regenerate.
9003
9004 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9005 VALUE_TO_REGISTER.
9006 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9007 CONVERT_REGISTER_P.
9008
9009 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9010 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9011
9012 * Makefile.in: Update dependencies for valops.c.
9013 * valops.c: Include "gdb_assert.h".
9014 (typecmp): Skip THIS parameter to methods.
9015 (find_method_list): Remove static_memfuncp argument,
9016 update callers. Check for stub methods.
9017 (find_value_oload_method_list): Don't set *static_memfuncp.
9018 (find_overload_match): Don't check for stub methods. Assert
9019 that methods are not stubbed. Handle static methods.
9020 (value_find_oload_method_list): Remove static_memfuncp argument.
9021 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9022 to the argument list for static stub methods.
9023 * value.h (value_find_oload_method_list): Update prototype.
9024
9025 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9026
9027 * arch-utils.h (generic_register_size): Declare.
9028 (generic_register_raw_size, generic_register_virtual_size): Delete
9029 declarations.
9030 * arch-utils.c (generic_register_raw_size): Delete.
9031 (generic_register_size): New function.
9032 (generic_register_virtual_size): Delete.
9033
9034 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9035 default generic_register_size.
9036 * gdbarch.h, gdbarch.c: Re-generate.
9037
9038 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9039 register_virtual_size.
9040 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9041 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9042
9043 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9044
9045 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9046 * gdbarch.h, gdbarch.c: Regenerate.
9047 * gnu-v3-abi.c: Update copyright.
9048 (vtable_address_point_offset): Update.
9049 (gnuv3_rtti_type): Update.
9050 (gnuv3_baseclass_offset): Update.
9051 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9052 (init_fetch_link_map_offsets): Update.
9053 * remote.c (get_remote_state): Update.
9054
9055 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9056
9057 * TODO: Remove value_headof/value_from_vtable_info comment.
9058 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9059 * values.c (value_headof, value_from_vtable_info): Delete.
9060 * value.h (value_from_vtable_info): Delete prototype.
9061
9062 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9063
9064 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9065 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9066 $(gdb_regex_h).
9067 (gdb_assert_h): Define.
9068 (gdb_wait_h): Define.
9069 (gdb_regex_h): Define.
9070
9071 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9072
9073 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9074 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9075
9076 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9077
9078 * nbsd-tdep.c: Fix comment.
9079
9080 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9081
9082 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9083 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9084 (nbsd-tdep.o): New dependency list.
9085 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9086 nbsd-tdep.h.
9087 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9088 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9089 * nbsd-tdep.c: New file.
9090 * nbsd-tdep.h: New file.
9091 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9092 nbsd-tdep.h.
9093 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9094 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9095 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9096 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9097
9098 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9099
9100 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9101 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9102 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9103 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9104 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9105 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9106
9107 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9108
9109 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9110 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9111 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9112 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9113 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9114 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9115 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9116
9117 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9118
9119 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9120 fetch_elfcore_registers to...
9121 * i386nbsd-tdep.c: ...here.
9122 (i386nbsd_use_struct_convention): Rename to...
9123 (i386nbsd_aout_use_struct_convention): ...this.
9124 (i386nbsd_supply_reg): New function.
9125 (i386nbsd_fill_reg): New function.
9126 (fetch_core_registers): Use i386nbsd_supply_reg.
9127 (fetch_elfcore_registers): Likewise.
9128 (_initialize_i386nbsd_tdep): New function.
9129 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9130 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9131 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9132 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9133 (i386nbsd_aout_use_struct_convention): ...this.
9134
9135 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9136
9137 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9138 (store_inferior_registers): Use shnbsd_fill_reg.
9139 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9140 sh_nbsd_supply_register): Collapse into...
9141 (shnbsd_supply_reg): ...this.
9142 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9143 (shnbsd_fill_reg): ...this.
9144 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9145 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9146 (fetch_core_registers): Use shnbsd_supply_reg.
9147 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9148 (sh_nbsd_core_fns): Rename to...
9149 (shnbsd_core_fns): ...this.
9150 (sh_nbsd_elfcore_fns): Rename to...
9151 (shnbsd_elfcore_fns): ...this.
9152 (sh_nbsd_init_abi): Rename to...
9153 (shnbsd_init_abi): ...this.
9154 (_initialize_sh_nbsd_tdep): Rename to...
9155 (_initialize_shnbsd_tdep): ...this.
9156 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9157 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9158 sh_nbsd_fill_register): Remove prototypes.
9159 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9160
9161 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9162
9163 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9164 (i387-nat.o): Delete dependency list.
9165 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9166 (x86-64-linux-nat.o): Likewise.
9167 * i387-nat.c: Delete file, moving contents to...
9168 * i387-tdep.c: ...here.
9169 * i387-nat.h: Rename...
9170 * i387-tdep.h: ...to this.
9171 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9172 * i386-linux-nat.c: Likewise.
9173 * i386bsd-nat.c: Likewise.
9174 * i386gnu-nat.c: Likewise.
9175 * i386nbsd-nat.c: Likewise.
9176 * i386v4-nat.c: Likewise.
9177 * x86-64-linux-nat.c: Likewise.
9178 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9179 * config/i386/go32.mh (NATDEPFILES): Likewise.
9180 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9181 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9182 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9183 * config/i386/linux.mh (NATDEPFILES): Likewise.
9184 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9185 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9186 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9187 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9188
9189 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9190
9191 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9192 (alphanbsd-nat.o): Remove dependency list.
9193 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9194 * alphanbsd-nat.c: Delete. Contents moved to...
9195 * alphanbsd-tdep.c: ...here.
9196 (_initialize_alphanbsd_tdep): Register core functions.
9197 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9198
9199 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9200
9201 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9202 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9203 (alphanbsd-nat.o): Likewise.
9204 (alphabsd-tdep.o): New dependency list.
9205 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9206 (fill_gregset): Use alphabsd_fill_reg.
9207 (supply_fpregset): Use alphabsd_supply_fpreg.
9208 (fill_fpregset): Use alphabsd_fill_fpreg.
9209 (fetch_inferior_registers): Use struct reg and struct fpreg
9210 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9211 and alphabsd_supply_fpreg.
9212 (store_inferior_registers): Use struct reg and struct fpreg
9213 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9214 and alphabsd_fill_fpreg.
9215 * alphabsd-tdep.c: New file.
9216 * alphabsd-tdep.h: New file.
9217 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9218 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9219 alphabsd_supply_fpreg.
9220 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9221 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9222
9223 2002-05-11 Eric Christopher <echristo@redhat.com>
9224
9225 * mips-tdep.c (mips_double_register_type): Fix thinko.
9226 (mips_single_register_type): Ditto.
9227 * MAINTAINERS: Add self.
9228
9229 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9230
9231 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9232 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9233 right thing on architectures with different endianness and/or
9234 integer sizes.
9235
9236 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9237
9238 From Christian Limpach <chris@Pin.LU>
9239 * configure.in: Change sed expression which comments out
9240 NATDEPFILES to also comment out continuation lines.
9241 * configure: Regenerate.
9242
9243 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9244
9245 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9246 big patch.
9247
9248 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9249
9250 * sh-tdep.c: Include correct file.
9251
9252 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9253
9254 New support for sh64-elf (sh5) target.
9255
9256 * configure.tgt: For sh64-elf target, default to sh-elf.
9257
9258 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9259 (struct gdbarch_tdep): Add new fields for new registers and ABI
9260 info.
9261
9262 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9263 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9264 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9265 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9266 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9267 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9268 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9269 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9270 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9271 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9272 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9273 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9274 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9275 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9276 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9277 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9278 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9279 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9280 sign_extend, sh64_nofp_frame_init_saved_regs,
9281 sh64_init_extra_frame_info, sh64_get_saved_register,
9282 sh64_extract_struct_value_address, sh64_pop_frame,
9283 sh64_push_arguments, sh64_extract_return_value,
9284 sh64_store_return_value, sh64_show_media_regs,
9285 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9286 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9287 sh_sh64_register_virtual_type,
9288 sh_sh64_register_convert_to_virtual,
9289 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9290 sh64_register_read, sh64_pseudo_register_write,
9291 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9292 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9293 sh64_do_pseudo_register, sh_compact_do_registers_info,
9294 sh64_do_registers_info, sh_gdbarch_init): New functions.
9295
9296 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9297
9298 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9299
9300 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9301
9302 * linespec.c (decode_line_1): Check for a double quote after
9303 a filename correctly.
9304
9305 2002-05-10 Jim Blandy <jimb@redhat.com>
9306
9307 Properly track the size of the current objfile's .debug_line section.
9308 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9309 (DWARF_LINE_SIZE): New macro.
9310 (dwarf2_build_psymtabs_hard): Record the line section's size in
9311 the partial symbol table.
9312 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9313 symbol table.
9314
9315 2002-05-10 Petr Sorfa <petrs@caldera.com>
9316
9317 * ia64-tdep.c: Handle breakpoints on L instruction type
9318 in MLX instruction bundle by moving the breakpoint to
9319 the third slot (X instruction type) as L holds only data.
9320
9321 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9322
9323 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9324 (process_one_symbol): Complain about discarding local symbols
9325 due to a misplaced N_LBRAC entry.
9326
9327 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9328
9329 From Daniel Berlin <dan@cgsoftware.com>
9330 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9331 decrease the depth we are at, in the case of templates.
9332
9333 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9334
9335 * mips-tdep.c (mips_float_register_type): New function.
9336 (mips_double_register_type): New function.
9337 (mips_print_register): Use them.
9338 (do_fp_register_row): Likewise.
9339
9340 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9341
9342 * signals/signals.c (signals): Remove conditional compilation around
9343 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9344 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9345
9346 2002-05-09 Michael Snyder <msnyder@redhat.com>
9347
9348 * remote-rdp.c (remote_rdp_can_run): Remove.
9349
9350 2002-05-09 Tom Tromey <tromey@redhat.com>
9351
9352 * jv-valprint.c (java_val_print): Handle `char' as a special case
9353 of TYPE_CODE_INT.
9354
9355 2002-05-09 Michael Snyder <msnyder@redhat.com>
9356
9357 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9358 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9359 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9360 str r(0123),[sp,#nn].
9361 (arm_skip_prologue): Ditto. Also make disassembly
9362 order-independent by placing it in a loop.
9363
9364 2002-05-06 Michael Snyder <msnyder@redhat.com>
9365
9366 * stabsread.c (read_type): Add recognition for new attribute:
9367 "@V;" means that an array type is actually a vector.
9368 This is analogous to the vector flag that's been added to dwarf2.
9369
9370 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9371
9372 * i386-tdep.h (i386_abi): New enum.
9373 (struct gdbarch_tdep): Replace os_ident member with abi.
9374 (i386_gdbarch_register_os_abi): New prototype.
9375 * i386-tdep.c (i386_abi_names): New array.
9376 (process_note_abi_tag_sections): Removed.
9377 (process_note_sections): New function.
9378 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9379 (struct i386_abi_handler): New struct.
9380 (i386_abi_handler_list): New variable.
9381 (i386_gdbarch_register_os_abi): New function.
9382 (i386_gdbarch_init): Adapt for the changes given above.
9383
9384 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9385
9386 * gregset.h: Say "GNU/Linux".
9387
9388 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9389
9390 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9391 (build_gdbtypes): Build builtin_type_v2_float.
9392 (_initialize_gdbtypes): Register new builtin type.
9393
9394 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9395
9396 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9397 (clear_gdbarch_swap): New function.
9398 (initialize_non_multiarch): Call.
9399 (gdbarch_update_p): Before calling init(), swap out and clear the
9400 existing architecture.
9401 * gdbarch.c: Regenerate.
9402
9403 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9404
9405 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9406 alphanbsd-tdep.c.
9407
9408 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9409
9410 * sh-nbsd-nat.c: Rename to...
9411 * shnbsd-nat.c: ...this.
9412 * sh-nbsd-tdep.c: Rename to...
9413 * shnbsd-tdep.c: ...this.
9414 * sh-nbsd-tdep.h: Rename to...
9415 * shnbsd-tdep.h: ...this.
9416 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9417 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9418
9419 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9420
9421 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9422 concatenation for command help messages.
9423
9424 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9425
9426 * NEWS: Note new sh*-*-netbsdelf* configuration.
9427 * configure.host: Set gdb_host_cpu to sh for all sh*.
9428 (sh*-*-netbsdelf*): New host.
9429 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9430 (sh*-*-netbsdelf*): New target.
9431 * sh-nbsd-nat.c: New file.
9432 * sh-nbsd-tdep.c: New file.
9433 * sh-nbsd-tdep.h: New file.
9434 * config/sh/nbsd.mh: New file.
9435 * config/sh/nbsd.mt: New file.
9436 * config/sh/nm-nbsd.h: New file.
9437 * config/sh/tm-nbsd.h: New file.
9438
9439 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9440
9441 * sh-tdep.c (sh_osabi_names): Declare.
9442 (process_note_abi_tag_sections): New function.
9443 (get_elfosabi): Ditto.
9444 (sh_gdbarch_register_os_abi): Ditto.
9445 (sh_dump_tdep): Ditto.
9446 _initialize_sh_tdep): Use gdbarch_register to register
9447 sh_gdbarch_init and sh_dump_tdep.
9448 * config/sh/tm-sh.h (sh_osabi): Declare.
9449 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9450
9451 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9452
9453 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9454 (thumb_scan_prologue): Ditto.
9455 (arm_find_callers_reg): Ditto.
9456 (arm_frame_chain): Ditto.
9457 (arm_init_extra_frame_info): Ditto.
9458 (arm_frame_saved_pc): Ditto.
9459 (arm_pop_frame): Ditto.
9460 (arm_push_return_address): New function.
9461 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9462 call_dummy_location, call_dummy_breakpoint_offset_p,
9463 call_dummy_breakpoint_offset, call_dummy_p,
9464 call_dummy_stack_adjust_p, call_dummy_words,
9465 sizeof_call_dummy_words, call_dummy_start_offset,
9466 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9467 call_dummy_address, push_return_address and push_dummy_frame for
9468 generic dummy frames.
9469
9470 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9471
9472 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9473 size computation for alloca.
9474 (sh_fp_frame_init_saved_regs): Likewise.
9475
9476 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9477
9478 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9479 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9480 * arm-tdep.c (arm_store_return_value): Use them.
9481 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9482 * remote-rdp.c (remote_rdp_fetch_register): Use
9483 ARM_MAX_REGISTER_RAW_SIZE.
9484 (remote_rdp_store_register): Likewise.
9485
9486 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9487
9488 * dwarf2cfi.c: Code cleanup, removed unused variables,
9489 added default labels to switch {} statements.
9490 * x86-64-tdep.c: Ditto.
9491 * x86-64-linux-nat.c: Ditto.
9492
9493 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9494
9495 * solib.h: Protect against multiple inclusion.
9496
9497 2002-05-06 Jim Blandy <jimb@redhat.com>
9498
9499 Add first preprocessor macro-expansion files.
9500 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9501 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9502 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9503 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9504 (COMMON_OBS): Add macrotab.o, macroexp.o.
9505 (macroexp.o, macrotab.o): New rules.
9506
9507 Separate the job of reading the line number info statement program
9508 header (...expialidocious) out into its own function.
9509 * dwarf2read.c (struct line_head, struct filenames, struct
9510 directories): Replace with...
9511 (struct line_header): New structure, containing the full
9512 contents of the statement program header, including the
9513 include directory and file name tables.
9514 (read_file_scope): If we have line number info, instead of just
9515 calling dwarf_decode_lines to do all the work, call
9516 dwarf_decode_line_header first to get a `struct line_header'
9517 containing the data in the statement program header, and then
9518 pass that to dwarf_decode_lines, which will pick up where that
9519 left off. Be sure to clean up the `struct line_header' object.
9520 (dwarf_decode_line_header, free_line_header, add_include_dir,
9521 add_file_name): New functions.
9522 (dwarf_decode_lines): Move all the code to read the statement
9523 program header into dwarf_decode_line_header. Take the line
9524 header it built as the first argument, instead of the offset to
9525 the compilation unit's line number info. Use the new `struct
9526 line_header' type instead of the old structures. No need to do
9527 cleanups here now, since we don't allocate anything.
9528 (dwarf2_statement_list_fits_in_line_number_section,
9529 dwarf2_line_header_too_long): New complaints.
9530
9531 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9532
9533 * gdbtypes.c (init_vector_type): New function.
9534 (build_builtin_type_vec128): Simplify the representation of SIMD
9535 registers.
9536 (build_gdbtypes): Initialize new builtin vector types.
9537 (_initialize_gdbtypes): Register new vector types with gdbarch.
9538 (builtin_type_v4_float, builtin_type_v4_int32,
9539 builtin_type_v8_int16, builtin_type_v16_int8,
9540 builtin_type_v2_int32, builtin_type_v4_int16,
9541 builtin_type_v8_int8): New (renamed) SIMD types.
9542
9543 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9544
9545 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9546 (i387_fill_fxsave): Likewise.
9547
9548 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9549
9550 * alpha-tdep.c (alpha_extract_return_value): Don't use
9551 non-constant array size in prototype.
9552
9553 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9554
9555 From Brian Taylor <briant at model dot com>:
9556 * ui-out.c (ui_out_field_core_addr): Use the function
9557 longest_local_hex_string_custom'to format addresses > 32 bits
9558 wide.
9559
9560 * ui-out.c (ui_out_field_core_addr): Update comment.
9561
9562 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9563
9564 * stack.c (select_and_print_frame): Make static. Delete the
9565 parameter `level'.
9566 (func_command): Update call.
9567 (select_frame_command): Delete code computing the frame level.
9568 * frame.h (select_and_print_frame): Delete declaration.
9569
9570 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9571
9572 * sparc-tdep.c (sparc_get_saved_register): Comment why
9573 get_prev_frame call is safe.
9574
9575 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9576
9577 * frame.h (select_frame): Delete level parameter.
9578 * stack.c (select_frame): Update. Use frame_relative_level to
9579 obtain the frame's level.
9580 (select_and_print_frame): Update call.
9581 (select_frame_command): Ditto.
9582 (up_silently_base): Ditto.
9583 (down_silently_base): Ditto.
9584 * ocd.c (ocd_start_remote): Ditto.
9585 * remote-rdp.c (remote_rdp_open): Ditto.
9586 * remote-mips.c (mips_initialize): Ditto.
9587 (common_open): Ditto.
9588 * remote-e7000.c (e7000_start_remote): Ditto.
9589 * m3-nat.c (select_thread): Ditto.
9590 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9591 (child_get_current_exception_event): Ditto.
9592 * varobj.c (varobj_create): Ditto.
9593 (varobj_update): Ditto.
9594 (c_value_of_root): Ditto.
9595 * tracepoint.c (finish_tfind_command): Ditto.
9596 * corelow.c (core_open): Ditto.
9597 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9598 * thread.c (info_threads_command): Ditto.
9599 (switch_to_thread): Ditto.
9600 * infrun.c (normal_stop): Ditto.
9601 (restore_selected_frame): Ditto.
9602 (restore_inferior_status): Ditto.
9603 * breakpoint.c (insert_breakpoints): Ditto.
9604 (watchpoint_check): Ditto.
9605 (bpstat_stop_status): Ditto.
9606 (do_enable_breakpoint): Ditto.
9607 * blockframe.c (flush_cached_frames): Ditto.
9608 (reinit_frame_cache): Ditto.
9609
9610 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9611
9612 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9613 maintainer.
9614
9615 2002-05-04 Jim Blandy <jimb@redhat.com>
9616
9617 * gdbtypes.c (replace_type): Doc fix.
9618
9619 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9620
9621 * valprint.c (strcat_longest): Delete commented out function.
9622 Update copyright.
9623
9624 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9625
9626 * MAINTAINERS: Mark a29k as deleted.
9627 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9628 Move new configurations to the top.
9629 * configure.tgt: Remove a29k.
9630 * config/a29k/tm-vx29k.h: Delete.
9631 * config/a29k/vx29k.mt: Delete.
9632 * config/a29k/tm-a29k.h: Delete.
9633 * config/a29k/a29k-udi.mt: Delete.
9634 * config/a29k/a29k.mt: Delete.
9635 * a29k-tdep.c: Delete.
9636 * remote-udi.c: Delete.
9637 * remote-mm.c: Delete.
9638 * remote-eb.c: Delete.
9639 * remote-adapt.c: Delete.
9640 * Makefile.in: Remove obsolete code.
9641 * config/s390/s390x.mt: Ditto.
9642 * config/s390/s390.mt: Ditto.
9643 * config/sparc/sparclynx.mh: Ditto.
9644 * config/sparc/linux.mh: Ditto.
9645 * config/pa/hppaosf.mh: Ditto.
9646 * config/pa/hppabsd.mh: Ditto.
9647 * config/ns32k/nbsd.mt: Ditto.
9648 * config/mips/vr5000.mt: Ditto.
9649 * config/m68k/sun3os4.mh: Ditto.
9650 * config/m68k/nbsd.mt: Ditto.
9651 * config/m68k/m68klynx.mh: Ditto.
9652 * config/m32r/m32r.mt: Ditto.
9653 * config/i386/x86-64linux.mt: Ditto.
9654 * config/i386/nbsdelf.mt: Ditto.
9655 * config/i386/nbsd.mt: Ditto.
9656 * config/i386/i386lynx.mh: Ditto.
9657
9658 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9659
9660 * target.c (debug_print_register): New function. Handle oversize
9661 registers.
9662 (debug_to_fetch_registers): Call.
9663 (debug_to_store_registers): Call.
9664
9665 2002-05-03 Jim Blandy <jimb@redhat.com>
9666
9667 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9668 (read_type): Doc fix.
9669 * gdbtypes.c (replace_type): Doc fix.
9670
9671 * stabsread.c (multiply_defined_struct): New complaint.
9672 (read_struct_type): If the type we were passed isn't empty, or
9673 incomplete, don't read the new struct type into it; complain,
9674 and return the original type unchanged. Take a new `type_code'
9675 argument, which is the type code for the new type.
9676 (read_type): Rather than storing the type's type code here, pass
9677 it as an argument to read_struct_type, and let that take care of
9678 storing it. That way, we don't overwrite the original type code,
9679 so read_struct_type can use it to decide whether we're overwriting
9680 something we shouldn't.
9681 (complain_about_struct_wipeout): New function.
9682
9683 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9684
9685 * gdbarch.sh: Assert that gdbarch is non-NULL.
9686 * gdbarch.c: Regenerate.
9687
9688 2002-05-03 Jason Merrill <jason@redhat.com>
9689
9690 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9691 and return NULL.
9692
9693 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9694
9695 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9696 (x86_64_dwarf2gdb_regno_map_length),
9697 (x86_64_dwarf2_reg_to_regnum): Added.
9698 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9699 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9700 (_initialize_x86_64_tdep): Synced with the change above.
9701 (x86_64_skip_prologue): Reformulated message.
9702
9703 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9704
9705 * f-exp.y: Also use new prev_lexptr variable
9706 to improve error reporting. Based on Michael Snyder
9707 2002-04-24 dated patch to c-exp.y.
9708 * jv-exp.y: Likewise.
9709 * m2-exp.y: Likewise.
9710
9711 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9712
9713 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9714 we are dealing with vectors.
9715
9716 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9717
9718 * config/m68k/tm-nbsd.h: Obvious fix,
9719 correct machine name.
9720
9721 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9722
9723 * p-typeprint.c (pascal_type_print_base): Add support
9724 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9725
9726 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9727
9728 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9729 for fondamental pascal 'char' type.
9730
9731 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9732
9733 * p-lang.h (is_pascal_string_type): Declaration changed,
9734 new sixth argument of type char ** added.
9735 * p-lang.c (is_pascal_string_type): Implementation
9736 changed. Args length_pos, length_size, string_pos, char_size
9737 can now be NULL. New argument arrayname set to the field
9738 name of the char array. Return value set to char array
9739 field index plus one.
9740 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9741 is_pascal_string_type function.
9742
9743 2002-05-02 Andrew Cagney <cagney@redhat.com>
9744
9745 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9746 <cagney@redhat.com> change.
9747 * gdbarch.c: Regenerate.
9748
9749 2002-05-02 Andrew Cagney <cagney@redhat.com>
9750
9751 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9752 before probing for a new one. Detect errorenous gdbarch_init
9753 functions.
9754 * gdbarch.c: Regenerate.
9755
9756 2002-05-01 Andrew Cagney <cagney@redhat.com>
9757
9758 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9759 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9760 * config/v850/tm-v850.h: Ditto. Update copyright.
9761
9762 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9763
9764 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9765 current_gdbarch.
9766
9767 2002-04-30 Michael Snyder <msnyder@redhat.com>
9768
9769 * arm-tdep.c: Whitespace clean-ups.
9770 (arm_skip_prologue): Fix thinko; two lines
9771 should have been removed as part of 4/24 change.
9772
9773 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9774
9775 * rs6000-tdep.c: Added comment describing how fpscr register
9776 numbers were chosen.
9777
9778 2002-04-30 Michael Snyder <msnyder@redhat.com>
9779
9780 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9781
9782 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9783
9784 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9785 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9786 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9787
9788 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9789
9790 From Louis Hamilton <hamilton@redhat.com>:
9791 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9792 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9793 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9794 not bfd-private xcoff data, to determine wordsize.
9795 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9796
9797 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9798
9799 GDB 5.2 released from 5.2 branch.
9800
9801 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9802
9803 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9804 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9805 (x86_64_register_info_table): Added comments with register numbers.
9806
9807 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9808
9809 * rs6000-tdep.c (rs6000_extract_return_value,
9810 rs6000_store_return_value): Handle returning vectors.
9811 (rs6000_gdbarch_init): Use
9812 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9813 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9814 New function.
9815 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9816 vectors.
9817 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9818 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9819
9820 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9821
9822 * hpread.c (hpread_psymtab_to_symtab_1,
9823 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9824 with fprintf_unfiltered (gdb_stderr,...).
9825
9826 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9827
9828 * remote-array.c (printf_monitor, write_monitor,
9829 array_insert_breakpoint, array_remove_breakpoint ):
9830 Replace fprintf (stderr,...
9831 with fprintf_unfiltered (gdb_stderr,....
9832 * remote-es.c: Likewise.
9833 * remote-os9k.c: Likewise.
9834 * remote-st.c: Likewise.
9835
9836 2002-04-28 Andreas Schwab <schwab@suse.de>
9837
9838 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9839 linux-proc.o and gcore.o.
9840
9841 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9842
9843 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9844 code without frame pointers.
9845
9846 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9847
9848 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9849 ON_STACK is needed.
9850
9851 2002-04-26 Ben Elliston <bje@redhat.com>
9852
9853 * target.c (do_xfer_memory): Correct reference to the new option
9854 "trust-readonly-sections".
9855
9856 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9857
9858 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9859 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9860 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9861 vectors.
9862 (read_array_type): Record the fact that this array type is really a
9863 vector (i.e. are passed in by value).
9864
9865 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9866
9867 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9868 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9869 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9870 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9871 * alpha-linux-tdep.c: Include frame.h.
9872 (alpha_linux_sigcontext_addr): New function.
9873 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9874 alpha_linux_sigcontext_addr.
9875 * alpha-osf1-tdep.c: Include gdbcore.h.
9876 (alpha_osf1_sigcontext_addr): New function.
9877 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9878 alpha_osf1_sigcontext_addr.
9879 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9880 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9881
9882 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9883
9884 * stack.c (selected_frame_level):
9885 (select_frame): Do not set selected_frame_level.
9886 * frame.h (selected_frame_level): Delete declaration.
9887
9888 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9889
9890 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9891 convert_from_func_ptr-addr when AIX / PowerOpen.
9892
9893 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9894
9895 * valops.c (hand_function_call): Call
9896 generic_save_call_dummy_addr.
9897 * frame.h (generic_save_call_dummy_addr): Declare.
9898 * blockframe.c (struct dummy_frame): Add fields call_lo and
9899 call_hi.
9900 (generic_find_dummy_frame): Check for PC in range call_lo to
9901 call_hi instead of entry_point_address.
9902 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9903 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9904 (generic_save_call_dummy_addr): New function.
9905
9906 2002-04-24 David S. Miller <davem@redhat.com>
9907
9908 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9909 sparc_skip_prologue.
9910 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9911 information to find prologue when possible.
9912 (sparc_prologue_frameless_p): Call examine_prologue directly.
9913 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9914 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9915 second argument.
9916 (SKIP_PROLOGUE): Likewise.
9917
9918 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9919
9920 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9921 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9922 indicate that the condition it was testing is always true.
9923 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9924 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9925 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9926
9927 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9928
9929 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9930 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9931 tdep->jb_pc and tdep->jb_elt_size.
9932 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9933 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9934 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9935 * alpha-nat.c (get_longjmp_target): Remove.
9936 (JB_ELEMENT_SIZE): Ditto.
9937 (JB_PC): Ditto.
9938 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9939 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9940 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9941 to alpha_get_longjmp_target.
9942 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9943 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9944 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9945
9946 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9947
9948 * README: Update to GDB 5.2.
9949
9950 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9951
9952 * gdbarch.sh (LC_ALL): Set to `c'.
9953
9954 2002-04-25 Theodore A. Roth <troth@verinet.com>
9955
9956 * avr-tdep.c: Ran through gdb_indent.sh.
9957
9958 2002-04-25 Theodore A. Roth <troth@verinet.com>
9959
9960 * MAINTAINERS: Add myself as AVR maintainer.
9961 * NEWS: Note new target avr.
9962
9963 2002-04-25 Theodore A. Roth <troth@verinet.com>
9964
9965 * Makefile.in: Add support for AVR target.
9966 * configure.tgt: Add support for AVR target.
9967 * avr-tdep.c: New file
9968 * config/avr/avr.mt: New file.
9969
9970 2002-04-25 Theodore A. Roth <troth@verinet.com>
9971
9972 * MAINTAINERS: Add myself to write-after-approval.
9973
9974 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9975
9976 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9977 with fprintf_unfiltered (gdb_stderr,....
9978
9979 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9980
9981 Fix PR gdb/508.
9982 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9983
9984 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9985
9986 * p-exp.y: Also use new prev_lexptr variable
9987 to improve error reporting. Based on Michael Snyder
9988 2002-04-24 dated patch to c-exp.y.
9989
9990 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9991
9992 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9993 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9994 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9995 to 0.
9996 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9997 and struct value.
9998 (FUNCTION_START_OFFSET): Remove.
9999 (BREAKPOINT): Ditto.
10000
10001 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10002
10003 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10004 * NEWS: Ditto.
10005
10006 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10007
10008 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10009 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10010 alpha_linux_pc_in_sigtramp.
10011 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10012 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10013 alpha_osf1_pc_in_sigtramp.
10014 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10015 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10016 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10017 alphafbsd_pc_in_sigtramp.
10018 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10019 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10020 alphanbsd_pc_in_sigtramp.
10021 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10022 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10023
10024 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10025
10026 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10027
10028 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10029
10030 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10031 alphanbsd-tdep.c.
10032 (alphanbsd-nat.o): New dependency list.
10033 (alphanbsd-tdep.o): Ditto.
10034 * NEWS: Note new native NetBSD/alpha configuration.
10035 * alphanbsd-nat.c: New file.
10036 * alphanbsd-tdep.c: Ditto.
10037 * configure.host (alpha*-*-netbsd*): New host.
10038 * configure.tgt (alpha*-*-netbsd*): New target.
10039 * config/alpha/nbsd.mh: New file.
10040 * config/alpha/nbsd.mt: Ditto.
10041 * config/alpha/nm-nbsd.h: Ditto.
10042 * config/alpha/tm-nbsd.h: Ditto.
10043
10044 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10045
10046 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10047 (alpha-osf1-tdep.o): New dependency list.
10048 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10049 and skip_sigtramp_frame members.
10050 * alpha-linux-tdep.c: Include gdbcore.h.
10051 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10052 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10053 * alpha-osf1-tdep.c: New file.
10054 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10055 alpha-osf1-dep.c.
10056 (alpha_frame_past_sigtramp_frame): New function.
10057 (alpha_dynamic_sigtramp_offset): Ditto.
10058 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10059 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10060 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10061 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10062 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10063 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10064 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10065 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10066 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10067 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10068 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10069 to find_solib_trampoline_target.
10070 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10071 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10072 (SKIP_TRAMPOLINE_CODE): Remove.
10073 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10074 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10075 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10076 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10077 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10078 (PROC_SIGTRAMP_MAGIC): Ditto.
10079 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10080 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10081 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10082 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10083 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10084
10085 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10086
10087 * NEWS: Note that Alpha targets are now multi-arch.
10088
10089 2002-04-24 Michael Snyder <msnyder@redhat.com>
10090
10091 * parser-defs.h (prev_lexptr): New external variable.
10092 * parse.c (parse_exp_1): Set prev_lexptr to null before
10093 calling the language-specific parser.
10094 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10095 (yyerror): Use prev_lexptr in error reporting.
10096
10097 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10098
10099 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10100 * gregset.h: If FILL_FPXREGSET is defined, provide
10101 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10102 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10103 is defined, call fill_fpxregset.
10104
10105 2002-04-24 Roland McGrath <roland@frob.com>
10106
10107 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10108 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10109 (supply_gregset, supply_fpregset): New functions.
10110
10111 * gnu-nat.c (gnu_find_memory_regions): New function.
10112 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10113 (gnu_xfer_memory): Add a cast.
10114
10115 2002-04-24 Michael Snyder <msnyder@redhat.com>
10116
10117 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10118 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10119 of argument regs ("str r(0123), [r11, #-nn"]).
10120 (arm_skip_prologue): Better handling for frameless functions.
10121 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10122 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10123
10124 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10125
10126 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10127 NUM_PSEUDO_REGS can be used.
10128
10129 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10130
10131 * arch-utils.h: Update copyright.
10132
10133 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10134 * gdbarch.h, gdbarch.c: Re-generate.
10135
10136 * inferior.h (IN_SIGTRAMP): Delete definition.
10137 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10138 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10139
10140 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10141 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10142 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10143 (find_proc_framesize): Ditto.
10144 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10145 (alpha_init_extra_frame_info): Ditto.
10146 * infrun.c (handle_inferior_event): Ditto.
10147 (handle_inferior_event): Ditto.
10148 (check_sigtramp2): Ditto.
10149 * blockframe.c (create_new_frame): Ditto.
10150 (get_prev_frame): Ditto.
10151 * ppc-linux-tdep.c: Update comments.
10152 * i386-linux-tdep.c: Update comments.
10153 * breakpoint.c (bpstat_what): Update comment.
10154
10155 2002-04-24 David S. Miller <davem@redhat.com>
10156
10157 * i960-tdep.c (register_in_window_p): New function.
10158 (i960_find_saved_register): Use it instead of
10159 REGISTER_IN_WINDOW_P.
10160 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10161
10162 * symtab.h (find_stab_function_addr): Kill extern.
10163 * minsyms.c (find_stab_function_addr): Remove from here...
10164 * dbxread.c: ... to here, and mark it static.
10165
10166 2002-04-20 David S. Miller <davem@redhat.com>
10167
10168 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10169 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10170
10171 2002-04-21 David S. Miller <davem@redhat.com>
10172
10173 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10174 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10175 (vx_write_register): Likewise.
10176
10177 2002-04-23 J. Brobecker <brobecker@gnat.com>
10178
10179 * source.c (is_regular_file): New function.
10180 (openp): Check wether file to open is a regular file
10181 to avoid opening directories.
10182
10183 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10184
10185 * findvar.c (extract_signed_integer): Cast printf argument
10186 to suppress format warning.
10187 (extract_unsigned_integer): Likewise.
10188 * infcmd.c (registers_info): Likewise.
10189 * top.c (get_prompt_1): Likewise.
10190 * valops.c (value_assign): Likewise.
10191 * valprint.c (print_decimal): Likewise.
10192
10193 2002-04-22 H.J. Lu (hjl@gnu.org)
10194
10195 * c-exp.y (typebase): Support
10196
10197 [long|long long|short] [signed|unsigned] [int|]
10198
10199 and
10200
10201 signed [long|long long|short] int
10202
10203 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10204
10205 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10206 and vax-tdep.h.
10207 * vax-tdep.h: New file.
10208 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10209 Make several routines static.
10210 (vax_get_saved_register): New function.
10211 (vax_gdbarch_init): New function.
10212 (_initialize_vax_tdep): Register vax_gdbarch_init.
10213 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10214 Remove macros now under the control of gdbarch.
10215
10216 2002-04-22 Michael Snyder <msnyder@redhat.com>
10217
10218 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10219 Some whitespace and coding standards tweaks.
10220
10221 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10222
10223 * vax-tdep.c: Include regcache.h.
10224 (vax_call_dummy_words): New.
10225 (sizeof_vax_call_dummy_words): New.
10226 (vax_fix_call_dummy): New function.
10227 (vax_saved_pc_after_call): Ditto.
10228 * config/vax/tm-vax.h: Don't include regcache.h.
10229 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10230 (CALL_DUMMY): Remove.
10231 (CALL_DUMMY_WORDS): Define.
10232 (SIZEOF_CALL_DUMMY_WORDS): Define.
10233 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10234
10235 2002-04-18 Michael Snyder <msnyder@redhat.com>
10236
10237 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10238
10239 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10240
10241 * vax-tdep.c (vax_frame_chain): New function.
10242 (vax_push_dummy_frame): Ditto.
10243 (vax_pop_frame): Ditto.
10244 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10245 (FRAMELESS_FUNCTION_INVOCATION): Use
10246 generic_frameless_function_invocation_not.
10247 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10248 (POP_FRAME): Use vax_pop_frame.
10249
10250 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10251
10252 * vax-tdep.c (vax_store_struct_return): New function.
10253 (vax_extract_return_value): Ditto.
10254 (vax_store_return_value): Ditto.
10255 (vax_extract_struct_value_address): Ditto.
10256 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10257 vax_store_struct_return.
10258 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10259 (STORE_RETURN_VALUE): Use vax_store_return_value.
10260 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10261
10262 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10263
10264 * vax-tdep.c (vax_frame_saved_pc): New function.
10265 (vax_frame_args_address_correct): Ditto.
10266 (vax_frame_args_address): Ditto.
10267 (vax_frame_locals_address): Ditto.
10268 (vax_frame_num_args): Move code to be in proximity to
10269 other frame-related functions.
10270 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10271 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10272 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10273 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10274 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10275
10276 2002-04-22 H.J. Lu (hjl@gnu.org)
10277
10278 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10279 includedir.
10280
10281 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10282
10283 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10284 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10285 (FRAME_INIT_SAVED_REGS): New macro.
10286
10287 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10288
10289 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10290
10291 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10292
10293 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10294 where needed.
10295 (fetch_osf_core_registers): Likewise.
10296 (supply_gregset): Likewise.
10297
10298 2002-04-22 J. Brobecker <brobecker@gnat.com>
10299
10300 * symfile.h (get_section_index): Define.
10301 * symfile.c (get_section_index): New function.
10302 * mdebugread.c (SC_IS_SBSS): New macro.
10303 (SC_IS_BSS): Return true for the scBss storage class only, as
10304 the scSBss storage class refers to the .sbss section.
10305 (parse_partial_symbols): Discard the symbols which associated
10306 section does not exist.
10307 Make sure to use the .sbss section index for symbols which
10308 storage class is scBss, rather than using the .bss section index.
10309
10310 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10311
10312 * vax-tdep.c: Update copyright years.
10313 (vax_register_name): New function.
10314 (vax_register_byte): Ditto.
10315 (vax_register_raw_size): Ditto.
10316 (vax_register_virtual_size): Ditto.
10317 (vax_register_virtual_type): Ditto.
10318 * config/vax/tm-vax.h: Update copyright years.
10319 (REGISTER_NAMES): Remove.
10320 (REGISTER_NAME): Define.
10321 (REGISTER_BYTE): Use vax_register_byte.
10322 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10323 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10324 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10325
10326 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10327
10328 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10329 declaration
10330 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10331
10332 2002-04-21 David S. Miller <davem@redhat.com>
10333
10334 * arch-utils.c (generic_prologue_frameless_p): Kill
10335 SKIP_PROLOGUE_FRAMELESS_P code.
10336 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10337 references.
10338 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10339 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10340 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10341 references.
10342 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10343 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10344 (sparc_gdbarch_init): Pass it to
10345 set_gdbarch_prologue_frameless_p.
10346
10347 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10348
10349 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10350 (alphabsd-nat.o): New dependency list.
10351
10352 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10353
10354 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10355 alphafbsd-tdep.c.
10356 (alpha-linux-tdep.o): New dependency list.
10357 (alphafbsd-tdep.o): Likewise.
10358
10359 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10360
10361 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10362 to here...
10363 * alpha-tdep.c: ...from here.
10364 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10365
10366 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10367
10368 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10369 prototype from here...
10370 * alpha-tdep.h: ...to here.
10371
10372 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10373
10374 * frame.h (selected_frame_level): Document as deprecated.
10375 (frame_relative_level): Declare.
10376 * stack.c (frame_relative_level): New function.
10377 (selected_frame_level): Document as deprecated.
10378 (select_frame): Do not set the selected_frame_level.
10379
10380 * stack.c (frame_info, record_selected_frame): Update.
10381 (frame_command, current_frame_command): Update.
10382 (up_silently_base, up_command, down_silently_base): Update.
10383 (down_command): Update.
10384 * inflow.c (kill_command): Update.
10385 * tracepoint.c (finish_tfind_command): Update.
10386 * corelow.c (core_open): Update.
10387 * thread.c (info_threads_command): Update.
10388 (do_captured_thread_select): Update.
10389 * infcmd.c (finish_command): Update.
10390 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10391
10392 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10393
10394 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10395
10396 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10397
10398 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10399 type const.
10400
10401 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10402
10403 * alphafbsd-tdep.c: Update copyright years. Include
10404 alpha-tdep.h.
10405 (alphafbsd_use_struct_convention): Make static.
10406 (alphafbsd_init_abi): New function.
10407 (_initialize_alphafbsd_tdep): New function.
10408 * config/alpha/tm-fbsd.h: Update copyright years.
10409 (USE_STRUCT_CONVENTION): Remove.
10410
10411 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10412
10413 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10414 an Alpha ABI variant.
10415 (alpha_abi_handler_list): Declare.
10416 (alpha_gdbarch_register_os_abi): New function.
10417 (alpha_gdbarch_init): Give registered ABI variant handlers a
10418 chance to tweak the gdbarch once we have set up defaults.
10419 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10420
10421 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10422
10423 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10424 to standard_coerce_float_to_double.
10425 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10426
10427 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10428
10429 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10430 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10431 from gdbarch_tdep rather than a constant.
10432 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10433 the default text address for all Alpha Unix ABIs.
10434 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10435 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10436
10437 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10438
10439 * alpha-tdep.h: New file. Includes several Alpha target constants
10440 taken from...
10441 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10442 let gdbarch deal with.
10443 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10444 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10445 to dependency list.
10446 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10447 Alpha target register names.
10448 * alphabsd-nat.c: Likewise.
10449 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10450 Alpha target register names. Make serveral routines static.
10451 (alpha_get_saved_register): New function.
10452 (alpha_abi_names): New.
10453 (process_note_abi_tag_sections): New function.
10454 (get_elfosabi): New function.
10455 (alpha_gdbarch_init): New function.
10456 (alpha_dump_tdep): New function.
10457 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10458
10459 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10460
10461 * frame.c (find_saved_register): Delete #ifdef
10462 HAVE_REGISTER_WINDOWS code.
10463 * config/sparc/tm-sparc.h: Update comments.
10464 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10465
10466 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10467
10468 * i960-tdep.c (i960_find_saved_register): New function.
10469 (i960_get_saved_register): New function.
10470 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10471 (i960_get_saved_register): Declare.
10472 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10473
10474 2002-04-20 David S. Miller <davem@redhat.com>
10475
10476 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10477
10478 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10479
10480 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10481 instead of NUM_PSEUDO_REGS.
10482
10483 2002-04-20 David S. Miller <davem@redhat.com>
10484
10485 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10486 GDB_MULTI_ARCH_PARTIAL
10487 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10488 define, let tm-sp64.h do it.
10489
10490 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10491
10492 * frame.c (find_saved_register): Avoid a NULL pointer
10493 dereference and actually walk the frame list.
10494
10495 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10496
10497 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10498 sorted in most most-recent-used order. Document.
10499 * gdbarch.h, gdbarch.c: Regenerate.
10500
10501 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10502
10503 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10504 instead of ->prev.
10505 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10506 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10507 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10508 instead of ->prev.
10509
10510 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10511
10512 Fix PR gdb/471.
10513 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10514 (build_builtin_type_vec128): Ditto.
10515 (append_composite_type_field): Fix calculation of type length in
10516 union case.
10517
10518 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10519
10520 * config/djgpp/README: Update.
10521
10522 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10523 compiler warnings.
10524
10525 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10526
10527 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10528 (alpha_setup_arbitrary_frame): ...to this.
10529 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10530 for alpha_setup_arbitrary_frame.
10531
10532 2002-04-18 Andrew Cagney <cagney@redhat.com>
10533
10534 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10535 * gdbarch.h, gdbarch.c: Regenerate.
10536
10537 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10538 * target.h (memory_breakpoint_from_pc): Update declaration.
10539 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10540
10541 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10542 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10543 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10544 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10545 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10546 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10547 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10548 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10549 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10550 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10551 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10552 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10553
10554 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10555 const pointer.
10556 * monitor.c (monitor_insert_breakpoint): Ditto.
10557 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10558
10559 * config/mcore/tm-mcore.h: Update copyright.
10560 * mem-break.c: Ditto.
10561 * xstormy16-tdep.c: Ditto.
10562
10563 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10564
10565 * p-exp.y: Add precedence rule for '^' token.
10566 This removes the shift/reduce conflicts.
10567 Remove the comment concerning these shift/reduce conflicts.
10568
10569 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10570
10571 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10572 (registers_powerpc_nofp): New register set for processors
10573 without floating point unit.
10574
10575 2002-04-18 David S. Miller <davem@redhat.com>
10576
10577 * MAINTAINERS: Add myself to write-after-approval.
10578
10579 2002-04-17 Michael Snyder <msnyder@redhat.com>
10580
10581 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10582
10583 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10584
10585 * rs6000-tdep.c (frame_initial_stack_address): Use
10586 frame_register_read to read the alloca_reg.
10587
10588 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10589
10590 * frame.c (find_saved_register): Find saved registers in the next
10591 not prev frame.
10592 Fix PR gdb/365.
10593
10594 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10595
10596 * gdbarch.sh (LANG): Set to ``c''.
10597
10598 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10599
10600 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10601
10602 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10603
10604 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10605 Update copyright.
10606
10607 * hpread.c (hpread_get_lntt): Add declaration.
10608 Also fix PR gdb/391.
10609
10610 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10611
10612 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10613 * aclocal.m4, configure: Re-generate.
10614 Fix PR gdb/391.
10615
10616 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10617
10618 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10619 instead of tm_print_insn.
10620
10621 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10622
10623 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10624
10625 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10626
10627 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10628 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10629 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10630
10631 2002-04-12 Don Howard <dhoward@redhat.com>
10632
10633 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10634 max_user_call_depth.
10635 (init_cmd_lists): Initialize the new value;
10636 * cli/cli-script.c (execute_user_command): Limit the call depth of
10637 user defined commands. This avoids a core-dump when user commands
10638 are infinitly recursive.
10639
10640 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10641
10642 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10643 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10644 from tdep struct instead of DEFAULT_LR_SAVE.
10645 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10646 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10647 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10648
10649 2002-04-12 Michael Snyder <msnyder@redhat.com>
10650
10651 * Remote.c: Spelling fix.
10652 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10653 If no symbol found for "sbrk", try "_sbrk".
10654 (make_output_phdrs): Use bfd_section_name.
10655 (gcore_copy_callback): Use bfd_section_name.
10656 * eval.c: Indentation fix-ups.
10657 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10658 in case it gets applied to an address that is already
10659 in the instruction space.
10660 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10661 * symfile.c: Fix indentation, long lines.
10662 * source.c: White space fix-up.
10663
10664 2002-04-12 Andrew Cagney <cagney@redhat.com>
10665
10666 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10667 * frame.c (frame_register_read): New function. Return non-zero on
10668 success.
10669 (read_relative_register_raw_bytes_for_frame): Delete.
10670 (read_relative_register_raw_bytes): Delete.
10671 * frame.h (frame_register_read): Declare.
10672 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10673 * sh-tdep.c: Ditto.
10674 * infcmd.c (do_registers_info): Ditto.
10675 * hppa-tdep.c: Ditto.
10676 * rs6000-tdep.c: Ditto.
10677 * h8500-tdep.c: Ditto.
10678 * mips-tdep.c: Ditto.
10679 * h8300-tdep.c: Ditto.
10680 * z8k-tdep.c: Ditto.
10681
10682 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10683
10684 From Jimi X <jimix@watson.ibm.com>:
10685 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10686 64-bit SysV ABI.
10687
10688 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10689
10690 From Jimi X <jimix@watson.ibm.com>:
10691 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10692 bfd info.
10693
10694 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10695
10696 From Jimi X <jimix@watson.ibm.com>:
10697 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10698 register sets for these processor variants.
10699
10700 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10701
10702 * regformats/reg-ppc.dat: Support FPSCR.
10703
10704 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10705
10706 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10707 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10708 Add fpscr as an invalid/unfetchable register.
10709 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10710 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10711 (fill_fpregset): Add support for register fpscr.
10712 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10713 (fill_gregset): Account for the fact that register ``mq'' might
10714 not exist.
10715 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10716 (registers_power): Add fpscr to register set at slot 71.
10717 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10718 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10719
10720 2002-04-11 Michael Snyder <msnyder@redhat.com>
10721
10722 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10723 * configure: Regenerate.
10724 * config.in: Regenerate.
10725 * acconfig.h: Add define for _SYSCALL32.
10726 * core-sol2.c: Remove #define _SYSCALL32.
10727 * solib-legacy.c: Remove #define _SYSCALL32.
10728
10729 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10730
10731 * stack.c (select_frame): Cleanup internal error message, do not
10732 use %p.
10733
10734 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10735
10736 * stack.c (select_frame): Check that selected_frame and the
10737 specified level are as expected.
10738 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10739 Update copyright.
10740 * frame.h (struct frame_info): Add field `level'. Update
10741 copyright.
10742 Work-in-progress PR gdb/464.
10743
10744 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10745
10746 * maint.c (maint_print_section_info): Rename print_section_info.
10747 (print_bfd_section_info, print_objfile_section_info): Update.
10748 * inferior.h (struct gdbarch): Add opaque declaration.
10749 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10750 * gdbarch.h: Regenerate.
10751
10752 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10753
10754 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10755 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10756 (kernel_u_size): Added.
10757 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10758 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10759
10760 2002-04-04 Jim Ingham <jingham@apple.com>
10761
10762 * valarith.c (find_size_for_pointer_math): New function, either returns
10763 the size for a pointer's target, returns 1 for void *, or errors for
10764 incomplete types.
10765 (value_add, value_sub): use find_size_for_pointer_math.
10766
10767 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10768
10769 * linux-low.c (linux_look_up_symbols): New hook.
10770 (linux_target_ops): Add linux_look_up_symbols.
10771 * remote-utils.c (decode_address): New function.
10772 (look_up_one_symbol): New function.
10773 * server.c (handle_query): Call target look_up_symbols hook.
10774 * server.h (look_up_one_symbol): Add prototype.
10775 * target.h (struct target_ops): Add look_up_symbols hook.
10776
10777 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10778
10779 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10780 override FP_REGNUM with frame->fp. Update copyright.
10781 * parse.c (num_std_regs, std_regs): Delete.
10782 (target_map_name_to_register): Do not search std_regs. Update
10783 function description.
10784 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10785 declarations. Update copyright.
10786 Fix PR gdb/251.
10787
10788 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10789
10790 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10791 after the last symbol in a block.
10792
10793 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10794
10795 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10796 is non zero as a found symbol.
10797
10798 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10799
10800 * findvar.c: Include "builtin-regs.h".
10801 (value_of_register): Call value_of_builtin_reg when applicable.
10802 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10803 (target_map_name_to_register): Call
10804 builtin_reg_map_name_to_regnum.
10805 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10806 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10807 (builtin_regs_h): Define.
10808 (builtin-regs.o): New target.
10809 (findvar.o): Add $(builtin_regs_h).
10810 * builtin-regs.c, builtin-regs.h: New files.
10811 * std-regs.c: New file.
10812 Partial fix for PR gdb/251.
10813
10814 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10815
10816 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10817 it's no longer required.
10818
10819 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10820
10821 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10822
10823 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10824
10825 From Jimi X <jimix@watson.ibm.com>:
10826 * rs6000-tdep.c (rs6000_software_single_step): Use
10827 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10828 and size. Use target_insert_breakpoint() and
10829 target_remove_breakpoint() to insert and remove breakpoints
10830 instead of explicit memory reads and writes.
10831
10832 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10833
10834 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10835 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10836 ELF_OBJECT_FORMAT ifdef.
10837
10838 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10839
10840 From Jimi X <jimix@watson.ibm.com>:
10841 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10842
10843 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10844
10845 From Jimi X <jimix@watson.ibm.com>:
10846 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10847 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10848
10849 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10850
10851 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10852 s/asprintf/xasprintf/.
10853 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10854
10855 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10856
10857 I believe Jeff Law denies responsability for this one:
10858 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10859 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10860 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10861 Work-around for PR gdb/366.
10862
10863 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10864
10865 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10866 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10867 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10868
10869 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10870
10871 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10872 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10873 information.
10874
10875 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10876
10877 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10878 maintainer.
10879
10880 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10881
10882 * README (Reporting Bugs in GDB): Document the bug web page as the
10883 prefered way of submitting bugs.
10884 Fix PR gdb/402.
10885
10886 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10887
10888 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10889 -1. Update comment.
10890 * gdbarch.h, gdbarch.c: Re-generate.
10891
10892 2002-04-07 Andreas Schwab <schwab@suse.de>
10893
10894 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10895 buffer to regcache_collect.
10896
10897 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10898
10899 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10900 * gdbarch.c, gdbarch.h: Re-generate.
10901
10902 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10903
10904 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10905 declaration. Fix -Werror.
10906
10907 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10908
10909 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10910 * gdbarch.c: Regenerate.
10911
10912 2002-04-05 Michael Snyder <msnyder@redhat.com>
10913
10914 * breakpoint.c (clear_command): Rewrite middle section to
10915 combine two loops with identical control conditions.
10916 Add a cleanup to eliminate a memory leak.
10917 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10918
10919 2002-04-05 H.J. Lu (hjl@gnu.org)
10920
10921 * solib-svr4.c (bkpt_names): Add "__start".
10922
10923 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10924
10925 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10926 as test for 64 bit target.
10927
10928 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10929
10930 * h8500-tdep.c (h8500_write_fp): Delete function.
10931 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10932 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10933 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10935 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10936 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10937 (s390_write_fp):
10938 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10939 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10940 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10941 (d10v_write_fp): Delete function.
10942 * inferior.h (write_fp, generic_target_write_fp): Delete
10943 declarations.
10944 * regcache.c (generic_target_write_fp): Delete function.
10945 (write_fp): Delete function.
10946 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10947 * gdbarch.h, gdbarch.c: Regenerate.
10948 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10949 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10950 (sparc64_write_fp): Delete declaration.
10951 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10952 (h8500_write_fp): Delete declaration.
10953
10954 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10955
10956 * sparc-tdep.c (sparc64_write_fp): Delete.
10957 (sparc_push_dummy_frame): Replace write_fp call with code to store
10958 the FP directly.
10959 (sparc_gdbarch_init): Do not initialize write_fp.
10960
10961 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10962
10963 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10964 clause.
10965
10966 2002-03-29 Jim Blandy <jimb@redhat.com>
10967
10968 * stack.c (get_selected_block): Add new argument `addr_in_block',
10969 used to return the exact code address we used to select the block,
10970 not just the block.
10971 * blockframe.c (get_frame_block, get_current_block): Same.
10972 * frame.h (get_frame_block, get_current_block,
10973 get_selected_block): Update declarations.
10974 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10975 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10976
10977 2002-04-05 Michael Snyder <msnyder@redhat.com>
10978
10979 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10980 warning message.
10981
10982 2002-04-05 J. Brobecker <brobecker@gnat.com>
10983
10984 * utils.c (xfullpath): New function.
10985 * defs.h (xfullpath): Add declaration.
10986 * source.c (openp): Use xfullpath in place of gdb_realpath to
10987 avoid resolving the basename part of filenames when the
10988 associated file is a symbolic link. This fixes a potential
10989 inconsistency between the filenames known to GDB and the
10990 filenames it prints in the annotations.
10991 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10992 to be able to match a filename with either the real filename, or
10993 the name of any symbolic link to this file.
10994 (lookup_partial_symtab): Ditto.
10995
10996 2002-04-04 Michael Snyder <msnyder@redhat.com>
10997
10998 * breakpoint.c: Add support for hardware breakpoints in overlays.
10999 (overlay_events_enabled): New state variable.
11000 (insert_breakpoints): Use overlay_events_enabled to decide
11001 whether to attempt to set a breakpoint at the overlay load addr.
11002 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11003 (remove_breakpoint): Use overlay_events_enabled to decide
11004 whether breakpoints need to be removed from overlay load addr.
11005 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11006 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11007 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11008 disable_overlay_breakpoints): Update overlay_events_enabled.
11009
11010 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11011
11012 * dwarf2read.c (struct function_range): New.
11013 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11014 (check_cu_functions): New.
11015 (read_file_scope): Initialize global function lists.
11016 Call dwarf_decode_line after processing children.
11017 (read_func_scope): Add to global function list.
11018 (dwarf_decode_lines): Call check_cu_functions everywhere
11019 record_line is called. Call record_line with a linenumber
11020 of 0 to mark sequence ends.
11021
11022 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11023
11024 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11025 change sync with glibc.
11026
11027 2002-04-03 Jim Blandy <jimb@redhat.com>
11028
11029 * configure.in: Call AC_C_INLINE.
11030 * configure: Regenerated.
11031
11032 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11035 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11036
11037 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11038
11039 * NEWS: Mention gcore support on FreeBSD/i386.
11040
11041 * fbsd-proc.c: New file.
11042 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11043 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11044
11045 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11046 while statement.
11047
11048 2002-03-29 Jim Blandy <jimb@redhat.com>
11049
11050 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11051 unescaped newlines in string literals, but newer ones don't. So
11052 escape them.
11053
11054 2002-03-26 Michael Snyder <msnyder@redhat.com>
11055 Andrew Cagney <cagney@redhat.com>
11056
11057 * cli/cli-dump.c: New file. Dump memory to file,
11058 restore file to memory.
11059 * cli/cli-dump.h: New file.
11060 * Makefile.in: Add rules, dependencies for cli-dump.o.
11061 * NEWS: Mention new commands.
11062
11063 2002-03-28 Michael Snyder <msnyder@redhat.com>
11064
11065 * symfile.c (symbol_file_add): Move test for null symbols to later.
11066
11067 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11068
11069 From veksler at il.ibm.com:
11070 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11071 the xstrduped original path.
11072 Fix PR gdb/417.
11073
11074 2002-03-27 Michael Snyder <msnyder@redhat.com>
11075
11076 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11077 * infcmd.c (_initialize_infcmd): Ditto.
11078 * language.c (_initialize_language): Ditto.
11079 * symfile.c (_initialize_symfile): Ditto.
11080 * top.c (_init_main): Ditto.
11081 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11082
11083 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11084
11085 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11086 vector registers handling.
11087 (skip_prologue): Handle new AltiVec instructions. Fill in new
11088 fields of frame data.
11089 (frame_get_saved_regs): Fill in information for AltiVec registers.
11090
11091 2002-03-27 Jim Blandy <jimb@redhat.com>
11092
11093 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11094 a function; leave this macro here to invoke that function.
11095 (symbol_init_mangled_name): Declaration for that function.
11096 * symtab.c (symbol_init_mangled_name): New function.
11097
11098 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11099
11100 * valarith.c: Replace strerror with safe_strerror.
11101 * tracepoint.c: Ditto.
11102 * lin-lwp.c: Ditto.
11103 * go32-nat.c: Ditto.
11104 * inflow.c: Ditto.
11105 * gnu-nat.c: Ditto.
11106
11107 2002-03-27 Andreas Schwab <schwab@suse.de>
11108
11109 * event-top.c (command_line_handler): Remove useless if.
11110
11111 2002-03-27 Andreas Jaeger <aj@suse.de>
11112
11113 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11114 comment.
11115
11116 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11117
11118 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11119 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11120 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11121 (x86_64_linux_dr_get_status, supply_gregset),
11122 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11123 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11124 (x86_64_register_info_table): Add.
11125 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11126 (x86_64_register_raw_size, x86_64_register_virtual_type),
11127 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11128 general x86_64_register_info_table.
11129 (i386_gdbarch_init): gdbarch_register_bytes is now set
11130 dynamicaly during initialization.
11131 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11132 * gdbserver/linux-x86-64-low.c: Ditto.
11133
11134 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11135
11136 * gdbserver/server.c (main): Call target_signal_to_host_p
11137 and target_signal_to_host on signals received from the remote.
11138 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11139 target_signal_from_host on signals sent to the remote.
11140 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11141 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11142
11143 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11144
11145 * signals/signals.c: Include "server.h" in gdbserver build.
11146 (target_signal_from_name): Don't use STREQ.
11147 (_initialize_signals): Likewise. Don't include function in
11148 gdbserver build.
11149
11150 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11151
11152 * signals.c: Moved to...
11153 * signals/signals.c: Here.
11154 * Makefile (signals.o): Update.
11155
11156 2002-03-26 Jeff Law (law@redhat.com)
11157
11158 * somread.c (som_symtab_read): Remove some commented out code and
11159 updated related comments. Do not set the minimal symbol table to
11160 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11161 in a dynamic executable.
11162 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11163 where we are unable to find the minimal symbol for the given
11164 PC value.
11165
11166 2002-03-25 Jeff Law (law@redhat.com)
11167
11168 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11169
11170 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11171
11172 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11173
11174 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11175
11176 * command.h: Update copyright.
11177 (struct cmd_list_element): Replace definition with opaque
11178 declaration.
11179 (enum cmd_types): Document that it will eventually be moved to
11180 cli/cli-decode.h
11181 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11182 (MALLOCED_REPLACEMENT): Delete macro.
11183 * Makefile.in (cli_decode_h): Add $(command_h).
11184 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11185 * top.c: Include "cli/cli-decode.h".
11186 * completer.c: Include "cli/cli-decode.h".
11187 * maint.c: Include "cli/cli-decode.h".
11188 * cli/cli-decode.h: Include "command.h".
11189 (enum command_class): Delete.
11190 (enum cmd_types): Comment out.
11191 (enum cmd_auto_boolean): Delete.
11192 (enum var_types): Delete.
11193
11194 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11195
11196 * cli/cli-decode.c: Include "gdb_assert.h".
11197 (add_set_or_show_cmd): New static function.
11198 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11199 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11200 all fields, such as func, from the set command.
11201
11202 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11203
11204 * MAINTAINERS (sh-elf): Change warning flag to -w.
11205
11206 2002-03-23 Andrew Cagney <cagney@redhat.com>
11207
11208 * defs.h (error): Add printf format attribute.
11209 * thread-db.c (thread_from_lwp): Fix error format string.
11210 * stack.c (parse_frame_specification): Ditto.
11211 * cli/cli-decode.c (undef_cmd_error): Ditto.
11212 * scm-lang.c (scm_lookup_name): Ditto.
11213 * tracepoint.c (trace_error): Ditto.
11214 * remote-utils.c (usage): Ditto.
11215 * remote.c (compare_sections_command): Ditto.
11216 Fix PR gdb/328.
11217
11218 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11219
11220 * gdbtypes.c (append_composite_type_field): New function.
11221 (init_composite_type): New function.
11222 * gdbtypes.h (append_composite_type_field): Declare.
11223 (init_composite_type): Ditto.
11224
11225 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11226
11227 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11228 function.
11229 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11230 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11231 structure returning convention for SYSV ABI case, but not
11232 for GNU/Linux, FreeBSD, or NetBSD.
11233
11234 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11235
11236 * symtab.h (lookup_block_symbol): Add mangled_name argument
11237 to prototype.
11238
11239 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11240 with new mangled_name argument.
11241 * linespec.c (decode_line_1): Likewise.
11242 * valops (value_of_this): Likewise.
11243 * symtab.c (lookup_transparent_type): Likewise.
11244 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11245 (lookup_symbol): If we are given a mangled name, pass it down
11246 to lookup_symbol_aux.
11247 (lookup_block_symbol): If we are given a mangled name to check
11248 against, only return symbols which match it.
11249
11250 2002-03-22 Christopher Faylor <cgf@redhat.com>
11251
11252 * win32-nat.c (child_create_inferior): Check for proper shell to use
11253 here, in case the user changes it on the fly.
11254 (_initialize_inftarg): Remove shell path considerations.
11255
11256 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11257
11258 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11259 for gdbarch_max_register_raw_size and max_register_virtual_size.
11260 Adjust copyright year.
11261
11262 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11263
11264 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11265 in a function to cover the entire beginning of the function
11266 as well if it does not already.
11267
11268 2002-03-21 Tom Rix <trix@redhat.com>
11269
11270 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11271 (rs6000_ptrace64): Renamed from ptrace64.
11272
11273 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11274
11275 * gdbserver/remote-utils.c (remote_open): Don't call
11276 getprotobyname, we're all using TCP here so just use
11277 IPPROTO_TCP.
11278 * gdbserver/gdbreplay.c (remote_open): Ditto.
11279
11280 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11281
11282 * regcache.c (_initialize_regcache): No need to call
11283 build_regcache() at this time; it gets called whenever
11284 the gdbarch changes.
11285
11286 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11287
11288 * sparc-nat.c: Include sys/param.h where possible.
11289
11290 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11291
11292 Fix PR gdb/422.
11293 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11294 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11295 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11296 complex types.
11297 * stabsread.c (rs6000_builtin_type): Likewise.
11298 (read_sun_floating_type): Likewise.
11299
11300 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11301
11302 * stabsread.c (read_member_functions): Remove skip code for duplicate
11303 constructor/destructor methods. Use standard parsing for these
11304 methods and just do not chain them to the list of methods after
11305 parsing.
11306
11307 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11308
11309 * coffread.c: Remove redundant static declarations. Replace
11310 occurrences of `PTR' with `void *'.
11311 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11312 * top.h (quit_cover): Likewise.
11313 * defs.h (catch_errors): Likewise.
11314
11315 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11316
11317 * defs.h (XMALLOC): Define.
11318 * gdb-events.sh (XMALLOC): Delete macro.
11319 * gdb-events.c, gdb-events.h: Regenerate.
11320 * gdbarch.sh (XMALLOC): Delete macro.
11321 * gdbarch.c: Regenerate.
11322 * serial.c (XMALLOC): Delete macro.
11323 * ui-file.c (XMALLOC): Ditto.
11324 * ser-unix.h (XMALLOC): Ditto.
11325 * sh-tdep.c (XMALLOC): Ditto.
11326 * ui-out.c (XMALLOC): Ditto.
11327 * utils.c (XMALLOC): Ditto.
11328 * i386-tdep.c (XMALLOC): Ditto.
11329 * gdb-events.c (XMALLOC): Ditto.
11330 * d10v-tdep.c (XMALLOC): Ditto.
11331 * cli-out.c (XMALLOC): Ditto.
11332
11333 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11334 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11335 * ui-file.c, ui-out.c: Ditto.
11336
11337 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11338
11339 * command.h (struct cmd_list_element): Add field context.
11340 (set_cmd_context, get_cmd_context): Declare.
11341 * cli/cli-decode.h: Ditto.
11342 * cli/cli-decode.c (get_cmd_context): New function.
11343 (set_cmd_context): New function.
11344 (add_cmd): Initialize context.
11345 Part of fixing PR gdb/145 and PR gdb/146.
11346
11347 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11348
11349 * cli/cli-decode.c (cmd_type): New function.
11350 * command.h (cmd_type): Declare.
11351 * infrun.c (set_schedlock_func): Call function cmd_type.
11352 * kod.c (kod_set_os): Call cmd_type.
11353 * cris-tdep.c (cris_version_update): Use function cmd_type.
11354 (cris_mode_update, cris_abi_update): Ditto.
11355
11356 * command.h: (execute_cmd_post_hook): Declare.
11357 (execute_cmd_pre_hook): Declare.
11358 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11359 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11360 functions. Execute pre/post hook while ensuring that afterwords
11361 hook_in is cleared.
11362 * top.c (execute_command): Use execute_cmd_post_hook, and
11363 execute_cmd_pre_hook to execute pre/post commands.
11364 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11365 hook_stop_stub.
11366 (hook_stop_stub): Call execute_cmd_pre_hook.
11367
11368 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11369
11370 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11371 set'' and this leads to a core dump. Move xstrdup of
11372 operating_system to after check that it is not NULL.
11373
11374 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11375
11376 * kod.c (kod_set_os): Remove unnecessary check that
11377 ``command->type'' is set_cmd.
11378
11379 * valprint.c (set_input_radix): Use input_radix.
11380 (set_output_radix): Use output_radix.
11381 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11382 isn't reverted.
11383
11384 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11385
11386 * value.h (struct value): Delete field ``substring_addr''. Change
11387 aligner fields to force_doublest_align, force_longest_align,
11388 force_core_addr_align and force_pointer_aligh.
11389
11390 * value.h (struct value): Fix typo in above change.
11391
11392 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11393
11394 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11395 to fix internal_error from ``maintenance print architecture''.
11396
11397 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11398
11399 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11400 for gcc versions after gcc-2.8.1.
11401
11402 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11403
11404 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11405 for method resolution. Restore adjustment of ``this'' pointer after
11406 calling value_struct_elt, which was accidentally removed during the
11407 HP merge.
11408
11409 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11410
11411 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11412 value_of_register.
11413 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11414 get_saved_register.
11415 * value.h (value_of_register): Update.
11416
11417 2002-03-14 Richard Henderson <rth@redhat.com>
11418
11419 * configure.in: Detect declaration for canonicalize_file_name.
11420 * utils.c (canonicalize_file_name): Declare, if needed.
11421 (gdb_realpath): Prefer realpath if available and usable.
11422 * config.in, configure: Rebuild.
11423
11424 2002-03-14 Richard Henderson <rth@redhat.com>
11425
11426 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11427 a constant array bound.
11428
11429 * MAINTAINERS: Add myself to write-after-approval.
11430
11431 2002-03-14 Michael Snyder <msnyder@redhat.com>
11432
11433 * symfile.c (syms_from_objfile): Return immediately if no syms.
11434 (symbol_file_add): Return immediately if no syms.
11435 (find_sym_fns): Return immediately if no syms.
11436
11437 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11438
11439 * gdbserver/remote-util.c (remote_open): Print remote-side's
11440 IP address when remote debugging over the network.
11441
11442 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11443
11444 * config/sparc/fbsd.mh: Fix copyright.
11445 * config/sparc/fbsd.mt: Likewise.
11446
11447 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11448
11449 * MAINTAINERS: Fix typo in name of gdb warnings option.
11450 (x86-64): Fix formating so that this can be parsed by awk.
11451
11452 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11453
11454 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11455 * defs.h: Include "gdb/signals.h".
11456 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11457
11458 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11459
11460 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11461 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11462 from x86-64-tdep.h
11463
11464 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11465 Don Howard <dhoward@redhat.com>
11466
11467 * mips-tdep.c (ST0_FR): Define.
11468 (mips2_fp_compat): New function, temporarily disabled.
11469 (mips_read_fp_register_single): New function.
11470 (mips_read_fp_register_double): New function.
11471 (mips_print_register): Use them.
11472 (do_fp_register_row): Likewise.
11473
11474 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11475
11476 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11477 approval''.
11478
11479 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11480
11481 * stabsread.c (read_member_functions): Fix is_stub test for
11482 static member functions, improve comment.
11483
11484 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11485
11486 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11487 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11488 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11489 commands that set boolean values.
11490 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11491 (arm_rdi_resume): Always initialize PC.
11492 (arm_rdi_open): Don't use rslt as a boolean.
11493 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11494 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11495 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11496 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11497
11498 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11499
11500 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11501 * configure: Rebuilt.
11502
11503 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11504
11505 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11506 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11507
11508 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11509
11510 * cli/cli-decode.c (set_cmd_completer): New function.
11511 * command.h (set_cmd_completer): Declare.
11512 * cli/cli-decode.h (set_cmd_completer): Ditto.
11513
11514 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11515 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11516 * win32-nat.c (_initialize_inftarg): Ditto.
11517 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11518 * proc-api.c (_initialize_proc_api): Ditto.
11519 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11520 * source.c (_initialize_source): Ditto.
11521 * exec.c (_initialize_exec): Ditto.
11522 * solib.c (_initialize_solib): Ditto.
11523 * top.c (init_main): Ditto.
11524 * tracepoint.c (_initialize_tracepoint): Ditto.
11525 * symfile.c (_initialize_symfile): Ditto.
11526 * printcmd.c (_initialize_printcmd): Ditto.
11527 * infcmd.c (_initialize_infcmd): Ditto.
11528 * corefile.c (_initialize_core): Ditto.
11529
11530 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11531
11532 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11533
11534 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11535
11536 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11537
11538 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11539
11540 * NEWS: Update headings, 5.2 has branched.
11541
11542 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11543
11544 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11545 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11546 (register_addr, REGISTER_RAW_SIZE): Likewise.
11547 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11548 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11549
11550 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11551
11552 * MAINTAINERS (x86-64): Add myself.
11553 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11554 changed value_ptr -> struct value *
11555
11556 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11557
11558 * configure.host (sparc64-*-freebsd): Add.
11559 * configure.tgt: Likewise.
11560 * config/sparc/fbsd.mh: New file.
11561 * config/sparc/fbsd.mt: Likewise.
11562 * config/sparc/nm-fbsd.h: Likewise.
11563 * config/sparc/tm-fbsd.h: Likewise.
11564
11565 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11566
11567 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11568 regformats/reg-s390x.dat.
11569
11570 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11571
11572 * utils.c: Add FIXME explaining true/false problem.
11573
11574 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11575
11576 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11577
11578 2002-02-28 Michael Chastain <mec@shout.net>
11579
11580 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11581
11582 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11583
11584 * gdbserver/linux-s390-low.c: New file.
11585 * regformats/reg-s390.dat: New file.
11586 * regformats/reg-s390x.dat: New file.
11587 * gdbserver/configure.srv: Add S/390.
11588 * gdbserver/Makefile.in: Add S/390.
11589 * configure.tgt: Enable gdbserver for S/390.
11590
11591 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11592
11593 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11594 first line of the doc string for "info dos", except at the end of
11595 the sentence, since the short help stops at the first period.
11596
11597 2002-02-28 Jason Merrill <jason@redhat.com>
11598
11599 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11600
11601 2002-02-27 Fred Fish <fnf@redhat.com>
11602
11603 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11604 comment (dumy -> dummy).
11605
11606 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11607
11608 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11609
11610 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11611
11612 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11613
11614 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11615
11616 * gdbserver/acconfig.h: New file.
11617 * gdbserver/i387-fp.c: New file.
11618 * gdbserver/i387-fp.h: New file.
11619 * gdbserver/linux-x86-64.c: New file.
11620 * regformats/reg-x86-64.dat: New file.
11621 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11622 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11623 * gdbserver/configure.in: Add support for regsets.
11624 * gdbserver/config.in: Regenerate.
11625 * gdbserver/configure: Regenerate.
11626 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11627 * gdbserver/linux-low.h: New file.
11628 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11629 for regsets.
11630 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11631 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11632 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11633 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11634 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11635 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11636 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11637 "i387-fp.h". Add PTRACE_GETREGS and friends.
11638 * gdbserver/regcache.c (supply_register): New function.
11639 (supply_register_by_name): New function.
11640 (collect_register): New function.
11641 (collect_register_by_name): New function.
11642
11643 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11644
11645 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11646 (config.status): Add configure.srv dependency.
11647 (server_h): Add config.h dependency.
11648
11649 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11650
11651 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11652 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11653 * gdbserver/configure.srv: Change i386-*-linux* to use
11654 reg-i386-linux.o.
11655
11656 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11657
11658 * x86-64-tdep.c: Re-indent. Update copyright date.
11659
11660 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11661
11662 From Michal Ludvig <mludvig@suse.cz>:
11663 * x86-64-tdep.c (value.h): Delete.
11664 (gdb_assert.h): Include.
11665 (x86_64_register_convert_to_virtual,
11666 x86_64_register_convert_to_raw ): Add check which lets only
11667 floating-point values to be converted.
11668 (value_push): Delete.
11669 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11670 (i386_gdbarch_init): Number of register_bytes fixed.
11671
11672 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11673
11674 * MAINTAINERS: Add x86-64 target.
11675
11676 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11677
11678 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11679 * osfsolib.c (solib_map_sections): Ditto.
11680 * irix5-nat.c (solib_map_sections): Ditto.
11681 * corelow.c (gdb_check_format): Ditto.
11682 * symfile.c (symfile_bfd_open): Ditto.
11683 * solib.c (solib_map_sections): Ditto.
11684 Fix PR gdb/354.
11685
11686 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11687
11688 * remote.c (_initialize_remote): By default, disable ``e'' and
11689 ``E'' step out-of-range packets.
11690
11691 2002-02-26 Andreas Schwab <schwab@suse.de>
11692
11693 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11694 m68k_linux_frame_saved_pc.
11695 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11696 in_sigtramp.
11697 (SIGCONTEXT_PC_OFFSET): Remove.
11698 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11699 m68k_linux_sigtramp_saved_pc): New functions.
11700 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11701 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11702 (UCONTEXT_PC_OFFSET): Define.
11703 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11704 non-RT and RT signal trampolines.
11705
11706 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11707
11708 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11709 (TARGET_NBPG, STACK_END_ADDR): Delete
11710 (VARIABLES_INSIDE_BLOCK): Delete.
11711
11712 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11713
11714 * utils.c (perror_with_name): Make string parameter constant.
11715 (print_sys_errmsg): Ditto.
11716 (query): Ditto.
11717 * defs.h (perror_with_name): Update.
11718 (print_sys_errmsg): Update.
11719 (query): Update.
11720
11721 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11722
11723 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11724 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11725
11726 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11727
11728 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11729 if it already matches the current architecture from the exec file.
11730 Include arch-utils.h for gdbarch_info_init prototype.
11731 * Makefile.in (rs6000-nat.o): Update dependencies.
11732
11733 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11734
11735 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11736 list of exported variables.
11737
11738 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11739
11740 * gdbserver/configure.srv: New file.
11741 * gdbserver/configure.in: Use configure.srv instead
11742 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11743 from it.
11744 * gdbserver/configure: Regenerated.
11745 * gdbserver/terminal.h: New file.
11746 * gdbserver/Makefile.in: Update for configure changes. Remove
11747 more unneeded include paths.
11748
11749 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11750
11751 From wiz at danbala:
11752 * config/sparc/tm-sp64.h: Fix grammar and typos.
11753 Fix PR gdb/287.
11754
11755 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11756
11757 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11758 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11759 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11760 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11761 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11762 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11763 * s390-tdep.c: Ditto.
11764 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11765 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11766 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11767 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11768 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11769 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11770 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11771 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11772 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11773 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11774 Fix PR gdb/378.
11775
11776 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11777
11778 * lin-thread.c: Delete file.
11779 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11780 to gdb_proc_service.h.
11781 * configure: Re-generate.
11782
11783 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11784 * serial.c (serial_open): Delete check for "ocd".
11785 Fix PR gdb/349.
11786
11787 * Makefile.in (linux-thread.o): Delete target.
11788 * linux-thread.c: Delete file.
11789
11790 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11791 renamed SH files to be consistent.
11792
11793 * symtab.c (sort_search_symbols): Use xfree.
11794
11795 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11796
11797 * arm-linux-tdep.c (arm_linux_init_abi): Register
11798 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11799 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11800 definition with undef, since we don't want the sysvr4 definition.
11801 (SKIP_TRAMPOLINE_CODE): Likewise.
11802
11803 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11804
11805 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11806
11807 * configure.in: (AC_CHECK_FUNCS) Added test for
11808 canonicalize_file_name Regenerated.
11809 * config.in, configure: Regenerated.
11810 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11811 defined use canonicalize_file_name.
11812
11813 2002-02-23 Michael Chastain <mec@shout.net>
11814
11815 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11816
11817 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11818
11819 * README: Remove references to cygnus.com.
11820 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11821 dot com'' form. Remove references to cygnus.com and sourceware.
11822
11823 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11824
11825 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11826 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11827 1003.1-2001 no longer allows "head -1".
11828 * gdb/Makefile.in (version.c): Likewise.
11829 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11830 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11831 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11832
11833 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11834
11835 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11836 * command.h (cmd_cfunc_eq): Declare.
11837 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11838
11839 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11840 ``struct cmd_list_element *''.
11841 * cli/cli-cmds.c (is_complete_command): Update. Use
11842 cmd_cfunc_eq.
11843 * top.c (execute_command): Pass the command to
11844 is_complete_command.
11845 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11846
11847 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11848
11849 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11850 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11851 architecture defines.
11852 * s390-tdep.c (s390_gdbarch_init): Likewise.
11853
11854 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11855
11856 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11857 (arm_linux_push_arguments): Likewise.
11858 (arm_linux_init_abi): Register them. Also register linux-specific
11859 call_dummy_words.
11860 (find_minsym_and_objfile): Use strcmp, not STREQ.
11861 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11862 (arm_linux_call_dummy_words): Delete declaration.
11863 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11864 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11865 declarations.
11866 (LOWEST_PC): Delete.
11867
11868 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11869
11870 * maint.c (print_section_info): Do not prepend `0x' to filepos
11871 output, it will be handled by local_hex_string_custom.
11872
11873 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11874
11875 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11876 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11877 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11878
11879 2002-02-22 Jim Blandy <jimb@redhat.com>
11880
11881 Indicate that the bcache functions don't change the strings
11882 they're passed.
11883 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11884 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11885
11886 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11887
11888 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11889
11890 2002-02-21 Christopher Faylor <cgf@redhat.com>
11891
11892 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11893 find the complete path to a loaded DLL.
11894
11895 2002-02-21 Fred Fish <fnf@redhat.com>
11896
11897 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11898 that marks the end of the range of a function, enter a line number
11899 entry that has a line number of zero and a PC offset that matches
11900 the end of the function. This starts a range of PC's for which no
11901 line number information is known.
11902 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11903 PC's for which no line number info is found (line number is zero)
11904 then we didn't find any valid line information.
11905 * symtab.h: Document use of zero line number entry.
11906
11907 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11908
11909 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11910 (have_ptrace_getvrregs): Define for run time checks.
11911 (gdb_vrregset_t): New type for Altivec register handling.
11912 (fetch_register, store_register): Fetch/store altivec register
11913 when needed.
11914 (fetch_altivec_register, store_altivec_register): New functions.
11915 (supply_vrregset, fill_vrregset): New functions.
11916 (fetch_altivec_registers, store_altivec_registers): New functions.
11917 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11918 registers as well.
11919
11920 2002-02-21 Jiri Smid <smid@suse.cz>
11921
11922 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11923
11924 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11925
11926 * Makefile.in (armnbsd-nat.o): Update dependencies.
11927 * armnbsd-nat.c (supply_gregset): New function. Common code to
11928 supply the integer register set.
11929 (supply_fparegset): New function. Similar for FPA registers.
11930 (fetch_regs, fetch_fp_regs): Use them.
11931 (fetch_core_registers): Likewise.
11932 (fetch_elfcore_registers): New function.
11933 (arm_netbsd_elfcore_fns): New core-file type specification.
11934 (_initialize_arm_netbsd_nat): Register it.
11935
11936 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11937
11938 * armnbsd-nat.c: Include gdbcore.h.
11939 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11940 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11941 'void' to declaration, to shut up ARI.
11942 (fetch_core_registers): Make static. Rewrite using supply_register.
11943 (arm_netbsd_core_fns): New core-file type specification.
11944 (_initialize_arm_netbsd_nat): New function.
11945
11946 2002-02-21 Christopher Faylor <cgf@redhat.com>
11947
11948 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11949 value.
11950
11951 2002-02-20 Christopher Faylor <cgf@redhat.com>
11952
11953 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11954 fails.
11955
11956 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11957
11958 * jv-exp.y (parse_number): Change type of implicit longs
11959 to builtin_type_uint64.
11960
11961 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11962
11963 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11964 to be an integer instead of a `union wait'.
11965
11966 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11967
11968 * mips-linux-nat.c: Call the operating system GNU/Linux.
11969 * mips-linux-tdep.c: Likewise.
11970 * mips-tdep.c: Likewise.
11971
11972 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11973
11974 Fix PR gdb/265.
11975 * jv-exp.y (parse_number): Handle 64-bit integers.
11976
11977 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11978
11979 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11980 AC_STDC_HEADERS to AC_HEADER_STDC.
11981 * gdbserver/configure: Regenerated.
11982
11983 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11984
11985 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11986 is defined.
11987 * sparc-tdep.c (get_longjmp_target): Likewise.
11988
11989 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11990
11991 * News: Add news about ARM and Multi-arch. Mention the new target
11992 arm*-*-netbsd*.
11993
11994 2002-02-19 Jim Blandy <jimb@redhat.com>
11995
11996 * stabsread.c (error_type_complaint): Improve error message.
11997
11998 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11999
12000 * gdbserver/README: Update documentation.
12001 * gdbserver/configure.in: Update configury to match documentation.
12002 * gdbserver/Makefile.in: Likewise.
12003 * gdbserver/configure: Regenerated.
12004 * gdbserver/aclocal.m4: New file, generated by aclocal.
12005 * gdbserver/config.in: New file, generated by autoheader.
12006
12007 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12008
12009 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12010 armnbsd-nat.c.
12011
12012 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12013
12014 * arm-tdep.h (enum arm_float_model): New enum.
12015 (struct gdbarch_tdep): Add fp_model.
12016 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12017 up floating-point conversions until we know the floating-point model
12018 in use by the inferior. Don't complain about being unable to
12019 determine the ABI of the inferior when we don't have one.
12020 (arm_extract_return_value): Support different floating-point models.
12021 (arm_store_return_value): Likewise.
12022 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12023 ARM_FLOAT_SOFT.
12024 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12025
12026 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12027
12028 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12029 of ``current_gdbarch''.
12030
12031 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12032
12033 * armnbsd-nat.c : ANSIfy all function declarations.
12034 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12035 (fetch_inferior_registers): Re-implement in terms of above.
12036 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12037 (store_inferior_registers): Re-implement in terms of above.
12038
12039 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12040
12041 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12042 kernel.
12043 * arm-linux-tdep.c: Likewise.
12044 * config/arm/tm-linux.h: Likewise.
12045
12046 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12047
12048 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12049 * config/arm/nbsd.mt (TM_FILE): Delete.
12050 * config/arm/tm-nbsd.h: Delete.
12051
12052 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12053
12054 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12055 Initialize CALL_DUMMY_LENGTH.
12056
12057 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12058
12059 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12060 function.
12061 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12062 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12063 defines one thing and that is incorrect for this port.
12064 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12065
12066 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12067
12068 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12069
12070 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12071
12072 * win32-nat.c (display_selector): New function. Displays information
12073 about the information returned by GetThreadSelectorEntry API function.
12074 (display_selectors): New function. Displays the infomation of
12075 the selector given as argument, or of CS, DS ans FS selectors
12076 if no argument is given.
12077 ( _initialize_inftarg): Add "w32" as info prefix command.
12078 Add "info w32 selector" as command calling display_selectors.
12079
12080 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12081
12082 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12083 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12084 if not defined.
12085
12086 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12087
12088 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12089
12090 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12091
12092 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12093 (arm_fix_call_dummy): Call it.
12094 (arm_call_dummy_breakpoint_offset): Delete.
12095 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12096 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12097
12098 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12099
12100 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12101 Default to func_frame_chain_valid.
12102 * gdbarch.h, gdbarch.c: Re-generate.
12103 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12104
12105 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12106
12107 * ppc-linux-nat.c: Update copyright.
12108 (fetch_register, store_register): Add tid parameter, don't compute
12109 tid here.
12110 (fetch_ppc_registers, store_ppc_registers): Add tid
12111 parameter. Pass it along to callees.
12112 (fetch_inferior_registers, store_inferior_registers): Compute tid
12113 here, and pass it to calleed functions.
12114 (fill_gregset, supply_fpregset): Clean up formatting.
12115
12116 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12117
12118 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12119 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12120
12121 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12122
12123 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12124 * gdbarch.c gdbarch.h: Regenerate.
12125 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12126 function.
12127 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12128 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12129 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12130
12131 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12132 * arm-tdep.c (arm_get_longjmp_target): New function.
12133 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12134 this to a positive value register arm_get_longjmp_target as the
12135 longjmp handler.
12136 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12137 (arm_linux_init_abi): Set up longjmp description in tdep.
12138 * armnbsd-nat.c (get_longjmp_target): Delete.
12139 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12140 description in tdep.
12141 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12142 (get_longjmp_target): Delete declaration.
12143 (GET_LONGJMP_TARGET): Delete.
12144 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12145 (GET_LONGJMP_TARGET): Delete.
12146
12147 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12148
12149 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12150 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12151 of ``current_gdbarch''.
12152
12153 2002-02-17 Tom Tromey <tromey@redhat.com>
12154
12155 * cli/cli-cmds.c (compare_strings): New function.
12156 (complete_command): Only print each unique item once.
12157 * completer.h (complete_line): Declare.
12158 * completer.c (complete_line): New function.
12159 (line_completion_function): Use it.
12160
12161 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12162
12163 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12164 * gdbarch.h, gdbarch.c: Re-generate.
12165
12166 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12167
12168 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12169
12170 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12171
12172 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12173 * valops.c (value_arg_coerce): Don't take the address of a reference
12174 to convert an argument to a reference.
12175
12176 2002-02-15 Christopher Faylor <cgf@redhat.com>
12177
12178 * win32-nat.c (get_image_name): New function.
12179 (handle_load_dll): Use get_image_name function.
12180 (get_child_debug_event): Avoid registering debug events until possibly
12181 execed process is started.
12182 (child_create_inferior): Allow invocation via shell so that command
12183 line redirection, etc. works ok.
12184 (_initialize_inftarg): Add new command: "set shell" to control whether
12185 a shell is used to start a process.
12186
12187 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12190 instead of find_register_by_number.
12191 (cannot_store_register): Likewise.
12192
12193 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12194
12195 * dwarf2read.c: Replace fprintf (stderr, ...) by
12196 fprintf_unfiltered (gdb_stderr, ...).
12197
12198 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12199
12200 * gdbserver/gdbserver.1: Document --attach.
12201
12202 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12203
12204 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12205 descriptions.
12206 * arm-tdep.c (arm_default_arm_le_breakpoint)
12207 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12208 (arm_default_thumb_be_breakpoint): New. Initialize them from
12209 traditional breakpoint defines.
12210 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12211 (arm_gdbarch_init): Initialize new breakpoint variables.
12212 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12213 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12214 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12215 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12216 code out to ...
12217 (arm_netbsd_init_abi_common): ... here; new function.
12218 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12219 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12220 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12221 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12222
12223 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12224
12225 * arm-tdep.h (enum arm_abi): New enum.
12226 (struct gdbarch_tdep): New structure.
12227 (LOWEST_PC): Provide a default.
12228 (arm_gdbarch_register_os_abi): Declare new function.
12229 * arm-tdep.c (arm_abi_names): New array.
12230 (process_note_abi_tag_sections): New function.
12231 (get_elfosabi): New function.
12232 (arm_gdbarch_register_os_abi): New function.
12233 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12234 support for that ABI has been built in, then call the appropriate
12235 configuration routine. Use gdbarch_num_regs() to get the number
12236 of registers.
12237 (arm_dump_tdep): New function.
12238 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12239 place-holder functions.
12240 (_initialize_arm_tdep): Register them.
12241 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12242
12243 * armnbsd-tdep.c: New file.
12244 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12245 * config/arm/nbsd.mt (TDEPFILES): Add it.
12246 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12247
12248 * armnbsd-nat.c: Include regcache.h.
12249 * Makefile.in (armnbsd-nat.o): Update dependency list.
12250
12251 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12252
12253 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12254
12255 * gdbserver/Makefile.in: Fix typos in target rules.
12256
12257 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12258
12259 Fix part of PR gdb/267.
12260 * linespec.c (find_methods): Handle constructors specially for now.
12261
12262 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12263
12264 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12265 handling.
12266 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12267 standard_coerce_float_to_double().
12268
12269 2002-02-14 Christopher Faylor <cgf@redhat.com>
12270
12271 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12272 GDBINIT_FILENAME.
12273
12274 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12275
12276 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12277 find_variant_by_name, because it confuses the multiarch
12278 framework. Return NULL if there isn't an architecture with the
12279 user supplied name, instead of forcing a different one without
12280 recording the change with the multiarch machinery.
12281 (find_variant_by_name): Delete.
12282
12283 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12284
12285 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12286 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12287
12288 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12289
12290 * stack.c (print_frame_info_base): When calling
12291 print_frame_info_listing_hook, set current_source_symtab.
12292
12293 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12294
12295 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12296 and remove unused $(INCLUDE_DIR).
12297 Add regcache.c to OBS.
12298 Add generated register protocol files to clean target.
12299 Update dependencies for new objects, obsolete old target code.
12300
12301 * gdbserver/linux-low.c: Remove all platform-specific code to
12302 new files. Remove various dead code. Update to use regcache
12303 functionality.
12304 * gdbserver/remote-utils.c (fromhex): Add return statement
12305 to quiet warning.
12306 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12307 constant.
12308 (input_interrupt): Add integer parameter to match prototype
12309 of a signal handler.
12310 (outreg): Use register_data ().
12311 (prepare_resume_reply): Use gdbserver_expedite_regs.
12312 * gdbserver/server.c (main): Dynamically allocate own_buf because
12313 PBUFSIZ is no longer constant. Use registers_to_string () and
12314 registers_from_string ().
12315 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12316 for error (), fatal (), and warning (). Update definition of
12317 PBUFSIZ to use regcache functionality. Add include guard.
12318 * gdbserver/utils.c (fatal): Add missing ``const''.
12319 (warning): New function.
12320
12321 * regformats/regdat.sh: Include "regcache.h" in generated files.
12322 Provide init_registers () function.
12323 * regformats/regdef.h: Add prototype for set_register_cache ().
12324 Add include guard.
12325
12326 * gdbserver/linux-arm-low.c: New file.
12327 * gdbserver/linux-i386-low.c: New file.
12328 * gdbserver/linux-ia64-low.c: New file.
12329 * gdbserver/linux-m68k-low.c: New file.
12330 * gdbserver/linux-mips-low.c: New file.
12331 * gdbserver/linux-ppc-low.c: New file.
12332 * gdbserver/linux-sh-low.c: New file.
12333
12334 * gdbserver/regcache.c: New file.
12335 * gdbserver/regcache.h: New file.
12336
12337 * gdbserver/low-linux.c: Removed obsolete file.
12338
12339 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12340
12341 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12342 * config/i386/linux.mt: Likewise.
12343 * config/ia64/linux.mt: Likewise.
12344 * config/m68k/linux.mh: Likewise.
12345 * config/powerpc/linux.mh: Likewise.
12346 * config/mips/linux.mt: Likewise.
12347
12348 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12349
12350 * config/i386/i386lynx.mh: Mark gdbserver variables
12351 as (currently) obsolete for this target.
12352 * config/i386/nbsd.mt: Likewise.
12353 * config/i386/nbsdelf.mt: Likewise.
12354 * config/m32r/m32r.mt: Likewise.
12355 * config/m68k/m68klynx.mh: Likewise.
12356 * config/m68k/nbsd.mt: Likewise.
12357 * config/m68k/sun3os4.mh: Likewise.
12358 * config/mips/vr5000.mt: Likewise.
12359 * config/ns32k/nbsd.mt: Likewise.
12360 * config/pa/hppabsd.mh: Likewise.
12361 * config/pa/hppaosf.mh: Likewise.
12362 * config/powerpc/nbsd.mt: Likewise.
12363 * config/rs6000/rs6000lynx.mh: Likewise.
12364 * config/s390/s390.mt: Likewise.
12365 * config/s390/s390x.mt: Likewise.
12366 * config/sparc/sparclynx.mh: Likewise.
12367 * config/sparc/sun4os4.mh: Likewise.
12368 * config/i386/x86-64linux.mt: Likewise.
12369 * config/sparc/linux.mh: Likewise.
12370
12371 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12372
12373 * configure.tgt: Configure gdbserver only for known working
12374 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12375 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12376 SUBDIRS if it is configured. Update comment for ${nativefile}.
12377 * configure: Regenerated.
12378
12379 2002-02-13 Michael Snyder <msnyder@redhat.com>
12380
12381 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12382
12383 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12384 (default_gcore_mach): Just return 0, work around a problem in bfd.
12385 (default_gcore_target): OK to return NULL if exec_bfd is null.
12386 (make_mem_sec): Use a cast, avoid a warning.
12387
12388 * procfs.c (find_memory_regions_callback): Use a cast instead of
12389 calling host_pointer_to_address (which complains if
12390 sizeof (host pointer) != sizeof (target pointer)).
12391 (procfs_make_note_section): Avoid overflow in psargs string.
12392
12393 * procfs.c (procfs_make_note_section): Make the default
12394 implementation return an error.
12395
12396 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12397
12398 * procfs.c (procfs_make_note_section): Provide a default definition
12399 (for alpha-dec-osf4.0f). Fix typos.
12400
12401 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12402
12403 * linux-proc.c: Add include of regcache.h.
12404 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12405
12406 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12407
12408 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12409 * memattr.c (create_mem_region): Disallow useless empty region.
12410 Regions are half-open intervals, so allow [A..B) [B..C) as
12411 non-overlapping.
12412
12413 2002-02-13 Michael Chastain <mec@shout.net>
12414
12415 * defs.h: Kill CONST_PTR.
12416 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12417 * c-lang.c (c_builtin_types): Likewise.
12418 * ch-lang.c (ch_builtin_types): Likewise.
12419 * f-lang.c (f_builtin_types): Likewise.
12420 * language.c (unknown_builtin_types): Likewise.
12421 * m2-lang.c (m2_builtin_types): Likewise.
12422 * p-lang.c (pascal_builtin_types): Likewise.
12423 * scm-lang.c (c_builtin_types): Likewise.
12424
12425 2002-02-13 Keith Seitz <keiths@redhat.com>
12426
12427 * arm-tdep.h (arm_get_next_pc): Add declaration.
12428
12429 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12430
12431 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12432 with other related struct-returning functions.
12433 (arm_extract_struct_value_address): New function.
12434 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12435 initialize float_format, double_format and long_double_format as
12436 appropriate to the endianness of the target.
12437 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12438 (arm_use_struct_convention): Delete declaration.
12439 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12440
12441 2002-02-13 Keith Seitz <keiths@redhat.com>
12442
12443 * defs.h (core_addr_to_string_nz): New function.
12444
12445 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12446
12447 Apply missing bits of 2002-01-15 patch.
12448 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12449 (fill_fpregset): Use i387_fill_fsave.
12450
12451 2002-02-12 Keith Seitz <keiths@redhat.com>
12452
12453 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12454 (core_addr_to_string_nz): New function.
12455
12456 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12457
12458 * arm-linux-nat.c: Really include arm-tdep.h.
12459 * config/arm/tm-linux.h (struct type, struct value): Declare.
12460
12461 2002-02-11 Michael Snyder <msnyder@redhat.com>
12462
12463 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12464 (gcore section): Ifdef for Solaris and Unixware only.
12465 (procfs_do_thread_registers): Unixware needs one lwpstatus
12466 per thread (not one prstatus or pstatus).
12467 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12468 not over all gdb threads. For unixware, call elfcore_write_pstatus
12469 once before iterating over threads.
12470
12471 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12472
12473 * arm-tdep.h: New file.
12474 * arm-tdep.c: Include arm-tdep.h.
12475 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12476 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12477 (arm_print_float_info, arm_register_type, convert_to_extended)
12478 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12479 (arm_extract_return_value, arm_register_name): Make static.
12480 (arm_software_single_step): Similarly. Fix types in declaration.
12481 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12482 (arm_store_return_value, arm_store_struct_return): New functions.
12483 (arm_gdbarch_init): Register the above functions. Also register
12484 call_dummy_start_offset, sizeof_call_dummy_words,
12485 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12486 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12487 max_register_virtual_size, register_size. Set up
12488 prologue_cache.saved_regs here, rather than ...
12489 (_initialize_arm_tdep): ... here.
12490 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12491 declarations.
12492 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12493 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12494 (arm_print_float_info, arm_register_type, convert_to_extended)
12495 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12496 (arm_extract_return_value, arm_register_name): Delete declarations.
12497 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12498 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12499 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12500 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12501 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12502 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12503 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12504 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12505 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12506 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12507 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12508 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12509 interface.
12510 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12511 * remote-rdi.c remote-rdp.c: Likewise.
12512 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12513 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12514 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12515 definition.
12516
12517 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12518 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12519 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12520 from non-ARM_ prefixed definitions.
12521 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12522 all uses of above.
12523 * remote-rdi.c remote-rdp.c: Likewise.
12524 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12525
12526 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12527
12528 * arm-tdep.c (arm_frameless_function_invocation)
12529 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12530 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12531 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12532 (arm_pop_frame, arm_get_next_pc): Make static.
12533 (arm_gdbarch_init): Register above in gdbarch structure.
12534 (arm_read_fp): Renamed from arm_target_read_fp.
12535 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12536 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12537 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12538 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12539 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12540 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12541 (arm_pc_is_thumb_dummy): Delete declarations.
12542 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12543 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12544 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12545 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12546
12547 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12548
12549 * symtab.c (compare_search_syms): New function.
12550 (sort_search_symbols): New function.
12551 (search_symbols): Sort symbols after searching rather than
12552 before.
12553
12554 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12555
12556 * NEWS: Linux -> GNU/Linux.
12557
12558 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12559
12560 * gdbarch.sh: For for level one methods, disallow a definition
12561 when partially multi-arched. Add comments explaining rationale.
12562 * gdbarch.h: Re-generate.
12563
12564 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12565
12566 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12567 multi-arch partial.
12568
12569 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12570
12571 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12572 field. Use diff -u.
12573 * gdbarch.c: Re-generate.
12574
12575 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12576
12577 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12578 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12579 partial.
12580
12581 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12582
12583 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12584 multi-arch partial.
12585 (PUSH_ARGUMENTS): Switch to using predefault.
12586 * gdbarch.c: Regenerate.
12587
12588 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12589
12590 * valops.c (PUSH_ARGUMENTS): Delete definition.
12591 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12592 partial. Default to default_push_arguments.
12593 * gdbarch.h, gdbarch.c: Regenerate.
12594
12595 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12596
12597 * defs.h (throw_exception): Rename return_to_top_level. Update
12598 comments.
12599 * utils.c (error_stream, internal_verror, quit): Ditto.
12600 * top.c (throw_exception, catcher): Ditto.
12601 * sparclet-rom.c (sparclet_load): Ditto.
12602 * remote.c (interrupt_query, minitelnet): Ditto.
12603 * remote-sds.c (interrupt_query): Ditto.
12604 * remote-mips.c (mips_error, mips_kill): Ditto.
12605 * ocd.c (interrupt_query): Ditto.
12606 * monitor.c (monitor_interrupt_query): Ditto.
12607 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12608 * target.h: Update comment.
12609
12610 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12611
12612 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12613
12614 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12615 default_double_format.
12616 * gdbarch.h, gdbarch.c: Re-generate.
12617 * findvar.c (floatformat_unknown): Delete variable definition.
12618 * doublest.h (floatformat_unknown): Delete variable declaration.
12619
12620 2002-02-09 Jim Blandy <jimb@redhat.com>
12621
12622 * stabsread.c (read_type): Add code to parse Sun's syntax for
12623 prototyped function types.
12624
12625 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12626
12627 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12628 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12629
12630 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12631
12632 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12633 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12634 now _initialize_xcoffsolib gets called again and overrides the
12635 commands from solib.c in a native configuration.
12636
12637 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12638
12639 * doublest.c (store_typed_floating): Don't try to return a value.
12640 Fixes PR gdb/290.
12641
12642 2002-02-08 Jim Blandy <jimb@redhat.com>
12643
12644 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12645 is prototyped and has no arguments, print its argument list as
12646 `(void)'.
12647
12648 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12649
12650 * MAINTAINERS (write-after-approval): Add myself.
12651 (paper-trail): I've escaped!
12652
12653 2002-02-08 Christopher Faylor <cgf@redhat.com>
12654
12655 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12656 changes.
12657 (_initialize_check_for_gdb_ini): Ditto.
12658
12659 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12660
12661 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12662 xaprintf -> xasprintf.
12663
12664 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12665
12666 * win32-nat.c: Remove use of printf and sprintf functions.
12667
12668 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12669
12670 * arm-tdep.c (arm_frame_chain_valid): Make static.
12671 (arm_push_arguments): Likewise.
12672 (arm_gdbarch_init): New function.
12673 (_initialize_arm_tdep): Call it.
12674 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12675 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12676 (FRAME_CHAIN_VALID): Delete.
12677 (arm_frame_chain_valid): Delete declaration.
12678 (PUSH_ARGUMENTS): Delete.
12679 (arm_push_arguments): Delete declaration.
12680 (CALL_DUMMY_P): Delete.
12681
12682 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12683 Corinna Vinschen <vinschen@redhat.com>
12684
12685 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12686 on builtin float types.
12687
12688 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12689
12690 * utils.c: Include <curses.h> before "bfd.h".
12691 * tui/tui-hooks.c: Likewise.
12692 * tui/tui.c: Likewise.
12693 * tui/tuiCommand.c: Likewise.
12694 * tui/tuiData.c: Likewise.
12695 * tui/tuiDataWin.c: Likewise.
12696 * tui/tuiDisassem.c: Likewise.
12697 * tui/tuiGeneralWin.c: Likewise.
12698 * tui/tuiIO.c: Likewise.
12699 * tui/tuiLayout.c: Likewise.
12700 * tui/tuiRegs.c: Likewise.
12701 * tui/tuiSource.c: Likewise.
12702 * tui/tuiSourceWin.c: Likewise.
12703 * tui/tuiStack.c: Likewise.
12704 * tui/tuiWin.c: Likewise.
12705
12706 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12707
12708 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12709 to include space for pseudoregs as well. Update loops accordingly.
12710 (sh_fp_frame_init_saved_regs): Ditto.
12711 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12712
12713 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12714
12715 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12716 Add Richard Earnshaw to Arm maintainers.
12717
12718 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12719
12720 * defs.h (warning_begin): Delete declaration.
12721
12722 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12723 Delete macro.
12724
12725 2002-02-07 Michael Snyder <msnyder@redhat.com>
12726
12727 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12728 Logic bug, remove misplaced else.
12729
12730 2002-02-07 Klee Dienes <klee@apple.com>
12731
12732 * fork-inferior.c (fork_inferior): Add '!' to the list of
12733 characters that need to be quoted when building a string for the
12734 shell. Quote '!' specifically with a backslash, since CSH chokes
12735 when trying to evaluate "str!str".
12736
12737 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12738
12739 * rdi-share/host.h: Only provide a typedef for bool if it is not
12740 defined.
12741
12742 2002-02-04 Michael Snyder <msnyder@redhat.com>
12743
12744 * breakpoint.h (enum bptype): Add new overlay event bp type.
12745 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12746
12747 * breakpoint.c (create_internal_breakpoint): New function.
12748 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12749 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12750 (create_thread_event_breakpoint): Ditto.
12751 (create_solib_event_breakpoint): Ditto.
12752 (create_overlay_event_breakpoint): New function.
12753 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12754 (update_breakpoints_after_exec): Delete and re-initialize
12755 overlay event breakpoints after an exec. Add FIXME comment
12756 about longjmp breakpoint.
12757 (print_it_typical): Ignore overlay event breakpoints.
12758 (print_one_breakpoint): Ditto.
12759 (mention): Ditto.
12760 (bpstat_what): Do not stop for overlay event breakpoints.
12761 (delete_breakpoint): Don't delete overlay event breakpoints.
12762 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12763 (breakpoint_re_set): Re-create overlay event breakpoint.
12764
12765 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12766 (overlay_manual_command): Disable overlay breakpoints.
12767 (overlay_off_command): Disable overlay breakpoints.
12768
12769 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12770
12771 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12772 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12773 to here from config/tm-arm.h.
12774 (coff_sym_is_thumb): Make static.
12775 (arm_elf_make_msymbol_special): New function.
12776 (arm_coff_make_msymbol_special): New function.
12777 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12778 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12779 (coff_sym_is_thumb): Delete declaration.
12780 (arm_elf_make_msymbol_special): Declare.
12781 (arm_coff_make_msymbol_special): Declare.
12782 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12783 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12784
12785 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12786
12787 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12788
12789 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12790
12791 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12792 * gdbarch.c gdbarch.h: Regenerate.
12793 * arch-utils.c (default_print_float_info): New function.
12794 * arch-utils.h (default_print_float_info): Prototype it.
12795 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12796 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12797 (PRINT_FLOAT_INFO): Document it.
12798
12799 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12800 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12801 (PRINT_FLOAT_INFO): Define.
12802
12803 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12804
12805 * win32-nat.c (_initialize_check_for_gdb_ini):
12806 Add typecast to sprintf argument to suppress a warning.
12807
12808 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12809
12810 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12811 to allow easier handling of pass state.
12812 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12813 that gives exception name and address.
12814 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12815 and set last_sig value to ourstatus->value.sig. Some missing
12816 exceptions added.
12817 (child_continue): Correctly report continue_status.
12818 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12819 TARGET_SIGNAL_0 (new default value).
12820 (child_resume): consider sig argument passed to decide if
12821 the exception should be passed to debuggee or not.
12822
12823 2002-02-05 Michael Snyder <msnyder@redhat.com>
12824
12825 * regcache.c (fetch_register): Call target_fetch_register
12826 only if we don't call FETCH_PSEUDO_REGISTER.
12827 (store_register): Call target_store_register only if we
12828 don't call STORE_PSEUDO_REGISTER.
12829
12830 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12831
12832 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12833 ELF_MAKE_MSYMBOL_SPECIAL.
12834 * gdbarch.c, gdbarch.h: Regenerate.
12835 * arch-utils.c (default_make_msymbol_special): New function.
12836 * arch-utils.h (default_make_msymbol_special): Export.
12837 * elfread.c (elf_symtab_read): Compile use of
12838 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12839 multiarched.
12840 * coffread.c (coff_symtab_read): Ditto, for
12841 COFF_MAKE_MSYMBOL_SPECIAL.
12842
12843 2002-02-05 Jim Blandy <jimb@redhat.com>
12844
12845 * solib-svr4.c (svr4_truncate_ptr): New function.
12846 (svr4_relocate_section_addresses): Do the address arithmetic with
12847 the appropriate truncation for target addresses, even when
12848 CORE_ADDR is larger than a target address.
12849
12850 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12851
12852 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12853 to (int *).
12854
12855 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12856
12857 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12858 code.
12859
12860 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12861
12862 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12863
12864 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12865
12866 * gdbserver/linux-low.c: Remove unused include files.
12867
12868 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12869
12870 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12871 (read_inferior_memory): Use it.
12872 (write_inferior_memory): Likewise.
12873
12874 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12875
12876 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12877 grubbing through sys_errlist.
12878
12879 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12880
12881 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12882
12883 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12884 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12885
12886 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12887
12888 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12889 (do_sfunc, set_cmd_sfunc): New functions.
12890
12891 * command.h (struct cmd_list_element): Add field func.
12892 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12893 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12894 * cli/cli-decode.h: Ditto.
12895
12896 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12897 (help_all, help_cmd_list): Ditto.
12898 (find_cmd, complete_on_cmdlist): Ditto.
12899 * top.c (execute_command): Ditto.
12900
12901 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12902 function.sfunc.
12903
12904 * infcmd.c (notice_args_read): Fix function signature.
12905
12906 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12907 * cli/cli-decode.c (add_set_cmd): Ditto.
12908 * utils.c (initialize_utils): Ditto.
12909 * maint.c (_initialize_maint_cmds): Ditto.
12910 * infrun.c (_initialize_infrun): Ditto.
12911 * demangle.c (_initialize_demangler): Ditto.
12912 * remote.c (add_packet_config_cmd): Ditto.
12913 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12914 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12915 * proc-api.c (_initialize_proc_api): Ditto.
12916 * kod.c (_initialize_kod): Ditto.
12917 * valprint.c (_initialize_valprint): Ditto.
12918 * top.c (init_main): Ditto.
12919 * infcmd.c (_initialize_infcmd): Ditto.
12920 * corefile.c (_initialize_core): Ditto.
12921 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12922 * arch-utils.c (initialize_current_architecture): Ditto.
12923 (_initialize_gdbarch_utils): Ditto.
12924 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12925
12926 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12927 * wince.c (_initialize_inftarg): Ditto.
12928 * symfile.c (_initialize_symfile): Ditto.
12929 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12930 * language.c (_initialize_language): Ditto.
12931 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12932
12933 2002-02-04 Michael Snyder <msnyder@redhat.com>
12934
12935 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12936
12937 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12940 Add rules for building the register data files.
12941
12942 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12943
12944 * regformats/regdat.sh: Add braces to the definition of
12945 expedite_regs_${arch}.
12946
12947 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12948
12949 * regformats/regdef.h (struct reg): Add comment describing the
12950 requirements for offset and size fields.
12951
12952 2002-02-04 Andreas Schwab <schwab@suse.de>
12953
12954 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12955 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12956
12957 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12958
12959 * gdbarch.sh (copyright): Update years in generated header.
12960 (SMASH_TEXT_ADDRESS): Add rule.
12961 * gdbarch.h, gdbarch.c: Re-generate.
12962 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12963 * dbxread.c: Likewise.
12964 * dwarfread.c: Likewise.
12965 * elfread.c: Likewise.
12966 * somread.c: Likewise.
12967
12968 * arm-tdep.c (arm_smash_text_address): New function.
12969 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12970
12971 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12972
12973 Add support for hardware watchpoints on win32 native.
12974 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12975 CONTEXT_DEBUG_REGISTERS.
12976 (dr variable): New variable. Static array containing a local copy
12977 of debug registers.
12978 (debug_registers_changed): New variable. Reflects when debug registers
12979 are changed and need to be written to inferior.
12980 (debug_registers_used): New variable. Reflects when any debug register
12981 was set, used when new threads are created.
12982 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12983 i386-nat code.
12984 (thread_rec): Set dr array if id is the thread of current_event .
12985 (child_continue, child_resume): Change the debug registers for all
12986 threads if debug_registers_changed.
12987 (child_add_thread): Change the debug registers if debug_registers_used.
12988 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12989 Link nm.h to new nm-cygwin.h file.
12990 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12991 of hardware registers.
12992
12993 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12994
12995 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12996 Restore behavour broken by 2002-01-20 Andrew Cagney
12997 <ac131313@redhat.com> IEEE_FLOAT removal.
12998
12999 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13000
13001 * c-valprint.c (c_val_print): Pass a proper valaddr to
13002 cp_print_class_method.
13003 * valops.c (search_struct_method): If there is only one method
13004 and args is NULL, return that method.
13005
13006 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13007
13008 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13009 accessing tag_name directly.
13010
13011 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13012
13013 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13014 of accessing tag_name directly.
13015
13016 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13017
13018 PR gdb/280
13019 * gdbtypes.c (replace_type): New function.
13020 * gdbtypes.h (replace_type): Add prototype.
13021 * stabsread.c (read_type): Use replace_type.
13022
13023 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13024
13025 * Makefile.in (memattr.o): Add missing dependencies rule.
13026
13027 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13028
13029 * breakpoint.c (break_at_finish_command): Really export.
13030 (break_at_finish_at_depth_command): Ditto.
13031 (tbreak_at_finish_command): Ditto.
13032 * hppa-tdep.c: Include completer.h.
13033 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13034 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13035
13036 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13037
13038 * utils.c (do_write): New function.
13039 (error_stream): Rewrite combining the code from error_begin and
13040 verror.
13041 (verror): Rewrite using error_stream.
13042 (error_begin): Delete function.
13043
13044 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13045
13046 * utils.c (error_begin): Make static.
13047 * defs.h (error_begin): Delete declaration.
13048
13049 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13050 (decode_line_1): Use cplusplus_error instead of error_begin,
13051 cplusplus_hint and return_to_top_level.
13052 * coffread.c (coff_symfile_read): Use error instead of error_begin
13053 and return_to_top_level.
13054 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13055
13056 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13057
13058 * language.h (type_error, range_error): Make string parameter
13059 constant.
13060 * language.c (warning_pre_print): Delete extern declaration.
13061 * dwarfread.c (warning_pre_print): Ditto.
13062 * language.c (type_error, range_error): Rewrite to use verror and
13063 vwarning instead of warning_begin.
13064
13065 2002-02-01 Michael Snyder <msnyder@redhat.com>
13066
13067 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13068 (set_ignore_count): Move misplaced comment back where it belongs.
13069
13070 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13071
13072 * command.h (NO_FUNCTION): Delete macro.
13073 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13074 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13075 * tracepoint.c (_initialize_tracepoint): Ditto.
13076 * cli/cli-decode.c (add_set_cmd): Ditto.
13077 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13078
13079 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13080
13081 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13082 Update ``this'' pointer when calling virtual functions.
13083
13084 2002-02-01 Michael Snyder <msnyder@redhat.com>
13085
13086 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13087 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13088
13089 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13090
13091 * regformats/reg-arm.dat: New file.
13092 * regformats/reg-i386.dat: New file.
13093 * regformats/reg-ia64.dat: New file.
13094 * regformats/reg-m68k.dat: New file.
13095 * regformats/reg-mips.dat: New file.
13096 * regformats/reg-ppc.dat: New file.
13097 * regformats/reg-sh.dat: New file.
13098 * regformats/regdef.h: New file.
13099 * regformats/regdat.sh: New file.
13100
13101 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13102
13103 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13104 (arm_frame_args_address, arm_frame_locals_address): New functions.
13105 (arm_frame_num_args): New function.
13106 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13107 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13108 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13109
13110 2002-01-31 Michael Snyder <msnyder@redhat.com>
13111
13112 * breakpoint.c (break_at_finish_command): Export.
13113 (break_at_finish_at_depth_command): Export.
13114 (tbreak_at_finish_command): Export.
13115 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13116 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13117 "txbreak" commands, which are HPPA specific.
13118
13119 * printcmd.c (disassemble_command): Remove an ancient
13120 artifact of an old merge.
13121
13122 * symfile.h (enum overlay_debugging_state):
13123 Define enum constant values for overlay mode.
13124 * symfile.c (overlay_debugging): Use enums instead of literals.
13125 (overlay_is_mapped, overlay_auto_command,
13126 overlay_manual_command): Ditto.
13127
13128 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13129 breakpoint_here_p, breakpoint_inserted_here_p,
13130 breakpoint_thread_match, bpstat_stop_status,
13131 describe_other_breakpoints, check_duplicates, clear_command):
13132 Coding standard fixes.
13133
13134 * target.c (target_xfer_memory): Add spaces, coding standard.
13135 (do_xfer_memory): Add missing line to trust-readonly
13136 code: check bfd SEC_READONLY flag for section.
13137
13138 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13139
13140 * PROBLEMS: Fix typo, 5.1->5.1.1.
13141
13142 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13143
13144 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13145 data symbols, since we search based on textlow and texthigh.
13146 (find_pc_sect_symtab): Likewise.
13147
13148 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13149
13150 * defs.h (vwarning): Declare.
13151 * utils.c (vwarning): New function.
13152 (warning): Call vwarning.
13153 (warning_begin): Delete function.
13154
13155 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13156 the warning message.
13157 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13158 warning_begin.
13159
13160 2002-01-30 Michael Snyder <msnyder@redhat.com>
13161
13162 * NEWS: Mention "set trust-readonly-sections" command.
13163 Mention generate-core-file command.
13164
13165 2002-01-15 Michael Snyder <msnyder@redhat.com>
13166
13167 * target.c: New command, "set trust-readonly-sections on".
13168 (do_xfer_memory): Honor the suggestion to trust readonly sections
13169 by reading them from the object file instead of from the target.
13170 (initialize_targets): Register command "set trust-readonly-sections".
13171
13172 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13173
13174 * parse.c (target_map_name_to_register): Simplify, search regs and
13175 pseudo-regs using a single loop.
13176
13177 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13178
13179 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13180
13181 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13182
13183 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13184 * config/i386/i386v42mp.mh: Add i387-nat.o .
13185 * i386v4-nat.c: Include i387-nat.h.
13186 (supply_fpregset): Use i387_supply_fsave.
13187 (fill_fpregset): Use i387_fill_fsave.
13188
13189 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13190
13191 * arm-tdep.c (arm_call_dummy_words): Define.
13192 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13193 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13194 (CALL_DUMMY_WORDS): Define.
13195 (arm_call_dummy_words): Declare.
13196 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13197 (arm_linux_call_dummy_words): Declare.
13198
13199 2002-01-30 Andreas Schwab <schwab@suse.de>
13200
13201 * m68klinux-nat.c: Fix last change to use regcache_collect
13202 instead of referencing registers[] directly.
13203
13204 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13205
13206 * parse.c (target_map_name_to_register): Delete code wrapped in
13207 #ifdef REGISTER_NAME_ALIAS_HOOK.
13208
13209 2002-01-28 Michael Snyder <msnyder@redhat.com>
13210
13211 * regcache.c (legacy_read_register_gen): Need to be able to
13212 read pseudo-register as well as real register.
13213 (legacy_write_register_gen): Ditto.
13214
13215 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13216
13217 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13218 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13219 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13220 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13221 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13222 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13223 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13224 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13225 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13226 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13227 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13228 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13229 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13230 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13231 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13232 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13233 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13234 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13235 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13236 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13237
13238 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13239
13240 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13241 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13242 (initialize_current_architecture): Update target_byte_order using
13243 information from BFD.
13244 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13245 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13246
13247 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13248
13249 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13250 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13251
13252 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13253 #ifdef INVALID_FLOAT.
13254 * infcmd.c (do_registers_info): Ditto.
13255 * values.c (unpack_double): Ditto. Add comment.
13256
13257 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13258 already commented out.
13259
13260 2002-01-26 Andreas Schwab <schwab@suse.de>
13261
13262 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13263 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13264 registers and add support for PTRACE_GETREGS.
13265
13266 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13267
13268 GDB 5.1.1 released from 5.1 branch.
13269 * NEWS: Add 5.1.1 news.
13270 * README: Sync with 5.1 branch.
13271
13272 2002-01-23 Fred Fish <fnf@redhat.com>
13273
13274 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13275 stabstring on initial malloc. Reallocing will copy it for us,
13276 if necessary.
13277
13278 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13279
13280 * Makefile.in (hpread_h): Delete.
13281 (HFILES_NO_SRCDIR): Remove hpread.h.
13282 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13283 (hpread.o): Update dependencies.
13284 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13285
13286 * hp-psymtab-read.c: Remove file.
13287 * hp-symtab-read.c: Remove file.
13288 * hpread.h: Remove file.
13289
13290 * hpread.c: Merge all contents of hp-psymtab-read.c,
13291 hp-symtab-read.c and hpread.h into this file, as it was prior to
13292 January 1999.
13293
13294 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13295 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13296 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13297 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13298
13299 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13300
13301 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13302 fill_gregset): Call gdbarch_tdep() just once, assign result to
13303 variable and use that, instead of calling the function several
13304 times.
13305
13306 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13307
13308 * configure.host: Accept sparcv9 as alias for sparc64.
13309 * configure.tgt: Likewise.
13310
13311 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13312
13313 * solib-aix5.c (build_so_list_from_mapfile)
13314 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13315 arguments is not reversed.
13316 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13317 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13318
13319 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13320
13321 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13322 modified version of obsolete sh_fetch_pseudo_register.
13323 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13324 (sh4_register_read): New function.
13325 (sh_pseudo_register_write): New function. Renamed and modified
13326 version of obsolete sh_store_pseudo_register.
13327 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13328 (sh4_register_write): New function.
13329 (sh_gdbarch_init): Remove setting of gdbarch function
13330 fetch_pseudo_register and store_pseudo_register. Remove setting of
13331 register_convert_to_raw, register_convert_to_virtual,
13332 register_convertible.
13333 (sh_sh4_register_convertible): Delete. No longer needed. All is
13334 taken care by architecture specific functions
13335 register_read/register_write.
13336 (sh_sh4_register_convert_to_virtual): Make static.
13337 (sh_sh4_register_convert_to_raw): Ditto.
13338
13339 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13340
13341 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13342 (floatformat_is_nan, floatformat_mantissa): Ditto.
13343
13344 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13345 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13346 builtin_type_ieee_double_little,
13347 builtin_type_ieee_double_littlebyte_bigword,
13348 builtin_type_m68881_ext, builtin_type_i960_ext,
13349 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13350 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13351 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13352 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13353
13354 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13355
13356 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13357 parameter. Set frameless flag if it exists and depended of
13358 whether the scanned function is frameless or not.
13359 (xstormy16_skip_prologue): If function is frameless, return
13360 result of xstormy16_scan_prologue().
13361 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13362 call.
13363
13364 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13365
13366 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13367 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13368 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13369 sh_sh4_register_byte, sh_sh4_register_raw_size,
13370 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13371 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13372 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13373 sh_store_pseudo_register, sh_do_pseudo_register): Call
13374 gdbarch_tdep() just once, assign result to variable and use that,
13375 instead of calling the function several times.
13376
13377 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13378
13379 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13380 macros instead of LAST_FPU_CTRL_REGNUM.
13381 (store_register): Likewise.
13382
13383 2002-01-21 Jim Blandy <jimb@redhat.com>
13384
13385 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13386 is up-to-date before running the program, not just when a program
13387 exits.
13388
13389 2002-01-21 Fred Fish <fnf@redhat.com>
13390
13391 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13392 when we have found all instructions we are looking for.
13393
13394 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13395
13396 * arm-tdep.c (arm_register_name): New function.
13397 (arm_registers_names): Make static.
13398 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13399 (arm_register_name): Declare.
13400 (REGISTER_NAME): Use it.
13401
13402 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13403 Kevin Buettner <kevinb@redhat.com>
13404
13405 Convert arm targets to new FRAME interface.
13406 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13407 (arm_frame_find_save_regs): Delete.
13408 (arm_frame_init_saved_regs): New.
13409 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13410 Allocate extra_info as required. Convert all uses of fsr.regs
13411 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13412 to use extra_info.
13413 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13414 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13415 (check_prologue_cache, save_prologue_cache): Likewise.
13416 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13417 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13418 (FRAME_FIND_SAVED_REGS): Delete.
13419 (arm_frame_find_saved_regs): Delete prototype.
13420 (arm_frame_init_saved_regs): New prototype.
13421 (FRAME_INIT_SAVED_REGS): Define.
13422
13423 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13424
13425 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13426
13427 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13428
13429 From Jeff Law <law@redhat.com>:
13430 * infttrace.c: Include <sys/pstat.h>.
13431 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13432 exec file if the ttrace equivalent fails.
13433
13434 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13435
13436 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13437 (closeLogFile): Ditto.
13438
13439 2002-01-20 Michael Chastain <mec@shout.net>
13440
13441 * top.c (print_gdb_version): Bump copyright year to 2002.
13442
13443 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13444
13445 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13446 Zannoni and Eli Zaretskii.
13447
13448 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13449
13450 * buildsym.c: Update copyright years.
13451 * c-typeprint.c: Likewise.
13452 * dwarf2read.c: Likewise.
13453 * f-typeprint.c: Likewise.
13454 * gdbtypes.c: Likewise.
13455 * gdbtypes.h: Likewise.
13456 * hp-symtab-read.c: Likewise.
13457 * hpread.c: Likewise.
13458 * mdebugread.c: Likewise.
13459 * p-typeprint.c: Likewise.
13460
13461 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13462
13463 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13464 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13465 byte-order selectable.
13466 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13467 * arch-utils.c: Ditto.
13468 (set_endian): Ditto.
13469 (set_endian_from_file): Ditto.
13470 * gdbserver/low-sim.c (create_inferior): Ditto.
13471 * gdbarch.sh: Ditto.
13472 * gdbarch.h: Re-generate.
13473 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13474 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13475 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13476 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13477 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13478 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13479 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13480 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13481 macro definition.
13482 * config/mips/tm-wince.h: Remove #undef of macro
13483 TARGET_BYTE_ORDER_SELECTABLE.
13484 * config/sh/tm-wince.h: Ditto.
13485
13486 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13487
13488 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13489 member function fields. Add accessor macro
13490 TYPE_FN_FIELD_ARTIFICIAL.
13491 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13492 * c-typeprint.c (c_type_print_base): Skip artificial member
13493 functions.
13494
13495 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13496
13497 * f-typeprint.c: Delete unused function f_type_print_args.
13498 * p-typeprint.c: Delete unused function pascal_type_print_args.
13499
13500 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13501
13502 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13503 comment. Add ``artificial'' to ``union field_location''.
13504
13505 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13506
13507 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13508 * mdebugread.c (parse_symbol): Likewise.
13509 * stabsread.c (define_symbol): Likewise.
13510 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13511 initializing TYPE_FIELD_BITPOS to n (obsolete).
13512 (hpread_doc_function_type): Likewise.
13513 * hpread.c (hpread_function_type): Likewise.
13514
13515 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13516
13517 * configure.in (host_makefile_frag): Only require a host makefile
13518 fragment when a native build.
13519 * configure: Re-generate.
13520
13521 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13522
13523 * doublest.h (floatformat_from_type): Declare.
13524 * doublest.c (floatformat_from_type): New function.
13525 (convert_typed_floating): Use.
13526
13527 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13528 call to function floatformat_from_type.
13529
13530 * gdbarch.sh (IEEE_FLOAT): Delete.
13531 * gdbarch.h, gdbarch.c: Re-generate.
13532 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13533 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13534 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13535 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13536 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13537 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13538 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13539 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13540 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13541 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13542 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13543 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13544
13545 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13546 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13547 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13548 * sh-tdep.c (sh_gdbarch_init): Ditto.
13549 * mips-tdep.c (mips_gdbarch_init): Ditto.
13550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13551 * cris-tdep.c (cris_gdbarch_init): Ditto.
13552
13553 2002-01-20 Jiri Smid <smid@suse.cz>
13554
13555 * configure.host, configure.tgt: Support x86-64.
13556 * NEWS: Note new target x86-64.
13557
13558 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13559 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13560 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13561 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13562 x86-64-linux-nat.o): Fix dependencies.
13563
13564 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13565
13566 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13567 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13568 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13569 * config/sparc/xm-sun4os4.h: Delete file.
13570 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13571
13572 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13573
13574 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13575 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13576 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13577 * config/i386/i386lynx.mh (XM_FILE): Delete.
13578 * config/rs6000/xm-rs6000ly.h: Delete file.
13579 * config/sparc/xm-sparclynx.h: Delete file.
13580 * config/m68k/xm-m68klynx.h: Delete file.
13581 * config/i386/xm-i386lynx.h: Delete file.
13582 * config/xm-lynx.h: Delete file.
13583 * config/djgpp/fnchange.lst: Update.
13584
13585 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13586
13587 * alpha-tdep.c (alpha_register_byte): New function.
13588 (alpha_register_raw_size): Ditto.
13589 (alpha_register_virtual_size): Ditto.
13590 (alpha_skip_prologue_internal): Renamed from
13591 alpha_skip_prologue.
13592 (alpha_skip_prologue): New version that calls
13593 alpha_skip_prologue_internal.
13594 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13595 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13596 second argument from alpha_skip_prologue.
13597 (REGISTER_BYTE): Use alpha_register_byte.
13598 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13599 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13600 (FRAMELESS_FUNCTION_INVOCATION): Use
13601 generic_frameless_function_invocation_not.
13602 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13603 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13604
13605 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13606
13607 * config/mips/xm-news-mips.h: Delete file.
13608 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13609
13610 * config/m88k/xm-m88k.h: Delete file.
13611 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13612 * config/m88k/xm-delta88v4.h: Ditto.
13613 * config/m88k/xm-delta88.h: Ditto.
13614
13615 * config/alpha/xm-fbsd.h: Delete file.
13616 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13617
13618 * config/sparc/xm-sparc.h: Delete file.
13619 * Makefile.in (xm-sun4os4.h): Delete dependency.
13620 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13621 * config/sparc/xm-sun4os4.h: Ditto.
13622 * config/sparc/xm-linux.h: Ditto.
13623
13624 * config/i386/xm-windows.h: Delete file.
13625
13626 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13627
13628 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13629 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13630
13631 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13632
13633 * alpha-tdep.c (alpha_call_dummy_words): New.
13634 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13635 (CALL_DUMMY_P): Define.
13636 (CALL_DUMMY_WORDS): Define.
13637 (SIZEOF_CALL_DUMMY_WORDS): Define.
13638
13639 2002-01-19 Per Bothner <per@bothner.com>
13640
13641 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13642 isn't NULL, which can happen with some gcj-3.x-produced code.
13643
13644 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13645
13646 * alpha-tdep.c (alpha_register_virtual_type): New function.
13647 (alpha_init_frame_pc_first): Ditto.
13648 (alpha_fix_call_dummy): Ditto.
13649 (alpha_store_struct_return): Ditto.
13650 (alpha_extract_struct_value_address): Ditto.
13651 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13652 alpha_register_virtual_type.
13653 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13654 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13655 alpha_extract_struct_value_address.
13656 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13657 (INIT_FRAME_PC): Use init_frame_pc_noop.
13658 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13659
13660 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13661
13662 * i386gnu-nat.c: Include "i386-tdep.h".
13663 (fetch_fpregs): Simplify code dealing with uninitialized floating
13664 point states such that it doesn't require FP7_REGNUM.
13665
13666 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13667
13668 * alpha-tdep.c (frame_extra_info): New.
13669 (alpha_find_saved_regs): Make static. Use
13670 frame->extra_info.
13671 (alpha_frame_init_saved_regs): New function.
13672 (alpha_frame_saved_pc): Use frame->extra_info.
13673 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13674 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13675 (init_extra_frame_info): Rename to...
13676 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13677 (alpha_print_extra_frame_info): New function.
13678 (alpha_frame_locals_address): Ditto.
13679 (alpha_frame_args_address): Ditto.
13680 (alpha_pop_frame): Use frame->extra_info.
13681 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13682 alpha_frame_args_address.
13683 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13684 (alpha_find_saved_regs): Remove prototype.
13685 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13686 (EXTRA_FRAME_INFO): Remove.
13687 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13688 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13689
13690 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13691
13692 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13693 (alpha_cannot_fetch_register): Ditto.
13694 (alpha_cannot_store_register): Ditto.
13695 (alpha_register_convertible): Ditto.
13696 (alpha_use_struct_convention): Ditto.
13697 * config/alpha/tm-alpha.h: Update copyright years.
13698 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13699 (INNER_THAN): Use core_addr_lessthan.
13700 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13701 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13702 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13703 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13704 (FRAME_CHAIN): Remove unnecessary cast.
13705
13706 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13707
13708 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13709 obsolete.
13710
13711 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13712
13713 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13714 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13715 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13716 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13717 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13718 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13719 * x86-64-linux-nat.c: Ditto.
13720
13721 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13722
13723 * alpha-tdep.c (alpha_register_name): New function.
13724 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13725 (REGISTER_NAME): Define.
13726
13727 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13728
13729 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13730
13731 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13732
13733 * alpha-tdep.c: Update copyright years.
13734 (alpha_next_pc): New function.
13735 (alpha_software_single_step): Ditto.
13736 * config/alpha/tm-alpha.h: Add prototype for
13737 alpha_software_single_step.
13738
13739 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13740
13741 * alphabsd-nat.c: Update copyright years.
13742 (fill_gregset): Use regcache_collect.
13743 (fill_fpregset): Likewise.
13744 (fetch_inferior_registers): Only fetch integer registers
13745 if requested to do so.
13746 (store_inferior_registers): Only store integer registers
13747 if requested to do so.
13748
13749 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13750
13751 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13752 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13753 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13754 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13755 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13756 * config/arm/linux.mh (XDEPFILES): Delete.
13757 * config/arm/nbsd.mh (XDEPFILES): Delete.
13758 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13759 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13760 * config/i386/i386m3.mh (XDEPFILES): Delete.
13761 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13762 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13763 * config/i386/fbsd.mh (XDEPFILES): Delete.
13764 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13765 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13766 * config/i386/i386v4.mh (XDEPFILES): Delete.
13767 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13768 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13769 * config/i386/i386aix.mh (XDEPFILES): Delete.
13770 * config/i386/go32.mh (XDEPFILES): Delete.
13771 * config/i386/cygwin.mh (XDEPFILES): Delete.
13772 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13773 * config/i386/i386mach.mh (XDEPFILES): Delete.
13774 * config/i386/i386v32.mh (XDEPFILES): Delete.
13775 * config/i386/linux.mh (XDEPFILES): Delete.
13776 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13777 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13778 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13779 * config/i386/i386sco.mh (XDEPFILES): Delete.
13780 * config/i386/i386v.mh (XDEPFILES): Delete.
13781 * config/i386/nbsd.mh (XDEPFILES): Delete.
13782 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13783 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13784 * config/i386/symmetry.mh (XDEPFILES): Delete.
13785 * config/i386/obsd.mh (XDEPFILES): Delete.
13786 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13787 * config/ia64/linux.mh (XDEPFILES): Delete.
13788 * config/ia64/aix.mh (XDEPFILES): Delete.
13789 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13790 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13791 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13792 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13793 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13794 * config/m68k/linux.mh (XDEPFILES): Delete.
13795 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13796 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13797 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13798 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13799 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13800 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13801 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13802 * config/m88k/delta88.mh (XDEPFILES): Delete.
13803 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13804 * config/m88k/m88k.mh (XDEPFILES): Delete.
13805 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13806 * config/mips/linux.mh (XDEPFILES): Delete.
13807 * config/mips/irix6.mh (XDEPFILES): Delete.
13808 * config/mips/irix5.mh (XDEPFILES): Delete.
13809 * config/mips/irix4.mh (XDEPFILES): Delete.
13810 * config/mips/irix3.mh (XDEPFILES): Delete.
13811 * config/mips/decstation.mh (XDEPFILES): Delete.
13812 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13813 (NATDEPFILES): Move core-aout.o to here.
13814 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13815 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13816 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13817 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13818 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13819 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13820 * config/pa/hpux11.mh (XDEPFILES): Delete.
13821 * config/powerpc/aix.mh (XDEPFILES): Delete.
13822 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13823 * config/powerpc/linux.mh (XDEPFILES): Delete.
13824 * config/romp/rtbsd.mh: Rename XDEPFILES.
13825 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13826 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13827 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13828 * config/s390/s390.mh (XDEPFILES): Delete.
13829 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13830 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13831 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13832 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13833 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13834 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13835 * config/sparc/linux.mh (XDEPFILES): Delete.
13836 * config/vax/vaxult.mh (XDEPFILES): Delete.
13837 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13838 * Makefile.in (DEPFILES): Remove XDEPFILES.
13839
13840 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13841
13842 * utils.c (internal_verror): Fix comments, default is yes not no.
13843 Update queries to match. Default to quit and dump core.
13844
13845 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13846
13847 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13848 copyright.
13849 * defs.h, event-top.c, gdbcmd.h: Ditto.
13850 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13851 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13852 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13853 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13854 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13855 * mi/mi-main.c:Ditto.
13856
13857 * stack.c, symfile.c: Update copyright.
13858
13859 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13860
13861 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13862 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13863 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13864 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13865
13866 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13867
13868 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13869 * gdbserver/low-lynx.c (myattach): Likewise.
13870 * gdbserver/low-nbsd.c (myattach): Likewise.
13871 * gdbserver/low-sim.c (myattach): Likewise.
13872 * gdbserver/low-sparc.c (myattach): Likewise.
13873 * gdbserver/low-sun3.c (myattach): Likewise.
13874
13875 * gdbserver/low-linux.c (myattach): New function.
13876
13877 * gdbserver/server.c (attach_inferior): New function.
13878 (main): Handle "--attach".
13879
13880 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13881
13882 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13883 maintainer.
13884
13885 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13886
13887 * c-typeprint.c (is_type_conversion_operator): Add additional
13888 check for non-conversion operators.
13889
13890 2002-01-15 Michael Snyder <msnyder@redhat.com>
13891
13892 * linux-proc.c: Add "info proc" command, a la procfs.c.
13893 (read_mapping): New function, abstract and re-use code.
13894 (linux_find_memory_regions): Use new func read_mapping.
13895 (linux_info_proc_cmd): New function, implement "info proc".
13896 (_initialize_linux_proc): Add new command "info proc".
13897
13898 2002-01-15 Michael Snyder <msnyder@redhat.com>
13899
13900 * symfile.c (generic_load): Use bfd_map_over_sections method
13901 instead of manipulating bfd structure members directly.
13902 (add_section_size_callback): New function, bfd sections callback
13903 used by generic_load.
13904 (load_sections_callback): New function, bfd sections callback
13905 used by generic_load.
13906
13907 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13908
13909 [Based on work by Jim Blandy]
13910 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13911 (builtin_type_vec128): Export.
13912 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13913 types.
13914 (builtin_type_vec128): New builtin type for 128 bit vector
13915 registers.
13916 (build_gdbtypes): Initialize builtin_type_v16qi and
13917 builtin_type_v8hi. Create the vec128 register builtin type
13918 structure.
13919 (build_builtin_type_vec128): New function.
13920 (_initialize_gdbtypes): Register builtin_type_v16qi and
13921 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13922 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13923 AltiVec register to new builtin type.
13924
13925 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13926
13927 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13928 to make_cv_type.
13929
13930 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13931
13932 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13933 CLEAN_UP_REGISTER_VALUE.
13934 * regcache.c (supply_register): Update only call.
13935
13936 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13937
13938 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13939 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13940 a29k-*-vxworks* targets as obsolete.
13941
13942 2002-01-14 Michael Snyder <msnyder@redhat.com>
13943
13944 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13945 until we can resolve portability issues.
13946 * gregset.h: Remove references to fpxregs.
13947 * gcore.c (gcore_command): Initialize note_sec to NULL.
13948
13949 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13950
13951 * signals.c (target_signal_to_name): Rewrite. Only use
13952 signals[].name when in bounds and non-NULL.
13953
13954 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13955
13956 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13957 * signals.c (target_signal_to_name): Verify that SIG is within the
13958 bounds of the signals array.
13959
13960 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13961
13962 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13963
13964 2002-01-13 Keith Seitz <keiths@redhat.com>
13965
13966 * stack.c (print_frame_info_base): Print the frame's pc
13967 only if when print_frame_info_listing_hook is not defined.
13968
13969 2002-01-13 Keith Seitz <keiths@redhat.com>
13970
13971 * varobj.c (varobj_set_value): Make sure that there were no
13972 errors evaluating the object before attempting to set its
13973 value.
13974 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13975 so this offset adjustment is no longer necessary.
13976 (create_child): Don't set the error flag if the child is
13977 a CPLUS_FAKE_CHILD.
13978 (value_of_child): If value_fetch_lazy fails, return NULL
13979 so that callers will be notified that an error occurred.
13980 (c_value_of_variable): Delay check of variable's validity
13981 until later. We actually want all structs and unions to have
13982 the value "{...}".
13983 Do not return "???" for variables which could not be evaluated.
13984 This error condition must be returned to the caller so that it
13985 can get the error condition from gdb.
13986 (cplus_name_of_child): Adjust index for vptr before figuring
13987 out the name of the child.
13988 (cplus_value_of_child): If a child's (real) parent is not valid,
13989 don't even bother trying to give a value for it. Just return
13990 an error. Change all instances in this function.
13991 (cplus_type_of_child): If our parent is one of the "fake"
13992 parents, we need to get at the type of the real parent, and
13993 derive the child's true type using this information.
13994
13995 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13996
13997 From 2002-01-09 John Marshall <johnm@falch.net>:
13998 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13999 sources.redhat.com, and tweak some related URLs which had
14000 suffered from linkrot.
14001
14002 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14003
14004 From Jeff law:
14005 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14006 structures passed in registers.
14007
14008 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14009
14010 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14011 white space which prevented compilation. Reported by DSK
14012 <dsk@student.unsw.edu.au>.
14013
14014 2002-01-11 Michael Snyder <msnyder@redhat.com>
14015
14016 * symfile.c (build_section_addr_info_from_section_tab):
14017 Use bfd access method instead of manipulating bfd directly.
14018 (syms_from_objfile): Ditto.
14019 (simple_overlay_update_1): Ditto.
14020 (simple_overlay_update): Ditto.
14021 (generic_load): Ditto.
14022 (overlay_unmapped_address): FIXME comment, bfd access methods.
14023 (sections_overlap): FIXME comment, bfd access methods.
14024 (pc_in_mapped_range): FIXME comment, bfd access methods.
14025 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14026 (section_is_mapped): FIXME comment, bfd access methods.
14027 (section_is_overlay): FIXME comment, bfd access methods.
14028
14029 * symfile.c (generic_load): Whitespace and long line cleanups.
14030 Remove duplicate variable, change several local variables to
14031 more appropriate data types.
14032 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14033
14034 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14035
14036 From Peter Schauer:
14037 * language.c (longest_local_hex_string_custom): Use phex_nz to
14038 convert NUM to a hex string.
14039
14040 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14041
14042 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14043 the function.
14044 Update Copyright year.
14045
14046 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14047
14048 * language.c (longest_raw_hex_string): Delete unused function.
14049
14050 2002-01-11 Petr Sorfa <petrs@caldera.com>
14051
14052 * MAINTAINERS (write-after-approval): Add myself.
14053 * dwarf2read.c (read_tag_string_type): Handling of
14054 DW_AT_byte_size.
14055 (read_tag_string_type): FORTRAN fix to prevent propagation of
14056 first string size.
14057 (set_cu_language): Handling of DW_LANG_Fortran95
14058
14059 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14060
14061 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14062 GETPID(inferior_ptid).
14063 (store_inferior_registers): Likewise.
14064
14065 2002-01-10 Jason Merrill <jason@redhat.com>
14066
14067 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14068 Fix DW_OP_minus.
14069
14070 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14071
14072 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14073 and bfd/elf32-sh-nbsd.c.
14074
14075 2002-01-10 Michael Snyder <msnyder@redhat.com>
14076
14077 * NEWS: Mention --pid and corefile/proc-id behavior change.
14078
14079 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14080 * gcore.c: Include cli/cli-decode.h instead of command.h.
14081
14082 * main.c (captured_main): Add new command line option "--pid".
14083 If the second command line argument (following the symbol-file)
14084 begins with a digit, try to attach to it before trying to open
14085 it as a corefile.
14086 (print_gdb_help): Document the "--pid" argument.
14087
14088 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14089
14090 * completer.c (command_completer): New function.
14091
14092 * completer.h <command_completer>: Add prototype.
14093
14094 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14095 completer for the "help" command.
14096
14097 2002-01-09 Jason Merrill <jason@redhat.com>
14098
14099 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14100
14101 2002-01-09 Michael Snyder <msnyder@redhat.com>
14102
14103 * i386-linux-nat.c (fill_fpxregset): Make global.
14104 (store_fpxregset): Ditto.
14105
14106 * gregset.h (gdb_fpxregset_t): Define.
14107 (supply_fpxregset): Prototype.
14108 (fill_fpxregset): Prototype.
14109
14110 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14111
14112 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14113
14114 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14115 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14116 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14117
14118 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14119
14120 * MAINTAINERS: Update target maintainer rules so that any
14121 Maintainer can approve a tested patch for a maintenance-only
14122 target.
14123
14124 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14125
14126 * MAINTAINERS (write-after-approval): Add myself.
14127
14128 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14129 IN_SIGTRAMP.
14130
14131 2002-01-08 Michael Snyder <msnyder@redhat.com>
14132
14133 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14134 real name of the executable, rather than the /proc name.
14135
14136 2002-01-03 Michael Snyder <msnyder@redhat.com>
14137
14138 Implement a "generate-core-file" command in gdb, save target state.
14139 * gcore.c: New file. Implement new command 'generate-core-file'.
14140 Save a corefile image of the current state of the inferior.
14141 * linux-proc.c: Add linux-specific code for saving corefiles.
14142 * target.h (struct target_ops): Add new target vectors for saving
14143 corefiles; to_find_memory_regions and to_make_corefile_notes.
14144 (target_find_memory_regions): New macro.
14145 (target_make_corefile_notes): New macro.
14146 * target.c (update_current_target): Inherit new target methods.
14147 (dummy_find_memory_regions): New place-holder method.
14148 (dummy_make_corefile_notes): New place-holder method.
14149 (init_dummy_target): Initialize new dummy target vectors.
14150 * exec.c (exec_set_find_memory_regions): New function.
14151 Allow the exec_ops vector for memory regions to be taken over.
14152 (exec_make_note_section): New function, target vector method.
14153 * defs.h (exec_set_find_memory_regions): Export prototype.
14154 * procfs.c (proc_find_memory_regions): New function, corefile method.
14155 (procfs_make_note_section): New function, corefile method.
14156 (init_procfs_ops): Set new target vector pointers.
14157 (find_memory_regions_callback): New function.
14158 (procfs_do_thread_registers): New function.
14159 (procfs_corefile_thread_callback): New function.
14160 * sol-thread.c (sol_find_memory_regions): New function.
14161 (sol_make_note_section): New function.
14162 (init_sol_thread_ops): Initialize new target vectors.
14163 * inftarg.c (inftarg_set_find_memory_regions): New function.
14164 Allow to_find_memory_regions vector to be taken over.
14165 (inftarg_set_make_corefile_notes): New function.
14166 Allow to_make_corefile_notes vector to be taken over.
14167 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14168 interface layer if not target_has_execution (may be a corefile).
14169 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14170 * config/sparc/sun4sol2.mh: Ditto.
14171 * config/alpha/alpha-linux.mh: Ditto.
14172 * config/arm/linux.mh: Ditto.
14173 * config/i386/x86-64linux.mh: Ditto.
14174 * config/ia64/linux.mh: Ditto.
14175 * config/m68k/linux.mh: Ditto.
14176 * config/mips/linux.mh: Ditto.
14177 * config/powerpc/linux.mh: Ditto.
14178 * config/sparc/linux.mh: Ditto.
14179
14180 2002-01-07 Michael Snyder <msnyder@redhat.com>
14181
14182 * arm-linux-nat.c: Remove references to regcache.c internal data
14183 (registers[] and register_valid[]).
14184
14185 2002-01-07 Michael Snyder <msnyder@redhat.com>
14186
14187 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14188 so that attaching to a pid will automatically read the process's
14189 symbol file and shlibs.
14190 * Makefile.in: Add rule for linux-proc.o.
14191 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14192 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14193 * config/arm/linux.mh: Ditto.
14194 * config/i386/linux.mh: Ditto.
14195 * config/i386/x86-64linux.mh: Ditto.
14196 * config/ia64/linux.mh: Ditto.
14197 * config/m68k/linux.mh: Ditto.
14198 * config/mips/linux.mh: Ditto.
14199 * config/powerpc/linux.mh: Ditto.
14200 * config/sparc/linux.mh: Ditto.
14201
14202 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14203
14204 * win32-nat.c: Add i386-tdep.h dependency.
14205
14206 2002-01-07 Michael Snyder <msnyder@redhat.com>
14207
14208 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14209 instead of bfd_get_arch_size. Don't bail out just because
14210 there's no exec_bfd.
14211
14212 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14213 * p-valprint.c (pascal_object_print_value): Ditto.
14214 * somread.c (som_symtab_read): Ditto.
14215 * symfile.c (simple_free_overlay_region_table): Ditto.
14216 * valops.c (value_assign): Ditto.
14217
14218 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14219 use tilde_expand and strerror for opening save-tracepoints file.
14220
14221 * thread-db.c (thread_db_new_objfile): Indendation fix.
14222
14223 * infptrace.c (GDB_MAX_ALLOCA): New define.
14224 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14225 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14226 can be overridden with whatever value is appropriate to the host).
14227 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14228 alloca to allocate potentially large buffer.
14229 * rs6000-nat.c (child_xfer_memory): Ditto.
14230 * symm-nat.c (child_xfer_memory): Ditto.
14231 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14232
14233 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14234
14235 From Nick Clifton <nickc@redhat.com>
14236 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14237
14238 2002-01-07 Michael Snyder <msnyder@redhat.com>
14239
14240 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14241 Don't use exec_bfd if it's NULL.
14242
14243 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14244
14245 * valops.c (value_arg_coerce): Fix formatting.
14246
14247 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14248
14249 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14250 * gnu-nat.c: Ditto.
14251
14252 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14253
14254 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14255 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14256 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14257 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14258 z8k-coff have not been multi-arched. Update z8k-coff build
14259 status.
14260
14261 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14262
14263 * MAINTAINERS: Mark a29k target as obsolete.
14264 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14265 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14266 comments.
14267 * NEWS: Note that a29k targets are obsolete.
14268 * a29k-tdep.c: Mark as obsolete.
14269 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14270 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14271 a29k-*-vxworks* targets as obsolete.
14272 * remote-adapt.c: Obsolete.
14273 * remote-eb.c: Obsolete.
14274 * remote-mm.c: Obsolete.
14275 * remote-udi.c: Obsolete.
14276 * config/a29k/a29k-udi.mt: Obsolete.
14277 * config/a29k/a29k.mt: Obsolete.
14278 * config/a29k/tm-a29k.h: Obsolete.
14279 * config/a29k/tm-vx29k.h: Obsolete.
14280 * config/a29k/vx29k.mt: Obsolete.
14281
14282 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14283
14284 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14285 with BFD_ENDIAN_BIG.
14286
14287 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14288
14289 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14290 * configure, config.in: Re-generate.
14291 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14292 * defs.h: Do not include <endian.h>.
14293
14294 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14295
14296 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14297 * config.in: Regenerate.
14298 * configure.in: Update copyright years.
14299 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14300 * configure: Regenerate.
14301 * i386bsd-nat.c: Update copyright years.
14302 (fill_gregset): Use regcache_collect.
14303 (fetch_inferior_registers): Only fetch integer registers
14304 if requested to do so. Add support for XMM registers
14305 using PT_GETXMMREGS.
14306 (store_inferior_registers): Only store integer registers
14307 if requested to do so. Add support for XMM registers
14308 using PT_SETXMMREGS.
14309 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14310 (store_inferior_registers): Remove.
14311 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14312 (fetch_elfcore_registers): New function.
14313 (i386nbsd_elfcore_fns): New.
14314 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14315 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14316 i386bsd-nat.o.
14317 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14318 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14319 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14320 * config/i386/tm-nbsd.h: Update copyright years.
14321 (HAVE_SSE_REGS): Define.
14322 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14323 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14324 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14325 (SIGCONTEXT_PC_OFFSET): Remove.
14326 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14327
14328 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14329
14330 * configure.tgt: Remove powerpc-*-macos* target.
14331 * config/m68k/xm-mpw.h: Delete file.
14332 * config/xm-mpw.h: Delete file.
14333 * ser-mac.c: Delete file.
14334 * mpw-make.sed: Delete file.
14335 * mpw-config.in: Delete file.
14336 * mac-xdep.c: Delete file.
14337 * mac-gdb.r: Delete file.
14338 * mac-defs.h: Delete file.
14339 * mac-nat.c: Delete file.
14340 * config/powerpc/macos.mh: Delete file.
14341 * config/powerpc/macos.mt: Delete file.
14342 * config/powerpc/nm-macos.h: Delete file.
14343 * config/powerpc/tm-macos.h: Delete file.
14344 * source.c (openp, open_source_file): Remove obsolete code.
14345 * top.c (gdb_readline): Ditto.
14346 * utils.c (query): Ditto.
14347 * event-top.c (display_gdb_prompt): Ditto.
14348 * Makefile.in (ser-mac.o): Delete obsolete target.
14349 * NEWS: Update.
14350
14351 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14352
14353 * defs.h (BIG_ENDIAN): Delete macro definition.
14354 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14355 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14356 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14357 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14358 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14359 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14360 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14361 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14362 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14363 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14364 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14365 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14366 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14367 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14368 * gdbarch.c: Re-generate.
14369
14370 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14371
14372 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14373 for core files.
14374
14375 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14376
14377 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14378
14379 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14380
14381 * value.h (value_ptr): Delete typedef.
14382
14383 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14384
14385 * i386nbsd-nat.c: Update copyright years.
14386 Include i386-tdep.h.
14387
14388 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14389
14390 * stabsread.c: Update copyright years.
14391
14392 From Debashis Mahata <debashis.mahata@wipro.com>:
14393 (read_struct_fields): Deal with Sun C compiler erroneous stab
14394 output for structs and unions.
14395 Fix PR gdb/269.
14396
14397 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14398
14399 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14400 prototype.
14401
14402 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14403
14404 * cp-abi.c: Fix whitespace.
14405 (baseclass_offset): New wrapper function.
14406 * cp-abi.h (baseclass_offset): Add prototype.
14407 (struct cp_abi_ops): Add baseclass_offset pointer.
14408
14409 * valops.c (vb_match): Move to...
14410 * gnu-v2-abi.c (vb_match): here.
14411 * valops.c (baseclass_offset): Move to...
14412 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14413
14414 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14415
14416 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14417 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14418 * hpacc-abi.c (init_hpacc_ops): Likewise.
14419
14420 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14421
14422 * valops.c (find_overload_match): Accept obj as a
14423 reference parameter. Update it before returning.
14424 * value.h (find_overload_match): Update prototype.
14425 * eval.c (evaluate_subexp_standard): Pass object to
14426 find_overload_match by reference.
14427
14428 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14429
14430 * valarith.c: Replace value_ptr with struct value pointer. Remove
14431 register attribute from value declarations.
14432 * valops.c: Ditto.
14433 * value.h: Ditto.
14434 * scm-lang.c (scm_lookup_name): Ditto.
14435
14436 2002-01-03 Michael Snyder <msnyder@redhat.com>
14437
14438 Abstract the functionality of iterating over mapped memory
14439 regions into a general purpose iterator function.
14440 * procfs.c (iterate_over_mappings): New function, general purpose
14441 iterator for memory sections.
14442 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14443 (solib_mappings_callback): New function, callback for above.
14444 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14445 (info_mappings_callback): New function, callback for above.
14446
14447 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14448
14449 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14450
14451 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14452 * i386-tdep.c: Include "elf-bfd.h".
14453 (process_note_abi_tag_sections): New function.
14454 (i386_gdbarch_init): Add code to recognize various OS/ABI
14455 combinations.
14456
14457 * maint.c (_initialize_maint_cmds): Add missing \ in
14458 string-literal.
14459
14460 For older changes see ChangeLog-2001
14461 \f
14462 Local Variables:
14463 mode: change-log
14464 left-margin: 8
14465 fill-column: 74
14466 version-control: never
14467 End: