d76023e8876262346b8441ae8ee3b0ed04105cb0
[binutils-gdb.git] / gdb / ChangeLog
1 2002-12-11 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.c (get_frame_extra_info): New function.
4 * frame.h (get_frame_extra_info): Declare.
5
6 2002-12-11 Andrew Cagney <ac131313@redhat.com>
7
8 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
9 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
10 with `struct frame_id'.
11 (set_longjmp_resume_breakpoint): Ditto.
12 * infrun.c (handle_inferior_event): Update.
13 * breakpoint.c (watch_command_1, until_break_command): Update.
14 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
15 (handle_inferior_event, step_over_function): Update.
16 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
17 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
18 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
19 * infcmd.c (finish_command, run_stack_dummy): Update.
20
21 2002-12-11 Kevin Buettner <kevinb@redhat.com>
22
23 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
24 (dwarf2_non_const_array_bound_ignored)
25 (dwarf2_missing_line_number_section)
26 (dwarf2_statement_list_fits_in_line_number_section)
27 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
28 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
29 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
30 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
31 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
32 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
33 (dwarf2_missing_member_fn_type_complaint)
34 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
35 (dwarf2_const_value_length_mismatch)
36 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
37 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
38 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
39 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
40 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
41 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
42 complaints using deprecated struct..
43 (dwarf2_non_const_array_bound_ignored_complaint)
44 (dwarf2_complex_location_expr_complaint)
45 (dwarf2_unsupported_at_frame_base_complaint)
46 (dwarf2_const_value_length_mismatch_complaint)
47 (dwarf2_macros_too_long_complaint)
48 (dwarf2_macro_malformed_definition_complaint)
49 (dwarf2_invalid_attrib_class_complaint): New functions.
50 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
51 (read_structure_scope, read_array_type, read_common_block)
52 (read_tag_pointer_type, read_base_type, read_partial_die)
53 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
54 (new_symbol, dwarf2_const_value, read_type_die)
55 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
56 (parse_macro_definition, dwarf_decode_macros): Replace calls to
57 complain() with, possibly indirect, calls to complaint().
58
59 2002-12-11 Andrew Cagney <cagney@redhat.com>
60
61 * frame.c (deprecated_get_frame_saved_regs): Rename
62 get_frame_saved_regs.
63 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
64 * sparc-tdep.c: Update.
65 * hppa-tdep.c: Update.
66 * h8500-tdep.c: Update.
67
68 2002-12-11 Kevin Buettner <kevinb@redhat.com>
69
70 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
71 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
72 ``char *'' for return and parameter types.
73 * gdbarch.h, gdbarch.c: Regenerate.
74 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
75 return type from ``char *'' to ``const char *''.
76 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
77 const.
78
79 2002-12-11 Mark Kettenis <kettenis@gnu.org>
80
81 * i386-tdep.c: Include "dummy-frame.h".
82 (i386_frame_chain, i386_frame_saved_pc): Replace
83 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
84 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
85
86 2002-12-10 Andrew Cagney <cagney@redhat.com>
87
88 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
89 Change to a function with predicate.
90 * gdbarch.h, gdbarch.c: Re-generate.
91 * frame.c (get_prev_frame): Update. Test
92 DEPRECATED_INIT_FRAME_PC_P.
93 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
94 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
95 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
96 * alpha-tdep.c (alpha_gdbarch_init): Update.
97 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
98 * mips-tdep.c (mips_gdbarch_init): Update.
99 * i386-interix-tdep.c (i386_interix_init_abi): Update.
100 * arm-tdep.c: Update comments.
101 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
102 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
103 * frv-tdep.c (frv_gdbarch_init): Ditto.
104 * x86-64-tdep.c (x86_64_init_abi): Ditto.
105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
106 * s390-tdep.c (s390_gdbarch_init): Ditto.
107 * v850-tdep.c (v850_gdbarch_init): Ditto.
108 * vax-tdep.c (vax_gdbarch_init): Ditto.
109 * sh-tdep.c (sh_gdbarch_init): Ditto.
110 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
114 * i386-tdep.c (i386_gdbarch_init): Ditto.
115 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
116 * cris-tdep.c (cris_gdbarch_init): Ditto.
117 * avr-tdep.c (avr_gdbarch_init): Ditto.
118 * arm-tdep.c (arm_gdbarch_init): Ditto.
119 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
120 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
121
122 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
123
124 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
125 CHILD_FOLLOW_FORK.
126 * hppah-nat.c (saved_vfork_pid): Add.
127 (child_post_follow_vfork): Remove.
128 (child_follow_fork): New function.
129 (child_wait): Call detach_breakpoints after receiving the child vfork.
130 Call child_resume directly instead of going through resume ().
131 Make sure we have the exec before reporting the vfork.
132 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
133 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
134 (follow_fork): New function. Call target_follow_fork.
135 (follow_inferior_reset_breakpoints): New function broken out from
136 old follow_inferior_fork.
137 (resume): Remove hack to follow exec after vfork.
138 * inftarg.c (child_post_follow_vfork): Remove.
139 (child_follow_fork): New function.
140 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
141 * target.c (cleanup_target): Replace to_post_follow_vfork with
142 to_follow_fork.
143 (update_current_target): Likewise.
144 (setup_target_debug): Likewise.
145 (debug_to_post_follow_vfork): Remove.
146 (debug_to_follow_fork): New function.
147 * target.h (struct target_ops): Replace to_post_folow_vfork with
148 to_follow_fork.
149 (child_post_follow_vfork): Remove prototype.
150 (child_follow_fork): Add prototype.
151 (target_post_follow_vfork): Remove macro.
152 (target_follow_fork): Add macro.
153
154 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
155
156 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
157 (child_post_follow_vfork): Cancel pending exec event if we follow
158 the parent.
159 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
160 events have been processed. Return a fake TARGET_WAITKIND_EXECD
161 event at the following wait call if necessary.
162 * infrun.c (follow_vfork): Don't follow_exec here.
163 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
164 case about HP/UX 10.20. Remove code pushed down to
165 hppah-nat.c:child_wait.
166 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
167 vfork_in_flight is set.
168
169 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
170
171 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
172 for the parent's fork event.
173 * infrun.c (handle_inferior_event): Only expect one fork event.
174 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
175 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
176
177 2002-12-10 Andrew Cagney <ac131313@redhat.com>
178
179 * PROBLEMS: Delete reference to PR gdb/725.
180
181 * MAINTAINERS (gdb.c++): Add David Carlton.
182
183 2002-12-09 David Carlton <carlton@math.stanford.edu>
184
185 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
186 * cli/cli-cmds.c: Ditto.
187
188 2002-12-09 Andrew Cagney <cagney@redhat.com>
189
190 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
191 function address in <>.
192 * gdbarch.c: Re-generate.
193
194 2002-12-09 David Carlton <carlton@math.stanford.edu>
195
196 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
197
198 2002-12-09 David Carlton <carlton@math.stanford.edu>
199
200 * linespec.c (symtab_from_filename): New function.
201 (decode_line_1): Move code into symtab_from_filename.
202
203 2002-12-09 Kevin Buettner <kevinb@redhat.com>
204
205 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
206
207 2002-12-07 Andrew Cagney <ac131313@redhat.com>
208
209 * f-valprint.c (info_common_command): Use get_frame_pc.
210 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
211 * ax-gdb.c (agent_command): Ditto.
212 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
213 (rs6000_pop_frame): Ditto.
214 (rs6000_frameless_function_invocation): Ditto.
215 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
216 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
217 * macroscope.c (default_macro_scope): Ditto.
218 * stack.c (print_frame_info_base): Ditto.
219 (print_frame, frame_info, print_frame_label_vars): Ditto.
220 (return_command, func_command, get_frame_language): Ditto.
221 * infcmd.c (finish_command): Ditto.
222 * dummy-frame.c (cached_find_dummy_frame): Ditto.
223 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
224 (break_at_finish_at_depth_command_1): Ditto.
225 (break_at_finish_command_1): Ditto.
226 (until_break_command, get_catch_sals): Ditto.
227 * blockframe.c (func_frame_chain_valid): Ditto.
228 (frameless_look_for_prologue): Ditto.
229 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
230
231 2002-12-08 Andrew Cagney <ac131313@redhat.com>
232
233 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
234 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
235
236 2002-12-08 Andrew Cagney <ac131313@redhat.com>
237
238 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
239 to pure functions.
240 * gdbarch.h, gdbarch.c: Re-generate.
241 * frame.c (get_prev_frame): Explictly assign prev's pc with value
242 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
243
244 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
245 declaration to a function returning a CORE_ADDR.
246 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
247 * arch-utils.c (init_frame_pc_noop): Return the PC value.
248 (init_frame_pc_default): Ditto.
249 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
250 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
251 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
252 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
253 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
254 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
255
256 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
257 to init_frame_pc_noop.
258 (i386_interix_init_frame_pc): Delete function.
259 * z8k-tdep.c (init_frame_pc): Delete function.
260 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
261 (INIT_FRAME_PC_FIRST): Ditto.
262 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
263 (INIT_FRAME_PC_FIRST): Ditto.
264 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
265 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
266 init_frame_pc_noop.
267 (INIT_FRAME_PC_FIRST): Convert to an expression.
268 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
269
270 2002-12-08 Andrew Cagney <ac131313@redhat.com>
271
272 * blockframe.c: Use get_frame_base instead of directly accessing
273 the `struct frame_info' member frame.
274 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
275 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
276
277 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
278
279 * Makefile.in (readline_h): Define.
280 (completer.o): Depend on readline_h.
281 (corelow.o): Ditto.
282 (event-top.o): Ditto.
283 (exec.o): Ditto.
284 (solib.o): Ditto.
285 (source.o): Ditto.
286 (symfile.o): Ditto.
287 (symmisc.o): Ditto.
288 (top.o): Ditto.
289 (tracepoint.o): Ditto.
290 (utils.o): Ditto.
291 (cli-dump.o): Ditto.
292 (tui-hooks.o): Ditto.
293 (tuiWin.o): Ditto.
294
295 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
296
297 More cleanup from import of readline 4.3.
298 * completer.h (complete_line, readline_line_completion_function):
299 Update prototypes.
300 (line_completion_function): Removed, not used outside of completer.c.
301 * completer.c (readline_line_completion_function,
302 complete_function, line_completion_function): Use const for first
303 parameter.
304 (line_completion_function): Make static.
305 (filename_completer): filename_completion_function is now called
306 rl_filename_completion_function
307 * corelow.c: Include <readline/readline.h>.
308 * exec.c: Ditto.
309 * solib.c: Ditto.
310 * source.c: Ditto.
311 * symfile.c: Ditto.
312 * symmisc.c: Ditto.
313 * top.c (init_main): No need to coerce
314 readline_line_completion_function anymore.
315 * cli/cli-dump.c: Include <readline/readline.h>.
316
317 2002-12-08 Andrew Cagney <ac131313@redhat.com>
318
319 * stack.c (frame_info): Use get_prev_frame.
320 * blockframe.c (frame_address_in_block): Ditto.
321 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
322 (rs6000_frameless_function_invocation): Ditto.
323 (rs6000_frame_saved_pc): Ditto.
324 (rs6000_frame_chain): Ditto.
325 * arch-utils.c (init_frame_pc_default): Ditto.
326
327 2002-12-08 Andrew Cagney <ac131313@redhat.com>
328
329 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
330 Delete redundant definition.
331
332 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
333
334 Import of readline 4.3:
335 * cli/cli-cmds.c: Include readline/tilde.h.
336 * cli/cli-setshow.c: Ditto.
337 * defs.h: Don't declare tilde_expand anymore, since readline
338 exports it.
339
340 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
341
342 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
343 -Werror on this file.
344
345 2002-12-07 Andrew Cagney <ac131313@redhat.com>
346
347 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
348 the format name.
349 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
350 * gdbarch.c: Regenerate.
351
352 2002-12-06 Andrew Cagney <ac131313@redhat.com>
353
354 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
355 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
356 provide a default value.
357 * gdbarch.h, gdbarch.c: Regenerate.
358 * frame.c (get_prev_frame): Update. Check
359 DEPRECATED_INIT_FRAME_PC_FIRST_P.
360 * s390-tdep.c (s390_gdbarch_init): Update.
361 * mips-tdep.c (mips_gdbarch_init): Update.
362 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
363 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
364 * alpha-tdep.c (alpha_gdbarch_init): Update.
365
366 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
367
368 * ia64-linux-nat.c: Include gdb_string.h.
369 * alpha-nat.c: Ditto.
370 * ppc-linux-nat.c: Ditto.
371 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
372 Update dependencies.
373
374 2002-12-05 Andrew Cagney <ac131313@redhat.com>
375
376 * gdbthread.h: Include "frame.h".
377 (struct thread_info): Replace step_frame_address with
378 step_frame_id.
379 * inferior.h: Include "frame.h".
380 (step_frame_id): Replace external variable step_frame_address.
381 * gdbthread.h (save_infrun_state): Replace step_frame_address
382 parameter with step_frame_id parameter.
383 (load_infrun_state): Ditto.
384 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
385 * infcmd.c (step_frame_id, step_1, step_once): Update.
386 * thread.c (load_infrun_state, save_infrun_state): Update.
387 * infrun.c (clear_proceed_status, save_inferior_status): Update.
388 (handle_inferior_event, step_over_function): Update.
389 (normal_stop, context_switch, restore_inferior_status): Update.
390 (struct inferior_status): Replace step_frame_address with
391 step_frame_id.
392
393 2002-12-05 David Carlton <carlton@math.stanford.edu>
394
395 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
396 DW_TAG_member as well as a declaration as being a C++ static data
397 member.
398 (read_structure_scope): Combine tests for DW_TAG_member and
399 DW_TAG_variable.
400
401 2002-12-05 David Carlton <carlton@math.stanford.edu>
402
403 * linespec.c (decode_compound): New function.
404 (decode_line_1): Move code into decode_compound.
405
406 2002-12-05 David Carlton <carlton@math.stanford.edu>
407
408 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
409 argument.
410 (lookup_symbol_aux): Do the 'field_of_this' check before checking
411 the static block. See PR gdb/804.
412
413 2002-12-05 David Carlton <carlton@math.stanford.edu>
414
415 * symtab.c (lookup_symbol_aux_block): New function.
416 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
417
418 2002-12-05 Andrew Cagney <ac131313@redhat.com>
419
420 * gdbarch.sh: Dump the predicate function and macro values.
421 (read): Print error on standard error.
422 * gdbarch.c: Regenerate.
423
424 2002-12-04 Kevin Buettner <kevinb@redhat.com>
425
426 * Makefile.in (mips_tdep_h): Define.
427 (mips-tdep.o): Add mips_tdep_h to dependency list.
428 * mips-tdep.h: New file.
429 * mips-tdep.c (mips-tdep.h): Include.
430 (enum mips_abi): Move to mips-tdep.h.
431 (mips_abi): New function.
432
433 2002-12-04 David Carlton <carlton@math.stanford.edu>
434
435 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
436
437 2002-12-04 David Carlton <carlton@math.stanford.edu>
438
439 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
440 function.
441 (lookup_symbol_aux_minsyms): New function.
442
443 2002-12-04 J. Brobecker <brobecker@gnat.com>
444
445 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
446
447 2002-12-04 J. Brobecker <brobecker@gnat.com>
448
449 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
450 which is an obsolete macro name.
451
452 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
453
454 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
455 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
456
457 2002-12-03 H.J. Lu (hjl@gnu.org)
458
459 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
460 (create_breakpoints): Make sure the addr_string field is not
461 NULL.
462
463 2002-12-03 Andrew Cagney <ac131313@redhat.com>
464
465 * sparc-nat.c (fetch_inferior_registers)
466 (store_inferior_registers): Add comment on problem of LWP vs
467 threads.
468
469 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
470 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
471 (lin_lwp_store_registers): Remove.
472 (init_lin_lwp_ops): Use fetch_inferior_registers
473 and store_inferior_registers directly.
474 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
475 (store_inferior_registers): Likewise.
476 Fix PR gdb/725.
477
478 2002-12-03 Andrew Cagney <ac131313@redhat.com>
479
480 * frame.h (get_frame_id): Convert to a function.
481 (null_frame_id, frame_id_p): Declare.
482 (frame_id_eq, frame_id_inner): Declare.
483 (frame_id_build): New function.
484 * frame.c (get_frame_id): Update. Use null_frame_id.
485 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
486 frame_id_inner.
487 (null_frame_id, frame_id_p): Define.
488 (frame_id_eq, frame_id_inner): Define.
489 (frame_id_build): New function.
490 * varobj.c (varobj_create): Update.
491 (varobj_update): Update.
492 * valops.c (value_assign): Update.
493 (new_root_variable): Update.
494 * infrun.c (save_inferior_status): Update.
495 * breakpoint.c (watch_command_1): Update.
496
497 2002-12-03 J. Brobecker <brobecker@gnat.com>
498
499 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
500 (SNAP2): Likewise.
501
502 2002-12-03 Andrew Cagney <cagney@redhat.com>
503
504 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
505 patch.
506
507 * PROBLEMS: Mention PR gdb/725.
508
509 2002-12-03 Andreas Schwab <schwab@suse.de>
510
511 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
512
513 2002-12-02 Adam Fedor <fedor@gnu.org>
514 Klee Dienes <kdienes@apple.com>
515
516 * objc-lang.c (objc_printstr): Add width arg to match
517 printstr prototype.
518 (compare_selectors): Add 'const' to arg types.
519 (compare_classes): Likewise.
520 (find_imps): Cast msym pointer to avoid compiler warning.
521 (print_object_command): Validate the address before
522 passing it to the print routine.
523 (find_objc_msgcall_submethod): Change function argument to
524 return an int.
525 * objc-lang.h: Add 'extern' to all function declarations.
526 (value_nsstring): Add declaration.
527
528 2002-12-02 J. Brobecker <brobecker@gnat.com>
529
530 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
531 Fixes a build failure on HP/UX.
532
533 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
534 failure on HP/UX.
535 (hpread_has_name): Advance declaration to avoid a compilation warning.
536 (pst_syms_count): Add missing variable type. By change, the compiler
537 was defaulting to int, which seems a good choice. Fixes a compilation
538 warning.
539 (pst_syms_size): Likewise.
540
541 2002-12-02 J. Brobecker <brobecker@gnat.com>
542
543 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
544 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
545 later to set the proper gdbarch methods depending on the osabi.
546 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
547
548 2002-12-02 J. Brobecker <brobecker@gnat.com>
549
550 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
551 * osabi.c (gdb_osabi_name): Add strings images for the two new
552 enum values.
553 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
554
555 2002-12-02 Andrew Cagney <ac131313@redhat.com>
556
557 * MAINTAINERS (Java): Global maintainers are responible for Java.
558 (Past Maintainers): Mention both Anthony Green and Per Bothner as
559 part Java maintainers.
560
561 2002-12-02 J. Brobecker <brobecker@gnat.com>
562
563 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
564 Fixes a compilation failure on AiX.
565
566 2002-12-02 J. Brobecker <brobecker@gnat.com>
567
568 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
569 why aix-thread.o is not listed.
570
571 2002-12-01 Andrew Cagney <ac131313@redhat.com>
572
573 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
574 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
575 * gdbarch.h, gdbarch.c: Re-generate.
576 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
577 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
578 * config/pa/tm-hppa.h, frame.h: Update.
579 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
580 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
581 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
582 * cris-tdep.c, alpha-tdep.c: Update.
583 * frame.c (set_unwind_by_pc, create_new_frame): Use either
584 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
585 (get_prev_frame): Ditto.
586
587 2002-11-30 Andrew Cagney <cagney@redhat.com>
588
589 * exec.c (xfer_memory): Replace boolean with int.
590 * p-exp.y: Use 0 instead of false.
591 * corelow.c (gdb_check_format): Change return type to int from
592 boolean.
593 * utils.c: Don't include <curses.h> or <term.h> first.
594
595 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
596
597 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
598 (m68hc11_register_byte): Remove.
599 (m68hc11_gdbarch_init): Don't set the above.
600
601 2002-11-29 Andrew Cagney <cagney@redhat.com>
602
603 * remote-mips.c (mips_initialize): Force a selected frame rebuild
604 by calling get_selected_frame.
605 * ocd.c (ocd_start_remote): Use get_selected frame instead of
606 set_current_frame, create_new_frame, select_frame and
607 get_current_frame.
608 * remote-e7000.c (e7000_start_remote): Ditto.
609 * remote-mips.c (common_open): Ditto
610 * remote-rdp.c (remote_rdp_open): Ditto.
611
612 2002-11-29 Andreas Schwab <schwab@suse.de>
613
614 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
615 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
616 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
617 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
618 read_memory_unsigned_integer instead of read_memory_integer when
619 dealing with addresses and instruction opcodes.
620 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
621 (m68k_linux_frame_saved_pc): Likewise.
622
623 2002-11-29 Andrew Cagney <ac131313@redhat.com>
624
625 * stack.c (selected_frame, select_frame): Move from here ...
626 * frame.c (selected_frame, select_frame): ... to here. Include
627 "language.h".
628 * Makefile.in (frame.o): Update dependencies.
629 * frame.c (get_selected_frame): New function.
630 * frame.h (get_selected_frame): Declare.
631 (deprecated_selected_frame): Rename selected_frame.
632 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
633 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
634 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
635 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
636 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
637 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
638 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
639 * z8k-tdep.c, cli/cli-cmds.c: Update.
640
641 2002-11-29 Andrew Cagney <ac131313@redhat.com>
642
643 * frame.h (get_selected_block): Add comments.
644
645 2002-11-28 Andrew Cagney <ac131313@redhat.com>
646
647 * frame.c (pc_notcurrent): New function.
648 (find_frame_sal): New function.
649 * frame.h (find_frame_sal): Declare.
650 (struct symtab_and_line): Add opaque declaration.
651 * stack.c (print_frame_info_base): Use find_frame_sal instead of
652 find_pc_line.
653 (frame_info): Ditto.
654 * ada-lang.c (find_printable_frame): Ditto.
655
656 2002-11-28 J. Brobecker <brobecker@gnat.com>
657
658 * configure.in: Check that the pthdebug library is recent enough
659 before enabling thread support on native AiX.
660 * configure: Regenerate.
661
662 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
663 from the list of object files as it is now appended by configure
664 if thread support is enabled.
665 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
666 if thread support is enabled.
667
668 2002-11-28 Andrew Cagney <cagney@redhat.com>
669
670 * stack.c (get_selected_block): In-line get_current_block.
671 * frame.h (get_current_block): Delete declaration.
672 * blockframe.c (get_current_block): Delete function.
673
674 2002-11-28 Andrew Cagney <ac131313@redhat.com>
675
676 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
677 USE_GENERIC_DUMMY_FRAMES.
678 * gdbarch.h, gdbarch.c: Regenerate.
679 * valops.c, frame.c: Update.
680 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
681 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
682 * config/pa/tm-hppa.h, blockframe.c: Update.
683 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
684 * m68k-tdep.c, alpha-tdep.c: Ditto.
685
686 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
687 * mips-tdep.c: Ditto.
688
689 2002-11-27 Andrew Cagney <ac131313@redhat.com>
690
691 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
692 (USE_GENERIC_DUMMY_FRAMES): Default to true.
693 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
694 * gdbarch.c, gdbarch.h: Re-generate.
695 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
696 (CALL_DUMMY_LOCATION): Delete macro definition.
697 (PC_IN_CALL_DUMMY): Delete macro definitions.
698
699 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
700 default is already generic_pc_in_call_dummy.
701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
702 * v850-tdep.c (v850_gdbarch_init): Ditto.
703 * sh-tdep.c (sh_gdbarch_init): Ditto.
704 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
705 * mips-tdep.c (mips_gdbarch_init): Ditto.
706 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
708 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
709 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
711 * avr-tdep.c (avr_gdbarch_init): Ditto.
712
713 * arm-tdep.c (arm_gdbarch_init): Do not set
714 use_generic_dummy_frames, default is already 1.
715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
716 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
717 * v850-tdep.c (v850_gdbarch_init): Ditto.
718 * sh-tdep.c (sh_gdbarch_init): Ditto.
719 * s390-tdep.c (s390_gdbarch_init): Ditto.
720 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
721 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
722 * mips-tdep.c (mips_gdbarch_init): Ditto.
723 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
725 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
726 * i386-tdep.c (i386_gdbarch_init): Ditto.
727 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
728 * frv-tdep.c (frv_gdbarch_init): Ditto.
729 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
730 * cris-tdep.c (cris_gdbarch_init): Ditto.
731 * avr-tdep.c (avr_gdbarch_init): Ditto.
732
733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
734 call_dummy_location, default is already AT_ENTRY_POINT.
735 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
736 * v850-tdep.c (v850_gdbarch_init): Ditto.
737 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
738 * sh-tdep.c (sh_gdbarch_init): Ditto.
739 * s390-tdep.c (s390_gdbarch_init): Ditto.
740 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
741 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
742 * mips-tdep.c (mips_gdbarch_init): Ditto.
743 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
745 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
746 * i386-tdep.c (i386_gdbarch_init): Ditto.
747 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
748 * frv-tdep.c (frv_gdbarch_init): Ditto.
749 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
750 * cris-tdep.c (cris_gdbarch_init): Ditto.
751 * avr-tdep.c (avr_gdbarch_init): Ditto.
752 * arm-tdep.c (arm_gdbarch_init): Ditto.
753 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
754
755 2002-11-28 Andrew Cagney <cagney@redhat.com>
756
757 * frame.h: Update comments on set_current_frame, create_new_frame,
758 flush_cached_frames, reinit_frame_cache, select_frame and
759 selected_frame.
760
761 2002-11-27 Andrew Cagney <cagney@redhat.com>
762
763 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
764 deprecated pc_in_call_dummy function.
765 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
766 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
767 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
768 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
769 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
770
771 2002-11-26 Martin M. Hunt <hunt@redhat.com>
772
773 * Makefile.in: Remove Tix dependencies.
774 * acinclude.m4: Ditto.
775 * aclocal.m4: Ditto.
776 * configure.in: Ditto.
777 * configure: Regenerated.
778
779 2002-11-26 Andrew Cagney <ac131313@redhat.com>
780
781 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
782 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
783 * gdbarch.c: Re-generate.
784
785 2002-11-26 Andrew Cagney <ac131313@redhat.com>
786
787 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
788 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
789 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
790 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
791 pc_in_call_dummy_at_entry_point.
792 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
793 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
794 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
795 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
796 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
797 pc_in_call_dummy_on_stack.
798 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
799 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
800 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
801 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
802 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
803
804 2002-11-26 Andrew Cagney <ac131313@redhat.com>
805
806 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
807 pc_in_call_dummy_before_text_end
808 (deprecated_pc_in_call_dummy_after_text_end): Rename
809 pc_in_call_dummy_after_text_end.
810 (deprecated_pc_in_call_dummy_on_stack): Rename
811 pc_in_call_dummy_on_stack.
812 (deprecated_pc_in_call_dummy_at_entry_point): Rename
813 pc_in_call_dummy_at_entry_point.
814 * m68k-tdep.c (m68k_gdbarch_init): Update.
815 * s390-tdep.c (s390_gdbarch_init): Update.
816 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
817 * vax-tdep.c (vax_gdbarch_init): Update.
818 * sparc-tdep.c (sparc_gdbarch_init): Update.
819 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
820 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
821 * i386-tdep.c (i386_gdbarch_init): Update.
822 * frv-tdep.c (frv_gdbarch_init): Update.
823 * cris-tdep.c (cris_gdbarch_init): Update.
824 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
825 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
826 (deprecated_pc_in_call_dummy_after_text_end)
827 (deprecated_pc_in_call_dummy_on_stack)
828 (deprecated_pc_in_call_dummy_at_entry_point): Update.
829 * alpha-tdep.c (alpha_gdbarch_init): Update.
830
831 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
832
833 * acconfig.h (HAVE_PREAD64): Add.
834 * configure.in: Check for pread64.
835 * config.in: Regenerated.
836 * configure: Regenerated.
837 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
838 * linux-proc.c (linux_proc_xfer_memory): New function.
839 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
840
841 2002-11-25 David Carlton <carlton@math.stanford.edu>
842
843 * dwarf2read.c (scan_partial_symbols): Descend into namespace
844 pdi's with no name.
845
846 2002-11-25 Andrew Cagney <ac131313@redhat.com>
847
848 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
849 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
850
851 2002-11-25 Jim Blandy <jimb@redhat.com>
852
853 * symfile.c (init_objfile_sect_indices): New function.
854 (default_symfile_offsets): Move the section-index-initializing
855 stuff into init_objfile_sect_indices, and call that.
856
857 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
858 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
859
860 * symfile.c (syms_from_objfile): Adjust indentation.
861
862 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
863 || info_verbose isn't true.
864
865 2002-11-24 Andrew Cagney <ac131313@redhat.com>
866
867 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
868 default to get_frame_base.
869 * gdbarch.h, gdbarch.c: Regenerate.
870 * arch-utils.c (default_frame_address): Delete function.
871 * arch-utils.h (default_frame_address): Delete declaration
872
873 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
874
875 * varobj.c (find_frame_addr_in_frame_chain):
876 Use get_frame_base instead of FRAME_FP,
877 obvious fix.
878
879 2002-11-19 Andrew Cagney <ac131313@redhat.com>
880
881 * frame.h (FRAME_FP): Delete macro.
882 (get_frame_base): New function declaration.
883 * frame.c (get_frame_base): New function.
884 (get_frame_id): Use ->frame.
885 (frame_find_by_id): Rewrite to use get_frame_id.
886 * blockframe.c: Use get_frame_base instead of FRAME_FP.
887 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
888 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
889 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
890 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
891 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
892 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
893
894 2002-11-24 Andrew Cagney <ac131313@redhat.com>
895
896 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
897
898 2002-11-24 Andrew Cagney <ac131313@redhat.com>
899
900 * frame.c (set_unwind_by_pc): Revert change below, use
901 PC_IN_CALL_DUMMY.
902 (get_prev_frame): Ditto.
903
904 2002-11-24 Andrew Cagney <ac131313@redhat.com>
905
906 * dummy-frame.c (pc_in_dummy_frame): New function.
907 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
908 (find_dummy_frame): Update comment.
909 (generic_pop_current_frame): Use get_frame_type.
910 * dummy-frame.h (pc_in_dummy_frame): Declare.
911 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
912 (create_new_frame): Use pc_in_dummy_frame.
913 (get_prev_frame): Use pc_in_dummy_frame.
914 (frame_saved_regs_register_unwind): Use get_prev_frame.
915 (deprecated_generic_get_saved_register): Use get_prev_frame.
916
917 2002-11-23 Andrew Cagney <ac131313@redhat.com>
918
919 * blockframe.c (find_frame_addr_in_frame_chain): Move function
920 from here ...
921 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
922 (varobj_create): Note that frame ID should be used.
923 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
924
925 2002-11-23 Andrew Cagney <ac131313@redhat.com>
926
927 * breakpoint.c: Include "gdb_assert.h".
928 (deprecated_frame_in_dummy): Assert that generic dummy frames are
929 not being used.
930 * Makefile.in (breakpoint.o): Update dependencies.
931 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
932 deprecated_frame_in_dummy.
933 * stack.c (print_frame_info_base): Ditto.
934 (frame_info): Ditto.
935 (print_frame_info_base): Ditto. Delete dead code.
936
937 2002-11-23 Andreas Schwab <schwab@suse.de>
938
939 * Makefile.in (m68k_tdep_h): Define.
940 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
941 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
942 * m68k-tdep.c: Move register number enum ...
943 * m68k-tdep.h: ... to this new file and rename the constants from
944 E_* to M68K_*. All uses changed.
945 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
946 * abug-rom.c: Include "m68k-tdep.h". Use
947 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
948 * cpu32bug-rom.c: Likewise.
949 * dbug-rom.c: Likewise.
950 * m68k-tdep.c: Likewise.
951 * m68klinux-nat.c: Likewise.
952 * remote-est.c: Likewise.
953 * rom68k-rom.c: Likewise.
954 * config/m68k/tm-linux.h: Likewise.
955
956 2002-11-23 Andrew Cagney <ac131313@redhat.com>
957
958 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
959 dummy frame initialization code.
960 * mips-tdep.c (mips_gdbarch_init): Ditto.
961
962 2002-11-22 Christopher Faylor <cgf@redhat.com>
963
964 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
965 attach will hang.
966
967 2002-11-22 Andrew Cagney <ac131313@redhat.com>
968
969 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
970 to default_frame_address.
971 * gdbarch.h, gdbarch.c: Re-generate.
972
973 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
974 or frame_locals_address to default_frame_address.
975 * m68k-tdep.c (m68k_gdbarch_init): Update.
976 * i386-tdep.c (i386_gdbarch_init): Update.
977 * frv-tdep.c (frv_gdbarch_init): Update.
978 * sh-tdep.c (sh_gdbarch_init): Update.
979 * v850-tdep.c (v850_gdbarch_init): Update.
980 * sparc-tdep.c (sparc_gdbarch_init): Update.
981 * mips-tdep.c (mips_gdbarch_init): Update.
982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
983 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
985
986 * cris-tdep.c (cris_frame_args_address): Delete function.
987 (cris_frame_locals_address): Delete function.
988 (cris_gdbarch_init): Do not set frame_args_address or
989 frame_locals_address.
990
991 2002-11-22 Michael Snyder <msnyder@redhat.com>
992
993 * thread-db.c (thread_db_load): Tell the user what's going on
994 if dlopen fails on libthread_db.
995
996 2002-11-23 Andreas Schwab <schwab@suse.de>
997
998 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
999 invariant return values.
1000
1001 2002-11-22 Andreas Schwab <schwab@suse.de>
1002
1003 * valops.c (value_slice): Move declaration of `offset' to avoid
1004 warning.
1005
1006 2002-11-22 Christopher Faylor <cgf@redhat.com>
1007
1008 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1009 (struct so_stuff): Add end_addr field.
1010 (register_loaded_dll): Calculate and store end address of loaded dll.
1011 (solib_address): New function.
1012 (child_solib_loaded_library_pathname): Pass carefully constructed
1013 section info to safe_symbol_file_add rather than ignoring it.
1014 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1015 DLL is loaded.
1016 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1017 (child_create_inferior): Fix a compiler warning.
1018 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1019 (solib_address): Declare new function.
1020
1021 2002-11-22 Andreas Schwab <schwab@suse.de>
1022
1023 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1024 and FPS registers.
1025
1026 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1027
1028 * maint.c (_initialize_maint_cmds): Fix typo. From
1029 Francesco Potorti` <pot@gnu.org>.
1030
1031 2002-11-21 Andrew Cagney <cagney@redhat.com>
1032
1033 * mips-tdep.c (mips_dump_tdep): Delete references to
1034 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1035 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1036 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1037 * printcmd.c (build_address_symbolic): Delete calls to
1038 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1039 (address_info): Ditto.
1040 Fix PR gdb/773.
1041
1042 2002-11-19 Klee Dienes <kdienes@apple.com>
1043 Adam Fedor <fedor@gnu.org>
1044
1045 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1046 the ability to explicitly specify the quote characters and word
1047 break characters; if NULL is specified for either, use the old
1048 behavior of using the characters used by the completer.
1049 (skip_chars): New function. Convenience wrapper around
1050 skip_quoted_chars to provide the original skip_chars behavior.
1051 * completer.h (skip_quoted_chars): Add prototype.
1052
1053 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1054
1055 Problems reported by Paul Eggert.
1056 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1057
1058 2002-11-19 Andreas Schwab <schwab@suse.de>
1059
1060 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1061 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1062 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1063 (m68k_linux_frame_saved_pc): Move to ...
1064 * m68klinux-tdep.c: ... here. New file.
1065 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1066 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1067
1068 2002-11-19 Adam Fedor <fedor@gnu.org>
1069
1070 * objc-exp.y: Revert to old skip_quoted usage.
1071
1072 2002-11-19 Adam Fedor <fedor@gnu.org>
1073
1074 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1075 (objc_lang_h): Define.
1076 (YYFILES): Add objc-exp.tab.c.
1077 (local-maintainer-clean): Remove objc-exp.tab.c.
1078 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1079
1080 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1081
1082 * p-exp.y (typecast rule): Add automatic dereference of
1083 pascal classes if needed.
1084 (THIS): Set current_type.
1085 Automatically dereference pascal classes.
1086 (typebase rule): Add ^typebase recognition.
1087
1088 2002-11-18 Adam Fedor <fedor@gnu.org>
1089
1090 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1091 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1092 (op_name): Handle OP_OBJC_SELF.
1093 * Makefile.in (expprint.o): Add additional depends.
1094
1095 2002-11-18 Adam Fedor <fedor@gnu.org>
1096
1097 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1098 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1099 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1100 * objc-exp.y: Likewise.
1101
1102 2002-11-18 Adam Fedor <fedor@gnu.org>
1103
1104 * gdb/parser-defs.h: (struct objc_class_str): New structure
1105 for parsing ObjC classes.
1106
1107 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1108
1109 * stack.c (frame_relative_level): Copy function from here ...
1110 * frame.c (frame_relative_level): ...to here.
1111
1112 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1113
1114 * frame.h (enum frame_type): Define.
1115 (get_frame_type): Declare.
1116 (struct frame_info): Add field `type'. Delete field
1117 signal_handler_caller.
1118 (deprecated_set_frame_signal_handler_caller): Declare.
1119 * frame.c (get_frame_type): New function.
1120 (deprecated_set_frame_type): New function.
1121 (create_new_frame): Set the frame's type.
1122 (get_prev_frame): Similar.
1123 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1124 * s390-tdep.c: Ditto.
1125 * m68klinux-nat.c: Ditto.
1126 * ns32k-tdep.c: Ditto.
1127 * x86-64-linux-tdep.c: Ditto.
1128 * vax-tdep.c: Ditto.
1129 * rs6000-tdep.c: Ditto.
1130 * ppc-linux-tdep.c: Ditto.
1131 * i386-interix-tdep.c: Ditto.
1132 * mips-tdep.c: Ditto.
1133 * m68k-tdep.c: Ditto.
1134 * hppa-tdep.c: Ditto.
1135 * ia64-tdep.c: Ditto.
1136 * cris-tdep.c: Ditto.
1137 * arm-tdep.c: Ditto.
1138 * alpha-tdep.c: Ditto.
1139 * i386-tdep.c: Ditto.
1140 * stack.c: Ditto.
1141 * ada-lang.c: Ditto.
1142 * blockframe.c: Update.
1143 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1144 deprecated_set_frame_type instead of signal_handler_caller.
1145 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1146 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1147 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1148
1149 2002-11-18 Klee Dienes <kdienes@apple.com>
1150
1151 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1152
1153 2002-11-18 Klee Dienes <kdienes@apple.com>
1154
1155 * buildsym.c (pop_context): Add comment.
1156
1157 2002-11-18 Klee Dienes <kdienes@apple.com>
1158
1159 * buildsym.h (pop_context): Convert to function, defined in
1160 buildsym.c.
1161 * buildsym.c: Include gdb_assert.h.
1162 (pop_context): Implement as C function. Add check for stack
1163 underflow.
1164 * dbxread.c (process_one_symbol): Complain and stop processing
1165 that symbol if we are already at the top of the context stack for
1166 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1167 when processing N_RBRAC.
1168
1169 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1170
1171 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1172 define.
1173 (struct target_waitstatus): Add opaque definition.
1174 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1175 * exec.c (init_exec_ops): Likewise.
1176 * fork-child.c (clone_and_follow_inferior): Remove.
1177 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1178 * inferior.h (clone_and_follow_inferior): Remove prototype.
1179 * infrun.c (follow_fork_mode_both): Remove.
1180 (follow_fork_mode_kind_names): Remove commented out "both".
1181 (follow_inferior_fork): Remove follow_fork_mode_both support.
1182 * inftarg.c (child_clone_and_follow_inferior): Remove.
1183 (child_post_follow_inferior_by_clone): Remove.
1184 (init_child_ops): Don't set to_clone_and_follow_inferior
1185 or to_post_follow_inferior_by_clone.
1186 * target.c (default_clone_and_follow_inferior): Remove.
1187 (cleanup_target): Don't set to_clone_and_follow_inferior
1188 or to_post_follow_inferior_by_clone.
1189 (find_default_clone_and_follow_inferior): Remove.
1190 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1191 (debug_to_clone_and_follow_inferior): Remove.
1192 (debug_to_post_follow_inferior_by_clone): Remove.
1193 (setup_target_debug): Don't set to_clone_and_follow_inferior
1194 or to_post_follow_inferior_by_clone.
1195 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1196 and to_post_follow_inferior_by_clone.
1197 (child_clone_and_follow_inferior): Remove prototype.
1198 (child_post_follow_inferior_by_clone): Remove prototype.
1199 (target_clone_and_follow_inferior): Remove macro.
1200 (target_post_follow_inferior_by_clone): Remove macro.
1201 (find_default_clone_and_follow_inferior): Remove prototype.
1202
1203 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1204
1205 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1206 inferior_has_vforked, and inferior_has_execd instead of
1207 target_has_forked, target_has_vforked, and target_has_execd.
1208 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1209 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1210 (CHILD_WAIT): Define.
1211 (child_wait): Add prototype.
1212 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1213 Add prototype.
1214 (hpux_has_vforked): Likewise, from child_has_vforked.
1215 (hpux_has_execd): Likewise, from child_has_execd.
1216 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1217 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1218 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1219 and hpux_has_syscall_event instead of the target hooks.
1220 * infrun.c (inferior_has_forked, inferior_has_vforked)
1221 (inferior_has_execd): New functions.
1222 * inftarg.c (not_same_real_pid): Remove.
1223 (child_wait): Remove references to not_same_real_pid,
1224 target_has_forked, target_has_vforked, target_has_execd,
1225 and target_has_syscall_event.
1226 (child_has_forked, child_has_vforked, child_has_execd)
1227 (child_has_syscall_event): Remove.
1228 (init_child_ops): Remove references to child_has_forked,
1229 child_has_vforked, child_has_execd, and child_has_syscall_event.
1230 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1231 (hpux_has_vforked): Likewise, from child_has_vforked.
1232 (hpux_has_execd): Likewise, from child_has_execd.
1233 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1234 * target.c (cleanup_target): Remove references to
1235 to_has_forked, to_has_vforked, to_has_execd, and
1236 to_has_syscall_event.
1237 (update_current_target): Likewise.
1238 (setup_target_debug): Likewise.
1239 (debug_to_has_forked): Remove.
1240 (debug_to_has_vforked): Remove.
1241 (debug_to_has_execd): Remove.
1242 (debug_to_has_syscall_event): Remove.
1243 * target.h (struct target_ops): Remove to_has_forked.
1244 to_has_vforked, to_has_execd, and to_has_syscall_event.
1245 (child_has_forked, child_has_vforked, child_has_execd)
1246 (child_has_syscall_event): Remove prototypes.
1247 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1248 prototypes.
1249 (target_has_forked, target_has_vforked, target_has_execd)
1250 (target_has_syscall_event): Remove macros.
1251
1252 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1253
1254 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1255 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1256 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1257 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1258 * target.c (cleanup_target): Remove reference to
1259 to_can_follow_vfork_prior_to_exec.
1260 (update_current_target): Likewise.
1261 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1262 (setup_target_debug): Remove reference to
1263 to_can_follow_vfork_prior_to_exec.
1264 * target.h (struct target_ops): Remove
1265 to_can_follow_vfork_prior_to_exec.
1266 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1267 (target_can_follow_vfork_prior_to_exec): Remove definition.
1268 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1269 define.
1270 * infrun.c (follow_vfork_when_exec): Remove.
1271 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1272 (follow_exec): Likewise.
1273 (handle_inferior_event): Likewise.
1274 (keep_going): Likewise.
1275
1276 2002-11-15 Andrew Cagney <cagney@redhat.com>
1277
1278 * frame.c (generic_unwind_get_saved_register): Make static.
1279 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1280 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1281 defaults to generic_unwind_get_saved_register.
1282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1283 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1284 * frv-tdep.c (frv_gdbarch_init): Ditto.
1285 * i386-tdep.c (i386_gdbarch_init): Ditto.
1286 * s390-tdep.c (s390_gdbarch_init): Ditto.
1287 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1288 * v850-tdep.c (v850_gdbarch_init): Ditto.
1289 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1290 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1291 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1292
1293 2002-11-15 Andrew Cagney <cagney@redhat.com>
1294
1295 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1296 i386-tdep.c.
1297
1298 2002-11-15 Andrew Cagney <cagney@redhat.com>
1299
1300 * frame.h (sigtramp_saved_pc): Delete declaration.
1301 * blockframe.c (sigtramp_saved_pc): Delete function.
1302 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1303 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1304 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1305 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1306
1307 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1308
1309 * frame.c (frame_pc_unwind): New function.
1310 (frame_saved_regs_pc_unwind): New function.
1311 (frame_register_unwind): Pass unwind_cache instead of
1312 register_unwind_cache.
1313 (set_unwind_by_pc): Add unwind_pc parameter, set.
1314 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1315 (get_prev_frame): Ditto.
1316 * frame.h (frame_pc_unwind_ftype): Declare.
1317 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1318 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1319 (frame_pc_unwind): Declare.
1320 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1321 (struct dummy_frame): Add comment mentioning that values are for
1322 previous frame.
1323 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1324 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1325 (generic_file_frame_chain_valid): Ditto.
1326 * stack.c (frame_info): Ditto.
1327
1328 2002-11-15 David Carlton <carlton@math.stanford.edu>
1329
1330 * linespec.c (locate_first_half): New function.
1331 (decode_line_1): Move code into locate_first_half.
1332
1333 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1334
1335 * complaints.h: Add comment explaining how to eliminate a
1336 deprecated_complain call.
1337 * complaints.h: Fix spelling errors.
1338
1339 2002-11-15 David Carlton <carlton@math.stanford.edu>
1340
1341 * printcmd.c: Remove #include "disasm.h".
1342
1343 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1344
1345 * frame.h: Move the most relevant interface functions to the start
1346 of the file.
1347
1348 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1349
1350 * regcache.h (deprecated_registers): Rename registers.
1351 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1352 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1353 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1354 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1355 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1356 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1357 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1358 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1359 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1360 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1361 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1362 * v850ice.c: Update.
1363
1364 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1365
1366 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1367 NULL buffer.
1368
1369 2002-11-13 Andrew Cagney <cagney@redhat.com>
1370
1371 * regcache.h (deprecated_read_register_bytes): Rename
1372 read_register_bytes.
1373 (deprecated_write_register_bytes): Rename write_register_bytes.
1374 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1375 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1376 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1377 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1378 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1379 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1380 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1381 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1382 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1383 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1384 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1385 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1386 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1387 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1388
1389 2002-11-13 Jim Blandy <jimb@redhat.com>
1390
1391 * findvar.c (read_var_value): Doc fix.
1392
1393 2002-11-13 Andrew Cagney <cagney@redhat.com>
1394
1395 * regcache.c (struct regcache): Replace passthough_p with
1396 readonly_p.
1397 (regcache_xmalloc): Initialize readonly_p.
1398 (build_regcache): Initialize readonly_p.
1399 (regcache_save): New function.
1400 (regcache_restore): New function.
1401 (regcache_cpy): Re-implement using regcache_save and
1402 regcache_restore.
1403 (regcache_raw_read): Update.
1404 (regcache_cooked_read): When a read-only cache, checked for cached
1405 pseudo register values.
1406 (regcache_raw_write): Assert that the cache is not read-only.
1407 Remove code handling a non-passthrough cache.
1408 * regcache.h (regcache_save): Declare.
1409 (regcache_restore): Declare.
1410
1411 2002-11-13 Andrew Cagney <cagney@redhat.com>
1412
1413 * regcache.c (struct regcache_descr): Add fields
1414 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1415 (init_legacy_regcache_descr): Compute the size of a cooked
1416 register cache and then assign that to sizeof_raw_registers. Set
1417 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1418 (init_legacy_regcache_descr): Ditto.
1419
1420 2002-11-13 Andrew Cagney <cagney@redhat.com>
1421
1422 * regcache.c (register_buffer): Move to near start of file, update
1423 description.
1424 (regcache_raw_read): Use.
1425 (regcache_raw_write): Use.
1426 (struct regcache): Rename raw_registers to registers and
1427 raw_register_valid_p to register_valid_p.
1428 (regcache_xmalloc): Update.
1429 (regcache_xfree): Update.
1430 (register_buffer): Update.
1431 (regcache_cpy): Update.
1432 (regcache_cpy_no_passthrough): Update.
1433 (regcache_valid_p): Update.
1434 (deprecated_grub_regcache_for_registers): Update.
1435 (deprecated_grub_regcache_for_register_valid): Update.
1436 (set_register_cached): Update.
1437 (regcache_raw_write): Update.
1438
1439 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1440
1441 * p-exp.y (name_not_typename): Use copy_name to
1442 set current_type variable for fields of THIS.
1443
1444 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1445
1446 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1447 * monitor.c (init_base_monitor_ops): Likewise.
1448 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1449 * remote-array.c (init_array_ops): Likewise.
1450 * remote-e7000.c (init_e7000_ops): Likewise.
1451 * remote-es.c (init_es1800_ops): Likewise.
1452 (init_es1800_child_ops): Likewise.
1453 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1454 * remote-sim.c (init_gdbsim_ops): Likewise.
1455 * remote-st.c (init_st2000_ops): Likewise.
1456 * sol-thread.c (init_sol_core_ops): Likewise.
1457 (init_sol_thread_ops): Likewise.
1458 * v850ice.c (init_850ice_ops): Likewise.
1459 * win32-nat.c (init_child_ops): Likewise.
1460 * wince.c (init_child_ops): Likewise.
1461
1462 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1463
1464 * utils.c (gdb_realpath): Make rp a constant pointer.
1465
1466 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1467
1468 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1469 a constant buffer; cannonicalize_file_name(); realpath() with a
1470 pathconf() defined buffer, xstrdup().
1471
1472 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1473
1474 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1475 to hang2.C; hang3.c to hang3.C.
1476
1477 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1478
1479 * findvar.c (read_var_value): Reenable TLS code.
1480
1481 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1482 Jim Blandy <jimb@redhat.com>
1483
1484 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1485 * target.c (update_current_target): Add
1486 to_get_thread_local_address.
1487 * target.h (to_get_thread_local_address): Export.
1488 (target_get_thread_local_address): Define.
1489 (target_get_thread_local_address_p): Define.
1490 * thread-db.c: Include solib-svr4.h.
1491 (td_thr_tls_get_addr_p): Define.
1492 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1493 (thread_db_get_thread_local_address): New function.
1494 (init_thread_db_ops): Initialize to_get_thread_local_address.
1495 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1496 * configure: Regenerate.
1497 * config.in: Regenerate.
1498
1499 2002-11-11 David Carlton <carlton@math.stanford.edu>
1500
1501 * linespec.c (set_flags): New function.
1502 (decode_line_1): Move code into set_flags.
1503
1504 2002-11-11 David Carlton <carlton@math.stanford.edu>
1505
1506 * linespec.c (decode_line_1): Move chunks of code to separate
1507 functions.
1508 (initialize_defaults): New function.
1509 (decode_indirect): New function.
1510
1511 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1512
1513 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1514 instead of void_code_ptr.
1515 (sigtramp_saved_pc): Ditto.
1516
1517 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1518 i386_fp_regnum_p.
1519
1520 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1521
1522 * gdbtypes.h (struct main_type): Move artificial flag out of
1523 loc. New member of ``struct field'' named static_kind. Reduce
1524 overloaded meaning of bitsize.
1525 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1526 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1527 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1528
1529 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1530 new fields.
1531 (template_to_fixed_record_type, template_to_static_fixed_type)
1532 (to_record_with_fixed_variant_part): Likewise.
1533 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1534 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1535 * dwarfread.c (struct_type, enum_type): Likewise.
1536 * hpread.c (hpread_read_enum_type)
1537 (hpread_read_function_type, hpread_read_doc_function_type)
1538 (hpread_read_struct_type): Likewise.
1539 * mdebugread.c (parse_symbol): Likewise.
1540
1541 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1542
1543 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1544 * stack.c (print_frame_info_base): Update.
1545 (print_frame_info_base, frame_info): Update.
1546 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1547 (sparc_frame_saved_pc): Update.
1548 * ada-lang.c (find_printable_frame): Update.
1549 * breakpoint.c (deprecated_frame_in_dummy): Update.
1550
1551 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1552
1553 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1554 defined.
1555 (regmap): Extend to cover all registers.
1556 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1557 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1558 definitions.
1559 (fetch_register, sore_register): Simplify.
1560 (old_fetch_inferior_registers, old_store_inferior_registers):
1561 Remove functions.
1562 (cannot_fetch_register, cannot_store_register): Change
1563 implementation to use regmap array to decide which registers
1564 cannot be fetched/stored. This removes $orig_eax from the
1565 registers that cannot be fetched/stored.
1566 (fetch_inferior_registers): Call fetch_register directly instead
1567 of calling old_fetch_inferior_registers.
1568 (store_inferior_registers): Call store_register directly instead
1569 of calling old_store_inferior_registers.
1570 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1571 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1572 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1573
1574 2002-11-09 Klee Dienes <kdienes@apple.com>
1575
1576 * i387-tdep.c (i387_supply_register): When called with NULL as a
1577 buffer, mark the register as not provided (to mirror the behavior
1578 of supply_register).
1579 (i387_supply_fxsave): Ditto.
1580 (i387_supply_fsave): Ditto (inherits the behavior from
1581 i387_supply_register).
1582
1583 2002-11-09 Klee Dienes <kdienes@apple.com>
1584
1585 * blockframe.c (sigtramp_saved_pc): Use
1586 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1587 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1588 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1589
1590 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1591
1592 * frame.c (get_prev_frame): Test prev_p to identify a previously
1593 unwound frame. Initialize prev_p.
1594 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1595 comment.
1596
1597 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1598
1599 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1600 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1601 more comments. Zap dead code.
1602
1603 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1604
1605 * infcmd.c (print_vector_info, print_float_info): Move code that
1606 checks whether the target has any registers and whether there is a
1607 selected frame up, such that it is also used if a target provides
1608 multi-arch definitions of these functions.
1609
1610 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1611
1612 * Makefile.in (DESTDIR): Define.
1613 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1614 prefix.
1615
1616 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1617 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1618
1619 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1620
1621 * i386-linux-tdep.c: Include "reggroups.h".
1622 (i386_linux_register_reggroup_p): New function.
1623 (i386_linux_init_abi): Set register_reggroup_p to
1624 i386_linux_register_reggroup_p.
1625 * i386-tdep.h (i386_register_reggroup_p): Declare.
1626 * i386-tdep.c: Include "reggroups.h".
1627 (i386_init_reggroups): New function.
1628 (i386_add_reggroups): New function.
1629 (i386_register_reggroup_p): New function.
1630 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1631 (_initialize_i386_tdep): Call i386_init_reggroups.
1632 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1633 specific reggroups.
1634
1635 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1636
1637 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1638 request that's available in *BSD.
1639
1640 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1641
1642 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1643 FDOFF_REGNUM.
1644
1645 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1646
1647 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1648 * dummy-frame.c (find_dummy_frame): Rename
1649 generic_find_dummy_frame, make static. Return the dummy frame
1650 instead of the regcache.
1651 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1652 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1653 (dummy_frame_register_unwind): Rename
1654 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1655 * dummy-frame.h (dummy_frame_register_unwind): Rename
1656 generic_call_dummy_register_unwind.
1657
1658 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1659
1660 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1661 except the inclusion of "i386/tm-i386.h", to...
1662 * config/i386/nm-i386v42mp.h: ...here.
1663 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1664
1665 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1666
1667 * Makefile.in (frame.o): Update dependencies.
1668 * blockframe.c (current_frame, frame_obstack_alloc)
1669 (frame_saved_regs_zalloc, get_current_frame)
1670 (set_current_frame, create_new_frame)
1671 (set_unwind_by_pc, get_next_frame)
1672 (flush_cached_frames, reinit_frame_cache)
1673 (frame_saved_regs_register_unwind)
1674 (deprecated_generic_get_saved_register)
1675 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1676 (_initialize_blockframe): Move frame code from here...
1677 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1678 "annotate.h" and "dummy-frame.h".
1679 (_initialize_frame): New function.
1680
1681 2002-11-08 Jim Blandy <jimb@redhat.com>
1682
1683 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1684 when we finish a function a context.
1685 * buildsym.h (outermost_context_p): New macro.
1686 (Bug analyzed by David Edelsohn.)
1687
1688 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1689
1690 * blockframe.c: Include "dummy-frame.h".
1691 (struct dummy_frame, dummy_frame_stack)
1692 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1693 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1694 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1695 (generic_save_call_dummy_addr, generic_pop_current_frame)
1696 (generic_pop_dummy_frame, generic_fix_call_dummy)
1697 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1698 dummy frame code from here...
1699 * dummy-frame.c: ...to here. New file.
1700 * dummy-frame.h: New file.
1701 (generic_call_dummy_register_unwind): Declare.
1702 (generic_find_dummy_frame): Declare.
1703 * Makefile.in (SFILES): Add dummy-frame.c.
1704 (dummy-frame.o): Specify dependencies.
1705 (dummy_frame_h): Define.
1706 (COMMON_OBS): Add dummy-frame.o.
1707 (blockframe.o): Update dependencies.
1708
1709 2002-11-08 Jim Blandy <jimb@redhat.com>
1710
1711 * dwarf2read.c (read_func_scope): Restore local_symbols and
1712 param_symbols after we finish the function context. (Based on a
1713 patch from David Edelsohn.)
1714
1715 2002-11-08 David Carlton <carlton@math.stanford.edu>
1716
1717 * linespec.c (symbol_found): New function.
1718 (minsym_found): New function.
1719 (decode_line_1): Separate out some code into separate functions.
1720
1721 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1722
1723 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1724 the benefit of the interix target.
1725 * i386-tdep.h (i386_frameless_signal_p): Declare.
1726
1727 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1728
1729 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1730 declaration that snuck in from change below.
1731
1732 2002-11-06 Andrew Cagney <cagney@redhat.com>
1733
1734 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1735 all callers.
1736 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1737 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1738 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1739 (i386_mxcsr_regnum_p): new function. Use instead of
1740 MXCSR_REGNUM_P.
1741 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1742 (i386_sse_regnum_p): Declare.
1743 (i386_mxcsr_regnum_p): Declare.
1744 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1745 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1746 (IS_FP_REGNUM): Update definition.
1747 (IS_FPU_CTRL_REGNUM): Update definition..
1748 (IS_SSE_REGNUM): Update definition..
1749 * i386v-nat.c (register_u_addr): Update.
1750 * go32-nat.c (fetch_register): Update.
1751 (store_register): Update.
1752
1753 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1754
1755 Preparation work to convert the hppa targets to multiarch partial.
1756
1757 * hppa-tdep.c: Add new functions replacing macro bodies from
1758 config/pa/tm-hppa.h. These function will be used to initialize
1759 the gdbarch structure. Import some comments from tm-hppa.h,
1760 and place them where appropriate, to avoid loosing them when
1761 we cleanup this file.
1762 (hppa_reg_struct_has_addr): New function.
1763 (hppa_inner_than): New function.
1764 (hppa_stack_align): New function.
1765 (hppa_pc_requires_run_before_use): New function.
1766 (hppa_instruction_nullified): New function.
1767 (hppa_register_byte): New function.
1768 (hppa_register_virtual_type): New function.
1769 (hppa_store_struct_return): New function.
1770 (hppa_cannot_store_register): New function.
1771 (hppa_frame_args_address): New function.
1772 (hppa_frame_locals_address): New function.
1773 (hppa_smash_text_address): New function.
1774 (hppa_coerce_float_to_double): New function. Requires the inclusion
1775 of "language.h".
1776
1777 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1778
1779 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1780 gdbarch-eligible macro to a call to the new associated function
1781 created in hppa-tdep.c.
1782 (INNER_THAN): Likewise.
1783 (STACK_ALIGN): Likewise.
1784 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1785 (INSTRUCTION_NULLIFIED): Likewise.
1786 (REGISTER_BYTE): Likewise.
1787 (REGISTER_VIRTUAL_TYPE): Likewise.
1788 (STORE_STRUCT_RETURN): Likewise.
1789 (CANNOT_STORE_REGISTER): Likewise.
1790 (FRAME_ARGS_ADDRESS): Likewise.
1791 (FRAME_LOCALS_ADDRESS): Likewise.
1792 (SMASH_TEXT_ADDRESS): Likewise.
1793 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1794 (ABOUT_TO_RETURN): Delete, as no longer used.
1795
1796 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1797
1798 * printcmd.c (disassemble_command): Remove obsolete function.
1799 (_initialize_printcmd): Do not create disassemble command here.
1800 * cli/cli-cmds.c (disassemble_command): New function. Implements
1801 disassemble command.
1802 (init_cli_cmds): Create disassemble command here instead.
1803
1804 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1805
1806 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1807
1808 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1809
1810 * regcache.h (regcache_cooked_read_using_offset_hack)
1811 (regcache_cooked_write_using_offset_hack): Delete declarations.
1812 (register_changed): Delete declaration.
1813 * regcache.c (regcache_cooked_read_using_offset_hack)
1814 (regcache_cooked_write_using_offset_hack): Delete functions.
1815 (cooked_xfer_using_offset_hack): Delete function.
1816 (register_changed): Delete function.
1817
1818 2002-11-07 Jim Blandy <jimb@redhat.com>
1819
1820 * macroscope.c: #include "complaints.h".
1821 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1822 but not in the macro table.
1823 * Makefile.in (macroscope.o): Record dependency.
1824
1825 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1826
1827 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1828
1829 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1830
1831 * regcache.c (deprecated_registers_fetched): Update.
1832 * regcache.h (deprecated_registers_fetched): Rename
1833 registers_fetched.
1834 * remote-vxsparc.c (vx_read_register): Update.
1835 * remote-vxmips.c (vx_read_register): Update.
1836 * remote-vx68.c (vx_read_register): Update.
1837 * irix5-nat.c (fetch_core_registers): Update.
1838 * mipsm3-nat.c (fetch_inferior_registers): Update.
1839 * sun3-nat.c (fetch_inferior_registers): Update.
1840 * symm-nat.c (fetch_inferior_registers): Update.
1841 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1842 (fetch_core_registers): Update.
1843 (fetch_kcore_registers): Update.
1844 * mips-nat.c (fetch_inferior_registers): Update.
1845 * corelow.c (get_core_registers): Update.
1846 * a68v-nat.c (fetch_inferior_registers): Update.
1847
1848 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1849
1850 Put in place the framework necessary for multiarching the hppa targets.
1851 * hppa-tdep.c (hppa_gdbarch_init): New function.
1852 (hppa_dump_tdep): New function.
1853 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1854 tdep structure dumper.
1855 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1856 until the multi-arching conversion has partially been completed.
1857
1858 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1859
1860 * valops.c (value_assign): Merge lval_register case into
1861 lval_reg_frame_relative. Use frame_register and
1862 regcache_cooked_write instead of get_saved_register and
1863 write_register_bytes. After flushing the register cache, try to
1864 re-select the selected frame.
1865
1866 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1867
1868 * regcache.h (deprecated_register_valid): Rename register_valid.
1869 * regcache.c: Update.
1870 * ia64-aix-nat.c: Update.
1871 * i386gnu-nat.c: Update.
1872 * alpha-nat.c: Update.
1873 * sparc-nat.c: Update.
1874 * lynx-nat.c: Update.
1875 * remote-mips.c: Update.
1876
1877 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1878
1879 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1880 to end of file, to be more consistent with the pratice followed
1881 by other targets.
1882
1883 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1884
1885 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1886 (print_float_info): Print registers in float_reggroup.
1887 (print_vector_info): Print registers in vector_reggroup.
1888 (default_print_registers_info): When all, print registers in
1889 all_reggroup. Otherwize, print registers in general_reggroup.
1890 (registers_info): Rewrite. Add support for register groups.
1891 Eliminate a goto.
1892
1893 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1894
1895 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1896 ages.
1897 (symtab_symbol_info): Remove eons old ifdeffed out code.
1898 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1899 command.
1900
1901 2002-11-06 Theodore A. Roth <troth@openavr.org>
1902
1903 * c-exp.y: Add missing semi-colons.
1904 * f-exp.y: Add missing semi-colons.
1905 * m2-exp.y: Add missing semi-colons.
1906 * p-exp.y: Add missing semi-colons.
1907 Add empty action to start rule to avoid a type clash error when
1908 building with bison >= 1.50.
1909
1910 2002-11-06 Jim Blandy <jimb@redhat.com>
1911
1912 * macrotab.h (struct macro_source_file): Doc fix.
1913
1914 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1915
1916 * varobj.c (child_exists, cplus_number_of_children): Change
1917 STREQ macro references to strcmp.
1918 (cplus_name_of_child): Change code to handle the fact that
1919 fields are not necessarily contiguous with regards to their
1920 access control. This is a fix for PR gdb/792.
1921
1922 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1923
1924 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1925 * gdbarch.h, gdbarch.c: Regnerate.
1926 * frame.h (frame_register): Declare.
1927 * frame.c (frame_register): New function.
1928 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1929 GET_SAVED_REGISTER, otherwize call
1930 generic_unwind_get_saved_register.
1931 (frame_register_read): Use frame_register instead of
1932 get_saved_register.
1933
1934 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1935
1936 From Jim Ingham <jingham@apple.com>:
1937 * event-top.c (gdb_disable_readline): New function.
1938 (_initialize_event_loop): Move comment.
1939
1940 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1941
1942 * event-loop.c (start_event_loop): Add comment.
1943 Update copyright.
1944
1945 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1946
1947 * infcmd.c (default_print_registers_info): Do not call
1948 PRINT_REGISTER_HOOK.
1949
1950 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1951
1952 * sparc-tdep.c (sparc_print_register_hook): Make static.
1953 (sparc_print_registers_info): New function.
1954 (sparc_do_registers_info): New function.
1955 (sparclet_print_registers_info): New function.
1956 (sparclet_do_registers_info): New function.
1957 (do_sparc_print_registers_info): New function.
1958 (sparc_print_registers): New static function, clone of infcmd.c's
1959 default_print_registers_info.
1960 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1961 (sparclet_do_registers_info): Declare.
1962 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1963 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1964 Re-define.
1965 (sparc_do_registers_info): Declare.
1966 (PRINT_REGISTER_HOOK): Delete macro.
1967 (sparc_print_register_hook): Delete declaration.
1968
1969 2002-11-05 David Carlton <carlton@math.stanford.edu>
1970
1971 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1972 functions.
1973 (lookup_symbol_aux_local): New function.
1974 (lookup_symbol_aux_symtabs): New function.
1975 (lookup_symbol_aux_psymtabs): New function.
1976
1977 2002-11-05 David Carlton <carlton@math.stanford.edu>
1978
1979 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1980 previous values of 'objfile' and 'block'.
1981
1982 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1983
1984 * values.c (value_change_enclosing_type): Set
1985 enclosing_type field correctly also for the case where
1986 more memory needs to be allocated.
1987
1988 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1989
1990 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1991 of puts_filtered.
1992
1993 * i387-tdep.c (i387_print_float_info): Replace calls to
1994 register_read and deprecated_read_register_gen with calls to
1995 frame_register_read, and make the necessary adjustments to the
1996 surrounding code.
1997
1998 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1999
2000 * gdbarch.sh (register_reggroup_p): Allow default value.
2001 * gdbarch.h, gdbarch.c: Regenerate.
2002
2003 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2004
2005 * regcache.h: Add coment indicating replacements for deprecated
2006 functions.
2007
2008 2002-11-02 Andrew Cagney <cagney@redhat.com>
2009
2010 * reggroups.h, reggroups.c: New files.
2011 * regcache.c: Include "reggroups.h".
2012 (enum regcache_dump_what): Add `regcache_dump_groups'.
2013 (regcache_dump): Contract size of the "Type" column. When
2014 specified, dump the register's groups.
2015 (maintenance_print_register_groups): New function.
2016 (_initialize_regcache): Add command `maint print register-groups'.
2017 * Makefile.in (COMMON_OBS): Add reggroups.o
2018 (SFILES): Add reggroups.c.
2019 (reggroups_h): Define.
2020 (regcache.o, gdbarch.o): Update dependencies.
2021 (reggroups.o): Specify dependencies.
2022 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2023 Add opaque declaration for `struct reggroup' in generated .h file.
2024 Include "reggroups.h" in generated .c file.
2025 gdbarch.h, gdbarch.c: Re-generate.
2026
2027 2002-11-02 Andrew Cagney <cagney@redhat.com>
2028
2029 * regcache.h (deprecated_read_register_gen): Rename
2030 read_register_gen.
2031 (deprecated_write_register_gen): Rename write_register_gen.
2032 * i387-tdep.c: Update.
2033 * x86-64-linux-nat.c: Update
2034 * wince.c: Update.
2035 * thread-db.c: Update.
2036 * win32-nat.c: Update.
2037 * mips-tdep.c: Update.
2038 * d10v-tdep.c: Update.
2039 * cris-tdep.c: Update.
2040 * remote-sim.c: Update.
2041 * remote-rdi.c: Update.
2042 * remote-rdp.c: Update.
2043 * frame.c: Update.
2044 * target.c: Update.
2045 * blockframe.c: Update.
2046 * x86-64-tdep.c: Update.
2047 * xstormy16-tdep.c: Update.
2048 * sh-tdep.c: Update.
2049 * s390-tdep.c: Update.
2050 * rs6000-tdep.c: Update.
2051 * sparc-tdep.c: Update.
2052 * i386-tdep.c: Update.
2053 * dwarf2cfi.c: Update.
2054 * regcache.c: Update.
2055
2056 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2057
2058 New interix-specific files:
2059 * config/i386/nm-interix.h: New file.
2060 * config/i386/interix.mh: New file.
2061 * config/i386/interix.mt: New file.
2062 * i386-interix-nat.c: New file.
2063 * i386-interix-tdep.c: New file.
2064
2065 2002-11-01 Andrew Cagney <cagney@redhat.com>
2066
2067 * frame.h (deprecated_generic_get_saved_register): Rename
2068 generic_get_saved_register.
2069 * blockframe.c (deprecated_generic_get_saved_register): Update.
2070 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2071 (xstormy16_frame_saved_register): Update.
2072 * sh-tdep.c (sh_gdbarch_init): Update.
2073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2074 * ia64-tdep.c (ia64_get_saved_register): Update.
2075 * cris-tdep.c (cris_gdbarch_init): Update.
2076 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2077 * arm-tdep.c (arm_gdbarch_init): Update.
2078
2079 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2080
2081 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2082
2083 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2084
2085 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2086 trampolines in sigaction.
2087
2088 2002-10-31 Andrew Cagney <cagney@redhat.com>
2089
2090 * h8300-tdep.c: Include "gdb_assert.h".
2091 (h8300_print_register): Add gdbarch, file and frame parameters.
2092 Use frame_read_unsigned_register to read the register's value.
2093 Use fprintf_filtered to display output.
2094 (h8300_print_registers_info): Replace h8300_do_registers_info.
2095 (h8300_gdbarch_init): Set print_registers_info.
2096
2097 2002-10-31 Andrew Cagney <cagney@redhat.com>
2098
2099 * frame.c (frame_read_unsigned_register): New function.
2100 (frame_read_signed_register): New function.
2101 * frame.h (frame_read_unsigned_register): Declare.
2102 (frame_read_signed_register): Declare.
2103
2104 2002-10-31 Andrew Cagney <cagney@redhat.com>
2105
2106 * h8500-tdep.c (h8500_print_registers_info): New static function,
2107 clone of infcmd.c's default_print_registers_info.
2108 (h8500_do_registers_info): New funtion.
2109 (h8500_print_register_hook): Rename print_register_hook, make
2110 static.
2111
2112 * config/h8500/tm-h8500.h: Update copyright.
2113 (DEPRECATED_DO_REGISTERS_INFO): Define.
2114 (h8500_do_registers_info: Declare.
2115 (PRINT_REGISTER_HOOK): Delete macro.
2116 (print_register_hook): Delete function.
2117
2118 2002-10-31 Andrew Cagney <cagney@redhat.com>
2119
2120 * z8k-tdep.c (z8k_print_register_hook): Make static.
2121 (z8k_print_registers_info): New static function, clone of
2122 infcmd.c's default_print_registers_info.
2123 (z8k_do_registers_info): New function. Wrap
2124 z8k_print_registers_info.
2125 * config/z8k/tm-z8k.h: Update copyright.
2126 (PRINT_REGISTER_HOOK): Delete macro.
2127 (z8k_print_register_hook): Delete declaration.
2128 (DEPRECATED_DO_REGISTERS_INFO): Define.
2129 (z8k_do_registers_info): Declare.
2130
2131 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2132
2133 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2134 as this is already provided by value.h, and was actually causing
2135 a compilation error because of a conflict in parameter type
2136 declaration due to a missing const keyword.
2137 (low_text_segment_addres): Fix a compilation warning.
2138
2139 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2140
2141 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2142 registers without a name.
2143 (mips_linux_cannot_store_register): Don't store registers without
2144 a name.
2145
2146 2002-10-28 David Carlton <carlton@math.stanford.edu>
2147
2148 * symtab.c (find_addr_symbol): Delete. (It was already commented
2149 out.)
2150 * symtab.h: Delete prototype for find_addr_symbol.
2151
2152 2002-10-26 Andrew Cagney <cagney@redhat.com>
2153
2154 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2155 DO_REGISTERS_INFO.
2156 gdbarch.h, gdbarch.c: Re-generate.
2157 * infcmd.c (default_print_registers_info): Update reference.
2158 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2159 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2160 * sh-tdep.c (sh_gdbarch_init): Ditto.
2161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2162 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2163
2164 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2165
2166 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2167 cfi_init_extra_frame_info.
2168 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2169 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2170
2171 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2172 target where necessary. Add more comments and remove the ones
2173 that don't provide any useful information.
2174
2175 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2176 deprecated_read_register_dummy with
2177 frame_unwind_unsigned_register.
2178
2179 * i386-tdep.c (i386_extract_struct_value_address): Use
2180 regcache_raw_read_unsigned instead of
2181 regcache_cooked_read_unsigned since we know that the register
2182 we're reading isn't a pseudo register. Rename variable 'val' into
2183 the more descriptive 'addr'.
2184
2185 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2186 (x86_64_push_return_address): Add comment.
2187 (x86_64_pop_frame): Make static.
2188 (examine_argument): Clarify comment.
2189 (x86_64_skip_prologue): Make prolog_expact variable static.
2190
2191 * dwarf2cfi.c: Fix some formatting problems.
2192 (context_cpy, read_encoded_pointer): Clarify comments.
2193
2194 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2195 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2196 i386 target back into x86_64_gdbarch_init. Add some comments and
2197 remove meaningless ones.
2198
2199 2002-10-25 Andrew Cagney <cagney@redhat.com>
2200
2201 * complaints.h (struct deprecated_complaint): Rename `struct
2202 complaint'.
2203 * complaints.c (complain): Update.
2204 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2205 incorrect comment indicating that "symfile.h" was being included
2206 for the `struct complaint' definition.
2207 * remote-vx.c: Update.
2208 * objc-lang.c: Update.
2209 * xcoffread.c: Update.
2210 * hpread.c: Update.
2211 * mdebugread.c: Update.
2212 * stabsread.c: Update.
2213 * dwarf2read.c: Update.
2214 * dwarfread.c: Update.
2215 * elfread.c: Update.
2216 * coffread.c: Update.
2217 * stabsread.h: Update.
2218 * dbxread.c: Update.
2219 * buildsym.c: Update.
2220 * gdbtypes.c: Update.
2221 * macrotab.c: Update.
2222
2223 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2224
2225 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2226 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2227 (x86_64_init_abi): ...new function.
2228
2229 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2230 * i386v-nat.c: Include "i386-tdep.h".
2231
2232 2002-10-25 Andrew Cagney <cagney@redhat.com>
2233
2234 * gdbtypes.c (address_space_name_to_int): Update.
2235 (address_space_int_to_name): Update.
2236 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2237 multi-arch predicate.
2238 (address_class_name_to_type_flags): Ditto.
2239 * gdbarch.h, gdbarch.c: Re-generate.
2240
2241 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2242
2243 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2244
2245 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2246
2247 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2248
2249 * symtab.h (INIT_SAL): Delete macro.
2250 (init_sal): Export.
2251 * symtab.c (init_sal): New function.
2252
2253 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2254 to init_sal function call.
2255 (find_sal_from_funcs_and_line): Ditto.
2256 (all_sals_for_line): Ditto.
2257 * breakpoint.c (create_internal_breakpoint): Ditto.
2258 (create_fork_vfork_event_catchpoint): Ditto.
2259 (create_exec_event_catchpoint): Ditto.
2260 (parse_breakpoint_sals): Ditto.
2261 (watch_command_1): Ditto.
2262 (handle_gnu_4_16_catch_command): Ditto.
2263 (clear_command): Ditto.
2264 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2265 * infcmd.c (run_stack_dummy): Ditto.
2266 * infrun.c (process_event_stop_test): Ditto.
2267 (check_sigtramp2): Ditto.
2268 (step_over_function): Ditto.
2269 * linespec.c (decode_line_2): Ditto.
2270 (decode_line_1): Ditto.
2271 * source.c (line_info): Ditto.
2272 * symtab.c (find_pc_sect_line): Ditto.
2273
2274 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2275
2276 * dwarf2cfi.c (struct context)
2277 (struct context_reg): Moved to dwarf2cfi.h
2278 (context_alloc, frame_state_alloc, context_cpy):
2279 Made extern instead of static, removed prototypes.
2280 * dwarf2cfi.h (struct context)
2281 (struct context_reg): New, moved from dwarf2cfi.c
2282 (context_alloc, frame_state_alloc, context_cpy):
2283 New prototypes.
2284 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2285 Changed from static to extern.
2286 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2287 (LINUX_SIGCONTEXT_FP_OFFSET)
2288 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2289 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2290 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2291 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2292 set_gdbarch_*() calls now use x86-64 specific functions
2293 instead of DWARF2 CFI ones.
2294 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2295 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2296 (x86_64_init_extra_frame_info): New prototypes.
2297
2298 2002-10-23 David Carlton <carlton@math.stanford.edu>
2299
2300 * linespec.c: #include "parser-defs.h".
2301 Delete prototype for find_template_name_end.
2302 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2303
2304 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2305
2306 * NEWS: add recent mi fixes.
2307 * varobj.c (struct varobj): Add new "updated" flag.
2308 (new_variable): Default "updated" flag to 0.
2309 (varobj_set_value): Set "updated" flag to 1 if value
2310 changes.
2311 (varobj_update): Check varobj "updated" flag before
2312 comparing old and refreshed values. Fix for
2313 PR gdb/702.
2314
2315 2002-10-23 David Carlton <carlton@math.stanford.edu>
2316
2317 * parse.c (parse_exp_1): Use BLOCK_START.
2318 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2319 SYMBOL_BLOCK_VALUE.
2320 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2321
2322 2002-10-23 David Carlton <carlton@math.stanford.edu>
2323
2324 * symtab.c: Delete cplusplus_hint.
2325 Delete prototype for find_template_name_end.
2326
2327 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2328
2329 * symtab.h: Update comment.
2330
2331 2002-10-23 Michael Snyder <msnyder@redhat.com>
2332
2333 * printcmd.c (address_info): Restore quotes in output.
2334 * valops.c (value_of_local): Restore quotes in error message.
2335
2336 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2337
2338 * symtab.c (symbol_demangled_name): New function.
2339 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2340 turning most of it into a function.
2341 (symbol_demangled_name): Export.
2342
2343 2002-10-23 Michael Snyder <msnyder@redhat.com>
2344
2345 * valops.c (value_of_local): Restore quotes in error message.
2346
2347 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2348
2349 * symtab.c (symbol_init_language_specific): New function.
2350 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2351 turning most of it into a function.
2352 (symbol_init_language_specific): Export.
2353
2354 2002-10-23 David Carlton <carlton@math.stanford.edu>
2355
2356 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2357 (dwarf_attr_name): Ditto.
2358 (dwarf_type_encoding_name): Ditto.
2359 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2360 (process_die): Handle DW_TAG_namespace,
2361 DW_TAG_imported_declaration, DW_TAG_imported_module.
2362 (read_namespace): New function.
2363
2364 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2365
2366 * configure.in: Define NEW_PROC_API on Interix too.
2367 * configure: Regenerate.
2368
2369 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2370
2371 * configure: Regenerate using the proper version of autoconf.
2372
2373 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2374
2375 * findvar.c (read_var_value): Temporarily disable TLS code, until
2376 complete TLS support is added.
2377
2378 2002-10-21 Jim Blandy <jimb@redhat.com>
2379 Elena Zannoni <ezannoni@redhat.com>
2380
2381 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2382 for thread local storage locations.
2383 (struct symbol): Add objfile field.
2384 (SYMBOL_OBJFILE): Define.
2385 * dwarf2read.c (is_thread_local): New static variable.
2386 (new_symbol): If variable is in thread local fill in address class
2387 and objfile appropriately.
2388 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2389 stack operation.
2390 * printcmd.c (address_info): Print the information for thread
2391 local storage variable.
2392 * findvar.c (read_var_value): In case of thread local variable,
2393 defer to the target vector code to compute address.
2394
2395 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2396
2397 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2398 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2399
2400 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2401
2402 * symtab.h (address_class): Rename
2403 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2404 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2405 * printcmd.c (address_info): Ditto.
2406 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2407
2408 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2409
2410 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2411 DBREG_DRX macro to acces debug registers.
2412
2413 * Makefile.in (i386obsd-tdep.o): New target.
2414
2415 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2416 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2417
2418 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2419 * config/i386/obsd.mt: New file.
2420 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2421 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2422 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2423 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2424 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2425 * i386obsd-tdep.c: New file.
2426
2427 2002-10-19 Adam Fedor <fedor@gnu.org>
2428
2429 * objc-exp.y (name_not_typename): Fix invalid comment.
2430
2431 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2432
2433 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2434 to allocate partial syms and macro byte caches.
2435
2436 2002-10-18 David Carlton <carlton@math.stanford.edu>
2437
2438 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2439
2440 2002-10-18 Adam Fedor <fedor@gnu.org>
2441
2442 * stabsread.c (find_name_end): New function.
2443 (define_symbol): Use it.
2444
2445 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2446
2447 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2448 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2449 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2450 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2451
2452 2002-10-17 David Carlton <carlton@math.stanford.edu>
2453
2454 * symfile.h: Add opaque declaration for struct obstack.
2455 Declare obsavestring to take a const char *.
2456 * symfile.c (obsavestring): Make first argument a const char *.
2457
2458 2002-10-16 Adam Fedor <fedor@gnu.org>
2459
2460 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2461 names when matching breakpoints in current file.
2462
2463 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2464
2465 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2466 (read_tag_pointer_type): Add address class support.
2467 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2468 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2469 New methods.
2470 * gdbarch.h, gdbarch.c: Regenerate.
2471 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2472 (make_type_with_address_space, recursive_type_dump): Add address
2473 class support.
2474 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2475 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2476 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2477
2478 2002-10-16 Klee Dienes <kdienes@apple.com>
2479
2480 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2481 to get the last character of a char[] buffer, not
2482 name[sizeof(vptr_name)-1].
2483
2484 2002-10-14 Adam Fedor <fedor@gnu.org>
2485
2486 * symtab.h: New objc_specific struct.
2487 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2488 (SYMBOL_DEMANGLED_NAME): Likewise.
2489
2490 2002-10-14 Adam Fedor <fedor@gnu.org>
2491
2492 * symfile.c (init_filename_language_table): Add ObjC file extension.
2493
2494 2002-10-14 Adam Fedor <fedor@gnu.org>
2495
2496 * utils.c (puts_filtered_tabular): New function.
2497 (fprintf_symbol_filtered): Get ObjC demangled name.
2498 * defs.h (puts_filtered_tabular): Declared.
2499
2500 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2501
2502 * c-lang.h (c_type_print_varspec_prefix): Delete.
2503 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2504 ``need_post_space'' parameter. Adjust all callers.
2505
2506 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2507
2508 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2509 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2510 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2511 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2512
2513 2002-10-13 Adam Fedor <fedor@gnu.org>
2514
2515 * source.c (print_source_lines): Update comments.
2516
2517 2002-10-13 Adam Fedor <fedor@gnu.org>
2518
2519 * valops.c (value_of_local): New function.
2520 (value_of_this): Use it.
2521 * value.h (value_of_local): Declared.
2522
2523 2002-10-13 Adam Fedor <fedor@gnu.org>
2524
2525 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2526 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2527
2528 2002-10-12 Adam Fedor <fedor@gnu.org>
2529
2530 * language.c (binop_result_type): Add language_objc to case.
2531 (integral_type): Likewise.
2532 (character_type): Likewise.
2533 (string_type): Likewise.
2534 (boolean_type): Likewise.
2535 (structured_type): Likewise.
2536 (binop_type_check): Likewise.
2537
2538 2002-10-11 Adam Fedor <fedor@gnu.org>
2539
2540 * printcmd.c (address_info): Print 'self' for ObjC.
2541
2542 2002-10-11 Adam Fedor <fedor@gnu.org>
2543
2544 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2545 OP_SELF.
2546
2547 2002-10-11 Adam Fedor <fedor@gnu.org>
2548
2549 * language.h (CAST_IS_CONVERSION): Add language_objc.
2550
2551 2002-10-11 Adam Fedor <fedor@gnu.org>
2552
2553 * defs.h (enum language): Add language_objc.
2554
2555 2002-10-11 Klee Dienes <kdienes@apple.com>
2556
2557 * corefile.c (read_memory_typed_address): New function.
2558 * gdbcore.h (read_memory_typed_address): Add prototype.
2559 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2560 to read a value destined for a CORE_ADDR, not read_memory_integer.
2561 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2562 (f77_get_dynamic_lowerbound): Ditto.
2563
2564 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2565
2566 * utils.c (string_to_core_addr): After turning string into
2567 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2568 which will do necessary sign-extension, etc.
2569
2570 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2571
2572 * c-exp.y (THIS): Delete token and grammar rule.
2573 (yylex): Don't return THIS.
2574 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2575 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2576 * demangle.c (cplus_markers): Update comment. Put '$'
2577 first. Remove CPLUS_MARKER.
2578 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2579 * jv-exp.y (THIS): Delete token and grammar rule.
2580 (yylex): Don't return THIS.
2581 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2582 * objc-exp.y (THIS): Delete token and grammar rule.
2583 (yylex): Don't return THIS.
2584 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2585 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2586 (read_member_functions): Likewise for opname.
2587 (read_tilde_fields): Use is_cplus_marker.
2588
2589 * defs.h (CPLUS_MARKER): Don't define.
2590 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2591 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2592 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2593 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2594 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2595
2596 * config/i386/tm-i386v4.h: Delete file.
2597 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2598 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2599 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2600 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2601 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2602 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2603 * config/i386/i386v4.mt (TM_FILE): Likewise.
2604 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2605
2606 2002-10-10 Marko Mlinar <markom@opencores.org>
2607
2608 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2609 accidentially not commited 2002-10-09
2610 * gdbarch.h, gdbarch.c: Re-generate.
2611
2612 2002-10-09 Marko Mlinar <markom@opencores.org>
2613
2614 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2615 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2616 * gdbarch.h, gdbarch.c: Re-generate.
2617
2618 2002-10-08 Petr Sorfa <petrs@caldera.com>
2619
2620 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2621
2622 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2623 so we can work on more than one compilation unit at a time. This
2624 helps prepare GDB to handle inter-CU die references.
2625 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2626 the code to be defined before struct comp_unit_head.
2627 (comp_unit_head): Added new members - offset, cu_head,
2628 begin_die, next and dwarf2_abbrevs.
2629 (dwarf2_abbrevs): Removed single static var; now member of
2630 struct comp_unit_head.
2631 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2632 members.
2633 (psymtab_to_symtab_1): Changed to work with the new
2634 struct comp_unit_head.
2635 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2636 constructs the dwarf2_abbrevs[] inside the cu_header.
2637 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2638 dwarf2_abbrev table to clean up.
2639 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2640 handling of dwarf2_abbrevs inside the cu_header.
2641 (read_partial_die): Now supports the call to the new
2642 dwarf2_lookup_abbrev.
2643 (read_full_die): Now supports the call to the new
2644 dwarf2_lookup_abbrev.
2645
2646 2002-10-06 Christopher Faylor <cgf@redhat.com>
2647
2648 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2649 insure that shell variables, such as "transformed_name" are propagated
2650 to later shell statements in rule.
2651
2652 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2653
2654 * config/i386/nm-i386sco.h: Add protection against
2655 multiple-inclusion. Include "i386/nm-i386v.h".
2656 (REGISTER_U_ADDR): Remove define.
2657 (i386_register_u_addr): Remove prototype.
2658
2659 2002-10-04 Michael Snyder <msnyder@redhat.com>
2660
2661 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2662 before treating it as a single-step event.
2663
2664 2002-10-03 Adam Fedor <fedor@gnu.org>
2665
2666 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2667 (objc_demangle): Remove assignment in if statements, Replace
2668 free with xfree.
2669 (add_msglist): Likewise.
2670 (end_msglist): Likewise.
2671 (complare_selectors): Likewise.
2672 (selectors_info): Likewise.
2673 (compare_classes): Likewise.
2674 (classes_info): Likewise.
2675 (print_object_command): Likewise.
2676 (find_objc_msgcall_submethod): Replace PTR with void *.
2677 * objc-lang.h: Remove check for __STDC__.
2678
2679 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2680
2681 * ui-out.h (ui_out_field_fmt_int): New prototype.
2682 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2683 of field width and alignment.
2684 * stack.c (print_frame_info_base): When printing frame level, use
2685 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2686 PR gdb/192
2687
2688 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2689
2690 * MAINTAINERS: Add self to Write After Approval list.
2691
2692 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2693
2694 * infcmd.c (interrupt_target_command_wrapper): Delete.
2695 (interrupt_target_command): Make non static.
2696 (nofp_registers_info): Make static.
2697 * stack.c (return_command_wrapper): Delete.
2698 (return_command): Make non static.
2699
2700 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2701
2702 * event-top.c (gdb_setup_readline): New function. Code moved from
2703 _initialize_event_loop().
2704 (_initialize_event_loop): Call gdb_setup_readline().
2705
2706 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2707
2708 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2709 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2710 * gdbarch.h, gdbarch.c: Re-generate.
2711
2712 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2713
2714 Fix PR gdb/778
2715 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2716 before recursing.
2717 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2718 of fill_in_vptr_fieldno.
2719
2720 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2721
2722 * inferior.h (registers_info, stepi_command, nexti_command,
2723 continue_command, interrupt_target_command): Export from infcmd.c.
2724 * frame.h (args_info, selected_frame_level_changed_hook,
2725 return_command): Export from stack.c.
2726 * v850ice.c (stepi_command, nexti_command, continue_command): use
2727 prototypes from inferior.h.
2728 * tracepoint.c (registers_info, args_info, locals_info): Use
2729 prototypes from frame.h and inferior.h.
2730 * Makefile.in (mi-main.o): Add dependency on frame.h.
2731
2732 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2733
2734 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2735 value in register 3 adjusted by ppc_gp0_regnum.
2736
2737 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2738
2739 2002-10-02 Marko Mlinar <markom@opencores.org>
2740
2741 * MAINTAINERS: Add myself to the Write After Approval list.
2742
2743 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2744
2745 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2746 of the section for the N64 ABI, fixed.
2747
2748 * config/mips/tm-irix6.h: Include solib.h.
2749
2750 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2751
2752 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2753 GNU operators.
2754
2755 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2756
2757 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2758 and that "mi0" syntax has been removed.
2759
2760 2002-09-30 David Carlton <carlton@math.stanford.edu>
2761
2762 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2763 * ppc-sysv-tdep.c: #include "gdb_string.h".
2764 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2765 pacify GCC.
2766
2767 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2768
2769 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2770 "vrsave"'s register number.
2771
2772 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2773
2774 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2775 use frame_unwind_signed_register to obtain the PC.
2776 (mips_frame_chain): Handle a generic dummy frame.
2777 (mips_init_extra_frame_info): When a generic dummy frame, don't
2778 re-compute the frame base.
2779 (mips_pop_frame): Handle generic dummy frames.
2780 (mips_gdbarch_init): When generic dummy frames, set
2781 use_generic_dummy_frames, push_dummy_frame to
2782 generic_push_dummy_frame, pc_in_call_dummy to
2783 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2784 generic_save_dummy_frame_tos.
2785
2786 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2787
2788 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2789 against TOP when TOP was explictly set.
2790 (generic_push_dummy_frame): Set TOP to zero.
2791
2792 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2793
2794 * event-loop.c (start_event_loop): Rename variable 'result' to
2795 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2796
2797 2002-09-30 Keith Seitz <keiths@redhat.com>
2798
2799 * gdb-events.sh (selected_thread_changed): New event.
2800 * gdb-events.c: Regenerated.
2801 * gdb-events.h: Regenerated.
2802
2803 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2804
2805 * MAINTAINERS: Add self to Write After Approval list.
2806
2807 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2808
2809 * disasm.c: New file.
2810 * disasm.h: New file.
2811 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2812 (compare_lines): Ditto.
2813 (dump_insns): Ditto.
2814 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2815 argument.
2816 (do_assembly_only): Ditto.
2817 (do_disassembly): Renamed to gdb_disassembly and moved to
2818 disasm.c. Sdded uiout argument.
2819 * Makefile.in: Add new files. Reorder SFILES list. Update
2820 dependencies. Include libgdb.a later in the insight executable.
2821
2822 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2823
2824 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2825 bfd/elf64-alpha-fbsd.c.
2826
2827 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2828
2829 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2830 i386gnu-tdep.c.
2831
2832 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2833
2834 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2835 __FUNCTION__.
2836 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2837 function name.
2838 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2839 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2840 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2841 (S_msg_sig_post_reply): Ditto.
2842
2843 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2844
2845 * sh-tdep.c (sh_use_struct_convention): Use definition according
2846 to ABI.
2847 (sh_push_arguments): Store in register with correct endianess.
2848 (sh_default_store_return_value): Ditto.
2849 (sh_gdbarch_init): Set sizeof long double to 8.
2850
2851 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2852
2853 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2854 Fix some whitespace problems.
2855
2856 2002-09-27 David Carlton <carlton@math.stanford.edu>
2857
2858 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2859 (mcore-tdep.o): Ditto.
2860 (ns32k-tdep.o): Ditto.
2861 (ns32knbsd-tdep.o): Ditto.
2862 (sh3-rom.o): Ditto.
2863 (vax-tdep.o): Ditto.
2864 * cris-tdep.c: #include "gdb_string.h"
2865 * mcore-tdep.c: Ditto.
2866 * ns32k-tdep.c: Ditto.
2867 * ns32knbsd-tdep.c: Ditto.
2868 * sh3-rom.c: Ditto.
2869 * vax-tdep.c: Ditto.
2870
2871 2002-09-27 David Carlton <carlton@math.stanford.edu>
2872
2873 * config/djgpp/fnchange.lst: Add entries for
2874 gdb/testsuite/gdb.c++/m-static files.
2875
2876 2002-09-27 Jim Wilson <wilson@redhat.com>
2877
2878 * MAINTAINERS: Add myself to the Write After Approval list.
2879
2880 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2881
2882 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2883
2884
2885 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2886
2887 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2888 frame.
2889
2890 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2891
2892 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2893 (rs6000_struct_return_address): Delete variable.
2894 (rs6000_store_struct_return): Update.
2895 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2896 deprecated_extract_struct_value_address.
2897 (rs6000_frame_align): New function.
2898 (rs6000_gdbarch_init): Set frame_align.
2899
2900 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2901
2902 From Grace Sainsbury <graces@redhat.com>:
2903 * Makefile.in (gdbtk-main.o): New target.
2904 (gdb.o): New target.
2905 (main_h): Define.
2906 (main.o): Update dependencies.
2907 (gdb$(EXEEXT)): Add gdb.o.
2908 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2909 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2910 (SUBDIR_GDBTK_CLEAN): Set.
2911 (install-gdbtk): Install the insight binary.
2912 (uninstall-gdbtk): New target.
2913 (all-gdbtk, clean-gdbtk): New rule.
2914 * top.c (use_windows): Default to zero.
2915 * main.c: Include "main.h".
2916 (main): Delete.
2917 (struct captured_main_args): Delete.
2918 (gdb_main): New function.
2919 * main.h: New file.
2920 * gdb.c: New File.
2921
2922 2002-09-25 Andrew Cagney <cagney@redhat.com>
2923
2924 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2925 (frame_map_regnum_to_name): New function.
2926 (frame_map_name_to_regnum): New function.
2927 * frame.h (frame_map_name_to_regnum): Declare.
2928 (frame_map_regnum_to_name): Declare.
2929 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2930 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2931 * parse.c: Do not include "builtin-regs.h".
2932 (target_map_name_to_register): Delete function.
2933 (write_dollar_variable): Use frame_map_name_to_regnum.
2934 * parser-defs.h (target_map_name_to_register): Delete declaration.
2935 * expprint.c: Include "frame.h".
2936 (print_subexp): Use frame_map_regnum_to_name.
2937 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2938 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2939
2940 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2941
2942 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2943 wasn't saved, and the next innermost frame is a dummy, return the
2944 dummy frame's link register.
2945
2946 2002-09-24 Jim Blandy <jimb@redhat.com>
2947
2948 Fix from Paul Breed:
2949 * main.c (captured_main): Add a `break' after the case for 'b'.
2950
2951 2002-09-24 Keith Seitz <keiths@redhat.com>
2952
2953 * varobj.c (c_type_of_child): Use get_target_type instead
2954 of TYPE_TARGET_TYPE.
2955
2956 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2957
2958 * source.c (get_current_or_default_source_symtab_and_line): Remove
2959 function.
2960 (set_default_source_symtab_and_line): New function. Attempts to
2961 determine a source file to list lines from if one is not currently
2962 defined.
2963 (get_current_source_symtab_and_line): Initialize sal.pc and
2964 sal.end fields.
2965 (set_current_source_symtab_and_line): Mark argument as const.
2966 * source.h: Update declarations and comments.
2967 * linespec.c (decode_line_1): Replace call to removed routine above.
2968 * stack.c (print_frame_info_base): Ditto.
2969 * cli/cli-cmds.c (edit_command): Ditto.
2970 (list_command): Ditto.
2971
2972 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2973
2974 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2975 sal.pc and sal.end fields.
2976 (get_current_or_default_source_symtab_and_line): Ditto.
2977 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2978 so we do not cause a new source symtab to be searched for (reverting an
2979 unintentional change from the 2002-09-20 patch).
2980 * scm-lang.c (scm_unpac): Ditto.
2981
2982 2002-09-21 Andrew Cagney <cagney@redhat.com>
2983
2984 * complaints.c (symfile_explanations): Remove new-line from
2985 ``isolated_message''.
2986 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2987 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2988
2989 2002-09-20 Nick Clifton <nickc@redhat.com>
2990
2991 * NEWS: Announce that V850EA ISA is no longer supported.
2992 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2993
2994 2002-09-20 David Carlton <carlton@math.stanford.edu>
2995
2996 * Makefile.in (c-lang.o): Correct dependencies.
2997 (utils.o): Gather dependencies.
2998 (charset.o): Move.
2999 * c-lang.c: #include "gdb_string.h"
3000
3001 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3002
3003 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3004 * cli/cli-cmds.c (list_command): New function. Implements the new
3005 cli edit command.
3006 (_init_cli_cmds): Add new command definition.
3007 * gdb.1: Document edit command.
3008 * doc/gdb.texinfo: Document edit command.
3009
3010 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3011
3012 * source.c: Make global variables current_source_symtab and
3013 current_source_line static.
3014 (list_command): Moved to cli/cli-cmds.c.
3015 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3016 (get_first_line_listed): New accessor function.
3017 (get_lines_to_list): New accessor function.
3018 (get_current_source_symtab_and_line): New function. Retrieves the
3019 position in the source code that we consider current.
3020 (get_current_or_default_source_symtab_and_line): New function.
3021 Like the above but attempts to determine a default position if one
3022 is not currently defined.
3023 (set_current_source_symtab_and_line): New function. Sets the source
3024 code position considered current and returns the previously set one.
3025 (clear_current_source_symtab_and_line): Reset stored information about
3026 a current source line.
3027 (_initialize_source): Remove registration for the "list" command and
3028 its alias.
3029 * source.h: Add declarations for the new functions above.
3030 * symtab.h: Remove declarations for the global variables mentioned
3031 above.
3032 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3033 obtain current source line.
3034 * linespec.c (decode_line_1): Ditto.
3035 * macroscope.c (default_macro_scope): Ditto.
3036 * scm-lang.c (scm_unpac): Ditto.
3037 * stack.c (print_frame_info_base): Ditto.
3038 * symfile.c (clear_symtab_users): Ditto.
3039 * symtab.c (decode_line_spec): Ditto.
3040 * cli/cli-cmds.c (list_command): Moved here from source.c.
3041 (ambiguous_line_spec): Moved here from source.c.
3042 (_init_cli_cmds): Add definition for "list" and its alias.
3043 * Makefile.in: Update dependencies.
3044
3045 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3046
3047 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3048 with what gcc thinks is correct.
3049
3050 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3051
3052 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3053 multiple register push instruction.
3054
3055 2002-09-19 Jim Blandy <jimb@redhat.com>
3056
3057 Add support for distinct host and target character sets.
3058 * charset.c, charset.h: New files.
3059 * c-exp.y: #include "charset.h".
3060 (yylex): Convert character and string literals to the target
3061 character set, before returning them as the semantic value of the
3062 token.
3063 * c-lang.c: #include "charset.h".
3064 (c_emit_char): Use charset-specific methods to recognize
3065 characters with backslash escape forms, to decide which characters
3066 to print literally and which to print using numeric escape
3067 sequences, and to convert target characters to host characters
3068 before printing.
3069 * utils.c: #include "charset.h".
3070 (no_control_char_error): New function.
3071 (parse_escape): Use charset-specific methods to recognize
3072 backslash escapes, parse `control character' notation, and convert
3073 characters from the host character set to the target character set.
3074 * configure.in: Set the default host character set.
3075 Check where to find iconv, and what its argument types might be.
3076 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3077 * Makefile.in (SFILES): List charset.c.
3078 (COMMON_OBS): List charset.o.
3079 (charset.o): New rule.
3080 (charset_h): New header dependency variable.
3081 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3082 (LIBICONV): New variable, set by configure.
3083 (CLIBS): Include $(LIBICONV) here.
3084 * aclocal.m4, config.in, configure: Regenerated.
3085
3086 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3087
3088 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3089 bison 1.35 warning.
3090
3091 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3092
3093 * gdb_mbuild.sh: New file.
3094
3095 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3096
3097 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3098
3099 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3100
3101 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3102 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3103 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3104 valops.c, value.h: Revert previous change.
3105
3106 2002-09-18 Michael Snyder <msnyder@redhat.com>
3107
3108 Preliminary support for Objective-C:
3109 * defs.h (language_objc): New enum value.
3110 (puts_filtered_tabular): Declaration only, exported from utils.c.
3111 (skip_quoted): Delete, declared in completer.h.
3112 * c-exp.y: Include completer.h.
3113 * p-exp.y: Ditto.
3114 * jv-exp.y: Ditto.
3115 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3116 New operator enum values.
3117 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3118 * language.c (binop_result_type): Handle language_objc case.
3119 (integral_type, character_type, string_type, boolean_type,
3120 structured_type, binop_type_check): Ditto.
3121 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3122 (struct objc_specific): Add to general_symbol_info.
3123 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3124 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3125 * parser-defs.h (struct objc_class_str): New struct type.
3126 (start_msglist, end_msglist, add_msglist): Declaration only,
3127 exported from objc-lang.c.
3128 * value.h (value_of_local, value_nsstring,
3129 call_function_by_hand_expecting_type): Exported from valops.c.
3130 * valops.c (find_function_addr): Export.
3131 (call_function_by_hand_expecting_type): New function.
3132 (value_of_local): New function.
3133 * symfile.c (init_filename_language_table): Add ".m" extension
3134 for Objective-C.
3135 * utils.c (puts_filtered_tabular): New function.
3136 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3137 (set/show demangle): Extend help-string to refer to ObjC.
3138 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3139 * stabsread.c (symbol_reference_defined): Objective-C symbols
3140 may contain colons: make allowances when scanning stabs strings
3141 for colons.
3142 (objc_find_colon): New function.
3143 * printcmd.c (address_info): If language == objc then print
3144 "self" instead of "this".
3145 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3146 OP_NSSTRING, and OP_SELF.
3147 (prefixify_subexp): Ditto.
3148 * source.c (print_source_lines): Mention objc in comment.
3149 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3150 method names.
3151
3152 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3153
3154 * complaints.h: Update copyright.
3155 (struct complaints): Declare.
3156 (struct complaint): Make `message' constant.
3157 (internal_complaint): Declare.
3158 (complaint): Declare.
3159 (complaint_root): Delete declaration.
3160 (symfile_complaints): Delete declaration.
3161 (struct complaints): Add opaque declaration.
3162 (clear_complaints): Add a complaints parameter.
3163 * complaints.c: Update copyright.
3164 (enum complaint_series): Define.
3165 (complaint_root): Delete.
3166 (struct complaints): Define.
3167 (complaint_sentinel, symfile_complaint_book): New variables.
3168 (symfile_explanations, symfile_complaints): New variables.
3169 New variables.
3170 (get_complaints): New function.
3171 (vcomplaint): New function.
3172 (complaint): New function.
3173 (internal_complaint): New function.
3174 (complain): Call vcomplain with symfile_complaint.
3175 (clear_complaints): Rewrite.
3176 (_initialize_complaints): Use add_setshow_command.
3177 * Makefile.in (complaints.o): Update dependencies.
3178 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3179 to call to clear_complaints.
3180 (new_symfile_objfile, reread_symbols): Ditto.
3181 (oldsyms_complaint): Delete.
3182 (empty_symtab_complaint, unknown_option_complaint): Delete.
3183 (free_named_symtabs): Use complaint instead of complain.
3184
3185 2002-09-18 Michael Snyder <msnyder@redhat.com>
3186
3187 Contributed by Apple Computer, Inc. Merged with current sources
3188 by Adam Fedor <fedor@doc.com> [cagney].
3189
3190 * objc-lang.c: First clean-up round: comments, indentation.
3191 * objc-lang.h: Ditto.
3192 * objc-lang.y: Ditto.
3193
3194 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3195
3196 * maint.c (maintenance_internal_error): Print the parameter as the
3197 error message.
3198 (maintenance_internal_warning): New function.
3199 (_initialize_maint_cmds): Add command `maint internal-warning'.
3200
3201 * defs.h (internal_warning, internal_vwarning): Declare.
3202 * utils.c (struct internal_problem): Define.
3203 (internal_vproblem): New function.
3204 (internal_warning): New function.
3205 (internal_vwarning): New function.
3206 (internal_warning_problem, internal_error_problem): New variables.
3207 (internal_verror): Just call internal_vproblem.
3208
3209 2002-09-18 Michael Snyder <msnyder@redhat.com>
3210
3211 * objc-lang.c: New file, support for Objective-C.
3212 Preliminary check-in, not yet integrated into gdb.
3213 * objc-lang.h: New file.
3214 * objc-exp.y: New file.
3215
3216 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3217
3218 * infrun.c (signal_stop_update): Convert definition to ISO C.
3219 (signal_print_update): Ditto.
3220 (signal_pass_update): Ditto.
3221 * inflow.c (terminal_save_ours): Ditto.
3222
3223 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3224 comments.
3225
3226 * config/djgpp/fnchange.lst: Handle name clashes between
3227 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3228 bfd/coff-tic80.c.
3229
3230 * i386-linux-tdep.h: Fix tipo.
3231
3232 2002-09-18 Adam Fedor <fedor@gnu.org>
3233
3234 * MAINTAINERS: Add myself to the Write After Approval list.
3235
3236 2002-09-18 Jim Blandy <jimb@redhat.com>
3237
3238 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3239 texthigh and textlow to reader-specific structs caused
3240 objfile_relocate to miss them. This is fixable, but the work that
3241 the change was supposed to prepare GDB for never got done anyway.
3242
3243 2002-09-18 David Carlton <carlton@math.stanford.edu>
3244
3245 * MAINTAINERS: Alphabetize Write After Approval list.
3246
3247 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3248
3249 Fix PR gdb/709
3250 * values.c (value_static_field): Call read_var_value.
3251
3252 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3253
3254 * valops.c (hand_function_call): Align the initial stack pointer
3255 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3256 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3257 return value.
3258 * mips-tdep.c (mips_frame_align): New function.
3259 (mips_gdbarch_init): Set frame_align.
3260 * gdbarch.sh (FRAME_ALIGN): New method.
3261 * gdbarch.h, gdbarch.c: Re-generate.
3262
3263 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3264
3265 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3266 registers.
3267
3268 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3269
3270 * NEWS: Mention that MIPS $fp behavior changed.
3271 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3272 reference to FP_REGNUM.
3273 (mipsnbsd_cannot_store_register): Ditto.
3274 * mips-linux-nat.c: Update copyright.
3275 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3276 (mips_linux_cannot_store_register): Ditto.
3277 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3278 * config/mips/tm-mips.h: Update copyright.
3279 (FP_REGNUM): Delete macro.
3280 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3281 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3282 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3283 (mips_r3041_reg_names, mips_r3051_reg_names)
3284 (mips_r3081_reg_names): Replace "fp" with "".
3285 Fix PR gdb/480.
3286
3287 2002-09-17 Theodore A. Roth <troth@verinet.com>
3288
3289 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3290 generic_read_register_dummy() (PR gdb/703).
3291 (avr_push_return_address): #if 0 out unused vars.
3292 (avr_gdbarch_init): Enable use of avr_push_return_address().
3293
3294 2002-09-17 Michael Snyder <msnyder@redhat.com>
3295
3296 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3297 RTE will take care of it.
3298
3299 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3300
3301 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3302 invalid, return SP_REGNUM.
3303
3304 2002-09-17 Michael Snyder <msnyder@redhat.com>
3305
3306 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3307 point registers without sign extension.
3308
3309 2002-09-17 Andrew Cagney <cagney@redhat.com>
3310
3311 * blockframe.c (deprecated_read_register_dummy): Rename
3312 generic_read_register_dummy.
3313 * frame.c (frame_unwind_signed_register): New function.
3314 (frame_unwind_unsigned_register): New function.
3315 * frame.h (frame_unwind_signed_register): Declare.
3316 (frame_unwind_unsigned_register): Declare.
3317 (deprecated_read_register_dummy): Rename
3318 generic_read_register_dummy.
3319
3320 * h8300-tdep.c (h8300_frame_chain): Update.
3321 (h8300_frame_saved_pc): Update.
3322 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3323 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3324 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3325 (s390_frame_chain): Update.
3326 * v850-tdep.c (v850_find_callers_reg): Update.
3327 (v850_frame_saved_pc): Update.
3328 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3329 (m32r_find_callers_reg): Update.
3330 (m32r_frame_saved_pc): Update.
3331 * sh-tdep.c (sh_find_callers_reg): Update.
3332 (sh64_get_saved_pr): Update.
3333 (sh_init_extra_frame_info): Update.
3334 (sh_init_extra_frame_info): Update.
3335 (sh64_init_extra_frame_info): Update.
3336 (sh64_init_extra_frame_info): Update.
3337 * mcore-tdep.c (mcore_find_callers_reg): Update.
3338 (mcore_frame_saved_pc): Update.
3339 (mcore_init_extra_frame_info): Update.
3340 * i386-tdep.c (i386_frame_saved_pc): Update.
3341 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3342 (ia64_init_extra_frame_info): Update.
3343 (ia64_init_extra_frame_info): Update.
3344 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3345 * cris-tdep.c (cris_init_extra_frame_info): Update.
3346 * avr-tdep.c (avr_frame_chain): Update.
3347 (avr_init_extra_frame_info): Update.
3348 (avr_frame_saved_pc): Update.
3349 * arm-tdep.c (arm_find_callers_reg): Update.
3350 (arm_init_extra_frame_info): Update.
3351 (arm_frame_saved_pc): Update.
3352
3353 2002-09-17 Tom Tromey <tromey@redhat.com>
3354
3355 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3356 is "'".
3357
3358 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3359
3360 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3361 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3362 NEXT_PROLOGUE_INSN.
3363 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3364 NEXT_PROLOGUE_INSN.
3365
3366 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3367
3368 * osfsolib.c: Remove file, replaced by solib-osf.c.
3369 * Makefile.in: Remove compilation rules for osfsolib.c.
3370
3371 2002-09-16 David Carlton <carlton@math.stanford.edu>
3372
3373 * cp-valprint.c (cp_print_class_method): Correct args to
3374 check_stub_method_group.
3375
3376 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3377
3378 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3379 `set architecture'. Unify naming convention of functions.
3380 (h8300_skip_prologue): Improve prologue analysis.
3381 (h8300_push_arguments): Rewritten to more closely match GCC's
3382 bizarre argument-passing behavior, along with the comment describing
3383 said behavior.
3384 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3385 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3386 sim, remote-e7000.c, remote-hms.c and remote.c
3387
3388 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3389
3390 * i386-tdep.c (gdb_print_insn_i386): Removed.
3391 (i386_print_insn): New function.
3392 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3393 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3394 tm_print_insn_info.
3395
3396 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3397
3398 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3399 zero.
3400
3401 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3402
3403 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3404 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3405 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3406
3407 2002-09-13 Christopher Faylor <cgf@redhat.com>
3408
3409 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3410
3411 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3412
3413 * gdbtypes.c (check_stub_method): Make static.
3414 (check_stub_method_group): New function.
3415 * gdbtypes.h: Update prototypes.
3416 * cp-support.c: New file.
3417 * cp-support.h: New file.
3418
3419 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3420 (update_method_name_from_physname): New function.
3421 (read_member_functions): Correct method names for operators
3422 and v3 constructors/destructors. Separate v2 constructors and
3423 destructors.
3424 * Makefile.in (stabsread.o): Update dependencies.
3425 (SFILES): Add cp-support.c.
3426 (COMMON_OBS): Add cp-support.o.
3427 (cp_support_h, cp-support.o): Add.
3428
3429 * cp-valprint.c (cp_print_class_method): Call
3430 check_stub_method_group instead of check_stub_method. Remove
3431 extraneous QUITs.
3432 * p-valprint.c (pascal_object_print_class_method): Likewise.
3433 * valops.c (search_struct_method): Likewise.
3434 (find_method_list, value_struct_elt_for_reference): Likewise.
3435
3436 2002-09-13 Andrew Cagney <cagney@redhat.com>
3437
3438 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3439 * gdbarch.h, gdbarch.c: Regenerate.
3440
3441 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3442
3443 * frame.c (find_saved_register): Delete function.
3444 * frame.h (find_saved_register): Delete declaration.
3445 Fix PR gdb/631.
3446
3447 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3448
3449 * mips-tdep.c (read_next_frame_reg): Re-hack using
3450 frame_register_unwind.
3451
3452 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3453
3454 * mips-tdep.c (mips_get_saved_register): Re-hack using
3455 frame_register_unwind.
3456
3457 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3458
3459 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3460 vector. Will be useful for Interix.
3461 * gdbarch.h, gdbarch.c: Regenerate.
3462
3463 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3464 name of the malloc function by NAME_OF_MALLOC.
3465
3466 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3467
3468 * value.h (find_function_in_inferior): Add const keyword to
3469 one of the parameters. Allows us to invoke this function with
3470 a const char *.
3471 * valops.c (find_function_in_inferior): Likewise.
3472
3473 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3474
3475 * exec.c (xfer_memory): Fix compilation warning with old versions
3476 of GCC.
3477 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3478
3479 2002-09-12 David Carlton <carlton@math.stanford.edu>
3480
3481 * symtab.h: Run through gdb_indent.h.
3482 Add 2002 to Copyright year list.
3483
3484 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3485
3486 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3487 mach constants.
3488 * MAINTAINERS: Add myself to write after approval list.
3489
3490 2002-09-11 J. Brobecker <brobecker@gnat.com>
3491
3492 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3493
3494 2002-09-11 J. Brobecker <brobecker@gnat.com>
3495
3496 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3497 Interix.
3498
3499 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3500
3501 * procfs.c (do_detach): Clear current signal, not just fault.
3502 Corrects problem with breakpoint trap signal leaking to detached
3503 process on Tru64.
3504
3505 2002-09-10 Michael Snyder <msnyder@redhat.com>
3506
3507 * buildsym.c (finish_block): Protect against null pointer.
3508
3509 2002-09-10 Andrew Cagney <cagney@redhat.com>
3510
3511 * infcmd.c (default_print_registers_info): Send all output to
3512 ``file'' instead of ``gdb_stdout''.
3513
3514 2002-09-10 Michael Snyder <msnyder@redhat.com>
3515
3516 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3517 LONGEST, and use signed register read (addresses are sign-
3518 extended for mips).
3519
3520 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3521
3522 * event-loop.c (gdb_do_one_event): Make public.
3523 * event-loop.h (gdb_do_one_event): Declare.
3524
3525 2002-09-10 Jeff Law <law@redhat.com>
3526
3527 * infttrace.c (child_resume): Simplify and rework to avoid
3528 TT_PROC_CONTINUE.
3529
3530 2002-09-09 Fred Fish <fnf@intrinsity.com>
3531
3532 * printcmd.c (print_scalar_formatted): "len" is the number of
3533 target bytes, NOT the number of target bits.
3534
3535 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3536
3537 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3538 * top.c (init_main): Set rl_terminal_name.
3539
3540 2002-09-08 Aidan Skinner <aidan@velvet.net>
3541
3542 * ada-lang.c (ada_array_bound, ada_type_match,
3543 _initialize_ada_language): Fix K&R definitions.
3544 * ada-tasks.c (get_current_task): Fix K&R definitions.
3545 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3546
3547 2002-09-07 Christopher Faylor <cgf@redhat.com>
3548
3549 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3550 Add XP.
3551
3552 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3553
3554 * i386-tdep.c (i386_register_virtual_type,
3555 i386_register_convertible, i386_register_convert_to_virtual,
3556 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3557 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3558 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3559 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3560 Don't set push_arguments twice.
3561
3562 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3563 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3564 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3565 sigtramp_end to NULL.
3566 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3567 defines.
3568 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3569
3570 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3571 whitespace.
3572
3573 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3574 * gdbarch.h, gdbarch.c: Re-generate.
3575 * blockframe.c (find_pc_sect_partial_function): Convert to use
3576 SIGTRAMP_START_P predicate.
3577
3578 2002-09-05 Michael Snyder <msnyder@redhat.com>
3579
3580 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3581 generic_dummy_frame method and old method. Also distinguish
3582 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3583 (arm_extract_return_value): Use new regcache method.
3584
3585 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3586 adjustment that doesn't conform to the ABI.
3587 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3588 saved regcache, not from current regcache.
3589
3590 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3591
3592 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3593 * README: Update.
3594
3595 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3596
3597 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3598 if arm_apcs_32 is false.
3599
3600 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3601
3602 GDB 5.3 branch created.
3603
3604 2002-09-03 Theodore A. Roth <troth@verinet.com>
3605
3606 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3607 generic_unwind_get_saved_register.
3608
3609 2002-09-03 David Carlton <carlton@math.stanford.edu>
3610
3611 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3612 argument (PR gdb/653). Update call to smash_to_method_type.
3613 (read_structure_scope): Update call to dwarf2_add_member_fn.
3614
3615 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3616
3617 * x86-64-linux-tdep.c: Include gdb_string.h
3618 * x86-64-linux-nat.c: Ditto.
3619
3620 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3621
3622 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3623 when YYDEBUG is set to 1.
3624 * c-exp.y: Likewise.
3625 * f-exp.y: Likewise.
3626 * jv-exp.y: Likewise.
3627 * m2-exp.y: Likewise.
3628 * p-exp.y: Likewise.
3629
3630 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3631
3632 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3633 dependency list.
3634 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3635 solib_svr4_fetch_link_map_offsets to
3636 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3637 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3638 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3639 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3640 solib-svr4.o, and solib-legacy.o.
3641 * config/i386/tm-nbsd.h: Include solib.h.
3642
3643 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3644
3645 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3646 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3647 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3648 comment noting that this needs its own target configuration.
3649 * config/i386/nbsd.mt: New file.
3650 * config/i386/nbsdaout.mt: Remove.
3651 * config/i386/nbsdelf.mt: Ditto.
3652 * config/i386/tm-nbsdaout.h: Ditto.
3653
3654 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3655
3656 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3657 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3658 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3659 tdep->sigtramp_end.
3660 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3661 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3662 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3663
3664 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3665
3666 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3667 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3668 * i386-tdep.h (i386bsd_init_abi): New prototype.
3669 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3670 function declaration.
3671 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3672 for NetBSD-a.out or NetBSD-ELF.
3673 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3674 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3675 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3676 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3677 and nbsd-tdep.h.
3678 (i386nbsd_pc_in_sigtramp): New function.
3679 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3680 i386nbsd_pc_in_sigtramp.
3681 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3682 and i386nbsdelf_init_abi OS ABI handlers.
3683 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3684 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3685
3686 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3687
3688 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3689 registers if the target really has them.
3690
3691 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3692
3693 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3694 than nbsd-tdep.h.
3695
3696 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3697
3698 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3699 list.
3700 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3701 (alphanbsd_skip_sigtramp_frame): New functions.
3702 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3703 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3704 to alphanbsd_sigcontext_addr.
3705
3706 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3707
3708 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3709 list.
3710 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3711 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3712 nbsd_pc_in_sigtramp.
3713 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3714 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3715 * nbsd-tdep.c: Include gdb_string.h.
3716 (nbsd_pc_in_sigtramp): New function.
3717 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3718 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3719 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3720 ppcnbsd_pc_in_sigtramp.
3721 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3722 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3723 shnbsd_pc_in_sigtramp.
3724 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3725 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3726 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3727
3728 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3729
3730 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3731 watchpoints to NULL.
3732 (insert_breakpoints): set val field of watchpoints if NULL.
3733
3734
3735 2002-08-29 Jim Blandy <jimb@redhat.com>
3736
3737 * symtab.c (lookup_symbol_aux): In the cases where we find a
3738 minimal symbol of an appropriate name and use its address to
3739 select a symtab to read and search, use `name' (as passed to us)
3740 as the demangled name when searching the symtab's global and
3741 static blocks, not the minsym's name.
3742
3743 2002-08-29 Keith Seitz <keiths@redhat.com>
3744
3745 * stack.c (print_frame_info_base): Always set current_source_symtab
3746 and current_source_line.
3747
3748 2002-08-29 Donn Terry <donnte@microsoft.com>
3749
3750 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3751
3752 2002-08-28 Keith Seitz <keiths@redhat.com>
3753
3754 * stack.c (select_frame): Add FIXME concerning selected-frame
3755 events.
3756 (select_frame_command): Send selected-frame-level-changed
3757 event notification, but only if the level actually changed.
3758 (up_silently_base): Add selected-frame-level-changed event
3759 notification.
3760 (down_silently_base): Likewise.
3761
3762 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3763
3764 * Makefile.in: Update dependencies for all gdb/*.c files.
3765
3766 2002-08-27 Tom Tromey <tromey@redhat.com>
3767
3768 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3769 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3770 Update dependencies.
3771 * i387-tdep.c: Include gdb_string.h.
3772 * osabi.c: Likewise.
3773 * i386-linux-nat.c: Likewise.
3774 * lin-lwp.c: Likewise.
3775 * ax-gdb.c: Likewise.
3776 * signals/signals.c: Likewise.
3777 * jv-valprint.c: Likewise.
3778 * p-lang.c: Likewise.
3779 * c-valprint.c: Likewise.
3780 * cp-abi.c: Likewise.
3781
3782 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3783
3784 * cli/cli-script.h (copy_command_lines): Export.
3785 * breakpoint.c: Include cli/cli-script.h.
3786 * Makefile.in (breakpoint.o): Update dependencies.
3787
3788 2002-08-26 Michael Snyder <msnyder@redhat.com>
3789
3790 * breakpoint.c (insert_breakpoints): Protect all references
3791 to 'process_warning'. Shorten long lines.
3792
3793 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3794
3795 * cli/cli-script.c (copy_command_lines): New function.
3796 * defs.h (copy_command_lines): Export.
3797 * testsuite/gdb.base/commands.exp: New tests for commands
3798 attached to a temporary breakpoint, and for commands that
3799 delete the breakpoint they are attached to.
3800
3801 2002-08-26 Michael Snyder <msnyder@redhat.com>
3802
3803 * breakpoint.c (bpstat_stop_status): Instead of copying the
3804 pointer to the breakpoint commands struct, make a new copy
3805 of the struct and point to that.
3806 (bpstat_clear): Free the commands struct.
3807 (bpstat_clear_actions): Free the commands struct.
3808 (bpstat_do_actions): Free the command actions. Also execute
3809 the local cleanups, instead of deleting them.
3810 (delete_breakpoint): Leave the commands field of the bpstat
3811 chain alone -- it will be freed later.
3812
3813 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3814
3815 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3816 deleted in 2002-08-20 commit. This function is still used by
3817 ppc-linux-nat.c.
3818
3819 2002-08-26 Keith Seitz <keiths@redhat.com>
3820
3821 * gdb-events.sh: Add selected-frame-level-changed event.
3822 * gdb-events.c: Regenerated.
3823 * gdb-events.h: Regenerated.
3824
3825 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3826
3827 Fix PR gdb/393:
3828 * inflow.c (terminal_save_ours): New function to save terminal
3829 settings.
3830 * inferior.h (terminal_save_ours): Declare.
3831 * target.c (debug_to_terminal_save_ours): New function.
3832 (cleanup_target): Defaults to_terminal_save_ours.
3833 (update_current_target): Inherit to_terminal_save_ours.
3834 (setup_target_debug): Set to_terminal_save_ours.
3835 * target.h (target_terminal_save_ours): New to save terminal settings.
3836 (target_ops): New member to_terminal_save_ours.
3837 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3838 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3839 * inftarg.c (init_child_ops): Likewise.
3840 * m3-nat.c (init_m3_ops): Likewise.
3841 * procfs.c (init_procfs_ops): Likewise.
3842 * wince.c (init_child_ops): Likewise.
3843 * win32-nat.c (init_child_ops): Likewise.
3844 * sol-thread.c (init_sol_thread_ops): Likewise.
3845
3846 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3847
3848 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3849 use regcache_* functions.
3850 (i386_gdbarch_init): Set store_return_value instead of
3851 deprecated_store_return_value.
3852
3853 * regcache.c (regcache_raw_write_signed,
3854 regcache_raw_write_unsigned): New functions.
3855 * regcache.h (regcache_raw_write_signed,
3856 regcache_raw_write_unsigned): New prototypes.
3857
3858 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3859
3860 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3861 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3862 source file dependencies. Cleanup corresponding generator rules.
3863
3864 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3865
3866 * regcache.h (register_offset_hack): Declare.
3867 (regcache_cooked_read_using_offset_hack): Declare.
3868 (regcache_cooked_write_using_offset_hack): Declare.
3869
3870 * regcache.c (register_offset_hack): New function.
3871 (regcache_cooked_read_using_offset_hack): New function.
3872 (regcache_cooked_write_using_offset_hack): New function.
3873 (regcache_dump): Check that the registers, according to their
3874 offset, are packed hard against each other.
3875 (cooked_xfer_using_offset_hack): New function.
3876
3877 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3878
3879 * regcache.c (struct regcache_descr): Add field register_type.
3880 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3881 in as a parameter
3882 (init_regcache_descr): Initialize register_type. Pass the descr
3883 to init_legacy_regcache_descr. Use register_type instead of
3884 REGISTER_VIRTUAL_TYPE.
3885 (register_type): New function.
3886 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3887 * regcache.h (register_type): Declare.
3888
3889 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3890
3891 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3892 instead of deprecated_store_return_value. Fix fallout from
3893 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3894
3895 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3896
3897 * regcache.c (max_register_size): New function.
3898 (init_legacy_regcache_descr): Ensure that max_register_size is
3899 large enough for REGISTER_VIRTUAL_SIZE.
3900 * regcache.h (max_register_size): Declare.
3901
3902 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3903
3904 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3905 store_return_value.
3906 (e500_extract_return_value): Change type of valbuf pointer to
3907 void.
3908
3909 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3910
3911 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3912 workaround.
3913
3914 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3915 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3916 long long) to prevent compiler warning on 64-bit systems.
3917
3918 2002-08-23 Andrew Cagney <cagney@redhat.com>
3919
3920 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3921 (DEPRECATED_STORE_RETURN_VALUE): New method.
3922 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3923 * gdbarch.h, gdbarch.c: Re-generate.
3924
3925 * values.c (set_return_value): Pass current_regcache to
3926 STORE_RETURN_VALUE.
3927 * arch-utils.h (legacy_store_return_value): Declare.
3928 * arch-utils.c (legacy_store_return_value): New function.
3929 (legacy_extract_return_value): Update parameters.
3930
3931 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3932 STORE_RETURN_VALUE.
3933 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3934 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3935 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3936 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3937 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3938 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3939 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3940 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3941 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3942 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3943
3944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3945 * i386-tdep.c (i386_extract_return_value): Update.
3946 * arch-utils.c (legacy_extract_return_value): Update.
3947 * frv-tdep.c (frv_gdbarch_init): Update.
3948 * cris-tdep.c (cris_gdbarch_init): Update.
3949 * d10v-tdep.c (d10v_gdbarch_init): Update.
3950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3951 * m68k-tdep.c (m68k_gdbarch_init): Update.
3952 * mcore-tdep.c (mcore_gdbarch_init): Update.
3953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3954 * s390-tdep.c (s390_gdbarch_init): Update.
3955 * sparc-tdep.c (sparc_gdbarch_init): Update.
3956 * sh-tdep.c (sh_gdbarch_init): Update.
3957 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3958 * v850-tdep.c (v850_gdbarch_init): Update.
3959 * avr-tdep.c (avr_gdbarch_init): Update.
3960 * ia64-tdep.c (ia64_gdbarch_init): Update.
3961 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3962 * vax-tdep.c (vax_gdbarch_init): Update.
3963 * alpha-tdep.c (alpha_gdbarch_init): Update.
3964 * arm-tdep.c (arm_gdbarch_init): Update.
3965 * mips-tdep.c (mips_gdbarch_init): Update.
3966 * i386-tdep.c (i386_gdbarch_init): Update.
3967
3968 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3969
3970 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3971 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3972
3973 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3974
3975 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3976 problems.
3977
3978 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3979
3980 * infrun.c (handle_inferior_event): Move a comment outside of a
3981 function call, in order to avoid indent reformatting this part
3982 of the code in an unreadable way.
3983
3984 2002-08-23 Grace Sainsbury <graces@redhat.com>
3985
3986 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3987 when breakpoints fail. Move general breakpoint error messages to
3988 insert_breakpoints.
3989 * breakpoint.c (insert_breakpoints): Change warnings when
3990 breakpoints are nto inserted to specify the type. Remove call to
3991 memory_error when hardware breakpoints can't be inserted. Remove
3992 multiple calls to warning so all messages are sent to the user at
3993 once.
3994 (delete_breakpoints): Make insert error messsages more explicit.
3995
3996 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3997
3998 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3999 gdbserver/ChangeLog.
4000
4001 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4002
4003 * i386-tdep.c: Include "objfiles.h".
4004 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4005 skip_trampoline_code.
4006 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4007 (CPLUS_MARKER): Define to '.'.
4008
4009 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4010 member.
4011 (linux_corefile_thread_callback): Increase args->num_notes.
4012 (linux_make_note_section): Initialize thread_args.num_notes, and
4013 use it to determine whether notes for any threads were created.
4014
4015 2002-08-23 Donn Terry <donnte@microsoft.com>
4016
4017 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4018 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4019 and PCUNKILL.
4020 (write_with_trace): Conditionalize out the switch branch handling
4021 PCSHOLD if the corresponding macro is not defined. Likewise for
4022 PRSABORT and PRSTOP.
4023 This change will be needed by the Interix port.
4024
4025 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4026
4027 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4028 write_register wherever possible instead of manipulating the
4029 register bytes directly.
4030 Assign VALUE_CONTENTS to a variable and use that.
4031 The GPR numbers are now dependent on the architecture.
4032
4033 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4034
4035 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4036 ev_offset fields.
4037 (skip_prologue): Add support for BookE/e500 instructions.
4038 (e500_extract_return_value): New function.
4039 (frame_get_saved_regs): Add support for saving ev registers and
4040 pseudo gpr's.
4041 (e500_store_return_value): New function.
4042 (rs6000_gdbarch_init): Move up default intializations of
4043 deprecated_extract_return_value and store_return_value. Overwrite
4044 init of store_return_value with e500 specific version.
4045 Set extract_return_value for e500.
4046
4047 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4048
4049 * blockframe.c (generic_call_dummy_register_unwind): Use
4050 regcache_cooked_read to catch cases in which the variable is
4051 stored in a pseudo register.
4052
4053 2002-08-22 Andrew Cagney <cagney@redhat.com>
4054
4055 * NEWS: Mention that the i960 has been made obsolete.
4056 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4057 i960-tdep.c
4058 (remote-nrom.o): Obsolete target.
4059 (remote-nindy.o, i960-tdep.o): Ditto.
4060 * remote-nrom.c: Make file obsolete.
4061 * remote-nindy.c, remote-vx960.c: Ditto.
4062 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4063 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4064 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4065 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4066 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4067 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4068 i960-*-vxworks* obsolete.
4069 * MAINTAINERS: Note that the i960 is obsolete.
4070
4071 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4072
4073 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4074 detach to allow reinitialization.
4075
4076 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4077
4078 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4079 attempt).
4080
4081 2002-08-22 Jim Blandy <jimb@redhat.com>
4082
4083 * coffread.c (coff_symfile_read): Don't try to read the line
4084 number table from disk if the image file doesn't have a symbol
4085 table; we'll never actually look at the info anyway, and Windows
4086 ships DLL's with bogus file offsets for the line number data.
4087
4088 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4089
4090 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4091 an e500 executable.
4092
4093 2002-08-21 Michael Snyder <msnyder@redhat.com>
4094
4095 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4096 (MSYMBOL_SIZE): Replace macro with function.
4097 (DEFAULT_MIPS_TYPE): Delete unused macro.
4098 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4099 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4100
4101 2002-08-21 Jim Blandy <jimb@redhat.com>
4102
4103 * valops.c (value_cast): Simplify and correct logic for doing a
4104 static cast from a pointer to a base class to a pointer to a
4105 derived class.
4106
4107 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4108
4109 * infcmd.c (default_print_registers_info): Replace
4110 do_registers_info.
4111 (registers_info): Use gdbarch_print_registers_info instead of
4112 DO_REGISTERS_INFO.
4113 * inferior.h (default_print_registers_info): Replace
4114 do_registers_info.
4115 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4116 (DO_REGISTERS_INFO): Change to a predicate function.
4117 * gdbarch.h, gdbarch.c: Regenerate.
4118
4119 2002-08-21 Keith Seitz <keiths@redhat.com>
4120
4121 * gdb-events.sh: Add target-changed event.
4122 * gdb-events.c: Regenerated.
4123 * gdb-events.c: Regenerated.
4124 * valops.c (value_assign): Add target-changed event notification
4125 to inlval_register, lval_memory, and lval_reg_frame_relative.
4126
4127 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4128
4129 * NEWS: Add an entry regarding the improvement of the next/step
4130 operation on Alpha Tru64 multi-processor machines.
4131
4132 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4133
4134 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4135 directores.
4136 * Makefile.in: Update all _h macro definitions.
4137 * Makefile.in (install-gdbtk): Move to install section.
4138 (rdi-share/libangsd.a): Move to end of file.
4139
4140 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4141
4142 * frame.c (frame_register_unwind): When a register, set addrp to
4143 the register's byte.
4144
4145 2002-08-20 Michael Snyder <msnyder@redhat.com>
4146
4147 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4148 used locally, so move them from the target machine header to here.
4149 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4150 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4151 Make static.
4152 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4153
4154 2002-08-20 Andrew Cagney <cagney@redhat.com>
4155
4156 * NEWS: Mention that the Apollo line was made obsolete.
4157 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4158 m68*-hp-hpux* obsolete.
4159 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4160 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4161 * buildsym.c (make_blockvector): Make static.
4162 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4163 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4164 (ALLDEPFILES): Remove dstread.c.
4165 (dstread.o): Obsolete make rule.
4166 * dstread.c: Makefile obsolete.
4167 * dst.h: Ditto.
4168 * config/m68k/hp300hpux.mt: Ditto.
4169 * config/m68k/hp300hpux.mh: Ditto.
4170 * config/m68k/hp300bsd.mt: Ditto.
4171 * config/m68k/hp300bsd.mh: Ditto.
4172 * config/m68k/apollo68b.mt: Ditto.
4173 * config/m68k/apollo68v.mh: Ditto.
4174 * config/m68k/apollo68b.mh: Ditto.
4175
4176 2002-08-20 Michael Snyder <msnyder@redhat.com>
4177
4178 * mips-tdep.c (mips_in_return_stub): Make static.
4179 (mips_gdbarch_init): Set in_solib_return_trampoline.
4180 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4181
4182 2002-08-20 Michael Snyder <msnyder@redhat.com>
4183
4184 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4185 * gdbarch.c, gdbarch.h: Regenerate.
4186 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4187 Add.
4188 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4189
4190 2002-08-20 Michael Snyder <msnyder@redhat.com>
4191
4192 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4193 (mips_gdbarch_init): Set skip_trampoline_code,
4194 in_solib_call_trampoline.
4195 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4196 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4197
4198 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4199
4200 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4201
4202 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4203 vector type for ev registers.
4204 (e500_pseudo_register_read): New function.
4205 (e500_pseudo_register_write): New function.
4206 (e500_dwarf2_reg_to_regnum): New function.
4207 (PPC_UISA_NOFP_SPRS): New macro.
4208 (PPC_EV_REGS): New macro.
4209 (PPC_GPRS_PSEUDO_REGS): New macro.
4210 (registers_e500): New register set for e500.
4211 (variants): Add e500 variant.
4212 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4213 before setting architectural dependent variations. Initialize ev
4214 registers numbers. Add case for e500 architecture. Set the
4215 number of pseudo registers.
4216
4217 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4218
4219 * rs6000-tdep.c: Clean up comments.
4220
4221 2002-08-20 Andrew Cagney <cagney@redhat.com>
4222
4223 * h8300-tdep.c: Re-indent file.
4224
4225 2002-08-20 Jim Blandy <jimb@redhat.com>
4226
4227 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4228 default for this.
4229
4230 2002-08-20 Keith Seitz <keiths@redhat.com>
4231
4232 * breakpoints.c (watch_command_1): Use internal breakpoint
4233 when setting a watchpoint_scope breakpoint.
4234
4235 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4236
4237 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4238 (build_builtin_type_vec64i): Ditto.
4239 (build_builtin_type_vec128): Ditto.
4240 (build_builtin_type_vec128i): Ditto.
4241
4242 2002-08-19 Michael Snyder <msnyder@redhat.com>
4243
4244 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4245 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4246 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4247 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4248 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4249 CALL_DUMMY_ADDRESS): Delete.
4250 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4251 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4252 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4253 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4254 push_return_address.
4255 (mips_register_raw_size, mips_eabi_use_struct_convention,
4256 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4257 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4258 mips_init_extra_frame_info, mips_eabi_push_arguments,
4259 mips_n32n64_push_arguments, mips_push_return_address,
4260 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4261 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4262
4263 2002-08-19 Michael Snyder <msnyder@redhat.com>
4264
4265 * mips-tdep.c (mips_frame_num_args): New function.
4266 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4267 frame_saved_pc, frame_args_address, frame_locals_address,
4268 frame_num_args, and frame_args_skip.
4269 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4270 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4271 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4272 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4273
4274 2002-08-20 Michael Snyder <msnyder@redhat.com>
4275
4276 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4277 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4278 * mips-tdep.c (mips_store_struct_return): New function.
4279 (mips_extract_struct_value_address): New function.
4280 (mips_gdbarch_init): Set store_struct_return and
4281 extract_struct_value_address.
4282
4283 2002-08-20 David Carlton <carlton@math.stanford.edu>
4284
4285 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4286 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4287 (read_file_scope): Check that line_header is nonzero before
4288 decoding macro information.
4289
4290 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4291
4292 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4293 flag the general-purpose registers as floating-point on targets
4294 that don't support the floating-point registers.
4295
4296 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4297
4298 * rs6000-tdep.c (altivec_register_p): Delete.
4299 (rs6000_do_altivec_registers): Delete.
4300 (rs6000_altivec_registers_info): Delete.
4301 (rs6000_do_registers_info): Delete.
4302 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4303 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4304
4305 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4306
4307 * infcmd.c (do_registers_info): Print vector registers in hex
4308 format only.
4309 (print_vector_info): Check that printing registers
4310 makes sense.
4311 (print_float_info): Ditto.
4312
4313 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4314
4315 * mips-tdep.c (mips_gdbarch_init): Update.
4316 (mips_o32_extract_return_value): Rewrite.
4317 (mips_o32_store_return_value): Rewrite.
4318 (mips_o32_xfer_return_value): New function.
4319 (mips_xfer_register): Tweak debug print message. Allow for
4320 buf_offset when dumping the value transfered.
4321
4322 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4323
4324 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4325 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4326 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4327 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4328 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4329
4330 2002-08-14 Michael Snyder <msnyder@redhat.com>
4331
4332 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4333
4334 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4335
4336 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4337 register.
4338 (P): New macro to define a register as a pseudo register.
4339 (R, R4, R8, R16, FR32, R64, R0): Updated.
4340 (struct variant): Add new fields for number of pseudo registers
4341 and number of total registers.
4342 (tot_num_registers): New macro replacing....
4343 (num_registers): ...deleted macro.
4344 (num_registers): New function.
4345 (num_pseudo_registers): New function.
4346 (variants): Update all variants to intialize new fields correctly.
4347 Postpone initialization of number of pseudo regs and real regs.
4348 (init_variants): New function.
4349 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4350 registers offsets.
4351
4352 2002-08-19 David Carlton <carlton@math.stanford.edu>
4353
4354 * valops.c (search_struct_field): Change error message to treat
4355 return value of 0 from value_static_field as meaning that field is
4356 optimized out.
4357 (value_struct_elt_for_reference): Ditto.
4358 * values.c (value_static_field): Treat an unresolved location the
4359 same as a nonexistent symbol. Fix PR gdb/635.
4360 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4361 enclosed. Fix PR gdb/574.
4362 * MAINTAINERS: Add self to Write After Approval list.
4363
4364 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4365
4366 * mips-tdep.c (mips_xfer_register): New function.
4367 (mips_n32n64_extract_return_value): Rewrite.
4368 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4369 instead of deprecated_extract_return_value.
4370
4371 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4372
4373 * rs6000-tdep.c (TDEP): Delete macro.
4374 (branch_dest): Replace use of TDEP macro with its body.
4375 (rs6000_pop_frame): Ditto.
4376 (rs6000_push_arguments): Ditto.
4377 (rs6000_skip_trampoline_code): Ditto.
4378 (rs6000_frame_saved_pc): Ditto.
4379 (rs6000_frame_chain): Ditto.
4380 (rs6000_register_name): Ditto.
4381 (rs6000_register_byte): Ditto.
4382 (rs6000_register_raw_size): Ditto.
4383 (rs6000_register_virtual_type): Ditto.
4384 (rs6000_register_convertible): Ditto.
4385 (rs6000_convert_from_func_ptr_addr): Ditto.
4386
4387 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4388
4389 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4390 conditionally.
4391 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4392 MIPS_LINUX_JB_ELEMENT_SIZE.
4393 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4394 for MAX_REGISTER_RAW_SIZE arrays.
4395 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4396 MIPS_LINUX_JB_ELEMENT_SIZE.
4397
4398 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4399
4400 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4401
4402 2002-08-19 Aidan Skinner <aidan@velvet.net>
4403
4404 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4405 ada-valprint.c ada-tasks.c.
4406 (YYFILES): Add ada-exp.y.
4407 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4408 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4409 (ada-exp.tab.o): New target.
4410
4411 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4412
4413 * regcache.c (regcache_xfer_part): New function.
4414 (regcache_raw_read_part): New function.
4415 (regcache_raw_write_part): New function.
4416 (regcache_cooked_read_part): New function.
4417 (regcache_cooked_write_part): New function.
4418 * regcache.h (regcache_raw_read_part): Declare.
4419 (regcache_raw_write_part): Declare.
4420 (regcache_cooked_read_part): Declare.
4421 (regcache_cooked_write_part): Declare.
4422
4423 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4424
4425 * remote.c (remote_open_1): Add async_p.
4426 (remote_async_open_1): Delete.
4427 (open_remote_target): Delete.
4428 (remote_open, extended_remote_open): Update calls to remote_open_1.
4429 (remote_async_open, extended_remote_async_open): Call
4430 remote_open_1 instead of remote_async_open_1.
4431
4432 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4433
4434 * blockframe.c: Fix a few coding standard violations.
4435
4436 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4437
4438 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4439 here from ...
4440 * config/i386/tm-i386sco5.h: ... here. File removed.
4441 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4442
4443 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4444 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4445 (TM_FILE): Set to tm-i386.h.
4446 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4447 * config/i386/tm-i386v.h: Remove file.
4448 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4449 instead of "i386/tm-i386v.h".
4450 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4451 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4452 "i386/tm-i386v.h".
4453 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4454 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4455 "i386/tm-i386.h".
4456
4457 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4458
4459 * config/i386/nm-i386v.h: Add protection against
4460 multiple-inclusion.
4461 (i386_register_u_addr): Remove prototype.
4462 (register_u_addr): New prototype.
4463 (REGISTER_U_ADDR): Redefine accordingly.
4464 * i386v-nat.c: Improve several comments.
4465 (i386_register_u_addr): Change signature and rename to
4466 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4467 ubase variable.
4468
4469 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4470
4471 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4472 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4473 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4474 deprecated_extract_return_value.
4475 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4476 rename mips_o32o64_push_arguments.
4477 (mips_gdbarch_init): Update.
4478 (mips_extract_return_value): Delete.
4479 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4480 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4481 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4482 (mips_n32n64_extract_return_value): Clone
4483 mips_extract_return_value.
4484 (mips_store_return_value): Delete.
4485 (mips_o32_store_return_value): Clone mips_store_return_value.
4486 (mips_o64_store_return_value): Clone mips_store_return_value.
4487 (mips_eabi_store_return_value): Clone mips_store_return_value.
4488 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4489
4490 2002-08-18 Aidan Skinner <aidan@velvet.net>
4491
4492 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4493 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4494
4495 2002-08-18 Aidan Skinner <aidan@velvet.net>
4496
4497 * ada-lang.c: Run through gdb_indent.sh.
4498 * ada-lang.h: Run through gdb_indent.sh.
4499 * ada-tasks.c: Run through gdb_indent.sh.
4500 * ada-typeprint.c: Run through gdb_indent.sh.
4501 * ada-valprint.c: Run through gdb_indent.sh.
4502
4503 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4504
4505 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4506 ABI.
4507
4508 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4509
4510 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4511
4512 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4513 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4514
4515 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4516 write_register_gen instead of write_register_bytes.
4517
4518 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4519 i[3456]-*-osf1mk* configurations have been made obsolete.
4520 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4521 i[3456]86-*-osf1mk* hosts obsolete.
4522 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4523 targets obsolete.
4524 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4525 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4526 config/i386/i386m3.mt, config/i386/nm-m3.h,
4527 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4528 config/i386/i386mk.mh, config/i386/i386mk.mt,
4529 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4530 obsolete.
4531 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4532 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4533 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4534
4535 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4536
4537 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4538 (hppa_value_returned_from_stack): Declare.
4539 (hppa_extract_return_value): Declare.
4540 * config/pa/hppa.mt: New file.
4541 * configure.tgt: Recognize hppa*-*-*.
4542 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4543
4544 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4545
4546 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4547 comment.
4548
4549 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4550
4551 * top.c (gdb_rl_operate_and_get_next): Make sure
4552 operate-and-get-next functions correctly even when the history
4553 list is completely filled.
4554
4555 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4556
4557 * MAINTAINERS (Target Instruction Set Architectures): Rename
4558 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4559 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4560 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4561 already listed under Host/Native.
4562
4563 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4564 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4565 mips*-*-*.
4566
4567 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4568
4569 * config/ia64/ia64.mt: New file.
4570 * config/alpha/alpha.mt: New file.
4571 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4572 ia64-linux-gnu. Mention that ia64-elf is broken.
4573 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4574
4575 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4576
4577 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4578 generic_func_frame_valid instead of func_frame_valid.
4579
4580 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4581
4582 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4583 procfs appears to be broken when debugging on multi-processor
4584 machines. So enable software single stepping in order to avoid
4585 using the procfs interface to do next/step operations, using
4586 internal breakpoints instead.
4587
4588 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4589 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4590 make this pc address equal to the value it would have if the
4591 system stepping capability was used. Also set a new flag used
4592 to ensure that we don't readjust the PC one more time later.
4593
4594 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4595 address by DECR_PC_AFTER_BREAK when software single step is
4596 in use for this architecture, as this has already been taken
4597 care of in handle_inferior_event().
4598
4599 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4600
4601 * infrun.c (handle_inferior_event): Minor reformatting, to make
4602 a rather long condition expression easier to read.
4603
4604 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4605
4606 * Makefile.in (gdbtk.o): Move to end of file.
4607 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4608 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4609 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4610 (gdbtk-wrapper.o, gdbres.o): Ditto.
4611
4612 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4613
4614 * Makefile.in (copying.o): Separate out compile rule.
4615 (hpux-thread.o, procfs.o, signals.o): Ditto.
4616 (v850ice.o, z8k-tdep.o): Ditto.
4617 (tui-file.o): Move to TUI section.
4618 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4619 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4620
4621 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4622
4623 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4624 skip_trampoline_code, for better namespace-proofing.
4625
4626 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4627
4628 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4629
4630 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4631
4632 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4633
4634 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4635 signal, check whether we hit a breakpoint before checking for a
4636 single step breakpoint. Otherwise, GDB fails to notice that a
4637 breakpoint has been hit when stepping onto a breakpoint.
4638
4639 2002-08-16 Keith Seitz <keiths@redhat.com>
4640
4641 * gdb-events.sh (clear_gdb_event_hooks): New function.
4642 * gdb-events.c: Regenerate.
4643 * gdb-events.h: Regenerate.
4644
4645 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4646
4647 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4648 not_a_sw_breakpoint.
4649 * breakpoint.h (bpstat_stop_status): Add parameter names.
4650
4651 2002-08-16 Grace Sainsbury <graces@redhat.com>
4652
4653 * remote.c (remote_insert_hw_breakpoint)
4654 (remote_remove_hw_breakpoint): Fix calculation of length field
4655 for Z-packet.
4656
4657 2002-08-15 Michael Snyder <msnyder@redhat.com>
4658
4659 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4660 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4661 (supply_fpregset): Ditto.
4662
4663 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4664 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4665 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4666 (TARGET_READ_SP): Delete.
4667 (DO_REGISTERS_INFO): Delete.
4668 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4669 Delete.
4670 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4671 from macros to functions.
4672
4673 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4674 (mips_register_convertible, mips_register_convert_to_virtual,
4675 mips_register_convert_to_raw): Make static.
4676 (mips_read_sp): New function.
4677 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4678 (mips_do_registers_info): Make static.
4679 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4680 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4681 (mips_register_convert_from_type, mips_register_convert_to_type):
4682 New functions.
4683 (mips_gdbarch_init): Set up function_start_offset,
4684 register_virtual_size, pc_in_sigtramp.
4685
4686 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4687
4688 * infcmd.c (vector_info): New function.
4689 (_initialize_infcmd): Add command "info vector".
4690 (print_vector_info): New function.
4691
4692 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4693 * gdbarch.h, gdbarch.c: Regenerate.
4694
4695 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4696
4697 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4698 ``print_all''. Only print vector registers when ``print_all''.
4699
4700 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4701
4702 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4703 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4704
4705 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4706 Add `args' parameter.
4707 * gdbarch.h, gdbarch.c: Regenerate.
4708
4709 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4710
4711 * infcmd.c (float_info): Call print_float_info.
4712 (print_float_info): New function. By default, print the
4713 floating-point registers.
4714
4715 * arch-utils.h (default_print_float_info): Delete declaration.
4716 * arch-utils.c (default_print_float_info): Delete function.
4717
4718 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4719
4720 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4721 out define.
4722
4723 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4724 FRAME.
4725
4726 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4727 * configure.host: Make i[3456]86-*-aix host obsolete.
4728 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4729 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4730 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4731 config/i386/xm-i386aix.h: Make files obsolete.
4732 * i386aix-nat.c: Make file obsolete.
4733 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4734 (i386aix-nat.o): Make target obsolete.
4735
4736 * config/i386/nm-gnu.h: Removed.
4737 * config/i386/nm-i386gnu.h: New file.
4738 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4739 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4740 Moved here from ...
4741 * config/i386/tm-i386gnu.h: ... here. Removed.
4742 * config/i386/xm-i386gnu.h: Removed.
4743 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4744 (NAT_FILE): Set to nm-i386gnu.h.
4745 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4746 * i386-tdep.c: New file.
4747 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4748 (i386gnu-tdep.o): Specify dependencies.
4749
4750 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4751
4752 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4753 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4754 Adjust a few comments to reflect reality a bit closer.
4755 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4756 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4757 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4758 target_insert_watchpoint, target_remove_watchpoint):
4759 Move defines to ...
4760 * config/i386/nm-i386sco5.h: ... here.
4761 (kernel_u_size): Add prototype. Improve a few comments and add
4762 protection against multiple inclusion.
4763
4764 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4765 out define.
4766
4767 * uw-thread.c (SP_ARG0): Define if not already defined.
4768 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4769
4770 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4771
4772 * config/i386/tm-i386.h: Don't include "regcache.h".
4773
4774 * i387-tdep.h (i387_print_float_info): New prototype.
4775 * i387-tdep.c (print_i387_value, print_i387_ext,
4776 print_i387_status_word, print_i387_control_word): Add `struct
4777 ui_file *' argument and use it for output.
4778 (i387_print_float_info): Renamed from i387_float_info. Add
4779 `struct gdbarch *' and `struct ui_file *' arguments and use the
4780 latter for output.
4781 * i386-tdep.c: Include "i387-tdep.h".
4782 (i386_gdbarch_init): Set print_float_info.
4783 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4784 (FLOAT_INFO): Remove define.
4785
4786 2002-08-13 Michael Snyder <msnyder@redhat.com>
4787
4788 * mips-tdep.c (mips_push_arguments): Rename to
4789 mips_eabi_push_arguments, and tune for EABI.
4790 (MIPS_REGS_HAVE_HOME_P): Delete.
4791 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4792 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4793 Delete references to mips_regs_have_home_p.
4794
4795 2002-08-14 Keith Seitz <keiths@redhat.com>
4796
4797 * Makefile.in (install-gdbtk): Create insight plugin directory.
4798 Install plugins.tcl file.
4799
4800 2002-08-14 Keith Seitz <keiths@redhat.com>
4801
4802 * configure.in: Move SUBDIRS to near top of the file so that
4803 --enable options may add things to it.
4804 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4805 * configure: Regenerate.
4806
4807 2002-08-13 Michael Snyder <msnyder@redhat.com>
4808
4809 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4810 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4811 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4812
4813 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4814
4815 * vax-tdep.c (vax_get_saved_register): Delete function.
4816 (vax_gdbarch_init): Update.
4817 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4818 (ns32k_gdbarch_init): Update.
4819 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4820 (alpha_gdbarch_init): Update.
4821
4822 2002-08-13 Andrew Cagney <cagney@redhat.com>
4823
4824 * regcache.c (init_regcache_descr): Overallocate the
4825 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4826 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4827 nr_raw_registers.
4828 (set_register_cached): Add range checking assertions. Use
4829 current_regcache.
4830
4831 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4832
4833 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4834 numbers for MMX registers.
4835
4836 2002-08-13 Andrew Cagney <cagney@redhat.com>
4837
4838 * i386-tdep.c (i386_gdbarch_init): Use
4839 generic_unwind_get_saved_register.
4840
4841 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4842
4843 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4844 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4845 target vector.
4846 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4847 Delete. Add comment regarding this now-deleted target method.
4848
4849 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4850
4851 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4852 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4853 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4854 real PC and the page number (if it's within the memory bank window).
4855 (m68hc11_pseudo_register_write): Likewise when saving.
4856 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4857 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4858 (m68hc11_register_raw_size): And use 32-bit for it.
4859 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4860 16K memory bank is used by the prog; also use the virtual pc.
4861
4862 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4863
4864 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4865 (m68hc11_gdbarch_init): Install it in gdbarch.
4866 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4867 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4868 (MSYMBOL_SIZE): New for documentation.
4869 (insn_return_kind): Enum to specify how a function returns.
4870 (frame_extra_info): Cleanup and record the return mode.
4871 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4872 register in address computation.
4873 (m68hc11_get_return_insn): New to obtain the return instruction used
4874 by the function.
4875 (m68hc11_frame_init_saved_regs): Take into account the return
4876 instruction used by the function for far and interrupt functions.
4877 (m68hc11_init_extra_frame_info): Take into account page register.
4878 (m68hc11_frame_args_address): Adjust according to the return mode.
4879 (show_regs): Print page register only when it's used.
4880
4881 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4882
4883 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4884 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4885 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4886 registers.
4887 (m68hc11_register_raw_size): Likewise.
4888
4889 2002-08-13 Andrew Cagney <cagney@redhat.com>
4890
4891 * i386-tdep.c (i386_register_name): Handle mmx registers.
4892 (mmx_regnum_p): New function.
4893 (i386_mmx_names): New array.
4894 (mmx_num_regs): New variable.
4895 (i386_pseudo_register_read): New function.
4896 (i386_pseudo_register_write): New function.
4897 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4898
4899 * regcache.c (regcache_raw_read_unsigned): New function.
4900 (regcache_raw_read_signed): New function.
4901 * regcache.h (regcache_raw_read_unsigned): Declare.
4902 (regcache_raw_read_signed): Declare.
4903
4904 2002-08-13 Andrew Cagney <cagney@redhat.com>
4905
4906 * regcache.c (regcache_raw_read_as_address): Delete function.
4907 (regcache_cooked_read_signed): New function.
4908 (regcache_cooked_read_unsigned): New function.
4909 * regcache.h (regcache_cooked_read_signed): Declare.
4910 (regcache_cooked_read_unsigned): Declare.
4911 (regcache_raw_read_as_address): Delete declaration.
4912
4913 * blockframe.c (generic_read_register_dummy): Use
4914 regcache_cooked_read_unsigned.
4915 * i386-tdep.c (i386_extract_struct_value_address): Use
4916 regcache_cooked_read_unsigned.
4917
4918 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4919
4920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4921 double sizes according to ELF ABI flags.
4922 (gdbarch_tdep): Record elf_flags.
4923
4924 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4925
4926 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4927 (m6812_prolog): They can appear in 68HC12 function prologue.
4928 (m68hc11_frame_chain): Cleanup.
4929
4930 2002-08-12 Andrew Cagney <cagney@redhat.com>
4931
4932 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4933 declarations.
4934 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4935 (i386_linux_register_raw_size): Delete function.
4936 (i386_linux_init_abi): Update.
4937 * i386-tdep.c (i386_register_raw_size): Delete function.
4938 (i386_register_byte): Delete function.
4939 (i386_gdbarch_init): Update.
4940 (i386_register_size): Delete array.
4941 (i386_register_offset): Delete array.
4942
4943 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4944 (REGISTER_RAW_SIZE): Delete macro.
4945 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4946 (REGISTER_BYTE): Delete macro.
4947
4948 2002-08-11 Aidan Skinner <aidan@velvet.net>
4949
4950 * ada-lang.c (ada_lookup_partial_symbol)
4951 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4952 prototype names so that grep ^func works properly.
4953
4954 * ada-lang.c (ada_array_element_type)
4955 (ada_lookup_partial_symbol): Fix typos in parameter list.
4956
4957 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4958 Fix prototype names so that grep ^func works properly.
4959
4960 2002-08-10 Andrew Cagney <cagney@redhat.com>
4961 Elena Zannoni <ezannoni@redhat.com>
4962 Martin M. Hunt <hunt@redhat.com>
4963
4964 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4965 (build_builtin_type_vec128i): Set the vector bit.
4966 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4967 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4968 (build_builtin_type_vec64): New function.
4969 (build_builtin_type_vec64i): New function.
4970 (build_gdbtypes): Initialize builtin_type_vec64 and
4971 builtin_type_vec64i.
4972
4973 2002-08-09 Andrew Cagney <cagney@redhat.com>
4974
4975 * regcache.c (regcache_dump): Compare the register offset
4976 with REGISTER_BYTE.
4977 * arch-utils.c (generic_register_byte): New function.
4978 * arch-utils.h (generic_register_byte): Declare.
4979 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4980 * gdbarch.h, gdbarch.c: Regenerate.
4981
4982 2002-08-09 Andrew Cagney <cagney@redhat.com>
4983
4984 * regcache.c: Include "gdbcmd.h"
4985 (_initialize_regcache): Add commands "maintenance print
4986 registers", "maintenance print raw-registers" and "maintenance
4987 print cooked-registers".
4988 (enum regcache_dump_what): Define.
4989 (dump_endian_bytes): New function.
4990 (regcache_dump): New function.
4991 (regcache_print): New function.
4992 (maintenance_print_registers): New function.
4993 (maintenance_print_raw_registers): New function.
4994 (maintenance_print_cooked_registers): New function.
4995 * Makefile.in (regcache.o): Update dependencies.
4996
4997 2002-08-09 Michael Snyder <msnyder@redhat.com>
4998
4999 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5000 (mips_push_arguments): Correct some comments. Use paddr_nz
5001 for printing addresses in debug output. Replace static
5002 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5003 (mips_n32n64_push_arguments): New function, cloned from
5004 mips_push_arguments and tuned for the n32/n64 ABI.
5005 (mips_push_register): Buffer needs dynamic allocation.
5006 (mips_print_register): Ditto.
5007 (do_gp_register_row): Ditto.
5008 (mips_store_return_value): Ditto.
5009 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5010
5011 2002-08-09 Don Howard <dhoward@redhat.com>
5012
5013 * memattr.c (mem_info_command): Print special case of upper bound
5014 as max CORE_ADDR + 1.
5015
5016 2002-08-08 Michael Snyder <msnyder@redhat.com>
5017
5018 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5019 returns structs by ref if they're too big to fit in two registers.
5020
5021 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5022
5023 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5024 saved regs value.
5025 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5026 mips_find_saved_regs().
5027 (mips_pop_frame): Likewise.
5028
5029 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5030
5031 * blockframe.c (frame_saved_regs_register_unwind): Revise
5032 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5033 frames are in use.
5034
5035 2002-08-09 Grace Sainsbury <graces@redhat.com>
5036
5037 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5038 T-packets; the 'a' is not taken as a register number.
5039 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5040 (remote_stopped_data_address): New functions; add to target
5041 vector.
5042 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5043 prototypes to match other implementations of this
5044 function. replace integer argument with pointer -- the length
5045 field in the Z-packet is the length of what is pointed to or 1 if
5046 pointer is null. Add to target vector.
5047 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5048 target vector.
5049
5050 From Mark Salter:
5051 * remote.c (remote_wait): Add support to extract optional
5052 watchpoint information from T-packet. Ignore unrecognized
5053 optional info in T-packet.
5054 (remote_async_wait): Ditto.
5055
5056 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5057
5058 * cli/cli-dump.c: Change fopen modes to use binary open modes
5059 as defined in include/fopen-bin.h throughout.
5060
5061 2002-08-08 Michael Snyder <msnyder@redhat.com>
5062
5063 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5064
5065 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5066
5067 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5068 assertion failure by returning early after a warning.
5069
5070 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5071
5072 * mips-tdep.c (mips_find_saved_regs): Make static.
5073 (mips_frame_init_saved_regs): New function.
5074 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5075 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5076 (mips_find_saved_regs): Delete declaration.
5077
5078 2002-08-08 Grace Sainsbury <graces@redhat.com>
5079
5080 * remote.c (remote_wait, remote_async_wait): Change
5081 thread_num from int to ULONGEST.
5082 (unpack_varlen_hex): Change result parameter from
5083 int * to ULONGEST *.
5084
5085 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5086
5087 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5088 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5089 powerpc*-*-*.
5090 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5091
5092 2002-08-08 Andrew Cagney <cagney@redhat.com>
5093
5094 * gcore.c (override_derive_stack_segment): Delete variable.
5095 (preempt_derive_stack_segment): Delete function.
5096 (derive_stack_segment): Delete function.
5097 (default_derive_stack_segment): Renamed to derive_stack_segment.
5098 (override_derive_heap_segment): Delete variable.
5099 (preempt_derive_heap_segment): Delete function.
5100 (derive_heap_segment): Delete function.
5101 (default_derive_heap_segment): Rename to derive_heap_segment.
5102
5103 2002-08-06 Michael Snyder <msnyder@redhat.com>
5104
5105 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5106 * mips-tdep.c (mips_EABI_use_struct_convention,
5107 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5108 New functions. (mips_use_struct_convention): Delete.
5109 (mips_gdbarch_init): set use_gdbarch_convention.
5110
5111 2002-08-06 Michael Snyder <msnyder@redhat.com>
5112
5113 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5114 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5115 mips_o32_reg_struct_has_addr): New functions.
5116 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5117
5118 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5119
5120 * regcache.c (pseudo_register): Delete function.
5121 (fetch_register): Delete function.
5122 (store_register): Delete function.
5123 (regcache_raw_read, legacy_read_register_gen): Use
5124 target_fetch_registers instead of fetch_register.
5125 (legacy_write_register_gen, regcache_raw_write): Use
5126 target_store_register instead of store_register.
5127 (write_register_bytes): Ditto.
5128
5129 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5130 (STORE_PSEUDO_REGISTER): Delete.
5131 * gdbarch.h, gdbarch.c: Regenerate.
5132
5133 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5134
5135 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5136 write dump file binary.
5137
5138 2002-08-05 Michael Snyder <msnyder@redhat.com>
5139
5140 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5141 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5142 (mips_gdbarch_init): Set N32 target to be mips64.
5143
5144 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5145
5146 * frame.c (find_saved_register): Break out of loop once saved
5147 register address is found. Don't mention sparc in loop comment
5148 anymore.
5149
5150 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5151
5152 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5153 mips_default_saved_regsize to 8.
5154
5155 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5156
5157 * gcore.c: Do not include <sys/procfs.h>.
5158 * Makefile.in (gcore.o): Update dependencies.
5159
5160 2002-08-06 Andrew Cagney <cagney@redhat.com>
5161
5162 * configure.tgt: Make arc-*-* obsolete.
5163 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5164 * MAINTAINERS: Make arc-elf obsolete.
5165 * arc-tdep.c: Make file obsolete.
5166 * config/arc/arc.mt: Ditto.
5167 * config/arc/tm-arc.h: Ditto.
5168
5169 2002-08-05 Theodore A. Roth <troth@verinet.com>
5170
5171 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5172
5173 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5174
5175 * mcore-tdep.c (mcore_gdbarch_init): Use
5176 generic_unwind_get_saved_register instead of
5177 generic_get_saved_register.
5178 * v850-tdep.c (v850_gdbarch_init): Ditto.
5179 * frv-tdep.c (frv_gdbarch_init): Ditto.
5180 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5181 * s390-tdep.c (s390_gdbarch_init): Ditto.
5182 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5183 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5184 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5185
5186 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5187
5188 * objfiles.h: Add missing #include "symfile.h"
5189
5190 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5191
5192 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5193
5194 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5195 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5196 of FIELD_BITSIZE.
5197
5198 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5199
5200 * NEWS: Cleanup and nitpick.
5201
5202 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5203
5204 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5205
5206 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5207
5208 * Makefile.in (gdbtk-bp.o): Update dependencies.
5209 (gdbtk-register.o): Ditto.
5210 (gdbtk-varobj.o): Ditto.
5211
5212 2002-08-03 Andrew Cagney <cagney@redhat.com>
5213
5214 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5215 m68hc11_fetch_pseudo_register.
5216 (m68hc11_pseudo_register_write): Replace
5217 m68hc11_store_pseudo_register.
5218 (m68hc11_gdbarch_init): Update.
5219
5220 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5221
5222 * gdbarch.sh: Include "gdb_string.h".
5223 * gdbarch.c: Regenerate.
5224
5225 * regcache.c: Include "gdb_string.h".
5226 * ax-general.c: Ditto.
5227 * varobj.c: Ditto.
5228 * std-regs.c: Ditto.
5229 * fbsd-proc.c: Ditto.
5230 * thread.c: Ditto.
5231
5232 * Makefile.in (regcache.o): Update dependencies.
5233 (thread.o, gdbarch.o): Ditto.
5234 (ax-general.o, gdbarch.o): Ditto.
5235 (varobj.o, std-regs.o): Ditto.
5236 (fbsd-proc.o): Specify dependencies.
5237
5238 2002-08-02 Andrew Cagney <cagney@redhat.com>
5239
5240 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5241 regnum.
5242 (regcache_cooked_write): Ditto.
5243
5244 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5245
5246 * regcache.c (regcache_cooked_read): New function.
5247 (regcache_cooked_write): New function.
5248 (read_register_gen): Rewrite using regcache_cooked_read.
5249 (write_register_gen): Rewrite using regcache_cooked_write.
5250
5251 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5252 Declare.
5253
5254 2002-08-02 Andrew Cagney <cagney@redhat.com>
5255
5256 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5257 Replace the architecture methods register_read and register_write.
5258 * gdbarch.h, gdbarch.c: Regenerate.
5259 * regcache.c (init_regcache_descr): Update.
5260 (read_register_gen): Update.
5261 (write_register_gen): Update.
5262 (supply_register): Update comment.
5263
5264 * sh-tdep.c (sh_gdbarch_init): Update.
5265 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5266 `regcache' and `gdbarch' parameters. Make `buffer' a void
5267 pointer. Update code.
5268 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5269 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5270 void pointer. Update code.
5271 (sh64_register_write): Delete.
5272 (sh4_register_read): Delete.
5273 (sh64_register_read): Delete.
5274 (sh4_register_write): Delete.
5275 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5276 void pointer, `to' parameter a void pointer.
5277 (sh_sh64_register_convert_to_raw): Ditto.
5278
5279 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5280
5281 * mips-tdep.c (mips_register_virtual_type): Use architecture
5282 invariant return values.
5283
5284 2002-08-01 Andrew Cagney <cagney@redhat.com>
5285
5286 * linux-proc.c: Include "gdb_string.h".
5287 * Makefile.in (linux-proc.o): Update dependency list.
5288
5289 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5290
5291 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5292 comment.
5293
5294 2002-08-01 Grace Sainsbury <graces@redhat.com>
5295
5296 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5297 to_insert_watchpoint, to_remove_watchpoint,
5298 to_stopped_by_watchpoint, to_stopped_data_address,
5299 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5300 target vecctor. Define their corresponding macros so they call
5301 them.
5302
5303 * target.c: Add default and debug versions of for
5304 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5305 to_insert_watchpoint, to_remove_watchpoint,
5306 to_stopped_by_watchpoint, to_stopped_data_address,
5307 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5308
5309 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5310
5311 * mips-tdep.c (mips_register_virtual_type): New function.
5312 (mips_gdbarch_init): Register mips_register_virtual_type()
5313 with gdbarch machinery.
5314 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5315 this file instead of tm-bigmips.h.
5316 (MIPS_REGSIZE): Delete this macro.
5317 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5318 multiarch version in mips-tdep.c will be found.
5319
5320 2002-08-01 Andrew Cagney <cagney@redhat.com>
5321
5322 * NEWS: Menion that CHILL has been made obsolete.
5323
5324 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5325 * stabsread.c (read_range_type): Ditto.
5326 * gdbtypes.h: Ditto.
5327 * language.c (binop_type_check): Ditto.
5328 (binop_result_type): Ditto.
5329 (integral_type): Ditto.
5330 (character_type): Ditto.
5331 (string_type): Ditto.
5332 (boolean_type): Ditto.
5333 (structured_type): Ditto.
5334 (lang_bool_type): Ditto.
5335 (binop_type_check): Ditto.
5336 * language.h (_LANG_chill): Ditto.
5337 * dwarfread.c (set_cu_language): Ditto.
5338 * dwarfread.c (CHILL_PRODUCER): Ditto.
5339 * dwarfread.c (handle_producer): Ditto.
5340 * expression.h (enum exp_opcode): Ditto.
5341 * eval.c: Ditto for comments.
5342 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5343 * expprint.c (print_subexp): Ditto.
5344 (print_subexp): Ditto.
5345 * valops.c (value_cast): Ditto.
5346 (search_struct_field): Ditto.
5347 * value.h (COERCE_VARYING_ARRAY): Ditto.
5348 * symfile.c (init_filename_language_table): Ditto.
5349 (add_psymbol_with_dem_name_to_list): Ditto.
5350 * valarith.c (value_binop): Ditto.
5351 (value_neg): Ditto.
5352 * valops.c (value_slice): Ditto.
5353 * symtab.h (union language_specific): Ditto.
5354 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5355 (SYMBOL_DEMANGLED_NAME): Ditto.
5356 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5357 * defs.h (enum language): Ditto.
5358 * symtab.c (got_symtab): Ditto.
5359 * utils.c (fprintf_symbol_filtered): Ditto.
5360
5361 * ch-typeprint.c: Make file obsolete.
5362 * ch-valprint.c: Make file obsolete.
5363 * ch-lang.h: Make file obsolete.
5364 * ch-exp.c: Make file obsolete.
5365 * ch-lang.c: Make file obsolete.
5366
5367 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5368 CHILL_LIB.
5369 (TARGET_FLAGS_TO_PASS): Ditto.
5370 (CHILLFLAGS): Obsolete.
5371 (CHILL): Obsolete.
5372 (CHILL_FOR_TARGET): Obsolete.
5373 (CHILL_LIB): Obsolete.
5374 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5375 ch-valprint.c.
5376 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5377 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5378 ch-lang.o.
5379 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5380 targets.
5381
5382 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5383
5384 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5385 This does not change anything at the moment, but will be helpful
5386 later when full Ada support is integrated.
5387
5388 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5389
5390 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5391 help message.
5392
5393 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5394
5395 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5396 and save it in a local variable. Use variable in later test.
5397
5398 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5399
5400 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5401 test. (Thanks to Daniel Jacobowitz.)
5402
5403 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5404
5405 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5406 (mips_abi_strings): Add "n64".
5407 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5408
5409 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5410
5411 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5412 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5413
5414 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5415
5416 * utils.c (host_pointer_to_address, address_to_host_pointer):
5417 Use gdb_assert() instead of explicit call to internal_error().
5418
5419 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5420
5421 * Makefile.in (rs6000-nat.o): Update dependencies.
5422
5423 From Nicholas Duffek:
5424 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5425 (aix-thread.o): New rule.
5426 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5427 * config/powerpc/aix432.mh: New file.
5428
5429 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5430
5431 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5432 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5433 (fetch_core_registers, ppc_linux_supply_gregset)
5434 (ppc_linux_supply_fpregset): New functions.
5435 (ppc_linux_regset_core_fns): New.
5436 (_initialize_ppc_linux_tdep): Call add_core_fns.
5437 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5438 and ppc_linux_supply_gregset.
5439 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5440 (supply_fpregset): Call ppc_linux_supply_fpregset.
5441 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5442 corelow.o.
5443 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5444
5445 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5446
5447 * symtab.c (lookup_symbol): Demangle before lowercasing.
5448
5449 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5450
5451 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5452 declaration.
5453 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5454 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5455 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5456 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5457 "gdb_string.h".
5458 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5459 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5460 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5461 (avr-tdep.o, mon960-rom.o): Ditto.
5462 (aout_stabs_gnu_h): Define.
5463 (symtab_h): Remove $(gdb_obstack_h).
5464
5465 2002-07-30 Jim Blandy <jimb@redhat.com>
5466
5467 Patch from David Carlton <carlton@math.stanford.edu>:
5468 * gdbinit.in: Move the `dir' commands that add GDB's own source
5469 directory to the search path to the end, so that the `gdb' source
5470 directory will be searched first.
5471
5472 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5473
5474 * gdb_obstack.h: New file.
5475 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5476 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5477 * objfiles.h: Include "gdb_obstack.h".
5478 * Makefile.in (gdb_obstack_h): Define.
5479 (symtab_h): Add $(gdb_obstack_h).
5480 (objfiles_h): Add $(gdb_obstack_h).
5481
5482 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5483 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5484 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5485 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5486 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5487 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5488 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5489 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5490
5491 * Makefile.in (bcache.o): Update dependencies.
5492 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5493 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5494 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5495 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5496 (stabsread.o, symfile.o, symmisc.o): Ditto.
5497 (symtab.o, typeprint.o, macroexp.o): Ditto.
5498 (macrotab.o, mdebugread.o): Ditto.
5499 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5500 (coff_ecoff_h, aout_aout64_h): Define.
5501 (aout_stabs_gnu_h, libaout_h): Define.
5502
5503 2002-07-29 Andrew Cagney <cagney@redhat.com>
5504
5505 * regcache.c (struct regcache_descr): Rename nr_registers to
5506 nr_cooked_registers. Revise comments describing the structure
5507 member fields.
5508 (init_regcache_descr): Update.
5509 (init_legacy_regcache_descr): Update.
5510 (read_register_gen, write_register_gen): When a cooked register in
5511 the raw register range, directly access the value from the raw
5512 register cache.
5513
5514 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5515
5516 * z8k-tdep.c: Do not include "obstack.h".
5517 * h8300-tdep.c, h8500-tdep.c: Ditto.
5518 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5519 * valprint.c, v850-tdep.c: Ditto.
5520 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5521 * mn10200-tdep.c: Ditto.
5522
5523 * Makefile.in (z8k-tdep.o): Update dependencies.
5524 (m68hc11-tdep.o, valprint.o): Ditto.
5525 (v850-tdep.o, d10v-tdep.o): Ditto.
5526 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5527 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5528 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5529 (sh_opc_h, gdb_sim_sh_h): Define.
5530 (elf_sh_h, elf_bfd_h): Define.
5531 (opcode_m68hc11_h): Define.
5532 (OPCODES_SRC, OPCODES_DIR): define.
5533 (OPCODES): Use $(OPCODES_DIR).
5534 (gdb_sim_d10v_h): Rename sim_d10v_h.
5535 (gdb_sim_arm_h): Rename sim_arm_h.
5536
5537 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5538
5539 * utils.c (host_pointer_to_address, address_to_host_pointer):
5540 Change internal_error() message to indicate function responsible
5541 for the error.
5542
5543 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5544
5545 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5546 calls to local_hex_string_custom().
5547
5548 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5549
5550 * irix5-nat.c: Move IRIX shared library support from here...
5551 * solib-irix.c: ...to here. Revised substantially to work with
5552 generic solib framework.
5553
5554 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5555 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5556 * mips-irix-tdep.c: New file.
5557
5558 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5559 (mips-irix-tdep.o, solib-irix.o): New rules.
5560 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5561 solib-irix.o.
5562 * config/mips/irix6.mt (TDEPFILES): Likewise.
5563 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5564
5565 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5566
5567 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5568 disabled (via ``#if 0'') includes.
5569
5570 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5571
5572 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5573 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5574 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5575 Add support for the fpscr register.
5576 * rs6000-nat.c (regmap, fetch_inferior_registers)
5577 (store_inferior_registers, fetch_core_registers): Likewise.
5578
5579 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5580
5581 * rs6000-nat.c (language.h): Include.
5582 (special_regs): Delete this array.
5583 (regmap): New function.
5584 (fetch_register, store_register): Use regmap() to map gdb
5585 register numbers to ptrace register numbers. Also, use
5586 outputs from regmap() to make decisions regarding type of
5587 ptrace() call to make. In particular, don't compare against
5588 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5589 (fetch_inferior_registers, store_inferior_registers): Where
5590 possible, obtain register numbers from tdep struct. Don't
5591 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5592 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5593 (LAST_UISA_SP_REGNUM): Delete.
5594
5595 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5596
5597 * rs6000-nat.c (ppc-tdep.h): Include.
5598 (fetch_registers, store_register, fetch_core_registers): Don't
5599 access registers[] directly. Instead, use supply_register() or
5600 regcache_collect() as appropriate.
5601 (find_toc_address): Format hex address with local_hex_string().
5602
5603 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5604
5605 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5606 bfd/elf32-frv.c.
5607
5608 2002-07-24 Tom Tromey <tromey@redhat.com>
5609
5610 * jv-exp.y: Marked all strings with _().
5611 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5612 internal_error.
5613 (MethodInvocation, CastExpression, parse_number, yyerror,
5614 java_type_from_name, push_expression_name, yylex): Typo fixes.
5615
5616 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5617
5618 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5619 (tee_file_flush, tee_file_write, tee_file_fputs)
5620 (tee_file_isatty): New.
5621 * ui-file.h (tee_file_new): Add prototype.
5622
5623 2002-07-24 Aidan Skinner <aidan@velvet.net>
5624
5625 * ada-lang.c: Change k&r style function definitions to prototyped
5626 form.
5627 * ada-typeprint.c: Change k&r style function definitions to prototyped
5628 form.
5629 * ada-valprint.c: Change k&r style function definitions to prototyped
5630 form.
5631
5632 2002-07-24 Andrew Cagney <cagney@redhat.com>
5633
5634 * README: Remove reference to remote-bug.
5635 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5636 remote-bug.c.
5637 (m88k-nat.o): Delete rule.
5638 (m88k-tdep.o): Delete rule.
5639 (remote-bug.o): Delete rule.
5640 * MAINTAINERS: Mark as obsolete.
5641 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5642 * m88k-tdep.c: Make file obsolete.
5643 * config/m88k/m88k.mh: Ditto.
5644 * config/m88k/delta88v4.mh: Ditto.
5645 * config/m88k/delta88v4.mt: Ditto.
5646 * config/m88k/delta88.mt: Ditto.
5647 * config/m88k/delta88.mh: Ditto.
5648 * remote-bug.c: Ditto.
5649 * config/m88k/tm-delta88.h: Ditto.
5650 * config/m88k/nm-delta88v4.h: Ditto.
5651 * config/m88k/xm-delta88.h: Ditto.
5652 * config/m88k/xm-dgux.h: Ditto.
5653 * config/m88k/tm-m88k.h: Ditto.
5654 * config/m88k/nm-m88k.h: Ditto.
5655 * config/m88k/tm-delta88v4.h: Ditto.
5656 * m88k-nat.c: Ditto.
5657 * cxux-nat.c: Ditto.
5658 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5659 and m88*-*-* obsolete.
5660 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5661 m88*-*-* obsolete.
5662
5663 2002-07-24 Andrew Cagney <cagney@redhat.com>
5664
5665 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5666 constant. Same for local pointer variables.
5667 (extract_signed_integer): Ditto.
5668 * defs.h (extract_unsigned_integer): Update.
5669 (extract_signed_integer): Update.
5670
5671 2002-07-24 Andrew Cagney <cagney@redhat.com>
5672
5673 * regcache.c (regcache_raw_write): Change buf parameter to a
5674 constant void pointer.
5675 (regcache_raw_read): Change buf parameter to a void pointer.
5676 (legacy_write_register_gen): Change myaddr parameter a constant
5677 void pointer.
5678 (supply_register): Change val parameter to a const void pointer.
5679 * regcache.h (regcache_raw_write): Update declaration.
5680 (regcache_raw_read): Update declaration.
5681 (supply_register): Update declaration.
5682
5683 2002-07-24 Tom Tromey <tromey@redhat.com>
5684
5685 * defs.h (gdb_readline_wrapper): Declare.
5686 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5687 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5688 * top.c (gdb_readline_wrapper): New function.
5689 (command_line_input): Use it.
5690
5691 2002-07-24 Andrew Cagney <cagney@redhat.com>
5692
5693 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5694 regcache_read and regcache_write.
5695 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5696 * regcache.c: Update.
5697 * sh-tdep.c (sh64_push_arguments): Update comment.
5698 (sh_pseudo_register_read): Update.
5699 (sh_pseudo_register_write): Update.
5700 (sh4_register_read): Update.
5701 (sh4_register_write): Update.
5702 (sh64_pseudo_register_read): Update.
5703 (sh64_pseudo_register_write): Update.
5704 (sh64_register_read): Update.
5705 (sh64_register_write): Update.
5706 * i386-tdep.c (i386_extract_return_value): Update.
5707 (i386_extract_struct_value_address): Update.
5708 (i386_extract_return_value): Update.
5709 * blockframe.c (generic_read_register_dummy): Update.
5710 (generic_call_dummy_register_unwind): Update
5711 * infrun.c (write_inferior_status_register): Update.
5712
5713 2002-07-23 Jim Blandy <jimb@redhat.com>
5714
5715 * parser-defs.h (expression_context_pc): Make this extern.
5716 (Thanks to Michael Snyder.)
5717
5718 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5719
5720 GDB 5.2.1 released from 5.2 branch.
5721 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5722 * README: Update to mention 5.2.1.
5723
5724 2002-07-23 Mark Salter <msalter@redhat.com>
5725
5726 * remote.c (remote_read_bytes): Fix check for error.
5727
5728 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5729
5730 * aix-thread.c (language.h): Include.
5731 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5732 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5733 Print newlines at end of debug messages.
5734 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5735 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5736
5737 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5738
5739 * aix-thread.c (ppc-tdep.h): Include.
5740 (special_register_p): New function.
5741 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5742 (store_regs_user_thread): Use register number information from
5743 gdbarch_tdep struct instead of hardcoded offsets relative to
5744 FIRST_UISA_SP_REGNUM.
5745 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5746 special_register_p() instead of using FPLAST_REGNUM and
5747 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5748 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5749 will be MQ's register number.
5750
5751 2002-07-22 Michael Snyder <msnyder@redhat.com>
5752
5753 * aix-thread.c (ops): Rename to aix_thread_ops.
5754 (base_ops): Rename to base_target.
5755 (ops_attach): Rename to aix_thread_attach.
5756 (ops_detach): Rename to aix_thread_detach.
5757 (ops_resume): Rename to aix_thread_detach.
5758 (ops_wait): Rename to aix_thread_wait.
5759 (ops_kill): Rename to aix_thread_kill.
5760 (init_ops): Rename to init_aix_thread_ops.
5761 (ops_fetch_register): Rename to aix_thread_fetch_register.
5762 (ops_store_register): Rename to aix_thread_store_register.
5763 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5764 (ops_thread_alive): Rename to aix_thread_thread_alive.
5765 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5766 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5767 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5768 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5769 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5770 (store_regs_lib): Rename to store_regs_user_thread.
5771 (store_regs_kern): Rename to store_regs_kernel_thread.
5772
5773 2002-07-22 Michael Snyder <msnyder@redhat.com>
5774
5775 * aix-thread.c (ops_prepare_to_store): Eliminate.
5776 (init_ops): Don't initialize ops.prepare_to_store.
5777 (store_regs_kern): Pre-fetch register buffers from child,
5778 because some registers may not be in the cache. Copy
5779 regs from register cache only if they are cached.
5780 (store_regs_lib): Copy regs from register cache only
5781 if they are cached.
5782 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5783 fill_gprs64): Ditto.
5784
5785 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5786
5787 * aix-thread.c (gdb_assert.h): Include.
5788 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5789 register sizes (from register cache) match size of buffer holding
5790 register data.
5791 (fill_sprs32): Change parameter types to match those in the ptrace()
5792 buffer.
5793 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5794 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5795
5796 2002-07-22 Michael Snyder <msnyder@redhat.com>
5797
5798 * aix-thread.c (supply_sprs64): Cosmetic change.
5799 (supply_sprs32): Cosmetic change.
5800 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5801 (fill_sprs64): Use regcache_collect instead of read_register.
5802 (store_regs_lib): Use regcache_collect instead of
5803 read_register. Use fill_sprs32 instead of fill_sprs64,
5804 if debugging a 32-bit architecture.
5805 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5806 out of the register cache, instead of passing a pointer into
5807 the register cache directly to ptrace. Use regcache_collect
5808 insteaad of read_register.
5809 (ops_prepare_to_store): Use target_read_registers instead
5810 of read_register_bytes.
5811
5812 2002-07-20 Aidan Skinner <aidan@velvet.net>
5813
5814 * MAINTAINERS: Add self under write after approval.
5815
5816 2002-07-20 Aidan Skinner <aidan@velvet.net>
5817
5818 * ada-tasks.c: Change k&r style function definitions to prototyped
5819 form.
5820
5821 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5822
5823 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5824 * x86-64-tdep.c: Include "objfiles.h".
5825 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5826 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5827
5828 2002-07-17 Michal Ludvig <michal@suse.cz>
5829
5830 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5831 (update_context): Initialise cfa variable.
5832
5833 2002-07-17 Michael Snyder <msnyder@redhat.com>
5834
5835 * aix-thread.c: Shorten some long lines.
5836 Bring comments into line with code spec.
5837
5838 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5839
5840 * infrun.c: Re-indent using gdb_indent.sh.
5841
5842 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5843
5844 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5845 Leave the indentation temporarily untouched, to minimize the diffs.
5846
5847 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5848
5849 * stabsread.c: Make os9k sections of the code obsolete,
5850 for real this time.
5851 * stabsread.h: Make os9k sections of the code obsolete.
5852
5853 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5854
5855 * linux-low.c (regsets_store_inferior_registers): Add free()
5856 at the end of a loop to prevent memory leak.
5857 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5858 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5859 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5860 line a comment.
5861 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5862
5863 2002-07-17 Jim Blandy <jimb@redhat.com>
5864
5865 * macrocmd.c (info_macro_command): Remove newline from error
5866 message.
5867
5868 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5869
5870 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5871 (sh_gdbarch_init): Use it for sh-dsp.
5872
5873 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5874
5875 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5876 64-bit DWARF2 format.
5877
5878 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5879
5880 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5881 <sys/proc.h> when not available.
5882
5883 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5884
5885 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5886 * stabsread.c: Make os9k sections of the code obsolete.
5887 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5888 * config/i386/i386os9k.mt: Make file obsolete.
5889 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5890 (COMMON_OBS): Remove os9kread.o
5891 (SFILES): Remove os9kread.c.
5892 (os9kread.o, remote-os9k.o): Make target obsolete.
5893 * remote-os9k.c: Make file obsolete.
5894 * os9kread.c: Make file obsolete.
5895 * Makefile.in
5896
5897 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5898
5899 * NEWS: Mention that the FR30 has been made obsolete.
5900 * fr30-tdep.c: Make file obsolete.
5901 * config/fr30/tm-fr30.h: Ditto.
5902 * config/fr30/fr30.mt: Ditto.
5903 * configure.tgt: Make fr30-*-elf obsolete.
5904 * MAINTAINERS: Make fr30-elf obsolete.
5905
5906 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5907
5908 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5909 found is not inside a section.
5910
5911 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5912
5913 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5914 strerror().
5915 (pdc_realloc): Use xrealloc() instead of realloc().
5916
5917 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5918
5919 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5920 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5921 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5922 macros.
5923
5924 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5925
5926 * aix-thread.c (ptrace_check): Eliminate goto.
5927 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5928 problem.
5929
5930 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5931
5932 * aix-thread.c (gdbcmd.h): Include.
5933 (DEBUG, DBG, DBG2, dbg): Eliminate.
5934 (debug_aix_thread): New static global.
5935 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5936 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5937 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5938 invocations to DBG and DBG2 macros to test against
5939 ``debug_aix_thread'' and call fprintf_unfiltered().
5940 (_initialize_aix_thread): Add new command "set debug aix-thread".
5941
5942 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5943
5944 From Gerhard Tonn <TON@de.ibm.com>:
5945 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5946 instead of supply_register.
5947
5948 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5949
5950 * dwarf2cfi.c: Include "gdb_assert.h".
5951 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5952 non-NULL.
5953 (update_context): Do not use __func__. Add missing ``break''.
5954 (update_context): Do not use __func__.
5955
5956 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5957
5958 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5959 and its setting. Set gdbarch instruction printing functions
5960 directly. For non-rs6000 case use new function
5961 gdb_print_insn_powerpc.
5962 (gdb_print_insn_powerpc): New function.
5963
5964 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5965
5966 * NEWS: Mention that the d30v has been marked obsolete.
5967 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5968 * configure.tgt: Mark d30v-*-* as obsolete.
5969 * d30v-tdep.c: Mark file as obsolete.
5970 * config/d30v/d30v.mt: Ditto.
5971 * config/d30v/tm-d30v.h: Ditto.
5972
5973 2002-07-13 Aidan Skinner <aidan@velvet.net>
5974
5975 * ada-tasks.c (add_task_entry): replace calls to
5976 malloc() with xmalloc
5977 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5978
5979 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5980 ada_finish_decode_line_1, all_sals_for_line
5981 ada_breakpoint_rewrite): replace calls to free() with xfree()
5982
5983 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5984
5985 From Nicholas Duffek (with minor changes by Martin Hunt,
5986 Louis Hamilton, and Kevin Buettner):
5987 * aix-thread.c: New file.
5988
5989 2002-07-12 Petr Sorfa <petrs@caldera.com>
5990
5991 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5992 complaint for invalid attribute class or form.
5993 (read_func_scope): DW_AT_frame_base
5994 better handling of DW_AT_block*.
5995 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5996 better handling of DW_AT_block*.
5997 (read_common_block): DW_AT_location
5998 better handling of DW_AT_block*.
5999 (read_partial_die): DW_AT_location better handling
6000 of DW_AT_block*.
6001 (new_symbol): DW_AT_external better handling of
6002 DW_AT_block*. Proper initialization of variable
6003 "addr".
6004 (attr_form_is_block): New function that returns true
6005 if the attribute's form is of DW_FORM_block*.
6006
6007 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6008
6009 * valops.c (find_method_list): Remove comment about
6010 removed STATIC_MEMFUNCP argument.
6011 (value_find_oload_method_list): Likewise.
6012
6013 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6014
6015 From Nicholas Duffek:
6016 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6017 target_new_objfile_hook.
6018
6019 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6020
6021 From Nicholas Duffek:
6022 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6023 csect.
6024
6025 2002-07-12 Andrew Cagney <cagney@redhat.com>
6026
6027 * MAINTAINERS: Mention --enable-sim-build-warnings.
6028 (m68hc11-elf): Disable sim build warnings.
6029 (m32r-elf): Mark as broken obsolete candidate.
6030 (x86_64-linux-gnu): Mark as buildable with -Werror.
6031 (arm-elf): Change -w to ``,'' which enables warnings but not
6032 -Werror.
6033
6034 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6035
6036 * bcache.h: Update copyright.
6037 (struct bstring, struct bcache): Move definition to "bcache.c".
6038 Replaced by opaque declaration.
6039 (bcache_xfree): Replace free_bcache.
6040 (bcache_xmalloc, bcache_memory_used): Declare.
6041
6042 * bcache.c: Update copyright.
6043 (struct bstring, struct bcache): Moved to here from "bcache.h".
6044 Update comments.
6045 (bcache_xmalloc, bcache_memory_used): New functions.
6046 (bcache_xfree): Replace function free_bcache.
6047
6048 * Makefile.in (objfiles.o): Add $(bcache_h).
6049 (objfiles_h): Remove $(bcache_h).
6050 (symfile.o): Add $(bcache_h).
6051
6052 * symmisc.c: Update copyright.
6053 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6054 (print_objfile_statistics): Use bcache_memory_used.
6055
6056 * symfile.c: Include "bcache.h".
6057 (reread_symbols): Use bcache_xfree.
6058 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6059 (add_psymbol_to_list): Pass psymbol_cache by value.
6060 (add_psymbol_with_dem_name_to_list): Ditto.
6061
6062 * objfiles.h: Update copyright.
6063 (struct bcache): Declare opaque. Do not include "bcache.h".
6064 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6065 bcache'' pointers.
6066 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6067
6068 * objfiles.c: Include "bcache.h". Update copyright.
6069 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6070 macro_cache.
6071 (free_objfile): Use bcache_xfree.
6072
6073 2002-07-11 Grace Sainsbury <graces@redhat.com>
6074
6075 * monitor.c (monitor_fetch_register): Make name a constant.
6076 (monitor_store_register): Same.
6077
6078 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6079
6080 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6081 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6082 (finish_block) For non-function blocks, hash the symbol table. For
6083 function blocks, mark the symbol table as unhashed.
6084 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6085 (msymbol_hash_iw): Likewise.
6086 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6087 value.
6088 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6089 (lookup_minimal_symbol): Likewise for both.
6090 * symtab.h (struct block): Add `hashtable' flag. Comment the
6091 hashtable.
6092 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6093 (ALL_BLOCK_SYMBOLS): Update.
6094 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6095 (struct symbol): Add `hash_next' pointer.
6096 * symtab.c (lookup_block_symbol): Search using the hash table when
6097 possible.
6098 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6099 (search_symbols, find_addr_symbol): Likewise.
6100
6101 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6102 (read_dst_symtab): Likewise.
6103 * jv-lang.c (get_java_class_symtab): Likewise.
6104 * mdebugread.c: Include "gdb_assert.h".
6105 (shrink_block): Assert that the block being modified is not hashed.
6106 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6107 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6108 symbols.
6109 (dump_symtab): Recognize hashed blocks.
6110 * printcmd.c (print_frame_args): Assert that function blocks do not
6111 have hashed symbol tables.
6112 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6113 (fill_in_ada_prototype, debug_print_block): Likewise.
6114 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6115
6116 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6117
6118 * stack.c (print_frame): Use result of frame_address_in_block()
6119 instead of fi->pc when evaluating symbols.
6120 (backtrace_command_1): Ditto.
6121
6122 2002-07-11 Andrew Cagney <cagney@redhat.com>
6123
6124 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6125 Make static.
6126
6127 * arm-tdep.c (arm_register_name): Make return type constant.
6128
6129 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6130
6131 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6132 prototype.
6133 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6134 * s390-tdep.c (s390_fp_regnum): Ditto.
6135 (s390_read_fp): Ditto.
6136 (s390_pop_frame): Ditto.
6137 (_initialize_s390_tdep): Ditto.
6138 * remote.c (get_remote_state): Ditto.
6139 * procfs.c (mappingflags): Ditto.
6140 * memattr.c (_initialize_mem): Ditto.
6141 * mcore-tdep.c (mcore_pop_frame): Ditto.
6142 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6143 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6144 * language.c (set_case_str): Ditto.
6145 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6146 * frv-tdep.c (new_variant): Ditto.
6147 (frv_stopped_data_address): Ditto.
6148 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6149 (context_alloc): Ditto.
6150 (frame_state_alloc): Ditto.
6151 (unwind_tmp_obstack_init): Ditto.
6152 (unwind_tmp_obstack_free): Ditto.
6153 (cfi_read_fp): Ditto.
6154 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6155 (cris_pop_frame): Ditto.
6156 * c-lang.c (scanning_macro_expansion): Ditto.
6157 (finished_macro_expansion): Ditto.
6158 (c_preprocess_and_parse): Ditto.
6159 * gdbarch.sh: Ditto.
6160 * gdbarch.h, gdbarch.c: Regenerate.
6161 * config/mn10200/tm-mn10200.h: Adjust indentation.
6162 * target.c: Adjust indentation.
6163 * symtab.h: Adjust indentation.
6164 * stabsread.h: Adjust indentation.
6165 * remote-es.c: Adjust indentation.
6166 * os9kread.c: Adjust indentation.
6167
6168 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6169
6170 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6171 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6172
6173 2002-07-10 Grace Sainsbury <graces@redhat.com>
6174
6175 * NEWS: Mention m68k, mcore multi-arching.
6176 * MAINTAINERS: Change status of m68k, mcore to reflect
6177 multi-arching.
6178
6179 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6180
6181 * valops.c (find_overload_match): Free oload_syms.
6182
6183 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6184
6185 Define HAVE_SYS_PROC_H if sys/proc.h exists
6186 * configure.in: Add check for sys/proc.h
6187 * config.in: Regenerate.
6188 * configure: Regenerate.
6189
6190 2002-07-09 Grace Sainsbury <graces@redhat.com>
6191
6192 * config/m68k/tm-m68k.h: Remove macros wrapped in
6193 #if !GDB_MULTI_ARCH.
6194
6195 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6196
6197 * config.in, configure: Regenerate.
6198
6199 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6200
6201 * dwarf2cfi.c: Include "gcore.h".
6202 (execute_stack_op): Fix implementation of the
6203 DW_OP_deref and DW_OP_deref_size operators by letting do their
6204 lookup in the target.
6205
6206 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6207
6208 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6209 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6210 tdep->sc_sp_offset.
6211
6212 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6213
6214 Fix PR gdb/595, gdb/602
6215 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6216 Don't call value_cast, just read the vtable pointer; update comments
6217 to match.
6218
6219 2002-07-05 Grace Sainsbury <graces@redhat.com>
6220
6221 * config/mcore/tm-mcore.h: Remove file.
6222 * config/mcore/mcore.mt: Remove definition of TM_FILE
6223 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6224
6225 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6226
6227 * i386bsd-tdep.c: Include "gdb_string.h".
6228
6229 2002-07-04 Grace Sainsbury <graces@redhat.com>
6230
6231 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6232 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6233 mcore-tdep.
6234 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6235 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6236 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6237 (RETVAL_REGNUM): Move macros from tm-mcore.h
6238 (mcore_reg_struct_has_addr): New function.
6239 (mcore_gdbarch_init): Added initializations for the macros removed
6240 from tm-mcore.h.
6241
6242 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6243
6244 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6245 traditonal string branding within the ELF header.
6246
6247 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6248
6249 * symtab.c (remove_params): New function.
6250 (make_symbol_overload_list): Use it instead of cplus_demangle.
6251 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6252
6253 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6254
6255 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6256
6257 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6258 New variables.
6259 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6260 and tdep->sigtramp_end.
6261 * i386obsd-nat.c: New file.
6262 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6263
6264 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6265 Don't call get_current_frame().
6266
6267 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6268
6269 * i386-nat.c (child_post_startup_inferior): New function
6270 calling i386_cleanup_dregs if
6271 I386_USE_GENERIC_WATCHPOINTS is defined.
6272 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6273 conditional to acknowledge that i386-nat.c has its
6274 own child_post_startup_inferior function.
6275
6276 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6277
6278 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6279 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6280 instead of MAX_REGISTER_RAW_SIZE.
6281 (i386_extract_return_value, i386_extract_struct_value_address):
6282 Convert to use regcache.
6283 (i386_gdbarch_init): Set max_register_raw_size and
6284 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6285 Set extract_return_value and extract_struct_value_address instead
6286 of their deprecated variants.
6287
6288 Convert i386 target to generic dummy frames.
6289 * i386-tdep.c: Include "symfile.h".
6290 (i386_frameless_signal_p): Consider a function to be frameless if
6291 the pc points at the first instruction of the function.
6292 (i386_frame_chain): Handle (generic) call dummies.
6293 (i386_frame_saved_pc): Likewise.
6294 (i386_frame_init_saved_regs): Remove code dealing with call
6295 dummies on the stack.
6296 (i386_push_dummy_frame): Removed.
6297 (i386_call_dummy_words): Removed.
6298 (i386_fix_call_dummy): Removed.
6299 (i386_push_return_address): New function.
6300 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6301 parameter, and don't call get_current_frame.
6302 (i386_pop_frame): New function.
6303 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6304 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6305 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6306 call_dummy_length to 0, set call_dummy_words to NULL, set
6307 sizeof_call_dummy_words to 0, set fix_call_dummy to
6308 generic_fix_call_dummy, set pc_in_call_dummy to
6309 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6310 generic_push_dummy_frame, set push_return_address to
6311 i386_push_return_address and set frame_chain_valid to
6312 generic_file_frame_chain_valid.
6313
6314 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6315
6316 * gdbarch.sh (struct regcache): Add opaque declaration.
6317 (EXTRACT_RETURN_VALUE): New architecture method.
6318 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6319 * gdbarch.h, gdbarch.c: Regenerate.
6320 * arch-utils.c (legacy_extract_return_value): New function.
6321 * arch-utils.h (legacy_extract_return_value): Declare.
6322 * values.c (value_being_returned): Re-enable code handling
6323 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6324 deprecated_grub_regcache_for_registers call to block handling
6325 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6326 (EXTRACT_RETURN_VALUE): Do not define.
6327
6328 2002-07-03 Grace Sainsbury <graces@redhat.com>
6329
6330 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6331 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6332 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6333 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6334 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6335 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6336 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6337 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6338 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6339 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6340 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6341 argument so the function fits the prototype in the architecture
6342 vector.
6343 (mcore_pop_frame): Remove argument so the function fits the
6344 prototype. Use get_current_frame instead of the argument.
6345 (mcore_push_arguments): Change type of struct_return so the
6346 function can be used in the architecture vector.
6347 (mcore_store_struct_return): Add.
6348 (mcore_frame_init_saved_regs): Add.
6349 (mcore_gdbarch_init): Add function calls to replace the macros
6350 removed from tm-mcore.h
6351
6352 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6353
6354 * infcmd.c (print_return_value): Remove compatibility code calling
6355 deprecated_grub_regcache_for_registers.
6356
6357 * values.c: Include "regcache.h".
6358 (value_being_returned): Update. Use
6359 deprecated_grub_regcache_for_registers to extract the register
6360 buffer address.
6361 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6362 ``struct regcache''.
6363 * Makefile.in (values.o): Add dependency on $(regcache_h).
6364
6365 * inferior.h (run_stack_dummy): Change type of second parameter to
6366 a ``struct regcache''.
6367 * valops.c (hand_function_call): Change type of retbuf to ``struct
6368 regcache''. Allocate using regcache_xmalloc, clean using
6369 make_cleanup_regcache_xfree.
6370 * infcmd.c (run_stack_dummy): Update. Use
6371 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6372
6373 * regcache.c (do_regcache_xfree): New function.
6374 (make_cleanup_regcache_xfree): New function.
6375 * regcache.h (make_cleanup_regcache_xfree): Declare.
6376
6377 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6378
6379 * event-top.c (command_line_handler): Don't read past
6380 beginning of buffer.
6381
6382 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6383
6384 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6385 struct frame_id.
6386 (varobj_create): Store frame_id for root.
6387 (varobj_gen_name): Use xasprintf.
6388 (varobj_update): Save and restore frame using get_frame_id() and
6389 frame_find_by_id().
6390 (create_child): Use xasprintf.
6391 (new_root_variable): Initialize frame_id.
6392 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6393 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6394 to prevent memory leak.
6395
6396 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6397
6398 * valops.c (hand_function_call): Move declaration of retbuf to
6399 start of function, allocate using malloc, add a cleanup but before
6400 the inf_status cleanup, cleanup the buffer. Rename local variable
6401 old_chain to inf_status_cleanup.
6402
6403 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6404
6405 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6406
6407 * cli/cli-decode.c (cmd_func_p): New function.
6408 (cmd_func): New function.
6409
6410 * command.h: Add cmd_func() and cmd_func_p().
6411
6412 2002-07-03 Grace Sainsbury <graces@redhat.com>
6413
6414 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6415 (REGISTER_SIZE): Remove.
6416 (MAX_REGISTER_RAW_SIZE): Remove.
6417 (REGISTER_VIRTUAL_TYPE): Remove.
6418 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6419 (REGISTER_NAME): Remove.
6420 (USE_GENERIC_DUMMY_FRAMES): Remove.
6421 (CALL_DUMMY): Remove.
6422 (CALL_DUMMY_START_OFFSET): Remove.
6423 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6424 (CALL_DUMMY_LOCATION): Remove.
6425 (FIX_CALL_DUMMY): Remove.
6426 (CALL_DUMMY_ADDRESS): Remove.
6427 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6428 (SAVE_DUMMY_FRAME_TOS): Remove.
6429 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6430 (mcore_register_virtual_type): New function.
6431 (mcore_register_byte): New function.
6432 (mcore_register_size): New function.
6433 (mcore_register_name): New function.
6434 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6435 macros removed from tm-mcore.h.
6436 (mcore_dump_tdep): Add.
6437 (_initialize_mcore_tdep): Add gdbarch_register call.
6438
6439 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6440
6441 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6442 frameless_look_for_prologue, such that we actually call this
6443 function.
6444
6445 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6446
6447 * frame.h (frame_address_in_block): New function.
6448
6449 * blockframe.c (frame_address_in_block): New function extracted
6450 from get_frame_block().
6451 (get_frame_block): Use frame_address_in_block().
6452 (block_innermost_frame): Use frame_address_in_block() to match
6453 the frame pc address against the block boundaries rather than
6454 the frame pc directly. This prevents a failure when a frame pc
6455 is actually a return-address pointing immediately after the end
6456 of the given block.
6457
6458 2002-07-02 Grace Sainsbury <graces@redhat.com>
6459
6460 * MAINTAINERS: Add self under write after approval.
6461
6462 2002-07-02 Grace Sainsbury <graces@redhat.com>
6463
6464 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6465 used in architecture vector. The default is
6466 m68k_local_breakpoint_from_pc.
6467 (m68k_local_breakpoint_from_pc): Add.
6468 (enum): Add register numbers from tm-m68k.h.
6469 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6470 vector.
6471 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6472 GDB_MULTI_ARCH_PARTIAL.
6473 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6474 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6475 m68k-tdep.c.
6476 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6477 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6478 to enum in m68k-tdep.c
6479
6480 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6481
6482 * solib-osf.c (open_map): Compute the list of shared libraries
6483 loaded by the inferior, rather than the list of libraries loaded
6484 by GDB itself. Otherwise, GDB ends up reading the symbols from
6485 the wrong shared libraries...
6486
6487 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6488
6489 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6490 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6491 macros.
6492 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6493 Remove functions.
6494 (FRAMELESS_SIGNAL): Remove function.
6495 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6496 i386_linux_saved_pc_after_call): Removed.
6497 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6498 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6499 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6500
6501 * i386-tdep.c (i386_frameless_signal_p): New function.
6502 (i386_frame_chain): Deal with frameless signals.
6503 (i386_sigtramp_saved_sp): New function.
6504 (i386_frame_saved_pc): Deal with frameless signals.
6505 (i386_saved_pc_after_call): Make sure the correct value is
6506 returned just after entry into a sigtramp.
6507 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6508 i386fbsd4_sc_sp_offset): New variables.
6509 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6510 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6511 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6512 similiar to what we already did for sc_pc_offset.
6513 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6514 tdep->sc_sp_offset.
6515
6516 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6517
6518 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6519
6520 * config/i386/tm-x86-64linux.h: New.
6521 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6522 definitions.
6523 * config/i386/nm-x86-64.h: Rename to ...
6524 * config/i386/nm-x86-64linux.h: ... this one.
6525 * config/i386/x86-64linux.mh: Reflect the above change.
6526
6527 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6528
6529 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6530 with sigcontext_addr. Add sc_sp_offset.
6531 (i386bsd_sigtramp_saved_pc): Remove prototype.
6532 (i386bsd_sicontext_addr): Add prototype.
6533 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6534 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6535 (i386_svr4_sigtramp_saved_pc): Removed.
6536 (i386_svr4_sigcontext_addr): New function.
6537 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6538 Initialize tdep->sigcontext_addr instead. Initialize
6539 tdep->sc_pc_offset and tdep->sc_sp_offset.
6540 (i386_gdbarch_init): Likewise.
6541 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6542 any more.
6543 (i386bsd_sigtramp_saved_pc): Remove function.
6544 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6545 Initialize tdep->sigcontext_addr instead. Initialize
6546 tdep->sc_pc_offset.
6547 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6548 of tdep->sigtramp_saved_pc.
6549 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6550 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6551 instead.
6552
6553 * i386-tdep.c (i386_frameless_function_invocation,
6554 i386_frame_num_args, i386_frame_init_saved_regs,
6555 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6556 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6557 i386_extract_return_value, i386_store_return_value,
6558 i386_extract_struct_value_address, i386_register_virtual_type,
6559 i386_register_convertible, i386_register_convert_to_virtual,
6560 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6561 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6562 static.
6563
6564 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6565
6566 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6567
6568 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6569 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6570 this macro. Include "value.h".
6571
6572 2002-06-30 Aidan Skinner <aidan@velvet.net>
6573
6574 * ada-exp.tab.c: remove as it's a generated file
6575 * ada-lex.c: remove as it's a generated file
6576
6577 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6578
6579 * config/i386/tm-i386.h (struct frame_info, struct
6580 frame_saved_regs, struct value, struct type): Remove forward
6581 declarations.
6582
6583 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6584 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6585 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6586 (FILL_FPXREGSET): Define.
6587
6588 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6589
6590 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6591 i[3456]86-*-netbsd* case.
6592 * config/i386/tm-obsd.h: Removed.
6593 * config/i386/obsd.mt: Removed.
6594 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6595 core-aout.o.
6596 (MH_CFLAGS): Add -DYYDEBUG=0.
6597
6598 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6599 i386nbsd_sc_pc_offset on OpenBSD too.
6600
6601 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6602 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6603 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6604 define.
6605 * i386bsd-tdep.c: Include "arch-utils.h".
6606 (i386bsd_aout_in_solib_call_trampoline): New function.
6607 (i386bsd_init_abi): Set in_solib_call_trampoline to
6608 i386bsd_aout_in_solib_call_trampoline.
6609 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6610 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6611
6612 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6613
6614 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6615 (struct obstack, struct bcache): Add opaque declarations.
6616 * Makefile.in (macrotab_h): Update
6617
6618 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6619
6620 * blockframe.c (generic_find_dummy_frame): Change return type to
6621 ``struct regcache''.
6622 (struct dummy_frame): Replace field ``registers'' with regcache, a
6623 struct regcache object.
6624 (generic_find_dummy_frame): Update.
6625 (generic_push_dummy_frame): Update. Use regcache_xfree,
6626 regcache_xmalloc and regcache_cpy.
6627 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6628 regcache_xfree.
6629 (deprecated_generic_find_dummy_frame): Update.
6630 (generic_read_register_dummy): Update. Use
6631 regcache_read_as_address.
6632 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6633 (generic_get_saved_register): Update. Use regcache_read.
6634
6635 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6636
6637 * Makefile.in (objfiles_h): Add $(bcache_h).
6638 * objfiles.h: Include "bcache.h".
6639
6640 * Makefile.in (symtab_h): Remove $(bcache_h).
6641 * symtab.h: Do not include "bcache.h".
6642
6643 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6644
6645 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6646 generic_func_frame_chain_valid.
6647
6648 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6649
6650 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6651 * config/i386/tm-fbsd.h: Likewise.
6652
6653 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6654
6655 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6656 generic_unwind_get_saved_register.
6657
6658 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6659
6660 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6661 * regcache.c (supply_register): Add missing argument to
6662 register_buffer call.
6663
6664 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6665
6666 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6667 Solaris /bin/grep does not not like it. From Peter Schauer.
6668
6669 2002-06-26 Tom Tromey <tromey@redhat.com>
6670
6671 * command.h (add_setshow_cmd): Declare.
6672 (add_setshow_cmd_full): Declare.
6673 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6674 returns void. Use add_setshow_cmd_full.
6675 (add_setshow_cmd_full): New function.
6676 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6677 (add_setshow_boolean_cmd): Likewise.
6678
6679 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6680
6681 * config/vax/tm-vax.h: Protect from multiple inclusion.
6682 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6683 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6684 * config/vax/tm-vaxbsd.h: ...here. New file.
6685 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6686
6687 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6688
6689 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6690 (BELIEVE_PCC_PROMOTION): Remove.
6691 (AP_REGNUM): Move to...
6692 * config/vax/nm-vax.h: ...here.
6693 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6694 (vax_breakpoint_from_pc): New function.
6695 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6696 and gdbarch_believe_pcc_promotion.
6697
6698 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6699
6700 * Makefile.in (vax_tdep_h): Define.
6701 (vax-tdep.o): Use $(vax_tdep_h).
6702 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6703 (vax_dump_tdep): New function.
6704 (_initialize_vax_tdep): Register vax_dump_tdep.
6705 * vax-tdep.h: Include osabi.h.
6706 (struct gdbarch_tdep): New.
6707
6708 2002-06-26 Andrew Cagney <cagney@redhat.com>
6709
6710 * frame.h (deprecated_generic_find_dummy_frame): Rename
6711 generic_find_dummy_frame.
6712 * blockframe.c (generic_find_dummy_frame): Make static.
6713 (deprecated_generic_find_dummy_frame): New function.
6714 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6715 generic_find_dummy_frame with deprecated_find_dummy_frame.
6716 (sh64_nofp_frame_init_saved_regs): Ditto.
6717 (sh_fp_frame_init_saved_regs): Ditto.
6718 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6719 (s390_frame_chain): Ditto.
6720 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6721
6722 2002-06-26 Grace Sainsbury <graces@redhat.com>
6723
6724 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6725 gdbarch vector are at the top.
6726 (NUM_REGS): Remove.
6727 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6728 (FRAME_ARGS_ADDRESS): Remove.
6729 (FRAME_LOCALS_ADDRESS): Remove.
6730 (FRAME_NUM_ARGS): Remove.
6731 (FRAME_ARGS_SKIP): Remove.
6732 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6733 (m68k_gdbarch_init): Add gdbarch initializations for macros
6734 undefined in tm-m68k.h
6735
6736 2002-06-26 Grace Sainsbury <graces@redhat.com>
6737
6738 * monitor.h: Add the function regname to monitor_ops
6739 structure. This way NUM_REGS does not have to be a constant.
6740 * monitor.c (monitor_fetch_register): Added support for regname
6741 function. The function is called if the array regnames is NULL.
6742 (monitor_store_register): Same.
6743 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6744 regnames array.
6745 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6746 cpu32bug_cmds.regname to point to new function.
6747 * abug-rom.c (abug_regname): Same as above.
6748 (init_abug_cmds): Same.
6749 * dbug-rom.c (dbug_regname): Same as above.
6750 (init_dbug_cmds): Same.
6751 * remote-est.c (est_regname): Same.
6752 (init_est_cmds): Same.
6753 * rom68k-rom.c (rom68k_regname): Same.
6754 (init_rom68k_cmds): Same.
6755
6756 2002-06-25 Tom Tromey <tromey@redhat.com>
6757
6758 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6759
6760 2002-06-25 Andrew Cagney <cagney@redhat.com>
6761
6762 * infrun.c (stop_registers): Change variable's type to ``struct
6763 regcache'''.
6764 (xmalloc_inferior_status): Delete function.
6765 (free_inferior_status): Delete function.
6766 (normal_stop): Use regcache_cpy.
6767 (struct inferior_status): Change type of fields ``stop_registers''
6768 and ``registers'' to ``struct regcache''.
6769 (write_inferior_status_register): Use regcache_write.
6770 (save_inferior_status): Instead of calling
6771 xmalloc_inferior_status, allocate the inf_status buffer directly.
6772 Use regcache_dup_no_passthrough and regcache_dup to save the
6773 buffers.
6774 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6775 Replace the stop_registers regcache instead of overriding it. Use
6776 regcache_xfree. Instead of calling free_inferior_status, xfree
6777 the buffer directly.
6778 (discard_inferior_status): Use regcache_xfree. Instead of calling
6779 free_inferior_status, xfree the buffer directly.
6780 (build_infrun): Use regcache_xmalloc.
6781 (_initialize_infrun): Delete redundant call to build_infrun.
6782
6783 * Makefile.in (infcmd.o): Add $(regcache_h).
6784
6785 * infcmd.c: Include "regcache.h".
6786 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6787 obtain the address of `stop_registers' register buffer.
6788 (print_return_value): Ditto.
6789
6790 * inferior.h (struct regcache): Add opaque declaration.
6791 (stop_registers): Change variable's declared type to ``struct
6792 regcache''.
6793
6794 2002-06-24 Tom Tromey <tromey@redhat.com>
6795
6796 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6797 * target.c (initialize_targets): Fixed typo in
6798 trust-readonly-sections `show' documentation.
6799
6800 * main.c: Marked all strings with _().
6801
6802 2002-06-24 Don Howard <dhoward@redhat.com>
6803
6804 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6805 that means max CORE_ADDR+1.
6806 (lookup_mem_region): Ditto.
6807 (mem_info_command): Ditto.
6808
6809 2002-06-24 Grace Sainsbury <graces@redhat.com>
6810
6811 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6812 (REGISTER_BYTES_OK): Remove.
6813 (REGISTER_BYTES): Remove.
6814 (STORE_STRUCT_RETURN): Remove.
6815 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6816 (STORE_RETURN_VALUE): Remove.
6817 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6818 (FRAME_CHAIN): Remove.
6819 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6820 (FRAME_SAVED_PC): Remove.
6821 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6822 (m68k_store_struct_return): Add.
6823 (m68k_deprecated_extract_return_value): Add.
6824 (m68k_deprecated_extract_struct_value_address): Add.
6825 (m68k_store_return_value): Add.
6826 (m68k_frame_chain): Add.
6827 (m68k_frameless_function_invocation): Add.
6828 (m68k_frame_saved_pc): Add.
6829 (m68k_gdbarch_init): added set_gdbarch calls for new
6830 functions and deleted macros.
6831
6832 2002-06-23 Tom Tromey <tromey@redhat.com>
6833
6834 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6835 (ALLDEPFILES): Likewise.
6836 (udiheaders): Removed.
6837 (udip2soc.o): Likewise.
6838 (udi2go32.o): Likewise.
6839 (udr.o): Likewise.
6840 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6841
6842 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6843
6844 * infrun.c (_initialize_infrun): Delete unnecessary call to
6845 build_infrun.
6846
6847 * regcache.h: Update comments describing the regcache_cpy family
6848 of functions.
6849 (regcache_save, regcache_restore): Delete declaration.
6850 (regcache_save_no_passthrough): Delete declaration.
6851 (regcache_restore_no_passthrough): Delete declaration.
6852 * regcache.c (regcache_save): Delete function.
6853 (regcache_save_no_passthrough): Delete function.
6854 (regcache_restore): Delete function.
6855 (regcache_restore_no_passthrough): Delete function.
6856
6857 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6858
6859 * config/m68k/tm-m68k.h: Fix typo.
6860 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6861 (m68k_frame_init_saved_regs): Declare.
6862
6863 2002-06-21 Jim Blandy <jimb@redhat.com>
6864
6865 Remove some vestiges of Harris 88k support.
6866 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6867 register numbering quirk.
6868 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6869 odd symbols occurring in Harris 88k ELF targets.
6870
6871 2002-06-21 Tom Tromey <tromey@redhat.com>
6872
6873 * gdb_locale.h: New file.
6874 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6875 (defs_h): Added gdb_locale.h.
6876 * configure, config.in: Rebuilt.
6877 * configure.in (PACKAGE): Define.
6878 * defs.h: Include gdb_locale.h.
6879 * main.c (captured_main): Call setlocale, bindtextdomain,
6880 textdomain.
6881
6882 2002-06-21 Dave Brolley <brolley@redhat.com>
6883
6884 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6885 * config/frv/frv.mt: New file.
6886 * config/frv/tm-frv.h: New file.
6887 * configure.tgt: Support frv-*-*.
6888 * Makefile.in (frv-tdep.o): New target.
6889 * frv-tdep.c: New file.
6890 * NEWS: Mention frv.
6891
6892 2002-06-21 Dave Brolley <brolley@redhat.com>
6893
6894 * MAINTAINERS: Add self to "Write After Approval" list.
6895
6896 2002-06-21 Grace Sainsbury <graces@redhat.com>
6897
6898 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6899 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6900 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6901 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6902 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6903
6904 * m68k-tdep.c: Include arch-utils.h
6905 (m68k_register_raw_size): Add.
6906 (m68k_register_virtual_size): Add.
6907 (m68k_register_virtual_type): Add.
6908 (m68k_register_name): Add.
6909 (m68k_stack_align): Add.
6910 (m68k_register_byte): Add.
6911 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6912 tm-m68k.h.
6913
6914 2002-06-21 Grace Sainsbury <graces@redhat.com>
6915
6916 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6917 m68k_find_saved_regs.
6918 (m68k_pop_frame): Removed saved_regs structure, and replaced
6919 references to it with frame->saved_regs.
6920 (m68k_gdbarch_init): Added function calls to initialize the
6921 gdbarch structure.
6922 (m68k_fix_call_dummy): Add.
6923 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6924 (CALL_DUMMY): Remove.
6925 (CALL_DUMMY_LENGTH): Remove.
6926 (CALL_DUMMY_START_OFFSET): Remove.
6927 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6928 (FIX_CALL_DUMMY): Remove.
6929 (PUSH_DUMMY_FRAME): Remove.
6930 (POP_FRAME): Remove.
6931
6932 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6933
6934 * parse.c (parse_fprintf): New function used to avoid calls to
6935 fprintf in bison parser generated debug code.
6936 * parser-defs.h: Declaration of new parse_fprintf function.
6937 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6938 Set YYDEBUG to 1 by default.
6939 Set YYFPRINTF as parse_fprintf.
6940
6941 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6942
6943 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6944 encoding anymore.
6945 (pointer_encoding, enum ptr_encoding): New.
6946 (execute_cfa_program): Take care about pointer encoding.
6947 (dwarf2_build_frame_info): Only call parse_frame_info for
6948 .debug_frame and .eh_frame.
6949 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6950 fixed augmentation handling, added relative addressing,
6951 ignore duplicate FDEs. Added comments.
6952 * dwarf2cfi.c: Reindented.
6953
6954 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6955
6956 * event-top.c (command_handler): Don't use space_at_cmd_start
6957 unless there is sbrk() on the host. Assign time and space data
6958 to union fields of the appropriate length.
6959
6960 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6961
6962 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6963 x86_64_register_name. Return type changed to 'const char *'.
6964 (x86_64_register_name2nr): Rename to x86_64_register_number.
6965 (x86_64_gdbarch_init): Update to reflect the change.
6966 * x86-64-tdep.h: Ditto.
6967 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6968 (supply_fpregset): Ditto.
6969
6970 2002-06-19 Andrew Cagney <cagney@redhat.com>
6971
6972 * regcache.h: Update copyright.
6973 (struct regcache, struct gdbarch): Add opaque declarations.
6974 (current_regcache): Declare global variable.
6975 (regcache_read, regcache_write): Add gdbarch parameter.
6976 (regcache_save, regcache_save_no_passthrough)
6977 (regcache_restore, regcache_restore_no_passthrough)
6978 (regcache_dup, regcache_dup_no_passthrough)
6979 (regcache_cpy, regcache_cpy_no_passthrough)
6980 (deprecated_grub_regcache_for_registers)
6981 (deprecated_grub_regcache_for_register_valid)
6982 (regcache_valid_p): Add function declarations.
6983
6984 * regcache.c: Update copyright.
6985 (regcache_descr_handle): New global variable.
6986 (struct regcache_descr): Define.
6987 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6988 (regcache_descr, xfree_regcache_descr): New functions.
6989 (struct regcache): Define.
6990 (regcache_xmalloc, regcache_xfree): New functions.
6991 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6992 (regcache_dup, regcache_dup_no_passthrough): New functions.
6993 (regcache_valid_p, regcache_read_as_address): New functions.
6994 (deprecated_grub_regcache_for_registers): New function.
6995 (deprecated_grub_regcache_for_register_valid): New function.
6996 (current_regcache): New global variable.
6997 (register_buffer): Add regcache parameter. Update calls.
6998 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6999 (read_register_gen, write_register_gen): Update register_buffer
7000 call. Test for legacy_p instead of gdbarch_register_read_p or
7001 gdbarch_register_write_p.
7002 (regcache_collect): Update register_buffer call.
7003 (build_regcache): Rewrite. Use deprecated grub functions.
7004 (regcache_save, regcache_save_no_passthrough): New functions.
7005 (regcache_restore, regcache_restore_no_passthrough): New
7006 functions.
7007 (_initialize_regcache): Create the regcache_data_handle. Swap
7008 current_regcache global variable.
7009
7010 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7011 parameter to regcache_read and regcache_write calls.
7012 (sh4_register_read): Ditto.
7013 (sh64_pseudo_register_read): Ditto.
7014 (sh64_register_read): Ditto.
7015 (sh_pseudo_register_write): Ditto.
7016 (sh4_register_write): Ditto.
7017 (sh64_pseudo_register_write): Ditto.
7018 (sh64_register_write): Ditto.
7019
7020 * defs.h (XCALLOC): Define.
7021
7022 2002-06-19 Grace Sainsbury <graces@redhat.com>
7023
7024 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7025 * m68k-tdep.c (m68k_gdbarch_init): Added.
7026 (m68k_dump_tdep): Added.
7027
7028 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7029
7030 * ada-lang.c (fill_in_ada_prototype): Update comment.
7031
7032 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7033
7034 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7035 MIPS_ABI_LAST.
7036 (mips_abi_string, mips_abi_strings): New.
7037 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7038 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7039 tdep->mips_abi_string. Honor mips_abi_string. Default to
7040 O32 if no ABI is found.
7041 (mips_dump_tdep): Use mips_abi_strings.
7042 (mips_abi_update): New function.
7043 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7044 ``set mips abi'' and ``show mips abi''. Check the size of
7045 mips_abi_strings.
7046
7047 2002-06-19 Andrew Cagney <cagney@redhat.com>
7048
7049 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7050 constant.
7051
7052 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7053
7054 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7055 current frame using only the first stack size adjustment. All
7056 subsequent size adjustments are not considered to be part of
7057 the "static" part of the current frame.
7058 Compute the address of the saved registers relative to the
7059 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7060 in use in this frame.
7061
7062 2002-06-18 Don Howard <dhoward@redhat.com>
7063
7064 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7065 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7066 suggesting this solution.
7067
7068 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7069
7070 * config/romp/xm-rtbsd.h: Delete file.
7071 * config/romp/rtbsd.mh: Delete file.
7072
7073 2002-06-18 Keith Seitz <keiths@redhat.com>
7074
7075 * breakpoint.c (condition_command): Post breakpoint_modify
7076 when a condition is added to an existing breakpoint.
7077 (commands_command): Likewise for commands.
7078 (set_ignore_count): Likewise for ignore counts.
7079 If no tty, do not simply return, still need to send event
7080 notification.
7081 (ignore_command): Only print a newline if the command came
7082 from a tty.
7083 Don't call breakpoints_changed, since this is now properly
7084 handled by set_ignore_count.
7085
7086 2002-06-18 Andrew Cagney <cagney@redhat.com>
7087
7088 * MAINTAINERS: Note that cris-elf target can be compiled with
7089 -Werror.
7090 * cris-tdep.c (cris_register_name): Make return type constant.
7091 (cris_breakpoint_from_pc): Ditto.
7092
7093 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7094
7095 * frame.h (struct frame_info): Change type of context to
7096 'struct context'.
7097
7098 2002-06-17 Andrew Cagney <cagney@redhat.com>
7099
7100 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7101 pointer.
7102 * gdbarch.h, gdbarch.c: Regenerate.
7103 * config/mips/tm-mips.h (mips_register_name): Update.
7104 * i386-tdep.h (i386_register_name): Update.
7105 * mips-tdep.c (mips_register_name): Update
7106 * alpha-tdep.c (alpha_register_name): Update.
7107 * arch-utils.c (legacy_register_name): Update.
7108 * arch-utils.h (legacy_register_name): Update.
7109 * avr-tdep.c (avr_register_name): Update.
7110 * ia64-tdep.c (ia64_register_name): Update.
7111 * i386-tdep.c (i386_register_name): Update.
7112 * sparc-tdep.c (sparc32_register_name): Update.
7113 (sparc64_register_name): Update.
7114 (sparclite_register_name): Update.
7115 (sparclet_register_name): Update.
7116 * sh-tdep.c (sh_generic_register_name): Update.
7117 (sh_sh_register_name): Update.
7118 (sh_sh3_register_name): Update.
7119 (sh_sh3e_register_name): Update.
7120 (sh_sh_dsp_register_name): Update.
7121 (sh_sh3_dsp_register_name): Update.
7122 (sh_sh4_register_name): Update.
7123 (sh_sh64_register_name): Update.
7124 * s390-tdep.c (s390_register_name): Update.
7125 * rs6000-tdep.c (rs6000_register_name): Update.
7126 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7127 (ns32k_register_name_32382): Update.
7128 * d10v-tdep.c (d10v_ts2_register_name): Update.
7129 (d10v_ts3_register_name): Update.
7130 * xstormy16-tdep.c (xstormy16_register_name): Update.
7131 * vax-tdep.c (vax_register_name): Update.
7132 * v850-tdep.c (v850_register_name): Update.
7133 * m68hc11-tdep.c (m68hc11_register_name): Update.
7134 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7135 (am33_register_name): Update.
7136
7137 2002-06-17 Grace Sainsbury <graces@redhat.com>
7138
7139 * m68k-tdep.c: Reindented.
7140
7141 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7142
7143 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7144 list of predefined types.
7145
7146 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7147
7148 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7149 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7150 REGISTER_CONVERT_TO_RAW): Remove defines.
7151 (i386_register_virtual_type, i386_register_convertible,
7152 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7153 Remove prototypes.
7154 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7155 macros mentioned above.
7156
7157 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7158 (i386lynx_saved_pc_after_call): Remove prototype.
7159 * i386ly-tdep.c: Include "i386-tdep.h".
7160 (i386lynx_saved_pc_after_call): Make static. Use
7161 read_memory_nobpt instead of read_memory. Use
7162 read_memory_unsigned_integer instead of read_memory_integer.
7163 (i386lynx_init_abi): New function.
7164 (i386lynx_coff_osabi_sniffer): New function.
7165 (_initialize_i386bsd_tdep): New function.
7166
7167 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7168 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7169 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7170 (i386_fix_call_dummy): Remove prototype.
7171 * i386-tdep.c (i386_call_dummy_words): New variable.
7172 (i386_gdbarch_init): Adjust for removal of the
7173 macros mentioned above.
7174
7175 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7176
7177 * command.h (add_setshow_auto_boolean_cmd): Replace
7178 add_set_auto_boolean_cmd.
7179 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7180 add_set_auto_boolean_cmd.
7181 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7182 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7183 mask-address'' command.
7184 (show_mask_address): Add cmd parameter.
7185 * remote.c (add_packet_config_cmd): Update. Change type of
7186 set_func and show_func to cmd_sfunc_ftype.
7187 (_initialize_remote): Update `set remote Z-packet'
7188 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7189 (show_remote_protocol_e_packet_cmd): Ditto.
7190 (show_remote_protocol_E_packet_cmd): Ditto.
7191 (show_remote_protocol_P_packet_cmd): Ditto.
7192 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7193 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7194 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7195 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7196 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7197 (show_remote_protocol_Z_packet_cmd): Ditto.
7198 (show_remote_protocol_binary_download_cmd): Ditto.
7199 (show_remote_cmd): Pass NULL to all of above.
7200
7201 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7202
7203 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7204 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7205 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7206 POP_FRAME): Remove defines.
7207 (i386_push_arguments, i386_store_struct_return,
7208 i386_extract_return_value, i386_store_return_value,
7209 i386_extract_struct_value_address, i386_push_dummy_frame,
7210 i386_pop_frame): Renove prototypes.
7211 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7212 macros mentioned above.
7213
7214 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7215
7216 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7217 add_set_boolean_cmd.
7218 (add_setshow_cmd): New function.
7219 * command.h (add_setshow_boolean_cmd): Replace
7220 add_set_boolean_cmd.
7221 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7222 and ``set rdiromatzero''.
7223 * maint.c (_initialize_maint_cmds): Update commented out code.
7224 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7225 * target.c (initialize_targets): Update `set
7226 trust-readonly-sections'.
7227 * remote.c (_initialize_remote): Update `set remotebreak'.
7228
7229 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7230
7231 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7232 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7233 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7234 fit into multi-arch framework.
7235 (i386_breakpoint_from_pc): New function.
7236 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7237 above.
7238
7239 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7240 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7241 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7242 (i386_frameless_function_invocation, i386_frame_num_args,
7243 i386_frame_init_saved_regs): Remove prototypes.
7244 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7245 macros mentioned above.
7246
7247 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7248
7249 * cli/cli-decode.c (set_cmd_cfunc): Update.
7250 (set_cmd_sfunc): Update.
7251 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7252 (set_cmd_sfunc, set_cmd_cfunc): Update.
7253 * cli/cli-decode.h: Update.
7254
7255 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7256
7257 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7258 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7259
7260 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7261
7262 * defs.h (auto_boolean): Declare enum.
7263 * command.h (cmd_auto_boolean): Delete enum.
7264 * mips-tdep.c (mask_address_var): Update.
7265 (mips_mask_address_p): Update.
7266 (show_mask_address): Update.
7267 * remote.c (struct packet_config): Update.
7268 (update_packet_config): Update.
7269 (show_packet_config_cmd): Update.
7270 (packet_ok): Update.
7271 (add_packet_config_cmd): Update.
7272 (_initialize_remote):
7273 * command.h: Update.
7274 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7275 (do_setshow_command): Update.
7276 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7277 * cli/cli-decode.h: Update.
7278
7279 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7280
7281 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7282 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7283 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7284 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7285 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7286 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7287
7288 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7289 list of DJGPP COFF targets.
7290
7291 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7292 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7293 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7294 (FP0_REGNUM): Remove define.
7295 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7296 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7297 (i386_register_virtual_size): Remove protoype.
7298 * i386-tdep.c (i386_register_virtual_size): Removed.
7299 (i386_extract_return_value, i386_store_return_value): Use
7300 FP0_REGNUM instead of NUM_FREGS to determine whether the
7301 floating-point registers are available.
7302 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7303 Adjust for removal of macros mentioned above.
7304
7305 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7306
7307 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7308 comments.
7309 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7310 Remove prototypes.
7311 (supply_gregset, fill_gregset): Remove use of register keyword and
7312 remove declaration for regmap. Use I386_NUM_GREGS instead of
7313 NUM_REGS and NUM_FREGS.
7314 (FPREGSET_FSAVE_OFFSET): Remove.
7315 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7316 NUM_FREGS to determine whether the floating-point registers are
7317 available.
7318
7319 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7320 gnu_store_registers): Replace usage of NUM_GREGS with
7321 I386_NUM_GREGS.
7322
7323 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7324 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7325 usage of NUM_GREGS with I386_NUM_GREGS.
7326
7327 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7328
7329 * i386bsd-nat.c: Include "i386-tdep.h".
7330 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7331 I386_NUM_GREGS.
7332
7333 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7334 and associated comment. They no longer make any sense, since we
7335 don't use this file anymore on Linux.
7336
7337 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7338 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7339 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7340 elements in these arrays.
7341 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7342 MAX_NUM_REGS.
7343
7344 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7345
7346 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7347 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7348
7349 2002-06-14 Andrew Cagney <cagney@redhat.com>
7350
7351 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7352 EXTRACT_RETURN_VALUE.
7353 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7354 EXTRACT_STRUCT_VALUE_ADDRESS.
7355 * gdbarch.h, gdbarch.c: Regenerate.
7356
7357 * values.c (value_being_returned): Handle
7358 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7359 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7360
7361 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7362 * arm-tdep.c (arm_gdbarch_init): Update.
7363 * avr-tdep.c (avr_gdbarch_init): Update.
7364 * cris-tdep.c (cris_gdbarch_init): Update.
7365 * d10v-tdep.c (d10v_gdbarch_init): Update.
7366 * ia64-tdep.c (ia64_gdbarch_init): Update.
7367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7368 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7369 * s390-tdep.c (s390_gdbarch_init): Update.
7370 * sh-tdep.c (sh_gdbarch_init): Update.
7371 * s390-tdep.c (s390_gdbarch_init): Update.
7372 * sparc-tdep.c (sparc_gdbarch_init): Update.
7373 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7374 * v850-tdep.c (v850_gdbarch_init): Update.
7375 * vax-tdep.c (vax_gdbarch_init): Update.
7376 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7378
7379 * config/arc/tm-arc.h: Update.
7380 * config/d30v/tm-d30v.h: Update.
7381 * config/fr30/tm-fr30.h: Update.
7382 * config/h8300/tm-h8300.h: Update.
7383 * config/h8500/tm-h8500.h: Update.
7384 * config/i386/tm-i386.h: Update.
7385 * config/i386/tm-ptx.h: Update.
7386 * config/i386/tm-symmetry.h: Update.
7387 * config/i960/tm-i960.h: Update.
7388 * config/m32r/tm-m32r.h: Update.
7389 * config/m68k/tm-delta68.h: Update.
7390 * config/m68k/tm-linux.h: Update.
7391 * config/m68k/tm-m68k.h: Update.
7392 * config/m88k/tm-m88k.h: Update.
7393 * config/mcore/tm-mcore.h: Update.
7394 * config/mips/tm-mips.h: Update.
7395 * config/mn10200/tm-mn10200.h: Update.
7396 * config/pa/tm-hppa.h: Update.
7397 * config/pa/tm-hppa64.h: Update.
7398 * config/sparc/tm-sp64.h: Update.
7399 * config/sparc/tm-sparc.h: Update.
7400 * config/sparc/tm-sparclet.h: Update.
7401 * config/z8k/tm-z8k.h: Update.
7402
7403 2002-06-14 Andrew Cagney <cagney@redhat.com>
7404
7405 * Makefile.in (i386_linux_tdep_h): Define.
7406 (i386_tdep_h, i387_tdep_h): Define.
7407 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7408 $(i386_tdep_h) and $(i387_tdep_h).
7409 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7410
7411 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7412
7413 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7414 Already covered by the default.
7415
7416 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7417 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7418 (i386_gdbarch_init): Initialize long_double_format and long_double
7419 bit.
7420
7421 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7422 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7423 Move these to ...
7424 * config/i386/i386sol2.mh: ... here.
7425 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7426 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7427 (SIGCONTEXT_PC_OFFSET): Remove define.
7428 (IN_SIGTRAMP): Remove define.
7429 * i386-sol2-tdep.c: New file.
7430
7431 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7432 * config/i386/tm-i386nw.h: Removed.
7433
7434 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7435 USE_STRUCT_CONVENTION): Remove defines.
7436 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7437 (get_longjmp_target): Remove prototype.
7438 (IN_SIGTRAMP): Remove define.
7439 (i386bsd_in_sigtramp): Remove prototype.
7440 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7441 function. Update comment accordingly
7442 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7443 (FRAME_SAVED_PC): Remove define.
7444 (i386bsd_frame_saved_pc): Remove prototype.
7445 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7446 GET_LONGJMP_TARGET): Remove defines.
7447 (get_longjmp_target): Remove prototype.
7448 (IN_SIGTRAMP): Remove define.
7449 (i386bsd_in_sigtramp): Remove prototype.
7450 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7451 function. Update comment accordingly
7452 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7453 (FRAME_SAVED_PC): Remove define.
7454 (i386bsd_frame_saved_pc): Remove prototype.
7455 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7456 Remove prototype.
7457 (USE_STRUCT_CONVENTION): Remove prototype.
7458 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7459 declaration.
7460 (_initialize_i386bsd_nat): Revise logic to determine some
7461 constants at compile time when compiling a native GDB. Warn if
7462 things don't match up with what we expect.
7463 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7464 Remove variables.
7465 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7466 to use date stored in `struct gdbarch_tdep'.
7467 (i386bsd_sigcontext_offset): Remove varaible.
7468 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7469 stored in `struct gdbarch_tdep'.
7470 (i386bsd_frame_saved_pc): Make static.
7471 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7472 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7473 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7474 i386fbsd4_sc_pc_offset): New variables.
7475 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7476 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7477 functions.
7478 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7479 functions.
7480 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7481 Modify the value of i386fbsd_sigtramp_start and
7482 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7483 i386fbsd_sigtramp_end.
7484 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7485 function.
7486
7487 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7488 define to i386-linux-tdep.h.
7489 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7490 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7491 defines.
7492 (i386_linux_register_name, i386_linux_register_byte,
7493 i386_linux_register_raw_size): Remove prototypes.
7494 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7495 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7496 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7497 TARGET_WRITE_PC): Remove defines.
7498 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7499 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7500 i386_linux_write_pc): Remove prototypes.
7501 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7502 (get_longjmp_target): Remove prototype.
7503 * i386-linux-tdep.h: New file.
7504 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7505 * i386-linux-tdep.c: Include "i386-tdep.h" and
7506 "i386-linux-tdep.h".
7507 (i386_linux_register_name, i386_linux_register_byte,
7508 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7509 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7510 Make static.
7511 (i386_linux_init_abi): New function.
7512 (_initialize_i386_linux_tdep): New function.
7513
7514 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7515 (i386_saved_pc_after_call): Remove prototype.
7516 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7517 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7518 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7519 (i386_register_name, i386_stab_reg_to_regnum,
7520 i386_dwarf_reg_to_regnum): Remove prototypes.
7521 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7522 SIZEOF_SSE_REGS): Remove defines.
7523 (REGISTER_BYTES): Remove define.
7524 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7525 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7526 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7527 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7528 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7529 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7530 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7531 (get_longjmp_target): Remove prototype.
7532 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7533 (sigtramp_saved_pc): Remove define.
7534 (i386v4_sigtramp_saved_pc): Remove prototype.
7535 * config/i386/tm-go32.h (FRAME_CHAIN,
7536 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7537 (i386go32_frame_saved_pc): Remove prototype.
7538 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7539 (get_longjmp_target): Remove prototype.
7540 * i386-tdep.h: Include "osabi.h".
7541 (enum i386_abi): Removed.
7542 (enum struct_return): New enum.
7543 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7544 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7545 sc_pc_offset members.
7546 (i386_gdbarch_register_os_abi): Remove prototype.
7547 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7548 I386_SSE_NUM_REGS): New defines.
7549 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7550 I386_SSE_SIZEOF_REGS): New defines.
7551 (i386_register_name, i386_register_byte, i386_register_raw_size):
7552 New prototypes.
7553 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7554 (i386bsd_sigtramp_saved_pc): New prototype.
7555 * i386-tdep.c: Don't include "elf-bfd.h".
7556 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7557 i386_frame_chain, i386_saved_pc_after_call): Make static.
7558 (i386_frame_saved_pc): Rewrite to call architecture dependent
7559 function to deal with signal handlers. Make static.
7560 (i386go32_frame_saved_pc): Removed.
7561 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7562 Removed.
7563 (i386_get_longjmp_target): New function.
7564 (default_struct_convention, pcc_struct_convention,
7565 reg_struct_convention, valid_conventions, struct_convention): New
7566 variables.
7567 (i386_use_struct_convention): New function.
7568 (i386v4_sigtramp_saved_pc): Renamed to
7569 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7570 (i386_pc_in_sigtramp): New function.
7571 (i386_abi_names): Removed.
7572 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7573 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7574 Removed.
7575 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7576 i386_gdbarch_register_os_abi): Removed.
7577 (struct i386_abi_handler): Removed.
7578 (i386_abi_handler_list): Removed.
7579 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7580 functions.
7581 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7582 i386_nw_init_abi): New functions.
7583 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7584 Use set_gdbarch_xxx() calls instead of relying on macros for a
7585 number of calls.
7586 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7587 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7588 Register the various architecture variants defined in this file.
7589
7590 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7591
7592 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7593 (struct main_type): Remove arg_types member. Update comments for
7594 struct field.
7595 (TYPE_ARG_TYPES): Remove.
7596 (TYPE_FN_FIELD_ARGS): Update.
7597 (smash_to_method_type): Update prototype.
7598
7599 * c-typeprint.c (cp_type_print_method_args): Take method type
7600 instead of argument list. Use new argument layout. Simplify.
7601 (c_type_print_args): Use new argument layout. Simplify.
7602 (c_type_print_base): Update call to cp_type_print_method_args.
7603 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7604 argument; use die->type instead. Update call to
7605 smash_to_method_type.
7606 (read_structure_scope): Update call to dwarf2_add_member_fn.
7607 * gdbtypes.c (allocate_stub_method): Update comment.
7608 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7609 Use new argument layout.
7610 (check_stub_method): Use new argument layout. Don't count
7611 void as an argument.
7612 (print_arg_types): Update comments. Use new argument layout.
7613 (recursive_dump_type): Don't print arg_types member.
7614 * hpread.c (hpread_read_struct_type): Use new argument layout.
7615 (fixup_class_method_type): Likewise.
7616 (hpread_type_lookup): Likewise.
7617 * stabsread.c (read_type): Update calls to read_args and
7618 smash_to_method_type.
7619 (read_args): Use new argument layout. Simplify.
7620 * valops.c (typecmp): Use new argument layout. Update parameters
7621 and comments. Simplify.
7622 (hand_function_call): Use new argument layout.
7623 (search_struct_method): Update call to typecmp.
7624 (find_overload_match): Use new argument layout.
7625
7626 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7627
7628 * NEWS: Mention multithreaded debug support for gdbserver.
7629
7630 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7631
7632 * MAINTAINERS: Mention NEWS.
7633
7634 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7635
7636 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7637 (struct mips_objfile_private, compare_pdr_entries): New.
7638 (non_heuristic_proc_desc): Read the ".pdr" section if it
7639 is present.
7640
7641 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7642
7643 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7644 (arm_debug): New static variable.
7645 (_initialize_arm_tdep): Add ``set debug arm'' command.
7646
7647 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7648
7649 * Makefile.in (sim_arm_h): Define.
7650 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7651 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7652 (arm_register_sim_regno): New function, map an internal REGNUM
7653 onto a simulator register number.
7654 (arm_gdbarch_init): Set register_sim_regno.
7655
7656 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7657
7658 * MAINTAINERS: Add self.
7659
7660 2002-06-11 Jim Blandy <jimb@redhat.com>
7661
7662 * source.c (source_info): Mention whether the symtab has
7663 information about preprocessor macros.
7664
7665 Call the command `info macro', not `show macro'.
7666 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7667 Fix error message.
7668 (_initialize_macrocmd): Register `info_macro_command' in
7669 `infolist', not `showlist'.
7670
7671 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7672
7673 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7674 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7675 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7676 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7677 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7678 unconditionally.
7679 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7680 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7681 (_initialize_mips_tdep): Remove dead code.
7682 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7683 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7684 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7685 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7686 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7687 MIPS_LAST_FP_ARG_REGNUM): Remove.
7688
7689 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7690
7691 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7692 (unwind_tmp_obstack_free, parse_frame_info)
7693 (update_context, cfi_read_fp, cfi_write_fp)
7694 (cfi_frame_chain, cfi_init_extra_frame_info)
7695 (cfi_virtual_frame_pointer): Use the above function.
7696 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7697
7698 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7699
7700 * v850-tdep.c (v850_type_is_scalar): New function.
7701 (v850_use_struct_convention): Match current gcc implementation
7702 as close as possible.
7703 (v850_push_arguments): Fix stack_offset handling. Don't write
7704 struct_addr into register. This is done by v850_store_struct_return.
7705 (v850_extract_return_value): Care for structs.
7706 (v850_store_return_value): Ditto.
7707 (v850_store_struct_return): Actually write address.
7708
7709 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7710
7711 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7712 without debug information too.
7713
7714 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7715
7716 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7717 Make multi-arch pure.
7718 * gdbarch.h, gdbarch.c: Re-generate.
7719 * arm-tdep.c (arm_print_float_info): Update.
7720 * arch-utils.h (default_print_float_info): Update.
7721 * arch-utils.c (default_print_float_info): Update.
7722 * infcmd.c (float_info): Update call.
7723
7724 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7725
7726 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7727 the front of the initialize list.
7728
7729 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7730
7731 * infrun.c (struct inferior_status): Replace fields
7732 selected_frame_address and selected_level with field
7733 selected_frame_id.
7734 (save_inferior_status): Update. Use get_frame_id.
7735 (struct restore_selected_frame_args): Delete.
7736 (restore_selected_frame): Update. Use frame_find_by_id.
7737 (restore_inferior_status): Update.
7738
7739 * breakpoint.h (struct breakpoint): Change type of
7740 watchpoint_frame to frame_id.
7741 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7742 call to get_current_frame.
7743 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7744 get_current_frame.
7745 (watchpoint_check): Use frame_find_by_id.
7746
7747 * frame.h (record_selected_frame): Delete declaration.
7748 * stack.c (record_selected_frame): Delete function.
7749
7750 * frame.h (struct frame_id): Define.
7751 (get_frame_id): Declare.
7752 (frame_find_by_id): Declare.
7753 * frame.c (frame_find_by_id): New function.
7754 (get_frame_id): New function.
7755
7756 2002-06-10 Andrey Volkov <avolkov@transas.com>
7757
7758 * ser-e7kpc.c: Fix duplicated define and call of
7759 _initialize_ser_e7000pc
7760
7761 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7762
7763 * signals/signals.c (target_signal_from_host): Fix #ifdef
7764 SIGRTMIN case.
7765 (do_target_signal_to_host): Likewise.
7766
7767 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7768
7769 * mips-tdep.c (mips_find_abi_section): New function.
7770 (mips_gdbarch_init): Call it.
7771
7772 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7773
7774 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7775 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7776 after Andrew's 2002-06-08 gdbarch change.
7777
7778 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7779
7780 * i386-linux-nat.c (suppy_gregset): Don't supply
7781 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7782 register cache.
7783 (fill_gregset): Don't fetch it under the same circumstances.
7784
7785 2002-06-09 Andrew Cagney <cagney@redhat.com>
7786
7787 * Makefile.in (callback_h): Define.
7788 (remote_sim_h): Update path to remote-sim.h.
7789 (remote-rdp.o): Add $(callback_h).
7790 (remote-sim.o): Use $(callback_h).
7791 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7792 * remote-rdp.c: Include "gdb/callback.h".
7793
7794 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7795
7796 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7797 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7798
7799 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7800
7801 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7802 * rdi-share/serpardr.c: Ditto.
7803 * rdi-share/unixcomm.c: Ditto.
7804 * rdi-share/serdrv.c: Ditto.
7805 * rdi-share/hostchan.h: Ditto.
7806 * rdi-share/hostchan.c: Ditto.
7807 * rdi-share/host.h: Ditto.
7808 * rdi-share/devsw.c: Ditto.
7809
7810 * objfiles.h: Change type of obj_private to void pointer.
7811 * pa64solib.c: Update copyright. Don't include "assert.h", use
7812 strcmp instead of STREQ, use LONGEST, do not use PTR
7813 * somsolib.c: Ditto.
7814
7815 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7816 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7817 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7818
7819 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7820
7821 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7822 (default_get_saved_register): Delete function.
7823 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7824 generic_unwind_get_saved_register.
7825 * gdbarch.h, gdbarch.c: Re-generate.
7826
7827 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7828
7829 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7830 generic_func_frame_chain_valid.
7831 * gdbarch.h, gdbarch.c: Re-generate.
7832 * blockframe.c (generic_func_frame_chain_valid): Only check
7833 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7834 passing FP to PC_IN_CALL_DUMMY.
7835 Fix PR gdb/360.
7836
7837 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7838
7839 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7840 (register_gdbarch_data): Initialize init_p.
7841 (gdbarch_data): Initialize data pointer using the init function.
7842 (init_gdbarch_data): Delete function.
7843 (gdbarch_update_p): Update.
7844 (initialize_non_multiarch): Update.
7845 (struct gdbarch): Add field initialized_p.
7846 * gdbarch.h, gdbarch.c: Re-generate.
7847
7848 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7849
7850 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7851 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7852 better do the things actually here.
7853 * x86-64-tdep.c (x86_64_register_name2nr): New.
7854 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7855 (x86_64_gdbarch_init): Respect the above change.
7856 * x86-64-tdep.h (x86_64_register_name2nr)
7857 (x86_64_register_nr2name): Add prototypes.
7858 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7859
7860 2002-06-06 Michael Snyder <msnyder@redhat.com>
7861
7862 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7863 Delete extra braces and re-indent.
7864 (d10v_store_return_value): Char return values
7865 must be shifted over by one byte in R0.
7866 (d10v_extract_return_value): Delete extra braces, re-indent.
7867
7868 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7869
7870 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7871 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7872 (d10v_integer_to_address): Rewrite.
7873 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7874 the d10v specific functions which take care of converting to the
7875 correct space.
7876
7877 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7878
7879 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7880 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7881
7882 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7883
7884 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7885 includes.
7886 * config/tm-linux.h: Ditto.
7887 * config/alpha/tm-alphalinux.h: Ditto.
7888 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7889 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7890 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7891 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7892 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7893 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7894 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7895 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7896 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7897 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7898 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7899 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7900 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7901 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7902 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7903 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7904 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7905 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7906 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7907 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7908 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7909 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7910 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7911 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7912 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7913 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7914 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7915 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7916 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7917 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7918 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7919 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7920 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7921 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7922 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7923 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7924 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7925
7926 2002-05-04 Aidan Skinner <aidan@velvet.net>
7927
7928 * ada-exp.tab.c: New file
7929 * ada-exp.y: New file
7930 * ada-lang.c: New file
7931 * ada-lang.h: New file
7932 * ada-lex.c: New file
7933 * ada-lex.l: New file
7934 * ada-tasks.c: New file
7935 * ada-typeprint.c: New file
7936 * ada-valprint.c: New file
7937
7938 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7939
7940 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7941 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7942
7943 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7944
7945 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7946 insetead of ppc-linux-tdep.o.
7947 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7948 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7949
7950 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7951
7952 2002-05-07 Christian Groessler <chris@groessler.org>
7953 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7954 bit register contents for little endian hosts.
7955
7956 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7957
7958 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7959 any maintainer.
7960
7961 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7962
7963 * gdbarch.h: Regenerate.
7964
7965 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7966
7967 * MAINTAINERS: Add everyone to write-after-approval list.
7968
7969 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7970
7971 * stack.c (frame_info): Use frame_register_unwind instead of
7972 saved_regs. Mention when the SP is on the stack or in a register.
7973
7974 * frame.h (frame_register_unwind_ftype): Define. Document.
7975 (struct frame_info): Add field register_unwind and
7976 register_unwind_cache.
7977 (frame_register_unwind): Declare.
7978 (generic_unwind_get_saved_register): Declare.
7979
7980 * frame.c (frame_register_unwind): New function.
7981 (generic_unwind_get_saved_register): New function.
7982
7983 * blockframe.c (generic_call_dummy_register_unwind): New function.
7984 (frame_saved_regs_register_unwind): New function.
7985 (set_unwind_by_pc): New function.
7986 (create_new_frame): New function.
7987 (get_prev_frame): New function.
7988
7989 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7990
7991 * a29k-share/: Delete directory.
7992 * remote-vx29k.c: Delete file.
7993
7994 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7995
7996 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7997 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7998
7999 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8000
8001 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8002 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8003 (sparc64nbsd-nat.o)
8004 (sparcnbsd-nat.o)
8005 (sparcnbsd-tdep.o): New dependency lists.
8006 * NEWS: Note new UltraSPARC NetBSD native configuration.
8007 * configure.host (sparc64-*-netbsd*): New host.
8008 * configure.tgt (sparc-*-netbsdelf*)
8009 (sparc-*-netbsd*): Set gdb_target to nbsd.
8010 (sparc64-*-netbsd*): New target.
8011 * sparc64nbsd-nat.c: New file.
8012 * sparcnbsd-nat.c: New file.
8013 * sparcnbsd-tdep.c: New file.
8014 * sparcnbsd-tdep.h: New file.
8015 * config/sparc/nbsd.mt: New file.
8016 * config/sparc/nbsd64.mh: New file.
8017 * config/sparc/nbsd64.mt: New file.
8018 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8019 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8020 (HOST_IPC): Remove.
8021 * config/sparc/nbsdaout.mt: Remove.
8022 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8023 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8024 (HOST_IPC): Remove.
8025 * config/sparc/nbsdelf.mt: Remove.
8026 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8027 sparc-nat.c compatiblity defines.
8028 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8029 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8030 * config/sparc/tm-nbsd64.h: New file.
8031 * config/sparc/tm-nbsdaout.h: Remove.
8032 * config/sparc/xm-nbsd.h: Remove.
8033
8034 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8035
8036 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8037 * sparc-tdep.c: Include osabi.h.
8038 (gdbarch_tdep): Add osabi member.
8039 (_initialize_sparc_tdep): Use gdbarch_register.
8040 (sparc_gdbarch_init): Use generic OS ABI framework.
8041 (sparc_dump_tdep): New function.
8042
8043 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8044
8045 * corefile.c (do_captured_read_memory_integer): Return non-zero
8046 result.
8047 (safe_read_memory_integer): Copy result of memory read when
8048 status is non-zero. Also, add comments.
8049
8050 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8051
8052 * Makefile.in (ppc_tdep_h): Define.
8053 (ppc-linux-nat.o)
8054 (ppc-linux-tdep.o)
8055 (rs6000-tdep.o): Use $(ppc_tdep_h).
8056 (ppc-sysv-tdep.o)
8057 (ppcnbsd-nat.o)
8058 (ppcnbsd-tdep.o): New dependency lists.
8059 * ppc-tdep.h: Use generic OS ABI framework.
8060 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8061 (ppc_linux_init_abi): New functions.
8062 (ppc_sysv_abi_broken_use_struct_convention)
8063 (ppc_sysv_abi_use_struct_convention)
8064 (ppc_sysv_abi_push_arguments): Move to...
8065 * ppc-sysv-tdep.c: ...here.
8066 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8067 * rs6000-tdep.c (process_note_abi_tag_sections)
8068 (get_elfosabi): Remove.
8069 (rs6000_gdbarch_init): Use generic OS ABI framework.
8070 (rs6000_dump_tdep): New function.
8071 (_initialize_rs6000_tdep): Use gdbarch_register.
8072 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8073 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8074 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8075 of ppc-linux-tdep.o.
8076 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8077 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8078 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8079 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8080 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8081 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8082
8083 2002-05-29 Jim Blandy <jimb@redhat.com>
8084
8085 * macroscope.c (default_macro_scope): Put `void' in empty argument
8086 list.
8087
8088 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8089
8090 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8091 * arch-utils.c: Include "sim-regno.h".
8092 * gdbarch.sh: Don't include "sim-regno.h".
8093 * gdbarch.h, gdbarch.c: Regenerate.
8094 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8095 here.
8096 * arch-utils.h (legacy_register_sim_regno): To here.
8097 * remote-sim.c (legacy_register_sim_regno): Move function from
8098 here.
8099 * arch-utils.c (legacy_register_sim_regno): To here.
8100
8101 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8102
8103 * sim-regno.h: New file.
8104 * Makefile.in (sim_regno_h): Define.
8105 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8106 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8107 (legacy_register_sim_regno): New function.
8108 (one2one_register_sim_regno): New function.
8109 (gdbsim_fetch_register): Rewrite.
8110 (gdbsim_store_register): Only store a register when
8111 REGISTER_SIM_REGNO is valid.
8112 * d10v-tdep.c: Include "sim-regno.h".
8113 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8114 (d10v_ts3_register_sim_regno): Ditto.
8115 * gdbarch.sh: Include "sim-regno.h".
8116 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8117 * gdbarch.h, gdbarch.c: Regenerate.
8118 * arch-utils.h (default_register_sim_regno): Delete declaration.
8119 * arch-utils.c (default_register_sim_regno): Delete function.
8120
8121 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8122
8123 * ppcnbsd-nat.c: Rewrite.
8124 * ppcnbsd-tdep.c: New file.
8125 * ppcnbsd-tdep.h: New file.
8126 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8127 solib.o, and solib-svr4.o.
8128 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8129 nbsd-tdep.o, and corelow.o.
8130
8131 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8132
8133 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8134 `tr' and `sed'. Mention that `broken' targets are not expected to
8135 build.
8136
8137 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8138
8139 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8140 Let PC point right after the prologue before looking up symbols.
8141
8142 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8143
8144 * i386-tdep.c (i386_register_virtual_type): Return
8145 builtin_type_vec128i for SSE registers.
8146
8147 * gdbtypes.h (builtin_type_vec128i): Declare.
8148
8149 * gdbtypes.c (build_builtin_type_vec128i): New function.
8150 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8151 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8152 (build_gdbtypes): Initialize new builtin vector types.
8153 (_initialize_gdbtypes): Register new vector types with gdbarch.
8154
8155 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8156
8157 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8158 since it has been multi-arch'd.
8159 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8160 Move Alpha and VAX multi-arch news entries to same section
8161 as other multi-arch news.
8162
8163 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8164
8165 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8166 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8167 static. Rename some register numbers to put them in ns32k-tdep
8168 private namespace.
8169 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8170 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8171 functions.
8172 (_initialize_ns32k_tdep): Use gdbarch_register.
8173 * ns32k-tdep.h: New file.
8174 * ns32knbsd-tdep.c: New file.
8175 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8176 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8177 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8178 REGISTER_BYTES, REGISTER_BYTE): Remove.
8179 * config/ns32k/tm-ns32k.h: New file.
8180 * config/ns32k/tm-umax.h: Remove.
8181
8182 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8183
8184 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8185 ns32k_store_struct_return, ns32k_extract_return_value,
8186 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8187 functions.
8188 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8189 ns32k_saved_pc_after_call.
8190 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8191 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8192 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8193 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8194 ns32k_extract_struct_value_address.
8195
8196 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8197
8198 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8199 ns32k_fix_call_dummy): New.
8200 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8201 ns32k_call_dummy_words.
8202 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8203 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8204 CALL_DUMMY_NARGS): Remove.
8205 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8206
8207 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8208
8209 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8210 ns32k_frame_saved_pc, ns32k_frame_args_address,
8211 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8212 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8213 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8214 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8215 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8216 (BREAKPOINT): Remove..
8217 (FRAME_CHAIN): Define as ns32k_frame_chain.
8218 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8219 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8220 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8221 (FRAME_FIND_SAVED_REGS): Remove.
8222 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8223 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8224 (POP_FRAME): Define as ns32k_pop_frame.
8225
8226 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8227
8228 * ns32k-tdep.c (ns32k_register_byte_32082,
8229 ns32k_register_byte_32382, ns32k_register_raw_size,
8230 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8231 functions.
8232 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8233 ns32k_register_byte_32382.
8234 * config/ns32k/tm-umax.h: Update copyright years.
8235 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8236 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8237 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8238 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8239 (ns32k_get_enter_addr): Fix prototype.
8240
8241 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8242
8243 * ns32k-tdep.c: Update copyright years.
8244 (ns32k_register_name_32082): New function.
8245 (ns32k_register_name_32382): Ditto.
8246 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8247 (REGISTER_NAME): Define as ns32k_register_name_32382.
8248 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8249 (REGISTER_NAME): Define as ns32k_register_name_32082.
8250
8251 2002-05-24 Jim Blandy <jimb@redhat.com>
8252
8253 * dwarf2read.c (free_line_header): Use xfree, not free.
8254
8255 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8256
8257 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8258 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8259
8260 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8261
8262 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8263
8264 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8265
8266 From Ross Alexander at NEC Europe:
8267 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8268
8269 2002-05-23 Michael Snyder <msnyder@redhat.com>
8270
8271 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8272 for input, rather than parse_and_eval_address.
8273
8274 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8275
8276 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8277 * Makefile.in (sim_d10v_h): Update definition.
8278
8279 2002-05-24 Andrew Cagney <cagney@redhat.com>
8280
8281 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8282 change `2002-05-22 Michael Snyder' below.
8283 (d10v_push_arguments): Ditto.
8284 (d10v_extract_return_value): Ditto.
8285
8286 2002-05-23 Jim Blandy <jimb@redhat.com>
8287
8288 * macrotab.c (check_for_redefinition): Don't complain if the new
8289 definition is the same as the previous one. Take more arguments
8290 to allow the comparison.
8291 (macro_define_object, macro_define_function): Pass more arguments
8292 to check_for_redefinition.
8293
8294 2002-05-22 Michael Snyder <msnyder@redhat.com>
8295
8296 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8297 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8298 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8299 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8300 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8301 Add a temp variable to save a call (and a memory read).
8302 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8303 if possible (so that PC_IN_CALL_DUMMY will work).
8304
8305 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8306
8307 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8308
8309 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8310
8311 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8312 fde->cie_ptr.
8313 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8314 (dwarf2_build_frame_info): Add offset to fde->initial_location
8315 so that frames of shared libraries are mapped correctly.
8316 (execute_stack_op): Change type of 'result' from ULONGEST to
8317 CORE_ADDR.
8318
8319 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8320
8321 * config/alpha/tm-nbsd.h: Include solib.h.
8322
8323 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8324
8325 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8326 assumptions about the host's byte order.
8327
8328 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8329
8330 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8331 to dependency list.
8332 * alphanbsd-tdep.c: Include solib-svr4.h.
8333 * shnbsd-tdep.c: Ditto.
8334
8335 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8336
8337 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8338 nbsd-tdep.h to dependency list.
8339 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8340 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8341 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8342 nbsdaout.mh and nbsdelf.mh consistently.
8343 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8344 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8345 nbsdaout.mt and nbsdelf.mh consistently.
8346 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8347 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8348 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8349 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8350 a.out shared library stuff from here...
8351 * config/nm-nbsdaout.h: ...to here.
8352 * config/tm-nbsd.h: Remove.
8353 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8354 * config/arm/nbsd.mh: Remove.
8355 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8356 nbsd-tdep.o.
8357 * config/arm/nbsdaout.mh: New file.
8358 * config/arm/nbsdelf.mh: New file.
8359 * config/arm/nm-nbsdaout.h: New file.
8360 * config/i386/nbsd.mh: Remove.
8361 * config/i386/nbsd.mt: Remove.
8362 * config/i386/nbsdaout.mh: New file.
8363 * config/i386/nbsdaout.mt: New file.
8364 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8365 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8366 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8367 i386_register_u_addr): Remove.
8368 * config/i386/nm-nbsdaout.h: New file.
8369 * config/i386/nm-nbsdelf.h: Remove.
8370 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8371 (USE_STRUCT_CONVENTION): Remove.
8372 * config/i386/tm-nbsdaout.h: New file.
8373 * config/i386/tm-nbsdelf.h: Remove.
8374 * config/m68k/nbsd.mh: Remove.
8375 * config/m68k/nbsd.mt: Remove.
8376 * config/m68k/nbsdaout.mh: New file.
8377 * config/m68k/nbsdaout.mt: New file.
8378 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8379 * config/m68k/nm-nbsdaout.h: New file.
8380 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8381 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8382 * config/ns32k/nbsd.mh: Remove.
8383 * config/ns32k/nbsd.mt: Remove.
8384 * config/ns32k/nbsdaout.mh: New file.
8385 * config/ns32k/nbsdaout.mt: New file.
8386 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8387 * config/ns32k/nm-nbsdaout.h: New file.
8388 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8389 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8390 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8391 (SVR4_SHARED_LIBS): Remove.
8392 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8393 * config/sparc/nbsd.mh: Remove.
8394 * config/sparc/nbsd.mt: Remove.
8395 * config/sparc/nbsdaout.mh: New file.
8396 * config/sparc/nbsdaout.mt: New file.
8397 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8398 * config/sparc/nbsdelf.mt: New file.
8399 * config/sparc/nm-nbsdaout.h: New file.
8400 * config/sparc/nm-nbsdelf.h: Remove.
8401 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8402 * config/sparc/tm-nbsdaout.h: New file.
8403
8404 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8405
8406 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8407 mipsnbsd-tdep.c
8408 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8409
8410 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8411
8412 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8413 shnbsd-nat.c.
8414 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8415
8416 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8417
8418 * NEWS: Note new MIPS NetBSD native configuration.
8419 * configure.host (mips*-*-netbsd*): New host.
8420 * configure.tgt (mips*-*-netbsd*): New target.
8421 * mipsnbsd-nat.c: New file.
8422 * mipsnbsd-tdep.c: New file.
8423 * mipsnbsd-tdep.h: New file.
8424 * config/mips/nbsd.mh: New file.
8425 * config/mips/nbsd.mt: New file.
8426 * config/mips/nm-nbsd.h: New file.
8427 * config/mips/tm-nbsd.h: New file.
8428
8429 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8430
8431 * Makefile.in (SFILES): Add osabi.c.
8432 (COMMON_OBS): Add osabi.o.
8433 (osabi.o): New dependency list.
8434 * osabi.c: New file.
8435 * osabi.h: New file.
8436 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8437
8438 * Makefile.in (alpha_tdep_h): Define and use instead of
8439 alpha-tdep.h.
8440 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8441 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8442 Remove.
8443 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8444 * alpha-tdep.h: Include osabi.h.
8445 (alpha_abi): Remove.
8446 (gdbarch_tdep): Use generic OS ABI framework.
8447 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8448 gdbarch_register_osabi.
8449 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8450 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8451 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8452
8453 * Makefile.in (sh_tdep_h): Add osabi.h.
8454 * sh-tdep.h (sh_osabi): Remove.
8455 (gdbarch_tdep): Use generic OS ABI framework.
8456 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8457 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8458 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8459 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8460
8461 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8462 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8463 gdbarch_register_osabi.
8464 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8465 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8466 (get_elfosabi): Rename to...
8467 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8468 ABI framework support routines.
8469 (arm_gdbarch_init): Use generic OS ABI framework.
8470 (arm_dump_tdep): Likewise.
8471 (_initialize_arm_tdep): Likewise.
8472 * arm-tdep.h: Include osabi.h.
8473 (arm_abi): Remove.
8474 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8475 osabi member.
8476 (arm_gdbarch_register_os_abi): Remove prototype.
8477 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8478 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8479
8480 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8481 * mips-tdep.c: Include osabi.h.
8482 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8483 OS ABI framework.
8484
8485 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8486
8487 * h8300-tdep.c: Fix formatting.
8488
8489 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8490
8491 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8492 printing vector registers.
8493
8494 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8495
8496 From Fernando Nasser:
8497 * remote.c (remote_async_open_1): Re-throw the exception when the
8498 connection fails.
8499 (remote_cisco_open): Ditto.
8500 (remote_open_1): Ditto.
8501
8502 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8503
8504 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8505 (remote_start_remote): Add uiout parameter. Pass through to
8506 remote_start_remote_dummy.
8507 (remote_open_1): Use catch_exception instead of catch_errors.
8508 (remote_async_open_1): Ditto.
8509 (remote_cisco_open): Ditto.
8510
8511 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8512
8513 * remote.c (remote_start_remote): Replace PTR with void pointer.
8514 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8515 static.
8516
8517 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8518
8519 * gdb_indent.sh: Allow the script to be run in the sim directory.
8520
8521 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8522
8523 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8524 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8525
8526 * corelow.c (core_open): Only call set_gdbarch_from_file if
8527 exec_bfd is NULL.
8528
8529 2002-05-17 Andrey Volkov <avolkov@transas.com>
8530
8531 * h8300-tdep.c: Add support of EXR register
8532 * config/h8300/tm-h8300.h: Ditto.
8533
8534 2002-05-17 Andrey Volkov <avolkov@transas.com>
8535
8536 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8537
8538 2002-05-17 Andrey Volkov <avolkov@transas.com>
8539
8540 * h8300-tdep.c: Change literal regnums to REGNO.
8541
8542 2002-05-17 Jim Blandy <jimb@redhat.com>
8543
8544 * NEWS: Note addition of macro support.
8545
8546 Expand preprocessor macros in C expressions.
8547 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8548 (scan_macro_expansion, scanning_macro_expansion,
8549 finished_macro_expansion): New function declarations.
8550 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8551 variable declarations.
8552 * parser-defs.h (expression_context_pc): New declaration.
8553 * parse.c (expression_context_pc): New variable.
8554 (parse_exp_1): Set expression_context_pc, as well as
8555 expression_context_block.
8556 * c-exp.y (yylex): If we're not already reading the result of a
8557 macro expansion, try to macro-expand the next token. When we're
8558 done scanning a macro expansion, switch back to the mainline text.
8559 Commas and `if's in a macro's expansion don't terminate the input.
8560 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8561 (macro_original_text, macro_expanded_text,
8562 expression_macro_lookup_func, expression_macro_lookup_baton): New
8563 variables.
8564 (scan_macro_expansion, scanning_macro_expansion,
8565 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8566 c_preprocess_and_parse): New functions.
8567 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8568 c_preprocess_and_parse, instead of c_parse.
8569 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8570 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8571
8572 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8573
8574 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8575 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8576 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8577
8578 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8579
8580 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8581
8582 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8583
8584 * Makefile.in (sh_tdep_h): Define and use.
8585 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8586 register enum): Move to...
8587 * * sh-tdep.h: ...here.
8588 * sh-tdep.c: Include sh-tdep.h.
8589 * sh3-rom.c: Likewise.
8590 * shnbsd-tdep.c: Likewise.
8591
8592 2002-05-16 Michael Snyder <msnyder@redhat.com>
8593
8594 * arm-tdep.c: Spelling fix in comment.
8595
8596 2002-05-16 Jim Blandy <jimb@redhat.com>
8597
8598 Add commands for manually expanding macros and showing their
8599 definitions.
8600 * macrocmd.c, macroscope.c, macroscope.h: New files.
8601 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8602 (macroscope_h): New variable.
8603 (HFILES_NO_SRCDIR): Add macroscope.h.
8604 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8605 (macroscope.o, macrocmd.o): New rules.
8606
8607 Teach the Dwarf 2 reader to read macro information.
8608 * dwarf2read.c: #include "macrotab.h".
8609 (dwarf_macinfo_buffer): New variable.
8610 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8611 dwarf_macinfo_size.
8612 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8613 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8614 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8615 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8616 dwarf2_macro_spaces_in_definition): New complaints.
8617 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8618 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8619 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8620 the partial symbol table.
8621 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8622 from what's recorded in the partial symbol table.
8623 (read_file_scope): If the compilation unit has a
8624 `DW_AT_macro_info' attribute, read its macro information.
8625 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8626
8627 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8628
8629 Fix PR gdb/546
8630 * ser-tcp.c: Don't include <netinet/udp.h>.
8631
8632 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8633
8634 * MAINTAINERS: Update my email address.
8635
8636 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8637
8638 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8639 include file of the same name.
8640
8641 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8642
8643 * configure.tgt: Mark v850 as multi-arched.
8644 * config/v850/tm-v850.h: Remove file.
8645 * config/v850/v850.mt: Eliminate TM_FILE.
8646
8647 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8648
8649 * v850-tdep.c: Full multi-arch.
8650 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8651 Define GDB_MULTI_ARCH to 2.
8652
8653 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8654
8655 * p-exp.y (current_type): New static variable.
8656 Carries the type of the expression at the position that is parsed.
8657 (push_current_type, pop_current_type): Two new functions. Used
8658 to store/restore current_type in expression on specific tokens.
8659 (search_field): New static variable. Set to one after parsing a point
8660 as at that point only a FIELDNAME token should be searched.
8661 (FIELDNAME): New token. After a point only a token belonging to
8662 current_type type definition is allowed.
8663 (all over token rules): reset and change current_type according
8664 to rules.
8665 (exp '[' rule): insert implicit array index field if
8666 exp is a pascal string type.
8667
8668 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8669
8670 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8671 frame info. Use frame_info's saved_regs instead of matching member
8672 in extra_frame_info throughout.
8673 (v850_frame_init_saved_regs): New function.
8674 (v850_init_extra_frame_info): Move most functionality into
8675 v850_frame_init_saved_regs().
8676 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8677 (v850_frame_find_saved_regs): Remove declaration.
8678 (FRAME_FIND_SAVED_REGS): Remove definition.
8679 (v850_frame_init_saved_regs): Add declaration.
8680 (FRAME_INIT_SAVED_REGS): Add definition.
8681
8682 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8683
8684 * v850-tdep.c: Begin multi-arch'ing v850.
8685 (v850_target_architecture_hook): Remove function.
8686 (v850_gdbarch_init): New function. Add code previously in
8687 v850_target_architecture_hook().
8688 (_initialize_v850_tdep): Don't set target_architecture_hook.
8689 Call register_gdbarch_init() instead.
8690
8691 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8692
8693 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8694 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8695 (fixup_class_method_type): Likewise.
8696
8697 2002-05-15 Jim Blandy <jimb@redhat.com>
8698
8699 Add macro structures to GDB's symbol tables. Nobody puts anything
8700 in them yet.
8701 * symtab.h (struct symtab): New member: `macro_table'.
8702 * buildsym.h (pending_macros): New global variable.
8703 * buildsym.c: #include "macrotab.h".
8704 (buildsym_init): Initialize `pending_macros'.
8705 (end_symtab): If we found macro information while reading a CU's
8706 debugging info, do build a symtab structure for it. Make the
8707 symtab point to the macro information, and clear the
8708 `pending_macros' pointer which held it while we were reading the
8709 debug info.
8710 (really_free_pendings): Free any pending macro table.
8711 * objfiles.h (struct objfile): New member: `macro_cache'.
8712 * objfiles.c (allocate_objfile): Set allocate and free functions
8713 for the macro cache's objstack.
8714 (free_objfile): Empty the macro cache's obstack.
8715 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8716 set new allocate and free functions for it.
8717 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8718 free functions for the macro cache's objstack. (Why is this
8719 function building its own objfile?)
8720 * symmisc.c (print_objfile_statistics): Print statistics on the
8721 macro bcache.
8722 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8723
8724 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8725
8726 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8727 (REGISTER_U_ADDR): Delete definition.
8728 (arm_register_u_addr): Delete declaration.
8729
8730 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8731
8732 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8733 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8734
8735 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8736
8737 * regcache.c (register_valid): Revise comments refering to "Not
8738 available" and "unavailable".
8739 * frame.c (frame_register_read): Ditto.
8740 * findvar.c (value_of_register): Ditto.
8741
8742 2002-05-15 Andrew Cagney <cagney@redhat.com>
8743
8744 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8745 (remote-sim.o): Update dependencies.
8746 (d10v-tdep.o): Specify dependencies.
8747 (sim_d10v_h): Define.
8748
8749 2002-05-14 Jim Blandy <jimb@redhat.com>
8750
8751 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8752 * macrotab.c (macro_lookup_inclusion, find_definition,
8753 new_macro_table): Same.
8754
8755 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8756 not `! strcmp ()'. This is a dubious improvement.
8757 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8758
8759 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8760 although it's not necessary, to avoid a warning.
8761
8762 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8763
8764 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8765 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8766 TYPE_INSTANCE_FLAGS.
8767 (struct main_type): New.
8768 (struct type): Move most members to struct main_type. Change
8769 cv_type and as_type to new type_chain member. Add instance_flags.
8770 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8771 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8772 (finish_cv_type): Remove prototype.
8773 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8774 Set TYPE_CHAIN.
8775 (alloc_type_instance): New function.
8776 (smash_type): New function.
8777 (make_pointer_type, make_reference_type, make_function_type)
8778 (smash_to_member_type, smash_to_method_type): Call smash_type.
8779 (make_qualified_type): New function.
8780 (make_type_with_address_space): Call make_qualified_type.
8781 (make_cv_type): Likewise.
8782 (finish_cv_type): Remove unnecessary function.
8783 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8784 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8785 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8786 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8787 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8788 * hpread.c (hpread_read_struct_type): Likewise.
8789 * stabsread.c (read_struct_type): Likewise.
8790
8791 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8792
8793 * configure.tgt: Add a catch all sh* target, for cases like
8794 sh[2,3,4]-elf and sh-hms.
8795
8796 2002-05-14 Keith Seitz <keiths@redhat.com>
8797
8798 * event-loop.c (create_file_handler): Don't do anything but
8799 update data when we are given a fd which we are already
8800 monitoring.
8801
8802 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8803
8804 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8805 (update_context): Use __func__ in warnings.
8806
8807 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8808
8809 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8810 and tcp_close to net_open and net_close.
8811 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8812 using UDP if requested. Don't try to disable Nagle on UDP
8813 sockets.
8814 * remote.c (remote_serial_open): New function. Warn about UDP.
8815 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8816
8817 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8818
8819 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8820
8821 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8822
8823 * configure.tgt: Remove sh-hms target.
8824 * MAINTAINERS: Don't list sh-hms as a separate target.
8825
8826 2002-05-13 Jim Blandy <jimb@redhat.com>
8827
8828 Add first preprocessor macro-expansion files.
8829 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8830 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8831 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8832 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8833 (COMMON_OBS): Add macrotab.o, macroexp.o.
8834 (macroexp.o, macrotab.o): New rules.
8835
8836 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8837
8838 * config/m88k/tm-m88k.h: Update copyright.
8839 (m88k_target_write_pc): Declare
8840 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8841 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8842 (SHIFT_INST_REGS): Update definition.
8843 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8844 using old definition of TARGET_WRITE_PC.
8845 * regcache.c (generic_target_write_pc): Delete code handling
8846 NNPC_REGNUM.
8847 * gdbarch.sh (NNPC_REGNUM): Delete.
8848 * gdbarch.h, gdbarch.c: Regenerate.
8849
8850 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8851
8852 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8853 builtin reg number.
8854
8855 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8858 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8859 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8860 access macros.
8861 * c-typeprint.c (cp_type_print_method_args): Likewise.
8862 (c_type_print_args): Likewise.
8863 * d10v-tdep.c (d10v_push_arguments): Likewise.
8864 (d10v_extract_return_value): Likewise.
8865 * expprint.c (print_subexp): Likewise.
8866 * gdbtypes.c (lookup_primitive_typename): Likewise.
8867 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8868 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8869 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8870 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8871 (TYPE_VECTOR): Likewise.
8872 * hpread.c (hpread_read_struct_type)
8873 (fix_static_member_physnames, fixup_class_method_type)
8874 (hpread_type_lookup): Likewise.
8875 * mdebugread.c (parse_symbol, parse_type): Likewise.
8876 * p-lang.c (is_pascal_string_type): Likewise.
8877 * valops.c (hand_function_call): Likewise.
8878 * x86-64-tdep.c (classify_argument): Likewise.
8879
8880 * hpread.c (hpread_read_function_type)
8881 (hpread_read_doc_function_type): Call replace_type.
8882 * dstread.c (create_new_type): Delete.
8883 (decode_dst_structure, process_dst_function): Call alloc_type.
8884 Use type access macros.
8885
8886 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8887
8888 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8889 the're not supported by the current architecture.
8890 (i387_fill_fxsave): Likewise.
8891
8892 2002-05-12 Fred Fish <fnf@redhat.com>
8893
8894 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8895 sect_index_xxx members to index the first slot in section_offsets
8896 if all of the section_offsets are zero.
8897
8898 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8899
8900 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8901 checked in with last change.
8902
8903 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8904
8905 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8906 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8907 config.sub.
8908
8909 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8910
8911 * Makefile.in: Update dependencies.
8912
8913 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8914
8915 * language.c (local_hex_string_custom): Simplify. Do not depend
8916 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8917
8918 * memattr.c (mem_info_command): Replace calls to
8919 longest_local_hex_string and longest_local_hex_string_custom.
8920 * buildsym.c (make_blockvector): Ditto.
8921 * solib.c (info_sharedlibrary_command): Ditto.
8922 * tracepoint.c (tracepoints_info): Ditto.
8923 * symtab.c (print_msymbol_info): Ditto.
8924
8925 * language.c (local_hex_string): Delete.
8926 (local_hex_string_custom): Delete.
8927 (longest_local_hex_string): Rename to local_hex_string.
8928 (longest_local_hex_string_custom): Rename to
8929 local_hex_string_custom.
8930 * language.h (local_hex_string): Change parameter type to LONGEST.
8931 (local_hex_string_custom): Ditto.
8932 (longest_local_hex_string): Delete declaration.
8933 (longest_local_hex_string_custom): Ditto.
8934
8935 * solib.c: Update copyright.
8936 * memattr.c: Update copyright.
8937
8938 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8939
8940 * arch-utils.h (legacy_register_to_value): Declare.
8941 (legacy_value_to_register): Declare.
8942 (legacy_convert_register_p): Declare.
8943 * arch-utils.c (legacy_register_to_value): New function.
8944 (legacy_value_to_register): New function.
8945 (legacy_convert_register_p): New function.
8946
8947 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8948 (VALUE_TO_REGISTER): Define.
8949 (CONVERT_REGISTER_P): Define.
8950 * gdbarch.h, gdbarch.c: Regenerate.
8951
8952 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8953 VALUE_TO_REGISTER.
8954 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8955 CONVERT_REGISTER_P.
8956
8957 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8958 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8959
8960 * Makefile.in: Update dependencies for valops.c.
8961 * valops.c: Include "gdb_assert.h".
8962 (typecmp): Skip THIS parameter to methods.
8963 (find_method_list): Remove static_memfuncp argument,
8964 update callers. Check for stub methods.
8965 (find_value_oload_method_list): Don't set *static_memfuncp.
8966 (find_overload_match): Don't check for stub methods. Assert
8967 that methods are not stubbed. Handle static methods.
8968 (value_find_oload_method_list): Remove static_memfuncp argument.
8969 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8970 to the argument list for static stub methods.
8971 * value.h (value_find_oload_method_list): Update prototype.
8972
8973 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8974
8975 * arch-utils.h (generic_register_size): Declare.
8976 (generic_register_raw_size, generic_register_virtual_size): Delete
8977 declarations.
8978 * arch-utils.c (generic_register_raw_size): Delete.
8979 (generic_register_size): New function.
8980 (generic_register_virtual_size): Delete.
8981
8982 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8983 default generic_register_size.
8984 * gdbarch.h, gdbarch.c: Re-generate.
8985
8986 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8987 register_virtual_size.
8988 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8989 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8990
8991 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8992
8993 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8994 * gdbarch.h, gdbarch.c: Regenerate.
8995 * gnu-v3-abi.c: Update copyright.
8996 (vtable_address_point_offset): Update.
8997 (gnuv3_rtti_type): Update.
8998 (gnuv3_baseclass_offset): Update.
8999 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9000 (init_fetch_link_map_offsets): Update.
9001 * remote.c (get_remote_state): Update.
9002
9003 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9004
9005 * TODO: Remove value_headof/value_from_vtable_info comment.
9006 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9007 * values.c (value_headof, value_from_vtable_info): Delete.
9008 * value.h (value_from_vtable_info): Delete prototype.
9009
9010 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9011
9012 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9013 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9014 $(gdb_regex_h).
9015 (gdb_assert_h): Define.
9016 (gdb_wait_h): Define.
9017 (gdb_regex_h): Define.
9018
9019 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9020
9021 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9022 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9023
9024 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9025
9026 * nbsd-tdep.c: Fix comment.
9027
9028 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9029
9030 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9031 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9032 (nbsd-tdep.o): New dependency list.
9033 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9034 nbsd-tdep.h.
9035 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9036 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9037 * nbsd-tdep.c: New file.
9038 * nbsd-tdep.h: New file.
9039 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9040 nbsd-tdep.h.
9041 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9042 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9043 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9044 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9045
9046 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9047
9048 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9049 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9050 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9051 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9052 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9053 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9054
9055 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9056
9057 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9058 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9059 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9060 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9061 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9062 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9063 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9064
9065 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9066
9067 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9068 fetch_elfcore_registers to...
9069 * i386nbsd-tdep.c: ...here.
9070 (i386nbsd_use_struct_convention): Rename to...
9071 (i386nbsd_aout_use_struct_convention): ...this.
9072 (i386nbsd_supply_reg): New function.
9073 (i386nbsd_fill_reg): New function.
9074 (fetch_core_registers): Use i386nbsd_supply_reg.
9075 (fetch_elfcore_registers): Likewise.
9076 (_initialize_i386nbsd_tdep): New function.
9077 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9078 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9079 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9080 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9081 (i386nbsd_aout_use_struct_convention): ...this.
9082
9083 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9084
9085 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9086 (store_inferior_registers): Use shnbsd_fill_reg.
9087 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9088 sh_nbsd_supply_register): Collapse into...
9089 (shnbsd_supply_reg): ...this.
9090 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9091 (shnbsd_fill_reg): ...this.
9092 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9093 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9094 (fetch_core_registers): Use shnbsd_supply_reg.
9095 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9096 (sh_nbsd_core_fns): Rename to...
9097 (shnbsd_core_fns): ...this.
9098 (sh_nbsd_elfcore_fns): Rename to...
9099 (shnbsd_elfcore_fns): ...this.
9100 (sh_nbsd_init_abi): Rename to...
9101 (shnbsd_init_abi): ...this.
9102 (_initialize_sh_nbsd_tdep): Rename to...
9103 (_initialize_shnbsd_tdep): ...this.
9104 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9105 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9106 sh_nbsd_fill_register): Remove prototypes.
9107 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9108
9109 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9110
9111 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9112 (i387-nat.o): Delete dependency list.
9113 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9114 (x86-64-linux-nat.o): Likewise.
9115 * i387-nat.c: Delete file, moving contents to...
9116 * i387-tdep.c: ...here.
9117 * i387-nat.h: Rename...
9118 * i387-tdep.h: ...to this.
9119 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9120 * i386-linux-nat.c: Likewise.
9121 * i386bsd-nat.c: Likewise.
9122 * i386gnu-nat.c: Likewise.
9123 * i386nbsd-nat.c: Likewise.
9124 * i386v4-nat.c: Likewise.
9125 * x86-64-linux-nat.c: Likewise.
9126 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9127 * config/i386/go32.mh (NATDEPFILES): Likewise.
9128 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9129 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9130 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9131 * config/i386/linux.mh (NATDEPFILES): Likewise.
9132 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9133 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9134 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9135 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9136
9137 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9138
9139 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9140 (alphanbsd-nat.o): Remove dependency list.
9141 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9142 * alphanbsd-nat.c: Delete. Contents moved to...
9143 * alphanbsd-tdep.c: ...here.
9144 (_initialize_alphanbsd_tdep): Register core functions.
9145 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9146
9147 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9148
9149 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9150 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9151 (alphanbsd-nat.o): Likewise.
9152 (alphabsd-tdep.o): New dependency list.
9153 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9154 (fill_gregset): Use alphabsd_fill_reg.
9155 (supply_fpregset): Use alphabsd_supply_fpreg.
9156 (fill_fpregset): Use alphabsd_fill_fpreg.
9157 (fetch_inferior_registers): Use struct reg and struct fpreg
9158 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9159 and alphabsd_supply_fpreg.
9160 (store_inferior_registers): Use struct reg and struct fpreg
9161 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9162 and alphabsd_fill_fpreg.
9163 * alphabsd-tdep.c: New file.
9164 * alphabsd-tdep.h: New file.
9165 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9166 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9167 alphabsd_supply_fpreg.
9168 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9169 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9170
9171 2002-05-11 Eric Christopher <echristo@redhat.com>
9172
9173 * mips-tdep.c (mips_double_register_type): Fix thinko.
9174 (mips_single_register_type): Ditto.
9175 * MAINTAINERS: Add self.
9176
9177 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9178
9179 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9180 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9181 right thing on architectures with different endianness and/or
9182 integer sizes.
9183
9184 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9185
9186 From Christian Limpach <chris@Pin.LU>
9187 * configure.in: Change sed expression which comments out
9188 NATDEPFILES to also comment out continuation lines.
9189 * configure: Regenerate.
9190
9191 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9192
9193 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9194 big patch.
9195
9196 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9197
9198 * sh-tdep.c: Include correct file.
9199
9200 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9201
9202 New support for sh64-elf (sh5) target.
9203
9204 * configure.tgt: For sh64-elf target, default to sh-elf.
9205
9206 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9207 (struct gdbarch_tdep): Add new fields for new registers and ABI
9208 info.
9209
9210 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9211 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9212 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9213 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9214 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9215 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9216 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9217 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9218 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9219 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9220 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9221 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9222 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9223 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9224 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9225 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9226 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9227 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9228 sign_extend, sh64_nofp_frame_init_saved_regs,
9229 sh64_init_extra_frame_info, sh64_get_saved_register,
9230 sh64_extract_struct_value_address, sh64_pop_frame,
9231 sh64_push_arguments, sh64_extract_return_value,
9232 sh64_store_return_value, sh64_show_media_regs,
9233 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9234 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9235 sh_sh64_register_virtual_type,
9236 sh_sh64_register_convert_to_virtual,
9237 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9238 sh64_register_read, sh64_pseudo_register_write,
9239 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9240 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9241 sh64_do_pseudo_register, sh_compact_do_registers_info,
9242 sh64_do_registers_info, sh_gdbarch_init): New functions.
9243
9244 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9245
9246 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9247
9248 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9249
9250 * linespec.c (decode_line_1): Check for a double quote after
9251 a filename correctly.
9252
9253 2002-05-10 Jim Blandy <jimb@redhat.com>
9254
9255 Properly track the size of the current objfile's .debug_line section.
9256 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9257 (DWARF_LINE_SIZE): New macro.
9258 (dwarf2_build_psymtabs_hard): Record the line section's size in
9259 the partial symbol table.
9260 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9261 symbol table.
9262
9263 2002-05-10 Petr Sorfa <petrs@caldera.com>
9264
9265 * ia64-tdep.c: Handle breakpoints on L instruction type
9266 in MLX instruction bundle by moving the breakpoint to
9267 the third slot (X instruction type) as L holds only data.
9268
9269 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9270
9271 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9272 (process_one_symbol): Complain about discarding local symbols
9273 due to a misplaced N_LBRAC entry.
9274
9275 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9276
9277 From Daniel Berlin <dan@cgsoftware.com>
9278 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9279 decrease the depth we are at, in the case of templates.
9280
9281 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9282
9283 * mips-tdep.c (mips_float_register_type): New function.
9284 (mips_double_register_type): New function.
9285 (mips_print_register): Use them.
9286 (do_fp_register_row): Likewise.
9287
9288 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * signals/signals.c (signals): Remove conditional compilation around
9291 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9292 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9293
9294 2002-05-09 Michael Snyder <msnyder@redhat.com>
9295
9296 * remote-rdp.c (remote_rdp_can_run): Remove.
9297
9298 2002-05-09 Tom Tromey <tromey@redhat.com>
9299
9300 * jv-valprint.c (java_val_print): Handle `char' as a special case
9301 of TYPE_CODE_INT.
9302
9303 2002-05-09 Michael Snyder <msnyder@redhat.com>
9304
9305 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9306 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9307 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9308 str r(0123),[sp,#nn].
9309 (arm_skip_prologue): Ditto. Also make disassembly
9310 order-independent by placing it in a loop.
9311
9312 2002-05-06 Michael Snyder <msnyder@redhat.com>
9313
9314 * stabsread.c (read_type): Add recognition for new attribute:
9315 "@V;" means that an array type is actually a vector.
9316 This is analogous to the vector flag that's been added to dwarf2.
9317
9318 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9319
9320 * i386-tdep.h (i386_abi): New enum.
9321 (struct gdbarch_tdep): Replace os_ident member with abi.
9322 (i386_gdbarch_register_os_abi): New prototype.
9323 * i386-tdep.c (i386_abi_names): New array.
9324 (process_note_abi_tag_sections): Removed.
9325 (process_note_sections): New function.
9326 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9327 (struct i386_abi_handler): New struct.
9328 (i386_abi_handler_list): New variable.
9329 (i386_gdbarch_register_os_abi): New function.
9330 (i386_gdbarch_init): Adapt for the changes given above.
9331
9332 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9333
9334 * gregset.h: Say "GNU/Linux".
9335
9336 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9337
9338 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9339 (build_gdbtypes): Build builtin_type_v2_float.
9340 (_initialize_gdbtypes): Register new builtin type.
9341
9342 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9343
9344 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9345 (clear_gdbarch_swap): New function.
9346 (initialize_non_multiarch): Call.
9347 (gdbarch_update_p): Before calling init(), swap out and clear the
9348 existing architecture.
9349 * gdbarch.c: Regenerate.
9350
9351 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9352
9353 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9354 alphanbsd-tdep.c.
9355
9356 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9357
9358 * sh-nbsd-nat.c: Rename to...
9359 * shnbsd-nat.c: ...this.
9360 * sh-nbsd-tdep.c: Rename to...
9361 * shnbsd-tdep.c: ...this.
9362 * sh-nbsd-tdep.h: Rename to...
9363 * shnbsd-tdep.h: ...this.
9364 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9365 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9366
9367 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9368
9369 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9370 concatenation for command help messages.
9371
9372 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9373
9374 * NEWS: Note new sh*-*-netbsdelf* configuration.
9375 * configure.host: Set gdb_host_cpu to sh for all sh*.
9376 (sh*-*-netbsdelf*): New host.
9377 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9378 (sh*-*-netbsdelf*): New target.
9379 * sh-nbsd-nat.c: New file.
9380 * sh-nbsd-tdep.c: New file.
9381 * sh-nbsd-tdep.h: New file.
9382 * config/sh/nbsd.mh: New file.
9383 * config/sh/nbsd.mt: New file.
9384 * config/sh/nm-nbsd.h: New file.
9385 * config/sh/tm-nbsd.h: New file.
9386
9387 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9388
9389 * sh-tdep.c (sh_osabi_names): Declare.
9390 (process_note_abi_tag_sections): New function.
9391 (get_elfosabi): Ditto.
9392 (sh_gdbarch_register_os_abi): Ditto.
9393 (sh_dump_tdep): Ditto.
9394 _initialize_sh_tdep): Use gdbarch_register to register
9395 sh_gdbarch_init and sh_dump_tdep.
9396 * config/sh/tm-sh.h (sh_osabi): Declare.
9397 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9398
9399 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9400
9401 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9402 (thumb_scan_prologue): Ditto.
9403 (arm_find_callers_reg): Ditto.
9404 (arm_frame_chain): Ditto.
9405 (arm_init_extra_frame_info): Ditto.
9406 (arm_frame_saved_pc): Ditto.
9407 (arm_pop_frame): Ditto.
9408 (arm_push_return_address): New function.
9409 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9410 call_dummy_location, call_dummy_breakpoint_offset_p,
9411 call_dummy_breakpoint_offset, call_dummy_p,
9412 call_dummy_stack_adjust_p, call_dummy_words,
9413 sizeof_call_dummy_words, call_dummy_start_offset,
9414 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9415 call_dummy_address, push_return_address and push_dummy_frame for
9416 generic dummy frames.
9417
9418 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9419
9420 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9421 size computation for alloca.
9422 (sh_fp_frame_init_saved_regs): Likewise.
9423
9424 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9425
9426 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9427 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9428 * arm-tdep.c (arm_store_return_value): Use them.
9429 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9430 * remote-rdp.c (remote_rdp_fetch_register): Use
9431 ARM_MAX_REGISTER_RAW_SIZE.
9432 (remote_rdp_store_register): Likewise.
9433
9434 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9435
9436 * dwarf2cfi.c: Code cleanup, removed unused variables,
9437 added default labels to switch {} statements.
9438 * x86-64-tdep.c: Ditto.
9439 * x86-64-linux-nat.c: Ditto.
9440
9441 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9442
9443 * solib.h: Protect against multiple inclusion.
9444
9445 2002-05-06 Jim Blandy <jimb@redhat.com>
9446
9447 Add first preprocessor macro-expansion files.
9448 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9449 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9450 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9451 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9452 (COMMON_OBS): Add macrotab.o, macroexp.o.
9453 (macroexp.o, macrotab.o): New rules.
9454
9455 Separate the job of reading the line number info statement program
9456 header (...expialidocious) out into its own function.
9457 * dwarf2read.c (struct line_head, struct filenames, struct
9458 directories): Replace with...
9459 (struct line_header): New structure, containing the full
9460 contents of the statement program header, including the
9461 include directory and file name tables.
9462 (read_file_scope): If we have line number info, instead of just
9463 calling dwarf_decode_lines to do all the work, call
9464 dwarf_decode_line_header first to get a `struct line_header'
9465 containing the data in the statement program header, and then
9466 pass that to dwarf_decode_lines, which will pick up where that
9467 left off. Be sure to clean up the `struct line_header' object.
9468 (dwarf_decode_line_header, free_line_header, add_include_dir,
9469 add_file_name): New functions.
9470 (dwarf_decode_lines): Move all the code to read the statement
9471 program header into dwarf_decode_line_header. Take the line
9472 header it built as the first argument, instead of the offset to
9473 the compilation unit's line number info. Use the new `struct
9474 line_header' type instead of the old structures. No need to do
9475 cleanups here now, since we don't allocate anything.
9476 (dwarf2_statement_list_fits_in_line_number_section,
9477 dwarf2_line_header_too_long): New complaints.
9478
9479 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9480
9481 * gdbtypes.c (init_vector_type): New function.
9482 (build_builtin_type_vec128): Simplify the representation of SIMD
9483 registers.
9484 (build_gdbtypes): Initialize new builtin vector types.
9485 (_initialize_gdbtypes): Register new vector types with gdbarch.
9486 (builtin_type_v4_float, builtin_type_v4_int32,
9487 builtin_type_v8_int16, builtin_type_v16_int8,
9488 builtin_type_v2_int32, builtin_type_v4_int16,
9489 builtin_type_v8_int8): New (renamed) SIMD types.
9490
9491 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9492
9493 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9494 (i387_fill_fxsave): Likewise.
9495
9496 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9497
9498 * alpha-tdep.c (alpha_extract_return_value): Don't use
9499 non-constant array size in prototype.
9500
9501 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9502
9503 From Brian Taylor <briant at model dot com>:
9504 * ui-out.c (ui_out_field_core_addr): Use the function
9505 longest_local_hex_string_custom'to format addresses > 32 bits
9506 wide.
9507
9508 * ui-out.c (ui_out_field_core_addr): Update comment.
9509
9510 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9511
9512 * stack.c (select_and_print_frame): Make static. Delete the
9513 parameter `level'.
9514 (func_command): Update call.
9515 (select_frame_command): Delete code computing the frame level.
9516 * frame.h (select_and_print_frame): Delete declaration.
9517
9518 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9519
9520 * sparc-tdep.c (sparc_get_saved_register): Comment why
9521 get_prev_frame call is safe.
9522
9523 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9524
9525 * frame.h (select_frame): Delete level parameter.
9526 * stack.c (select_frame): Update. Use frame_relative_level to
9527 obtain the frame's level.
9528 (select_and_print_frame): Update call.
9529 (select_frame_command): Ditto.
9530 (up_silently_base): Ditto.
9531 (down_silently_base): Ditto.
9532 * ocd.c (ocd_start_remote): Ditto.
9533 * remote-rdp.c (remote_rdp_open): Ditto.
9534 * remote-mips.c (mips_initialize): Ditto.
9535 (common_open): Ditto.
9536 * remote-e7000.c (e7000_start_remote): Ditto.
9537 * m3-nat.c (select_thread): Ditto.
9538 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9539 (child_get_current_exception_event): Ditto.
9540 * varobj.c (varobj_create): Ditto.
9541 (varobj_update): Ditto.
9542 (c_value_of_root): Ditto.
9543 * tracepoint.c (finish_tfind_command): Ditto.
9544 * corelow.c (core_open): Ditto.
9545 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9546 * thread.c (info_threads_command): Ditto.
9547 (switch_to_thread): Ditto.
9548 * infrun.c (normal_stop): Ditto.
9549 (restore_selected_frame): Ditto.
9550 (restore_inferior_status): Ditto.
9551 * breakpoint.c (insert_breakpoints): Ditto.
9552 (watchpoint_check): Ditto.
9553 (bpstat_stop_status): Ditto.
9554 (do_enable_breakpoint): Ditto.
9555 * blockframe.c (flush_cached_frames): Ditto.
9556 (reinit_frame_cache): Ditto.
9557
9558 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9559
9560 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9561 maintainer.
9562
9563 2002-05-04 Jim Blandy <jimb@redhat.com>
9564
9565 * gdbtypes.c (replace_type): Doc fix.
9566
9567 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9568
9569 * valprint.c (strcat_longest): Delete commented out function.
9570 Update copyright.
9571
9572 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9573
9574 * MAINTAINERS: Mark a29k as deleted.
9575 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9576 Move new configurations to the top.
9577 * configure.tgt: Remove a29k.
9578 * config/a29k/tm-vx29k.h: Delete.
9579 * config/a29k/vx29k.mt: Delete.
9580 * config/a29k/tm-a29k.h: Delete.
9581 * config/a29k/a29k-udi.mt: Delete.
9582 * config/a29k/a29k.mt: Delete.
9583 * a29k-tdep.c: Delete.
9584 * remote-udi.c: Delete.
9585 * remote-mm.c: Delete.
9586 * remote-eb.c: Delete.
9587 * remote-adapt.c: Delete.
9588 * Makefile.in: Remove obsolete code.
9589 * config/s390/s390x.mt: Ditto.
9590 * config/s390/s390.mt: Ditto.
9591 * config/sparc/sparclynx.mh: Ditto.
9592 * config/sparc/linux.mh: Ditto.
9593 * config/pa/hppaosf.mh: Ditto.
9594 * config/pa/hppabsd.mh: Ditto.
9595 * config/ns32k/nbsd.mt: Ditto.
9596 * config/mips/vr5000.mt: Ditto.
9597 * config/m68k/sun3os4.mh: Ditto.
9598 * config/m68k/nbsd.mt: Ditto.
9599 * config/m68k/m68klynx.mh: Ditto.
9600 * config/m32r/m32r.mt: Ditto.
9601 * config/i386/x86-64linux.mt: Ditto.
9602 * config/i386/nbsdelf.mt: Ditto.
9603 * config/i386/nbsd.mt: Ditto.
9604 * config/i386/i386lynx.mh: Ditto.
9605
9606 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9607
9608 * target.c (debug_print_register): New function. Handle oversize
9609 registers.
9610 (debug_to_fetch_registers): Call.
9611 (debug_to_store_registers): Call.
9612
9613 2002-05-03 Jim Blandy <jimb@redhat.com>
9614
9615 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9616 (read_type): Doc fix.
9617 * gdbtypes.c (replace_type): Doc fix.
9618
9619 * stabsread.c (multiply_defined_struct): New complaint.
9620 (read_struct_type): If the type we were passed isn't empty, or
9621 incomplete, don't read the new struct type into it; complain,
9622 and return the original type unchanged. Take a new `type_code'
9623 argument, which is the type code for the new type.
9624 (read_type): Rather than storing the type's type code here, pass
9625 it as an argument to read_struct_type, and let that take care of
9626 storing it. That way, we don't overwrite the original type code,
9627 so read_struct_type can use it to decide whether we're overwriting
9628 something we shouldn't.
9629 (complain_about_struct_wipeout): New function.
9630
9631 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9632
9633 * gdbarch.sh: Assert that gdbarch is non-NULL.
9634 * gdbarch.c: Regenerate.
9635
9636 2002-05-03 Jason Merrill <jason@redhat.com>
9637
9638 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9639 and return NULL.
9640
9641 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9642
9643 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9644 (x86_64_dwarf2gdb_regno_map_length),
9645 (x86_64_dwarf2_reg_to_regnum): Added.
9646 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9647 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9648 (_initialize_x86_64_tdep): Synced with the change above.
9649 (x86_64_skip_prologue): Reformulated message.
9650
9651 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9652
9653 * f-exp.y: Also use new prev_lexptr variable
9654 to improve error reporting. Based on Michael Snyder
9655 2002-04-24 dated patch to c-exp.y.
9656 * jv-exp.y: Likewise.
9657 * m2-exp.y: Likewise.
9658
9659 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9660
9661 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9662 we are dealing with vectors.
9663
9664 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9665
9666 * config/m68k/tm-nbsd.h: Obvious fix,
9667 correct machine name.
9668
9669 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9670
9671 * p-typeprint.c (pascal_type_print_base): Add support
9672 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9673
9674 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9675
9676 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9677 for fondamental pascal 'char' type.
9678
9679 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9680
9681 * p-lang.h (is_pascal_string_type): Declaration changed,
9682 new sixth argument of type char ** added.
9683 * p-lang.c (is_pascal_string_type): Implementation
9684 changed. Args length_pos, length_size, string_pos, char_size
9685 can now be NULL. New argument arrayname set to the field
9686 name of the char array. Return value set to char array
9687 field index plus one.
9688 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9689 is_pascal_string_type function.
9690
9691 2002-05-02 Andrew Cagney <cagney@redhat.com>
9692
9693 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9694 <cagney@redhat.com> change.
9695 * gdbarch.c: Regenerate.
9696
9697 2002-05-02 Andrew Cagney <cagney@redhat.com>
9698
9699 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9700 before probing for a new one. Detect errorenous gdbarch_init
9701 functions.
9702 * gdbarch.c: Regenerate.
9703
9704 2002-05-01 Andrew Cagney <cagney@redhat.com>
9705
9706 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9707 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9708 * config/v850/tm-v850.h: Ditto. Update copyright.
9709
9710 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9711
9712 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9713 current_gdbarch.
9714
9715 2002-04-30 Michael Snyder <msnyder@redhat.com>
9716
9717 * arm-tdep.c: Whitespace clean-ups.
9718 (arm_skip_prologue): Fix thinko; two lines
9719 should have been removed as part of 4/24 change.
9720
9721 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9722
9723 * rs6000-tdep.c: Added comment describing how fpscr register
9724 numbers were chosen.
9725
9726 2002-04-30 Michael Snyder <msnyder@redhat.com>
9727
9728 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9729
9730 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9731
9732 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9733 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9734 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9735
9736 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9737
9738 From Louis Hamilton <hamilton@redhat.com>:
9739 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9740 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9741 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9742 not bfd-private xcoff data, to determine wordsize.
9743 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9744
9745 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9746
9747 GDB 5.2 released from 5.2 branch.
9748
9749 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9750
9751 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9752 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9753 (x86_64_register_info_table): Added comments with register numbers.
9754
9755 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9756
9757 * rs6000-tdep.c (rs6000_extract_return_value,
9758 rs6000_store_return_value): Handle returning vectors.
9759 (rs6000_gdbarch_init): Use
9760 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9761 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9762 New function.
9763 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9764 vectors.
9765 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9766 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9767
9768 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9769
9770 * hpread.c (hpread_psymtab_to_symtab_1,
9771 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9772 with fprintf_unfiltered (gdb_stderr,...).
9773
9774 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9775
9776 * remote-array.c (printf_monitor, write_monitor,
9777 array_insert_breakpoint, array_remove_breakpoint ):
9778 Replace fprintf (stderr,...
9779 with fprintf_unfiltered (gdb_stderr,....
9780 * remote-es.c: Likewise.
9781 * remote-os9k.c: Likewise.
9782 * remote-st.c: Likewise.
9783
9784 2002-04-28 Andreas Schwab <schwab@suse.de>
9785
9786 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9787 linux-proc.o and gcore.o.
9788
9789 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9790
9791 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9792 code without frame pointers.
9793
9794 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9795
9796 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9797 ON_STACK is needed.
9798
9799 2002-04-26 Ben Elliston <bje@redhat.com>
9800
9801 * target.c (do_xfer_memory): Correct reference to the new option
9802 "trust-readonly-sections".
9803
9804 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9805
9806 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9807 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9808 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9809 vectors.
9810 (read_array_type): Record the fact that this array type is really a
9811 vector (i.e. are passed in by value).
9812
9813 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9814
9815 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9816 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9817 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9818 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9819 * alpha-linux-tdep.c: Include frame.h.
9820 (alpha_linux_sigcontext_addr): New function.
9821 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9822 alpha_linux_sigcontext_addr.
9823 * alpha-osf1-tdep.c: Include gdbcore.h.
9824 (alpha_osf1_sigcontext_addr): New function.
9825 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9826 alpha_osf1_sigcontext_addr.
9827 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9828 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9829
9830 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9831
9832 * stack.c (selected_frame_level):
9833 (select_frame): Do not set selected_frame_level.
9834 * frame.h (selected_frame_level): Delete declaration.
9835
9836 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9837
9838 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9839 convert_from_func_ptr-addr when AIX / PowerOpen.
9840
9841 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9842
9843 * valops.c (hand_function_call): Call
9844 generic_save_call_dummy_addr.
9845 * frame.h (generic_save_call_dummy_addr): Declare.
9846 * blockframe.c (struct dummy_frame): Add fields call_lo and
9847 call_hi.
9848 (generic_find_dummy_frame): Check for PC in range call_lo to
9849 call_hi instead of entry_point_address.
9850 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9851 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9852 (generic_save_call_dummy_addr): New function.
9853
9854 2002-04-24 David S. Miller <davem@redhat.com>
9855
9856 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9857 sparc_skip_prologue.
9858 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9859 information to find prologue when possible.
9860 (sparc_prologue_frameless_p): Call examine_prologue directly.
9861 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9862 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9863 second argument.
9864 (SKIP_PROLOGUE): Likewise.
9865
9866 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9867
9868 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9869 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9870 indicate that the condition it was testing is always true.
9871 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9872 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9873 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9874
9875 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9876
9877 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9878 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9879 tdep->jb_pc and tdep->jb_elt_size.
9880 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9881 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9882 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9883 * alpha-nat.c (get_longjmp_target): Remove.
9884 (JB_ELEMENT_SIZE): Ditto.
9885 (JB_PC): Ditto.
9886 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9887 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9888 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9889 to alpha_get_longjmp_target.
9890 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9891 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9892 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9893
9894 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9895
9896 * README: Update to GDB 5.2.
9897
9898 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9899
9900 * gdbarch.sh (LC_ALL): Set to `c'.
9901
9902 2002-04-25 Theodore A. Roth <troth@verinet.com>
9903
9904 * avr-tdep.c: Ran through gdb_indent.sh.
9905
9906 2002-04-25 Theodore A. Roth <troth@verinet.com>
9907
9908 * MAINTAINERS: Add myself as AVR maintainer.
9909 * NEWS: Note new target avr.
9910
9911 2002-04-25 Theodore A. Roth <troth@verinet.com>
9912
9913 * Makefile.in: Add support for AVR target.
9914 * configure.tgt: Add support for AVR target.
9915 * avr-tdep.c: New file
9916 * config/avr/avr.mt: New file.
9917
9918 2002-04-25 Theodore A. Roth <troth@verinet.com>
9919
9920 * MAINTAINERS: Add myself to write-after-approval.
9921
9922 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9923
9924 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9925 with fprintf_unfiltered (gdb_stderr,....
9926
9927 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9928
9929 Fix PR gdb/508.
9930 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9931
9932 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9933
9934 * p-exp.y: Also use new prev_lexptr variable
9935 to improve error reporting. Based on Michael Snyder
9936 2002-04-24 dated patch to c-exp.y.
9937
9938 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9939
9940 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9941 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9942 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9943 to 0.
9944 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9945 and struct value.
9946 (FUNCTION_START_OFFSET): Remove.
9947 (BREAKPOINT): Ditto.
9948
9949 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9950
9951 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9952 * NEWS: Ditto.
9953
9954 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9955
9956 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9957 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9958 alpha_linux_pc_in_sigtramp.
9959 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9960 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9961 alpha_osf1_pc_in_sigtramp.
9962 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9963 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9964 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9965 alphafbsd_pc_in_sigtramp.
9966 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9967 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9968 alphanbsd_pc_in_sigtramp.
9969 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9970 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9971
9972 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9973
9974 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9975
9976 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9977
9978 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9979 alphanbsd-tdep.c.
9980 (alphanbsd-nat.o): New dependency list.
9981 (alphanbsd-tdep.o): Ditto.
9982 * NEWS: Note new native NetBSD/alpha configuration.
9983 * alphanbsd-nat.c: New file.
9984 * alphanbsd-tdep.c: Ditto.
9985 * configure.host (alpha*-*-netbsd*): New host.
9986 * configure.tgt (alpha*-*-netbsd*): New target.
9987 * config/alpha/nbsd.mh: New file.
9988 * config/alpha/nbsd.mt: Ditto.
9989 * config/alpha/nm-nbsd.h: Ditto.
9990 * config/alpha/tm-nbsd.h: Ditto.
9991
9992 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9993
9994 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9995 (alpha-osf1-tdep.o): New dependency list.
9996 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9997 and skip_sigtramp_frame members.
9998 * alpha-linux-tdep.c: Include gdbcore.h.
9999 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10000 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10001 * alpha-osf1-tdep.c: New file.
10002 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10003 alpha-osf1-dep.c.
10004 (alpha_frame_past_sigtramp_frame): New function.
10005 (alpha_dynamic_sigtramp_offset): Ditto.
10006 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10007 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10008 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10009 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10010 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10011 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10012 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10013 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10014 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10015 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10016 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10017 to find_solib_trampoline_target.
10018 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10019 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10020 (SKIP_TRAMPOLINE_CODE): Remove.
10021 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10022 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10023 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10024 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10025 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10026 (PROC_SIGTRAMP_MAGIC): Ditto.
10027 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10028 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10029 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10030 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10031 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10032
10033 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10034
10035 * NEWS: Note that Alpha targets are now multi-arch.
10036
10037 2002-04-24 Michael Snyder <msnyder@redhat.com>
10038
10039 * parser-defs.h (prev_lexptr): New external variable.
10040 * parse.c (parse_exp_1): Set prev_lexptr to null before
10041 calling the language-specific parser.
10042 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10043 (yyerror): Use prev_lexptr in error reporting.
10044
10045 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10046
10047 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10048 * gregset.h: If FILL_FPXREGSET is defined, provide
10049 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10050 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10051 is defined, call fill_fpxregset.
10052
10053 2002-04-24 Roland McGrath <roland@frob.com>
10054
10055 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10056 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10057 (supply_gregset, supply_fpregset): New functions.
10058
10059 * gnu-nat.c (gnu_find_memory_regions): New function.
10060 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10061 (gnu_xfer_memory): Add a cast.
10062
10063 2002-04-24 Michael Snyder <msnyder@redhat.com>
10064
10065 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10066 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10067 of argument regs ("str r(0123), [r11, #-nn"]).
10068 (arm_skip_prologue): Better handling for frameless functions.
10069 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10070 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10071
10072 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10073
10074 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10075 NUM_PSEUDO_REGS can be used.
10076
10077 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10078
10079 * arch-utils.h: Update copyright.
10080
10081 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10082 * gdbarch.h, gdbarch.c: Re-generate.
10083
10084 * inferior.h (IN_SIGTRAMP): Delete definition.
10085 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10086 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10087
10088 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10089 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10090 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10091 (find_proc_framesize): Ditto.
10092 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10093 (alpha_init_extra_frame_info): Ditto.
10094 * infrun.c (handle_inferior_event): Ditto.
10095 (handle_inferior_event): Ditto.
10096 (check_sigtramp2): Ditto.
10097 * blockframe.c (create_new_frame): Ditto.
10098 (get_prev_frame): Ditto.
10099 * ppc-linux-tdep.c: Update comments.
10100 * i386-linux-tdep.c: Update comments.
10101 * breakpoint.c (bpstat_what): Update comment.
10102
10103 2002-04-24 David S. Miller <davem@redhat.com>
10104
10105 * i960-tdep.c (register_in_window_p): New function.
10106 (i960_find_saved_register): Use it instead of
10107 REGISTER_IN_WINDOW_P.
10108 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10109
10110 * symtab.h (find_stab_function_addr): Kill extern.
10111 * minsyms.c (find_stab_function_addr): Remove from here...
10112 * dbxread.c: ... to here, and mark it static.
10113
10114 2002-04-20 David S. Miller <davem@redhat.com>
10115
10116 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10117 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10118
10119 2002-04-21 David S. Miller <davem@redhat.com>
10120
10121 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10122 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10123 (vx_write_register): Likewise.
10124
10125 2002-04-23 J. Brobecker <brobecker@gnat.com>
10126
10127 * source.c (is_regular_file): New function.
10128 (openp): Check wether file to open is a regular file
10129 to avoid opening directories.
10130
10131 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10132
10133 * findvar.c (extract_signed_integer): Cast printf argument
10134 to suppress format warning.
10135 (extract_unsigned_integer): Likewise.
10136 * infcmd.c (registers_info): Likewise.
10137 * top.c (get_prompt_1): Likewise.
10138 * valops.c (value_assign): Likewise.
10139 * valprint.c (print_decimal): Likewise.
10140
10141 2002-04-22 H.J. Lu (hjl@gnu.org)
10142
10143 * c-exp.y (typebase): Support
10144
10145 [long|long long|short] [signed|unsigned] [int|]
10146
10147 and
10148
10149 signed [long|long long|short] int
10150
10151 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10152
10153 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10154 and vax-tdep.h.
10155 * vax-tdep.h: New file.
10156 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10157 Make several routines static.
10158 (vax_get_saved_register): New function.
10159 (vax_gdbarch_init): New function.
10160 (_initialize_vax_tdep): Register vax_gdbarch_init.
10161 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10162 Remove macros now under the control of gdbarch.
10163
10164 2002-04-22 Michael Snyder <msnyder@redhat.com>
10165
10166 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10167 Some whitespace and coding standards tweaks.
10168
10169 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10170
10171 * vax-tdep.c: Include regcache.h.
10172 (vax_call_dummy_words): New.
10173 (sizeof_vax_call_dummy_words): New.
10174 (vax_fix_call_dummy): New function.
10175 (vax_saved_pc_after_call): Ditto.
10176 * config/vax/tm-vax.h: Don't include regcache.h.
10177 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10178 (CALL_DUMMY): Remove.
10179 (CALL_DUMMY_WORDS): Define.
10180 (SIZEOF_CALL_DUMMY_WORDS): Define.
10181 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10182
10183 2002-04-18 Michael Snyder <msnyder@redhat.com>
10184
10185 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10186
10187 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10188
10189 * vax-tdep.c (vax_frame_chain): New function.
10190 (vax_push_dummy_frame): Ditto.
10191 (vax_pop_frame): Ditto.
10192 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10193 (FRAMELESS_FUNCTION_INVOCATION): Use
10194 generic_frameless_function_invocation_not.
10195 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10196 (POP_FRAME): Use vax_pop_frame.
10197
10198 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10199
10200 * vax-tdep.c (vax_store_struct_return): New function.
10201 (vax_extract_return_value): Ditto.
10202 (vax_store_return_value): Ditto.
10203 (vax_extract_struct_value_address): Ditto.
10204 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10205 vax_store_struct_return.
10206 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10207 (STORE_RETURN_VALUE): Use vax_store_return_value.
10208 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10209
10210 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10211
10212 * vax-tdep.c (vax_frame_saved_pc): New function.
10213 (vax_frame_args_address_correct): Ditto.
10214 (vax_frame_args_address): Ditto.
10215 (vax_frame_locals_address): Ditto.
10216 (vax_frame_num_args): Move code to be in proximity to
10217 other frame-related functions.
10218 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10219 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10220 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10221 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10222 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10223
10224 2002-04-22 H.J. Lu (hjl@gnu.org)
10225
10226 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10227 includedir.
10228
10229 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10230
10231 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10232 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10233 (FRAME_INIT_SAVED_REGS): New macro.
10234
10235 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10236
10237 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10238
10239 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10240
10241 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10242 where needed.
10243 (fetch_osf_core_registers): Likewise.
10244 (supply_gregset): Likewise.
10245
10246 2002-04-22 J. Brobecker <brobecker@gnat.com>
10247
10248 * symfile.h (get_section_index): Define.
10249 * symfile.c (get_section_index): New function.
10250 * mdebugread.c (SC_IS_SBSS): New macro.
10251 (SC_IS_BSS): Return true for the scBss storage class only, as
10252 the scSBss storage class refers to the .sbss section.
10253 (parse_partial_symbols): Discard the symbols which associated
10254 section does not exist.
10255 Make sure to use the .sbss section index for symbols which
10256 storage class is scBss, rather than using the .bss section index.
10257
10258 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10259
10260 * vax-tdep.c: Update copyright years.
10261 (vax_register_name): New function.
10262 (vax_register_byte): Ditto.
10263 (vax_register_raw_size): Ditto.
10264 (vax_register_virtual_size): Ditto.
10265 (vax_register_virtual_type): Ditto.
10266 * config/vax/tm-vax.h: Update copyright years.
10267 (REGISTER_NAMES): Remove.
10268 (REGISTER_NAME): Define.
10269 (REGISTER_BYTE): Use vax_register_byte.
10270 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10271 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10272 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10273
10274 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10275
10276 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10277 declaration
10278 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10279
10280 2002-04-21 David S. Miller <davem@redhat.com>
10281
10282 * arch-utils.c (generic_prologue_frameless_p): Kill
10283 SKIP_PROLOGUE_FRAMELESS_P code.
10284 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10285 references.
10286 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10287 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10288 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10289 references.
10290 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10291 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10292 (sparc_gdbarch_init): Pass it to
10293 set_gdbarch_prologue_frameless_p.
10294
10295 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10296
10297 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10298 (alphabsd-nat.o): New dependency list.
10299
10300 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10301
10302 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10303 alphafbsd-tdep.c.
10304 (alpha-linux-tdep.o): New dependency list.
10305 (alphafbsd-tdep.o): Likewise.
10306
10307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10308
10309 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10310 to here...
10311 * alpha-tdep.c: ...from here.
10312 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10313
10314 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10315
10316 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10317 prototype from here...
10318 * alpha-tdep.h: ...to here.
10319
10320 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10321
10322 * frame.h (selected_frame_level): Document as deprecated.
10323 (frame_relative_level): Declare.
10324 * stack.c (frame_relative_level): New function.
10325 (selected_frame_level): Document as deprecated.
10326 (select_frame): Do not set the selected_frame_level.
10327
10328 * stack.c (frame_info, record_selected_frame): Update.
10329 (frame_command, current_frame_command): Update.
10330 (up_silently_base, up_command, down_silently_base): Update.
10331 (down_command): Update.
10332 * inflow.c (kill_command): Update.
10333 * tracepoint.c (finish_tfind_command): Update.
10334 * corelow.c (core_open): Update.
10335 * thread.c (info_threads_command): Update.
10336 (do_captured_thread_select): Update.
10337 * infcmd.c (finish_command): Update.
10338 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10339
10340 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10341
10342 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10343
10344 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10345
10346 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10347 type const.
10348
10349 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10350
10351 * alphafbsd-tdep.c: Update copyright years. Include
10352 alpha-tdep.h.
10353 (alphafbsd_use_struct_convention): Make static.
10354 (alphafbsd_init_abi): New function.
10355 (_initialize_alphafbsd_tdep): New function.
10356 * config/alpha/tm-fbsd.h: Update copyright years.
10357 (USE_STRUCT_CONVENTION): Remove.
10358
10359 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10360
10361 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10362 an Alpha ABI variant.
10363 (alpha_abi_handler_list): Declare.
10364 (alpha_gdbarch_register_os_abi): New function.
10365 (alpha_gdbarch_init): Give registered ABI variant handlers a
10366 chance to tweak the gdbarch once we have set up defaults.
10367 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10368
10369 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10370
10371 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10372 to standard_coerce_float_to_double.
10373 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10374
10375 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10376
10377 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10378 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10379 from gdbarch_tdep rather than a constant.
10380 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10381 the default text address for all Alpha Unix ABIs.
10382 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10383 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10384
10385 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10386
10387 * alpha-tdep.h: New file. Includes several Alpha target constants
10388 taken from...
10389 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10390 let gdbarch deal with.
10391 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10392 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10393 to dependency list.
10394 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10395 Alpha target register names.
10396 * alphabsd-nat.c: Likewise.
10397 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10398 Alpha target register names. Make serveral routines static.
10399 (alpha_get_saved_register): New function.
10400 (alpha_abi_names): New.
10401 (process_note_abi_tag_sections): New function.
10402 (get_elfosabi): New function.
10403 (alpha_gdbarch_init): New function.
10404 (alpha_dump_tdep): New function.
10405 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10406
10407 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10408
10409 * frame.c (find_saved_register): Delete #ifdef
10410 HAVE_REGISTER_WINDOWS code.
10411 * config/sparc/tm-sparc.h: Update comments.
10412 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10413
10414 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10415
10416 * i960-tdep.c (i960_find_saved_register): New function.
10417 (i960_get_saved_register): New function.
10418 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10419 (i960_get_saved_register): Declare.
10420 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10421
10422 2002-04-20 David S. Miller <davem@redhat.com>
10423
10424 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10425
10426 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10427
10428 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10429 instead of NUM_PSEUDO_REGS.
10430
10431 2002-04-20 David S. Miller <davem@redhat.com>
10432
10433 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10434 GDB_MULTI_ARCH_PARTIAL
10435 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10436 define, let tm-sp64.h do it.
10437
10438 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10439
10440 * frame.c (find_saved_register): Avoid a NULL pointer
10441 dereference and actually walk the frame list.
10442
10443 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10444
10445 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10446 sorted in most most-recent-used order. Document.
10447 * gdbarch.h, gdbarch.c: Regenerate.
10448
10449 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10450
10451 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10452 instead of ->prev.
10453 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10454 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10455 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10456 instead of ->prev.
10457
10458 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10459
10460 Fix PR gdb/471.
10461 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10462 (build_builtin_type_vec128): Ditto.
10463 (append_composite_type_field): Fix calculation of type length in
10464 union case.
10465
10466 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10467
10468 * config/djgpp/README: Update.
10469
10470 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10471 compiler warnings.
10472
10473 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10474
10475 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10476 (alpha_setup_arbitrary_frame): ...to this.
10477 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10478 for alpha_setup_arbitrary_frame.
10479
10480 2002-04-18 Andrew Cagney <cagney@redhat.com>
10481
10482 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10483 * gdbarch.h, gdbarch.c: Regenerate.
10484
10485 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10486 * target.h (memory_breakpoint_from_pc): Update declaration.
10487 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10488
10489 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10490 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10491 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10492 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10493 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10494 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10495 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10496 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10497 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10498 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10499 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10500 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10501
10502 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10503 const pointer.
10504 * monitor.c (monitor_insert_breakpoint): Ditto.
10505 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10506
10507 * config/mcore/tm-mcore.h: Update copyright.
10508 * mem-break.c: Ditto.
10509 * xstormy16-tdep.c: Ditto.
10510
10511 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10512
10513 * p-exp.y: Add precedence rule for '^' token.
10514 This removes the shift/reduce conflicts.
10515 Remove the comment concerning these shift/reduce conflicts.
10516
10517 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10518
10519 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10520 (registers_powerpc_nofp): New register set for processors
10521 without floating point unit.
10522
10523 2002-04-18 David S. Miller <davem@redhat.com>
10524
10525 * MAINTAINERS: Add myself to write-after-approval.
10526
10527 2002-04-17 Michael Snyder <msnyder@redhat.com>
10528
10529 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10530
10531 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10532
10533 * rs6000-tdep.c (frame_initial_stack_address): Use
10534 frame_register_read to read the alloca_reg.
10535
10536 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10537
10538 * frame.c (find_saved_register): Find saved registers in the next
10539 not prev frame.
10540 Fix PR gdb/365.
10541
10542 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10543
10544 * gdbarch.sh (LANG): Set to ``c''.
10545
10546 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10547
10548 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10549
10550 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10551
10552 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10553 Update copyright.
10554
10555 * hpread.c (hpread_get_lntt): Add declaration.
10556 Also fix PR gdb/391.
10557
10558 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10559
10560 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10561 * aclocal.m4, configure: Re-generate.
10562 Fix PR gdb/391.
10563
10564 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10565
10566 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10567 instead of tm_print_insn.
10568
10569 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10570
10571 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10572
10573 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10574
10575 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10576 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10577 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10578
10579 2002-04-12 Don Howard <dhoward@redhat.com>
10580
10581 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10582 max_user_call_depth.
10583 (init_cmd_lists): Initialize the new value;
10584 * cli/cli-script.c (execute_user_command): Limit the call depth of
10585 user defined commands. This avoids a core-dump when user commands
10586 are infinitly recursive.
10587
10588 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10589
10590 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10591 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10592 from tdep struct instead of DEFAULT_LR_SAVE.
10593 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10594 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10595 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10596
10597 2002-04-12 Michael Snyder <msnyder@redhat.com>
10598
10599 * Remote.c: Spelling fix.
10600 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10601 If no symbol found for "sbrk", try "_sbrk".
10602 (make_output_phdrs): Use bfd_section_name.
10603 (gcore_copy_callback): Use bfd_section_name.
10604 * eval.c: Indentation fix-ups.
10605 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10606 in case it gets applied to an address that is already
10607 in the instruction space.
10608 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10609 * symfile.c: Fix indentation, long lines.
10610 * source.c: White space fix-up.
10611
10612 2002-04-12 Andrew Cagney <cagney@redhat.com>
10613
10614 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10615 * frame.c (frame_register_read): New function. Return non-zero on
10616 success.
10617 (read_relative_register_raw_bytes_for_frame): Delete.
10618 (read_relative_register_raw_bytes): Delete.
10619 * frame.h (frame_register_read): Declare.
10620 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10621 * sh-tdep.c: Ditto.
10622 * infcmd.c (do_registers_info): Ditto.
10623 * hppa-tdep.c: Ditto.
10624 * rs6000-tdep.c: Ditto.
10625 * h8500-tdep.c: Ditto.
10626 * mips-tdep.c: Ditto.
10627 * h8300-tdep.c: Ditto.
10628 * z8k-tdep.c: Ditto.
10629
10630 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10631
10632 From Jimi X <jimix@watson.ibm.com>:
10633 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10634 64-bit SysV ABI.
10635
10636 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10637
10638 From Jimi X <jimix@watson.ibm.com>:
10639 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10640 bfd info.
10641
10642 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10643
10644 From Jimi X <jimix@watson.ibm.com>:
10645 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10646 register sets for these processor variants.
10647
10648 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10649
10650 * regformats/reg-ppc.dat: Support FPSCR.
10651
10652 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10653
10654 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10655 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10656 Add fpscr as an invalid/unfetchable register.
10657 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10658 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10659 (fill_fpregset): Add support for register fpscr.
10660 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10661 (fill_gregset): Account for the fact that register ``mq'' might
10662 not exist.
10663 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10664 (registers_power): Add fpscr to register set at slot 71.
10665 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10666 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10667
10668 2002-04-11 Michael Snyder <msnyder@redhat.com>
10669
10670 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10671 * configure: Regenerate.
10672 * config.in: Regenerate.
10673 * acconfig.h: Add define for _SYSCALL32.
10674 * core-sol2.c: Remove #define _SYSCALL32.
10675 * solib-legacy.c: Remove #define _SYSCALL32.
10676
10677 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10678
10679 * stack.c (select_frame): Cleanup internal error message, do not
10680 use %p.
10681
10682 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10683
10684 * stack.c (select_frame): Check that selected_frame and the
10685 specified level are as expected.
10686 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10687 Update copyright.
10688 * frame.h (struct frame_info): Add field `level'. Update
10689 copyright.
10690 Work-in-progress PR gdb/464.
10691
10692 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10693
10694 * maint.c (maint_print_section_info): Rename print_section_info.
10695 (print_bfd_section_info, print_objfile_section_info): Update.
10696 * inferior.h (struct gdbarch): Add opaque declaration.
10697 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10698 * gdbarch.h: Regenerate.
10699
10700 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10701
10702 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10703 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10704 (kernel_u_size): Added.
10705 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10706 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10707
10708 2002-04-04 Jim Ingham <jingham@apple.com>
10709
10710 * valarith.c (find_size_for_pointer_math): New function, either returns
10711 the size for a pointer's target, returns 1 for void *, or errors for
10712 incomplete types.
10713 (value_add, value_sub): use find_size_for_pointer_math.
10714
10715 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10716
10717 * linux-low.c (linux_look_up_symbols): New hook.
10718 (linux_target_ops): Add linux_look_up_symbols.
10719 * remote-utils.c (decode_address): New function.
10720 (look_up_one_symbol): New function.
10721 * server.c (handle_query): Call target look_up_symbols hook.
10722 * server.h (look_up_one_symbol): Add prototype.
10723 * target.h (struct target_ops): Add look_up_symbols hook.
10724
10725 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10726
10727 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10728 override FP_REGNUM with frame->fp. Update copyright.
10729 * parse.c (num_std_regs, std_regs): Delete.
10730 (target_map_name_to_register): Do not search std_regs. Update
10731 function description.
10732 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10733 declarations. Update copyright.
10734 Fix PR gdb/251.
10735
10736 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10737
10738 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10739 after the last symbol in a block.
10740
10741 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10742
10743 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10744 is non zero as a found symbol.
10745
10746 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10747
10748 * findvar.c: Include "builtin-regs.h".
10749 (value_of_register): Call value_of_builtin_reg when applicable.
10750 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10751 (target_map_name_to_register): Call
10752 builtin_reg_map_name_to_regnum.
10753 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10754 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10755 (builtin_regs_h): Define.
10756 (builtin-regs.o): New target.
10757 (findvar.o): Add $(builtin_regs_h).
10758 * builtin-regs.c, builtin-regs.h: New files.
10759 * std-regs.c: New file.
10760 Partial fix for PR gdb/251.
10761
10762 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10763
10764 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10765 it's no longer required.
10766
10767 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10768
10769 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10770
10771 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10772
10773 From Jimi X <jimix@watson.ibm.com>:
10774 * rs6000-tdep.c (rs6000_software_single_step): Use
10775 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10776 and size. Use target_insert_breakpoint() and
10777 target_remove_breakpoint() to insert and remove breakpoints
10778 instead of explicit memory reads and writes.
10779
10780 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10781
10782 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10783 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10784 ELF_OBJECT_FORMAT ifdef.
10785
10786 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10787
10788 From Jimi X <jimix@watson.ibm.com>:
10789 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10790
10791 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10792
10793 From Jimi X <jimix@watson.ibm.com>:
10794 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10795 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10796
10797 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10798
10799 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10800 s/asprintf/xasprintf/.
10801 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10802
10803 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10804
10805 I believe Jeff Law denies responsability for this one:
10806 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10807 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10808 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10809 Work-around for PR gdb/366.
10810
10811 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10812
10813 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10814 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10815 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10816
10817 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10818
10819 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10820 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10821 information.
10822
10823 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10824
10825 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10826 maintainer.
10827
10828 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10829
10830 * README (Reporting Bugs in GDB): Document the bug web page as the
10831 prefered way of submitting bugs.
10832 Fix PR gdb/402.
10833
10834 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10835
10836 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10837 -1. Update comment.
10838 * gdbarch.h, gdbarch.c: Re-generate.
10839
10840 2002-04-07 Andreas Schwab <schwab@suse.de>
10841
10842 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10843 buffer to regcache_collect.
10844
10845 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10846
10847 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10848 * gdbarch.c, gdbarch.h: Re-generate.
10849
10850 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10851
10852 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10853 declaration. Fix -Werror.
10854
10855 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10856
10857 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10858 * gdbarch.c: Regenerate.
10859
10860 2002-04-05 Michael Snyder <msnyder@redhat.com>
10861
10862 * breakpoint.c (clear_command): Rewrite middle section to
10863 combine two loops with identical control conditions.
10864 Add a cleanup to eliminate a memory leak.
10865 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10866
10867 2002-04-05 H.J. Lu (hjl@gnu.org)
10868
10869 * solib-svr4.c (bkpt_names): Add "__start".
10870
10871 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10872
10873 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10874 as test for 64 bit target.
10875
10876 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10877
10878 * h8500-tdep.c (h8500_write_fp): Delete function.
10879 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10880 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10881 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10883 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10884 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10885 (s390_write_fp):
10886 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10887 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10888 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10889 (d10v_write_fp): Delete function.
10890 * inferior.h (write_fp, generic_target_write_fp): Delete
10891 declarations.
10892 * regcache.c (generic_target_write_fp): Delete function.
10893 (write_fp): Delete function.
10894 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10895 * gdbarch.h, gdbarch.c: Regenerate.
10896 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10897 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10898 (sparc64_write_fp): Delete declaration.
10899 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10900 (h8500_write_fp): Delete declaration.
10901
10902 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10903
10904 * sparc-tdep.c (sparc64_write_fp): Delete.
10905 (sparc_push_dummy_frame): Replace write_fp call with code to store
10906 the FP directly.
10907 (sparc_gdbarch_init): Do not initialize write_fp.
10908
10909 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10910
10911 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10912 clause.
10913
10914 2002-03-29 Jim Blandy <jimb@redhat.com>
10915
10916 * stack.c (get_selected_block): Add new argument `addr_in_block',
10917 used to return the exact code address we used to select the block,
10918 not just the block.
10919 * blockframe.c (get_frame_block, get_current_block): Same.
10920 * frame.h (get_frame_block, get_current_block,
10921 get_selected_block): Update declarations.
10922 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10923 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10924
10925 2002-04-05 Michael Snyder <msnyder@redhat.com>
10926
10927 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10928 warning message.
10929
10930 2002-04-05 J. Brobecker <brobecker@gnat.com>
10931
10932 * utils.c (xfullpath): New function.
10933 * defs.h (xfullpath): Add declaration.
10934 * source.c (openp): Use xfullpath in place of gdb_realpath to
10935 avoid resolving the basename part of filenames when the
10936 associated file is a symbolic link. This fixes a potential
10937 inconsistency between the filenames known to GDB and the
10938 filenames it prints in the annotations.
10939 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10940 to be able to match a filename with either the real filename, or
10941 the name of any symbolic link to this file.
10942 (lookup_partial_symtab): Ditto.
10943
10944 2002-04-04 Michael Snyder <msnyder@redhat.com>
10945
10946 * breakpoint.c: Add support for hardware breakpoints in overlays.
10947 (overlay_events_enabled): New state variable.
10948 (insert_breakpoints): Use overlay_events_enabled to decide
10949 whether to attempt to set a breakpoint at the overlay load addr.
10950 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10951 (remove_breakpoint): Use overlay_events_enabled to decide
10952 whether breakpoints need to be removed from overlay load addr.
10953 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10954 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10955 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10956 disable_overlay_breakpoints): Update overlay_events_enabled.
10957
10958 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * dwarf2read.c (struct function_range): New.
10961 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10962 (check_cu_functions): New.
10963 (read_file_scope): Initialize global function lists.
10964 Call dwarf_decode_line after processing children.
10965 (read_func_scope): Add to global function list.
10966 (dwarf_decode_lines): Call check_cu_functions everywhere
10967 record_line is called. Call record_line with a linenumber
10968 of 0 to mark sequence ends.
10969
10970 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10971
10972 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10973 change sync with glibc.
10974
10975 2002-04-03 Jim Blandy <jimb@redhat.com>
10976
10977 * configure.in: Call AC_C_INLINE.
10978 * configure: Regenerated.
10979
10980 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10981
10982 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10983 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10984
10985 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10986
10987 * NEWS: Mention gcore support on FreeBSD/i386.
10988
10989 * fbsd-proc.c: New file.
10990 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10991 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10992
10993 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10994 while statement.
10995
10996 2002-03-29 Jim Blandy <jimb@redhat.com>
10997
10998 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10999 unescaped newlines in string literals, but newer ones don't. So
11000 escape them.
11001
11002 2002-03-26 Michael Snyder <msnyder@redhat.com>
11003 Andrew Cagney <cagney@redhat.com>
11004
11005 * cli/cli-dump.c: New file. Dump memory to file,
11006 restore file to memory.
11007 * cli/cli-dump.h: New file.
11008 * Makefile.in: Add rules, dependencies for cli-dump.o.
11009 * NEWS: Mention new commands.
11010
11011 2002-03-28 Michael Snyder <msnyder@redhat.com>
11012
11013 * symfile.c (symbol_file_add): Move test for null symbols to later.
11014
11015 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11016
11017 From veksler at il.ibm.com:
11018 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11019 the xstrduped original path.
11020 Fix PR gdb/417.
11021
11022 2002-03-27 Michael Snyder <msnyder@redhat.com>
11023
11024 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11025 * infcmd.c (_initialize_infcmd): Ditto.
11026 * language.c (_initialize_language): Ditto.
11027 * symfile.c (_initialize_symfile): Ditto.
11028 * top.c (_init_main): Ditto.
11029 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11030
11031 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11032
11033 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11034 vector registers handling.
11035 (skip_prologue): Handle new AltiVec instructions. Fill in new
11036 fields of frame data.
11037 (frame_get_saved_regs): Fill in information for AltiVec registers.
11038
11039 2002-03-27 Jim Blandy <jimb@redhat.com>
11040
11041 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11042 a function; leave this macro here to invoke that function.
11043 (symbol_init_mangled_name): Declaration for that function.
11044 * symtab.c (symbol_init_mangled_name): New function.
11045
11046 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11047
11048 * valarith.c: Replace strerror with safe_strerror.
11049 * tracepoint.c: Ditto.
11050 * lin-lwp.c: Ditto.
11051 * go32-nat.c: Ditto.
11052 * inflow.c: Ditto.
11053 * gnu-nat.c: Ditto.
11054
11055 2002-03-27 Andreas Schwab <schwab@suse.de>
11056
11057 * event-top.c (command_line_handler): Remove useless if.
11058
11059 2002-03-27 Andreas Jaeger <aj@suse.de>
11060
11061 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11062 comment.
11063
11064 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11065
11066 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11067 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11068 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11069 (x86_64_linux_dr_get_status, supply_gregset),
11070 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11071 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11072 (x86_64_register_info_table): Add.
11073 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11074 (x86_64_register_raw_size, x86_64_register_virtual_type),
11075 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11076 general x86_64_register_info_table.
11077 (i386_gdbarch_init): gdbarch_register_bytes is now set
11078 dynamicaly during initialization.
11079 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11080 * gdbserver/linux-x86-64-low.c: Ditto.
11081
11082 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11083
11084 * gdbserver/server.c (main): Call target_signal_to_host_p
11085 and target_signal_to_host on signals received from the remote.
11086 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11087 target_signal_from_host on signals sent to the remote.
11088 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11089 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11090
11091 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11092
11093 * signals/signals.c: Include "server.h" in gdbserver build.
11094 (target_signal_from_name): Don't use STREQ.
11095 (_initialize_signals): Likewise. Don't include function in
11096 gdbserver build.
11097
11098 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11099
11100 * signals.c: Moved to...
11101 * signals/signals.c: Here.
11102 * Makefile (signals.o): Update.
11103
11104 2002-03-26 Jeff Law (law@redhat.com)
11105
11106 * somread.c (som_symtab_read): Remove some commented out code and
11107 updated related comments. Do not set the minimal symbol table to
11108 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11109 in a dynamic executable.
11110 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11111 where we are unable to find the minimal symbol for the given
11112 PC value.
11113
11114 2002-03-25 Jeff Law (law@redhat.com)
11115
11116 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11117
11118 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11119
11120 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11121
11122 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11123
11124 * command.h: Update copyright.
11125 (struct cmd_list_element): Replace definition with opaque
11126 declaration.
11127 (enum cmd_types): Document that it will eventually be moved to
11128 cli/cli-decode.h
11129 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11130 (MALLOCED_REPLACEMENT): Delete macro.
11131 * Makefile.in (cli_decode_h): Add $(command_h).
11132 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11133 * top.c: Include "cli/cli-decode.h".
11134 * completer.c: Include "cli/cli-decode.h".
11135 * maint.c: Include "cli/cli-decode.h".
11136 * cli/cli-decode.h: Include "command.h".
11137 (enum command_class): Delete.
11138 (enum cmd_types): Comment out.
11139 (enum cmd_auto_boolean): Delete.
11140 (enum var_types): Delete.
11141
11142 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11143
11144 * cli/cli-decode.c: Include "gdb_assert.h".
11145 (add_set_or_show_cmd): New static function.
11146 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11147 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11148 all fields, such as func, from the set command.
11149
11150 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11151
11152 * MAINTAINERS (sh-elf): Change warning flag to -w.
11153
11154 2002-03-23 Andrew Cagney <cagney@redhat.com>
11155
11156 * defs.h (error): Add printf format attribute.
11157 * thread-db.c (thread_from_lwp): Fix error format string.
11158 * stack.c (parse_frame_specification): Ditto.
11159 * cli/cli-decode.c (undef_cmd_error): Ditto.
11160 * scm-lang.c (scm_lookup_name): Ditto.
11161 * tracepoint.c (trace_error): Ditto.
11162 * remote-utils.c (usage): Ditto.
11163 * remote.c (compare_sections_command): Ditto.
11164 Fix PR gdb/328.
11165
11166 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11167
11168 * gdbtypes.c (append_composite_type_field): New function.
11169 (init_composite_type): New function.
11170 * gdbtypes.h (append_composite_type_field): Declare.
11171 (init_composite_type): Ditto.
11172
11173 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11174
11175 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11176 function.
11177 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11178 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11179 structure returning convention for SYSV ABI case, but not
11180 for GNU/Linux, FreeBSD, or NetBSD.
11181
11182 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11183
11184 * symtab.h (lookup_block_symbol): Add mangled_name argument
11185 to prototype.
11186
11187 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11188 with new mangled_name argument.
11189 * linespec.c (decode_line_1): Likewise.
11190 * valops (value_of_this): Likewise.
11191 * symtab.c (lookup_transparent_type): Likewise.
11192 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11193 (lookup_symbol): If we are given a mangled name, pass it down
11194 to lookup_symbol_aux.
11195 (lookup_block_symbol): If we are given a mangled name to check
11196 against, only return symbols which match it.
11197
11198 2002-03-22 Christopher Faylor <cgf@redhat.com>
11199
11200 * win32-nat.c (child_create_inferior): Check for proper shell to use
11201 here, in case the user changes it on the fly.
11202 (_initialize_inftarg): Remove shell path considerations.
11203
11204 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11205
11206 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11207 for gdbarch_max_register_raw_size and max_register_virtual_size.
11208 Adjust copyright year.
11209
11210 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11211
11212 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11213 in a function to cover the entire beginning of the function
11214 as well if it does not already.
11215
11216 2002-03-21 Tom Rix <trix@redhat.com>
11217
11218 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11219 (rs6000_ptrace64): Renamed from ptrace64.
11220
11221 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11222
11223 * gdbserver/remote-utils.c (remote_open): Don't call
11224 getprotobyname, we're all using TCP here so just use
11225 IPPROTO_TCP.
11226 * gdbserver/gdbreplay.c (remote_open): Ditto.
11227
11228 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11229
11230 * regcache.c (_initialize_regcache): No need to call
11231 build_regcache() at this time; it gets called whenever
11232 the gdbarch changes.
11233
11234 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11235
11236 * sparc-nat.c: Include sys/param.h where possible.
11237
11238 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11239
11240 Fix PR gdb/422.
11241 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11242 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11243 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11244 complex types.
11245 * stabsread.c (rs6000_builtin_type): Likewise.
11246 (read_sun_floating_type): Likewise.
11247
11248 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11249
11250 * stabsread.c (read_member_functions): Remove skip code for duplicate
11251 constructor/destructor methods. Use standard parsing for these
11252 methods and just do not chain them to the list of methods after
11253 parsing.
11254
11255 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11256
11257 * coffread.c: Remove redundant static declarations. Replace
11258 occurrences of `PTR' with `void *'.
11259 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11260 * top.h (quit_cover): Likewise.
11261 * defs.h (catch_errors): Likewise.
11262
11263 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11264
11265 * defs.h (XMALLOC): Define.
11266 * gdb-events.sh (XMALLOC): Delete macro.
11267 * gdb-events.c, gdb-events.h: Regenerate.
11268 * gdbarch.sh (XMALLOC): Delete macro.
11269 * gdbarch.c: Regenerate.
11270 * serial.c (XMALLOC): Delete macro.
11271 * ui-file.c (XMALLOC): Ditto.
11272 * ser-unix.h (XMALLOC): Ditto.
11273 * sh-tdep.c (XMALLOC): Ditto.
11274 * ui-out.c (XMALLOC): Ditto.
11275 * utils.c (XMALLOC): Ditto.
11276 * i386-tdep.c (XMALLOC): Ditto.
11277 * gdb-events.c (XMALLOC): Ditto.
11278 * d10v-tdep.c (XMALLOC): Ditto.
11279 * cli-out.c (XMALLOC): Ditto.
11280
11281 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11282 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11283 * ui-file.c, ui-out.c: Ditto.
11284
11285 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11286
11287 * command.h (struct cmd_list_element): Add field context.
11288 (set_cmd_context, get_cmd_context): Declare.
11289 * cli/cli-decode.h: Ditto.
11290 * cli/cli-decode.c (get_cmd_context): New function.
11291 (set_cmd_context): New function.
11292 (add_cmd): Initialize context.
11293 Part of fixing PR gdb/145 and PR gdb/146.
11294
11295 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11296
11297 * cli/cli-decode.c (cmd_type): New function.
11298 * command.h (cmd_type): Declare.
11299 * infrun.c (set_schedlock_func): Call function cmd_type.
11300 * kod.c (kod_set_os): Call cmd_type.
11301 * cris-tdep.c (cris_version_update): Use function cmd_type.
11302 (cris_mode_update, cris_abi_update): Ditto.
11303
11304 * command.h: (execute_cmd_post_hook): Declare.
11305 (execute_cmd_pre_hook): Declare.
11306 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11307 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11308 functions. Execute pre/post hook while ensuring that afterwords
11309 hook_in is cleared.
11310 * top.c (execute_command): Use execute_cmd_post_hook, and
11311 execute_cmd_pre_hook to execute pre/post commands.
11312 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11313 hook_stop_stub.
11314 (hook_stop_stub): Call execute_cmd_pre_hook.
11315
11316 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11317
11318 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11319 set'' and this leads to a core dump. Move xstrdup of
11320 operating_system to after check that it is not NULL.
11321
11322 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11323
11324 * kod.c (kod_set_os): Remove unnecessary check that
11325 ``command->type'' is set_cmd.
11326
11327 * valprint.c (set_input_radix): Use input_radix.
11328 (set_output_radix): Use output_radix.
11329 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11330 isn't reverted.
11331
11332 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11333
11334 * value.h (struct value): Delete field ``substring_addr''. Change
11335 aligner fields to force_doublest_align, force_longest_align,
11336 force_core_addr_align and force_pointer_aligh.
11337
11338 * value.h (struct value): Fix typo in above change.
11339
11340 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11341
11342 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11343 to fix internal_error from ``maintenance print architecture''.
11344
11345 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11346
11347 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11348 for gcc versions after gcc-2.8.1.
11349
11350 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11351
11352 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11353 for method resolution. Restore adjustment of ``this'' pointer after
11354 calling value_struct_elt, which was accidentally removed during the
11355 HP merge.
11356
11357 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11358
11359 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11360 value_of_register.
11361 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11362 get_saved_register.
11363 * value.h (value_of_register): Update.
11364
11365 2002-03-14 Richard Henderson <rth@redhat.com>
11366
11367 * configure.in: Detect declaration for canonicalize_file_name.
11368 * utils.c (canonicalize_file_name): Declare, if needed.
11369 (gdb_realpath): Prefer realpath if available and usable.
11370 * config.in, configure: Rebuild.
11371
11372 2002-03-14 Richard Henderson <rth@redhat.com>
11373
11374 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11375 a constant array bound.
11376
11377 * MAINTAINERS: Add myself to write-after-approval.
11378
11379 2002-03-14 Michael Snyder <msnyder@redhat.com>
11380
11381 * symfile.c (syms_from_objfile): Return immediately if no syms.
11382 (symbol_file_add): Return immediately if no syms.
11383 (find_sym_fns): Return immediately if no syms.
11384
11385 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11386
11387 * gdbserver/remote-util.c (remote_open): Print remote-side's
11388 IP address when remote debugging over the network.
11389
11390 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11391
11392 * config/sparc/fbsd.mh: Fix copyright.
11393 * config/sparc/fbsd.mt: Likewise.
11394
11395 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11396
11397 * MAINTAINERS: Fix typo in name of gdb warnings option.
11398 (x86-64): Fix formating so that this can be parsed by awk.
11399
11400 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11401
11402 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11403 * defs.h: Include "gdb/signals.h".
11404 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11405
11406 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11407
11408 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11409 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11410 from x86-64-tdep.h
11411
11412 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11413 Don Howard <dhoward@redhat.com>
11414
11415 * mips-tdep.c (ST0_FR): Define.
11416 (mips2_fp_compat): New function, temporarily disabled.
11417 (mips_read_fp_register_single): New function.
11418 (mips_read_fp_register_double): New function.
11419 (mips_print_register): Use them.
11420 (do_fp_register_row): Likewise.
11421
11422 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11423
11424 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11425 approval''.
11426
11427 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11428
11429 * stabsread.c (read_member_functions): Fix is_stub test for
11430 static member functions, improve comment.
11431
11432 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11433
11434 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11435 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11436 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11437 commands that set boolean values.
11438 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11439 (arm_rdi_resume): Always initialize PC.
11440 (arm_rdi_open): Don't use rslt as a boolean.
11441 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11442 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11443 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11444 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11445
11446 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11447
11448 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11449 * configure: Rebuilt.
11450
11451 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11452
11453 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11454 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11455
11456 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11457
11458 * cli/cli-decode.c (set_cmd_completer): New function.
11459 * command.h (set_cmd_completer): Declare.
11460 * cli/cli-decode.h (set_cmd_completer): Ditto.
11461
11462 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11463 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11464 * win32-nat.c (_initialize_inftarg): Ditto.
11465 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11466 * proc-api.c (_initialize_proc_api): Ditto.
11467 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11468 * source.c (_initialize_source): Ditto.
11469 * exec.c (_initialize_exec): Ditto.
11470 * solib.c (_initialize_solib): Ditto.
11471 * top.c (init_main): Ditto.
11472 * tracepoint.c (_initialize_tracepoint): Ditto.
11473 * symfile.c (_initialize_symfile): Ditto.
11474 * printcmd.c (_initialize_printcmd): Ditto.
11475 * infcmd.c (_initialize_infcmd): Ditto.
11476 * corefile.c (_initialize_core): Ditto.
11477
11478 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11479
11480 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11481
11482 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11483
11484 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11485
11486 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11487
11488 * NEWS: Update headings, 5.2 has branched.
11489
11490 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11491
11492 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11493 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11494 (register_addr, REGISTER_RAW_SIZE): Likewise.
11495 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11496 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11497
11498 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11499
11500 * MAINTAINERS (x86-64): Add myself.
11501 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11502 changed value_ptr -> struct value *
11503
11504 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11505
11506 * configure.host (sparc64-*-freebsd): Add.
11507 * configure.tgt: Likewise.
11508 * config/sparc/fbsd.mh: New file.
11509 * config/sparc/fbsd.mt: Likewise.
11510 * config/sparc/nm-fbsd.h: Likewise.
11511 * config/sparc/tm-fbsd.h: Likewise.
11512
11513 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11514
11515 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11516 regformats/reg-s390x.dat.
11517
11518 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11519
11520 * utils.c: Add FIXME explaining true/false problem.
11521
11522 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11523
11524 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11525
11526 2002-02-28 Michael Chastain <mec@shout.net>
11527
11528 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11529
11530 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11531
11532 * gdbserver/linux-s390-low.c: New file.
11533 * regformats/reg-s390.dat: New file.
11534 * regformats/reg-s390x.dat: New file.
11535 * gdbserver/configure.srv: Add S/390.
11536 * gdbserver/Makefile.in: Add S/390.
11537 * configure.tgt: Enable gdbserver for S/390.
11538
11539 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11540
11541 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11542 first line of the doc string for "info dos", except at the end of
11543 the sentence, since the short help stops at the first period.
11544
11545 2002-02-28 Jason Merrill <jason@redhat.com>
11546
11547 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11548
11549 2002-02-27 Fred Fish <fnf@redhat.com>
11550
11551 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11552 comment (dumy -> dummy).
11553
11554 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11555
11556 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11557
11558 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11559
11560 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11561
11562 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11563
11564 * gdbserver/acconfig.h: New file.
11565 * gdbserver/i387-fp.c: New file.
11566 * gdbserver/i387-fp.h: New file.
11567 * gdbserver/linux-x86-64.c: New file.
11568 * regformats/reg-x86-64.dat: New file.
11569 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11570 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11571 * gdbserver/configure.in: Add support for regsets.
11572 * gdbserver/config.in: Regenerate.
11573 * gdbserver/configure: Regenerate.
11574 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11575 * gdbserver/linux-low.h: New file.
11576 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11577 for regsets.
11578 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11579 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11580 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11581 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11582 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11583 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11584 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11585 "i387-fp.h". Add PTRACE_GETREGS and friends.
11586 * gdbserver/regcache.c (supply_register): New function.
11587 (supply_register_by_name): New function.
11588 (collect_register): New function.
11589 (collect_register_by_name): New function.
11590
11591 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11592
11593 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11594 (config.status): Add configure.srv dependency.
11595 (server_h): Add config.h dependency.
11596
11597 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11598
11599 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11600 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11601 * gdbserver/configure.srv: Change i386-*-linux* to use
11602 reg-i386-linux.o.
11603
11604 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11605
11606 * x86-64-tdep.c: Re-indent. Update copyright date.
11607
11608 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11609
11610 From Michal Ludvig <mludvig@suse.cz>:
11611 * x86-64-tdep.c (value.h): Delete.
11612 (gdb_assert.h): Include.
11613 (x86_64_register_convert_to_virtual,
11614 x86_64_register_convert_to_raw ): Add check which lets only
11615 floating-point values to be converted.
11616 (value_push): Delete.
11617 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11618 (i386_gdbarch_init): Number of register_bytes fixed.
11619
11620 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11621
11622 * MAINTAINERS: Add x86-64 target.
11623
11624 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11625
11626 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11627 * osfsolib.c (solib_map_sections): Ditto.
11628 * irix5-nat.c (solib_map_sections): Ditto.
11629 * corelow.c (gdb_check_format): Ditto.
11630 * symfile.c (symfile_bfd_open): Ditto.
11631 * solib.c (solib_map_sections): Ditto.
11632 Fix PR gdb/354.
11633
11634 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11635
11636 * remote.c (_initialize_remote): By default, disable ``e'' and
11637 ``E'' step out-of-range packets.
11638
11639 2002-02-26 Andreas Schwab <schwab@suse.de>
11640
11641 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11642 m68k_linux_frame_saved_pc.
11643 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11644 in_sigtramp.
11645 (SIGCONTEXT_PC_OFFSET): Remove.
11646 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11647 m68k_linux_sigtramp_saved_pc): New functions.
11648 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11649 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11650 (UCONTEXT_PC_OFFSET): Define.
11651 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11652 non-RT and RT signal trampolines.
11653
11654 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11655
11656 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11657 (TARGET_NBPG, STACK_END_ADDR): Delete
11658 (VARIABLES_INSIDE_BLOCK): Delete.
11659
11660 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11661
11662 * utils.c (perror_with_name): Make string parameter constant.
11663 (print_sys_errmsg): Ditto.
11664 (query): Ditto.
11665 * defs.h (perror_with_name): Update.
11666 (print_sys_errmsg): Update.
11667 (query): Update.
11668
11669 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11670
11671 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11672 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11673
11674 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11675
11676 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11677 if it already matches the current architecture from the exec file.
11678 Include arch-utils.h for gdbarch_info_init prototype.
11679 * Makefile.in (rs6000-nat.o): Update dependencies.
11680
11681 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11682
11683 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11684 list of exported variables.
11685
11686 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11687
11688 * gdbserver/configure.srv: New file.
11689 * gdbserver/configure.in: Use configure.srv instead
11690 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11691 from it.
11692 * gdbserver/configure: Regenerated.
11693 * gdbserver/terminal.h: New file.
11694 * gdbserver/Makefile.in: Update for configure changes. Remove
11695 more unneeded include paths.
11696
11697 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11698
11699 From wiz at danbala:
11700 * config/sparc/tm-sp64.h: Fix grammar and typos.
11701 Fix PR gdb/287.
11702
11703 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11704
11705 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11706 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11707 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11708 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11709 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11710 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11711 * s390-tdep.c: Ditto.
11712 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11713 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11714 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11715 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11716 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11717 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11718 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11719 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11720 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11721 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11722 Fix PR gdb/378.
11723
11724 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11725
11726 * lin-thread.c: Delete file.
11727 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11728 to gdb_proc_service.h.
11729 * configure: Re-generate.
11730
11731 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11732 * serial.c (serial_open): Delete check for "ocd".
11733 Fix PR gdb/349.
11734
11735 * Makefile.in (linux-thread.o): Delete target.
11736 * linux-thread.c: Delete file.
11737
11738 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11739 renamed SH files to be consistent.
11740
11741 * symtab.c (sort_search_symbols): Use xfree.
11742
11743 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11744
11745 * arm-linux-tdep.c (arm_linux_init_abi): Register
11746 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11747 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11748 definition with undef, since we don't want the sysvr4 definition.
11749 (SKIP_TRAMPOLINE_CODE): Likewise.
11750
11751 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11752
11753 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11754
11755 * configure.in: (AC_CHECK_FUNCS) Added test for
11756 canonicalize_file_name Regenerated.
11757 * config.in, configure: Regenerated.
11758 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11759 defined use canonicalize_file_name.
11760
11761 2002-02-23 Michael Chastain <mec@shout.net>
11762
11763 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11764
11765 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11766
11767 * README: Remove references to cygnus.com.
11768 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11769 dot com'' form. Remove references to cygnus.com and sourceware.
11770
11771 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11772
11773 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11774 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11775 1003.1-2001 no longer allows "head -1".
11776 * gdb/Makefile.in (version.c): Likewise.
11777 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11778 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11779 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11780
11781 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11782
11783 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11784 * command.h (cmd_cfunc_eq): Declare.
11785 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11786
11787 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11788 ``struct cmd_list_element *''.
11789 * cli/cli-cmds.c (is_complete_command): Update. Use
11790 cmd_cfunc_eq.
11791 * top.c (execute_command): Pass the command to
11792 is_complete_command.
11793 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11794
11795 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11796
11797 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11798 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11799 architecture defines.
11800 * s390-tdep.c (s390_gdbarch_init): Likewise.
11801
11802 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11803
11804 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11805 (arm_linux_push_arguments): Likewise.
11806 (arm_linux_init_abi): Register them. Also register linux-specific
11807 call_dummy_words.
11808 (find_minsym_and_objfile): Use strcmp, not STREQ.
11809 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11810 (arm_linux_call_dummy_words): Delete declaration.
11811 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11812 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11813 declarations.
11814 (LOWEST_PC): Delete.
11815
11816 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11817
11818 * maint.c (print_section_info): Do not prepend `0x' to filepos
11819 output, it will be handled by local_hex_string_custom.
11820
11821 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11822
11823 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11824 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11825 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11826
11827 2002-02-22 Jim Blandy <jimb@redhat.com>
11828
11829 Indicate that the bcache functions don't change the strings
11830 they're passed.
11831 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11832 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11833
11834 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11835
11836 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11837
11838 2002-02-21 Christopher Faylor <cgf@redhat.com>
11839
11840 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11841 find the complete path to a loaded DLL.
11842
11843 2002-02-21 Fred Fish <fnf@redhat.com>
11844
11845 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11846 that marks the end of the range of a function, enter a line number
11847 entry that has a line number of zero and a PC offset that matches
11848 the end of the function. This starts a range of PC's for which no
11849 line number information is known.
11850 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11851 PC's for which no line number info is found (line number is zero)
11852 then we didn't find any valid line information.
11853 * symtab.h: Document use of zero line number entry.
11854
11855 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11856
11857 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11858 (have_ptrace_getvrregs): Define for run time checks.
11859 (gdb_vrregset_t): New type for Altivec register handling.
11860 (fetch_register, store_register): Fetch/store altivec register
11861 when needed.
11862 (fetch_altivec_register, store_altivec_register): New functions.
11863 (supply_vrregset, fill_vrregset): New functions.
11864 (fetch_altivec_registers, store_altivec_registers): New functions.
11865 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11866 registers as well.
11867
11868 2002-02-21 Jiri Smid <smid@suse.cz>
11869
11870 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11871
11872 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11873
11874 * Makefile.in (armnbsd-nat.o): Update dependencies.
11875 * armnbsd-nat.c (supply_gregset): New function. Common code to
11876 supply the integer register set.
11877 (supply_fparegset): New function. Similar for FPA registers.
11878 (fetch_regs, fetch_fp_regs): Use them.
11879 (fetch_core_registers): Likewise.
11880 (fetch_elfcore_registers): New function.
11881 (arm_netbsd_elfcore_fns): New core-file type specification.
11882 (_initialize_arm_netbsd_nat): Register it.
11883
11884 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11885
11886 * armnbsd-nat.c: Include gdbcore.h.
11887 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11888 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11889 'void' to declaration, to shut up ARI.
11890 (fetch_core_registers): Make static. Rewrite using supply_register.
11891 (arm_netbsd_core_fns): New core-file type specification.
11892 (_initialize_arm_netbsd_nat): New function.
11893
11894 2002-02-21 Christopher Faylor <cgf@redhat.com>
11895
11896 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11897 value.
11898
11899 2002-02-20 Christopher Faylor <cgf@redhat.com>
11900
11901 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11902 fails.
11903
11904 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11905
11906 * jv-exp.y (parse_number): Change type of implicit longs
11907 to builtin_type_uint64.
11908
11909 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11910
11911 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11912 to be an integer instead of a `union wait'.
11913
11914 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11915
11916 * mips-linux-nat.c: Call the operating system GNU/Linux.
11917 * mips-linux-tdep.c: Likewise.
11918 * mips-tdep.c: Likewise.
11919
11920 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11921
11922 Fix PR gdb/265.
11923 * jv-exp.y (parse_number): Handle 64-bit integers.
11924
11925 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11926
11927 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11928 AC_STDC_HEADERS to AC_HEADER_STDC.
11929 * gdbserver/configure: Regenerated.
11930
11931 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11932
11933 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11934 is defined.
11935 * sparc-tdep.c (get_longjmp_target): Likewise.
11936
11937 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11938
11939 * News: Add news about ARM and Multi-arch. Mention the new target
11940 arm*-*-netbsd*.
11941
11942 2002-02-19 Jim Blandy <jimb@redhat.com>
11943
11944 * stabsread.c (error_type_complaint): Improve error message.
11945
11946 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11947
11948 * gdbserver/README: Update documentation.
11949 * gdbserver/configure.in: Update configury to match documentation.
11950 * gdbserver/Makefile.in: Likewise.
11951 * gdbserver/configure: Regenerated.
11952 * gdbserver/aclocal.m4: New file, generated by aclocal.
11953 * gdbserver/config.in: New file, generated by autoheader.
11954
11955 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11956
11957 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11958 armnbsd-nat.c.
11959
11960 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11961
11962 * arm-tdep.h (enum arm_float_model): New enum.
11963 (struct gdbarch_tdep): Add fp_model.
11964 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11965 up floating-point conversions until we know the floating-point model
11966 in use by the inferior. Don't complain about being unable to
11967 determine the ABI of the inferior when we don't have one.
11968 (arm_extract_return_value): Support different floating-point models.
11969 (arm_store_return_value): Likewise.
11970 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11971 ARM_FLOAT_SOFT.
11972 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11973
11974 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11975
11976 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11977 of ``current_gdbarch''.
11978
11979 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11980
11981 * armnbsd-nat.c : ANSIfy all function declarations.
11982 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11983 (fetch_inferior_registers): Re-implement in terms of above.
11984 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11985 (store_inferior_registers): Re-implement in terms of above.
11986
11987 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11988
11989 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11990 kernel.
11991 * arm-linux-tdep.c: Likewise.
11992 * config/arm/tm-linux.h: Likewise.
11993
11994 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11995
11996 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11997 * config/arm/nbsd.mt (TM_FILE): Delete.
11998 * config/arm/tm-nbsd.h: Delete.
11999
12000 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12001
12002 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12003 Initialize CALL_DUMMY_LENGTH.
12004
12005 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12006
12007 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12008 function.
12009 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12010 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12011 defines one thing and that is incorrect for this port.
12012 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12013
12014 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12015
12016 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12017
12018 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12019
12020 * win32-nat.c (display_selector): New function. Displays information
12021 about the information returned by GetThreadSelectorEntry API function.
12022 (display_selectors): New function. Displays the infomation of
12023 the selector given as argument, or of CS, DS ans FS selectors
12024 if no argument is given.
12025 ( _initialize_inftarg): Add "w32" as info prefix command.
12026 Add "info w32 selector" as command calling display_selectors.
12027
12028 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12029
12030 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12031 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12032 if not defined.
12033
12034 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12035
12036 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12037
12038 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12039
12040 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12041 (arm_fix_call_dummy): Call it.
12042 (arm_call_dummy_breakpoint_offset): Delete.
12043 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12044 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12045
12046 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12047
12048 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12049 Default to func_frame_chain_valid.
12050 * gdbarch.h, gdbarch.c: Re-generate.
12051 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12052
12053 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12054
12055 * ppc-linux-nat.c: Update copyright.
12056 (fetch_register, store_register): Add tid parameter, don't compute
12057 tid here.
12058 (fetch_ppc_registers, store_ppc_registers): Add tid
12059 parameter. Pass it along to callees.
12060 (fetch_inferior_registers, store_inferior_registers): Compute tid
12061 here, and pass it to calleed functions.
12062 (fill_gregset, supply_fpregset): Clean up formatting.
12063
12064 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12065
12066 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12067 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12068
12069 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12070
12071 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12072 * gdbarch.c gdbarch.h: Regenerate.
12073 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12074 function.
12075 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12076 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12077 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12078
12079 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12080 * arm-tdep.c (arm_get_longjmp_target): New function.
12081 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12082 this to a positive value register arm_get_longjmp_target as the
12083 longjmp handler.
12084 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12085 (arm_linux_init_abi): Set up longjmp description in tdep.
12086 * armnbsd-nat.c (get_longjmp_target): Delete.
12087 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12088 description in tdep.
12089 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12090 (get_longjmp_target): Delete declaration.
12091 (GET_LONGJMP_TARGET): Delete.
12092 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12093 (GET_LONGJMP_TARGET): Delete.
12094
12095 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12096
12097 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12098 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12099 of ``current_gdbarch''.
12100
12101 2002-02-17 Tom Tromey <tromey@redhat.com>
12102
12103 * cli/cli-cmds.c (compare_strings): New function.
12104 (complete_command): Only print each unique item once.
12105 * completer.h (complete_line): Declare.
12106 * completer.c (complete_line): New function.
12107 (line_completion_function): Use it.
12108
12109 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12110
12111 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12112 * gdbarch.h, gdbarch.c: Re-generate.
12113
12114 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12115
12116 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12117
12118 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12119
12120 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12121 * valops.c (value_arg_coerce): Don't take the address of a reference
12122 to convert an argument to a reference.
12123
12124 2002-02-15 Christopher Faylor <cgf@redhat.com>
12125
12126 * win32-nat.c (get_image_name): New function.
12127 (handle_load_dll): Use get_image_name function.
12128 (get_child_debug_event): Avoid registering debug events until possibly
12129 execed process is started.
12130 (child_create_inferior): Allow invocation via shell so that command
12131 line redirection, etc. works ok.
12132 (_initialize_inftarg): Add new command: "set shell" to control whether
12133 a shell is used to start a process.
12134
12135 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12136
12137 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12138 instead of find_register_by_number.
12139 (cannot_store_register): Likewise.
12140
12141 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12142
12143 * dwarf2read.c: Replace fprintf (stderr, ...) by
12144 fprintf_unfiltered (gdb_stderr, ...).
12145
12146 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * gdbserver/gdbserver.1: Document --attach.
12149
12150 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12151
12152 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12153 descriptions.
12154 * arm-tdep.c (arm_default_arm_le_breakpoint)
12155 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12156 (arm_default_thumb_be_breakpoint): New. Initialize them from
12157 traditional breakpoint defines.
12158 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12159 (arm_gdbarch_init): Initialize new breakpoint variables.
12160 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12161 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12162 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12163 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12164 code out to ...
12165 (arm_netbsd_init_abi_common): ... here; new function.
12166 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12167 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12168 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12169 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12170
12171 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12172
12173 * arm-tdep.h (enum arm_abi): New enum.
12174 (struct gdbarch_tdep): New structure.
12175 (LOWEST_PC): Provide a default.
12176 (arm_gdbarch_register_os_abi): Declare new function.
12177 * arm-tdep.c (arm_abi_names): New array.
12178 (process_note_abi_tag_sections): New function.
12179 (get_elfosabi): New function.
12180 (arm_gdbarch_register_os_abi): New function.
12181 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12182 support for that ABI has been built in, then call the appropriate
12183 configuration routine. Use gdbarch_num_regs() to get the number
12184 of registers.
12185 (arm_dump_tdep): New function.
12186 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12187 place-holder functions.
12188 (_initialize_arm_tdep): Register them.
12189 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12190
12191 * armnbsd-tdep.c: New file.
12192 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12193 * config/arm/nbsd.mt (TDEPFILES): Add it.
12194 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12195
12196 * armnbsd-nat.c: Include regcache.h.
12197 * Makefile.in (armnbsd-nat.o): Update dependency list.
12198
12199 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12200
12201 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12202
12203 * gdbserver/Makefile.in: Fix typos in target rules.
12204
12205 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12206
12207 Fix part of PR gdb/267.
12208 * linespec.c (find_methods): Handle constructors specially for now.
12209
12210 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12211
12212 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12213 handling.
12214 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12215 standard_coerce_float_to_double().
12216
12217 2002-02-14 Christopher Faylor <cgf@redhat.com>
12218
12219 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12220 GDBINIT_FILENAME.
12221
12222 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12223
12224 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12225 find_variant_by_name, because it confuses the multiarch
12226 framework. Return NULL if there isn't an architecture with the
12227 user supplied name, instead of forcing a different one without
12228 recording the change with the multiarch machinery.
12229 (find_variant_by_name): Delete.
12230
12231 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12232
12233 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12234 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12235
12236 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12237
12238 * stack.c (print_frame_info_base): When calling
12239 print_frame_info_listing_hook, set current_source_symtab.
12240
12241 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12242
12243 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12244 and remove unused $(INCLUDE_DIR).
12245 Add regcache.c to OBS.
12246 Add generated register protocol files to clean target.
12247 Update dependencies for new objects, obsolete old target code.
12248
12249 * gdbserver/linux-low.c: Remove all platform-specific code to
12250 new files. Remove various dead code. Update to use regcache
12251 functionality.
12252 * gdbserver/remote-utils.c (fromhex): Add return statement
12253 to quiet warning.
12254 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12255 constant.
12256 (input_interrupt): Add integer parameter to match prototype
12257 of a signal handler.
12258 (outreg): Use register_data ().
12259 (prepare_resume_reply): Use gdbserver_expedite_regs.
12260 * gdbserver/server.c (main): Dynamically allocate own_buf because
12261 PBUFSIZ is no longer constant. Use registers_to_string () and
12262 registers_from_string ().
12263 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12264 for error (), fatal (), and warning (). Update definition of
12265 PBUFSIZ to use regcache functionality. Add include guard.
12266 * gdbserver/utils.c (fatal): Add missing ``const''.
12267 (warning): New function.
12268
12269 * regformats/regdat.sh: Include "regcache.h" in generated files.
12270 Provide init_registers () function.
12271 * regformats/regdef.h: Add prototype for set_register_cache ().
12272 Add include guard.
12273
12274 * gdbserver/linux-arm-low.c: New file.
12275 * gdbserver/linux-i386-low.c: New file.
12276 * gdbserver/linux-ia64-low.c: New file.
12277 * gdbserver/linux-m68k-low.c: New file.
12278 * gdbserver/linux-mips-low.c: New file.
12279 * gdbserver/linux-ppc-low.c: New file.
12280 * gdbserver/linux-sh-low.c: New file.
12281
12282 * gdbserver/regcache.c: New file.
12283 * gdbserver/regcache.h: New file.
12284
12285 * gdbserver/low-linux.c: Removed obsolete file.
12286
12287 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12288
12289 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12290 * config/i386/linux.mt: Likewise.
12291 * config/ia64/linux.mt: Likewise.
12292 * config/m68k/linux.mh: Likewise.
12293 * config/powerpc/linux.mh: Likewise.
12294 * config/mips/linux.mt: Likewise.
12295
12296 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12297
12298 * config/i386/i386lynx.mh: Mark gdbserver variables
12299 as (currently) obsolete for this target.
12300 * config/i386/nbsd.mt: Likewise.
12301 * config/i386/nbsdelf.mt: Likewise.
12302 * config/m32r/m32r.mt: Likewise.
12303 * config/m68k/m68klynx.mh: Likewise.
12304 * config/m68k/nbsd.mt: Likewise.
12305 * config/m68k/sun3os4.mh: Likewise.
12306 * config/mips/vr5000.mt: Likewise.
12307 * config/ns32k/nbsd.mt: Likewise.
12308 * config/pa/hppabsd.mh: Likewise.
12309 * config/pa/hppaosf.mh: Likewise.
12310 * config/powerpc/nbsd.mt: Likewise.
12311 * config/rs6000/rs6000lynx.mh: Likewise.
12312 * config/s390/s390.mt: Likewise.
12313 * config/s390/s390x.mt: Likewise.
12314 * config/sparc/sparclynx.mh: Likewise.
12315 * config/sparc/sun4os4.mh: Likewise.
12316 * config/i386/x86-64linux.mt: Likewise.
12317 * config/sparc/linux.mh: Likewise.
12318
12319 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12320
12321 * configure.tgt: Configure gdbserver only for known working
12322 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12323 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12324 SUBDIRS if it is configured. Update comment for ${nativefile}.
12325 * configure: Regenerated.
12326
12327 2002-02-13 Michael Snyder <msnyder@redhat.com>
12328
12329 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12330
12331 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12332 (default_gcore_mach): Just return 0, work around a problem in bfd.
12333 (default_gcore_target): OK to return NULL if exec_bfd is null.
12334 (make_mem_sec): Use a cast, avoid a warning.
12335
12336 * procfs.c (find_memory_regions_callback): Use a cast instead of
12337 calling host_pointer_to_address (which complains if
12338 sizeof (host pointer) != sizeof (target pointer)).
12339 (procfs_make_note_section): Avoid overflow in psargs string.
12340
12341 * procfs.c (procfs_make_note_section): Make the default
12342 implementation return an error.
12343
12344 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12345
12346 * procfs.c (procfs_make_note_section): Provide a default definition
12347 (for alpha-dec-osf4.0f). Fix typos.
12348
12349 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12350
12351 * linux-proc.c: Add include of regcache.h.
12352 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12353
12354 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12355
12356 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12357 * memattr.c (create_mem_region): Disallow useless empty region.
12358 Regions are half-open intervals, so allow [A..B) [B..C) as
12359 non-overlapping.
12360
12361 2002-02-13 Michael Chastain <mec@shout.net>
12362
12363 * defs.h: Kill CONST_PTR.
12364 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12365 * c-lang.c (c_builtin_types): Likewise.
12366 * ch-lang.c (ch_builtin_types): Likewise.
12367 * f-lang.c (f_builtin_types): Likewise.
12368 * language.c (unknown_builtin_types): Likewise.
12369 * m2-lang.c (m2_builtin_types): Likewise.
12370 * p-lang.c (pascal_builtin_types): Likewise.
12371 * scm-lang.c (c_builtin_types): Likewise.
12372
12373 2002-02-13 Keith Seitz <keiths@redhat.com>
12374
12375 * arm-tdep.h (arm_get_next_pc): Add declaration.
12376
12377 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12378
12379 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12380 with other related struct-returning functions.
12381 (arm_extract_struct_value_address): New function.
12382 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12383 initialize float_format, double_format and long_double_format as
12384 appropriate to the endianness of the target.
12385 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12386 (arm_use_struct_convention): Delete declaration.
12387 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12388
12389 2002-02-13 Keith Seitz <keiths@redhat.com>
12390
12391 * defs.h (core_addr_to_string_nz): New function.
12392
12393 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12394
12395 Apply missing bits of 2002-01-15 patch.
12396 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12397 (fill_fpregset): Use i387_fill_fsave.
12398
12399 2002-02-12 Keith Seitz <keiths@redhat.com>
12400
12401 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12402 (core_addr_to_string_nz): New function.
12403
12404 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12405
12406 * arm-linux-nat.c: Really include arm-tdep.h.
12407 * config/arm/tm-linux.h (struct type, struct value): Declare.
12408
12409 2002-02-11 Michael Snyder <msnyder@redhat.com>
12410
12411 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12412 (gcore section): Ifdef for Solaris and Unixware only.
12413 (procfs_do_thread_registers): Unixware needs one lwpstatus
12414 per thread (not one prstatus or pstatus).
12415 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12416 not over all gdb threads. For unixware, call elfcore_write_pstatus
12417 once before iterating over threads.
12418
12419 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12420
12421 * arm-tdep.h: New file.
12422 * arm-tdep.c: Include arm-tdep.h.
12423 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12424 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12425 (arm_print_float_info, arm_register_type, convert_to_extended)
12426 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12427 (arm_extract_return_value, arm_register_name): Make static.
12428 (arm_software_single_step): Similarly. Fix types in declaration.
12429 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12430 (arm_store_return_value, arm_store_struct_return): New functions.
12431 (arm_gdbarch_init): Register the above functions. Also register
12432 call_dummy_start_offset, sizeof_call_dummy_words,
12433 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12434 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12435 max_register_virtual_size, register_size. Set up
12436 prologue_cache.saved_regs here, rather than ...
12437 (_initialize_arm_tdep): ... here.
12438 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12439 declarations.
12440 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12441 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12442 (arm_print_float_info, arm_register_type, convert_to_extended)
12443 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12444 (arm_extract_return_value, arm_register_name): Delete declarations.
12445 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12446 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12447 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12448 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12449 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12450 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12451 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12452 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12453 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12454 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12455 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12456 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12457 interface.
12458 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12459 * remote-rdi.c remote-rdp.c: Likewise.
12460 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12461 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12462 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12463 definition.
12464
12465 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12466 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12467 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12468 from non-ARM_ prefixed definitions.
12469 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12470 all uses of above.
12471 * remote-rdi.c remote-rdp.c: Likewise.
12472 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12473
12474 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12475
12476 * arm-tdep.c (arm_frameless_function_invocation)
12477 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12478 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12479 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12480 (arm_pop_frame, arm_get_next_pc): Make static.
12481 (arm_gdbarch_init): Register above in gdbarch structure.
12482 (arm_read_fp): Renamed from arm_target_read_fp.
12483 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12484 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12485 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12486 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12487 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12488 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12489 (arm_pc_is_thumb_dummy): Delete declarations.
12490 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12491 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12492 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12493 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12494
12495 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12496
12497 * symtab.c (compare_search_syms): New function.
12498 (sort_search_symbols): New function.
12499 (search_symbols): Sort symbols after searching rather than
12500 before.
12501
12502 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12503
12504 * NEWS: Linux -> GNU/Linux.
12505
12506 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12507
12508 * gdbarch.sh: For for level one methods, disallow a definition
12509 when partially multi-arched. Add comments explaining rationale.
12510 * gdbarch.h: Re-generate.
12511
12512 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12513
12514 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12515 multi-arch partial.
12516
12517 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12518
12519 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12520 field. Use diff -u.
12521 * gdbarch.c: Re-generate.
12522
12523 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12524
12525 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12526 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12527 partial.
12528
12529 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12530
12531 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12532 multi-arch partial.
12533 (PUSH_ARGUMENTS): Switch to using predefault.
12534 * gdbarch.c: Regenerate.
12535
12536 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12537
12538 * valops.c (PUSH_ARGUMENTS): Delete definition.
12539 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12540 partial. Default to default_push_arguments.
12541 * gdbarch.h, gdbarch.c: Regenerate.
12542
12543 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12544
12545 * defs.h (throw_exception): Rename return_to_top_level. Update
12546 comments.
12547 * utils.c (error_stream, internal_verror, quit): Ditto.
12548 * top.c (throw_exception, catcher): Ditto.
12549 * sparclet-rom.c (sparclet_load): Ditto.
12550 * remote.c (interrupt_query, minitelnet): Ditto.
12551 * remote-sds.c (interrupt_query): Ditto.
12552 * remote-mips.c (mips_error, mips_kill): Ditto.
12553 * ocd.c (interrupt_query): Ditto.
12554 * monitor.c (monitor_interrupt_query): Ditto.
12555 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12556 * target.h: Update comment.
12557
12558 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12559
12560 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12561
12562 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12563 default_double_format.
12564 * gdbarch.h, gdbarch.c: Re-generate.
12565 * findvar.c (floatformat_unknown): Delete variable definition.
12566 * doublest.h (floatformat_unknown): Delete variable declaration.
12567
12568 2002-02-09 Jim Blandy <jimb@redhat.com>
12569
12570 * stabsread.c (read_type): Add code to parse Sun's syntax for
12571 prototyped function types.
12572
12573 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12574
12575 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12576 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12577
12578 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12579
12580 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12581 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12582 now _initialize_xcoffsolib gets called again and overrides the
12583 commands from solib.c in a native configuration.
12584
12585 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12586
12587 * doublest.c (store_typed_floating): Don't try to return a value.
12588 Fixes PR gdb/290.
12589
12590 2002-02-08 Jim Blandy <jimb@redhat.com>
12591
12592 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12593 is prototyped and has no arguments, print its argument list as
12594 `(void)'.
12595
12596 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12597
12598 * MAINTAINERS (write-after-approval): Add myself.
12599 (paper-trail): I've escaped!
12600
12601 2002-02-08 Christopher Faylor <cgf@redhat.com>
12602
12603 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12604 changes.
12605 (_initialize_check_for_gdb_ini): Ditto.
12606
12607 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12608
12609 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12610 xaprintf -> xasprintf.
12611
12612 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12613
12614 * win32-nat.c: Remove use of printf and sprintf functions.
12615
12616 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12617
12618 * arm-tdep.c (arm_frame_chain_valid): Make static.
12619 (arm_push_arguments): Likewise.
12620 (arm_gdbarch_init): New function.
12621 (_initialize_arm_tdep): Call it.
12622 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12623 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12624 (FRAME_CHAIN_VALID): Delete.
12625 (arm_frame_chain_valid): Delete declaration.
12626 (PUSH_ARGUMENTS): Delete.
12627 (arm_push_arguments): Delete declaration.
12628 (CALL_DUMMY_P): Delete.
12629
12630 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12631 Corinna Vinschen <vinschen@redhat.com>
12632
12633 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12634 on builtin float types.
12635
12636 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12637
12638 * utils.c: Include <curses.h> before "bfd.h".
12639 * tui/tui-hooks.c: Likewise.
12640 * tui/tui.c: Likewise.
12641 * tui/tuiCommand.c: Likewise.
12642 * tui/tuiData.c: Likewise.
12643 * tui/tuiDataWin.c: Likewise.
12644 * tui/tuiDisassem.c: Likewise.
12645 * tui/tuiGeneralWin.c: Likewise.
12646 * tui/tuiIO.c: Likewise.
12647 * tui/tuiLayout.c: Likewise.
12648 * tui/tuiRegs.c: Likewise.
12649 * tui/tuiSource.c: Likewise.
12650 * tui/tuiSourceWin.c: Likewise.
12651 * tui/tuiStack.c: Likewise.
12652 * tui/tuiWin.c: Likewise.
12653
12654 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12655
12656 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12657 to include space for pseudoregs as well. Update loops accordingly.
12658 (sh_fp_frame_init_saved_regs): Ditto.
12659 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12660
12661 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12662
12663 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12664 Add Richard Earnshaw to Arm maintainers.
12665
12666 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12667
12668 * defs.h (warning_begin): Delete declaration.
12669
12670 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12671 Delete macro.
12672
12673 2002-02-07 Michael Snyder <msnyder@redhat.com>
12674
12675 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12676 Logic bug, remove misplaced else.
12677
12678 2002-02-07 Klee Dienes <klee@apple.com>
12679
12680 * fork-inferior.c (fork_inferior): Add '!' to the list of
12681 characters that need to be quoted when building a string for the
12682 shell. Quote '!' specifically with a backslash, since CSH chokes
12683 when trying to evaluate "str!str".
12684
12685 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12686
12687 * rdi-share/host.h: Only provide a typedef for bool if it is not
12688 defined.
12689
12690 2002-02-04 Michael Snyder <msnyder@redhat.com>
12691
12692 * breakpoint.h (enum bptype): Add new overlay event bp type.
12693 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12694
12695 * breakpoint.c (create_internal_breakpoint): New function.
12696 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12697 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12698 (create_thread_event_breakpoint): Ditto.
12699 (create_solib_event_breakpoint): Ditto.
12700 (create_overlay_event_breakpoint): New function.
12701 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12702 (update_breakpoints_after_exec): Delete and re-initialize
12703 overlay event breakpoints after an exec. Add FIXME comment
12704 about longjmp breakpoint.
12705 (print_it_typical): Ignore overlay event breakpoints.
12706 (print_one_breakpoint): Ditto.
12707 (mention): Ditto.
12708 (bpstat_what): Do not stop for overlay event breakpoints.
12709 (delete_breakpoint): Don't delete overlay event breakpoints.
12710 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12711 (breakpoint_re_set): Re-create overlay event breakpoint.
12712
12713 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12714 (overlay_manual_command): Disable overlay breakpoints.
12715 (overlay_off_command): Disable overlay breakpoints.
12716
12717 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12718
12719 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12720 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12721 to here from config/tm-arm.h.
12722 (coff_sym_is_thumb): Make static.
12723 (arm_elf_make_msymbol_special): New function.
12724 (arm_coff_make_msymbol_special): New function.
12725 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12726 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12727 (coff_sym_is_thumb): Delete declaration.
12728 (arm_elf_make_msymbol_special): Declare.
12729 (arm_coff_make_msymbol_special): Declare.
12730 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12731 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12732
12733 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12734
12735 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12736
12737 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12738
12739 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12740 * gdbarch.c gdbarch.h: Regenerate.
12741 * arch-utils.c (default_print_float_info): New function.
12742 * arch-utils.h (default_print_float_info): Prototype it.
12743 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12744 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12745 (PRINT_FLOAT_INFO): Document it.
12746
12747 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12748 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12749 (PRINT_FLOAT_INFO): Define.
12750
12751 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12752
12753 * win32-nat.c (_initialize_check_for_gdb_ini):
12754 Add typecast to sprintf argument to suppress a warning.
12755
12756 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12757
12758 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12759 to allow easier handling of pass state.
12760 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12761 that gives exception name and address.
12762 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12763 and set last_sig value to ourstatus->value.sig. Some missing
12764 exceptions added.
12765 (child_continue): Correctly report continue_status.
12766 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12767 TARGET_SIGNAL_0 (new default value).
12768 (child_resume): consider sig argument passed to decide if
12769 the exception should be passed to debuggee or not.
12770
12771 2002-02-05 Michael Snyder <msnyder@redhat.com>
12772
12773 * regcache.c (fetch_register): Call target_fetch_register
12774 only if we don't call FETCH_PSEUDO_REGISTER.
12775 (store_register): Call target_store_register only if we
12776 don't call STORE_PSEUDO_REGISTER.
12777
12778 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12779
12780 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12781 ELF_MAKE_MSYMBOL_SPECIAL.
12782 * gdbarch.c, gdbarch.h: Regenerate.
12783 * arch-utils.c (default_make_msymbol_special): New function.
12784 * arch-utils.h (default_make_msymbol_special): Export.
12785 * elfread.c (elf_symtab_read): Compile use of
12786 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12787 multiarched.
12788 * coffread.c (coff_symtab_read): Ditto, for
12789 COFF_MAKE_MSYMBOL_SPECIAL.
12790
12791 2002-02-05 Jim Blandy <jimb@redhat.com>
12792
12793 * solib-svr4.c (svr4_truncate_ptr): New function.
12794 (svr4_relocate_section_addresses): Do the address arithmetic with
12795 the appropriate truncation for target addresses, even when
12796 CORE_ADDR is larger than a target address.
12797
12798 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12799
12800 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12801 to (int *).
12802
12803 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12804
12805 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12806 code.
12807
12808 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12809
12810 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12811
12812 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12813
12814 * gdbserver/linux-low.c: Remove unused include files.
12815
12816 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12817
12818 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12819 (read_inferior_memory): Use it.
12820 (write_inferior_memory): Likewise.
12821
12822 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12823
12824 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12825 grubbing through sys_errlist.
12826
12827 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12828
12829 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12830
12831 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12832 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12833
12834 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12835
12836 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12837 (do_sfunc, set_cmd_sfunc): New functions.
12838
12839 * command.h (struct cmd_list_element): Add field func.
12840 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12841 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12842 * cli/cli-decode.h: Ditto.
12843
12844 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12845 (help_all, help_cmd_list): Ditto.
12846 (find_cmd, complete_on_cmdlist): Ditto.
12847 * top.c (execute_command): Ditto.
12848
12849 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12850 function.sfunc.
12851
12852 * infcmd.c (notice_args_read): Fix function signature.
12853
12854 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12855 * cli/cli-decode.c (add_set_cmd): Ditto.
12856 * utils.c (initialize_utils): Ditto.
12857 * maint.c (_initialize_maint_cmds): Ditto.
12858 * infrun.c (_initialize_infrun): Ditto.
12859 * demangle.c (_initialize_demangler): Ditto.
12860 * remote.c (add_packet_config_cmd): Ditto.
12861 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12862 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12863 * proc-api.c (_initialize_proc_api): Ditto.
12864 * kod.c (_initialize_kod): Ditto.
12865 * valprint.c (_initialize_valprint): Ditto.
12866 * top.c (init_main): Ditto.
12867 * infcmd.c (_initialize_infcmd): Ditto.
12868 * corefile.c (_initialize_core): Ditto.
12869 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12870 * arch-utils.c (initialize_current_architecture): Ditto.
12871 (_initialize_gdbarch_utils): Ditto.
12872 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12873
12874 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12875 * wince.c (_initialize_inftarg): Ditto.
12876 * symfile.c (_initialize_symfile): Ditto.
12877 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12878 * language.c (_initialize_language): Ditto.
12879 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12880
12881 2002-02-04 Michael Snyder <msnyder@redhat.com>
12882
12883 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12884
12885 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12886
12887 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12888 Add rules for building the register data files.
12889
12890 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12891
12892 * regformats/regdat.sh: Add braces to the definition of
12893 expedite_regs_${arch}.
12894
12895 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12896
12897 * regformats/regdef.h (struct reg): Add comment describing the
12898 requirements for offset and size fields.
12899
12900 2002-02-04 Andreas Schwab <schwab@suse.de>
12901
12902 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12903 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12904
12905 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12906
12907 * gdbarch.sh (copyright): Update years in generated header.
12908 (SMASH_TEXT_ADDRESS): Add rule.
12909 * gdbarch.h, gdbarch.c: Re-generate.
12910 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12911 * dbxread.c: Likewise.
12912 * dwarfread.c: Likewise.
12913 * elfread.c: Likewise.
12914 * somread.c: Likewise.
12915
12916 * arm-tdep.c (arm_smash_text_address): New function.
12917 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12918
12919 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12920
12921 Add support for hardware watchpoints on win32 native.
12922 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12923 CONTEXT_DEBUG_REGISTERS.
12924 (dr variable): New variable. Static array containing a local copy
12925 of debug registers.
12926 (debug_registers_changed): New variable. Reflects when debug registers
12927 are changed and need to be written to inferior.
12928 (debug_registers_used): New variable. Reflects when any debug register
12929 was set, used when new threads are created.
12930 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12931 i386-nat code.
12932 (thread_rec): Set dr array if id is the thread of current_event .
12933 (child_continue, child_resume): Change the debug registers for all
12934 threads if debug_registers_changed.
12935 (child_add_thread): Change the debug registers if debug_registers_used.
12936 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12937 Link nm.h to new nm-cygwin.h file.
12938 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12939 of hardware registers.
12940
12941 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12942
12943 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12944 Restore behavour broken by 2002-01-20 Andrew Cagney
12945 <ac131313@redhat.com> IEEE_FLOAT removal.
12946
12947 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12948
12949 * c-valprint.c (c_val_print): Pass a proper valaddr to
12950 cp_print_class_method.
12951 * valops.c (search_struct_method): If there is only one method
12952 and args is NULL, return that method.
12953
12954 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12955
12956 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12957 accessing tag_name directly.
12958
12959 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12960
12961 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12962 of accessing tag_name directly.
12963
12964 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12965
12966 PR gdb/280
12967 * gdbtypes.c (replace_type): New function.
12968 * gdbtypes.h (replace_type): Add prototype.
12969 * stabsread.c (read_type): Use replace_type.
12970
12971 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12972
12973 * Makefile.in (memattr.o): Add missing dependencies rule.
12974
12975 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12976
12977 * breakpoint.c (break_at_finish_command): Really export.
12978 (break_at_finish_at_depth_command): Ditto.
12979 (tbreak_at_finish_command): Ditto.
12980 * hppa-tdep.c: Include completer.h.
12981 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12982 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12983
12984 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12985
12986 * utils.c (do_write): New function.
12987 (error_stream): Rewrite combining the code from error_begin and
12988 verror.
12989 (verror): Rewrite using error_stream.
12990 (error_begin): Delete function.
12991
12992 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12993
12994 * utils.c (error_begin): Make static.
12995 * defs.h (error_begin): Delete declaration.
12996
12997 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12998 (decode_line_1): Use cplusplus_error instead of error_begin,
12999 cplusplus_hint and return_to_top_level.
13000 * coffread.c (coff_symfile_read): Use error instead of error_begin
13001 and return_to_top_level.
13002 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13003
13004 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13005
13006 * language.h (type_error, range_error): Make string parameter
13007 constant.
13008 * language.c (warning_pre_print): Delete extern declaration.
13009 * dwarfread.c (warning_pre_print): Ditto.
13010 * language.c (type_error, range_error): Rewrite to use verror and
13011 vwarning instead of warning_begin.
13012
13013 2002-02-01 Michael Snyder <msnyder@redhat.com>
13014
13015 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13016 (set_ignore_count): Move misplaced comment back where it belongs.
13017
13018 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13019
13020 * command.h (NO_FUNCTION): Delete macro.
13021 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13022 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13023 * tracepoint.c (_initialize_tracepoint): Ditto.
13024 * cli/cli-decode.c (add_set_cmd): Ditto.
13025 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13026
13027 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13028
13029 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13030 Update ``this'' pointer when calling virtual functions.
13031
13032 2002-02-01 Michael Snyder <msnyder@redhat.com>
13033
13034 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13035 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13036
13037 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13038
13039 * regformats/reg-arm.dat: New file.
13040 * regformats/reg-i386.dat: New file.
13041 * regformats/reg-ia64.dat: New file.
13042 * regformats/reg-m68k.dat: New file.
13043 * regformats/reg-mips.dat: New file.
13044 * regformats/reg-ppc.dat: New file.
13045 * regformats/reg-sh.dat: New file.
13046 * regformats/regdef.h: New file.
13047 * regformats/regdat.sh: New file.
13048
13049 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13050
13051 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13052 (arm_frame_args_address, arm_frame_locals_address): New functions.
13053 (arm_frame_num_args): New function.
13054 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13055 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13056 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13057
13058 2002-01-31 Michael Snyder <msnyder@redhat.com>
13059
13060 * breakpoint.c (break_at_finish_command): Export.
13061 (break_at_finish_at_depth_command): Export.
13062 (tbreak_at_finish_command): Export.
13063 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13064 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13065 "txbreak" commands, which are HPPA specific.
13066
13067 * printcmd.c (disassemble_command): Remove an ancient
13068 artifact of an old merge.
13069
13070 * symfile.h (enum overlay_debugging_state):
13071 Define enum constant values for overlay mode.
13072 * symfile.c (overlay_debugging): Use enums instead of literals.
13073 (overlay_is_mapped, overlay_auto_command,
13074 overlay_manual_command): Ditto.
13075
13076 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13077 breakpoint_here_p, breakpoint_inserted_here_p,
13078 breakpoint_thread_match, bpstat_stop_status,
13079 describe_other_breakpoints, check_duplicates, clear_command):
13080 Coding standard fixes.
13081
13082 * target.c (target_xfer_memory): Add spaces, coding standard.
13083 (do_xfer_memory): Add missing line to trust-readonly
13084 code: check bfd SEC_READONLY flag for section.
13085
13086 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13087
13088 * PROBLEMS: Fix typo, 5.1->5.1.1.
13089
13090 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13091
13092 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13093 data symbols, since we search based on textlow and texthigh.
13094 (find_pc_sect_symtab): Likewise.
13095
13096 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13097
13098 * defs.h (vwarning): Declare.
13099 * utils.c (vwarning): New function.
13100 (warning): Call vwarning.
13101 (warning_begin): Delete function.
13102
13103 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13104 the warning message.
13105 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13106 warning_begin.
13107
13108 2002-01-30 Michael Snyder <msnyder@redhat.com>
13109
13110 * NEWS: Mention "set trust-readonly-sections" command.
13111 Mention generate-core-file command.
13112
13113 2002-01-15 Michael Snyder <msnyder@redhat.com>
13114
13115 * target.c: New command, "set trust-readonly-sections on".
13116 (do_xfer_memory): Honor the suggestion to trust readonly sections
13117 by reading them from the object file instead of from the target.
13118 (initialize_targets): Register command "set trust-readonly-sections".
13119
13120 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13121
13122 * parse.c (target_map_name_to_register): Simplify, search regs and
13123 pseudo-regs using a single loop.
13124
13125 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13126
13127 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13128
13129 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13130
13131 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13132 * config/i386/i386v42mp.mh: Add i387-nat.o .
13133 * i386v4-nat.c: Include i387-nat.h.
13134 (supply_fpregset): Use i387_supply_fsave.
13135 (fill_fpregset): Use i387_fill_fsave.
13136
13137 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13138
13139 * arm-tdep.c (arm_call_dummy_words): Define.
13140 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13141 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13142 (CALL_DUMMY_WORDS): Define.
13143 (arm_call_dummy_words): Declare.
13144 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13145 (arm_linux_call_dummy_words): Declare.
13146
13147 2002-01-30 Andreas Schwab <schwab@suse.de>
13148
13149 * m68klinux-nat.c: Fix last change to use regcache_collect
13150 instead of referencing registers[] directly.
13151
13152 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13153
13154 * parse.c (target_map_name_to_register): Delete code wrapped in
13155 #ifdef REGISTER_NAME_ALIAS_HOOK.
13156
13157 2002-01-28 Michael Snyder <msnyder@redhat.com>
13158
13159 * regcache.c (legacy_read_register_gen): Need to be able to
13160 read pseudo-register as well as real register.
13161 (legacy_write_register_gen): Ditto.
13162
13163 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13164
13165 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13166 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13167 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13168 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13169 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13170 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13171 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13172 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13173 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13174 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13175 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13176 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13177 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13178 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13179 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13180 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13181 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13182 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13183 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13184 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13185
13186 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13187
13188 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13189 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13190 (initialize_current_architecture): Update target_byte_order using
13191 information from BFD.
13192 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13193 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13194
13195 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13196
13197 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13198 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13199
13200 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13201 #ifdef INVALID_FLOAT.
13202 * infcmd.c (do_registers_info): Ditto.
13203 * values.c (unpack_double): Ditto. Add comment.
13204
13205 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13206 already commented out.
13207
13208 2002-01-26 Andreas Schwab <schwab@suse.de>
13209
13210 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13211 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13212 registers and add support for PTRACE_GETREGS.
13213
13214 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13215
13216 GDB 5.1.1 released from 5.1 branch.
13217 * NEWS: Add 5.1.1 news.
13218 * README: Sync with 5.1 branch.
13219
13220 2002-01-23 Fred Fish <fnf@redhat.com>
13221
13222 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13223 stabstring on initial malloc. Reallocing will copy it for us,
13224 if necessary.
13225
13226 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13227
13228 * Makefile.in (hpread_h): Delete.
13229 (HFILES_NO_SRCDIR): Remove hpread.h.
13230 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13231 (hpread.o): Update dependencies.
13232 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13233
13234 * hp-psymtab-read.c: Remove file.
13235 * hp-symtab-read.c: Remove file.
13236 * hpread.h: Remove file.
13237
13238 * hpread.c: Merge all contents of hp-psymtab-read.c,
13239 hp-symtab-read.c and hpread.h into this file, as it was prior to
13240 January 1999.
13241
13242 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13243 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13244 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13245 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13246
13247 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13248
13249 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13250 fill_gregset): Call gdbarch_tdep() just once, assign result to
13251 variable and use that, instead of calling the function several
13252 times.
13253
13254 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13255
13256 * configure.host: Accept sparcv9 as alias for sparc64.
13257 * configure.tgt: Likewise.
13258
13259 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13260
13261 * solib-aix5.c (build_so_list_from_mapfile)
13262 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13263 arguments is not reversed.
13264 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13265 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13266
13267 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13268
13269 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13270 modified version of obsolete sh_fetch_pseudo_register.
13271 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13272 (sh4_register_read): New function.
13273 (sh_pseudo_register_write): New function. Renamed and modified
13274 version of obsolete sh_store_pseudo_register.
13275 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13276 (sh4_register_write): New function.
13277 (sh_gdbarch_init): Remove setting of gdbarch function
13278 fetch_pseudo_register and store_pseudo_register. Remove setting of
13279 register_convert_to_raw, register_convert_to_virtual,
13280 register_convertible.
13281 (sh_sh4_register_convertible): Delete. No longer needed. All is
13282 taken care by architecture specific functions
13283 register_read/register_write.
13284 (sh_sh4_register_convert_to_virtual): Make static.
13285 (sh_sh4_register_convert_to_raw): Ditto.
13286
13287 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13288
13289 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13290 (floatformat_is_nan, floatformat_mantissa): Ditto.
13291
13292 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13293 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13294 builtin_type_ieee_double_little,
13295 builtin_type_ieee_double_littlebyte_bigword,
13296 builtin_type_m68881_ext, builtin_type_i960_ext,
13297 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13298 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13299 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13300 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13301
13302 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13303
13304 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13305 parameter. Set frameless flag if it exists and depended of
13306 whether the scanned function is frameless or not.
13307 (xstormy16_skip_prologue): If function is frameless, return
13308 result of xstormy16_scan_prologue().
13309 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13310 call.
13311
13312 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13313
13314 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13315 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13316 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13317 sh_sh4_register_byte, sh_sh4_register_raw_size,
13318 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13319 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13320 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13321 sh_store_pseudo_register, sh_do_pseudo_register): Call
13322 gdbarch_tdep() just once, assign result to variable and use that,
13323 instead of calling the function several times.
13324
13325 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13326
13327 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13328 macros instead of LAST_FPU_CTRL_REGNUM.
13329 (store_register): Likewise.
13330
13331 2002-01-21 Jim Blandy <jimb@redhat.com>
13332
13333 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13334 is up-to-date before running the program, not just when a program
13335 exits.
13336
13337 2002-01-21 Fred Fish <fnf@redhat.com>
13338
13339 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13340 when we have found all instructions we are looking for.
13341
13342 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13343
13344 * arm-tdep.c (arm_register_name): New function.
13345 (arm_registers_names): Make static.
13346 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13347 (arm_register_name): Declare.
13348 (REGISTER_NAME): Use it.
13349
13350 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13351 Kevin Buettner <kevinb@redhat.com>
13352
13353 Convert arm targets to new FRAME interface.
13354 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13355 (arm_frame_find_save_regs): Delete.
13356 (arm_frame_init_saved_regs): New.
13357 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13358 Allocate extra_info as required. Convert all uses of fsr.regs
13359 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13360 to use extra_info.
13361 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13362 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13363 (check_prologue_cache, save_prologue_cache): Likewise.
13364 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13365 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13366 (FRAME_FIND_SAVED_REGS): Delete.
13367 (arm_frame_find_saved_regs): Delete prototype.
13368 (arm_frame_init_saved_regs): New prototype.
13369 (FRAME_INIT_SAVED_REGS): Define.
13370
13371 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13372
13373 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13374
13375 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13376
13377 From Jeff Law <law@redhat.com>:
13378 * infttrace.c: Include <sys/pstat.h>.
13379 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13380 exec file if the ttrace equivalent fails.
13381
13382 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13383
13384 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13385 (closeLogFile): Ditto.
13386
13387 2002-01-20 Michael Chastain <mec@shout.net>
13388
13389 * top.c (print_gdb_version): Bump copyright year to 2002.
13390
13391 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13392
13393 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13394 Zannoni and Eli Zaretskii.
13395
13396 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13397
13398 * buildsym.c: Update copyright years.
13399 * c-typeprint.c: Likewise.
13400 * dwarf2read.c: Likewise.
13401 * f-typeprint.c: Likewise.
13402 * gdbtypes.c: Likewise.
13403 * gdbtypes.h: Likewise.
13404 * hp-symtab-read.c: Likewise.
13405 * hpread.c: Likewise.
13406 * mdebugread.c: Likewise.
13407 * p-typeprint.c: Likewise.
13408
13409 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13410
13411 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13412 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13413 byte-order selectable.
13414 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13415 * arch-utils.c: Ditto.
13416 (set_endian): Ditto.
13417 (set_endian_from_file): Ditto.
13418 * gdbserver/low-sim.c (create_inferior): Ditto.
13419 * gdbarch.sh: Ditto.
13420 * gdbarch.h: Re-generate.
13421 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13422 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13423 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13424 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13425 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13426 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13427 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13428 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13429 macro definition.
13430 * config/mips/tm-wince.h: Remove #undef of macro
13431 TARGET_BYTE_ORDER_SELECTABLE.
13432 * config/sh/tm-wince.h: Ditto.
13433
13434 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13435
13436 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13437 member function fields. Add accessor macro
13438 TYPE_FN_FIELD_ARTIFICIAL.
13439 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13440 * c-typeprint.c (c_type_print_base): Skip artificial member
13441 functions.
13442
13443 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13444
13445 * f-typeprint.c: Delete unused function f_type_print_args.
13446 * p-typeprint.c: Delete unused function pascal_type_print_args.
13447
13448 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13449
13450 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13451 comment. Add ``artificial'' to ``union field_location''.
13452
13453 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13454
13455 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13456 * mdebugread.c (parse_symbol): Likewise.
13457 * stabsread.c (define_symbol): Likewise.
13458 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13459 initializing TYPE_FIELD_BITPOS to n (obsolete).
13460 (hpread_doc_function_type): Likewise.
13461 * hpread.c (hpread_function_type): Likewise.
13462
13463 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13464
13465 * configure.in (host_makefile_frag): Only require a host makefile
13466 fragment when a native build.
13467 * configure: Re-generate.
13468
13469 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13470
13471 * doublest.h (floatformat_from_type): Declare.
13472 * doublest.c (floatformat_from_type): New function.
13473 (convert_typed_floating): Use.
13474
13475 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13476 call to function floatformat_from_type.
13477
13478 * gdbarch.sh (IEEE_FLOAT): Delete.
13479 * gdbarch.h, gdbarch.c: Re-generate.
13480 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13481 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13482 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13483 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13484 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13485 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13486 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13487 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13488 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13489 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13490 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13491 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13492
13493 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13494 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13495 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13496 * sh-tdep.c (sh_gdbarch_init): Ditto.
13497 * mips-tdep.c (mips_gdbarch_init): Ditto.
13498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13499 * cris-tdep.c (cris_gdbarch_init): Ditto.
13500
13501 2002-01-20 Jiri Smid <smid@suse.cz>
13502
13503 * configure.host, configure.tgt: Support x86-64.
13504 * NEWS: Note new target x86-64.
13505
13506 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13507 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13508 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13509 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13510 x86-64-linux-nat.o): Fix dependencies.
13511
13512 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13513
13514 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13515 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13516 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13517 * config/sparc/xm-sun4os4.h: Delete file.
13518 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13519
13520 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13521
13522 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13523 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13524 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13525 * config/i386/i386lynx.mh (XM_FILE): Delete.
13526 * config/rs6000/xm-rs6000ly.h: Delete file.
13527 * config/sparc/xm-sparclynx.h: Delete file.
13528 * config/m68k/xm-m68klynx.h: Delete file.
13529 * config/i386/xm-i386lynx.h: Delete file.
13530 * config/xm-lynx.h: Delete file.
13531 * config/djgpp/fnchange.lst: Update.
13532
13533 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13534
13535 * alpha-tdep.c (alpha_register_byte): New function.
13536 (alpha_register_raw_size): Ditto.
13537 (alpha_register_virtual_size): Ditto.
13538 (alpha_skip_prologue_internal): Renamed from
13539 alpha_skip_prologue.
13540 (alpha_skip_prologue): New version that calls
13541 alpha_skip_prologue_internal.
13542 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13543 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13544 second argument from alpha_skip_prologue.
13545 (REGISTER_BYTE): Use alpha_register_byte.
13546 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13547 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13548 (FRAMELESS_FUNCTION_INVOCATION): Use
13549 generic_frameless_function_invocation_not.
13550 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13551 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13552
13553 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13554
13555 * config/mips/xm-news-mips.h: Delete file.
13556 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13557
13558 * config/m88k/xm-m88k.h: Delete file.
13559 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13560 * config/m88k/xm-delta88v4.h: Ditto.
13561 * config/m88k/xm-delta88.h: Ditto.
13562
13563 * config/alpha/xm-fbsd.h: Delete file.
13564 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13565
13566 * config/sparc/xm-sparc.h: Delete file.
13567 * Makefile.in (xm-sun4os4.h): Delete dependency.
13568 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13569 * config/sparc/xm-sun4os4.h: Ditto.
13570 * config/sparc/xm-linux.h: Ditto.
13571
13572 * config/i386/xm-windows.h: Delete file.
13573
13574 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13575
13576 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13577 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13578
13579 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13580
13581 * alpha-tdep.c (alpha_call_dummy_words): New.
13582 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13583 (CALL_DUMMY_P): Define.
13584 (CALL_DUMMY_WORDS): Define.
13585 (SIZEOF_CALL_DUMMY_WORDS): Define.
13586
13587 2002-01-19 Per Bothner <per@bothner.com>
13588
13589 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13590 isn't NULL, which can happen with some gcj-3.x-produced code.
13591
13592 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13593
13594 * alpha-tdep.c (alpha_register_virtual_type): New function.
13595 (alpha_init_frame_pc_first): Ditto.
13596 (alpha_fix_call_dummy): Ditto.
13597 (alpha_store_struct_return): Ditto.
13598 (alpha_extract_struct_value_address): Ditto.
13599 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13600 alpha_register_virtual_type.
13601 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13602 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13603 alpha_extract_struct_value_address.
13604 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13605 (INIT_FRAME_PC): Use init_frame_pc_noop.
13606 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13607
13608 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13609
13610 * i386gnu-nat.c: Include "i386-tdep.h".
13611 (fetch_fpregs): Simplify code dealing with uninitialized floating
13612 point states such that it doesn't require FP7_REGNUM.
13613
13614 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13615
13616 * alpha-tdep.c (frame_extra_info): New.
13617 (alpha_find_saved_regs): Make static. Use
13618 frame->extra_info.
13619 (alpha_frame_init_saved_regs): New function.
13620 (alpha_frame_saved_pc): Use frame->extra_info.
13621 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13622 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13623 (init_extra_frame_info): Rename to...
13624 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13625 (alpha_print_extra_frame_info): New function.
13626 (alpha_frame_locals_address): Ditto.
13627 (alpha_frame_args_address): Ditto.
13628 (alpha_pop_frame): Use frame->extra_info.
13629 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13630 alpha_frame_args_address.
13631 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13632 (alpha_find_saved_regs): Remove prototype.
13633 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13634 (EXTRA_FRAME_INFO): Remove.
13635 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13636 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13637
13638 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13639
13640 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13641 (alpha_cannot_fetch_register): Ditto.
13642 (alpha_cannot_store_register): Ditto.
13643 (alpha_register_convertible): Ditto.
13644 (alpha_use_struct_convention): Ditto.
13645 * config/alpha/tm-alpha.h: Update copyright years.
13646 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13647 (INNER_THAN): Use core_addr_lessthan.
13648 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13649 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13650 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13651 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13652 (FRAME_CHAIN): Remove unnecessary cast.
13653
13654 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13655
13656 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13657 obsolete.
13658
13659 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13660
13661 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13662 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13663 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13664 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13665 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13666 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13667 * x86-64-linux-nat.c: Ditto.
13668
13669 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13670
13671 * alpha-tdep.c (alpha_register_name): New function.
13672 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13673 (REGISTER_NAME): Define.
13674
13675 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13676
13677 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13678
13679 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13680
13681 * alpha-tdep.c: Update copyright years.
13682 (alpha_next_pc): New function.
13683 (alpha_software_single_step): Ditto.
13684 * config/alpha/tm-alpha.h: Add prototype for
13685 alpha_software_single_step.
13686
13687 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13688
13689 * alphabsd-nat.c: Update copyright years.
13690 (fill_gregset): Use regcache_collect.
13691 (fill_fpregset): Likewise.
13692 (fetch_inferior_registers): Only fetch integer registers
13693 if requested to do so.
13694 (store_inferior_registers): Only store integer registers
13695 if requested to do so.
13696
13697 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13698
13699 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13700 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13701 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13702 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13703 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13704 * config/arm/linux.mh (XDEPFILES): Delete.
13705 * config/arm/nbsd.mh (XDEPFILES): Delete.
13706 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13707 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13708 * config/i386/i386m3.mh (XDEPFILES): Delete.
13709 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13710 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13711 * config/i386/fbsd.mh (XDEPFILES): Delete.
13712 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13713 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13714 * config/i386/i386v4.mh (XDEPFILES): Delete.
13715 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13716 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13717 * config/i386/i386aix.mh (XDEPFILES): Delete.
13718 * config/i386/go32.mh (XDEPFILES): Delete.
13719 * config/i386/cygwin.mh (XDEPFILES): Delete.
13720 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13721 * config/i386/i386mach.mh (XDEPFILES): Delete.
13722 * config/i386/i386v32.mh (XDEPFILES): Delete.
13723 * config/i386/linux.mh (XDEPFILES): Delete.
13724 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13725 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13726 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13727 * config/i386/i386sco.mh (XDEPFILES): Delete.
13728 * config/i386/i386v.mh (XDEPFILES): Delete.
13729 * config/i386/nbsd.mh (XDEPFILES): Delete.
13730 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13731 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13732 * config/i386/symmetry.mh (XDEPFILES): Delete.
13733 * config/i386/obsd.mh (XDEPFILES): Delete.
13734 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13735 * config/ia64/linux.mh (XDEPFILES): Delete.
13736 * config/ia64/aix.mh (XDEPFILES): Delete.
13737 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13738 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13739 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13740 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13741 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13742 * config/m68k/linux.mh (XDEPFILES): Delete.
13743 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13744 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13745 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13746 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13747 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13748 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13749 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13750 * config/m88k/delta88.mh (XDEPFILES): Delete.
13751 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13752 * config/m88k/m88k.mh (XDEPFILES): Delete.
13753 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13754 * config/mips/linux.mh (XDEPFILES): Delete.
13755 * config/mips/irix6.mh (XDEPFILES): Delete.
13756 * config/mips/irix5.mh (XDEPFILES): Delete.
13757 * config/mips/irix4.mh (XDEPFILES): Delete.
13758 * config/mips/irix3.mh (XDEPFILES): Delete.
13759 * config/mips/decstation.mh (XDEPFILES): Delete.
13760 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13761 (NATDEPFILES): Move core-aout.o to here.
13762 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13763 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13764 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13765 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13766 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13767 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13768 * config/pa/hpux11.mh (XDEPFILES): Delete.
13769 * config/powerpc/aix.mh (XDEPFILES): Delete.
13770 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13771 * config/powerpc/linux.mh (XDEPFILES): Delete.
13772 * config/romp/rtbsd.mh: Rename XDEPFILES.
13773 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13774 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13775 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13776 * config/s390/s390.mh (XDEPFILES): Delete.
13777 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13778 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13779 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13780 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13781 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13782 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13783 * config/sparc/linux.mh (XDEPFILES): Delete.
13784 * config/vax/vaxult.mh (XDEPFILES): Delete.
13785 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13786 * Makefile.in (DEPFILES): Remove XDEPFILES.
13787
13788 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13789
13790 * utils.c (internal_verror): Fix comments, default is yes not no.
13791 Update queries to match. Default to quit and dump core.
13792
13793 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13794
13795 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13796 copyright.
13797 * defs.h, event-top.c, gdbcmd.h: Ditto.
13798 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13799 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13800 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13801 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13802 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13803 * mi/mi-main.c:Ditto.
13804
13805 * stack.c, symfile.c: Update copyright.
13806
13807 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13808
13809 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13810 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13811 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13812 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13813
13814 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13815
13816 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13817 * gdbserver/low-lynx.c (myattach): Likewise.
13818 * gdbserver/low-nbsd.c (myattach): Likewise.
13819 * gdbserver/low-sim.c (myattach): Likewise.
13820 * gdbserver/low-sparc.c (myattach): Likewise.
13821 * gdbserver/low-sun3.c (myattach): Likewise.
13822
13823 * gdbserver/low-linux.c (myattach): New function.
13824
13825 * gdbserver/server.c (attach_inferior): New function.
13826 (main): Handle "--attach".
13827
13828 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13829
13830 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13831 maintainer.
13832
13833 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13834
13835 * c-typeprint.c (is_type_conversion_operator): Add additional
13836 check for non-conversion operators.
13837
13838 2002-01-15 Michael Snyder <msnyder@redhat.com>
13839
13840 * linux-proc.c: Add "info proc" command, a la procfs.c.
13841 (read_mapping): New function, abstract and re-use code.
13842 (linux_find_memory_regions): Use new func read_mapping.
13843 (linux_info_proc_cmd): New function, implement "info proc".
13844 (_initialize_linux_proc): Add new command "info proc".
13845
13846 2002-01-15 Michael Snyder <msnyder@redhat.com>
13847
13848 * symfile.c (generic_load): Use bfd_map_over_sections method
13849 instead of manipulating bfd structure members directly.
13850 (add_section_size_callback): New function, bfd sections callback
13851 used by generic_load.
13852 (load_sections_callback): New function, bfd sections callback
13853 used by generic_load.
13854
13855 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13856
13857 [Based on work by Jim Blandy]
13858 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13859 (builtin_type_vec128): Export.
13860 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13861 types.
13862 (builtin_type_vec128): New builtin type for 128 bit vector
13863 registers.
13864 (build_gdbtypes): Initialize builtin_type_v16qi and
13865 builtin_type_v8hi. Create the vec128 register builtin type
13866 structure.
13867 (build_builtin_type_vec128): New function.
13868 (_initialize_gdbtypes): Register builtin_type_v16qi and
13869 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13870 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13871 AltiVec register to new builtin type.
13872
13873 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13874
13875 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13876 to make_cv_type.
13877
13878 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13879
13880 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13881 CLEAN_UP_REGISTER_VALUE.
13882 * regcache.c (supply_register): Update only call.
13883
13884 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13885
13886 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13887 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13888 a29k-*-vxworks* targets as obsolete.
13889
13890 2002-01-14 Michael Snyder <msnyder@redhat.com>
13891
13892 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13893 until we can resolve portability issues.
13894 * gregset.h: Remove references to fpxregs.
13895 * gcore.c (gcore_command): Initialize note_sec to NULL.
13896
13897 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13898
13899 * signals.c (target_signal_to_name): Rewrite. Only use
13900 signals[].name when in bounds and non-NULL.
13901
13902 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13903
13904 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13905 * signals.c (target_signal_to_name): Verify that SIG is within the
13906 bounds of the signals array.
13907
13908 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13909
13910 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13911
13912 2002-01-13 Keith Seitz <keiths@redhat.com>
13913
13914 * stack.c (print_frame_info_base): Print the frame's pc
13915 only if when print_frame_info_listing_hook is not defined.
13916
13917 2002-01-13 Keith Seitz <keiths@redhat.com>
13918
13919 * varobj.c (varobj_set_value): Make sure that there were no
13920 errors evaluating the object before attempting to set its
13921 value.
13922 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13923 so this offset adjustment is no longer necessary.
13924 (create_child): Don't set the error flag if the child is
13925 a CPLUS_FAKE_CHILD.
13926 (value_of_child): If value_fetch_lazy fails, return NULL
13927 so that callers will be notified that an error occurred.
13928 (c_value_of_variable): Delay check of variable's validity
13929 until later. We actually want all structs and unions to have
13930 the value "{...}".
13931 Do not return "???" for variables which could not be evaluated.
13932 This error condition must be returned to the caller so that it
13933 can get the error condition from gdb.
13934 (cplus_name_of_child): Adjust index for vptr before figuring
13935 out the name of the child.
13936 (cplus_value_of_child): If a child's (real) parent is not valid,
13937 don't even bother trying to give a value for it. Just return
13938 an error. Change all instances in this function.
13939 (cplus_type_of_child): If our parent is one of the "fake"
13940 parents, we need to get at the type of the real parent, and
13941 derive the child's true type using this information.
13942
13943 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13944
13945 From 2002-01-09 John Marshall <johnm@falch.net>:
13946 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13947 sources.redhat.com, and tweak some related URLs which had
13948 suffered from linkrot.
13949
13950 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13951
13952 From Jeff law:
13953 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13954 structures passed in registers.
13955
13956 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13957
13958 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13959 white space which prevented compilation. Reported by DSK
13960 <dsk@student.unsw.edu.au>.
13961
13962 2002-01-11 Michael Snyder <msnyder@redhat.com>
13963
13964 * symfile.c (build_section_addr_info_from_section_tab):
13965 Use bfd access method instead of manipulating bfd directly.
13966 (syms_from_objfile): Ditto.
13967 (simple_overlay_update_1): Ditto.
13968 (simple_overlay_update): Ditto.
13969 (generic_load): Ditto.
13970 (overlay_unmapped_address): FIXME comment, bfd access methods.
13971 (sections_overlap): FIXME comment, bfd access methods.
13972 (pc_in_mapped_range): FIXME comment, bfd access methods.
13973 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13974 (section_is_mapped): FIXME comment, bfd access methods.
13975 (section_is_overlay): FIXME comment, bfd access methods.
13976
13977 * symfile.c (generic_load): Whitespace and long line cleanups.
13978 Remove duplicate variable, change several local variables to
13979 more appropriate data types.
13980 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13981
13982 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13983
13984 From Peter Schauer:
13985 * language.c (longest_local_hex_string_custom): Use phex_nz to
13986 convert NUM to a hex string.
13987
13988 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13989
13990 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13991 the function.
13992 Update Copyright year.
13993
13994 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13995
13996 * language.c (longest_raw_hex_string): Delete unused function.
13997
13998 2002-01-11 Petr Sorfa <petrs@caldera.com>
13999
14000 * MAINTAINERS (write-after-approval): Add myself.
14001 * dwarf2read.c (read_tag_string_type): Handling of
14002 DW_AT_byte_size.
14003 (read_tag_string_type): FORTRAN fix to prevent propagation of
14004 first string size.
14005 (set_cu_language): Handling of DW_LANG_Fortran95
14006
14007 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14008
14009 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14010 GETPID(inferior_ptid).
14011 (store_inferior_registers): Likewise.
14012
14013 2002-01-10 Jason Merrill <jason@redhat.com>
14014
14015 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14016 Fix DW_OP_minus.
14017
14018 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14019
14020 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14021 and bfd/elf32-sh-nbsd.c.
14022
14023 2002-01-10 Michael Snyder <msnyder@redhat.com>
14024
14025 * NEWS: Mention --pid and corefile/proc-id behavior change.
14026
14027 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14028 * gcore.c: Include cli/cli-decode.h instead of command.h.
14029
14030 * main.c (captured_main): Add new command line option "--pid".
14031 If the second command line argument (following the symbol-file)
14032 begins with a digit, try to attach to it before trying to open
14033 it as a corefile.
14034 (print_gdb_help): Document the "--pid" argument.
14035
14036 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14037
14038 * completer.c (command_completer): New function.
14039
14040 * completer.h <command_completer>: Add prototype.
14041
14042 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14043 completer for the "help" command.
14044
14045 2002-01-09 Jason Merrill <jason@redhat.com>
14046
14047 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14048
14049 2002-01-09 Michael Snyder <msnyder@redhat.com>
14050
14051 * i386-linux-nat.c (fill_fpxregset): Make global.
14052 (store_fpxregset): Ditto.
14053
14054 * gregset.h (gdb_fpxregset_t): Define.
14055 (supply_fpxregset): Prototype.
14056 (fill_fpxregset): Prototype.
14057
14058 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14059
14060 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14061
14062 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14063 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14064 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14065
14066 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14067
14068 * MAINTAINERS: Update target maintainer rules so that any
14069 Maintainer can approve a tested patch for a maintenance-only
14070 target.
14071
14072 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14073
14074 * MAINTAINERS (write-after-approval): Add myself.
14075
14076 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14077 IN_SIGTRAMP.
14078
14079 2002-01-08 Michael Snyder <msnyder@redhat.com>
14080
14081 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14082 real name of the executable, rather than the /proc name.
14083
14084 2002-01-03 Michael Snyder <msnyder@redhat.com>
14085
14086 Implement a "generate-core-file" command in gdb, save target state.
14087 * gcore.c: New file. Implement new command 'generate-core-file'.
14088 Save a corefile image of the current state of the inferior.
14089 * linux-proc.c: Add linux-specific code for saving corefiles.
14090 * target.h (struct target_ops): Add new target vectors for saving
14091 corefiles; to_find_memory_regions and to_make_corefile_notes.
14092 (target_find_memory_regions): New macro.
14093 (target_make_corefile_notes): New macro.
14094 * target.c (update_current_target): Inherit new target methods.
14095 (dummy_find_memory_regions): New place-holder method.
14096 (dummy_make_corefile_notes): New place-holder method.
14097 (init_dummy_target): Initialize new dummy target vectors.
14098 * exec.c (exec_set_find_memory_regions): New function.
14099 Allow the exec_ops vector for memory regions to be taken over.
14100 (exec_make_note_section): New function, target vector method.
14101 * defs.h (exec_set_find_memory_regions): Export prototype.
14102 * procfs.c (proc_find_memory_regions): New function, corefile method.
14103 (procfs_make_note_section): New function, corefile method.
14104 (init_procfs_ops): Set new target vector pointers.
14105 (find_memory_regions_callback): New function.
14106 (procfs_do_thread_registers): New function.
14107 (procfs_corefile_thread_callback): New function.
14108 * sol-thread.c (sol_find_memory_regions): New function.
14109 (sol_make_note_section): New function.
14110 (init_sol_thread_ops): Initialize new target vectors.
14111 * inftarg.c (inftarg_set_find_memory_regions): New function.
14112 Allow to_find_memory_regions vector to be taken over.
14113 (inftarg_set_make_corefile_notes): New function.
14114 Allow to_make_corefile_notes vector to be taken over.
14115 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14116 interface layer if not target_has_execution (may be a corefile).
14117 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14118 * config/sparc/sun4sol2.mh: Ditto.
14119 * config/alpha/alpha-linux.mh: Ditto.
14120 * config/arm/linux.mh: Ditto.
14121 * config/i386/x86-64linux.mh: Ditto.
14122 * config/ia64/linux.mh: Ditto.
14123 * config/m68k/linux.mh: Ditto.
14124 * config/mips/linux.mh: Ditto.
14125 * config/powerpc/linux.mh: Ditto.
14126 * config/sparc/linux.mh: Ditto.
14127
14128 2002-01-07 Michael Snyder <msnyder@redhat.com>
14129
14130 * arm-linux-nat.c: Remove references to regcache.c internal data
14131 (registers[] and register_valid[]).
14132
14133 2002-01-07 Michael Snyder <msnyder@redhat.com>
14134
14135 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14136 so that attaching to a pid will automatically read the process's
14137 symbol file and shlibs.
14138 * Makefile.in: Add rule for linux-proc.o.
14139 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14140 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14141 * config/arm/linux.mh: Ditto.
14142 * config/i386/linux.mh: Ditto.
14143 * config/i386/x86-64linux.mh: Ditto.
14144 * config/ia64/linux.mh: Ditto.
14145 * config/m68k/linux.mh: Ditto.
14146 * config/mips/linux.mh: Ditto.
14147 * config/powerpc/linux.mh: Ditto.
14148 * config/sparc/linux.mh: Ditto.
14149
14150 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14151
14152 * win32-nat.c: Add i386-tdep.h dependency.
14153
14154 2002-01-07 Michael Snyder <msnyder@redhat.com>
14155
14156 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14157 instead of bfd_get_arch_size. Don't bail out just because
14158 there's no exec_bfd.
14159
14160 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14161 * p-valprint.c (pascal_object_print_value): Ditto.
14162 * somread.c (som_symtab_read): Ditto.
14163 * symfile.c (simple_free_overlay_region_table): Ditto.
14164 * valops.c (value_assign): Ditto.
14165
14166 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14167 use tilde_expand and strerror for opening save-tracepoints file.
14168
14169 * thread-db.c (thread_db_new_objfile): Indendation fix.
14170
14171 * infptrace.c (GDB_MAX_ALLOCA): New define.
14172 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14173 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14174 can be overridden with whatever value is appropriate to the host).
14175 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14176 alloca to allocate potentially large buffer.
14177 * rs6000-nat.c (child_xfer_memory): Ditto.
14178 * symm-nat.c (child_xfer_memory): Ditto.
14179 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14180
14181 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14182
14183 From Nick Clifton <nickc@redhat.com>
14184 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14185
14186 2002-01-07 Michael Snyder <msnyder@redhat.com>
14187
14188 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14189 Don't use exec_bfd if it's NULL.
14190
14191 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14192
14193 * valops.c (value_arg_coerce): Fix formatting.
14194
14195 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14196
14197 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14198 * gnu-nat.c: Ditto.
14199
14200 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14201
14202 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14203 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14204 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14205 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14206 z8k-coff have not been multi-arched. Update z8k-coff build
14207 status.
14208
14209 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14210
14211 * MAINTAINERS: Mark a29k target as obsolete.
14212 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14213 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14214 comments.
14215 * NEWS: Note that a29k targets are obsolete.
14216 * a29k-tdep.c: Mark as obsolete.
14217 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14218 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14219 a29k-*-vxworks* targets as obsolete.
14220 * remote-adapt.c: Obsolete.
14221 * remote-eb.c: Obsolete.
14222 * remote-mm.c: Obsolete.
14223 * remote-udi.c: Obsolete.
14224 * config/a29k/a29k-udi.mt: Obsolete.
14225 * config/a29k/a29k.mt: Obsolete.
14226 * config/a29k/tm-a29k.h: Obsolete.
14227 * config/a29k/tm-vx29k.h: Obsolete.
14228 * config/a29k/vx29k.mt: Obsolete.
14229
14230 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14231
14232 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14233 with BFD_ENDIAN_BIG.
14234
14235 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14236
14237 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14238 * configure, config.in: Re-generate.
14239 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14240 * defs.h: Do not include <endian.h>.
14241
14242 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14243
14244 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14245 * config.in: Regenerate.
14246 * configure.in: Update copyright years.
14247 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14248 * configure: Regenerate.
14249 * i386bsd-nat.c: Update copyright years.
14250 (fill_gregset): Use regcache_collect.
14251 (fetch_inferior_registers): Only fetch integer registers
14252 if requested to do so. Add support for XMM registers
14253 using PT_GETXMMREGS.
14254 (store_inferior_registers): Only store integer registers
14255 if requested to do so. Add support for XMM registers
14256 using PT_SETXMMREGS.
14257 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14258 (store_inferior_registers): Remove.
14259 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14260 (fetch_elfcore_registers): New function.
14261 (i386nbsd_elfcore_fns): New.
14262 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14263 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14264 i386bsd-nat.o.
14265 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14266 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14267 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14268 * config/i386/tm-nbsd.h: Update copyright years.
14269 (HAVE_SSE_REGS): Define.
14270 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14271 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14272 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14273 (SIGCONTEXT_PC_OFFSET): Remove.
14274 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14275
14276 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14277
14278 * configure.tgt: Remove powerpc-*-macos* target.
14279 * config/m68k/xm-mpw.h: Delete file.
14280 * config/xm-mpw.h: Delete file.
14281 * ser-mac.c: Delete file.
14282 * mpw-make.sed: Delete file.
14283 * mpw-config.in: Delete file.
14284 * mac-xdep.c: Delete file.
14285 * mac-gdb.r: Delete file.
14286 * mac-defs.h: Delete file.
14287 * mac-nat.c: Delete file.
14288 * config/powerpc/macos.mh: Delete file.
14289 * config/powerpc/macos.mt: Delete file.
14290 * config/powerpc/nm-macos.h: Delete file.
14291 * config/powerpc/tm-macos.h: Delete file.
14292 * source.c (openp, open_source_file): Remove obsolete code.
14293 * top.c (gdb_readline): Ditto.
14294 * utils.c (query): Ditto.
14295 * event-top.c (display_gdb_prompt): Ditto.
14296 * Makefile.in (ser-mac.o): Delete obsolete target.
14297 * NEWS: Update.
14298
14299 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14300
14301 * defs.h (BIG_ENDIAN): Delete macro definition.
14302 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14303 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14304 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14305 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14306 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14307 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14308 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14309 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14310 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14311 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14312 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14313 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14314 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14315 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14316 * gdbarch.c: Re-generate.
14317
14318 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14319
14320 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14321 for core files.
14322
14323 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14324
14325 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14326
14327 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14328
14329 * value.h (value_ptr): Delete typedef.
14330
14331 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14332
14333 * i386nbsd-nat.c: Update copyright years.
14334 Include i386-tdep.h.
14335
14336 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14337
14338 * stabsread.c: Update copyright years.
14339
14340 From Debashis Mahata <debashis.mahata@wipro.com>:
14341 (read_struct_fields): Deal with Sun C compiler erroneous stab
14342 output for structs and unions.
14343 Fix PR gdb/269.
14344
14345 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14346
14347 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14348 prototype.
14349
14350 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14351
14352 * cp-abi.c: Fix whitespace.
14353 (baseclass_offset): New wrapper function.
14354 * cp-abi.h (baseclass_offset): Add prototype.
14355 (struct cp_abi_ops): Add baseclass_offset pointer.
14356
14357 * valops.c (vb_match): Move to...
14358 * gnu-v2-abi.c (vb_match): here.
14359 * valops.c (baseclass_offset): Move to...
14360 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14361
14362 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14363
14364 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14365 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14366 * hpacc-abi.c (init_hpacc_ops): Likewise.
14367
14368 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14369
14370 * valops.c (find_overload_match): Accept obj as a
14371 reference parameter. Update it before returning.
14372 * value.h (find_overload_match): Update prototype.
14373 * eval.c (evaluate_subexp_standard): Pass object to
14374 find_overload_match by reference.
14375
14376 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14377
14378 * valarith.c: Replace value_ptr with struct value pointer. Remove
14379 register attribute from value declarations.
14380 * valops.c: Ditto.
14381 * value.h: Ditto.
14382 * scm-lang.c (scm_lookup_name): Ditto.
14383
14384 2002-01-03 Michael Snyder <msnyder@redhat.com>
14385
14386 Abstract the functionality of iterating over mapped memory
14387 regions into a general purpose iterator function.
14388 * procfs.c (iterate_over_mappings): New function, general purpose
14389 iterator for memory sections.
14390 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14391 (solib_mappings_callback): New function, callback for above.
14392 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14393 (info_mappings_callback): New function, callback for above.
14394
14395 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14396
14397 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14398
14399 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14400 * i386-tdep.c: Include "elf-bfd.h".
14401 (process_note_abi_tag_sections): New function.
14402 (i386_gdbarch_init): Add code to recognize various OS/ABI
14403 combinations.
14404
14405 * maint.c (_initialize_maint_cmds): Add missing \ in
14406 string-literal.
14407
14408 For older changes see ChangeLog-2001
14409 \f
14410 Local Variables:
14411 mode: change-log
14412 left-margin: 8
14413 fill-column: 74
14414 version-control: never
14415 End: